\n\n Interview with Michelle Childs, professor with the Retail, Hospitality,\n and Tourism Management department of UT. Childs discusses the effects of\n the wildfire on the businesses in Gatlinburg primarily over an extended\n time frame. She talks about the preparedness of businesses with contacting\n employees during the fire and in terms of insurance coverage. She also\n elaborates on the initial return of tourists to the area, and the steady\n recovery of the area. This is a representative quote from the interview:\n \"What was really interesting because likely its such a small, tightknit\n community that those personal stories were really intertwined with the\n business stories.\"\n
","html-attributes#HTML Attributes":"Summary, like all Clover IIIF primitives accept common HTMLElement attributes. Use the JSX style className prop to add custom classes. The same attribute methodology can be used for id, style, title, data-*, and aria-* props.\n \n\n Robin Goodfellow playing a horn that ends in a dragon-head in front of a\n Berkeley Folk Music Festival sign. Digital scan of a black and white\n negative.\n ","language#Language":"Additional to being rendered to the DOM like other attributes, the value of lang will couple with InternationalString props to output the denoted label, value, summary entries. If lang is undefined, entries will default to the first entry in the array index. The value of lang should be a two letter BCP 47 language code.In this example we will render Arabic entries from the summary prop. The lang prop will be set to ar and dir will be set to rtl for right-to-left reading.\n\n\n رسول الله صلى اعلي إن كان ولد سلطان يكون بحرمة الخاتم لا يموت حتى يكون\n ملك, إن كان عبد يكون الحر, من يمشي الى سفر كتبه في لوح و شرب واحد و غسل\n واحد و علق واحد لايرا مصيبة الطريق حتى يرجع سالما غانما, من كتبه ولحد\n
"}},"/docs/thumbnail":{"title":"Thumbnail","data":{"":"The Thumbnail component is used to display a thumbnail for a IIIF resource. This generally is an Image, however, could be a short Video or Sound clip.\n \n ","usage#Usage":"","react#React":"import { Thumbnail } from \"@samvera/clover-iiif/primitives\";\nconst CustomThumbnail = ({ thumbnail }) => {\n return ;\n};\nexport default CustomThumbnail;","api-reference#API Reference":"Thumbnails are rendered to a relative HTML or element depenpdent on the type of the resource in the thumbnail entry. Currently, only type Image and Video are supported.\nProp\tType\tDefault\tRequired\tas\timg, video\timg\t--\tthumbnail\tthumbnail\t--\tYes\tclassName\tstring, undefined\t--\t--\tstyle\tCSSProperties, undefined\t--\t--\tlang\tstring, undefined\t--\t--\ttitle\tstring, undefined\t--\t--\tdata-*\tstring, undefined\t--\t--\taria-*\tAriaAttributes, undefined\t--\t--","video-thumbnail#Video Thumbnail":"Using the Thumbnail component, you can render a video thumbnail. This is useful for displaying a short clip of a video resource. To do so, a W3C media fragment using temporal dimension should be appended to the id of the external Video resource, ex: #t=200,230. Additionally, a duration property should be used to account for time in seconds.\n \n "}},"/docs/viewer":{"title":"Viewer","data":{"":"A UI component that renders a multicanvas IIIF item viewer with pan-zoom support for Image via OpenSeadragon and Video and Sound content resources using the HTML video element.","features#Features":"Provide a IIIF Presentation API Manifest or Collection and the component:\nRenders a multi-canvas Video, Sound, and Image viewer\nRenders thumbnails as navigation between canvases\nRenders annotations with the motivation of supplementing with a content resource having the format of text/vtt for Video and Sound\nVideo and Sound are rendered within a HTML5 element\nImage canvases are renderered with OpenSeadragon\nSupports HLS streaming for Video and Audio canvases\nSupports IIIF Collections and toggling between child Manifests\nSupports placeholderCanvas for Image canvases.","installation#Installation":"npm install @samvera/clover-iiif\n yarn add @samvera/clover-iiif\n pnpm install @samvera/clover-iiif","usage#Usage":"","react#React":"Add the Viewer component to your jsx or tsx code.\nimport Viewer from \"@samvera/clover-iiif/viewer\";\nRender Viewer with a IIIF Manifest or Collection URI. The only required prop is the iiifContent, which is the URI of the IIIF Manifest or Collection.\n ","vanilla-javascript#Vanilla JavaScript":"The Viewer can also be implemented in Vanilla Javascript by use of a web component. This web component example sources a registered web component.\n\n \n Clover IIIF - Viewer - Web Component \n \n \n \n \n \n \n","nextjs#Next.js":"Implementation with Next.js requires a dynamic import utilizing next/dynamic. This is due to Next's node compilation method creating issue with an OpenSeadragon (a dependency of Clover IIIF) assumption of a browser document object.\nimport dynamic from \"next/dynamic\";\nconst Viewer = dynamic(\n () => import(\"@samvera/clover-iiif\").then((Clover) => Clover.Viewer),\n {\n ssr: false,\n },\n);\nconst MyCustomViewer = () => {\n const iiifContent =\n \"https://api.dc.library.northwestern.edu/api/v2/collections/c373ecd2-2c45-45f2-9f9e-52dc244870bd?as=iiif\";\n return ;\n};","api-reference#API Reference":"Viewer can configured through an options prop, which will serve as a object for common options.\nProp\tType\tRequired\tDefault\tiiifContent\tstring\tYes\t\tiiifContentSearchQuery\tSee Content Search\tNo\t\tcanvasIdCallback\tfunction\tNo\t\tcustomDisplays\tSee Custom Displays\tNo\t\tcustomTheme\tobject\tNo\t\tplugins\tSee Plugins\tNo\t\toptions\tobject\tNo\t\toptions.background\tstring CSS\tNo\ttransparent\toptions.canvasBackgroundColor\tstring CSS\tNo\t#1a1d1e\toptions.canvasHeight\tstring CSS\tNo\t500px\toptions.ignoreCaptionLabels\tstring[]\tNo\t[]\toptions.openSeadragon\tOpenSeadragon.Options\tNo\t\toptions.informationPanel\tSee Information Panel\tNo\t\toptions.requestHeaders\tIncomingHttpHeaders\tNo\t{ \"Content-Type\": \"application/json\" }\toptions.showDownload\tboolean\tNo\ttrue\toptions.showIIIFBadge\tboolean\tNo\ttrue\toptions.showTitle\tboolean\tNo\ttrue\toptions.withCredentials\tboolean\tNo\tfalse\toptions.contentSearch\tSee Content Search\tNo\t\t\nOptions canvasBackgroundColor and canvasHeight will apply to both elements and the OpenseaDragon canvas.\nOption withCredentials being set as true will inform IIIF resource requests to be made using credentials such as cookies, authorization headers or TLS client certificates.\nOption options.openSeadragon will grant you ability to override the OpenSeadragon default options set within the Clover IIIF Viewer to adjust touch and mouse gesture settings and various other configurations.","canvas-height#Canvas Height":"The height of the canvas can be set using the options.canvasHeight prop. This prop accepts a string value that is a valid CSS height value. The default value is 500px.","automatic-height#Automatic Height":"If the height is set to auto or 100%, the Viewer will expand to the height of its wrapping container element. The wrapping element must have a position relative, along with a defined height for this to display as expected. Be aware to set a z-index value of 0 or an applicable value within your consuming application to ensure the viewer does not conflict with other page elements.\nexport default function App() {\n const iiifContent =\n \"https://api.dc.library.northwestern.edu/api/v2/works/8a833741-74a8-40dc-bd1d-c416a3b1bb38?as=iiif\";\n const options = {\n canvasHeight: \"auto\", // or \"100%\"\n };\n return (\n \n \n
\n );\n}","information-panel#Information Panel":"The information panel is a collapsible panel that displays information about the current Manifest and renders supplementing resources for the active canvas. It is rendered by default, but can be configured to be hidden or to render only certain tabs.\nProp\tType\tRequired\tDefault\toptions.informationPanel.open\tboolean\tNo\ttrue\toptions.informationPanel.vtt.autoScroll\tSee Auto Scroll\tNo\ttrue\toptions.informationPanel.renderAbout\tboolean\tNo\ttrue\toptions.informationPanel.renderAnnotation\tboolean\tNo\ttrue\toptions.informationPanel.renderSupplementing\tboolean\tNo\ttrue\toptions.informationPanel.renderToggle\tboolean\tNo\ttrue\toptions.informationPanel.renderContentSearch\tboolean\tNo\ttrue\toptions.informationPanel.defaultTab\tstring\tNo\t\t\nIf renderAbout is true, Clover will use the About tab as the default tab. Use options.informationPanel.defaultTab to set the default tab.If you want content search to be the default tab, use manifest-content-search\n \nIf the manifest has annotations, and you want one of the anotations to be the default tab, use the id from the annotation page.\n{\n \"@context\": [\"http://iiif.io/api/presentation/3/context.json\"],\n \"type\": \"Manifest\",\n ...\n \"items\": [\n {\n \"id\": \"http://example.com/manifest/canvas/1\",\n \"type\": \"Canvas\",\n \"height\": 1000,\n \"width\": 2000,\n \"annotations\": [\n {\n \"id\": \"http://example.com/manifest/annotation/1\",\n \"type\": \"AnnotationPage\",\n \"items\": [...]\n }\n ]\n }\n ]\n}\n ","auto-scroll#Auto Scroll":"When VTT annotations are displayed, the Clover IIIF Viewer can automatically scroll the information panel to keep the currently active caption in view. Whether it does so (and how) is governed by the informationPanel.vtt.autoScroll configuration option. The possible values are:\n{ behavior: (behavior), block: (block) }: auto-scroll using the given settings (see below).\ntrue: Auto-scroll using the default behavior. This is equivalent to { behavior: \"smooth\", block: \"center\" }.\nfalse: Do not auto-scroll.\nThe settings take the form { behavior: \"auto\" | \"instant\" | \"smooth\", block: \"center\" | \"end\" | \"nearest\" | \"start\" }, and have the same effect as the scrollIntoViewOptions object documented with the Element.scrollIntoView() Web API method. (The inline option does not apply since there is no horizontal scrolling involved.)","custom-displays#Custom Displays":"Clients may wish to use their own display components (for example a PDF Viewer, or an audio player, etc). To configure custom displays, use the customDisplays prop, which is an array of objects defining display and target properties. See an example implementationdisplay.component is a custom React component, and display.componentProps are pass-through props which Viewer will attach to your Custom Display component. The target object provides two methods of matching a Canvas to a Custom Display: target.canvasId which is a manifest's canvas id. Or by target.paintingFormat (ie. application/pdf) which is the body.type in a canvas's Annotation of type \"painting\".\nProp\tType\tRequired\tDefault\tcustomDisplays.display.component\tReact.Node\tNo\t\tcustomDisplays.display.componentProps\tobject\tNo\t\tcustomDisplays.target.canvasId\tstring[]\tNo\t\tcustomDisplays.target.paintingFormat\tstring[]\tNo","content-search#Content search":"Clover supports IIIF content search v2. In order to display content search in the information panel, add a content search service to the manifest.\n{\n \"@context\": [\"http://iiif.io/api/presentation/3/context.json\"],\n \"type\": \"Manifest\",\n ...\n \"service\": [\n {\n \"id\": \"https://example.com/search\",\n \"type\": \"SearchService2\"\n }\n ]\n}\nProp\tType\tRequired\tDefault\tiiifContentSearchQuery.q\tstring\tNo\t\toptions.contentSearch.searchResultsLimit\tnumber\tNo\t20\toptions.contentSearch.overlays.backgroundColor\tstring\tNo\t#ff66660\toptions.contentSearch.overlays.borderColor\tstring\tNo\t#990000\toptions.contentSearch.overlays.borderType\tstring\tNo\tsolid\toptions.contentSearch.overlays.borderWidth\tstring\tNo\t1px\toptions.contentSearch.overlays.opacity\tstring\tNo\t0.5\toptions.contentSearch.overlays.renderOverlays\tboolean\tNo\ttrue\toptions.contentSearch.overlays.zoomLevel\tnumber\tNo\t4\t\nMany sites have a search functionality that returns a list objects that match the search terms. Clicking on a search result will display a details page for one object. If you want to highlight the search terms when the Clover image viewer loads on the details page, use iiifContentSearchQuery when setting up the viewer.\n \noptions.contentSearch.searchResultsLimit is the maximum number of search results to display per canvas in the information panel. If set to undefined, Clover will show all search results.By default, Clover's content search will draw light red boxes in the image viewer for each search result returned by the search service. You can set the appearance of the highlighted boxes using options.contentSearch.overlays. If you don't want the search results to be highlighted, set options.contentSearch.overlays.renderOverlays to false.When you click on the list of search results, Clover will pan and zoom to the location of that search result. You can set the zoom level using options.contentSearch.overlays.zoomLevel. A small zoom level will zoom in real close; a large zoom level will zoom in less.","deprecated-options#Deprecated Options":"Prop\tIn Favor Of\tDeprecated\tid\tiiifContent\tv2.0.0\tmanifestId\tiiifContent\tv2.0.0\toptions.renderAbout\toptions.informationPanel.renderAbout\tv2.0.3\toptions.showInformationToggle\toptions.informationPanel.renderToggle\tv2.0.3","basic-configuration#Basic Configuration":"Example customization of various options.\nconst options = {\n // Primary title (Manifest label) for top level canvas. Defaults to true\n showTitle: false,\n // IIIF Badge and popover containing options. Defaults to true\n showIIIFBadge: false,\n // Ignore supplementing canvases by label value that are not for captioning\n ignoreCaptionLabels: ['Chapters'],\n // Override canvas background color, defaults to #1a1d1e\n canvasBackgroundColor: \"#000\",\n // Set canvas zooming onScoll (this defaults to false)\n openSeadragon: {\n gestureSettingsMouse: {\n scrollToZoom: true;\n }\n }\n}\n","active-canvas#Active Canvas":"Example on using canvasIdCallback to return to your consuming application the active canvas ID. This will return as a string.\nconst iiifContent =\n \"https://api.dc.library.northwestern.edu/api/v2/works/8a833741-74a8-40dc-bd1d-c416a3b1bb38?as=iiif\";\nconst handlCanvasIdCallback = (activeCanvasId) => {\n if (activeCanvasId) console.log(activeCanvasId);\n};\nreturn (\n \n);","captions#Captions":"WebVTT content resources are the source for both content mapped closed captioning elements in the HTML 5 video player and to the navigator panel adjacent to it. You may ignore these resources as tracks if they are not intended for closed captioning or subtitling by string values matching the label of the content resource. This is a manual option within the viewer as there is no defined way for a manifest to prescribe motivation for these resources beyond supplementing.\nexport default function App() {\n const iiifContent =\n \"https://raw.githubusercontent.com/samvera-labs/clover-iiif/main/public/fixtures/iiif/manifests/captions.json\";\n const options = {\n ignoreCaptionLabels: [\"Chapters\"],\n };\n return ;\n}","custom-theme#Custom Theme":"You may choose to override the base theme by setting optional colors and fonts. Naming conventions for colors are limited to those shown in the config example below.\nconst iiifContent =\n \"https://api.dc.library.northwestern.edu/api/v2/works/8a833741-74a8-40dc-bd1d-c416a3b1bb38?as=iiif\";\nconst customTheme = {\n colors: {\n /**\n * Black and dark grays in a light theme.\n * All must contrast to 4.5 or greater with `secondary`.\n */\n primary: \"#37474F\",\n primaryMuted: \"#546E7A\",\n primaryAlt: \"#263238\",\n /**\n * Key brand color(s).\n * `accent` must contrast to 4.5 or greater with `secondary`.\n */\n accent: \"#C62828\",\n accentMuted: \"#E57373\",\n accentAlt: \"#B71C1C\",\n /**\n * White and light grays in a light theme.\n * All must must contrast to 4.5 or greater with `primary` and `accent`.\n */\n secondary: \"#FFFFFF\",\n secondaryMuted: \"#ECEFF1\",\n secondaryAlt: \"#CFD8DC\",\n },\n fonts: {\n sans: \"'Helvetica Neue', sans-serif\",\n display: \"Optima, Georgia, Arial, sans-serif\",\n },\n};\nreturn ;","css-classes#CSS Classes":"Additional CSS classes are made available on structural HTML elements in the Viewer, which may be referenced in a client's own CSS files/style definitions to further customize the Viewer's appearance. You may inspect the DOM to see classes applied to each element, but in general it follows a pattern similar to:\n","request-headers#Request Headers":"In some cases, a client may need to request Manifest or Collection resources with custom request headers, ex: Authorization. This can be done by passing a requestHeaders object to the options prop. This object will be passed to the request call made by the Viewer. Accepted header keys are defined in the IncomingHttpHeaders interface.\nconst iiifContent =\n \"https://api.dc.library.northwestern.edu/api/v2/works/8a833741-74a8-40dc-bd1d-c416a3b1bb38?as=iiif\";\nconst token = \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\";\nreturn (\n \n);","custom-canvas-displays#Custom canvas displays":"Clients may wish to use their own display components instead of Clover Viewer's default displays (OpenSeadragon for images and HTML Video Player for audio/video). The Viewer component allows a client to target individual canvas items in a IIIF Manifest by either direct reference to a canvas id or format (ie. video/ogg). See the Type Definition below for CustomDisplay, and an example implementation.\nimport AnotherCustomDisplay from \"./AnotherCustomDisplay\";\ntype CustomDisplay = {\n display: {\n component: React.ElementType;\n componentProps: {\n // Any custom props you want to pass to your component\n [key: string]: any;\n };\n };\n target: {\n canvasId: string[];\n paintingFormat: string[]; // \"application/pdf\" or \"application/epub+zip\"\n };\n};\nfunction MyCustomDisplay({ id, annotationBody, ...restProps }: CustomDisplay) {\n return (\n \n
My Custom Display \n
Canvas ID: {id}
\n
Annotation Body:
\n
{JSON.stringify(annotationBody)} \n
Custom props:
\n
{JSON.stringify(restProps)} \n ...your display here\n
\n );\n}\n ;\nThe Viewer component will pass the following props to your custom display component:\nid: The canvas id for the resource being rendered. This may be helpful if you wanted to use the canvas id to fetch additional data from your application's API.\nannotationBody: The body value for a canvas Annotation item with motivation \"painting\".\n{\n \"id\": \"https://uri-for-a-canvas-id/access/0\",\n \"type\": \"Annotation\",\n \"motivation\": \"painting\",\n \"body\": {\n \"format\": \"application/pdf\",\n \"height\": 1686,\n \"id\": \"http://localhost:3000/media/pdf/file-sample_150kB.pdf\",\n \"width\": 1192\n }\n}\nSee a complete recipe for a PDF Viewer using custom canvas displays.","plugins#Plugins":"Clover supports 3rd-party plugins as a way to add more functionality to Clover. To add plugins, use the plugins prop. plugins will accept an array of objects, with each object representing a plugin.People can use prebuilt plugins or create their own plugins. To install a prebuilt plugin, people should follow the instructions for the particular plugin.Here's an example of using two plugins. PluginA adds a button to imageViewer.controls. PluginB adds a tab to informationPanel.\nimport PluginA from \"plugin-A\";\nimport PluginB from \"plugin-B\";\nexport default function App() {\n return (\n \n );\n}\nProp\tType\tRequired\tDefault\tid\tstring\tyes\t\timageViewer.controls\tobject\tNo\t\timageViewer.controls.component\tReact Component\tyes\t\timageViewer.controls.componentProps\tobject\tno\t\tinformationPanel\tobject\tNo\t\tinformationPanel.component\tReact Component\tyes\t\tinformationPanel.componentProps\tobject\tno\t\tinformationPanel.label\tobject\tyes\t\t\nid - unique id for the pluginimageViewer.controls - If you want to add a custom component to image viewer controls, use imageViewer.controls.imageViewer.controls.component - The component to render.imageViewer.controls.componentProps - Props passed to the controls component.informationPanel - If you want to add a custom component to the information panel, use informationPanel.informationPanel.component - The component to render.informationPanel.componentProps - Props passed to the information panel component.informationPanel.label - The text that is displayed in the tab.","instructions-for-creating-a-plugin#Instructions for creating a plugin":"Clover offers these features to support plugins:\nRenders custom React components in certain areas of the Clover Viewer. Areas include image viewer controls and information panel.\nGives plugins the ability to access and change the state of the Clover Viewer via props\nPass in props to the plugin components\nProp\tDescription\tcanvas\tactive canvas object\tuseViewerDispatch\tReact hook to update the Viewer context store\tuseViewerState\tReact hook to access the Viewer context store\t\nHere is an example plugin that has both imageViewer.controls and informationPanel. Plugin components have access to canvas, useViewerDispatch, and useViewerState via props.\n// PluginButton.tsx\nexport default function PluginButton(props) {\n const { canvas, useViewerDispatch, useViewerState } = props;\n // use useViewerState to access to viewer state properties such as openSeadragonViewer, etc\n const viewerState = useViewerState();\n const { openSeadragonViewer, activeManifest } = viewerState;\n // use useViewerDispatch to update viewer state\n const dispatch: any = useViewerDispatch();\n function clickHandler() {\n dispatch({\n type: \"updateOSDImageLoaded\",\n OSDImageLoaded: false,\n });\n }\n return (\n \n P \n \n );\n}\n// PluginInfoPanel.tsx\nexport default function PluginInfoPanel(props) {\n const {\n canvas,\n useViewerDispatch,\n useViewerState,\n // componentProps\n objectId,\n } = props;\n return (\n \n
Plugin Info Panel
\n
objectId: {objectId}
\n
\n );\n}\n// App.tsx\nimport PluginButton from \"PluginButton\";\nimport PluginInfoPanel from \"PluginInfoPanel\";\nexport default function App() {\n return (\n \n );\n}\nIf the imageViewer.controls.component and informationPanel.component need to share state, wrap the Viewer in a context provider that is provided by the plugin.\nimport PluginButton from \"PluginButton\";\nimport PluginInfoPanel from \"PluginInfoPanel\";\nimport { PluginProvider } from \"PluginContext\";\nexport default function App() {\n return (\n \n \n \n );\n}"}},"/docs/viewer/contentsearch":{"title":"Contentsearch","data":{"viewer#Viewer":"","content-search#Content search.":"Type in anything in the search field, and click the search button or type return. This demo will show the search results for \"Berliner\". Click on any of search results, and Clover will zoom and pan to that search result.Due to the fact that the Clover documentation site is a statically generated, search will only return results for \"Berliner\" because the search service returns a static content search manifest. In a fully functional site, the search service will return a dynamic content search manifest based on the entered search words."}},"/docs/viewer/demo":{"title":"Demo","data":{"viewer#Viewer":"A UI component that renders a multicanvas IIIF item viewer with pan-zoom support for Image via OpenSeadragon and Video and Sound content resources using the HTML video element."}},"/":{"title":"Index","data":{"":" \n \n \n \n \n \n \n \n \n \n \n \n "}},"/docs/image":{"title":"Image","data":{"":"A UI component that renders a pan and deep-zoom Image viewer using OpenSeadragon.","features#Features":"Provide a IIIF Annotation body with the type of Image and the component:\nRenders a single OpenSeadragon instance.\nReturns OpenSeadragon's Viewer instance for programmatic control.\nProvides configuration options for OpenSeadragon's Viewer instance.","installation#Installation":"npm install @samvera/clover-iiif\n yarn add @samvera/clover-iiif\n pnpm install @samvera/clover-iiif","usage#Usage":"","react#React":"Add the Image component to your jsx or tsx code.\nimport Image from \"@samvera/clover-iiif/image\";","using-src-and-istiledimage-props#Using src and isTiledImage props":"For Tiled Images, render Image with a src attribute of the IIIF Image service id. The isTiledImage prop is optional and defaults to false.\n\n \n
\nFor Simple Images, render Image with a src attribute of the image, ex: https://example.org/image.jpg. The isTiledImage must be omitted or set to false.\n\n \n
","using-the-iiif-annotation-body#Using the IIIF annotation body":"When using the IIIF annotation body from IIIF Manifest, the Image component will render the image based on the IIIF Image service id and other properties.\n\n \n
","vanilla-javascript#Vanilla JavaScript":"The Viewer can also be implemented in Vanilla Javascript by use of a web component. This web component example sources a registered web component.\n\n \n Clover IIIF - Image - Web Component \n \n \n \n \n \n \n
\n \n","nextjs#Next.js":"Implementation with Next.js requires a dynamic import utilizing next/dynamic. This is due to Next's node compilation method creating issue with an OpenSeadragon (a dependency of Clover IIIF) assumption of a browser document object.\nimport dynamic from \"next/dynamic\";\nconst Image = dynamic(\n () => import(\"@samvera/clover-iiif\").then((Clover) => Clover.Image),\n {\n ssr: false,\n },\n);\nconst MyCustomImage = () => {\n return (\n \n );\n};","api-reference#API Reference":"Note that while that src and body are both optional, at least one of them must be provided.\nProp\tType\tRequired\tbody\tIIIF Content Resource\tNo\tinstanceId\tstring\tNo\tlabel\tstring or IIIF Label\tNo\tsrc\tstring\tNo\topenSeadragonCallback\tfunction\tNo\topenSeadragonConfig\tOpenSeadragon.Options\tNo","openseadragon#OpenSeadragon":"","openseadragon-callback#OpenSeadragon Callback":"The Image component uses OpenSeadragon to render the image. The openSeadragonCallback prop provides a callback function that returns the OpenSeadragon Viewer instance. This can be used to programmatically control the viewer from the consuming application.\nimport Image from \"@samvera/clover-iiif/image\";\nconst MyCustomImage = () => {\n export const handleOpenSeadragonCallback = (viewer) => {\n console.log(\"OpenSeadragon instance is ready\");\n console.log(viewer);\n };\n return (\n \n );\n};","openseadragon-configuration#OpenSeadragon Configuration":"The openSeadragonConfig prop provides a way to configure the OpenSeadragon Viewer instance. This prop accepts an object of OpenSeadragon.Options.\nimport Image from \"@samvera/clover-iiif/image\";\nconst MyCustomImage = () => {\n const openSeadragonConfig = {\n showNavigator: false,\n showRotationControl: true,\n // ... other OpenSeadragon options\n };\n return (\n \n );\n};","label-and-aria#Label and ARIA":"The label prop is used to provide an accessible name for the OpenSeadragon. This is used as the aria-label attribute on the viewport element wrapping the OpenSeadragon canvas.The label can be a string or a valid IIIF Presentation API 3.0 label.\nimport Image from \"@samvera/clover-iiif/image\";\nconst MyCustomImage = () => {\n return (\n \n );\n};\nimport Image from \"@samvera/clover-iiif/image\";\nconst MyCustomImage = () => {\n return (\n \n );\n};","instance-id#Instance ID":"The instanceId prop is used to provide an identifier defined from the consuming application for the OpenSeadragon instance. This is used as the id attribute on the viewport element wrapping the OpenSeadragon canvas. instanceId is optional and by default the Image component will generate a unique identifier.\nimport Image from \"@samvera/clover-iiif/image\";\nconst MyCustomImage = () => {\n const instanceId = \"my-defined-instance-id\";\n const handleOpenSeadragonCallback = (viewer) => {\n console.log(viewer?.id);\n // openseadragon-my-defined-instance-id\n };\n return (\n \n );\n};"}},"/docs/metadata":{"title":"Metadata","data":{"":"An ordered list of descriptions to be displayed to the user when they interact with the resource, given as pairs of human readable label and value entries.\n \n\n \n
Creator \n Fava, Antonio, 1949- \n \n \n
Date \n 2012 \n \n ","usage#Usage":"","react#React":"import { Metadata } from \"@samvera/clover-iiif/primitives\";\nconst CustomMetadata = ({ metadata }) => {\n return ;\n};\nexport default CustomMetadata;","api-reference#API Reference":"Prop\tType\tDefault\tRequired\tas\tdl\tdl\t--\tmetadata\tmetadata\t--\tYes\tcustomValueContent\tPrimitivesCustomValueContent[]\t--\t--\tcustomValueDelimiter\tstring?\t,\t--\tclassName\tstring, undefined\t--\t--\tstyle\tCSSProperties, undefined\t--\t--\tlang\tstring, undefined\t--\t--\ttitle\tstring, undefined\t--\t--\tdata-*\tstring, undefined\t--\t--\taria-*\tAriaAttributes, undefined\t--\t--","html-attributes#HTML Attributes":"Metadata, like all Clover IIIF primitives accept common HTMLElement attributes. Use the JSX style className prop to add custom classes. The same attribute methodology can be used for id, style, title, data-*, and aria-* props.\n \n\n \n
Creator \n Fava, Antonio, 1949- \n \n \n
Date \n 2012 \n \n ","language#Language":"Additional to being rendered to the DOM like other attributes, the value of lang will couple with InternationalString props to output the denoted label, value, summary entries. If lang is undefined, entries will default to the first entry in the array index. The value of lang should be a two letter BCP 47 language code.\n\n\n \n
\n Beteiligte\n \n \n Jan (der Ältere) Brueghel\n \n \n \n
\n Technik\n \n \n Öl, Kupfer\n \n \n ","custom-values#Custom Values":"If a consuming application requires rendering specific metadata item values in a custom pattern, the customValueContent prop can be used. The pattern requires matchingLabel following https://iiif.io/api/presentation/3.0/#label and Content as a ReactElement carrying props. The element set for Content must map props.value to the appropriate code in the custom pattern.In the example below, the value of Pantaloon with a matching label of { none: [\"Subject\"] } would be rendered as Pantaloon , while the value entry of comic masks would render simply as comic masks .\nconst metadata = [\n {\n label: { none: [\"Genre\"] },\n value: { none: [\"comic masks\"] },\n },\n {\n label: { none: [\"Subject\"] },\n value: { none: [\"Pantaloon\"] },\n },\n];\nconst CustomValueSubject = (props) => (\n \n {props.value}\n \n);\nconst customValueContent = [\n {\n matchingLabel: { none: [\"Subject\"] },\n Content: ,\n },\n];\nreturn ;","custom-delimiter#Custom Delimiter":"\"\n/>\n\n \n
Subject \n \n Masks \n Commedia dell'arte \n Italian drama (Comedy) \n Zanni (Fictitious character)\n \n \n "}}}
\ No newline at end of file
diff --git a/_next/static/chunks/pages/docs/viewer-19f912e4f92bdc6e.js b/_next/static/chunks/pages/docs/viewer-19f912e4f92bdc6e.js
deleted file mode 100644
index 0d9d2f3d..00000000
--- a/_next/static/chunks/pages/docs/viewer-19f912e4f92bdc6e.js
+++ /dev/null
@@ -1 +0,0 @@
-(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[81],{2813:function(s,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/viewer",function(){return n(2731)}])},2731:function(s,e,n){"use strict";n.r(e),n.d(e,{__toc:function(){return d}});var i=n(1527),r=n(8567),l=n(2610),o=n(2188);n(2897);var t=n(7088),a=n(2712),c=n(1762),h=n(2416);let d=[{depth:2,value:"Features",id:"features"},{depth:2,value:"Installation",id:"installation"},{depth:2,value:"Usage",id:"usage"},{depth:3,value:"React",id:"react"},{depth:3,value:"Vanilla JavaScript",id:"vanilla-javascript"},{depth:3,value:"Next.js",id:"nextjs"},{depth:2,value:"API Reference",id:"api-reference"},{depth:3,value:"Canvas Height",id:"canvas-height"},{depth:4,value:"Automatic Height",id:"automatic-height"},{depth:3,value:"Information Panel",id:"information-panel"},{depth:3,value:"Auto Scroll",id:"auto-scroll"},{depth:3,value:"Custom Displays",id:"custom-displays"},{depth:3,value:"Content search",id:"content-search"},{depth:3,value:"Deprecated Options",id:"deprecated-options"},{depth:3,value:"Basic Configuration",id:"basic-configuration"},{depth:3,value:"Active Canvas",id:"active-canvas"},{depth:3,value:"Captions",id:"captions"},{depth:3,value:"Custom Theme",id:"custom-theme"},{depth:4,value:"CSS Classes",id:"css-classes"},{depth:3,value:"Request Headers",id:"request-headers"},{depth:3,value:"Custom canvas displays",id:"custom-canvas-displays"}];function x(s){let e=Object.assign({h1:"h1",p:"p",code:"code",a:"a",hr:"hr",h2:"h2",ul:"ul",li:"li",em:"em",pre:"pre",span:"span",h3:"h3",table:"table",thead:"thead",tr:"tr",th:"th",tbody:"tbody",td:"td",h4:"h4",strong:"strong"},(0,t.a)(),s.components);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(e.h1,{children:"Viewer"}),"\n",(0,i.jsxs)(e.p,{children:["A UI component that renders a multicanvas IIIF item viewer with pan-zoom support for ",(0,i.jsx)(e.code,{children:"Image"})," via ",(0,i.jsx)(e.a,{href:"https://openseadragon.github.io/",children:"OpenSeadragon"})," and ",(0,i.jsx)(e.code,{children:"Video"})," and ",(0,i.jsx)(e.code,{children:"Sound"})," content resources using the ",(0,i.jsx)(e.a,{href:"https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video",children:"HTML video element"}),"."]}),"\n",(0,i.jsx)(c.Z,{href:"https://iiif.io/api/presentation/3.0/#21-defined-types",text:["Manifest","Collection"]}),"\n",(0,i.jsx)(e.hr,{}),"\n",(0,i.jsx)(a.Z,{iiifContent:"https://api.dc.library.northwestern.edu/api/v2/works/8a833741-74a8-40dc-bd1d-c416a3b1bb38?as=iiif",options:{showIIIFBadge:!1,informationPanel:{open:!1}}}),"\n",(0,i.jsx)(e.h2,{id:"features",children:"Features"}),"\n",(0,i.jsxs)(e.p,{children:["Provide a ",(0,i.jsx)(e.a,{href:"https://iiif.io/api/presentation/3.0/",children:"IIIF Presentation API"})," Manifest or Collection and the component:"]}),"\n",(0,i.jsxs)(e.ul,{children:["\n",(0,i.jsxs)(e.li,{children:["Renders a multi-canvas ",(0,i.jsx)(e.em,{children:"Video"}),", ",(0,i.jsx)(e.em,{children:"Sound"}),", and ",(0,i.jsx)(e.em,{children:"Image"})," viewer"]}),"\n",(0,i.jsx)(e.li,{children:"Renders thumbnails as navigation between canvases"}),"\n",(0,i.jsxs)(e.li,{children:["Renders annotations with the ",(0,i.jsx)(e.a,{href:"https://iiif.io/api/presentation/3.0/#values-for-motivation",children:"motivation"})," of ",(0,i.jsx)(e.code,{children:"supplementing"})," with a content resource having the format of ",(0,i.jsx)(e.code,{children:"text/vtt"})," for ",(0,i.jsx)(e.em,{children:"Video"})," and ",(0,i.jsx)(e.em,{children:"Sound"})]}),"\n",(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.em,{children:"Video"})," and ",(0,i.jsx)(e.em,{children:"Sound"})," are rendered within a HTML5 ",(0,i.jsx)(e.code,{children:""})," element"]}),"\n",(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.em,{children:"Image"})," canvases are renderered with ",(0,i.jsx)(e.a,{href:"https://openseadragon.github.io/",children:"OpenSeadragon"})]}),"\n",(0,i.jsx)(e.li,{children:"Supports HLS streaming for Video and Audio canvases"}),"\n",(0,i.jsx)(e.li,{children:"Supports IIIF Collections and toggling between child Manifests"}),"\n",(0,i.jsxs)(e.li,{children:["Supports ",(0,i.jsx)(e.code,{children:"placeholderCanvas"})," for ",(0,i.jsx)(e.em,{children:"Image"})," canvases."]}),"\n"]}),"\n",(0,i.jsx)(e.h2,{id:"installation",children:"Installation"}),"\n",(0,i.jsxs)(h.mQ,{items:["npm","yarn","pnpm"],children:[(0,i.jsx)(h.OK,{children:(0,i.jsx)(e.pre,{"data-language":"shell","data-theme":"default",children:(0,i.jsx)(e.code,{"data-language":"shell","data-theme":"default",children:(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"npm"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"install"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"@samvera/clover-iiif"})]})})})}),(0,i.jsx)(h.OK,{children:(0,i.jsx)(e.pre,{"data-language":"shell","data-theme":"default",children:(0,i.jsx)(e.code,{"data-language":"shell","data-theme":"default",children:(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"yarn"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"add"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"@samvera/clover-iiif"})]})})})}),(0,i.jsx)(h.OK,{children:(0,i.jsx)(e.pre,{"data-language":"shell","data-theme":"default",children:(0,i.jsx)(e.code,{"data-language":"shell","data-theme":"default",children:(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"pnpm"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"install"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"@samvera/clover-iiif"})]})})})})]}),"\n",(0,i.jsx)(e.h2,{id:"usage",children:"Usage"}),"\n",(0,i.jsx)(e.h3,{id:"react",children:"React"}),"\n",(0,i.jsxs)(e.p,{children:["Add the ",(0,i.jsx)(e.code,{children:"Viewer"})," component to your ",(0,i.jsx)(e.code,{children:"jsx"})," or ",(0,i.jsx)(e.code,{children:"tsx"})," code."]}),"\n",(0,i.jsx)(e.pre,{"data-language":"jsx","data-theme":"default",children:(0,i.jsx)(e.code,{"data-language":"jsx","data-theme":"default",children:(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" Viewer "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"@samvera/clover-iiif/viewer"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})})}),"\n",(0,i.jsxs)(e.p,{children:["Render ",(0,i.jsx)(e.code,{children:"Viewer"})," with a IIIF Manifest or Collection URI. The only required prop is the ",(0,i.jsx)(e.code,{children:"iiifContent"}),", which is the URI of the IIIF Manifest or Collection."]}),"\n",(0,i.jsxs)(h.mQ,{items:["Code","Preview"],children:[(0,i.jsx)(h.OK,{children:(0,i.jsx)(e.pre,{"data-language":"jsx","data-theme":"default",children:(0,i.jsx)(e.code,{"data-language":"jsx","data-theme":"default",children:(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Viewer"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"iiifContent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://api.dc.library.northwestern.edu/api/v2/works/8a833741-74a8-40dc-bd1d-c416a3b1bb38?as=iiif"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" />"})]})})})}),(0,i.jsx)(h.OK,{children:(0,i.jsx)(a.Z,{iiifContent:"https://api.dc.library.northwestern.edu/api/v2/works/8a833741-74a8-40dc-bd1d-c416a3b1bb38?as=iiif"})})]}),"\n",(0,i.jsx)(e.h3,{id:"vanilla-javascript",children:"Vanilla JavaScript"}),"\n",(0,i.jsxs)(e.p,{children:["The Viewer can also be implemented in Vanilla Javascript by use of a web component. This web component example sources a registered ",(0,i.jsx)(e.code,{children:""})," web component."]}),"\n",(0,i.jsxs)(h.mQ,{items:["Code","Preview"],children:[(0,i.jsx)(h.OK,{children:(0,i.jsx)(e.pre,{"data-language":"html","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"html","data-theme":"default",children:[(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"html"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"head"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"title"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">Clover IIIF - Viewer - Web Component"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"title"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"meta"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"charset"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"UTF-8"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" />"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"head"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"body"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"script"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"src"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://www.unpkg.com/@samvera/clover-iiif@latest/dist/web-components/index.umd.js"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"script"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"clover-viewer"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"id"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://api.dc.library.northwestern.edu/api/v2/works/8a833741-74a8-40dc-bd1d-c416a3b1bb38?as=iiif"'})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" />"})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"body"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:""}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"html"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]})]})})}),(0,i.jsx)(h.OK,{children:(0,i.jsx)(a.Z,{})})]}),"\n",(0,i.jsx)(e.h3,{id:"nextjs",children:"Next.js"}),"\n",(0,i.jsxs)(e.p,{children:["Implementation with Next.js requires a ",(0,i.jsx)(e.a,{href:"https://nextjs.org/docs/advanced-features/dynamic-import",children:"dynamic import"})," utilizing ",(0,i.jsx)(e.code,{children:"next/dynamic"}),". This is due to Next's node compilation method creating issue with an ",(0,i.jsx)(e.code,{children:"OpenSeadragon"})," (a dependency of Clover IIIF) assumption of a browser ",(0,i.jsx)(e.code,{children:"document"})," object."]}),"\n",(0,i.jsx)(e.pre,{"data-language":"jsx","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"jsx","data-theme":"default",children:[(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" dynamic "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"next/dynamic"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Viewer"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"dynamic"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" () "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"@samvera/clover-iiif"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:")"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".then"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"((Clover) "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Clover"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:".Viewer)"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ssr"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"false"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"MyCustomViewer"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" () "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"iiifContent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://api.dc.library.northwestern.edu/api/v2/collections/c373ecd2-2c45-45f2-9f9e-52dc244870bd?as=iiif"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"return"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Viewer"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"iiifContent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{iiifContent} />;"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"};"})})]})}),"\n",(0,i.jsx)(e.h2,{id:"api-reference",children:"API Reference"}),"\n",(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.code,{children:"Viewer"})," can configured through an ",(0,i.jsx)(e.code,{children:"options"})," prop, which will serve as a object for common options."]}),"\n",(0,i.jsxs)(e.table,{children:[(0,i.jsx)(e.thead,{children:(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.th,{children:"Prop"}),(0,i.jsx)(e.th,{children:"Type"}),(0,i.jsx)(e.th,{children:"Required"}),(0,i.jsx)(e.th,{children:"Default"})]})}),(0,i.jsxs)(e.tbody,{children:[(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"iiifContent"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"string"})}),(0,i.jsx)(e.td,{children:"Yes"}),(0,i.jsx)(e.td,{})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"iiifContentSearchQuery"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.a,{href:"#content-search",children:"See Content Search"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"canvasIdCallback"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"function"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"customDisplays"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.a,{href:"#custom-displays",children:"See Custom Displays"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"customTheme"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"object"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"object"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.background"})}),(0,i.jsxs)(e.td,{children:[(0,i.jsx)(e.code,{children:"string"})," ",(0,i.jsx)(e.a,{href:"https://developer.mozilla.org/en-US/docs/Web/CSS/background",children:"CSS"})]}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"transparent"})})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.canvasBackgroundColor"})}),(0,i.jsxs)(e.td,{children:[(0,i.jsx)(e.code,{children:"string"})," ",(0,i.jsx)(e.a,{href:"https://developer.mozilla.org/en-US/docs/Web/CSS/background",children:"CSS"})]}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"#1a1d1e"})})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.canvasHeight"})}),(0,i.jsxs)(e.td,{children:[(0,i.jsx)(e.code,{children:"string"})," ",(0,i.jsx)(e.a,{href:"https://developer.mozilla.org/en-US/docs/Web/CSS/height",children:"CSS"})]}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"500px"})})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.ignoreCaptionLabels"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"string[]"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"[]"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.openSeadragon"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"OpenSeadragon.Options"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.informationPanel"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.a,{href:"#information-panel",children:"See Information Panel"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.requestHeaders"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"IncomingHttpHeaders"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:'{ "Content-Type": "application/json" }'})})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.showDownload"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"boolean"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"true"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.showIIIFBadge"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"boolean"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"true"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.showTitle"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"boolean"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"true"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.withCredentials"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"boolean"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"false"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.contentSearch"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.a,{href:"#content-search",children:"See Content Search"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{})]})]})]}),"\n",(0,i.jsxs)(e.ul,{children:["\n",(0,i.jsxs)(e.li,{children:["Options ",(0,i.jsx)(e.code,{children:"canvasBackgroundColor"})," and ",(0,i.jsx)(e.code,{children:"canvasHeight"})," will apply to both ",(0,i.jsx)(e.code,{children:""})," elements and the OpenseaDragon canvas."]}),"\n",(0,i.jsxs)(e.li,{children:["Option ",(0,i.jsx)(e.code,{children:"withCredentials"})," being set as ",(0,i.jsx)(e.code,{children:"true"})," will inform IIIF resource requests to be made ",(0,i.jsx)(e.a,{href:"https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials",children:"using credentials"})," such as cookies, authorization headers or TLS client certificates."]}),"\n",(0,i.jsxs)(e.li,{children:["Option ",(0,i.jsx)(e.code,{children:"options.openSeadragon"})," will grant you ability to override the ",(0,i.jsx)(e.a,{href:"https://openseadragon.github.io/docs/OpenSeadragon.html#.Options",children:"OpenSeadragon default options"})," set within the Clover IIIF Viewer to adjust touch and mouse gesture settings and various other configurations."]}),"\n"]}),"\n",(0,i.jsx)(e.h3,{id:"canvas-height",children:"Canvas Height"}),"\n",(0,i.jsxs)(e.p,{children:["The height of the canvas can be set using the ",(0,i.jsx)(e.code,{children:"options.canvasHeight"})," prop. This prop accepts a string value that is a valid CSS height value. The default value is ",(0,i.jsx)(e.code,{children:"500px"}),"."]}),"\n",(0,i.jsx)(e.h4,{id:"automatic-height",children:"Automatic Height"}),"\n",(0,i.jsxs)(e.p,{children:["If the height is set to ",(0,i.jsx)(e.code,{children:"auto"})," or ",(0,i.jsx)(e.code,{children:"100%"}),", the ",(0,i.jsx)(e.strong,{children:"Viewer"})," will expand to the height of its wrapping container element. The wrapping element must have a position ",(0,i.jsx)(e.code,{children:"relative"}),", along with a defined ",(0,i.jsx)(e.code,{children:"height"})," for this to display as expected. Be aware to set a ",(0,i.jsx)(e.code,{children:"z-index"})," value of ",(0,i.jsx)(e.code,{children:"0"})," or an applicable value within your consuming application to ensure the viewer does not conflict with other page elements."]}),"\n",(0,i.jsx)(e.pre,{"data-language":"jsx","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"jsx","data-theme":"default",children:[(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"export"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"default"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"App"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"() {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"iiifContent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://api.dc.library.northwestern.edu/api/v2/works/8a833741-74a8-40dc-bd1d-c416a3b1bb38?as=iiif"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"options"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" canvasHeight"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"auto"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// or "100%"'})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" };"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"return"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ("})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"div"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"style"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{{ position"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"relative"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" height"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"80vh"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" zIndex"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"0"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }}>"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Viewer"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"iiifContent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{iiifContent} "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"options"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{options} />"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"div"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" );"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,i.jsx)(e.h3,{id:"information-panel",children:"Information Panel"}),"\n",(0,i.jsx)(e.p,{children:"The information panel is a collapsible panel that displays information about the current Manifest and renders supplementing resources for the active canvas. It is rendered by default, but can be configured to be hidden or to render only certain tabs."}),"\n",(0,i.jsxs)(e.table,{children:[(0,i.jsx)(e.thead,{children:(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.th,{children:"Prop"}),(0,i.jsx)(e.th,{children:"Type"}),(0,i.jsx)(e.th,{children:"Required"}),(0,i.jsx)(e.th,{children:"Default"})]})}),(0,i.jsxs)(e.tbody,{children:[(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.informationPanel.open"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"boolean"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"true"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.informationPanel.vtt.autoScroll"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.a,{href:"#auto-scroll",children:"See Auto Scroll"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"true"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.informationPanel.renderAbout"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"boolean"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"true"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.informationPanel.renderAnnotation"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"boolean"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"true"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.informationPanel.renderSupplementing"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"boolean"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"true"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.informationPanel.renderToggle"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"boolean"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"true"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.informationPanel.renderContentSearch"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"boolean"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"true"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.informationPanel.defaultTab"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"string"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{})]})]})]}),"\n",(0,i.jsxs)(e.p,{children:["If ",(0,i.jsx)(e.code,{children:"renderAbout"})," is true, Clover will use the About tab as the default tab. Use ",(0,i.jsx)(e.code,{children:"options.informationPanel.defaultTab"})," to set the default tab."]}),"\n",(0,i.jsxs)(e.p,{children:["If you want content search to be the default tab, use ",(0,i.jsx)(e.code,{children:"manifest-content-search"})]}),"\n",(0,i.jsx)(e.pre,{"data-language":"jsx","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"jsx","data-theme":"default",children:[(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Viewer"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"iiifContent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://example.com/manifest/1"'})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"options"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{{"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" informationPanel"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" defaultTab"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"manifest-content-search"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }}"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"/>"})})]})}),"\n",(0,i.jsx)(e.p,{children:"If the manifest has annotations, and you want one of the anotations to be the default tab, use the id from the annotation page."}),"\n",(0,i.jsx)(e.pre,{"data-language":"json","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"@context"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"http://iiif.io/api/presentation/3/context.json"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"]"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"Manifest"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ..."})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"items"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"id"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"http://example.com/manifest/canvas/1"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"Canvas"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"height"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"1000"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"width"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"2000"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"annotations"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"id"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"http://example.com/manifest/annotation/1"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"AnnotationPage"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"items"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [...]"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,i.jsx)(e.pre,{"data-language":"jsx","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"jsx","data-theme":"default",children:[(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Viewer"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"iiifContent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://example.com/manifest/1"'})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"options"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{{"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" informationPanel"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" defaultTab"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"http://example.com/manifest/annotation/1"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }}"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"/>"})})]})}),"\n",(0,i.jsx)(e.h3,{id:"auto-scroll",children:"Auto Scroll"}),"\n",(0,i.jsxs)(e.p,{children:["When VTT annotations are displayed, the Clover IIIF Viewer can automatically scroll the information panel to keep the currently active caption in view. Whether it does so (and how) is governed by the ",(0,i.jsx)(e.code,{children:"informationPanel.vtt.autoScroll"})," configuration option. The possible values are:"]}),"\n",(0,i.jsxs)(e.ul,{children:["\n",(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.code,{children:"{ behavior: (behavior), block: (block) }"}),": auto-scroll using the given settings (see below)."]}),"\n",(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.code,{children:"true"}),": Auto-scroll using the default behavior. This is equivalent to ",(0,i.jsx)(e.code,{children:'{ behavior: "smooth", block: "center" }'}),"."]}),"\n",(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.code,{children:"false"}),": Do not auto-scroll."]}),"\n"]}),"\n",(0,i.jsxs)(e.p,{children:["The settings take the form ",(0,i.jsx)(e.code,{children:'{ behavior: "auto" | "instant" | "smooth", block: "center" | "end" | "nearest" | "start" }'}),", and have the same effect as the ",(0,i.jsx)(e.code,{children:"scrollIntoViewOptions"})," object documented with the ",(0,i.jsx)(e.a,{href:"https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView",children:(0,i.jsx)(e.code,{children:"Element.scrollIntoView()"})})," Web API method. (The ",(0,i.jsx)(e.code,{children:"inline"})," option does not apply since there is no horizontal scrolling involved.)"]}),"\n",(0,i.jsx)(e.h3,{id:"custom-displays",children:"Custom Displays"}),"\n",(0,i.jsxs)(e.p,{children:["Clients may wish to use their own display components (for example a PDF Viewer, or an audio player, etc). To configure custom displays, use the ",(0,i.jsx)(e.code,{children:"customDisplays"})," prop, which is an array of objects defining ",(0,i.jsx)(e.code,{children:"display"})," and ",(0,i.jsx)(e.code,{children:"target"})," properties. ",(0,i.jsx)(e.a,{href:"#custom-canvas-displays",children:"See an example implementation"})]}),"\n",(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.code,{children:"display.component"})," is a custom React component, and ",(0,i.jsx)(e.code,{children:"display.componentProps"})," are pass-through props which ",(0,i.jsx)(e.code,{children:"Viewer"})," will attach to your Custom Display component. The ",(0,i.jsx)(e.code,{children:"target"})," object provides two methods of matching a Canvas to a Custom Display: ",(0,i.jsx)(e.code,{children:"target.canvasId"})," which is a manifest's canvas ",(0,i.jsx)(e.code,{children:"id"}),". Or by ",(0,i.jsx)(e.code,{children:"target.paintingFormat"})," (ie. ",(0,i.jsx)(e.code,{children:"application/pdf"}),") which is the ",(0,i.jsx)(e.code,{children:"body.type"})," in a canvas's ",(0,i.jsx)(e.code,{children:"Annotation"}),' of type "painting".']}),"\n",(0,i.jsxs)(e.table,{children:[(0,i.jsx)(e.thead,{children:(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.th,{children:"Prop"}),(0,i.jsx)(e.th,{children:"Type"}),(0,i.jsx)(e.th,{children:"Required"}),(0,i.jsx)(e.th,{children:"Default"})]})}),(0,i.jsxs)(e.tbody,{children:[(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"customDisplays.display.component"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"React.Node"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"customDisplays.display.componentProps"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"object"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"customDisplays.target.canvasId"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"string[]"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"customDisplays.target.paintingFormat"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"string[]"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{})]})]})]}),"\n",(0,i.jsx)(e.h3,{id:"content-search",children:"Content search"}),"\n",(0,i.jsx)(e.p,{children:"Clover supports IIIF content search v2. In order to display content search in the information panel, add a content search service to the manifest."}),"\n",(0,i.jsx)(e.pre,{"data-language":"json","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"@context"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"http://iiif.io/api/presentation/3/context.json"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"]"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"Manifest"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ..."})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"service"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"id"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://example.com/search"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"SearchService2"'})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,i.jsxs)(e.table,{children:[(0,i.jsx)(e.thead,{children:(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.th,{children:"Prop"}),(0,i.jsx)(e.th,{children:"Type"}),(0,i.jsx)(e.th,{children:"Required"}),(0,i.jsx)(e.th,{children:"Default"})]})}),(0,i.jsxs)(e.tbody,{children:[(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"iiifContentSearchQuery.q"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"string"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.contentSearch.searchResultsLimit"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"number"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"20"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.contentSearch.overlays.backgroundColor"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"string"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"#ff66660"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.contentSearch.overlays.borderColor"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"string"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"#990000"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.contentSearch.overlays.borderType"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"string"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"solid"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.contentSearch.overlays.borderWidth"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"string"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"1px"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.contentSearch.overlays.opacity"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"string"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"0.5"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.contentSearch.overlays.renderOverlays"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"boolean"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"true"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.contentSearch.overlays.zoomLevel"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"number"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"4"})]})]})]}),"\n",(0,i.jsxs)(e.p,{children:["Many sites have a search functionality that returns a list objects that match the search terms. Clicking on a search result will display a details page for one object. If you want to highlight the search terms when the Clover image viewer loads on the details page, use ",(0,i.jsx)(e.code,{children:"iiifContentSearchQuery"})," when setting up the viewer."]}),"\n",(0,i.jsx)(e.pre,{"data-language":"jsx","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"jsx","data-theme":"default",children:[(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Viewer"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"iiifContent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://example.com/manifest/1"'})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"iiifContentSearchQuery"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{{"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" q"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"my search terms"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }}"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"/>"})})]})}),"\n",(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.code,{children:"options.contentSearch.searchResultsLimit"})," is the maximum number of search results to display per canvas in the information panel. If set to ",(0,i.jsx)(e.code,{children:"undefined"}),", Clover will show all search results."]}),"\n",(0,i.jsxs)(e.p,{children:["By default, Clover's content search will draw light red boxes in the image viewer for each search result returned by the search service. You can set the appearance of the highlighted boxes using ",(0,i.jsx)(e.code,{children:"options.contentSearch.overlays"}),". If you don't want the search results to be highlighted, set ",(0,i.jsx)(e.code,{children:"options.contentSearch.overlays.renderOverlays"})," to ",(0,i.jsx)(e.code,{children:"false"}),"."]}),"\n",(0,i.jsxs)(e.p,{children:["When you click on the list of search results, Clover will pan and zoom to the location of that search result. You can set the zoom level using ",(0,i.jsx)(e.code,{children:"options.contentSearch.overlays.zoomLevel"}),". A small zoom level will zoom in real close; a large zoom level will zoom in less."]}),"\n",(0,i.jsx)(e.h3,{id:"deprecated-options",children:"Deprecated Options"}),"\n",(0,i.jsxs)(e.table,{children:[(0,i.jsx)(e.thead,{children:(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.th,{children:"Prop"}),(0,i.jsx)(e.th,{children:"In Favor Of"}),(0,i.jsx)(e.th,{children:"Deprecated"})]})}),(0,i.jsxs)(e.tbody,{children:[(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"id"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"iiifContent"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"v2.0.0"})})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"manifestId"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"iiifContent"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"v2.0.0"})})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.renderAbout"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.informationPanel.renderAbout"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"v2.0.3"})})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.showInformationToggle"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.informationPanel.renderToggle"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"v2.0.3"})})]})]})]}),"\n",(0,i.jsx)(e.h3,{id:"basic-configuration",children:"Basic Configuration"}),"\n",(0,i.jsxs)(e.p,{children:["Example customization of various ",(0,i.jsx)(e.code,{children:"options"}),"."]}),"\n",(0,i.jsx)(e.pre,{"data-language":"jsx","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"jsx","data-theme":"default",children:[(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"options"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Primary title (Manifest label) for top level canvas. Defaults to true"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" showTitle"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"false"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// IIIF Badge and popover containing options. Defaults to true"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" showIIIFBadge"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"false"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Ignore supplementing canvases by label value that are not for captioning"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ignoreCaptionLabels"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'Chapters'"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"]"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Override canvas background color, defaults to #1a1d1e"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" canvasBackgroundColor"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"#000"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Set canvas zooming onScoll (this defaults to false)"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" openSeadragon"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" gestureSettingsMouse"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" scrollToZoom"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"true"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Viewer"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"iiifContent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://api.dc.library.northwestern.edu/api/v2/works/8a833741-74a8-40dc-bd1d-c416a3b1bb38?as=iiif"'})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"options"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{options}"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"/>"})})]})}),"\n",(0,i.jsx)(e.h3,{id:"active-canvas",children:"Active Canvas"}),"\n",(0,i.jsxs)(e.p,{children:["Example on using ",(0,i.jsx)(e.code,{children:"canvasIdCallback"})," to return to your consuming application the active canvas ID. This will return as a string."]}),"\n",(0,i.jsx)(e.pre,{"data-language":"jsx","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"jsx","data-theme":"default",children:[(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"iiifContent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://api.dc.library.northwestern.edu/api/v2/works/8a833741-74a8-40dc-bd1d-c416a3b1bb38?as=iiif"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"handlCanvasIdCallback"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" (activeCanvasId) "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"if"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" (activeCanvasId) "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"console"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".log"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"(activeCanvasId);"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"};"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"return"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ("})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Viewer"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"iiifContent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{iiifContent} "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"canvasIdCallback"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{handlCanvasIdCallback} />"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})})]})}),"\n",(0,i.jsx)(e.hr,{}),"\n",(0,i.jsx)(e.h3,{id:"captions",children:"Captions"}),"\n",(0,i.jsxs)(e.p,{children:["WebVTT content resources are the source for both content mapped closed captioning ",(0,i.jsx)(e.code,{children:" "})," elements in the HTML 5 video player and to the navigator panel adjacent to it. You may ignore these resources as tracks if they are not intended for closed captioning or subtitling by string values matching the label of the content resource. This is a manual option within the viewer as there is no defined way for a manifest to prescribe motivation for these resources beyond ",(0,i.jsx)(e.code,{children:"supplementing"}),"."]}),"\n",(0,i.jsx)(e.pre,{"data-language":"jsx","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"jsx","data-theme":"default",children:[(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"export"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"default"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"App"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"() {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"iiifContent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://raw.githubusercontent.com/samvera-labs/clover-iiif/main/public/fixtures/iiif/manifests/captions.json"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"options"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ignoreCaptionLabels"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"Chapters"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"]"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" };"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"return"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Viewer"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"iiifContent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{iiifContent} "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"options"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{options} />;"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,i.jsx)(e.hr,{}),"\n",(0,i.jsx)(e.h3,{id:"custom-theme",children:"Custom Theme"}),"\n",(0,i.jsx)(e.p,{children:"You may choose to override the base theme by setting optional colors and fonts. Naming conventions for colors are limited to those shown in the config example below."}),"\n",(0,i.jsx)(e.pre,{"data-language":"jsx","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"jsx","data-theme":"default",children:[(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"iiifContent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://api.dc.library.northwestern.edu/api/v2/works/8a833741-74a8-40dc-bd1d-c416a3b1bb38?as=iiif"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"customTheme"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" colors"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"/**"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:" * Black and dark grays in a light theme."})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:" * All must contrast to 4.5 or greater with `secondary`."})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:" */"})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" primary"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"#37474F"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" primaryMuted"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"#546E7A"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" primaryAlt"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"#263238"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"/**"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:" * Key brand color(s)."})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:" * `accent` must contrast to 4.5 or greater with `secondary`."})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:" */"})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" accent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"#C62828"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" accentMuted"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"#E57373"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" accentAlt"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"#B71C1C"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"/**"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:" * White and light grays in a light theme."})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:" * All must must contrast to 4.5 or greater with `primary` and `accent`."})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:" */"})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" secondary"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"#FFFFFF"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" secondaryMuted"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"#ECEFF1"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" secondaryAlt"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"#CFD8DC"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" fonts"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" sans"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"\"'Helvetica Neue', sans-serif\""}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" display"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"Optima, Georgia, Arial, sans-serif"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"};"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"return"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Viewer"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"iiifContent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{iiifContent} "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"customTheme"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{customTheme} />;"})]})]})}),"\n",(0,i.jsx)(e.h4,{id:"css-classes",children:"CSS Classes"}),"\n",(0,i.jsx)(e.p,{children:"Additional CSS classes are made available on structural HTML elements in the Viewer, which may be referenced in a client's own CSS files/style definitions to further customize the Viewer's appearance. You may inspect the DOM to see classes applied to each element, but in general it follows a pattern similar to:"}),"\n",(0,i.jsx)(e.pre,{"data-language":"html","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"html","data-theme":"default",children:[(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"div"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"class"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"clover-viewer"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"header"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"class"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"clover-viewer-header"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" />"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"div"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"class"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"clover-viewer-content"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"div"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"class"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"clover-viewer-painting"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">..."}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"div"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"div"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:""}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"div"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]})]})}),"\n",(0,i.jsx)(e.hr,{}),"\n",(0,i.jsx)(e.h3,{id:"request-headers",children:"Request Headers"}),"\n",(0,i.jsxs)(e.p,{children:["In some cases, a client may need to request Manifest or Collection resources with custom request headers, ex: ",(0,i.jsx)(e.code,{children:"Authorization"}),". This can be done by passing a ",(0,i.jsx)(e.code,{children:"requestHeaders"})," object to the ",(0,i.jsx)(e.code,{children:"options"})," prop. This object will be passed to the request call made by the Viewer. Accepted ",(0,i.jsx)(e.strong,{children:"header"})," keys are defined in the ",(0,i.jsx)(e.a,{href:"https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/http.d.ts",children:"IncomingHttpHeaders"})," interface."]}),"\n",(0,i.jsx)(e.pre,{"data-language":"jsx","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"jsx","data-theme":"default",children:[(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"iiifContent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://api.dc.library.northwestern.edu/api/v2/works/8a833741-74a8-40dc-bd1d-c416a3b1bb38?as=iiif"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"token"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"return"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ("})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Viewer"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"iiifContent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{iiifContent}"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"options"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{{"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" requestHeaders"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"Content-Type"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"application/json"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" Authorization"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"`Bearer "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"${"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"token"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"}"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"`"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }}"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" />"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})})]})}),"\n",(0,i.jsx)(e.hr,{}),"\n",(0,i.jsx)(e.h3,{id:"custom-canvas-displays",children:"Custom canvas displays"}),"\n",(0,i.jsxs)(e.p,{children:["Clients may wish to use their own display components instead of Clover Viewer's default displays (",(0,i.jsx)(e.a,{href:"https://openseadragon.github.io/",children:"OpenSeadragon"})," for images and ",(0,i.jsx)(e.a,{href:"https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video",children:"HTML Video Player"})," for audio/video). The ",(0,i.jsx)(e.code,{children:"Viewer"})," component allows a client to target individual ",(0,i.jsx)(e.code,{children:"canvas"})," items in a IIIF Manifest by either direct reference to a canvas ",(0,i.jsx)(e.code,{children:"id"})," or ",(0,i.jsx)(e.code,{children:"format"})," (ie. ",(0,i.jsx)(e.code,{children:"video/ogg"}),"). See the Type Definition below for ",(0,i.jsx)(e.code,{children:"CustomDisplay"}),", and an example implementation."]}),"\n",(0,i.jsx)(e.pre,{"data-language":"tsx","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"tsx","data-theme":"default",children:[(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" AnotherCustomDisplay "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"./AnotherCustomDisplay"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"type"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"CustomDisplay"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" display"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" component"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"React"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"."}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"ElementType"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" componentProps"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Any custom props you want to pass to your component"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [key"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"]"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"any"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" };"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" };"})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" target"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" canvasId"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"[];"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" paintingFormat"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"[]; "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// "application/pdf" or "application/epub+zip"'})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" };"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"};"})}),"\n",(0,i.jsx)(e.span,{className:"line highlighted",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"MyCustomDisplay"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"({ id"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" annotationBody"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"..."}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"restProps }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"CustomDisplay"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:") {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"return"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ("})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"div"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"h1"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">My Custom Display"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"h1"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"p"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">Canvas ID: {id}"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"p"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"p"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">Annotation Body:"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"p"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"pre"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">{"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"JSON"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".stringify"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"(annotationBody)}"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"pre"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"p"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">Custom props:"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"p"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"pre"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">{"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"JSON"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".stringify"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"(restProps)}"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"pre"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ...your display here"})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"div"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" );"})}),"\n",(0,i.jsx)(e.span,{className:"line highlighted",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})}),"\n",(0,i.jsx)(e.span,{className:"line highlighted",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Viewer"})]}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"iiifContent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{iiifContent}"})]}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"customDisplays"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{["})]}),"\n",(0,i.jsx)(e.span,{className:"line highlighted",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" display"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" component"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" MyCustomDisplay"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" componentProps"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" foo"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"bar"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" target"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" canvasId"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://uri-for-a-canvas-id/access/0"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://uri-for-a-canvas-id/access/1"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" display"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" component"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" AnotherCustomDisplay"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" target"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" paintingFormat"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"application/pdf"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"image/gif"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"]"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]}"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"/>;"})})]})}),"\n",(0,i.jsxs)(e.p,{children:["The ",(0,i.jsx)(e.code,{children:"Viewer"})," component will pass the following props to your custom display component:"]}),"\n",(0,i.jsxs)(e.ul,{children:["\n",(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.code,{children:"id"}),": The canvas ",(0,i.jsx)(e.code,{children:"id"})," for the resource being rendered. This may be helpful if you wanted to use the canvas ",(0,i.jsx)(e.code,{children:"id"})," to fetch additional data from your application's API."]}),"\n",(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.code,{children:"annotationBody"}),": The ",(0,i.jsx)(e.code,{children:"body"})," value for a canvas ",(0,i.jsx)(e.code,{children:"Annotation"})," item with ",(0,i.jsx)(e.code,{children:"motivation"}),' "painting".']}),"\n"]}),"\n",(0,i.jsx)(e.pre,{"data-language":"json","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"id"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://uri-for-a-canvas-id/access/0"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"Annotation"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"motivation"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"painting"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"body"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"format"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"application/pdf"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"height"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"1686"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"id"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"http://localhost:3000/media/pdf/file-sample_150kB.pdf"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"width"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"1192"})]}),"\n",(0,i.jsx)(e.span,{className:"line highlighted",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.a,{href:"https://github.com/samvera-labs/clover-iiif/blob/main/docs/components/CustomDisplays/PDFViewer.tsx",children:"See a complete recipe for a PDF Viewer"})," using custom canvas displays."]})]})}let p={MDXContent:function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:e}=Object.assign({},(0,t.a)(),s.components);return e?(0,i.jsx)(e,{...s,children:(0,i.jsx)(x,{...s})}):x(s)},pageOpts:{filePath:"pages/docs/viewer.mdx",route:"/docs/viewer",frontMatter:{title:"Viewer"},pageMap:[{kind:"Meta",data:{index:{type:"page",title:"Clover IIIF",display:"hidden",theme:{layout:"raw"}},docs:{title:"Documentation",type:"page"},contact:{title:"IIIF Presentation API ↗",type:"page",href:"https://iiif.io/api/presentation",newWindow:!0}}},{kind:"Folder",name:"docs",route:"/docs",children:[{kind:"Meta",data:{index:"Overview",composing:"Composing","--components":{type:"separator",title:"IIIF Components"},image:"Image",scroll:{title:"Scroll",type:"doc"},slider:"Slider",viewer:"Viewer","--primitives":{type:"separator",title:"IIIF Primitives"},homepage:"Homepage",label:"Label",metadata:"Metadata",partOf:"PartOf",requiredStatement:"RequiredStatement",seeAlso:"SeeAlso",summary:"Summary",thumbnail:"Thumbnail",rendering:"Rendering"}},{kind:"MdxPage",name:"composing",route:"/docs/composing",frontMatter:{title:"Getting Started"}},{kind:"MdxPage",name:"homepage",route:"/docs/homepage",frontMatter:{title:"Homepage"}},{kind:"MdxPage",name:"image",route:"/docs/image",frontMatter:{title:"Image"}},{kind:"MdxPage",name:"index",route:"/docs",frontMatter:{title:"Docs"}},{kind:"MdxPage",name:"label",route:"/docs/label",frontMatter:{title:"Label"}},{kind:"MdxPage",name:"metadata",route:"/docs/metadata",frontMatter:{title:"Metadata"}},{kind:"MdxPage",name:"partOf",route:"/docs/partOf",frontMatter:{title:"PartOf"}},{kind:"MdxPage",name:"rendering",route:"/docs/rendering",frontMatter:{title:"Rendering"}},{kind:"MdxPage",name:"requiredStatement",route:"/docs/requiredStatement",frontMatter:{title:"RequiredStatement"}},{kind:"Folder",name:"scroll",route:"/docs/scroll",children:[{kind:"Meta",data:{demo:{title:"Demo",theme:{sidebar:!1,layout:"full"}}}},{kind:"MdxPage",name:"demo",route:"/docs/scroll/demo"}]},{kind:"MdxPage",name:"scroll",route:"/docs/scroll",frontMatter:{title:"Scroll"}},{kind:"MdxPage",name:"seeAlso",route:"/docs/seeAlso",frontMatter:{title:"SeeAlso"}},{kind:"Folder",name:"slider",route:"/docs/slider",children:[{kind:"Meta",data:{demo:{title:"Demo",theme:{sidebar:!1,layout:"full"}}}},{kind:"MdxPage",name:"demo",route:"/docs/slider/demo"}]},{kind:"MdxPage",name:"slider",route:"/docs/slider",frontMatter:{title:"Slider"}},{kind:"MdxPage",name:"summary",route:"/docs/summary",frontMatter:{title:"Summary"}},{kind:"MdxPage",name:"thumbnail",route:"/docs/thumbnail",frontMatter:{title:"Thumbnail"}},{kind:"Folder",name:"viewer",route:"/docs/viewer",children:[{kind:"Meta",data:{demo:{theme:{layout:"full",sidebar:!1},title:"Demo"},contentsearch:{display:"hidden",title:"Content Search",theme:{sidebar:!1,layout:"full"}}}},{kind:"MdxPage",name:"contentsearch",route:"/docs/viewer/contentsearch"},{kind:"MdxPage",name:"demo",route:"/docs/viewer/demo"}]},{kind:"MdxPage",name:"viewer",route:"/docs/viewer",frontMatter:{title:"Viewer"}}]},{kind:"MdxPage",name:"index",route:"/"}],flexsearch:{codeblocks:!0},title:"Viewer",headings:d},pageNextRoute:"/docs/viewer",nextraLayout:l.ZP,themeConfig:o.Z};e.default=(0,r.j)(p)},2712:function(s,e,n){"use strict";n.d(e,{Z:function(){return h}});var i=n(1527),r=n(5047),l=n.n(r),o=n(3699);let t=()=>{let{resolvedTheme:s}=(0,o.F)();return"dark"===s};var a=n(4750);let c=l()(()=>Promise.all([n.e(178),n.e(668),n.e(196),n.e(646),n.e(332),n.e(50),n.e(237),n.e(792),n.e(129),n.e(510)]).then(n.bind(n,888)),{loadableGenerated:{webpack:()=>[888]},ssr:!1});var h=s=>{let{iiifContent:e="https://api.dc.library.northwestern.edu/api/v2/works/71153379-4283-43be-8b0f-4e7e3bfda275?as=iiif",options:n,customDisplays:r,iiifContentSearchQuery:l}=s,o=(0,a.useRouter)(),h=o.query["iiif-content"]?o.query["iiif-content"]:e,d=t()?"rgb(17, 17, 17)":"#fff";return(0,i.jsx)(c,{iiifContent:h,iiifContentSearchQuery:l,options:{...n,background:d},...r&&{customDisplays:r}},h)}},1762:function(s,e,n){"use strict";var i=n(1527),r=n(1890),l=n.n(r);n(959);var o=n(5455);let t=()=>{let s="#ed1d33",e="#2873ab";return(0,i.jsxs)("svg",{viewBox:"0 0 493.35999 441.33334",id:"iiif-logo",version:"1.1",style:{height:"1rem"},children:[(0,i.jsx)("title",{children:"IIIF Logo"}),(0,i.jsx)("g",{transform:"matrix(1.3333333,0,0,-1.3333333,0,441.33333)",children:(0,i.jsxs)("g",{transform:"scale(0.1)",children:[(0,i.jsx)("path",{style:{fill:e},d:"M 65.2422,2178.75 775.242,1915 773.992,15 65.2422,276.25 v 1902.5"}),(0,i.jsx)("path",{style:{fill:e},d:"m 804.145,2640.09 c 81.441,-240.91 -26.473,-436.2 -241.04,-436.2 -214.558,0 -454.511,195.29 -535.9527,436.2 -81.4335,240.89 26.4805,436.18 241.0387,436.18 214.567,0 454.512,-195.29 535.954,-436.18"}),(0,i.jsx)("path",{style:{fill:s},d:"M 1678.58,2178.75 968.578,1915 969.828,15 1678.58,276.25 v 1902.5"}),(0,i.jsx)("path",{style:{fill:s},d:"m 935.082,2640.09 c -81.437,-240.91 26.477,-436.2 241.038,-436.2 214.56,0 454.51,195.29 535.96,436.2 81.43,240.89 -26.48,436.18 -241.04,436.18 -214.57,0 -454.52,-195.29 -535.958,-436.18"}),(0,i.jsx)("path",{style:{fill:e},d:"m 1860.24,2178.75 710,-263.75 -1.25,-1900 -708.75,261.25 v 1902.5"}),(0,i.jsx)("path",{style:{fill:e},d:"m 2603.74,2640.09 c 81.45,-240.91 -26.47,-436.2 -241.03,-436.2 -214.58,0 -454.52,195.29 -535.96,436.2 -81.44,240.89 26.48,436.18 241.03,436.18 214.57,0 454.51,-195.29 535.96,-436.18"}),(0,i.jsx)("path",{style:{fill:s},d:"m 3700.24,3310 v -652.5 c 0,0 -230,90 -257.5,-142.5 -2.5,-247.5 0,-336.25 0,-336.25 l 257.5,83.75 V 1690 l -258.61,-92.5 V 262.5 L 2735.24,0 v 2360 c 0,0 -15,850 965,950"})]})})]})},a=(0,o.zo)(l(),{display:"inline-flex",flexDirection:"column",textDecoration:"none",alignItems:"center",padding:"0.5rem 0"}),c=(0,o.zo)("span",{display:"inline-flex",alignItems:"center",justifyContent:"center"});e.Z=s=>{let{children:e,href:n,text:r=["Presentation API"]}=s;return(0,i.jsx)(a,{href:n,target:"_blank",className:"nx-flex-col",children:(0,i.jsxs)(c,{className:"nx-gap-2 nx-h-7 nx-rounded-md nx-px-2 nx-text-left nx-text-sm nx-font-medium nx-text-gray-600 nx-transition-colors dark:nx-text-gray-400 hover:nx-bg-gray-100 hover:nx-text-gray-900 dark:hover:nx-bg-primary-100/5 dark:hover:nx-text-gray-50",children:[(0,i.jsx)(t,{})," ",r.join(" or ")," ↗"]})})}},5455:function(s,e,n){"use strict";n.d(e,{BC:function(){return r},F4:function(){return t},zo:function(){return l}});var i=n(458);let r={xxs:"(max-width: 349px)",xs:"(max-width: 575px)",sm:"(max-width: 767px)",md:"(max-width: 991px)",lg:"(max-width: 90rem)",xl:"(min-width: calc(90rem + 1px))"},{styled:l,css:o,keyframes:t,createTheme:a}=(0,i.Th)({theme:{colors:{primary:"#1a1d1e",primaryMuted:"#26292b",primaryAlt:"#151718",accent:"hsl(".concat(209," 100% 38.2%)"),accentMuted:"hsl(".concat(209," 80% 61.8%)"),accentAlt:"hsl(".concat(209," 80% 30%)"),secondary:"#FFFFFF",secondaryMuted:"#e6e8eb",secondaryAlt:"#c1c8cd"},fontSizes:{1:"12px",2:"13px",3:"15px",4:"17px",5:"19px",6:"21px",7:"27px",8:"35px",9:"59px"},lineHeights:{1:"12px",2:"13px",3:"15px",4:"17px",5:"19px",6:"21px",7:"27px",8:"35px",9:"59px"},sizes:{1:"5px",2:"10px",3:"15px",4:"20px",5:"25px",6:"35px",7:"45px",8:"65px",9:"80px"},space:{1:"5px",2:"10px",3:"15px",4:"20px",5:"25px",6:"35px",7:"45px",8:"65px",9:"80px"},radii:{1:"4px",2:"6px",3:"8px",4:"12px",round:"50%",pill:"9999px"},transitions:{all:"all 300ms cubic-bezier(0.16, 1, 0.3, 1)"},zIndices:{1:"100",2:"200",3:"300",4:"400",max:"999"}},media:r})},2188:function(s,e,n){"use strict";n.d(e,{Z:function(){return j}});var i=n(1527),r=n(635),l=n.n(r),o=n(959);let t={position:"relative",top:"-1px",right:"0",backgroundColor:"hsl(var(--nextra-primary-hue), var(--nextra-primary-saturation), 32%)",color:"white",borderRadius:"6px",padding:"2px 4px",fontSize:"0.7222rem",fontWeight:"700",marginLeft:"10px"},a=["Scroll"];var c=s=>{let{title:e}=s;return a.includes(e)?(0,i.jsxs)("span",{children:[e,(0,i.jsx)("span",{style:t,children:"Beta"})]}):(0,i.jsx)("span",{children:e})},h=n(2610),d=n(4750);let x="Clover IIIF",p="Showcase IIIF Manifests as interoperable web content.";var j={darkMode:!0,nextThemes:{defaultTheme:"system"},docsRepositoryBase:"https://github.com/samvera-labs/clover-iiif",footer:{text:"Extensible IIIF front-end toolkit and Manifest viewer. Accessible. Composable. Open Source."},useNextSeoProps(){let s=(0,h.ZR)(),e=s.frontMatter.title?"".concat(s.frontMatter.title," – ").concat(x):"".concat(x," – ").concat(p),n=s.frontMatter.description?s.frontMatter.description:p,{route:i}=(0,d.useRouter)(),r=(0,o.useMemo)(()=>new URL(i.endsWith("/")?i:"".concat(i,"/"),"https://samvera-labs.github.io/clover-iiif/").href,[i]);return{defaultTitle:"".concat(x," - ").concat(p),title:e,description:n,canonical:r,openGraph:{url:r,title:e,siteName:"".concat(x," - ").concat(p),images:[{url:"",type:"image/png",width:1200,height:675}]},twitter:{cardType:"summary_large_image"}}},logo:(0,i.jsx)(()=>(0,i.jsxs)("span",{className:"jsx-64174b446b45575f",children:[(0,i.jsxs)("svg",{id:"clover-iiif-logo",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 45.11 8.15",fill:"none",className:"jsx-64174b446b45575f",children:[(0,i.jsx)("path",{fill:"currentColor",d:"m5.66,6.02c-.21.11-.43.21-.65.3s-.51.13-.83.13c-.63,0-1.13-.18-1.48-.55-.36-.37-.53-.9-.53-1.61,0-.46.07-.85.22-1.17.15-.32.36-.57.65-.74.28-.17.63-.26,1.04-.26.31,0,.59.05.83.14.24.1.46.21.66.35.14-.09.26-.21.36-.37.1-.16.16-.33.16-.53,0-.25-.09-.47-.28-.66s-.45-.34-.79-.46c-.34-.11-.76-.17-1.25-.17-.69,0-1.32.15-1.89.45-.57.3-1.03.74-1.36,1.31-.34.57-.5,1.27-.5,2.11,0,.89.17,1.62.52,2.18.35.57.82.99,1.4,1.26.59.27,1.24.41,1.96.41.38,0,.7-.03.96-.1.26-.06.47-.13.61-.19.23-.1.4-.23.49-.38.1-.15.14-.32.14-.5,0-.21-.04-.39-.11-.55-.08-.16-.18-.29-.32-.4Z",className:"jsx-64174b446b45575f"}),(0,i.jsx)("path",{fill:"currentColor",d:"m7.55,0c-.19,0-.37.01-.53.04s-.29.05-.38.07v6.96c0,.37.09.62.27.76.18.14.47.2.86.2.19,0,.37-.01.53-.04.16-.02.29-.05.38-.07V.96c0-.38-.09-.63-.26-.76-.18-.13-.46-.2-.86-.2Z",className:"jsx-64174b446b45575f"}),(0,i.jsx)("path",{fill:"currentColor",d:"m13.93,2.3c-.47-.26-1.02-.38-1.65-.38s-1.17.13-1.64.38c-.47.25-.84.61-1.1,1.07-.26.46-.4,1.01-.4,1.64s.13,1.2.39,1.67c.26.46.63.82,1.1,1.07.47.25,1.02.37,1.66.37s1.19-.13,1.66-.38c.47-.25.83-.61,1.09-1.07.26-.46.39-1.02.39-1.66s-.13-1.17-.4-1.63c-.26-.46-.63-.82-1.1-1.08Zm-.87,3.83c-.18.26-.44.39-.78.39s-.6-.13-.78-.38c-.18-.26-.28-.63-.28-1.13s.09-.85.28-1.11c.19-.26.45-.39.77-.39s.59.13.77.4.28.63.28,1.1-.09.86-.28,1.12Z",className:"jsx-64174b446b45575f"}),(0,i.jsx)("path",{fill:"currentColor",d:"m20.29,1.98c-.35,0-.67.08-.96.23-.14.69-.29,1.39-.46,2.12s-.33,1.38-.48,1.97h-.06c-.02-.11-.06-.25-.1-.42-.04-.17-.09-.36-.15-.57s-.12-.43-.18-.67l-.47-1.84c-.08-.32-.21-.54-.4-.65-.18-.12-.42-.17-.7-.17-.22,0-.43.04-.62.13s-.34.18-.45.29c.06.29.15.62.27,1.01.12.38.24.78.38,1.19.14.41.27.81.41,1.2.14.39.27.73.4,1.04.12.3.23.54.32.71.09.18.25.3.47.38.23.08.5.12.81.12.27,0,.52-.03.74-.09.22-.06.38-.13.49-.21.12-.22.26-.5.41-.85.15-.35.31-.73.46-1.15.16-.41.3-.82.43-1.21s.23-.75.31-1.06.12-.54.12-.7c0-.3-.1-.5-.29-.62s-.43-.18-.71-.18Z",className:"jsx-64174b446b45575f"}),(0,i.jsx)("path",{fill:"currentColor",d:"m25.91,2.25c-.42-.22-.92-.33-1.49-.33-.38,0-.74.06-1.1.17-.36.12-.68.29-.97.53-.29.24-.52.55-.69.94-.17.38-.26.84-.26,1.37,0,.71.15,1.3.44,1.78.29.47.69.83,1.19,1.06.5.24,1.06.35,1.69.35.45,0,.84-.04,1.19-.12.34-.08.61-.21.81-.38.2-.17.29-.39.29-.65,0-.16-.04-.31-.13-.46-.09-.14-.2-.26-.32-.34-.18.1-.43.2-.73.29-.3.09-.62.13-.96.13s-.67-.07-.95-.22c-.23-.11-.37-.32-.47-.58l2.96-.44c.27-.04.48-.13.64-.28.15-.14.23-.35.23-.62,0-.5-.12-.93-.36-1.31-.24-.38-.57-.68-1-.9Zm-2.59,2.21c.04-.31.13-.56.31-.74.21-.21.48-.31.8-.31s.53.08.67.24c.14.16.22.32.24.48l-2.02.33Z",className:"jsx-64174b446b45575f"}),(0,i.jsx)("path",{fill:"currentColor",d:"m30.59,1.93c-.4,0-.79.04-1.16.13-.38.09-.7.22-.98.38-.2.13-.36.28-.49.45-.12.17-.19.37-.19.61v3.56c0,.37.09.62.27.76.18.14.47.2.86.2.19,0,.37-.01.53-.04.16-.02.29-.05.38-.07V3.82c.17-.1.36-.17.59-.22.22-.05.44-.07.64-.07.14,0,.26,0,.37.01.11,0,.21.02.29.04.06-.09.1-.19.14-.32s.06-.26.06-.4c0-.62-.44-.92-1.31-.92Z",className:"jsx-64174b446b45575f"}),(0,i.jsx)("path",{fill:"currentColor",d:"m33.91.56c-.12,0-.24.01-.35.03-.11.02-.2.04-.25.05v6.76c0,.22.06.37.17.46.11.09.29.14.53.14.12,0,.24,0,.35-.03.11-.02.19-.04.24-.07V1.16c0-.22-.05-.38-.16-.47-.11-.09-.28-.13-.52-.13Z",className:"jsx-64174b446b45575f"}),(0,i.jsx)("path",{fill:"currentColor",d:"m36.24.56c-.12,0-.24.01-.35.03-.11.02-.2.04-.25.05v6.76c0,.22.06.37.17.46.11.09.29.14.53.14.12,0,.24,0,.35-.03.11-.02.19-.04.24-.07V1.16c0-.22-.05-.38-.16-.47-.11-.09-.28-.13-.52-.13Z",className:"jsx-64174b446b45575f"}),(0,i.jsx)("path",{fill:"currentColor",d:"m38.57.56c-.12,0-.24.01-.35.03s-.2.04-.25.05v6.76c0,.22.06.37.17.46s.29.14.53.14c.12,0,.24,0,.35-.03.11-.02.19-.04.24-.07V1.16c0-.22-.05-.38-.16-.47s-.28-.13-.52-.13Z",className:"jsx-64174b446b45575f"}),(0,i.jsx)("path",{fill:"currentColor",d:"m44.63,1.7c.15,0,.27-.05.35-.14.08-.1.13-.23.13-.41,0-.1-.02-.2-.05-.29-.03-.09-.06-.16-.1-.21h-3.98c-.21,0-.38.06-.5.19-.13.12-.19.29-.19.5v6.08c0,.21.06.36.17.45.12.09.29.14.53.14.12,0,.24,0,.35-.03.11-.02.19-.04.24-.05v-2.98h2.64c.15,0,.27-.05.35-.14.08-.1.12-.23.12-.41,0-.1-.01-.2-.04-.29-.03-.09-.06-.16-.09-.22h-2.98s-.01-.01-.01-.01V1.7h3.06Z",className:"jsx-64174b446b45575f"})]}),(0,i.jsx)(l(),{id:"64174b446b45575f",children:"svg.jsx-64174b446b45575f{height:1rem}span.jsx-64174b446b45575f{padding:.5rem .5rem .5rem 0;-webkit-mask-image:-webkit-linear-gradient(30deg,black 25%,rgba(0,0,0,.2)50%,black 75%);mask-image:-webkit-linear-gradient(30deg,black 25%,rgba(0,0,0,.2)50%,black 75%);mask-image:-moz-linear-gradient(30deg,black 25%,rgba(0,0,0,.2)50%,black 75%);mask-image:-o-linear-gradient(30deg,black 25%,rgba(0,0,0,.2)50%,black 75%);mask-image:linear-gradient(60deg,black 25%,rgba(0,0,0,.2)50%,black 75%);-webkit-mask-size:400%;mask-size:400%;-webkit-mask-position:0%;mask-position:0%}span.jsx-64174b446b45575f:hover{-webkit-mask-position:100%;mask-position:100%;-webkit-transition:mask-position 1s ease,-webkit-mask-position 1s ease;-moz-transition:mask-position 1s ease,-webkit-mask-position 1s ease;-o-transition:mask-position 1s ease,-webkit-mask-position 1s ease;transition:mask-position 1s ease,-webkit-mask-position 1s ease}"})]}),{}),project:{link:"https://github.com/samvera-labs/clover-iiif"},primaryHue:209,sidebar:{autoCollapse:!0,defaultMenuCollapseLevel:1,titleComponent:s=>(0,i.jsx)(c,{...s}),toggleButton:!0}}},5184:function(){}},function(s){s.O(0,[356,101,888,774,179],function(){return s(s.s=2813)}),_N_E=s.O()}]);
\ No newline at end of file
diff --git a/_next/static/chunks/pages/docs/viewer-ff7bba4ba2ffe0ae.js b/_next/static/chunks/pages/docs/viewer-ff7bba4ba2ffe0ae.js
new file mode 100644
index 00000000..e42224ea
--- /dev/null
+++ b/_next/static/chunks/pages/docs/viewer-ff7bba4ba2ffe0ae.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[81],{2813:function(s,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/viewer",function(){return n(3045)}])},3045:function(s,e,n){"use strict";n.r(e),n.d(e,{__toc:function(){return x},default:function(){return k}});var i=n(1527),r=n(8567),l=n(2610),o=n(2188);n(2897);var t=n(7088),c={src:"/clover-iiif/_next/static/media/pluginUI.cbcbf897.png",height:660,width:1860,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAADCAIAAAAhqtkfAAAAUElEQVR42gUAwQ5AILT//y1OXMyWKWGqQ7KZDkWvVxlp2qHrR6n2eaLHwl/vQ/gQgHC+UbpqbZU8L2MTQCm1IBLnbqU9E4kJMOapOZUYM+IPakRBzkc7Ko0AAAAASUVORK5CYII=",blurWidth:8,blurHeight:3},a=n(2712),h=n(1762),d=n(2416);let x=[{depth:2,value:"Features",id:"features"},{depth:2,value:"Installation",id:"installation"},{depth:2,value:"Usage",id:"usage"},{depth:3,value:"React",id:"react"},{depth:3,value:"Vanilla JavaScript",id:"vanilla-javascript"},{depth:3,value:"Next.js",id:"nextjs"},{depth:2,value:"API Reference",id:"api-reference"},{depth:3,value:"Canvas Height",id:"canvas-height"},{depth:4,value:"Automatic Height",id:"automatic-height"},{depth:3,value:"Information Panel",id:"information-panel"},{depth:3,value:"Auto Scroll",id:"auto-scroll"},{depth:3,value:"Custom Displays",id:"custom-displays"},{depth:3,value:"Content search",id:"content-search"},{depth:3,value:"Deprecated Options",id:"deprecated-options"},{depth:3,value:"Basic Configuration",id:"basic-configuration"},{depth:3,value:"Active Canvas",id:"active-canvas"},{depth:3,value:"Captions",id:"captions"},{depth:3,value:"Custom Theme",id:"custom-theme"},{depth:4,value:"CSS Classes",id:"css-classes"},{depth:3,value:"Request Headers",id:"request-headers"},{depth:3,value:"Custom canvas displays",id:"custom-canvas-displays"},{depth:3,value:"Plugins",id:"plugins"},{depth:4,value:"Instructions for creating a plugin",id:"instructions-for-creating-a-plugin"}];function p(s){let e=Object.assign({h1:"h1",p:"p",code:"code",a:"a",hr:"hr",h2:"h2",ul:"ul",li:"li",em:"em",pre:"pre",span:"span",h3:"h3",table:"table",thead:"thead",tr:"tr",th:"th",tbody:"tbody",td:"td",h4:"h4",strong:"strong",img:"img"},(0,t.a)(),s.components);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(e.h1,{children:"Viewer"}),"\n",(0,i.jsxs)(e.p,{children:["A UI component that renders a multicanvas IIIF item viewer with pan-zoom support for ",(0,i.jsx)(e.code,{children:"Image"})," via ",(0,i.jsx)(e.a,{href:"https://openseadragon.github.io/",children:"OpenSeadragon"})," and ",(0,i.jsx)(e.code,{children:"Video"})," and ",(0,i.jsx)(e.code,{children:"Sound"})," content resources using the ",(0,i.jsx)(e.a,{href:"https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video",children:"HTML video element"}),"."]}),"\n",(0,i.jsx)(h.Z,{href:"https://iiif.io/api/presentation/3.0/#21-defined-types",text:["Manifest","Collection"]}),"\n",(0,i.jsx)(e.hr,{}),"\n",(0,i.jsx)(a.Z,{iiifContent:"https://api.dc.library.northwestern.edu/api/v2/works/8a833741-74a8-40dc-bd1d-c416a3b1bb38?as=iiif",options:{showIIIFBadge:!1,informationPanel:{open:!1}}}),"\n",(0,i.jsx)(e.h2,{id:"features",children:"Features"}),"\n",(0,i.jsxs)(e.p,{children:["Provide a ",(0,i.jsx)(e.a,{href:"https://iiif.io/api/presentation/3.0/",children:"IIIF Presentation API"})," Manifest or Collection and the component:"]}),"\n",(0,i.jsxs)(e.ul,{children:["\n",(0,i.jsxs)(e.li,{children:["Renders a multi-canvas ",(0,i.jsx)(e.em,{children:"Video"}),", ",(0,i.jsx)(e.em,{children:"Sound"}),", and ",(0,i.jsx)(e.em,{children:"Image"})," viewer"]}),"\n",(0,i.jsx)(e.li,{children:"Renders thumbnails as navigation between canvases"}),"\n",(0,i.jsxs)(e.li,{children:["Renders annotations with the ",(0,i.jsx)(e.a,{href:"https://iiif.io/api/presentation/3.0/#values-for-motivation",children:"motivation"})," of ",(0,i.jsx)(e.code,{children:"supplementing"})," with a content resource having the format of ",(0,i.jsx)(e.code,{children:"text/vtt"})," for ",(0,i.jsx)(e.em,{children:"Video"})," and ",(0,i.jsx)(e.em,{children:"Sound"})]}),"\n",(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.em,{children:"Video"})," and ",(0,i.jsx)(e.em,{children:"Sound"})," are rendered within a HTML5 ",(0,i.jsx)(e.code,{children:""})," element"]}),"\n",(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.em,{children:"Image"})," canvases are renderered with ",(0,i.jsx)(e.a,{href:"https://openseadragon.github.io/",children:"OpenSeadragon"})]}),"\n",(0,i.jsx)(e.li,{children:"Supports HLS streaming for Video and Audio canvases"}),"\n",(0,i.jsx)(e.li,{children:"Supports IIIF Collections and toggling between child Manifests"}),"\n",(0,i.jsxs)(e.li,{children:["Supports ",(0,i.jsx)(e.code,{children:"placeholderCanvas"})," for ",(0,i.jsx)(e.em,{children:"Image"})," canvases."]}),"\n"]}),"\n",(0,i.jsx)(e.h2,{id:"installation",children:"Installation"}),"\n",(0,i.jsxs)(d.mQ,{items:["npm","yarn","pnpm"],children:[(0,i.jsx)(d.OK,{children:(0,i.jsx)(e.pre,{"data-language":"shell","data-theme":"default",children:(0,i.jsx)(e.code,{"data-language":"shell","data-theme":"default",children:(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"npm"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"install"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"@samvera/clover-iiif"})]})})})}),(0,i.jsx)(d.OK,{children:(0,i.jsx)(e.pre,{"data-language":"shell","data-theme":"default",children:(0,i.jsx)(e.code,{"data-language":"shell","data-theme":"default",children:(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"yarn"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"add"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"@samvera/clover-iiif"})]})})})}),(0,i.jsx)(d.OK,{children:(0,i.jsx)(e.pre,{"data-language":"shell","data-theme":"default",children:(0,i.jsx)(e.code,{"data-language":"shell","data-theme":"default",children:(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"pnpm"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"install"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"@samvera/clover-iiif"})]})})})})]}),"\n",(0,i.jsx)(e.h2,{id:"usage",children:"Usage"}),"\n",(0,i.jsx)(e.h3,{id:"react",children:"React"}),"\n",(0,i.jsxs)(e.p,{children:["Add the ",(0,i.jsx)(e.code,{children:"Viewer"})," component to your ",(0,i.jsx)(e.code,{children:"jsx"})," or ",(0,i.jsx)(e.code,{children:"tsx"})," code."]}),"\n",(0,i.jsx)(e.pre,{"data-language":"jsx","data-theme":"default",children:(0,i.jsx)(e.code,{"data-language":"jsx","data-theme":"default",children:(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" Viewer "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"@samvera/clover-iiif/viewer"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})})}),"\n",(0,i.jsxs)(e.p,{children:["Render ",(0,i.jsx)(e.code,{children:"Viewer"})," with a IIIF Manifest or Collection URI. The only required prop is the ",(0,i.jsx)(e.code,{children:"iiifContent"}),", which is the URI of the IIIF Manifest or Collection."]}),"\n",(0,i.jsxs)(d.mQ,{items:["Code","Preview"],children:[(0,i.jsx)(d.OK,{children:(0,i.jsx)(e.pre,{"data-language":"jsx","data-theme":"default",children:(0,i.jsx)(e.code,{"data-language":"jsx","data-theme":"default",children:(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Viewer"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"iiifContent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://api.dc.library.northwestern.edu/api/v2/works/8a833741-74a8-40dc-bd1d-c416a3b1bb38?as=iiif"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" />"})]})})})}),(0,i.jsx)(d.OK,{children:(0,i.jsx)(a.Z,{iiifContent:"https://api.dc.library.northwestern.edu/api/v2/works/8a833741-74a8-40dc-bd1d-c416a3b1bb38?as=iiif"})})]}),"\n",(0,i.jsx)(e.h3,{id:"vanilla-javascript",children:"Vanilla JavaScript"}),"\n",(0,i.jsxs)(e.p,{children:["The Viewer can also be implemented in Vanilla Javascript by use of a web component. This web component example sources a registered ",(0,i.jsx)(e.code,{children:""})," web component."]}),"\n",(0,i.jsxs)(d.mQ,{items:["Code","Preview"],children:[(0,i.jsx)(d.OK,{children:(0,i.jsx)(e.pre,{"data-language":"html","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"html","data-theme":"default",children:[(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"html"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"head"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"title"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">Clover IIIF - Viewer - Web Component"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"title"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"meta"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"charset"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"UTF-8"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" />"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"head"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"body"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"script"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"src"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://www.unpkg.com/@samvera/clover-iiif@latest/dist/web-components/index.umd.js"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"script"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"clover-viewer"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"id"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://api.dc.library.northwestern.edu/api/v2/works/8a833741-74a8-40dc-bd1d-c416a3b1bb38?as=iiif"'})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" />"})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"body"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:""}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"html"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]})]})})}),(0,i.jsx)(d.OK,{children:(0,i.jsx)(a.Z,{})})]}),"\n",(0,i.jsx)(e.h3,{id:"nextjs",children:"Next.js"}),"\n",(0,i.jsxs)(e.p,{children:["Implementation with Next.js requires a ",(0,i.jsx)(e.a,{href:"https://nextjs.org/docs/advanced-features/dynamic-import",children:"dynamic import"})," utilizing ",(0,i.jsx)(e.code,{children:"next/dynamic"}),". This is due to Next's node compilation method creating issue with an ",(0,i.jsx)(e.code,{children:"OpenSeadragon"})," (a dependency of Clover IIIF) assumption of a browser ",(0,i.jsx)(e.code,{children:"document"})," object."]}),"\n",(0,i.jsx)(e.pre,{"data-language":"jsx","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"jsx","data-theme":"default",children:[(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" dynamic "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"next/dynamic"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Viewer"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"dynamic"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" () "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"@samvera/clover-iiif"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:")"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".then"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"((Clover) "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Clover"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:".Viewer)"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ssr"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"false"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"MyCustomViewer"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" () "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"iiifContent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://api.dc.library.northwestern.edu/api/v2/collections/c373ecd2-2c45-45f2-9f9e-52dc244870bd?as=iiif"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"return"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Viewer"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"iiifContent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{iiifContent} />;"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"};"})})]})}),"\n",(0,i.jsx)(e.h2,{id:"api-reference",children:"API Reference"}),"\n",(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.code,{children:"Viewer"})," can configured through an ",(0,i.jsx)(e.code,{children:"options"})," prop, which will serve as a object for common options."]}),"\n",(0,i.jsxs)(e.table,{children:[(0,i.jsx)(e.thead,{children:(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.th,{children:"Prop"}),(0,i.jsx)(e.th,{children:"Type"}),(0,i.jsx)(e.th,{children:"Required"}),(0,i.jsx)(e.th,{children:"Default"})]})}),(0,i.jsxs)(e.tbody,{children:[(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"iiifContent"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"string"})}),(0,i.jsx)(e.td,{children:"Yes"}),(0,i.jsx)(e.td,{})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"iiifContentSearchQuery"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.a,{href:"#content-search",children:"See Content Search"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"canvasIdCallback"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"function"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"customDisplays"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.a,{href:"#custom-displays",children:"See Custom Displays"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"customTheme"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"object"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"plugins"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.a,{href:"#plugins",children:"See Plugins"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"object"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.background"})}),(0,i.jsxs)(e.td,{children:[(0,i.jsx)(e.code,{children:"string"})," ",(0,i.jsx)(e.a,{href:"https://developer.mozilla.org/en-US/docs/Web/CSS/background",children:"CSS"})]}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"transparent"})})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.canvasBackgroundColor"})}),(0,i.jsxs)(e.td,{children:[(0,i.jsx)(e.code,{children:"string"})," ",(0,i.jsx)(e.a,{href:"https://developer.mozilla.org/en-US/docs/Web/CSS/background",children:"CSS"})]}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"#1a1d1e"})})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.canvasHeight"})}),(0,i.jsxs)(e.td,{children:[(0,i.jsx)(e.code,{children:"string"})," ",(0,i.jsx)(e.a,{href:"https://developer.mozilla.org/en-US/docs/Web/CSS/height",children:"CSS"})]}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"500px"})})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.ignoreCaptionLabels"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"string[]"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"[]"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.openSeadragon"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"OpenSeadragon.Options"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.informationPanel"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.a,{href:"#information-panel",children:"See Information Panel"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.requestHeaders"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"IncomingHttpHeaders"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:'{ "Content-Type": "application/json" }'})})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.showDownload"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"boolean"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"true"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.showIIIFBadge"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"boolean"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"true"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.showTitle"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"boolean"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"true"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.withCredentials"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"boolean"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"false"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.contentSearch"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.a,{href:"#content-search",children:"See Content Search"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{})]})]})]}),"\n",(0,i.jsxs)(e.ul,{children:["\n",(0,i.jsxs)(e.li,{children:["Options ",(0,i.jsx)(e.code,{children:"canvasBackgroundColor"})," and ",(0,i.jsx)(e.code,{children:"canvasHeight"})," will apply to both ",(0,i.jsx)(e.code,{children:""})," elements and the OpenseaDragon canvas."]}),"\n",(0,i.jsxs)(e.li,{children:["Option ",(0,i.jsx)(e.code,{children:"withCredentials"})," being set as ",(0,i.jsx)(e.code,{children:"true"})," will inform IIIF resource requests to be made ",(0,i.jsx)(e.a,{href:"https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials",children:"using credentials"})," such as cookies, authorization headers or TLS client certificates."]}),"\n",(0,i.jsxs)(e.li,{children:["Option ",(0,i.jsx)(e.code,{children:"options.openSeadragon"})," will grant you ability to override the ",(0,i.jsx)(e.a,{href:"https://openseadragon.github.io/docs/OpenSeadragon.html#.Options",children:"OpenSeadragon default options"})," set within the Clover IIIF Viewer to adjust touch and mouse gesture settings and various other configurations."]}),"\n"]}),"\n",(0,i.jsx)(e.h3,{id:"canvas-height",children:"Canvas Height"}),"\n",(0,i.jsxs)(e.p,{children:["The height of the canvas can be set using the ",(0,i.jsx)(e.code,{children:"options.canvasHeight"})," prop. This prop accepts a string value that is a valid CSS height value. The default value is ",(0,i.jsx)(e.code,{children:"500px"}),"."]}),"\n",(0,i.jsx)(e.h4,{id:"automatic-height",children:"Automatic Height"}),"\n",(0,i.jsxs)(e.p,{children:["If the height is set to ",(0,i.jsx)(e.code,{children:"auto"})," or ",(0,i.jsx)(e.code,{children:"100%"}),", the ",(0,i.jsx)(e.strong,{children:"Viewer"})," will expand to the height of its wrapping container element. The wrapping element must have a position ",(0,i.jsx)(e.code,{children:"relative"}),", along with a defined ",(0,i.jsx)(e.code,{children:"height"})," for this to display as expected. Be aware to set a ",(0,i.jsx)(e.code,{children:"z-index"})," value of ",(0,i.jsx)(e.code,{children:"0"})," or an applicable value within your consuming application to ensure the viewer does not conflict with other page elements."]}),"\n",(0,i.jsx)(e.pre,{"data-language":"jsx","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"jsx","data-theme":"default",children:[(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"export"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"default"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"App"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"() {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"iiifContent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://api.dc.library.northwestern.edu/api/v2/works/8a833741-74a8-40dc-bd1d-c416a3b1bb38?as=iiif"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"options"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" canvasHeight"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"auto"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// or "100%"'})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" };"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"return"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ("})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"div"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"style"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{{ position"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"relative"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" height"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"80vh"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" zIndex"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"0"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }}>"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Viewer"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"iiifContent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{iiifContent} "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"options"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{options} />"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"div"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" );"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,i.jsx)(e.h3,{id:"information-panel",children:"Information Panel"}),"\n",(0,i.jsx)(e.p,{children:"The information panel is a collapsible panel that displays information about the current Manifest and renders supplementing resources for the active canvas. It is rendered by default, but can be configured to be hidden or to render only certain tabs."}),"\n",(0,i.jsxs)(e.table,{children:[(0,i.jsx)(e.thead,{children:(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.th,{children:"Prop"}),(0,i.jsx)(e.th,{children:"Type"}),(0,i.jsx)(e.th,{children:"Required"}),(0,i.jsx)(e.th,{children:"Default"})]})}),(0,i.jsxs)(e.tbody,{children:[(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.informationPanel.open"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"boolean"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"true"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.informationPanel.vtt.autoScroll"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.a,{href:"#auto-scroll",children:"See Auto Scroll"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"true"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.informationPanel.renderAbout"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"boolean"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"true"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.informationPanel.renderAnnotation"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"boolean"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"true"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.informationPanel.renderSupplementing"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"boolean"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"true"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.informationPanel.renderToggle"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"boolean"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"true"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.informationPanel.renderContentSearch"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"boolean"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"true"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.informationPanel.defaultTab"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"string"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{})]})]})]}),"\n",(0,i.jsxs)(e.p,{children:["If ",(0,i.jsx)(e.code,{children:"renderAbout"})," is true, Clover will use the About tab as the default tab. Use ",(0,i.jsx)(e.code,{children:"options.informationPanel.defaultTab"})," to set the default tab."]}),"\n",(0,i.jsxs)(e.p,{children:["If you want content search to be the default tab, use ",(0,i.jsx)(e.code,{children:"manifest-content-search"})]}),"\n",(0,i.jsx)(e.pre,{"data-language":"jsx","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"jsx","data-theme":"default",children:[(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Viewer"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"iiifContent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://example.com/manifest/1"'})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"options"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{{"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" informationPanel"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" defaultTab"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"manifest-content-search"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }}"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"/>"})})]})}),"\n",(0,i.jsx)(e.p,{children:"If the manifest has annotations, and you want one of the anotations to be the default tab, use the id from the annotation page."}),"\n",(0,i.jsx)(e.pre,{"data-language":"json","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"@context"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"http://iiif.io/api/presentation/3/context.json"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"]"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"Manifest"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ..."})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"items"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"id"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"http://example.com/manifest/canvas/1"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"Canvas"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"height"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"1000"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"width"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"2000"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"annotations"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"id"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"http://example.com/manifest/annotation/1"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"AnnotationPage"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"items"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [...]"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,i.jsx)(e.pre,{"data-language":"jsx","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"jsx","data-theme":"default",children:[(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Viewer"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"iiifContent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://example.com/manifest/1"'})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"options"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{{"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" informationPanel"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" defaultTab"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"http://example.com/manifest/annotation/1"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }}"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"/>"})})]})}),"\n",(0,i.jsx)(e.h3,{id:"auto-scroll",children:"Auto Scroll"}),"\n",(0,i.jsxs)(e.p,{children:["When VTT annotations are displayed, the Clover IIIF Viewer can automatically scroll the information panel to keep the currently active caption in view. Whether it does so (and how) is governed by the ",(0,i.jsx)(e.code,{children:"informationPanel.vtt.autoScroll"})," configuration option. The possible values are:"]}),"\n",(0,i.jsxs)(e.ul,{children:["\n",(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.code,{children:"{ behavior: (behavior), block: (block) }"}),": auto-scroll using the given settings (see below)."]}),"\n",(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.code,{children:"true"}),": Auto-scroll using the default behavior. This is equivalent to ",(0,i.jsx)(e.code,{children:'{ behavior: "smooth", block: "center" }'}),"."]}),"\n",(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.code,{children:"false"}),": Do not auto-scroll."]}),"\n"]}),"\n",(0,i.jsxs)(e.p,{children:["The settings take the form ",(0,i.jsx)(e.code,{children:'{ behavior: "auto" | "instant" | "smooth", block: "center" | "end" | "nearest" | "start" }'}),", and have the same effect as the ",(0,i.jsx)(e.code,{children:"scrollIntoViewOptions"})," object documented with the ",(0,i.jsx)(e.a,{href:"https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView",children:(0,i.jsx)(e.code,{children:"Element.scrollIntoView()"})})," Web API method. (The ",(0,i.jsx)(e.code,{children:"inline"})," option does not apply since there is no horizontal scrolling involved.)"]}),"\n",(0,i.jsx)(e.h3,{id:"custom-displays",children:"Custom Displays"}),"\n",(0,i.jsxs)(e.p,{children:["Clients may wish to use their own display components (for example a PDF Viewer, or an audio player, etc). To configure custom displays, use the ",(0,i.jsx)(e.code,{children:"customDisplays"})," prop, which is an array of objects defining ",(0,i.jsx)(e.code,{children:"display"})," and ",(0,i.jsx)(e.code,{children:"target"})," properties. ",(0,i.jsx)(e.a,{href:"#custom-canvas-displays",children:"See an example implementation"})]}),"\n",(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.code,{children:"display.component"})," is a custom React component, and ",(0,i.jsx)(e.code,{children:"display.componentProps"})," are pass-through props which ",(0,i.jsx)(e.code,{children:"Viewer"})," will attach to your Custom Display component. The ",(0,i.jsx)(e.code,{children:"target"})," object provides two methods of matching a Canvas to a Custom Display: ",(0,i.jsx)(e.code,{children:"target.canvasId"})," which is a manifest's canvas ",(0,i.jsx)(e.code,{children:"id"}),". Or by ",(0,i.jsx)(e.code,{children:"target.paintingFormat"})," (ie. ",(0,i.jsx)(e.code,{children:"application/pdf"}),") which is the ",(0,i.jsx)(e.code,{children:"body.type"})," in a canvas's ",(0,i.jsx)(e.code,{children:"Annotation"}),' of type "painting".']}),"\n",(0,i.jsxs)(e.table,{children:[(0,i.jsx)(e.thead,{children:(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.th,{children:"Prop"}),(0,i.jsx)(e.th,{children:"Type"}),(0,i.jsx)(e.th,{children:"Required"}),(0,i.jsx)(e.th,{children:"Default"})]})}),(0,i.jsxs)(e.tbody,{children:[(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"customDisplays.display.component"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"React.Node"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"customDisplays.display.componentProps"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"object"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"customDisplays.target.canvasId"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"string[]"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"customDisplays.target.paintingFormat"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"string[]"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{})]})]})]}),"\n",(0,i.jsx)(e.h3,{id:"content-search",children:"Content search"}),"\n",(0,i.jsx)(e.p,{children:"Clover supports IIIF content search v2. In order to display content search in the information panel, add a content search service to the manifest."}),"\n",(0,i.jsx)(e.pre,{"data-language":"json","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"@context"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"http://iiif.io/api/presentation/3/context.json"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"]"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"Manifest"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ..."})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"service"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"id"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://example.com/search"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"SearchService2"'})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,i.jsxs)(e.table,{children:[(0,i.jsx)(e.thead,{children:(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.th,{children:"Prop"}),(0,i.jsx)(e.th,{children:"Type"}),(0,i.jsx)(e.th,{children:"Required"}),(0,i.jsx)(e.th,{children:"Default"})]})}),(0,i.jsxs)(e.tbody,{children:[(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"iiifContentSearchQuery.q"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"string"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.contentSearch.searchResultsLimit"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"number"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"20"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.contentSearch.overlays.backgroundColor"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"string"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"#ff66660"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.contentSearch.overlays.borderColor"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"string"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"#990000"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.contentSearch.overlays.borderType"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"string"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"solid"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.contentSearch.overlays.borderWidth"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"string"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"1px"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.contentSearch.overlays.opacity"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"string"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"0.5"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.contentSearch.overlays.renderOverlays"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"boolean"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"true"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.contentSearch.overlays.zoomLevel"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"number"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{children:"4"})]})]})]}),"\n",(0,i.jsxs)(e.p,{children:["Many sites have a search functionality that returns a list objects that match the search terms. Clicking on a search result will display a details page for one object. If you want to highlight the search terms when the Clover image viewer loads on the details page, use ",(0,i.jsx)(e.code,{children:"iiifContentSearchQuery"})," when setting up the viewer."]}),"\n",(0,i.jsx)(e.pre,{"data-language":"jsx","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"jsx","data-theme":"default",children:[(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Viewer"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"iiifContent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://example.com/manifest/1"'})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"iiifContentSearchQuery"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{{"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" q"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"my search terms"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }}"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"/>"})})]})}),"\n",(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.code,{children:"options.contentSearch.searchResultsLimit"})," is the maximum number of search results to display per canvas in the information panel. If set to ",(0,i.jsx)(e.code,{children:"undefined"}),", Clover will show all search results."]}),"\n",(0,i.jsxs)(e.p,{children:["By default, Clover's content search will draw light red boxes in the image viewer for each search result returned by the search service. You can set the appearance of the highlighted boxes using ",(0,i.jsx)(e.code,{children:"options.contentSearch.overlays"}),". If you don't want the search results to be highlighted, set ",(0,i.jsx)(e.code,{children:"options.contentSearch.overlays.renderOverlays"})," to ",(0,i.jsx)(e.code,{children:"false"}),"."]}),"\n",(0,i.jsxs)(e.p,{children:["When you click on the list of search results, Clover will pan and zoom to the location of that search result. You can set the zoom level using ",(0,i.jsx)(e.code,{children:"options.contentSearch.overlays.zoomLevel"}),". A small zoom level will zoom in real close; a large zoom level will zoom in less."]}),"\n",(0,i.jsx)(e.h3,{id:"deprecated-options",children:"Deprecated Options"}),"\n",(0,i.jsxs)(e.table,{children:[(0,i.jsx)(e.thead,{children:(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.th,{children:"Prop"}),(0,i.jsx)(e.th,{children:"In Favor Of"}),(0,i.jsx)(e.th,{children:"Deprecated"})]})}),(0,i.jsxs)(e.tbody,{children:[(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"id"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"iiifContent"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"v2.0.0"})})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"manifestId"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"iiifContent"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"v2.0.0"})})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.renderAbout"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.informationPanel.renderAbout"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"v2.0.3"})})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.showInformationToggle"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"options.informationPanel.renderToggle"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"v2.0.3"})})]})]})]}),"\n",(0,i.jsx)(e.h3,{id:"basic-configuration",children:"Basic Configuration"}),"\n",(0,i.jsxs)(e.p,{children:["Example customization of various ",(0,i.jsx)(e.code,{children:"options"}),"."]}),"\n",(0,i.jsx)(e.pre,{"data-language":"jsx","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"jsx","data-theme":"default",children:[(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"options"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Primary title (Manifest label) for top level canvas. Defaults to true"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" showTitle"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"false"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// IIIF Badge and popover containing options. Defaults to true"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" showIIIFBadge"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"false"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Ignore supplementing canvases by label value that are not for captioning"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ignoreCaptionLabels"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'Chapters'"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"]"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Override canvas background color, defaults to #1a1d1e"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" canvasBackgroundColor"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"#000"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Set canvas zooming onScoll (this defaults to false)"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" openSeadragon"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" gestureSettingsMouse"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" scrollToZoom"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"true"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Viewer"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"iiifContent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://api.dc.library.northwestern.edu/api/v2/works/8a833741-74a8-40dc-bd1d-c416a3b1bb38?as=iiif"'})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"options"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{options}"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"/>"})})]})}),"\n",(0,i.jsx)(e.h3,{id:"active-canvas",children:"Active Canvas"}),"\n",(0,i.jsxs)(e.p,{children:["Example on using ",(0,i.jsx)(e.code,{children:"canvasIdCallback"})," to return to your consuming application the active canvas ID. This will return as a string."]}),"\n",(0,i.jsx)(e.pre,{"data-language":"jsx","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"jsx","data-theme":"default",children:[(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"iiifContent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://api.dc.library.northwestern.edu/api/v2/works/8a833741-74a8-40dc-bd1d-c416a3b1bb38?as=iiif"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"handlCanvasIdCallback"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" (activeCanvasId) "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"if"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" (activeCanvasId) "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"console"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".log"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"(activeCanvasId);"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"};"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"return"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ("})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Viewer"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"iiifContent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{iiifContent} "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"canvasIdCallback"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{handlCanvasIdCallback} />"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})})]})}),"\n",(0,i.jsx)(e.hr,{}),"\n",(0,i.jsx)(e.h3,{id:"captions",children:"Captions"}),"\n",(0,i.jsxs)(e.p,{children:["WebVTT content resources are the source for both content mapped closed captioning ",(0,i.jsx)(e.code,{children:" "})," elements in the HTML 5 video player and to the navigator panel adjacent to it. You may ignore these resources as tracks if they are not intended for closed captioning or subtitling by string values matching the label of the content resource. This is a manual option within the viewer as there is no defined way for a manifest to prescribe motivation for these resources beyond ",(0,i.jsx)(e.code,{children:"supplementing"}),"."]}),"\n",(0,i.jsx)(e.pre,{"data-language":"jsx","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"jsx","data-theme":"default",children:[(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"export"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"default"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"App"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"() {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"iiifContent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://raw.githubusercontent.com/samvera-labs/clover-iiif/main/public/fixtures/iiif/manifests/captions.json"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"options"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ignoreCaptionLabels"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"Chapters"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"]"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" };"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"return"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Viewer"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"iiifContent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{iiifContent} "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"options"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{options} />;"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,i.jsx)(e.hr,{}),"\n",(0,i.jsx)(e.h3,{id:"custom-theme",children:"Custom Theme"}),"\n",(0,i.jsx)(e.p,{children:"You may choose to override the base theme by setting optional colors and fonts. Naming conventions for colors are limited to those shown in the config example below."}),"\n",(0,i.jsx)(e.pre,{"data-language":"jsx","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"jsx","data-theme":"default",children:[(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"iiifContent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://api.dc.library.northwestern.edu/api/v2/works/8a833741-74a8-40dc-bd1d-c416a3b1bb38?as=iiif"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"customTheme"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" colors"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"/**"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:" * Black and dark grays in a light theme."})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:" * All must contrast to 4.5 or greater with `secondary`."})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:" */"})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" primary"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"#37474F"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" primaryMuted"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"#546E7A"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" primaryAlt"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"#263238"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"/**"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:" * Key brand color(s)."})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:" * `accent` must contrast to 4.5 or greater with `secondary`."})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:" */"})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" accent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"#C62828"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" accentMuted"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"#E57373"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" accentAlt"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"#B71C1C"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"/**"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:" * White and light grays in a light theme."})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:" * All must must contrast to 4.5 or greater with `primary` and `accent`."})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:" */"})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" secondary"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"#FFFFFF"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" secondaryMuted"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"#ECEFF1"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" secondaryAlt"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"#CFD8DC"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" fonts"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" sans"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"\"'Helvetica Neue', sans-serif\""}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" display"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"Optima, Georgia, Arial, sans-serif"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"};"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"return"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Viewer"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"iiifContent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{iiifContent} "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"customTheme"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{customTheme} />;"})]})]})}),"\n",(0,i.jsx)(e.h4,{id:"css-classes",children:"CSS Classes"}),"\n",(0,i.jsx)(e.p,{children:"Additional CSS classes are made available on structural HTML elements in the Viewer, which may be referenced in a client's own CSS files/style definitions to further customize the Viewer's appearance. You may inspect the DOM to see classes applied to each element, but in general it follows a pattern similar to:"}),"\n",(0,i.jsx)(e.pre,{"data-language":"html","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"html","data-theme":"default",children:[(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"div"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"class"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"clover-viewer"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"header"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"class"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"clover-viewer-header"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" />"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"div"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"class"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"clover-viewer-content"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"div"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"class"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"clover-viewer-painting"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">..."}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"div"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"div"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:""}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"div"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]})]})}),"\n",(0,i.jsx)(e.hr,{}),"\n",(0,i.jsx)(e.h3,{id:"request-headers",children:"Request Headers"}),"\n",(0,i.jsxs)(e.p,{children:["In some cases, a client may need to request Manifest or Collection resources with custom request headers, ex: ",(0,i.jsx)(e.code,{children:"Authorization"}),". This can be done by passing a ",(0,i.jsx)(e.code,{children:"requestHeaders"})," object to the ",(0,i.jsx)(e.code,{children:"options"})," prop. This object will be passed to the request call made by the Viewer. Accepted ",(0,i.jsx)(e.strong,{children:"header"})," keys are defined in the ",(0,i.jsx)(e.a,{href:"https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/http.d.ts",children:"IncomingHttpHeaders"})," interface."]}),"\n",(0,i.jsx)(e.pre,{"data-language":"jsx","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"jsx","data-theme":"default",children:[(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"iiifContent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://api.dc.library.northwestern.edu/api/v2/works/8a833741-74a8-40dc-bd1d-c416a3b1bb38?as=iiif"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"token"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"return"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ("})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Viewer"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"iiifContent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{iiifContent}"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"options"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{{"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" requestHeaders"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"Content-Type"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"application/json"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" Authorization"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"`Bearer "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"${"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"token"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"}"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"`"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }}"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" />"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})})]})}),"\n",(0,i.jsx)(e.hr,{}),"\n",(0,i.jsx)(e.h3,{id:"custom-canvas-displays",children:"Custom canvas displays"}),"\n",(0,i.jsxs)(e.p,{children:["Clients may wish to use their own display components instead of Clover Viewer's default displays (",(0,i.jsx)(e.a,{href:"https://openseadragon.github.io/",children:"OpenSeadragon"})," for images and ",(0,i.jsx)(e.a,{href:"https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video",children:"HTML Video Player"})," for audio/video). The ",(0,i.jsx)(e.code,{children:"Viewer"})," component allows a client to target individual ",(0,i.jsx)(e.code,{children:"canvas"})," items in a IIIF Manifest by either direct reference to a canvas ",(0,i.jsx)(e.code,{children:"id"})," or ",(0,i.jsx)(e.code,{children:"format"})," (ie. ",(0,i.jsx)(e.code,{children:"video/ogg"}),"). See the Type Definition below for ",(0,i.jsx)(e.code,{children:"CustomDisplay"}),", and an example implementation."]}),"\n",(0,i.jsx)(e.pre,{"data-language":"tsx","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"tsx","data-theme":"default",children:[(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" AnotherCustomDisplay "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"./AnotherCustomDisplay"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"type"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"CustomDisplay"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" display"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" component"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"React"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"."}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"ElementType"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" componentProps"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// Any custom props you want to pass to your component"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [key"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"]"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"any"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" };"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" };"})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" target"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" canvasId"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"[];"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" paintingFormat"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"[]; "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// "application/pdf" or "application/epub+zip"'})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" };"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"};"})}),"\n",(0,i.jsx)(e.span,{className:"line highlighted",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"MyCustomDisplay"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"({ id"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" annotationBody"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"..."}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"restProps }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"CustomDisplay"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:") {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"return"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ("})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"div"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"h1"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">My Custom Display"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"h1"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"p"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">Canvas ID: {id}"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"p"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"p"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">Annotation Body:"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"p"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"pre"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">{"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"JSON"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".stringify"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"(annotationBody)}"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"pre"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"p"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">Custom props:"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"p"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"pre"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">{"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"JSON"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".stringify"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"(restProps)}"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"pre"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ...your display here"})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"div"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" );"})}),"\n",(0,i.jsx)(e.span,{className:"line highlighted",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})}),"\n",(0,i.jsx)(e.span,{className:"line highlighted",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Viewer"})]}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"iiifContent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{iiifContent}"})]}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"customDisplays"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{["})]}),"\n",(0,i.jsx)(e.span,{className:"line highlighted",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" display"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" component"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" MyCustomDisplay"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" componentProps"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" foo"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"bar"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" target"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" canvasId"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://uri-for-a-canvas-id/access/0"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://uri-for-a-canvas-id/access/1"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" display"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" component"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" AnotherCustomDisplay"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" target"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" paintingFormat"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"application/pdf"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"image/gif"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"]"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]}"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"/>;"})})]})}),"\n",(0,i.jsxs)(e.p,{children:["The ",(0,i.jsx)(e.code,{children:"Viewer"})," component will pass the following props to your custom display component:"]}),"\n",(0,i.jsxs)(e.ul,{children:["\n",(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.code,{children:"id"}),": The canvas ",(0,i.jsx)(e.code,{children:"id"})," for the resource being rendered. This may be helpful if you wanted to use the canvas ",(0,i.jsx)(e.code,{children:"id"})," to fetch additional data from your application's API."]}),"\n",(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.code,{children:"annotationBody"}),": The ",(0,i.jsx)(e.code,{children:"body"})," value for a canvas ",(0,i.jsx)(e.code,{children:"Annotation"})," item with ",(0,i.jsx)(e.code,{children:"motivation"}),' "painting".']}),"\n"]}),"\n",(0,i.jsx)(e.pre,{"data-language":"json","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"id"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://uri-for-a-canvas-id/access/0"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"type"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"Annotation"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"motivation"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"painting"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"body"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"format"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"application/pdf"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"height"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"1686"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"id"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"http://localhost:3000/media/pdf/file-sample_150kB.pdf"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line highlighted",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'"width"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"1192"})]}),"\n",(0,i.jsx)(e.span,{className:"line highlighted",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.a,{href:"https://github.com/samvera-labs/clover-iiif/blob/main/docs/components/CustomDisplays/PDFViewer.tsx",children:"See a complete recipe for a PDF Viewer"})," using custom canvas displays."]}),"\n",(0,i.jsx)(e.hr,{}),"\n",(0,i.jsx)(e.h3,{id:"plugins",children:"Plugins"}),"\n",(0,i.jsxs)(e.p,{children:["Clover supports 3rd-party plugins as a way to add more functionality to Clover. To add plugins, use the ",(0,i.jsx)(e.code,{children:"plugins"})," prop. ",(0,i.jsx)(e.code,{children:"plugins"})," will accept an array of objects, with each object representing a plugin."]}),"\n",(0,i.jsx)(e.p,{children:"People can use prebuilt plugins or create their own plugins. To install a prebuilt plugin, people should follow the instructions for the particular plugin."}),"\n",(0,i.jsxs)(e.p,{children:["Here's an example of using two plugins. PluginA adds a button to ",(0,i.jsx)(e.code,{children:"imageViewer.controls"}),". PluginB adds a tab to ",(0,i.jsx)(e.code,{children:"informationPanel"}),"."]}),"\n",(0,i.jsx)(e.pre,{"data-language":"tsx","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"tsx","data-theme":"default",children:[(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" PluginA "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"plugin-A"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" PluginB "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"plugin-B"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"export"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"default"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"App"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"() {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"return"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ("})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Viewer"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"iiifContent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{iiifContent}"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"plugins"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{["})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" id"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"Plugin A"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" imageViewer"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" controls"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" component"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" PluginA"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" id"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"Plugin B"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" informationPanel"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" component"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" PluginB"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" componentProps"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" objectId"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"456"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" label"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { none"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"My Plugin"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"] }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]}"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" />"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" );"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,i.jsx)(e.p,{children:(0,i.jsx)(e.img,{alt:"plugin",placeholder:"blur",src:c})}),"\n",(0,i.jsxs)(e.table,{children:[(0,i.jsx)(e.thead,{children:(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.th,{children:"Prop"}),(0,i.jsx)(e.th,{children:"Type"}),(0,i.jsx)(e.th,{children:"Required"}),(0,i.jsx)(e.th,{children:"Default"})]})}),(0,i.jsxs)(e.tbody,{children:[(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"id"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"string"})}),(0,i.jsx)(e.td,{children:"yes"}),(0,i.jsx)(e.td,{})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"imageViewer.controls"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"object"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"imageViewer.controls.component"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"React Component"})}),(0,i.jsx)(e.td,{children:"yes"}),(0,i.jsx)(e.td,{})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"imageViewer.controls.componentProps"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"object"})}),(0,i.jsx)(e.td,{children:"no"}),(0,i.jsx)(e.td,{})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"informationPanel"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"object"})}),(0,i.jsx)(e.td,{children:"No"}),(0,i.jsx)(e.td,{})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"informationPanel.component"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"React Component"})}),(0,i.jsx)(e.td,{children:"yes"}),(0,i.jsx)(e.td,{})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"informationPanel.componentProps"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"object"})}),(0,i.jsx)(e.td,{children:"no"}),(0,i.jsx)(e.td,{})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"informationPanel.label"})}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"object"})}),(0,i.jsx)(e.td,{children:"yes"}),(0,i.jsx)(e.td,{})]})]})]}),"\n",(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.code,{children:"id"})," - unique id for the plugin"]}),"\n",(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.code,{children:"imageViewer.controls"})," - If you want to add a custom component to image viewer controls, use ",(0,i.jsx)(e.code,{children:"imageViewer.controls"}),"."]}),"\n",(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.code,{children:"imageViewer.controls.component"})," - The component to render."]}),"\n",(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.code,{children:"imageViewer.controls.componentProps"})," - Props passed to the controls component."]}),"\n",(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.code,{children:"informationPanel"})," - If you want to add a custom component to the information panel, use ",(0,i.jsx)(e.code,{children:"informationPanel"}),"."]}),"\n",(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.code,{children:"informationPanel.component"})," - The component to render."]}),"\n",(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.code,{children:"informationPanel.componentProps"})," - Props passed to the information panel component."]}),"\n",(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.code,{children:"informationPanel.label"})," - The text that is displayed in the tab."]}),"\n",(0,i.jsx)(e.h4,{id:"instructions-for-creating-a-plugin",children:"Instructions for creating a plugin"}),"\n",(0,i.jsx)(e.p,{children:"Clover offers these features to support plugins:"}),"\n",(0,i.jsxs)(e.ul,{children:["\n",(0,i.jsx)(e.li,{children:"Renders custom React components in certain areas of the Clover Viewer. Areas include image viewer controls and information panel."}),"\n",(0,i.jsx)(e.li,{children:"Gives plugins the ability to access and change the state of the Clover Viewer via props"}),"\n",(0,i.jsx)(e.li,{children:"Pass in props to the plugin components"}),"\n"]}),"\n",(0,i.jsxs)(e.table,{children:[(0,i.jsx)(e.thead,{children:(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.th,{children:"Prop"}),(0,i.jsx)(e.th,{children:"Description"})]})}),(0,i.jsxs)(e.tbody,{children:[(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"canvas"})}),(0,i.jsx)(e.td,{children:"active canvas object"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"useViewerDispatch"})}),(0,i.jsxs)(e.td,{children:["React hook to update the ",(0,i.jsx)(e.a,{href:"https://github.com/samvera-labs/clover-iiif/blob/main/src/context/viewer-context.tsx",children:"Viewer context store"})]})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:"useViewerState"})}),(0,i.jsxs)(e.td,{children:["React hook to access the ",(0,i.jsx)(e.a,{href:"https://github.com/samvera-labs/clover-iiif/blob/main/src/context/viewer-context.tsx",children:"Viewer context store"})]})]})]})]}),"\n",(0,i.jsxs)(e.p,{children:["Here is an example plugin that has both ",(0,i.jsx)(e.code,{children:"imageViewer.controls"})," and ",(0,i.jsx)(e.code,{children:"informationPanel"}),". Plugin components have access to canvas, useViewerDispatch, and useViewerState via props."]}),"\n",(0,i.jsx)(e.p,{children:(0,i.jsx)(e.img,{alt:"plugin",placeholder:"blur",src:c})}),"\n",(0,i.jsx)(e.pre,{"data-language":"tsx","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"tsx","data-theme":"default",children:[(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// PluginButton.tsx"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"export"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"default"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"PluginButton"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"(props) {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"canvas"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"useViewerDispatch"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"useViewerState"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" } "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" props;"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// use useViewerState to access to viewer state properties such as openSeadragonViewer, etc"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"viewerState"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"useViewerState"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"();"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"openSeadragonViewer"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"activeManifest"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" } "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" viewerState;"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// use useViewerDispatch to update viewer state"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"dispatch"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"any"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"useViewerDispatch"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"();"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"clickHandler"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"() {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"dispatch"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"({"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" type"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"updateOSDImageLoaded"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" OSDImageLoaded"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"false"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" });"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"return"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ("})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"button"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"onClick"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{clickHandler}"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"style"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{{"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" backgroundColor"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"var(--colors-primary)"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" borderRadius"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"2rem"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" width"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"2rem"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" margin"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"0px 0px 0px 0.618rem"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }}"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" >"})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"b"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">P"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"b"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"button"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" );"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// PluginInfoPanel.tsx"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"export"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"default"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"PluginInfoPanel"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"(props) {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"canvas"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"useViewerDispatch"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"useViewerState"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// componentProps"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"objectId"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" } "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" props;"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"return"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ("})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"div"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"style"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{{ padding"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"0px 1.618rem 2rem"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }}>"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"p"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">Plugin Info Panel"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"p"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"p"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">objectId: {objectId}"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"p"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"div"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" );"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// App.tsx"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" PluginButton "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"PluginButton"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" PluginInfoPanel "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"PluginInfoPanel"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"export"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"default"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"App"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"() {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"return"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ("})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Viewer"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"iiifContent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://iiif.io/api/cookbook/recipe/0001-mvm-image/manifest.json"'})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"plugins"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{["})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" id"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"Demo"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" imageViewer"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" controls"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" component"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" PluginButton"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" informationPanel"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" component"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" PluginInfoPanel"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" label"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { none"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"My Plugin"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"] }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" componentProps"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" objectId"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"456"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]}"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" />"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" );"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,i.jsxs)(e.p,{children:["If the ",(0,i.jsx)(e.code,{children:"imageViewer.controls.component"})," and ",(0,i.jsx)(e.code,{children:"informationPanel.component"})," need to share state, wrap the Viewer in a context provider that is provided by the plugin."]}),"\n",(0,i.jsx)(e.pre,{"data-language":"tsx","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"tsx","data-theme":"default",children:[(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" PluginButton "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"PluginButton"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" PluginInfoPanel "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"PluginInfoPanel"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { PluginProvider } "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"PluginContext"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"export"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"default"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"App"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"() {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"return"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ("})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"PluginProvider"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Viewer"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"iiifContent"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://iiif.io/api/cookbook/recipe/0001-mvm-image/manifest.json"'})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"plugins"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{["})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" id"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"Demo"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" imageViewer"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" controls"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" component"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" PluginButton"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" informationPanel"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" component"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" PluginInfoPanel"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" label"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { none"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"My Plugin"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"] }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" componentProps"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" objectId"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"456"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]}"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" />"})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"PluginProvider"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" );"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})})]})}let j={MDXContent:function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:e}=Object.assign({},(0,t.a)(),s.components);return e?(0,i.jsx)(e,{...s,children:(0,i.jsx)(p,{...s})}):p(s)},pageOpts:{filePath:"pages/docs/viewer.mdx",route:"/docs/viewer",frontMatter:{title:"Viewer"},pageMap:[{kind:"Meta",data:{index:{type:"page",title:"Clover IIIF",display:"hidden",theme:{layout:"raw"}},docs:{title:"Documentation",type:"page"},contact:{title:"IIIF Presentation API ↗",type:"page",href:"https://iiif.io/api/presentation",newWindow:!0}}},{kind:"Folder",name:"docs",route:"/docs",children:[{kind:"Meta",data:{index:"Overview",composing:"Composing","--components":{type:"separator",title:"IIIF Components"},image:"Image",scroll:{title:"Scroll",type:"doc"},slider:"Slider",viewer:"Viewer","--primitives":{type:"separator",title:"IIIF Primitives"},homepage:"Homepage",label:"Label",metadata:"Metadata",partOf:"PartOf",requiredStatement:"RequiredStatement",seeAlso:"SeeAlso",summary:"Summary",thumbnail:"Thumbnail",rendering:"Rendering"}},{kind:"MdxPage",name:"composing",route:"/docs/composing",frontMatter:{title:"Getting Started"}},{kind:"MdxPage",name:"homepage",route:"/docs/homepage",frontMatter:{title:"Homepage"}},{kind:"MdxPage",name:"image",route:"/docs/image",frontMatter:{title:"Image"}},{kind:"MdxPage",name:"index",route:"/docs",frontMatter:{title:"Docs"}},{kind:"MdxPage",name:"label",route:"/docs/label",frontMatter:{title:"Label"}},{kind:"MdxPage",name:"metadata",route:"/docs/metadata",frontMatter:{title:"Metadata"}},{kind:"MdxPage",name:"partOf",route:"/docs/partOf",frontMatter:{title:"PartOf"}},{kind:"MdxPage",name:"rendering",route:"/docs/rendering",frontMatter:{title:"Rendering"}},{kind:"MdxPage",name:"requiredStatement",route:"/docs/requiredStatement",frontMatter:{title:"RequiredStatement"}},{kind:"Folder",name:"scroll",route:"/docs/scroll",children:[{kind:"Meta",data:{demo:{title:"Demo",theme:{sidebar:!1,layout:"full"}}}},{kind:"MdxPage",name:"demo",route:"/docs/scroll/demo"}]},{kind:"MdxPage",name:"scroll",route:"/docs/scroll",frontMatter:{title:"Scroll"}},{kind:"MdxPage",name:"seeAlso",route:"/docs/seeAlso",frontMatter:{title:"SeeAlso"}},{kind:"Folder",name:"slider",route:"/docs/slider",children:[{kind:"Meta",data:{demo:{title:"Demo",theme:{sidebar:!1,layout:"full"}}}},{kind:"MdxPage",name:"demo",route:"/docs/slider/demo"}]},{kind:"MdxPage",name:"slider",route:"/docs/slider",frontMatter:{title:"Slider"}},{kind:"MdxPage",name:"summary",route:"/docs/summary",frontMatter:{title:"Summary"}},{kind:"MdxPage",name:"thumbnail",route:"/docs/thumbnail",frontMatter:{title:"Thumbnail"}},{kind:"Folder",name:"viewer",route:"/docs/viewer",children:[{kind:"Meta",data:{demo:{theme:{layout:"full",sidebar:!1},title:"Demo"},contentsearch:{display:"hidden",title:"Content Search",theme:{sidebar:!1,layout:"full"}}}},{kind:"MdxPage",name:"contentsearch",route:"/docs/viewer/contentsearch"},{kind:"MdxPage",name:"demo",route:"/docs/viewer/demo"}]},{kind:"MdxPage",name:"viewer",route:"/docs/viewer",frontMatter:{title:"Viewer"}}]},{kind:"MdxPage",name:"index",route:"/"}],flexsearch:{codeblocks:!0},title:"Viewer",headings:x},pageNextRoute:"/docs/viewer",nextraLayout:l.ZP,themeConfig:o.Z};var k=(0,r.j)(j)},2712:function(s,e,n){"use strict";n.d(e,{Z:function(){return h}});var i=n(1527),r=n(5047),l=n.n(r),o=n(3699);let t=()=>{let{resolvedTheme:s}=(0,o.F)();return"dark"===s};var c=n(4750);let a=l()(()=>Promise.all([n.e(178),n.e(668),n.e(196),n.e(646),n.e(332),n.e(50),n.e(237),n.e(792),n.e(129),n.e(82)]).then(n.bind(n,4082)),{loadableGenerated:{webpack:()=>[4082]},ssr:!1});var h=s=>{let{iiifContent:e="https://api.dc.library.northwestern.edu/api/v2/works/71153379-4283-43be-8b0f-4e7e3bfda275?as=iiif",options:n,customDisplays:r,iiifContentSearchQuery:l,plugins:o}=s,h=(0,c.useRouter)(),d=h.query["iiif-content"]?h.query["iiif-content"]:e,x=t()?"rgb(17, 17, 17)":"#fff";return(0,i.jsx)(a,{iiifContent:d,iiifContentSearchQuery:l,options:{...n,background:x},...r&&{customDisplays:r},...o&&{plugins:o}},d)}},1762:function(s,e,n){"use strict";var i=n(1527),r=n(1890),l=n.n(r);n(959);var o=n(5455);let t=()=>{let s="#ed1d33",e="#2873ab";return(0,i.jsxs)("svg",{viewBox:"0 0 493.35999 441.33334",id:"iiif-logo",version:"1.1",style:{height:"1rem"},children:[(0,i.jsx)("title",{children:"IIIF Logo"}),(0,i.jsx)("g",{transform:"matrix(1.3333333,0,0,-1.3333333,0,441.33333)",children:(0,i.jsxs)("g",{transform:"scale(0.1)",children:[(0,i.jsx)("path",{style:{fill:e},d:"M 65.2422,2178.75 775.242,1915 773.992,15 65.2422,276.25 v 1902.5"}),(0,i.jsx)("path",{style:{fill:e},d:"m 804.145,2640.09 c 81.441,-240.91 -26.473,-436.2 -241.04,-436.2 -214.558,0 -454.511,195.29 -535.9527,436.2 -81.4335,240.89 26.4805,436.18 241.0387,436.18 214.567,0 454.512,-195.29 535.954,-436.18"}),(0,i.jsx)("path",{style:{fill:s},d:"M 1678.58,2178.75 968.578,1915 969.828,15 1678.58,276.25 v 1902.5"}),(0,i.jsx)("path",{style:{fill:s},d:"m 935.082,2640.09 c -81.437,-240.91 26.477,-436.2 241.038,-436.2 214.56,0 454.51,195.29 535.96,436.2 81.43,240.89 -26.48,436.18 -241.04,436.18 -214.57,0 -454.52,-195.29 -535.958,-436.18"}),(0,i.jsx)("path",{style:{fill:e},d:"m 1860.24,2178.75 710,-263.75 -1.25,-1900 -708.75,261.25 v 1902.5"}),(0,i.jsx)("path",{style:{fill:e},d:"m 2603.74,2640.09 c 81.45,-240.91 -26.47,-436.2 -241.03,-436.2 -214.58,0 -454.52,195.29 -535.96,436.2 -81.44,240.89 26.48,436.18 241.03,436.18 214.57,0 454.51,-195.29 535.96,-436.18"}),(0,i.jsx)("path",{style:{fill:s},d:"m 3700.24,3310 v -652.5 c 0,0 -230,90 -257.5,-142.5 -2.5,-247.5 0,-336.25 0,-336.25 l 257.5,83.75 V 1690 l -258.61,-92.5 V 262.5 L 2735.24,0 v 2360 c 0,0 -15,850 965,950"})]})})]})},c=(0,o.zo)(l(),{display:"inline-flex",flexDirection:"column",textDecoration:"none",alignItems:"center",padding:"0.5rem 0"}),a=(0,o.zo)("span",{display:"inline-flex",alignItems:"center",justifyContent:"center"});e.Z=s=>{let{children:e,href:n,text:r=["Presentation API"]}=s;return(0,i.jsx)(c,{href:n,target:"_blank",className:"nx-flex-col",children:(0,i.jsxs)(a,{className:"nx-gap-2 nx-h-7 nx-rounded-md nx-px-2 nx-text-left nx-text-sm nx-font-medium nx-text-gray-600 nx-transition-colors dark:nx-text-gray-400 hover:nx-bg-gray-100 hover:nx-text-gray-900 dark:hover:nx-bg-primary-100/5 dark:hover:nx-text-gray-50",children:[(0,i.jsx)(t,{})," ",r.join(" or ")," ↗"]})})}},5455:function(s,e,n){"use strict";n.d(e,{BC:function(){return r},F4:function(){return t},zo:function(){return l}});var i=n(458);let r={xxs:"(max-width: 349px)",xs:"(max-width: 575px)",sm:"(max-width: 767px)",md:"(max-width: 991px)",lg:"(max-width: 90rem)",xl:"(min-width: calc(90rem + 1px))"},{styled:l,css:o,keyframes:t,createTheme:c}=(0,i.Th)({theme:{colors:{primary:"#1a1d1e",primaryMuted:"#26292b",primaryAlt:"#151718",accent:"hsl(".concat(209," 100% 38.2%)"),accentMuted:"hsl(".concat(209," 80% 61.8%)"),accentAlt:"hsl(".concat(209," 80% 30%)"),secondary:"#FFFFFF",secondaryMuted:"#e6e8eb",secondaryAlt:"#c1c8cd"},fontSizes:{1:"12px",2:"13px",3:"15px",4:"17px",5:"19px",6:"21px",7:"27px",8:"35px",9:"59px"},lineHeights:{1:"12px",2:"13px",3:"15px",4:"17px",5:"19px",6:"21px",7:"27px",8:"35px",9:"59px"},sizes:{1:"5px",2:"10px",3:"15px",4:"20px",5:"25px",6:"35px",7:"45px",8:"65px",9:"80px"},space:{1:"5px",2:"10px",3:"15px",4:"20px",5:"25px",6:"35px",7:"45px",8:"65px",9:"80px"},radii:{1:"4px",2:"6px",3:"8px",4:"12px",round:"50%",pill:"9999px"},transitions:{all:"all 300ms cubic-bezier(0.16, 1, 0.3, 1)"},zIndices:{1:"100",2:"200",3:"300",4:"400",max:"999"}},media:r})},2188:function(s,e,n){"use strict";n.d(e,{Z:function(){return j}});var i=n(1527),r=n(635),l=n.n(r),o=n(959);let t={position:"relative",top:"-1px",right:"0",backgroundColor:"hsl(var(--nextra-primary-hue), var(--nextra-primary-saturation), 32%)",color:"white",borderRadius:"6px",padding:"2px 4px",fontSize:"0.7222rem",fontWeight:"700",marginLeft:"10px"},c=["Scroll"];var a=s=>{let{title:e}=s;return c.includes(e)?(0,i.jsxs)("span",{children:[e,(0,i.jsx)("span",{style:t,children:"Beta"})]}):(0,i.jsx)("span",{children:e})},h=n(2610),d=n(4750);let x="Clover IIIF",p="Showcase IIIF Manifests as interoperable web content.";var j={darkMode:!0,nextThemes:{defaultTheme:"system"},docsRepositoryBase:"https://github.com/samvera-labs/clover-iiif",footer:{text:"Extensible IIIF front-end toolkit and Manifest viewer. Accessible. Composable. Open Source."},useNextSeoProps(){let s=(0,h.ZR)(),e=s.frontMatter.title?"".concat(s.frontMatter.title," – ").concat(x):"".concat(x," – ").concat(p),n=s.frontMatter.description?s.frontMatter.description:p,{route:i}=(0,d.useRouter)(),r=(0,o.useMemo)(()=>new URL(i.endsWith("/")?i:"".concat(i,"/"),"https://samvera-labs.github.io/clover-iiif/").href,[i]);return{defaultTitle:"".concat(x," - ").concat(p),title:e,description:n,canonical:r,openGraph:{url:r,title:e,siteName:"".concat(x," - ").concat(p),images:[{url:"",type:"image/png",width:1200,height:675}]},twitter:{cardType:"summary_large_image"}}},logo:(0,i.jsx)(()=>(0,i.jsxs)("span",{className:"jsx-64174b446b45575f",children:[(0,i.jsxs)("svg",{id:"clover-iiif-logo",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 45.11 8.15",fill:"none",className:"jsx-64174b446b45575f",children:[(0,i.jsx)("path",{fill:"currentColor",d:"m5.66,6.02c-.21.11-.43.21-.65.3s-.51.13-.83.13c-.63,0-1.13-.18-1.48-.55-.36-.37-.53-.9-.53-1.61,0-.46.07-.85.22-1.17.15-.32.36-.57.65-.74.28-.17.63-.26,1.04-.26.31,0,.59.05.83.14.24.1.46.21.66.35.14-.09.26-.21.36-.37.1-.16.16-.33.16-.53,0-.25-.09-.47-.28-.66s-.45-.34-.79-.46c-.34-.11-.76-.17-1.25-.17-.69,0-1.32.15-1.89.45-.57.3-1.03.74-1.36,1.31-.34.57-.5,1.27-.5,2.11,0,.89.17,1.62.52,2.18.35.57.82.99,1.4,1.26.59.27,1.24.41,1.96.41.38,0,.7-.03.96-.1.26-.06.47-.13.61-.19.23-.1.4-.23.49-.38.1-.15.14-.32.14-.5,0-.21-.04-.39-.11-.55-.08-.16-.18-.29-.32-.4Z",className:"jsx-64174b446b45575f"}),(0,i.jsx)("path",{fill:"currentColor",d:"m7.55,0c-.19,0-.37.01-.53.04s-.29.05-.38.07v6.96c0,.37.09.62.27.76.18.14.47.2.86.2.19,0,.37-.01.53-.04.16-.02.29-.05.38-.07V.96c0-.38-.09-.63-.26-.76-.18-.13-.46-.2-.86-.2Z",className:"jsx-64174b446b45575f"}),(0,i.jsx)("path",{fill:"currentColor",d:"m13.93,2.3c-.47-.26-1.02-.38-1.65-.38s-1.17.13-1.64.38c-.47.25-.84.61-1.1,1.07-.26.46-.4,1.01-.4,1.64s.13,1.2.39,1.67c.26.46.63.82,1.1,1.07.47.25,1.02.37,1.66.37s1.19-.13,1.66-.38c.47-.25.83-.61,1.09-1.07.26-.46.39-1.02.39-1.66s-.13-1.17-.4-1.63c-.26-.46-.63-.82-1.1-1.08Zm-.87,3.83c-.18.26-.44.39-.78.39s-.6-.13-.78-.38c-.18-.26-.28-.63-.28-1.13s.09-.85.28-1.11c.19-.26.45-.39.77-.39s.59.13.77.4.28.63.28,1.1-.09.86-.28,1.12Z",className:"jsx-64174b446b45575f"}),(0,i.jsx)("path",{fill:"currentColor",d:"m20.29,1.98c-.35,0-.67.08-.96.23-.14.69-.29,1.39-.46,2.12s-.33,1.38-.48,1.97h-.06c-.02-.11-.06-.25-.1-.42-.04-.17-.09-.36-.15-.57s-.12-.43-.18-.67l-.47-1.84c-.08-.32-.21-.54-.4-.65-.18-.12-.42-.17-.7-.17-.22,0-.43.04-.62.13s-.34.18-.45.29c.06.29.15.62.27,1.01.12.38.24.78.38,1.19.14.41.27.81.41,1.2.14.39.27.73.4,1.04.12.3.23.54.32.71.09.18.25.3.47.38.23.08.5.12.81.12.27,0,.52-.03.74-.09.22-.06.38-.13.49-.21.12-.22.26-.5.41-.85.15-.35.31-.73.46-1.15.16-.41.3-.82.43-1.21s.23-.75.31-1.06.12-.54.12-.7c0-.3-.1-.5-.29-.62s-.43-.18-.71-.18Z",className:"jsx-64174b446b45575f"}),(0,i.jsx)("path",{fill:"currentColor",d:"m25.91,2.25c-.42-.22-.92-.33-1.49-.33-.38,0-.74.06-1.1.17-.36.12-.68.29-.97.53-.29.24-.52.55-.69.94-.17.38-.26.84-.26,1.37,0,.71.15,1.3.44,1.78.29.47.69.83,1.19,1.06.5.24,1.06.35,1.69.35.45,0,.84-.04,1.19-.12.34-.08.61-.21.81-.38.2-.17.29-.39.29-.65,0-.16-.04-.31-.13-.46-.09-.14-.2-.26-.32-.34-.18.1-.43.2-.73.29-.3.09-.62.13-.96.13s-.67-.07-.95-.22c-.23-.11-.37-.32-.47-.58l2.96-.44c.27-.04.48-.13.64-.28.15-.14.23-.35.23-.62,0-.5-.12-.93-.36-1.31-.24-.38-.57-.68-1-.9Zm-2.59,2.21c.04-.31.13-.56.31-.74.21-.21.48-.31.8-.31s.53.08.67.24c.14.16.22.32.24.48l-2.02.33Z",className:"jsx-64174b446b45575f"}),(0,i.jsx)("path",{fill:"currentColor",d:"m30.59,1.93c-.4,0-.79.04-1.16.13-.38.09-.7.22-.98.38-.2.13-.36.28-.49.45-.12.17-.19.37-.19.61v3.56c0,.37.09.62.27.76.18.14.47.2.86.2.19,0,.37-.01.53-.04.16-.02.29-.05.38-.07V3.82c.17-.1.36-.17.59-.22.22-.05.44-.07.64-.07.14,0,.26,0,.37.01.11,0,.21.02.29.04.06-.09.1-.19.14-.32s.06-.26.06-.4c0-.62-.44-.92-1.31-.92Z",className:"jsx-64174b446b45575f"}),(0,i.jsx)("path",{fill:"currentColor",d:"m33.91.56c-.12,0-.24.01-.35.03-.11.02-.2.04-.25.05v6.76c0,.22.06.37.17.46.11.09.29.14.53.14.12,0,.24,0,.35-.03.11-.02.19-.04.24-.07V1.16c0-.22-.05-.38-.16-.47-.11-.09-.28-.13-.52-.13Z",className:"jsx-64174b446b45575f"}),(0,i.jsx)("path",{fill:"currentColor",d:"m36.24.56c-.12,0-.24.01-.35.03-.11.02-.2.04-.25.05v6.76c0,.22.06.37.17.46.11.09.29.14.53.14.12,0,.24,0,.35-.03.11-.02.19-.04.24-.07V1.16c0-.22-.05-.38-.16-.47-.11-.09-.28-.13-.52-.13Z",className:"jsx-64174b446b45575f"}),(0,i.jsx)("path",{fill:"currentColor",d:"m38.57.56c-.12,0-.24.01-.35.03s-.2.04-.25.05v6.76c0,.22.06.37.17.46s.29.14.53.14c.12,0,.24,0,.35-.03.11-.02.19-.04.24-.07V1.16c0-.22-.05-.38-.16-.47s-.28-.13-.52-.13Z",className:"jsx-64174b446b45575f"}),(0,i.jsx)("path",{fill:"currentColor",d:"m44.63,1.7c.15,0,.27-.05.35-.14.08-.1.13-.23.13-.41,0-.1-.02-.2-.05-.29-.03-.09-.06-.16-.1-.21h-3.98c-.21,0-.38.06-.5.19-.13.12-.19.29-.19.5v6.08c0,.21.06.36.17.45.12.09.29.14.53.14.12,0,.24,0,.35-.03.11-.02.19-.04.24-.05v-2.98h2.64c.15,0,.27-.05.35-.14.08-.1.12-.23.12-.41,0-.1-.01-.2-.04-.29-.03-.09-.06-.16-.09-.22h-2.98s-.01-.01-.01-.01V1.7h3.06Z",className:"jsx-64174b446b45575f"})]}),(0,i.jsx)(l(),{id:"64174b446b45575f",children:"svg.jsx-64174b446b45575f{height:1rem}span.jsx-64174b446b45575f{padding:.5rem .5rem .5rem 0;-webkit-mask-image:-webkit-linear-gradient(30deg,black 25%,rgba(0,0,0,.2)50%,black 75%);mask-image:-webkit-linear-gradient(30deg,black 25%,rgba(0,0,0,.2)50%,black 75%);mask-image:-moz-linear-gradient(30deg,black 25%,rgba(0,0,0,.2)50%,black 75%);mask-image:-o-linear-gradient(30deg,black 25%,rgba(0,0,0,.2)50%,black 75%);mask-image:linear-gradient(60deg,black 25%,rgba(0,0,0,.2)50%,black 75%);-webkit-mask-size:400%;mask-size:400%;-webkit-mask-position:0%;mask-position:0%}span.jsx-64174b446b45575f:hover{-webkit-mask-position:100%;mask-position:100%;-webkit-transition:mask-position 1s ease,-webkit-mask-position 1s ease;-moz-transition:mask-position 1s ease,-webkit-mask-position 1s ease;-o-transition:mask-position 1s ease,-webkit-mask-position 1s ease;transition:mask-position 1s ease,-webkit-mask-position 1s ease}"})]}),{}),project:{link:"https://github.com/samvera-labs/clover-iiif"},primaryHue:209,sidebar:{autoCollapse:!0,defaultMenuCollapseLevel:1,titleComponent:s=>(0,i.jsx)(a,{...s}),toggleButton:!0}}},5184:function(){}},function(s){s.O(0,[356,101,888,774,179],function(){return s(s.s=2813)}),_N_E=s.O()}]);
\ No newline at end of file
diff --git a/_next/static/chunks/pages/docs/viewer/contentsearch-f775897fd8d93944.js b/_next/static/chunks/pages/docs/viewer/contentsearch-f775897fd8d93944.js
deleted file mode 100644
index 448c9471..00000000
--- a/_next/static/chunks/pages/docs/viewer/contentsearch-f775897fd8d93944.js
+++ /dev/null
@@ -1 +0,0 @@
-(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[678],{3778:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/viewer/contentsearch",function(){return a(5062)}])},5062:function(e,t,a){"use strict";a.r(t),a.d(t,{__toc:function(){return d}});var r=a(1527),n=a(8567),i=a(2610),s=a(2188);a(2897);var o=a(7088),l=a(2712),c=a(1405);let d=[{depth:2,value:"Viewer",id:"viewer"},{depth:2,value:"Content search.",id:"content-search"}];function p(e){let t=Object.assign({h2:"h2",p:"p"},(0,o.a)(),e.components);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h2,{id:"viewer",children:"Viewer"}),"\n",(0,r.jsx)("br",{}),"\n",(0,r.jsx)(c.Z,{href:"/docs/viewer",text:"Docs",size:"small"}),"\n",(0,r.jsx)(t.h2,{id:"content-search",children:"Content search."}),"\n",(0,r.jsx)(t.p,{children:'Type in anything in the search field, and click the search button or type return. This demo will show the search results for "Berliner". Click on any of search results, and Clover will zoom and pan to that search result.'}),"\n",(0,r.jsx)(t.p,{children:'Due to the fact that the Clover documentation site is a statically generated, search will only return results for "Berliner" because the search service returns a static content search manifest. In a fully functional site, the search service will return a dynamic content search manifest based on the entered search words.'}),"\n",(0,r.jsx)(l.Z,{iiifContent:"http://localhost:3000/manifest/content-search/newspaper.json",options:{informationPanel:{open:!0,defaultTab:"manifest-content-search"},canvasHeight:"640px",openSeadragon:{gestureSettingsMouse:{scrollToZoom:!0}}}})]})}let m={MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:t}=Object.assign({},(0,o.a)(),e.components);return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(p,{...e})}):p(e)},pageOpts:{filePath:"pages/docs/viewer/contentsearch.mdx",route:"/docs/viewer/contentsearch",pageMap:[{kind:"Meta",data:{index:{type:"page",title:"Clover IIIF",display:"hidden",theme:{layout:"raw"}},docs:{title:"Documentation",type:"page"},contact:{title:"IIIF Presentation API ↗",type:"page",href:"https://iiif.io/api/presentation",newWindow:!0}}},{kind:"Folder",name:"docs",route:"/docs",children:[{kind:"Meta",data:{index:"Overview",composing:"Composing","--components":{type:"separator",title:"IIIF Components"},image:"Image",scroll:{title:"Scroll",type:"doc"},slider:"Slider",viewer:"Viewer","--primitives":{type:"separator",title:"IIIF Primitives"},homepage:"Homepage",label:"Label",metadata:"Metadata",partOf:"PartOf",requiredStatement:"RequiredStatement",seeAlso:"SeeAlso",summary:"Summary",thumbnail:"Thumbnail",rendering:"Rendering"}},{kind:"MdxPage",name:"composing",route:"/docs/composing",frontMatter:{title:"Getting Started"}},{kind:"MdxPage",name:"homepage",route:"/docs/homepage",frontMatter:{title:"Homepage"}},{kind:"MdxPage",name:"image",route:"/docs/image",frontMatter:{title:"Image"}},{kind:"MdxPage",name:"index",route:"/docs",frontMatter:{title:"Docs"}},{kind:"MdxPage",name:"label",route:"/docs/label",frontMatter:{title:"Label"}},{kind:"MdxPage",name:"metadata",route:"/docs/metadata",frontMatter:{title:"Metadata"}},{kind:"MdxPage",name:"partOf",route:"/docs/partOf",frontMatter:{title:"PartOf"}},{kind:"MdxPage",name:"rendering",route:"/docs/rendering",frontMatter:{title:"Rendering"}},{kind:"MdxPage",name:"requiredStatement",route:"/docs/requiredStatement",frontMatter:{title:"RequiredStatement"}},{kind:"Folder",name:"scroll",route:"/docs/scroll",children:[{kind:"Meta",data:{demo:{title:"Demo",theme:{sidebar:!1,layout:"full"}}}},{kind:"MdxPage",name:"demo",route:"/docs/scroll/demo"}]},{kind:"MdxPage",name:"scroll",route:"/docs/scroll",frontMatter:{title:"Scroll"}},{kind:"MdxPage",name:"seeAlso",route:"/docs/seeAlso",frontMatter:{title:"SeeAlso"}},{kind:"Folder",name:"slider",route:"/docs/slider",children:[{kind:"Meta",data:{demo:{title:"Demo",theme:{sidebar:!1,layout:"full"}}}},{kind:"MdxPage",name:"demo",route:"/docs/slider/demo"}]},{kind:"MdxPage",name:"slider",route:"/docs/slider",frontMatter:{title:"Slider"}},{kind:"MdxPage",name:"summary",route:"/docs/summary",frontMatter:{title:"Summary"}},{kind:"MdxPage",name:"thumbnail",route:"/docs/thumbnail",frontMatter:{title:"Thumbnail"}},{kind:"Folder",name:"viewer",route:"/docs/viewer",children:[{kind:"Meta",data:{demo:{theme:{layout:"full",sidebar:!1},title:"Demo"},contentsearch:{display:"hidden",title:"Content Search",theme:{sidebar:!1,layout:"full"}}}},{kind:"MdxPage",name:"contentsearch",route:"/docs/viewer/contentsearch"},{kind:"MdxPage",name:"demo",route:"/docs/viewer/demo"}]},{kind:"MdxPage",name:"viewer",route:"/docs/viewer",frontMatter:{title:"Viewer"}}]},{kind:"MdxPage",name:"index",route:"/"}],flexsearch:{codeblocks:!0},title:"Contentsearch",headings:d},pageNextRoute:"/docs/viewer/contentsearch",nextraLayout:i.ZP,themeConfig:s.Z};t.default=(0,n.j)(m)},1405:function(e,t,a){"use strict";var r=a(1527),n=a(5455),i=a(1890),s=a.n(i);a(959);let o=(0,n.zo)(s(),{display:"inline-flex",fontSize:"1.47rem",fontWeight:"400",lineHeight:"1.6",borderRadius:"6px",color:"#fff",background:"linear-gradient(130deg, hsl(var(--nextra-primary-hue), 100%, 45%) 0%, hsl(calc(var(--nextra-primary-hue) + 50deg), 100%, 38.2%) 100%)",padding:"0.75rem 1.5rem",gap:"0.5rem",boxShadow:"-15px 0 30px -15px hsl(var(--nextra-primary-hue) 100% 45%), 0 0 30px -15px hsl(235 100% 38.2%), 15px 0 30px -15px hsl(calc(var(--nextra-primary-hue) + 50deg), 100%, 45%)",textShadow:"-1px -1px 2px hsl(var(--nextra-primary-hue), 100%, 10%, 10%)",transition:"all 200ms ease-in-out","&:hover, &:focus":{boxShadow:"-15px 0 30px -15px hsla(var(--nextra-primary-hue), 100%, 45%, 100%), 0 0 30px -15px hsla(235, 100%, 38.2%, 38.2%), 15px 0 30px -15px hsla(calc(var(--nextra-primary-hue) + 10deg), 100%, 85%, 25%)"},variants:{size:{small:{fontSize:"1rem",padding:"0.25rem .75rem"}}},span:{display:"inline-flex",color:"hsla(var(--nextra-primary-hue), 100%, 75%, 61.8%)"}});t.Z=e=>{let{href:t,size:a,text:n}=e;return(0,r.jsxs)(o,{className:"nx-bg-primary-400/10",href:t,size:a,children:[n," ",(0,r.jsx)("span",{children:"→"})]})}},2712:function(e,t,a){"use strict";a.d(t,{Z:function(){return d}});var r=a(1527),n=a(5047),i=a.n(n),s=a(3699);let o=()=>{let{resolvedTheme:e}=(0,s.F)();return"dark"===e};var l=a(4750);let c=i()(()=>Promise.all([a.e(178),a.e(668),a.e(196),a.e(646),a.e(332),a.e(50),a.e(237),a.e(792),a.e(129),a.e(510)]).then(a.bind(a,888)),{loadableGenerated:{webpack:()=>[888]},ssr:!1});var d=e=>{let{iiifContent:t="https://api.dc.library.northwestern.edu/api/v2/works/71153379-4283-43be-8b0f-4e7e3bfda275?as=iiif",options:a,customDisplays:n,iiifContentSearchQuery:i}=e,s=(0,l.useRouter)(),d=s.query["iiif-content"]?s.query["iiif-content"]:t,p=o()?"rgb(17, 17, 17)":"#fff";return(0,r.jsx)(c,{iiifContent:d,iiifContentSearchQuery:i,options:{...a,background:p},...n&&{customDisplays:n}},d)}},5455:function(e,t,a){"use strict";a.d(t,{BC:function(){return n},F4:function(){return o},zo:function(){return i}});var r=a(458);let n={xxs:"(max-width: 349px)",xs:"(max-width: 575px)",sm:"(max-width: 767px)",md:"(max-width: 991px)",lg:"(max-width: 90rem)",xl:"(min-width: calc(90rem + 1px))"},{styled:i,css:s,keyframes:o,createTheme:l}=(0,r.Th)({theme:{colors:{primary:"#1a1d1e",primaryMuted:"#26292b",primaryAlt:"#151718",accent:"hsl(".concat(209," 100% 38.2%)"),accentMuted:"hsl(".concat(209," 80% 61.8%)"),accentAlt:"hsl(".concat(209," 80% 30%)"),secondary:"#FFFFFF",secondaryMuted:"#e6e8eb",secondaryAlt:"#c1c8cd"},fontSizes:{1:"12px",2:"13px",3:"15px",4:"17px",5:"19px",6:"21px",7:"27px",8:"35px",9:"59px"},lineHeights:{1:"12px",2:"13px",3:"15px",4:"17px",5:"19px",6:"21px",7:"27px",8:"35px",9:"59px"},sizes:{1:"5px",2:"10px",3:"15px",4:"20px",5:"25px",6:"35px",7:"45px",8:"65px",9:"80px"},space:{1:"5px",2:"10px",3:"15px",4:"20px",5:"25px",6:"35px",7:"45px",8:"65px",9:"80px"},radii:{1:"4px",2:"6px",3:"8px",4:"12px",round:"50%",pill:"9999px"},transitions:{all:"all 300ms cubic-bezier(0.16, 1, 0.3, 1)"},zIndices:{1:"100",2:"200",3:"300",4:"400",max:"999"}},media:n})},2188:function(e,t,a){"use strict";a.d(t,{Z:function(){return h}});var r=a(1527),n=a(635),i=a.n(n),s=a(959);let o={position:"relative",top:"-1px",right:"0",backgroundColor:"hsl(var(--nextra-primary-hue), var(--nextra-primary-saturation), 32%)",color:"white",borderRadius:"6px",padding:"2px 4px",fontSize:"0.7222rem",fontWeight:"700",marginLeft:"10px"},l=["Scroll"];var c=e=>{let{title:t}=e;return l.includes(t)?(0,r.jsxs)("span",{children:[t,(0,r.jsx)("span",{style:o,children:"Beta"})]}):(0,r.jsx)("span",{children:t})},d=a(2610),p=a(4750);let m="Clover IIIF",x="Showcase IIIF Manifests as interoperable web content.";var h={darkMode:!0,nextThemes:{defaultTheme:"system"},docsRepositoryBase:"https://github.com/samvera-labs/clover-iiif",footer:{text:"Extensible IIIF front-end toolkit and Manifest viewer. Accessible. Composable. Open Source."},useNextSeoProps(){let e=(0,d.ZR)(),t=e.frontMatter.title?"".concat(e.frontMatter.title," – ").concat(m):"".concat(m," – ").concat(x),a=e.frontMatter.description?e.frontMatter.description:x,{route:r}=(0,p.useRouter)(),n=(0,s.useMemo)(()=>new URL(r.endsWith("/")?r:"".concat(r,"/"),"https://samvera-labs.github.io/clover-iiif/").href,[r]);return{defaultTitle:"".concat(m," - ").concat(x),title:t,description:a,canonical:n,openGraph:{url:n,title:t,siteName:"".concat(m," - ").concat(x),images:[{url:"",type:"image/png",width:1200,height:675}]},twitter:{cardType:"summary_large_image"}}},logo:(0,r.jsx)(()=>(0,r.jsxs)("span",{className:"jsx-64174b446b45575f",children:[(0,r.jsxs)("svg",{id:"clover-iiif-logo",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 45.11 8.15",fill:"none",className:"jsx-64174b446b45575f",children:[(0,r.jsx)("path",{fill:"currentColor",d:"m5.66,6.02c-.21.11-.43.21-.65.3s-.51.13-.83.13c-.63,0-1.13-.18-1.48-.55-.36-.37-.53-.9-.53-1.61,0-.46.07-.85.22-1.17.15-.32.36-.57.65-.74.28-.17.63-.26,1.04-.26.31,0,.59.05.83.14.24.1.46.21.66.35.14-.09.26-.21.36-.37.1-.16.16-.33.16-.53,0-.25-.09-.47-.28-.66s-.45-.34-.79-.46c-.34-.11-.76-.17-1.25-.17-.69,0-1.32.15-1.89.45-.57.3-1.03.74-1.36,1.31-.34.57-.5,1.27-.5,2.11,0,.89.17,1.62.52,2.18.35.57.82.99,1.4,1.26.59.27,1.24.41,1.96.41.38,0,.7-.03.96-.1.26-.06.47-.13.61-.19.23-.1.4-.23.49-.38.1-.15.14-.32.14-.5,0-.21-.04-.39-.11-.55-.08-.16-.18-.29-.32-.4Z",className:"jsx-64174b446b45575f"}),(0,r.jsx)("path",{fill:"currentColor",d:"m7.55,0c-.19,0-.37.01-.53.04s-.29.05-.38.07v6.96c0,.37.09.62.27.76.18.14.47.2.86.2.19,0,.37-.01.53-.04.16-.02.29-.05.38-.07V.96c0-.38-.09-.63-.26-.76-.18-.13-.46-.2-.86-.2Z",className:"jsx-64174b446b45575f"}),(0,r.jsx)("path",{fill:"currentColor",d:"m13.93,2.3c-.47-.26-1.02-.38-1.65-.38s-1.17.13-1.64.38c-.47.25-.84.61-1.1,1.07-.26.46-.4,1.01-.4,1.64s.13,1.2.39,1.67c.26.46.63.82,1.1,1.07.47.25,1.02.37,1.66.37s1.19-.13,1.66-.38c.47-.25.83-.61,1.09-1.07.26-.46.39-1.02.39-1.66s-.13-1.17-.4-1.63c-.26-.46-.63-.82-1.1-1.08Zm-.87,3.83c-.18.26-.44.39-.78.39s-.6-.13-.78-.38c-.18-.26-.28-.63-.28-1.13s.09-.85.28-1.11c.19-.26.45-.39.77-.39s.59.13.77.4.28.63.28,1.1-.09.86-.28,1.12Z",className:"jsx-64174b446b45575f"}),(0,r.jsx)("path",{fill:"currentColor",d:"m20.29,1.98c-.35,0-.67.08-.96.23-.14.69-.29,1.39-.46,2.12s-.33,1.38-.48,1.97h-.06c-.02-.11-.06-.25-.1-.42-.04-.17-.09-.36-.15-.57s-.12-.43-.18-.67l-.47-1.84c-.08-.32-.21-.54-.4-.65-.18-.12-.42-.17-.7-.17-.22,0-.43.04-.62.13s-.34.18-.45.29c.06.29.15.62.27,1.01.12.38.24.78.38,1.19.14.41.27.81.41,1.2.14.39.27.73.4,1.04.12.3.23.54.32.71.09.18.25.3.47.38.23.08.5.12.81.12.27,0,.52-.03.74-.09.22-.06.38-.13.49-.21.12-.22.26-.5.41-.85.15-.35.31-.73.46-1.15.16-.41.3-.82.43-1.21s.23-.75.31-1.06.12-.54.12-.7c0-.3-.1-.5-.29-.62s-.43-.18-.71-.18Z",className:"jsx-64174b446b45575f"}),(0,r.jsx)("path",{fill:"currentColor",d:"m25.91,2.25c-.42-.22-.92-.33-1.49-.33-.38,0-.74.06-1.1.17-.36.12-.68.29-.97.53-.29.24-.52.55-.69.94-.17.38-.26.84-.26,1.37,0,.71.15,1.3.44,1.78.29.47.69.83,1.19,1.06.5.24,1.06.35,1.69.35.45,0,.84-.04,1.19-.12.34-.08.61-.21.81-.38.2-.17.29-.39.29-.65,0-.16-.04-.31-.13-.46-.09-.14-.2-.26-.32-.34-.18.1-.43.2-.73.29-.3.09-.62.13-.96.13s-.67-.07-.95-.22c-.23-.11-.37-.32-.47-.58l2.96-.44c.27-.04.48-.13.64-.28.15-.14.23-.35.23-.62,0-.5-.12-.93-.36-1.31-.24-.38-.57-.68-1-.9Zm-2.59,2.21c.04-.31.13-.56.31-.74.21-.21.48-.31.8-.31s.53.08.67.24c.14.16.22.32.24.48l-2.02.33Z",className:"jsx-64174b446b45575f"}),(0,r.jsx)("path",{fill:"currentColor",d:"m30.59,1.93c-.4,0-.79.04-1.16.13-.38.09-.7.22-.98.38-.2.13-.36.28-.49.45-.12.17-.19.37-.19.61v3.56c0,.37.09.62.27.76.18.14.47.2.86.2.19,0,.37-.01.53-.04.16-.02.29-.05.38-.07V3.82c.17-.1.36-.17.59-.22.22-.05.44-.07.64-.07.14,0,.26,0,.37.01.11,0,.21.02.29.04.06-.09.1-.19.14-.32s.06-.26.06-.4c0-.62-.44-.92-1.31-.92Z",className:"jsx-64174b446b45575f"}),(0,r.jsx)("path",{fill:"currentColor",d:"m33.91.56c-.12,0-.24.01-.35.03-.11.02-.2.04-.25.05v6.76c0,.22.06.37.17.46.11.09.29.14.53.14.12,0,.24,0,.35-.03.11-.02.19-.04.24-.07V1.16c0-.22-.05-.38-.16-.47-.11-.09-.28-.13-.52-.13Z",className:"jsx-64174b446b45575f"}),(0,r.jsx)("path",{fill:"currentColor",d:"m36.24.56c-.12,0-.24.01-.35.03-.11.02-.2.04-.25.05v6.76c0,.22.06.37.17.46.11.09.29.14.53.14.12,0,.24,0,.35-.03.11-.02.19-.04.24-.07V1.16c0-.22-.05-.38-.16-.47-.11-.09-.28-.13-.52-.13Z",className:"jsx-64174b446b45575f"}),(0,r.jsx)("path",{fill:"currentColor",d:"m38.57.56c-.12,0-.24.01-.35.03s-.2.04-.25.05v6.76c0,.22.06.37.17.46s.29.14.53.14c.12,0,.24,0,.35-.03.11-.02.19-.04.24-.07V1.16c0-.22-.05-.38-.16-.47s-.28-.13-.52-.13Z",className:"jsx-64174b446b45575f"}),(0,r.jsx)("path",{fill:"currentColor",d:"m44.63,1.7c.15,0,.27-.05.35-.14.08-.1.13-.23.13-.41,0-.1-.02-.2-.05-.29-.03-.09-.06-.16-.1-.21h-3.98c-.21,0-.38.06-.5.19-.13.12-.19.29-.19.5v6.08c0,.21.06.36.17.45.12.09.29.14.53.14.12,0,.24,0,.35-.03.11-.02.19-.04.24-.05v-2.98h2.64c.15,0,.27-.05.35-.14.08-.1.12-.23.12-.41,0-.1-.01-.2-.04-.29-.03-.09-.06-.16-.09-.22h-2.98s-.01-.01-.01-.01V1.7h3.06Z",className:"jsx-64174b446b45575f"})]}),(0,r.jsx)(i(),{id:"64174b446b45575f",children:"svg.jsx-64174b446b45575f{height:1rem}span.jsx-64174b446b45575f{padding:.5rem .5rem .5rem 0;-webkit-mask-image:-webkit-linear-gradient(30deg,black 25%,rgba(0,0,0,.2)50%,black 75%);mask-image:-webkit-linear-gradient(30deg,black 25%,rgba(0,0,0,.2)50%,black 75%);mask-image:-moz-linear-gradient(30deg,black 25%,rgba(0,0,0,.2)50%,black 75%);mask-image:-o-linear-gradient(30deg,black 25%,rgba(0,0,0,.2)50%,black 75%);mask-image:linear-gradient(60deg,black 25%,rgba(0,0,0,.2)50%,black 75%);-webkit-mask-size:400%;mask-size:400%;-webkit-mask-position:0%;mask-position:0%}span.jsx-64174b446b45575f:hover{-webkit-mask-position:100%;mask-position:100%;-webkit-transition:mask-position 1s ease,-webkit-mask-position 1s ease;-moz-transition:mask-position 1s ease,-webkit-mask-position 1s ease;-o-transition:mask-position 1s ease,-webkit-mask-position 1s ease;transition:mask-position 1s ease,-webkit-mask-position 1s ease}"})]}),{}),project:{link:"https://github.com/samvera-labs/clover-iiif"},primaryHue:209,sidebar:{autoCollapse:!0,defaultMenuCollapseLevel:1,titleComponent:e=>(0,r.jsx)(c,{...e}),toggleButton:!0}}},5184:function(){}},function(e){e.O(0,[356,101,888,774,179],function(){return e(e.s=3778)}),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/_next/static/chunks/pages/docs/viewer/contentsearch-f8183febfc132ba5.js b/_next/static/chunks/pages/docs/viewer/contentsearch-f8183febfc132ba5.js
new file mode 100644
index 00000000..70102dab
--- /dev/null
+++ b/_next/static/chunks/pages/docs/viewer/contentsearch-f8183febfc132ba5.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[678],{3778:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/viewer/contentsearch",function(){return a(5062)}])},5062:function(e,t,a){"use strict";a.r(t),a.d(t,{__toc:function(){return d}});var r=a(1527),n=a(8567),i=a(2610),s=a(2188);a(2897);var o=a(7088),l=a(2712),c=a(1405);let d=[{depth:2,value:"Viewer",id:"viewer"},{depth:2,value:"Content search.",id:"content-search"}];function p(e){let t=Object.assign({h2:"h2",p:"p"},(0,o.a)(),e.components);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h2,{id:"viewer",children:"Viewer"}),"\n",(0,r.jsx)("br",{}),"\n",(0,r.jsx)(c.Z,{href:"/docs/viewer",text:"Docs",size:"small"}),"\n",(0,r.jsx)(t.h2,{id:"content-search",children:"Content search."}),"\n",(0,r.jsx)(t.p,{children:'Type in anything in the search field, and click the search button or type return. This demo will show the search results for "Berliner". Click on any of search results, and Clover will zoom and pan to that search result.'}),"\n",(0,r.jsx)(t.p,{children:'Due to the fact that the Clover documentation site is a statically generated, search will only return results for "Berliner" because the search service returns a static content search manifest. In a fully functional site, the search service will return a dynamic content search manifest based on the entered search words.'}),"\n",(0,r.jsx)(l.Z,{iiifContent:"http://localhost:3000/manifest/content-search/newspaper.json",options:{informationPanel:{open:!0,defaultTab:"manifest-content-search"},canvasHeight:"640px",openSeadragon:{gestureSettingsMouse:{scrollToZoom:!0}}}})]})}let m={MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:t}=Object.assign({},(0,o.a)(),e.components);return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(p,{...e})}):p(e)},pageOpts:{filePath:"pages/docs/viewer/contentsearch.mdx",route:"/docs/viewer/contentsearch",pageMap:[{kind:"Meta",data:{index:{type:"page",title:"Clover IIIF",display:"hidden",theme:{layout:"raw"}},docs:{title:"Documentation",type:"page"},contact:{title:"IIIF Presentation API ↗",type:"page",href:"https://iiif.io/api/presentation",newWindow:!0}}},{kind:"Folder",name:"docs",route:"/docs",children:[{kind:"Meta",data:{index:"Overview",composing:"Composing","--components":{type:"separator",title:"IIIF Components"},image:"Image",scroll:{title:"Scroll",type:"doc"},slider:"Slider",viewer:"Viewer","--primitives":{type:"separator",title:"IIIF Primitives"},homepage:"Homepage",label:"Label",metadata:"Metadata",partOf:"PartOf",requiredStatement:"RequiredStatement",seeAlso:"SeeAlso",summary:"Summary",thumbnail:"Thumbnail",rendering:"Rendering"}},{kind:"MdxPage",name:"composing",route:"/docs/composing",frontMatter:{title:"Getting Started"}},{kind:"MdxPage",name:"homepage",route:"/docs/homepage",frontMatter:{title:"Homepage"}},{kind:"MdxPage",name:"image",route:"/docs/image",frontMatter:{title:"Image"}},{kind:"MdxPage",name:"index",route:"/docs",frontMatter:{title:"Docs"}},{kind:"MdxPage",name:"label",route:"/docs/label",frontMatter:{title:"Label"}},{kind:"MdxPage",name:"metadata",route:"/docs/metadata",frontMatter:{title:"Metadata"}},{kind:"MdxPage",name:"partOf",route:"/docs/partOf",frontMatter:{title:"PartOf"}},{kind:"MdxPage",name:"rendering",route:"/docs/rendering",frontMatter:{title:"Rendering"}},{kind:"MdxPage",name:"requiredStatement",route:"/docs/requiredStatement",frontMatter:{title:"RequiredStatement"}},{kind:"Folder",name:"scroll",route:"/docs/scroll",children:[{kind:"Meta",data:{demo:{title:"Demo",theme:{sidebar:!1,layout:"full"}}}},{kind:"MdxPage",name:"demo",route:"/docs/scroll/demo"}]},{kind:"MdxPage",name:"scroll",route:"/docs/scroll",frontMatter:{title:"Scroll"}},{kind:"MdxPage",name:"seeAlso",route:"/docs/seeAlso",frontMatter:{title:"SeeAlso"}},{kind:"Folder",name:"slider",route:"/docs/slider",children:[{kind:"Meta",data:{demo:{title:"Demo",theme:{sidebar:!1,layout:"full"}}}},{kind:"MdxPage",name:"demo",route:"/docs/slider/demo"}]},{kind:"MdxPage",name:"slider",route:"/docs/slider",frontMatter:{title:"Slider"}},{kind:"MdxPage",name:"summary",route:"/docs/summary",frontMatter:{title:"Summary"}},{kind:"MdxPage",name:"thumbnail",route:"/docs/thumbnail",frontMatter:{title:"Thumbnail"}},{kind:"Folder",name:"viewer",route:"/docs/viewer",children:[{kind:"Meta",data:{demo:{theme:{layout:"full",sidebar:!1},title:"Demo"},contentsearch:{display:"hidden",title:"Content Search",theme:{sidebar:!1,layout:"full"}}}},{kind:"MdxPage",name:"contentsearch",route:"/docs/viewer/contentsearch"},{kind:"MdxPage",name:"demo",route:"/docs/viewer/demo"}]},{kind:"MdxPage",name:"viewer",route:"/docs/viewer",frontMatter:{title:"Viewer"}}]},{kind:"MdxPage",name:"index",route:"/"}],flexsearch:{codeblocks:!0},title:"Contentsearch",headings:d},pageNextRoute:"/docs/viewer/contentsearch",nextraLayout:i.ZP,themeConfig:s.Z};t.default=(0,n.j)(m)},1405:function(e,t,a){"use strict";var r=a(1527),n=a(5455),i=a(1890),s=a.n(i);a(959);let o=(0,n.zo)(s(),{display:"inline-flex",fontSize:"1.47rem",fontWeight:"400",lineHeight:"1.6",borderRadius:"6px",color:"#fff",background:"linear-gradient(130deg, hsl(var(--nextra-primary-hue), 100%, 45%) 0%, hsl(calc(var(--nextra-primary-hue) + 50deg), 100%, 38.2%) 100%)",padding:"0.75rem 1.5rem",gap:"0.5rem",boxShadow:"-15px 0 30px -15px hsl(var(--nextra-primary-hue) 100% 45%), 0 0 30px -15px hsl(235 100% 38.2%), 15px 0 30px -15px hsl(calc(var(--nextra-primary-hue) + 50deg), 100%, 45%)",textShadow:"-1px -1px 2px hsl(var(--nextra-primary-hue), 100%, 10%, 10%)",transition:"all 200ms ease-in-out","&:hover, &:focus":{boxShadow:"-15px 0 30px -15px hsla(var(--nextra-primary-hue), 100%, 45%, 100%), 0 0 30px -15px hsla(235, 100%, 38.2%, 38.2%), 15px 0 30px -15px hsla(calc(var(--nextra-primary-hue) + 10deg), 100%, 85%, 25%)"},variants:{size:{small:{fontSize:"1rem",padding:"0.25rem .75rem"}}},span:{display:"inline-flex",color:"hsla(var(--nextra-primary-hue), 100%, 75%, 61.8%)"}});t.Z=e=>{let{href:t,size:a,text:n}=e;return(0,r.jsxs)(o,{className:"nx-bg-primary-400/10",href:t,size:a,children:[n," ",(0,r.jsx)("span",{children:"→"})]})}},2712:function(e,t,a){"use strict";a.d(t,{Z:function(){return d}});var r=a(1527),n=a(5047),i=a.n(n),s=a(3699);let o=()=>{let{resolvedTheme:e}=(0,s.F)();return"dark"===e};var l=a(4750);let c=i()(()=>Promise.all([a.e(178),a.e(668),a.e(196),a.e(646),a.e(332),a.e(50),a.e(237),a.e(792),a.e(129),a.e(82)]).then(a.bind(a,4082)),{loadableGenerated:{webpack:()=>[4082]},ssr:!1});var d=e=>{let{iiifContent:t="https://api.dc.library.northwestern.edu/api/v2/works/71153379-4283-43be-8b0f-4e7e3bfda275?as=iiif",options:a,customDisplays:n,iiifContentSearchQuery:i,plugins:s}=e,d=(0,l.useRouter)(),p=d.query["iiif-content"]?d.query["iiif-content"]:t,m=o()?"rgb(17, 17, 17)":"#fff";return(0,r.jsx)(c,{iiifContent:p,iiifContentSearchQuery:i,options:{...a,background:m},...n&&{customDisplays:n},...s&&{plugins:s}},p)}},5455:function(e,t,a){"use strict";a.d(t,{BC:function(){return n},F4:function(){return o},zo:function(){return i}});var r=a(458);let n={xxs:"(max-width: 349px)",xs:"(max-width: 575px)",sm:"(max-width: 767px)",md:"(max-width: 991px)",lg:"(max-width: 90rem)",xl:"(min-width: calc(90rem + 1px))"},{styled:i,css:s,keyframes:o,createTheme:l}=(0,r.Th)({theme:{colors:{primary:"#1a1d1e",primaryMuted:"#26292b",primaryAlt:"#151718",accent:"hsl(".concat(209," 100% 38.2%)"),accentMuted:"hsl(".concat(209," 80% 61.8%)"),accentAlt:"hsl(".concat(209," 80% 30%)"),secondary:"#FFFFFF",secondaryMuted:"#e6e8eb",secondaryAlt:"#c1c8cd"},fontSizes:{1:"12px",2:"13px",3:"15px",4:"17px",5:"19px",6:"21px",7:"27px",8:"35px",9:"59px"},lineHeights:{1:"12px",2:"13px",3:"15px",4:"17px",5:"19px",6:"21px",7:"27px",8:"35px",9:"59px"},sizes:{1:"5px",2:"10px",3:"15px",4:"20px",5:"25px",6:"35px",7:"45px",8:"65px",9:"80px"},space:{1:"5px",2:"10px",3:"15px",4:"20px",5:"25px",6:"35px",7:"45px",8:"65px",9:"80px"},radii:{1:"4px",2:"6px",3:"8px",4:"12px",round:"50%",pill:"9999px"},transitions:{all:"all 300ms cubic-bezier(0.16, 1, 0.3, 1)"},zIndices:{1:"100",2:"200",3:"300",4:"400",max:"999"}},media:n})},2188:function(e,t,a){"use strict";a.d(t,{Z:function(){return h}});var r=a(1527),n=a(635),i=a.n(n),s=a(959);let o={position:"relative",top:"-1px",right:"0",backgroundColor:"hsl(var(--nextra-primary-hue), var(--nextra-primary-saturation), 32%)",color:"white",borderRadius:"6px",padding:"2px 4px",fontSize:"0.7222rem",fontWeight:"700",marginLeft:"10px"},l=["Scroll"];var c=e=>{let{title:t}=e;return l.includes(t)?(0,r.jsxs)("span",{children:[t,(0,r.jsx)("span",{style:o,children:"Beta"})]}):(0,r.jsx)("span",{children:t})},d=a(2610),p=a(4750);let m="Clover IIIF",x="Showcase IIIF Manifests as interoperable web content.";var h={darkMode:!0,nextThemes:{defaultTheme:"system"},docsRepositoryBase:"https://github.com/samvera-labs/clover-iiif",footer:{text:"Extensible IIIF front-end toolkit and Manifest viewer. Accessible. Composable. Open Source."},useNextSeoProps(){let e=(0,d.ZR)(),t=e.frontMatter.title?"".concat(e.frontMatter.title," – ").concat(m):"".concat(m," – ").concat(x),a=e.frontMatter.description?e.frontMatter.description:x,{route:r}=(0,p.useRouter)(),n=(0,s.useMemo)(()=>new URL(r.endsWith("/")?r:"".concat(r,"/"),"https://samvera-labs.github.io/clover-iiif/").href,[r]);return{defaultTitle:"".concat(m," - ").concat(x),title:t,description:a,canonical:n,openGraph:{url:n,title:t,siteName:"".concat(m," - ").concat(x),images:[{url:"",type:"image/png",width:1200,height:675}]},twitter:{cardType:"summary_large_image"}}},logo:(0,r.jsx)(()=>(0,r.jsxs)("span",{className:"jsx-64174b446b45575f",children:[(0,r.jsxs)("svg",{id:"clover-iiif-logo",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 45.11 8.15",fill:"none",className:"jsx-64174b446b45575f",children:[(0,r.jsx)("path",{fill:"currentColor",d:"m5.66,6.02c-.21.11-.43.21-.65.3s-.51.13-.83.13c-.63,0-1.13-.18-1.48-.55-.36-.37-.53-.9-.53-1.61,0-.46.07-.85.22-1.17.15-.32.36-.57.65-.74.28-.17.63-.26,1.04-.26.31,0,.59.05.83.14.24.1.46.21.66.35.14-.09.26-.21.36-.37.1-.16.16-.33.16-.53,0-.25-.09-.47-.28-.66s-.45-.34-.79-.46c-.34-.11-.76-.17-1.25-.17-.69,0-1.32.15-1.89.45-.57.3-1.03.74-1.36,1.31-.34.57-.5,1.27-.5,2.11,0,.89.17,1.62.52,2.18.35.57.82.99,1.4,1.26.59.27,1.24.41,1.96.41.38,0,.7-.03.96-.1.26-.06.47-.13.61-.19.23-.1.4-.23.49-.38.1-.15.14-.32.14-.5,0-.21-.04-.39-.11-.55-.08-.16-.18-.29-.32-.4Z",className:"jsx-64174b446b45575f"}),(0,r.jsx)("path",{fill:"currentColor",d:"m7.55,0c-.19,0-.37.01-.53.04s-.29.05-.38.07v6.96c0,.37.09.62.27.76.18.14.47.2.86.2.19,0,.37-.01.53-.04.16-.02.29-.05.38-.07V.96c0-.38-.09-.63-.26-.76-.18-.13-.46-.2-.86-.2Z",className:"jsx-64174b446b45575f"}),(0,r.jsx)("path",{fill:"currentColor",d:"m13.93,2.3c-.47-.26-1.02-.38-1.65-.38s-1.17.13-1.64.38c-.47.25-.84.61-1.1,1.07-.26.46-.4,1.01-.4,1.64s.13,1.2.39,1.67c.26.46.63.82,1.1,1.07.47.25,1.02.37,1.66.37s1.19-.13,1.66-.38c.47-.25.83-.61,1.09-1.07.26-.46.39-1.02.39-1.66s-.13-1.17-.4-1.63c-.26-.46-.63-.82-1.1-1.08Zm-.87,3.83c-.18.26-.44.39-.78.39s-.6-.13-.78-.38c-.18-.26-.28-.63-.28-1.13s.09-.85.28-1.11c.19-.26.45-.39.77-.39s.59.13.77.4.28.63.28,1.1-.09.86-.28,1.12Z",className:"jsx-64174b446b45575f"}),(0,r.jsx)("path",{fill:"currentColor",d:"m20.29,1.98c-.35,0-.67.08-.96.23-.14.69-.29,1.39-.46,2.12s-.33,1.38-.48,1.97h-.06c-.02-.11-.06-.25-.1-.42-.04-.17-.09-.36-.15-.57s-.12-.43-.18-.67l-.47-1.84c-.08-.32-.21-.54-.4-.65-.18-.12-.42-.17-.7-.17-.22,0-.43.04-.62.13s-.34.18-.45.29c.06.29.15.62.27,1.01.12.38.24.78.38,1.19.14.41.27.81.41,1.2.14.39.27.73.4,1.04.12.3.23.54.32.71.09.18.25.3.47.38.23.08.5.12.81.12.27,0,.52-.03.74-.09.22-.06.38-.13.49-.21.12-.22.26-.5.41-.85.15-.35.31-.73.46-1.15.16-.41.3-.82.43-1.21s.23-.75.31-1.06.12-.54.12-.7c0-.3-.1-.5-.29-.62s-.43-.18-.71-.18Z",className:"jsx-64174b446b45575f"}),(0,r.jsx)("path",{fill:"currentColor",d:"m25.91,2.25c-.42-.22-.92-.33-1.49-.33-.38,0-.74.06-1.1.17-.36.12-.68.29-.97.53-.29.24-.52.55-.69.94-.17.38-.26.84-.26,1.37,0,.71.15,1.3.44,1.78.29.47.69.83,1.19,1.06.5.24,1.06.35,1.69.35.45,0,.84-.04,1.19-.12.34-.08.61-.21.81-.38.2-.17.29-.39.29-.65,0-.16-.04-.31-.13-.46-.09-.14-.2-.26-.32-.34-.18.1-.43.2-.73.29-.3.09-.62.13-.96.13s-.67-.07-.95-.22c-.23-.11-.37-.32-.47-.58l2.96-.44c.27-.04.48-.13.64-.28.15-.14.23-.35.23-.62,0-.5-.12-.93-.36-1.31-.24-.38-.57-.68-1-.9Zm-2.59,2.21c.04-.31.13-.56.31-.74.21-.21.48-.31.8-.31s.53.08.67.24c.14.16.22.32.24.48l-2.02.33Z",className:"jsx-64174b446b45575f"}),(0,r.jsx)("path",{fill:"currentColor",d:"m30.59,1.93c-.4,0-.79.04-1.16.13-.38.09-.7.22-.98.38-.2.13-.36.28-.49.45-.12.17-.19.37-.19.61v3.56c0,.37.09.62.27.76.18.14.47.2.86.2.19,0,.37-.01.53-.04.16-.02.29-.05.38-.07V3.82c.17-.1.36-.17.59-.22.22-.05.44-.07.64-.07.14,0,.26,0,.37.01.11,0,.21.02.29.04.06-.09.1-.19.14-.32s.06-.26.06-.4c0-.62-.44-.92-1.31-.92Z",className:"jsx-64174b446b45575f"}),(0,r.jsx)("path",{fill:"currentColor",d:"m33.91.56c-.12,0-.24.01-.35.03-.11.02-.2.04-.25.05v6.76c0,.22.06.37.17.46.11.09.29.14.53.14.12,0,.24,0,.35-.03.11-.02.19-.04.24-.07V1.16c0-.22-.05-.38-.16-.47-.11-.09-.28-.13-.52-.13Z",className:"jsx-64174b446b45575f"}),(0,r.jsx)("path",{fill:"currentColor",d:"m36.24.56c-.12,0-.24.01-.35.03-.11.02-.2.04-.25.05v6.76c0,.22.06.37.17.46.11.09.29.14.53.14.12,0,.24,0,.35-.03.11-.02.19-.04.24-.07V1.16c0-.22-.05-.38-.16-.47-.11-.09-.28-.13-.52-.13Z",className:"jsx-64174b446b45575f"}),(0,r.jsx)("path",{fill:"currentColor",d:"m38.57.56c-.12,0-.24.01-.35.03s-.2.04-.25.05v6.76c0,.22.06.37.17.46s.29.14.53.14c.12,0,.24,0,.35-.03.11-.02.19-.04.24-.07V1.16c0-.22-.05-.38-.16-.47s-.28-.13-.52-.13Z",className:"jsx-64174b446b45575f"}),(0,r.jsx)("path",{fill:"currentColor",d:"m44.63,1.7c.15,0,.27-.05.35-.14.08-.1.13-.23.13-.41,0-.1-.02-.2-.05-.29-.03-.09-.06-.16-.1-.21h-3.98c-.21,0-.38.06-.5.19-.13.12-.19.29-.19.5v6.08c0,.21.06.36.17.45.12.09.29.14.53.14.12,0,.24,0,.35-.03.11-.02.19-.04.24-.05v-2.98h2.64c.15,0,.27-.05.35-.14.08-.1.12-.23.12-.41,0-.1-.01-.2-.04-.29-.03-.09-.06-.16-.09-.22h-2.98s-.01-.01-.01-.01V1.7h3.06Z",className:"jsx-64174b446b45575f"})]}),(0,r.jsx)(i(),{id:"64174b446b45575f",children:"svg.jsx-64174b446b45575f{height:1rem}span.jsx-64174b446b45575f{padding:.5rem .5rem .5rem 0;-webkit-mask-image:-webkit-linear-gradient(30deg,black 25%,rgba(0,0,0,.2)50%,black 75%);mask-image:-webkit-linear-gradient(30deg,black 25%,rgba(0,0,0,.2)50%,black 75%);mask-image:-moz-linear-gradient(30deg,black 25%,rgba(0,0,0,.2)50%,black 75%);mask-image:-o-linear-gradient(30deg,black 25%,rgba(0,0,0,.2)50%,black 75%);mask-image:linear-gradient(60deg,black 25%,rgba(0,0,0,.2)50%,black 75%);-webkit-mask-size:400%;mask-size:400%;-webkit-mask-position:0%;mask-position:0%}span.jsx-64174b446b45575f:hover{-webkit-mask-position:100%;mask-position:100%;-webkit-transition:mask-position 1s ease,-webkit-mask-position 1s ease;-moz-transition:mask-position 1s ease,-webkit-mask-position 1s ease;-o-transition:mask-position 1s ease,-webkit-mask-position 1s ease;transition:mask-position 1s ease,-webkit-mask-position 1s ease}"})]}),{}),project:{link:"https://github.com/samvera-labs/clover-iiif"},primaryHue:209,sidebar:{autoCollapse:!0,defaultMenuCollapseLevel:1,titleComponent:e=>(0,r.jsx)(c,{...e}),toggleButton:!0}}},5184:function(){}},function(e){e.O(0,[356,101,888,774,179],function(){return e(e.s=3778)}),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/_next/static/chunks/pages/docs/viewer/demo-d956ae30199064dc.js b/_next/static/chunks/pages/docs/viewer/demo-d956ae30199064dc.js
new file mode 100644
index 00000000..5e788fc0
--- /dev/null
+++ b/_next/static/chunks/pages/docs/viewer/demo-d956ae30199064dc.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[838],{9519:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/viewer/demo",function(){return a(7397)}])},7397:function(e,t,a){"use strict";a.r(t),a.d(t,{__toc:function(){return p}});var r=a(1527),n=a(8567),i=a(2610),o=a(2188);a(2897);var s=a(7088),l=a(2712),d=a(3111),c=a(1405);let p=[{depth:2,value:"Viewer",id:"viewer"}];function m(e){let t=Object.assign({h2:"h2",p:"p",code:"code",a:"a",hr:"hr"},(0,s.a)(),e.components);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h2,{id:"viewer",children:"Viewer"}),"\n",(0,r.jsx)("br",{}),"\n",(0,r.jsx)(c.Z,{href:"/docs/viewer",text:"Docs",size:"small"}),"\n",(0,r.jsx)(d.Z,{placeholder:"IIIF Manifest or Collection"}),"\n",(0,r.jsxs)(t.p,{children:["A UI component that renders a multicanvas IIIF item viewer with pan-zoom support for ",(0,r.jsx)(t.code,{children:"Image"})," via ",(0,r.jsx)(t.a,{href:"https://openseadragon.github.io/",children:"OpenSeadragon"})," and ",(0,r.jsx)(t.code,{children:"Video"})," and ",(0,r.jsx)(t.code,{children:"Sound"})," content resources using the ",(0,r.jsx)(t.a,{href:"https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video",children:"HTML video element"}),"."]}),"\n",(0,r.jsx)(t.hr,{}),"\n",(0,r.jsx)(l.Z,{options:{canvasHeight:"500px",openSeadragon:{gestureSettingsMouse:{scrollToZoom:!1}}}})]})}let x={MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:t}=Object.assign({},(0,s.a)(),e.components);return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(m,{...e})}):m(e)},pageOpts:{filePath:"pages/docs/viewer/demo.mdx",route:"/docs/viewer/demo",pageMap:[{kind:"Meta",data:{index:{type:"page",title:"Clover IIIF",display:"hidden",theme:{layout:"raw"}},docs:{title:"Documentation",type:"page"},contact:{title:"IIIF Presentation API ↗",type:"page",href:"https://iiif.io/api/presentation",newWindow:!0}}},{kind:"Folder",name:"docs",route:"/docs",children:[{kind:"Meta",data:{index:"Overview",composing:"Composing","--components":{type:"separator",title:"IIIF Components"},image:"Image",scroll:{title:"Scroll",type:"doc"},slider:"Slider",viewer:"Viewer","--primitives":{type:"separator",title:"IIIF Primitives"},homepage:"Homepage",label:"Label",metadata:"Metadata",partOf:"PartOf",requiredStatement:"RequiredStatement",seeAlso:"SeeAlso",summary:"Summary",thumbnail:"Thumbnail",rendering:"Rendering"}},{kind:"MdxPage",name:"composing",route:"/docs/composing",frontMatter:{title:"Getting Started"}},{kind:"MdxPage",name:"homepage",route:"/docs/homepage",frontMatter:{title:"Homepage"}},{kind:"MdxPage",name:"image",route:"/docs/image",frontMatter:{title:"Image"}},{kind:"MdxPage",name:"index",route:"/docs",frontMatter:{title:"Docs"}},{kind:"MdxPage",name:"label",route:"/docs/label",frontMatter:{title:"Label"}},{kind:"MdxPage",name:"metadata",route:"/docs/metadata",frontMatter:{title:"Metadata"}},{kind:"MdxPage",name:"partOf",route:"/docs/partOf",frontMatter:{title:"PartOf"}},{kind:"MdxPage",name:"rendering",route:"/docs/rendering",frontMatter:{title:"Rendering"}},{kind:"MdxPage",name:"requiredStatement",route:"/docs/requiredStatement",frontMatter:{title:"RequiredStatement"}},{kind:"Folder",name:"scroll",route:"/docs/scroll",children:[{kind:"Meta",data:{demo:{title:"Demo",theme:{sidebar:!1,layout:"full"}}}},{kind:"MdxPage",name:"demo",route:"/docs/scroll/demo"}]},{kind:"MdxPage",name:"scroll",route:"/docs/scroll",frontMatter:{title:"Scroll"}},{kind:"MdxPage",name:"seeAlso",route:"/docs/seeAlso",frontMatter:{title:"SeeAlso"}},{kind:"Folder",name:"slider",route:"/docs/slider",children:[{kind:"Meta",data:{demo:{title:"Demo",theme:{sidebar:!1,layout:"full"}}}},{kind:"MdxPage",name:"demo",route:"/docs/slider/demo"}]},{kind:"MdxPage",name:"slider",route:"/docs/slider",frontMatter:{title:"Slider"}},{kind:"MdxPage",name:"summary",route:"/docs/summary",frontMatter:{title:"Summary"}},{kind:"MdxPage",name:"thumbnail",route:"/docs/thumbnail",frontMatter:{title:"Thumbnail"}},{kind:"Folder",name:"viewer",route:"/docs/viewer",children:[{kind:"Meta",data:{demo:{theme:{layout:"full",sidebar:!1},title:"Demo"},contentsearch:{display:"hidden",title:"Content Search",theme:{sidebar:!1,layout:"full"}}}},{kind:"MdxPage",name:"contentsearch",route:"/docs/viewer/contentsearch"},{kind:"MdxPage",name:"demo",route:"/docs/viewer/demo"}]},{kind:"MdxPage",name:"viewer",route:"/docs/viewer",frontMatter:{title:"Viewer"}}]},{kind:"MdxPage",name:"index",route:"/"}],flexsearch:{codeblocks:!0},title:"Demo",headings:p},pageNextRoute:"/docs/viewer/demo",nextraLayout:i.ZP,themeConfig:o.Z};t.default=(0,n.j)(x)},1405:function(e,t,a){"use strict";var r=a(1527),n=a(5455),i=a(1890),o=a.n(i);a(959);let s=(0,n.zo)(o(),{display:"inline-flex",fontSize:"1.47rem",fontWeight:"400",lineHeight:"1.6",borderRadius:"6px",color:"#fff",background:"linear-gradient(130deg, hsl(var(--nextra-primary-hue), 100%, 45%) 0%, hsl(calc(var(--nextra-primary-hue) + 50deg), 100%, 38.2%) 100%)",padding:"0.75rem 1.5rem",gap:"0.5rem",boxShadow:"-15px 0 30px -15px hsl(var(--nextra-primary-hue) 100% 45%), 0 0 30px -15px hsl(235 100% 38.2%), 15px 0 30px -15px hsl(calc(var(--nextra-primary-hue) + 50deg), 100%, 45%)",textShadow:"-1px -1px 2px hsl(var(--nextra-primary-hue), 100%, 10%, 10%)",transition:"all 200ms ease-in-out","&:hover, &:focus":{boxShadow:"-15px 0 30px -15px hsla(var(--nextra-primary-hue), 100%, 45%, 100%), 0 0 30px -15px hsla(235, 100%, 38.2%, 38.2%), 15px 0 30px -15px hsla(calc(var(--nextra-primary-hue) + 10deg), 100%, 85%, 25%)"},variants:{size:{small:{fontSize:"1rem",padding:"0.25rem .75rem"}}},span:{display:"inline-flex",color:"hsla(var(--nextra-primary-hue), 100%, 75%, 61.8%)"}});t.Z=e=>{let{href:t,size:a,text:n}=e;return(0,r.jsxs)(s,{className:"nx-bg-primary-400/10",href:t,size:a,children:[n," ",(0,r.jsx)("span",{children:"→"})]})}},3111:function(e,t,a){"use strict";var r=a(1527),n=a(1332),i=a(959),o=a(5455),s=a(4750);let l=(0,o.zo)("div",{margin:"2rem auto 0",input:{padding:"0.75rem 1.25rem"},label:{display:"none",opacity:"0.5",fontFamily:"inherit"}});t.Z=e=>{var t;let{placeholder:a}=e,[o,d]=(0,i.useState)(""),c=(0,s.useRouter)();return(0,r.jsx)(l,{className:"nextra-search nx-relative",children:(0,r.jsxs)(n.fC,{onSubmit:e=>{e.preventDefault(),e.stopPropagation(),c.push({query:{"iiif-content":o}})},children:[(0,r.jsxs)(n.gN,{name:"iiifContent",onChange:e=>{e.preventDefault(),e.stopPropagation(),d(e.target.value)},children:[(0,r.jsx)(n.__,{children:"IIIF Manifest or Collection"}),(0,r.jsx)(n.oT,{placeholder:a,defaultValue:null==c?void 0:null===(t=c.query)||void 0===t?void 0:t["iiif-content"],className:"nx-block nx-w-full nx-appearance-none nx-rounded-lg nx-px-3 nx-py-2 nx-transition-colors nx-text-base nx-leading-tight md:nx-text-sm nx-bg-black/[.05] dark:nx-bg-gray-50/10 focus:nx-bg-white dark:focus:nx-bg-dark placeholder:nx-text-gray-500 dark:placeholder:nx-text-gray-400 contrast-more:nx-border contrast-more:nx-border-current"})]}),(0,r.jsx)(n.k4,{})]})})}},2712:function(e,t,a){"use strict";a.d(t,{Z:function(){return c}});var r=a(1527),n=a(5047),i=a.n(n),o=a(3699);let s=()=>{let{resolvedTheme:e}=(0,o.F)();return"dark"===e};var l=a(4750);let d=i()(()=>Promise.all([a.e(178),a.e(668),a.e(196),a.e(646),a.e(332),a.e(50),a.e(237),a.e(792),a.e(129),a.e(82)]).then(a.bind(a,4082)),{loadableGenerated:{webpack:()=>[4082]},ssr:!1});var c=e=>{let{iiifContent:t="https://api.dc.library.northwestern.edu/api/v2/works/71153379-4283-43be-8b0f-4e7e3bfda275?as=iiif",options:a,customDisplays:n,iiifContentSearchQuery:i,plugins:o}=e,c=(0,l.useRouter)(),p=c.query["iiif-content"]?c.query["iiif-content"]:t,m=s()?"rgb(17, 17, 17)":"#fff";return(0,r.jsx)(d,{iiifContent:p,iiifContentSearchQuery:i,options:{...a,background:m},...n&&{customDisplays:n},...o&&{plugins:o}},p)}},5455:function(e,t,a){"use strict";a.d(t,{BC:function(){return n},F4:function(){return s},zo:function(){return i}});var r=a(458);let n={xxs:"(max-width: 349px)",xs:"(max-width: 575px)",sm:"(max-width: 767px)",md:"(max-width: 991px)",lg:"(max-width: 90rem)",xl:"(min-width: calc(90rem + 1px))"},{styled:i,css:o,keyframes:s,createTheme:l}=(0,r.Th)({theme:{colors:{primary:"#1a1d1e",primaryMuted:"#26292b",primaryAlt:"#151718",accent:"hsl(".concat(209," 100% 38.2%)"),accentMuted:"hsl(".concat(209," 80% 61.8%)"),accentAlt:"hsl(".concat(209," 80% 30%)"),secondary:"#FFFFFF",secondaryMuted:"#e6e8eb",secondaryAlt:"#c1c8cd"},fontSizes:{1:"12px",2:"13px",3:"15px",4:"17px",5:"19px",6:"21px",7:"27px",8:"35px",9:"59px"},lineHeights:{1:"12px",2:"13px",3:"15px",4:"17px",5:"19px",6:"21px",7:"27px",8:"35px",9:"59px"},sizes:{1:"5px",2:"10px",3:"15px",4:"20px",5:"25px",6:"35px",7:"45px",8:"65px",9:"80px"},space:{1:"5px",2:"10px",3:"15px",4:"20px",5:"25px",6:"35px",7:"45px",8:"65px",9:"80px"},radii:{1:"4px",2:"6px",3:"8px",4:"12px",round:"50%",pill:"9999px"},transitions:{all:"all 300ms cubic-bezier(0.16, 1, 0.3, 1)"},zIndices:{1:"100",2:"200",3:"300",4:"400",max:"999"}},media:n})},2188:function(e,t,a){"use strict";a.d(t,{Z:function(){return u}});var r=a(1527),n=a(635),i=a.n(n),o=a(959);let s={position:"relative",top:"-1px",right:"0",backgroundColor:"hsl(var(--nextra-primary-hue), var(--nextra-primary-saturation), 32%)",color:"white",borderRadius:"6px",padding:"2px 4px",fontSize:"0.7222rem",fontWeight:"700",marginLeft:"10px"},l=["Scroll"];var d=e=>{let{title:t}=e;return l.includes(t)?(0,r.jsxs)("span",{children:[t,(0,r.jsx)("span",{style:s,children:"Beta"})]}):(0,r.jsx)("span",{children:t})},c=a(2610),p=a(4750);let m="Clover IIIF",x="Showcase IIIF Manifests as interoperable web content.";var u={darkMode:!0,nextThemes:{defaultTheme:"system"},docsRepositoryBase:"https://github.com/samvera-labs/clover-iiif",footer:{text:"Extensible IIIF front-end toolkit and Manifest viewer. Accessible. Composable. Open Source."},useNextSeoProps(){let e=(0,c.ZR)(),t=e.frontMatter.title?"".concat(e.frontMatter.title," – ").concat(m):"".concat(m," – ").concat(x),a=e.frontMatter.description?e.frontMatter.description:x,{route:r}=(0,p.useRouter)(),n=(0,o.useMemo)(()=>new URL(r.endsWith("/")?r:"".concat(r,"/"),"https://samvera-labs.github.io/clover-iiif/").href,[r]);return{defaultTitle:"".concat(m," - ").concat(x),title:t,description:a,canonical:n,openGraph:{url:n,title:t,siteName:"".concat(m," - ").concat(x),images:[{url:"",type:"image/png",width:1200,height:675}]},twitter:{cardType:"summary_large_image"}}},logo:(0,r.jsx)(()=>(0,r.jsxs)("span",{className:"jsx-64174b446b45575f",children:[(0,r.jsxs)("svg",{id:"clover-iiif-logo",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 45.11 8.15",fill:"none",className:"jsx-64174b446b45575f",children:[(0,r.jsx)("path",{fill:"currentColor",d:"m5.66,6.02c-.21.11-.43.21-.65.3s-.51.13-.83.13c-.63,0-1.13-.18-1.48-.55-.36-.37-.53-.9-.53-1.61,0-.46.07-.85.22-1.17.15-.32.36-.57.65-.74.28-.17.63-.26,1.04-.26.31,0,.59.05.83.14.24.1.46.21.66.35.14-.09.26-.21.36-.37.1-.16.16-.33.16-.53,0-.25-.09-.47-.28-.66s-.45-.34-.79-.46c-.34-.11-.76-.17-1.25-.17-.69,0-1.32.15-1.89.45-.57.3-1.03.74-1.36,1.31-.34.57-.5,1.27-.5,2.11,0,.89.17,1.62.52,2.18.35.57.82.99,1.4,1.26.59.27,1.24.41,1.96.41.38,0,.7-.03.96-.1.26-.06.47-.13.61-.19.23-.1.4-.23.49-.38.1-.15.14-.32.14-.5,0-.21-.04-.39-.11-.55-.08-.16-.18-.29-.32-.4Z",className:"jsx-64174b446b45575f"}),(0,r.jsx)("path",{fill:"currentColor",d:"m7.55,0c-.19,0-.37.01-.53.04s-.29.05-.38.07v6.96c0,.37.09.62.27.76.18.14.47.2.86.2.19,0,.37-.01.53-.04.16-.02.29-.05.38-.07V.96c0-.38-.09-.63-.26-.76-.18-.13-.46-.2-.86-.2Z",className:"jsx-64174b446b45575f"}),(0,r.jsx)("path",{fill:"currentColor",d:"m13.93,2.3c-.47-.26-1.02-.38-1.65-.38s-1.17.13-1.64.38c-.47.25-.84.61-1.1,1.07-.26.46-.4,1.01-.4,1.64s.13,1.2.39,1.67c.26.46.63.82,1.1,1.07.47.25,1.02.37,1.66.37s1.19-.13,1.66-.38c.47-.25.83-.61,1.09-1.07.26-.46.39-1.02.39-1.66s-.13-1.17-.4-1.63c-.26-.46-.63-.82-1.1-1.08Zm-.87,3.83c-.18.26-.44.39-.78.39s-.6-.13-.78-.38c-.18-.26-.28-.63-.28-1.13s.09-.85.28-1.11c.19-.26.45-.39.77-.39s.59.13.77.4.28.63.28,1.1-.09.86-.28,1.12Z",className:"jsx-64174b446b45575f"}),(0,r.jsx)("path",{fill:"currentColor",d:"m20.29,1.98c-.35,0-.67.08-.96.23-.14.69-.29,1.39-.46,2.12s-.33,1.38-.48,1.97h-.06c-.02-.11-.06-.25-.1-.42-.04-.17-.09-.36-.15-.57s-.12-.43-.18-.67l-.47-1.84c-.08-.32-.21-.54-.4-.65-.18-.12-.42-.17-.7-.17-.22,0-.43.04-.62.13s-.34.18-.45.29c.06.29.15.62.27,1.01.12.38.24.78.38,1.19.14.41.27.81.41,1.2.14.39.27.73.4,1.04.12.3.23.54.32.71.09.18.25.3.47.38.23.08.5.12.81.12.27,0,.52-.03.74-.09.22-.06.38-.13.49-.21.12-.22.26-.5.41-.85.15-.35.31-.73.46-1.15.16-.41.3-.82.43-1.21s.23-.75.31-1.06.12-.54.12-.7c0-.3-.1-.5-.29-.62s-.43-.18-.71-.18Z",className:"jsx-64174b446b45575f"}),(0,r.jsx)("path",{fill:"currentColor",d:"m25.91,2.25c-.42-.22-.92-.33-1.49-.33-.38,0-.74.06-1.1.17-.36.12-.68.29-.97.53-.29.24-.52.55-.69.94-.17.38-.26.84-.26,1.37,0,.71.15,1.3.44,1.78.29.47.69.83,1.19,1.06.5.24,1.06.35,1.69.35.45,0,.84-.04,1.19-.12.34-.08.61-.21.81-.38.2-.17.29-.39.29-.65,0-.16-.04-.31-.13-.46-.09-.14-.2-.26-.32-.34-.18.1-.43.2-.73.29-.3.09-.62.13-.96.13s-.67-.07-.95-.22c-.23-.11-.37-.32-.47-.58l2.96-.44c.27-.04.48-.13.64-.28.15-.14.23-.35.23-.62,0-.5-.12-.93-.36-1.31-.24-.38-.57-.68-1-.9Zm-2.59,2.21c.04-.31.13-.56.31-.74.21-.21.48-.31.8-.31s.53.08.67.24c.14.16.22.32.24.48l-2.02.33Z",className:"jsx-64174b446b45575f"}),(0,r.jsx)("path",{fill:"currentColor",d:"m30.59,1.93c-.4,0-.79.04-1.16.13-.38.09-.7.22-.98.38-.2.13-.36.28-.49.45-.12.17-.19.37-.19.61v3.56c0,.37.09.62.27.76.18.14.47.2.86.2.19,0,.37-.01.53-.04.16-.02.29-.05.38-.07V3.82c.17-.1.36-.17.59-.22.22-.05.44-.07.64-.07.14,0,.26,0,.37.01.11,0,.21.02.29.04.06-.09.1-.19.14-.32s.06-.26.06-.4c0-.62-.44-.92-1.31-.92Z",className:"jsx-64174b446b45575f"}),(0,r.jsx)("path",{fill:"currentColor",d:"m33.91.56c-.12,0-.24.01-.35.03-.11.02-.2.04-.25.05v6.76c0,.22.06.37.17.46.11.09.29.14.53.14.12,0,.24,0,.35-.03.11-.02.19-.04.24-.07V1.16c0-.22-.05-.38-.16-.47-.11-.09-.28-.13-.52-.13Z",className:"jsx-64174b446b45575f"}),(0,r.jsx)("path",{fill:"currentColor",d:"m36.24.56c-.12,0-.24.01-.35.03-.11.02-.2.04-.25.05v6.76c0,.22.06.37.17.46.11.09.29.14.53.14.12,0,.24,0,.35-.03.11-.02.19-.04.24-.07V1.16c0-.22-.05-.38-.16-.47-.11-.09-.28-.13-.52-.13Z",className:"jsx-64174b446b45575f"}),(0,r.jsx)("path",{fill:"currentColor",d:"m38.57.56c-.12,0-.24.01-.35.03s-.2.04-.25.05v6.76c0,.22.06.37.17.46s.29.14.53.14c.12,0,.24,0,.35-.03.11-.02.19-.04.24-.07V1.16c0-.22-.05-.38-.16-.47s-.28-.13-.52-.13Z",className:"jsx-64174b446b45575f"}),(0,r.jsx)("path",{fill:"currentColor",d:"m44.63,1.7c.15,0,.27-.05.35-.14.08-.1.13-.23.13-.41,0-.1-.02-.2-.05-.29-.03-.09-.06-.16-.1-.21h-3.98c-.21,0-.38.06-.5.19-.13.12-.19.29-.19.5v6.08c0,.21.06.36.17.45.12.09.29.14.53.14.12,0,.24,0,.35-.03.11-.02.19-.04.24-.05v-2.98h2.64c.15,0,.27-.05.35-.14.08-.1.12-.23.12-.41,0-.1-.01-.2-.04-.29-.03-.09-.06-.16-.09-.22h-2.98s-.01-.01-.01-.01V1.7h3.06Z",className:"jsx-64174b446b45575f"})]}),(0,r.jsx)(i(),{id:"64174b446b45575f",children:"svg.jsx-64174b446b45575f{height:1rem}span.jsx-64174b446b45575f{padding:.5rem .5rem .5rem 0;-webkit-mask-image:-webkit-linear-gradient(30deg,black 25%,rgba(0,0,0,.2)50%,black 75%);mask-image:-webkit-linear-gradient(30deg,black 25%,rgba(0,0,0,.2)50%,black 75%);mask-image:-moz-linear-gradient(30deg,black 25%,rgba(0,0,0,.2)50%,black 75%);mask-image:-o-linear-gradient(30deg,black 25%,rgba(0,0,0,.2)50%,black 75%);mask-image:linear-gradient(60deg,black 25%,rgba(0,0,0,.2)50%,black 75%);-webkit-mask-size:400%;mask-size:400%;-webkit-mask-position:0%;mask-position:0%}span.jsx-64174b446b45575f:hover{-webkit-mask-position:100%;mask-position:100%;-webkit-transition:mask-position 1s ease,-webkit-mask-position 1s ease;-moz-transition:mask-position 1s ease,-webkit-mask-position 1s ease;-o-transition:mask-position 1s ease,-webkit-mask-position 1s ease;transition:mask-position 1s ease,-webkit-mask-position 1s ease}"})]}),{}),project:{link:"https://github.com/samvera-labs/clover-iiif"},primaryHue:209,sidebar:{autoCollapse:!0,defaultMenuCollapseLevel:1,titleComponent:e=>(0,r.jsx)(d,{...e}),toggleButton:!0}}},5184:function(){}},function(e){e.O(0,[356,101,332,888,774,179],function(){return e(e.s=9519)}),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/_next/static/chunks/pages/docs/viewer/demo-dcdfd250172facea.js b/_next/static/chunks/pages/docs/viewer/demo-dcdfd250172facea.js
deleted file mode 100644
index 2a918716..00000000
--- a/_next/static/chunks/pages/docs/viewer/demo-dcdfd250172facea.js
+++ /dev/null
@@ -1 +0,0 @@
-(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[838],{9519:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/viewer/demo",function(){return a(7397)}])},7397:function(e,t,a){"use strict";a.r(t),a.d(t,{__toc:function(){return p}});var r=a(1527),n=a(8567),i=a(2610),o=a(2188);a(2897);var s=a(7088),l=a(2712),d=a(3111),c=a(1405);let p=[{depth:2,value:"Viewer",id:"viewer"}];function m(e){let t=Object.assign({h2:"h2",p:"p",code:"code",a:"a",hr:"hr"},(0,s.a)(),e.components);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h2,{id:"viewer",children:"Viewer"}),"\n",(0,r.jsx)("br",{}),"\n",(0,r.jsx)(c.Z,{href:"/docs/viewer",text:"Docs",size:"small"}),"\n",(0,r.jsx)(d.Z,{placeholder:"IIIF Manifest or Collection"}),"\n",(0,r.jsxs)(t.p,{children:["A UI component that renders a multicanvas IIIF item viewer with pan-zoom support for ",(0,r.jsx)(t.code,{children:"Image"})," via ",(0,r.jsx)(t.a,{href:"https://openseadragon.github.io/",children:"OpenSeadragon"})," and ",(0,r.jsx)(t.code,{children:"Video"})," and ",(0,r.jsx)(t.code,{children:"Sound"})," content resources using the ",(0,r.jsx)(t.a,{href:"https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video",children:"HTML video element"}),"."]}),"\n",(0,r.jsx)(t.hr,{}),"\n",(0,r.jsx)(l.Z,{options:{canvasHeight:"500px",openSeadragon:{gestureSettingsMouse:{scrollToZoom:!1}}}})]})}let x={MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:t}=Object.assign({},(0,s.a)(),e.components);return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(m,{...e})}):m(e)},pageOpts:{filePath:"pages/docs/viewer/demo.mdx",route:"/docs/viewer/demo",pageMap:[{kind:"Meta",data:{index:{type:"page",title:"Clover IIIF",display:"hidden",theme:{layout:"raw"}},docs:{title:"Documentation",type:"page"},contact:{title:"IIIF Presentation API ↗",type:"page",href:"https://iiif.io/api/presentation",newWindow:!0}}},{kind:"Folder",name:"docs",route:"/docs",children:[{kind:"Meta",data:{index:"Overview",composing:"Composing","--components":{type:"separator",title:"IIIF Components"},image:"Image",scroll:{title:"Scroll",type:"doc"},slider:"Slider",viewer:"Viewer","--primitives":{type:"separator",title:"IIIF Primitives"},homepage:"Homepage",label:"Label",metadata:"Metadata",partOf:"PartOf",requiredStatement:"RequiredStatement",seeAlso:"SeeAlso",summary:"Summary",thumbnail:"Thumbnail",rendering:"Rendering"}},{kind:"MdxPage",name:"composing",route:"/docs/composing",frontMatter:{title:"Getting Started"}},{kind:"MdxPage",name:"homepage",route:"/docs/homepage",frontMatter:{title:"Homepage"}},{kind:"MdxPage",name:"image",route:"/docs/image",frontMatter:{title:"Image"}},{kind:"MdxPage",name:"index",route:"/docs",frontMatter:{title:"Docs"}},{kind:"MdxPage",name:"label",route:"/docs/label",frontMatter:{title:"Label"}},{kind:"MdxPage",name:"metadata",route:"/docs/metadata",frontMatter:{title:"Metadata"}},{kind:"MdxPage",name:"partOf",route:"/docs/partOf",frontMatter:{title:"PartOf"}},{kind:"MdxPage",name:"rendering",route:"/docs/rendering",frontMatter:{title:"Rendering"}},{kind:"MdxPage",name:"requiredStatement",route:"/docs/requiredStatement",frontMatter:{title:"RequiredStatement"}},{kind:"Folder",name:"scroll",route:"/docs/scroll",children:[{kind:"Meta",data:{demo:{title:"Demo",theme:{sidebar:!1,layout:"full"}}}},{kind:"MdxPage",name:"demo",route:"/docs/scroll/demo"}]},{kind:"MdxPage",name:"scroll",route:"/docs/scroll",frontMatter:{title:"Scroll"}},{kind:"MdxPage",name:"seeAlso",route:"/docs/seeAlso",frontMatter:{title:"SeeAlso"}},{kind:"Folder",name:"slider",route:"/docs/slider",children:[{kind:"Meta",data:{demo:{title:"Demo",theme:{sidebar:!1,layout:"full"}}}},{kind:"MdxPage",name:"demo",route:"/docs/slider/demo"}]},{kind:"MdxPage",name:"slider",route:"/docs/slider",frontMatter:{title:"Slider"}},{kind:"MdxPage",name:"summary",route:"/docs/summary",frontMatter:{title:"Summary"}},{kind:"MdxPage",name:"thumbnail",route:"/docs/thumbnail",frontMatter:{title:"Thumbnail"}},{kind:"Folder",name:"viewer",route:"/docs/viewer",children:[{kind:"Meta",data:{demo:{theme:{layout:"full",sidebar:!1},title:"Demo"},contentsearch:{display:"hidden",title:"Content Search",theme:{sidebar:!1,layout:"full"}}}},{kind:"MdxPage",name:"contentsearch",route:"/docs/viewer/contentsearch"},{kind:"MdxPage",name:"demo",route:"/docs/viewer/demo"}]},{kind:"MdxPage",name:"viewer",route:"/docs/viewer",frontMatter:{title:"Viewer"}}]},{kind:"MdxPage",name:"index",route:"/"}],flexsearch:{codeblocks:!0},title:"Demo",headings:p},pageNextRoute:"/docs/viewer/demo",nextraLayout:i.ZP,themeConfig:o.Z};t.default=(0,n.j)(x)},1405:function(e,t,a){"use strict";var r=a(1527),n=a(5455),i=a(1890),o=a.n(i);a(959);let s=(0,n.zo)(o(),{display:"inline-flex",fontSize:"1.47rem",fontWeight:"400",lineHeight:"1.6",borderRadius:"6px",color:"#fff",background:"linear-gradient(130deg, hsl(var(--nextra-primary-hue), 100%, 45%) 0%, hsl(calc(var(--nextra-primary-hue) + 50deg), 100%, 38.2%) 100%)",padding:"0.75rem 1.5rem",gap:"0.5rem",boxShadow:"-15px 0 30px -15px hsl(var(--nextra-primary-hue) 100% 45%), 0 0 30px -15px hsl(235 100% 38.2%), 15px 0 30px -15px hsl(calc(var(--nextra-primary-hue) + 50deg), 100%, 45%)",textShadow:"-1px -1px 2px hsl(var(--nextra-primary-hue), 100%, 10%, 10%)",transition:"all 200ms ease-in-out","&:hover, &:focus":{boxShadow:"-15px 0 30px -15px hsla(var(--nextra-primary-hue), 100%, 45%, 100%), 0 0 30px -15px hsla(235, 100%, 38.2%, 38.2%), 15px 0 30px -15px hsla(calc(var(--nextra-primary-hue) + 10deg), 100%, 85%, 25%)"},variants:{size:{small:{fontSize:"1rem",padding:"0.25rem .75rem"}}},span:{display:"inline-flex",color:"hsla(var(--nextra-primary-hue), 100%, 75%, 61.8%)"}});t.Z=e=>{let{href:t,size:a,text:n}=e;return(0,r.jsxs)(s,{className:"nx-bg-primary-400/10",href:t,size:a,children:[n," ",(0,r.jsx)("span",{children:"→"})]})}},3111:function(e,t,a){"use strict";var r=a(1527),n=a(1332),i=a(959),o=a(5455),s=a(4750);let l=(0,o.zo)("div",{margin:"2rem auto 0",input:{padding:"0.75rem 1.25rem"},label:{display:"none",opacity:"0.5",fontFamily:"inherit"}});t.Z=e=>{var t;let{placeholder:a}=e,[o,d]=(0,i.useState)(""),c=(0,s.useRouter)();return(0,r.jsx)(l,{className:"nextra-search nx-relative",children:(0,r.jsxs)(n.fC,{onSubmit:e=>{e.preventDefault(),e.stopPropagation(),c.push({query:{"iiif-content":o}})},children:[(0,r.jsxs)(n.gN,{name:"iiifContent",onChange:e=>{e.preventDefault(),e.stopPropagation(),d(e.target.value)},children:[(0,r.jsx)(n.__,{children:"IIIF Manifest or Collection"}),(0,r.jsx)(n.oT,{placeholder:a,defaultValue:null==c?void 0:null===(t=c.query)||void 0===t?void 0:t["iiif-content"],className:"nx-block nx-w-full nx-appearance-none nx-rounded-lg nx-px-3 nx-py-2 nx-transition-colors nx-text-base nx-leading-tight md:nx-text-sm nx-bg-black/[.05] dark:nx-bg-gray-50/10 focus:nx-bg-white dark:focus:nx-bg-dark placeholder:nx-text-gray-500 dark:placeholder:nx-text-gray-400 contrast-more:nx-border contrast-more:nx-border-current"})]}),(0,r.jsx)(n.k4,{})]})})}},2712:function(e,t,a){"use strict";a.d(t,{Z:function(){return c}});var r=a(1527),n=a(5047),i=a.n(n),o=a(3699);let s=()=>{let{resolvedTheme:e}=(0,o.F)();return"dark"===e};var l=a(4750);let d=i()(()=>Promise.all([a.e(178),a.e(668),a.e(196),a.e(646),a.e(332),a.e(50),a.e(237),a.e(792),a.e(129),a.e(510)]).then(a.bind(a,888)),{loadableGenerated:{webpack:()=>[888]},ssr:!1});var c=e=>{let{iiifContent:t="https://api.dc.library.northwestern.edu/api/v2/works/71153379-4283-43be-8b0f-4e7e3bfda275?as=iiif",options:a,customDisplays:n,iiifContentSearchQuery:i}=e,o=(0,l.useRouter)(),c=o.query["iiif-content"]?o.query["iiif-content"]:t,p=s()?"rgb(17, 17, 17)":"#fff";return(0,r.jsx)(d,{iiifContent:c,iiifContentSearchQuery:i,options:{...a,background:p},...n&&{customDisplays:n}},c)}},5455:function(e,t,a){"use strict";a.d(t,{BC:function(){return n},F4:function(){return s},zo:function(){return i}});var r=a(458);let n={xxs:"(max-width: 349px)",xs:"(max-width: 575px)",sm:"(max-width: 767px)",md:"(max-width: 991px)",lg:"(max-width: 90rem)",xl:"(min-width: calc(90rem + 1px))"},{styled:i,css:o,keyframes:s,createTheme:l}=(0,r.Th)({theme:{colors:{primary:"#1a1d1e",primaryMuted:"#26292b",primaryAlt:"#151718",accent:"hsl(".concat(209," 100% 38.2%)"),accentMuted:"hsl(".concat(209," 80% 61.8%)"),accentAlt:"hsl(".concat(209," 80% 30%)"),secondary:"#FFFFFF",secondaryMuted:"#e6e8eb",secondaryAlt:"#c1c8cd"},fontSizes:{1:"12px",2:"13px",3:"15px",4:"17px",5:"19px",6:"21px",7:"27px",8:"35px",9:"59px"},lineHeights:{1:"12px",2:"13px",3:"15px",4:"17px",5:"19px",6:"21px",7:"27px",8:"35px",9:"59px"},sizes:{1:"5px",2:"10px",3:"15px",4:"20px",5:"25px",6:"35px",7:"45px",8:"65px",9:"80px"},space:{1:"5px",2:"10px",3:"15px",4:"20px",5:"25px",6:"35px",7:"45px",8:"65px",9:"80px"},radii:{1:"4px",2:"6px",3:"8px",4:"12px",round:"50%",pill:"9999px"},transitions:{all:"all 300ms cubic-bezier(0.16, 1, 0.3, 1)"},zIndices:{1:"100",2:"200",3:"300",4:"400",max:"999"}},media:n})},2188:function(e,t,a){"use strict";a.d(t,{Z:function(){return u}});var r=a(1527),n=a(635),i=a.n(n),o=a(959);let s={position:"relative",top:"-1px",right:"0",backgroundColor:"hsl(var(--nextra-primary-hue), var(--nextra-primary-saturation), 32%)",color:"white",borderRadius:"6px",padding:"2px 4px",fontSize:"0.7222rem",fontWeight:"700",marginLeft:"10px"},l=["Scroll"];var d=e=>{let{title:t}=e;return l.includes(t)?(0,r.jsxs)("span",{children:[t,(0,r.jsx)("span",{style:s,children:"Beta"})]}):(0,r.jsx)("span",{children:t})},c=a(2610),p=a(4750);let m="Clover IIIF",x="Showcase IIIF Manifests as interoperable web content.";var u={darkMode:!0,nextThemes:{defaultTheme:"system"},docsRepositoryBase:"https://github.com/samvera-labs/clover-iiif",footer:{text:"Extensible IIIF front-end toolkit and Manifest viewer. Accessible. Composable. Open Source."},useNextSeoProps(){let e=(0,c.ZR)(),t=e.frontMatter.title?"".concat(e.frontMatter.title," – ").concat(m):"".concat(m," – ").concat(x),a=e.frontMatter.description?e.frontMatter.description:x,{route:r}=(0,p.useRouter)(),n=(0,o.useMemo)(()=>new URL(r.endsWith("/")?r:"".concat(r,"/"),"https://samvera-labs.github.io/clover-iiif/").href,[r]);return{defaultTitle:"".concat(m," - ").concat(x),title:t,description:a,canonical:n,openGraph:{url:n,title:t,siteName:"".concat(m," - ").concat(x),images:[{url:"",type:"image/png",width:1200,height:675}]},twitter:{cardType:"summary_large_image"}}},logo:(0,r.jsx)(()=>(0,r.jsxs)("span",{className:"jsx-64174b446b45575f",children:[(0,r.jsxs)("svg",{id:"clover-iiif-logo",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 45.11 8.15",fill:"none",className:"jsx-64174b446b45575f",children:[(0,r.jsx)("path",{fill:"currentColor",d:"m5.66,6.02c-.21.11-.43.21-.65.3s-.51.13-.83.13c-.63,0-1.13-.18-1.48-.55-.36-.37-.53-.9-.53-1.61,0-.46.07-.85.22-1.17.15-.32.36-.57.65-.74.28-.17.63-.26,1.04-.26.31,0,.59.05.83.14.24.1.46.21.66.35.14-.09.26-.21.36-.37.1-.16.16-.33.16-.53,0-.25-.09-.47-.28-.66s-.45-.34-.79-.46c-.34-.11-.76-.17-1.25-.17-.69,0-1.32.15-1.89.45-.57.3-1.03.74-1.36,1.31-.34.57-.5,1.27-.5,2.11,0,.89.17,1.62.52,2.18.35.57.82.99,1.4,1.26.59.27,1.24.41,1.96.41.38,0,.7-.03.96-.1.26-.06.47-.13.61-.19.23-.1.4-.23.49-.38.1-.15.14-.32.14-.5,0-.21-.04-.39-.11-.55-.08-.16-.18-.29-.32-.4Z",className:"jsx-64174b446b45575f"}),(0,r.jsx)("path",{fill:"currentColor",d:"m7.55,0c-.19,0-.37.01-.53.04s-.29.05-.38.07v6.96c0,.37.09.62.27.76.18.14.47.2.86.2.19,0,.37-.01.53-.04.16-.02.29-.05.38-.07V.96c0-.38-.09-.63-.26-.76-.18-.13-.46-.2-.86-.2Z",className:"jsx-64174b446b45575f"}),(0,r.jsx)("path",{fill:"currentColor",d:"m13.93,2.3c-.47-.26-1.02-.38-1.65-.38s-1.17.13-1.64.38c-.47.25-.84.61-1.1,1.07-.26.46-.4,1.01-.4,1.64s.13,1.2.39,1.67c.26.46.63.82,1.1,1.07.47.25,1.02.37,1.66.37s1.19-.13,1.66-.38c.47-.25.83-.61,1.09-1.07.26-.46.39-1.02.39-1.66s-.13-1.17-.4-1.63c-.26-.46-.63-.82-1.1-1.08Zm-.87,3.83c-.18.26-.44.39-.78.39s-.6-.13-.78-.38c-.18-.26-.28-.63-.28-1.13s.09-.85.28-1.11c.19-.26.45-.39.77-.39s.59.13.77.4.28.63.28,1.1-.09.86-.28,1.12Z",className:"jsx-64174b446b45575f"}),(0,r.jsx)("path",{fill:"currentColor",d:"m20.29,1.98c-.35,0-.67.08-.96.23-.14.69-.29,1.39-.46,2.12s-.33,1.38-.48,1.97h-.06c-.02-.11-.06-.25-.1-.42-.04-.17-.09-.36-.15-.57s-.12-.43-.18-.67l-.47-1.84c-.08-.32-.21-.54-.4-.65-.18-.12-.42-.17-.7-.17-.22,0-.43.04-.62.13s-.34.18-.45.29c.06.29.15.62.27,1.01.12.38.24.78.38,1.19.14.41.27.81.41,1.2.14.39.27.73.4,1.04.12.3.23.54.32.71.09.18.25.3.47.38.23.08.5.12.81.12.27,0,.52-.03.74-.09.22-.06.38-.13.49-.21.12-.22.26-.5.41-.85.15-.35.31-.73.46-1.15.16-.41.3-.82.43-1.21s.23-.75.31-1.06.12-.54.12-.7c0-.3-.1-.5-.29-.62s-.43-.18-.71-.18Z",className:"jsx-64174b446b45575f"}),(0,r.jsx)("path",{fill:"currentColor",d:"m25.91,2.25c-.42-.22-.92-.33-1.49-.33-.38,0-.74.06-1.1.17-.36.12-.68.29-.97.53-.29.24-.52.55-.69.94-.17.38-.26.84-.26,1.37,0,.71.15,1.3.44,1.78.29.47.69.83,1.19,1.06.5.24,1.06.35,1.69.35.45,0,.84-.04,1.19-.12.34-.08.61-.21.81-.38.2-.17.29-.39.29-.65,0-.16-.04-.31-.13-.46-.09-.14-.2-.26-.32-.34-.18.1-.43.2-.73.29-.3.09-.62.13-.96.13s-.67-.07-.95-.22c-.23-.11-.37-.32-.47-.58l2.96-.44c.27-.04.48-.13.64-.28.15-.14.23-.35.23-.62,0-.5-.12-.93-.36-1.31-.24-.38-.57-.68-1-.9Zm-2.59,2.21c.04-.31.13-.56.31-.74.21-.21.48-.31.8-.31s.53.08.67.24c.14.16.22.32.24.48l-2.02.33Z",className:"jsx-64174b446b45575f"}),(0,r.jsx)("path",{fill:"currentColor",d:"m30.59,1.93c-.4,0-.79.04-1.16.13-.38.09-.7.22-.98.38-.2.13-.36.28-.49.45-.12.17-.19.37-.19.61v3.56c0,.37.09.62.27.76.18.14.47.2.86.2.19,0,.37-.01.53-.04.16-.02.29-.05.38-.07V3.82c.17-.1.36-.17.59-.22.22-.05.44-.07.64-.07.14,0,.26,0,.37.01.11,0,.21.02.29.04.06-.09.1-.19.14-.32s.06-.26.06-.4c0-.62-.44-.92-1.31-.92Z",className:"jsx-64174b446b45575f"}),(0,r.jsx)("path",{fill:"currentColor",d:"m33.91.56c-.12,0-.24.01-.35.03-.11.02-.2.04-.25.05v6.76c0,.22.06.37.17.46.11.09.29.14.53.14.12,0,.24,0,.35-.03.11-.02.19-.04.24-.07V1.16c0-.22-.05-.38-.16-.47-.11-.09-.28-.13-.52-.13Z",className:"jsx-64174b446b45575f"}),(0,r.jsx)("path",{fill:"currentColor",d:"m36.24.56c-.12,0-.24.01-.35.03-.11.02-.2.04-.25.05v6.76c0,.22.06.37.17.46.11.09.29.14.53.14.12,0,.24,0,.35-.03.11-.02.19-.04.24-.07V1.16c0-.22-.05-.38-.16-.47-.11-.09-.28-.13-.52-.13Z",className:"jsx-64174b446b45575f"}),(0,r.jsx)("path",{fill:"currentColor",d:"m38.57.56c-.12,0-.24.01-.35.03s-.2.04-.25.05v6.76c0,.22.06.37.17.46s.29.14.53.14c.12,0,.24,0,.35-.03.11-.02.19-.04.24-.07V1.16c0-.22-.05-.38-.16-.47s-.28-.13-.52-.13Z",className:"jsx-64174b446b45575f"}),(0,r.jsx)("path",{fill:"currentColor",d:"m44.63,1.7c.15,0,.27-.05.35-.14.08-.1.13-.23.13-.41,0-.1-.02-.2-.05-.29-.03-.09-.06-.16-.1-.21h-3.98c-.21,0-.38.06-.5.19-.13.12-.19.29-.19.5v6.08c0,.21.06.36.17.45.12.09.29.14.53.14.12,0,.24,0,.35-.03.11-.02.19-.04.24-.05v-2.98h2.64c.15,0,.27-.05.35-.14.08-.1.12-.23.12-.41,0-.1-.01-.2-.04-.29-.03-.09-.06-.16-.09-.22h-2.98s-.01-.01-.01-.01V1.7h3.06Z",className:"jsx-64174b446b45575f"})]}),(0,r.jsx)(i(),{id:"64174b446b45575f",children:"svg.jsx-64174b446b45575f{height:1rem}span.jsx-64174b446b45575f{padding:.5rem .5rem .5rem 0;-webkit-mask-image:-webkit-linear-gradient(30deg,black 25%,rgba(0,0,0,.2)50%,black 75%);mask-image:-webkit-linear-gradient(30deg,black 25%,rgba(0,0,0,.2)50%,black 75%);mask-image:-moz-linear-gradient(30deg,black 25%,rgba(0,0,0,.2)50%,black 75%);mask-image:-o-linear-gradient(30deg,black 25%,rgba(0,0,0,.2)50%,black 75%);mask-image:linear-gradient(60deg,black 25%,rgba(0,0,0,.2)50%,black 75%);-webkit-mask-size:400%;mask-size:400%;-webkit-mask-position:0%;mask-position:0%}span.jsx-64174b446b45575f:hover{-webkit-mask-position:100%;mask-position:100%;-webkit-transition:mask-position 1s ease,-webkit-mask-position 1s ease;-moz-transition:mask-position 1s ease,-webkit-mask-position 1s ease;-o-transition:mask-position 1s ease,-webkit-mask-position 1s ease;transition:mask-position 1s ease,-webkit-mask-position 1s ease}"})]}),{}),project:{link:"https://github.com/samvera-labs/clover-iiif"},primaryHue:209,sidebar:{autoCollapse:!0,defaultMenuCollapseLevel:1,titleComponent:e=>(0,r.jsx)(d,{...e}),toggleButton:!0}}},5184:function(){}},function(e){e.O(0,[356,101,332,888,774,179],function(){return e(e.s=9519)}),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/_next/static/chunks/pages/index-6a1f06c1d9a1ff3c.js b/_next/static/chunks/pages/index-79ee04a8b088a8a9.js
similarity index 91%
rename from _next/static/chunks/pages/index-6a1f06c1d9a1ff3c.js
rename to _next/static/chunks/pages/index-79ee04a8b088a8a9.js
index 6b3a0fe9..a2a2a1b3 100644
--- a/_next/static/chunks/pages/index-6a1f06c1d9a1ff3c.js
+++ b/_next/static/chunks/pages/index-79ee04a8b088a8a9.js
@@ -1 +1 @@
-(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{9393:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(123)}])},123:function(e,t,n){"use strict";n.r(t),n.d(t,{__toc:function(){return R},default:function(){return q}});var a=n(1527),r=n(8567),i=n(2610),s=n(2188);n(2897);var o=n(7088),l=n(1405),c=n(959),d=n(5455);let h=(0,d.zo)("h1",{display:"inline-flex",fontSize:"3.8rem",fontWeight:"800",letterSpacing:"-0.12rem",lineHeight:"1",padding:"3rem 0 1rem 0","@md":{fontSize:"3rem"}}),x=(0,d.zo)("p",{fontSize:"1.47rem",lineHeight:"1.6",opacity:"0.7",marginBottom:"2rem"}),p=(0,d.zo)("div",{position:"relative",zIndex:"0"}),m=(0,d.zo)("div",{top:"0",height:"100%",width:"100%",position:"absolute",zIndex:"0",maskImage:"linear-gradient(180deg, transparent 61.8%, rgba(0, 0, 0, 1) 100%)"}),u=(0,d.zo)("div",{position:"relative ",maxWidth:"90rem",margin:"0 auto",padding:"0 1rem 3rem",zIndex:"1","@lg":{padding:"0 4rem 3rem"},"@md":{padding:"0 3rem 3rem"},"@sm":{padding:"0 1rem 3rem"}});var f=()=>(0,a.jsxs)(p,{children:[(0,a.jsxs)(u,{children:[(0,a.jsxs)(h,{children:["Showcase IIIF Manifests ",(0,a.jsx)("br",{}),"as interoperable web content."]}),(0,a.jsx)(x,{children:"Extensible IIIF front-end toolkit and Manifest viewer. Accessible. Composable. Open Source."}),(0,a.jsx)(l.Z,{href:"/docs",text:"Get Started"})]}),(0,a.jsx)(m,{className:"nx-bg-gray-100 nx-pb-[env(safe-area-inset-bottom)] dark:nx-bg-neutral-900 print:nx-bg-transparent"})]});let g=(0,d.zo)("div",{display:"flex",gap:"2rem","@md":{flexDirection:"column",gap:"0"},"> div":{flexShrink:"0",flexGrow:"1"},aside:{flexShrink:"1",flexGrow:"0",width:"38.2%","@md":{flexShrink:"0",flexGrow:"1",width:"100%"}}}),k=(0,d.zo)("div",{display:"flex",flexDirection:"row",justifyContent:"center"}),y=(0,d.zo)("div",{maxWidth:"90rem",width:"100%",padding:"1rem",flexShrink:"0",flexGrow:"0","@lg":{padding:"1rem 4rem"},"@md":{padding:"0 3rem 3rem"},"@sm":{padding:"0 1rem 3rem"}});var j=e=>{let{children:t}=e;return(0,a.jsx)(k,{className:"nx-bg-gray-100 nx-pb-[env(safe-area-inset-bottom)] dark:nx-bg-neutral-900 print:nx-bg-transparent",children:(0,a.jsx)(y,{children:t})})},v=n(4750);let b=(0,d.zo)("div",{lineHeight:"1",position:"absolute",width:"100%",height:"100%",zIndex:"0",transition:"all 200ms ease-in-out",margin:"5.75rem 0 0",padding:"1.5rem ",background:"hsla(var(--nextra-primary-hue), 100%, 100%, 1%)","p, span, dl":{lineHeight:"1.35",dt:{fontWeight:"700",fontSize:"0.75em",textTransform:"uppercase",marginBottom:"0.25em"},dd:{display:"block","&:last-of-type":{marginBottom:"1rem"}}},".clover-link":{textDecoration:"underline",color:"hsl(var(--nextra-primary-hue) 100% 45%)",lineHeight:"1.35"}}),w=(0,d.zo)("span",{display:"flex",flexWrap:"wrap",flexShrink:"1",width:"100%",fontWeight:"300",lineHeight:"1",padding:"0 !important",margin:"-2rem 1.5rem 1rem !important",opacity:"1",transition:"all 100ms ease-in-out",position:"absolute","pre, code":{span:{padding:"0 !important"}}}),S=(0,d.zo)("span",{lineHeight:"1",fontSize:"1.25rem",fontWeight:"800",letterSpacing:"-0.02em",display:"flex",alignItems:"center",alignSelf:"flex-start",padding:"1.5rem 1.5rem 3rem",width:"100%",transition:"all 100ms ease-in-out","&::after":{fontWeight:"400",display:"inline-flex",content:"→",opacity:"0",transition:"all 100ms ease-in-out",marginLeft:"-0.5rem"}}),M=(0,d.zo)("div",{fontWeight:"700",borderRadius:"3px",transition:"all 200ms ease-in-out",boxShadow:"1px 1px 5px #0001",position:"relative",width:"100%",background:"hsla(var(--nextra-primary-hue), 100%, 100%, 3%)"}),C=(0,d.zo)("button",{display:"flex",flexDirection:"column",textAlign:"left",width:"100%",margin:"0 0 2rem",borderRadius:"6px",position:"relative",zIndex:"0",overflow:"hidden",transition:"all 200ms ease-in-out",boxShadow:"2px 5px 14.6px #0001",minHeight:"165px",cursor:"pointer",maskImage:"linear-gradient(0deg, ".concat("rgba(0, 0, 0, 0) 3px, rgba(0, 0, 0, 1) 5rem",")"),"&::after":{content:"",display:"flex",position:"absolute",width:"100%",height:"100%"},"@md":{marginBottom:"1rem"},"&:hover, &:focus":{opacity:"1",["".concat(S)]:{color:"transparent",background:"linear-gradient(130deg, hsl(var(--nextra-primary-hue), 100%, 45%) 0%, hsl(calc(var(--nextra-primary-hue) + 50deg), 100%, 38.2%) 100%)",paddingBottom:"1.5rem",backgroundClip:"text","&::after":{opacity:"1",marginLeft:"0.5rem",color:"hsla(var(--nextra-primary-hue), 100%, 75%, 61.8%)"}},["".concat(M)]:{["".concat(w)]:{opacity:"0"}},["".concat(b)]:{marginTop:"4.25rem"}}});var P=e=>{let{component:t,children:n,css:r,href:i="/",text:s}=e,o=(0,v.useRouter)();return(0,a.jsxs)(C,{css:r,onClick:()=>o.push(i),className:"nx-bg-white dark:nx-bg-neutral-900",children:[(0,a.jsxs)(M,{children:[(0,a.jsx)(S,{children:s}),(0,a.jsx)(w,{children:n})]}),(0,a.jsx)(b,{children:t})]})},I=n(8398),N=n(3907),z=n(4408),A=n(2712),F=n(7184),E=()=>{let e=(0,v.useRouter)(),{query:t}=e;return(0,c.useEffect)(()=>{if(t["iiif-content"]){let n=t["iiif-content"];e.push({pathname:"/docs/viewer/demo",query:{"iiif-content":n}})}},[t]),(0,a.jsx)(a.Fragment,{})};n(1629),n(1080),n(6239);let R=[];function D(e){let t=Object.assign({pre:"pre",code:"code",span:"span"},(0,o.a)(),e.components);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(E,{}),"\n",(0,a.jsx)(f,{}),"\n",(0,a.jsxs)(j,{children:[(0,a.jsx)(P,{css:{height:"860px"},text:"Viewer",component:(0,a.jsx)(A.Z,{iiifContent:"https://api.dc.library.northwestern.edu/api/v2/works/71153379-4283-43be-8b0f-4e7e3bfda275?as=iiif",options:{canvasHeight:"500px",informationPanel:{open:!0}}}),href:"docs/viewer",children:(0,a.jsx)(t.pre,{"data-language":"jsx","data-theme":"default",children:(0,a.jsx)(t.code,{"data-language":"jsx","data-theme":"default",children:(0,a.jsxs)(t.span,{className:"line",children:[(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"Viewer"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"iiifContent"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://api.dc.library.northwestern.edu/api/v2/works/71153379-4283-43be-8b0f-4e7e3bfda275?as=iiif"'}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" />"})]})})})}),(0,a.jsx)(P,{text:"Scroll",css:{height:"860px"},component:(0,a.jsx)(N.Z,{iiifContent:"https://digital.lib.utk.edu/assemble/manifest/civilwar/5390"}),href:"docs/scroll",children:(0,a.jsx)(t.pre,{"data-language":"jsx","data-theme":"default",children:(0,a.jsx)(t.code,{"data-language":"jsx","data-theme":"default",children:(0,a.jsxs)(t.span,{className:"line",children:[(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"Scroll"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"iiifContent"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://digital.lib.utk.edu/assemble/manifest/civilwar/5390"'}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" />"})]})})})}),(0,a.jsx)(P,{text:"Slider",css:{height:"600px"},component:(0,a.jsx)(z.Z,{collectionId:"https://api.dc.library.northwestern.edu/api/v2/collections/c373ecd2-2c45-45f2-9f9e-52dc244870bd?as=iiif"}),href:"docs/slider",children:(0,a.jsx)(t.pre,{"data-language":"jsx","data-theme":"default",children:(0,a.jsx)(t.code,{"data-language":"jsx","data-theme":"default",children:(0,a.jsxs)(t.span,{className:"line",children:[(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"Slider"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"iiifContent"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://api.dc.library.northwestern.edu/api/v2/collections/c373ecd2-2c45-45f2-9f9e-52dc244870bd?as=iiif"'}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" />"})]})})})}),(0,a.jsx)(P,{text:"Image",css:{height:"600px"},component:(0,a.jsx)(I.Z,{src:"https://iiif.dc.library.northwestern.edu/iiif/2/b6359e7f-070c-4c86-aee1-515e5b6604e2/full/full/0/default.jpg"}),href:"docs/image",children:(0,a.jsx)(t.pre,{"data-language":"jsx","data-theme":"default",children:(0,a.jsx)(t.code,{"data-language":"jsx","data-theme":"default",children:(0,a.jsxs)(t.span,{className:"line",children:[(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"Image"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"src"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://iiif.dc.library.northwestern.edu/iiif/2/b6359e7f-070c-4c86-aee1-515e5b6604e2/full/full/0/default.jpg"'}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" />"})]})})})}),(0,a.jsxs)(g,{children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(P,{text:"Label",css:{height:"14.6vh"},component:(0,a.jsx)(F.__,{label:{none:['Zagna "lunga"']}}),href:"docs/label",children:(0,a.jsx)(t.pre,{"data-language":"jsx","data-theme":"default",children:(0,a.jsx)(t.code,{"data-language":"jsx","data-theme":"default",children:(0,a.jsxs)(t.span,{className:"line",children:[(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"Label"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"label"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"{"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"manifest"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:".label} />"})]})})})}),(0,a.jsx)(P,{text:"Summary",css:{height:"14.6vh"},component:(0,a.jsx)(F.ER,{summary:{none:["In early zannesque comedy, all the female characters were comic, grotesque, and played by men. Zagna, the feminine counterpart to Zanni, is the formal, comic-grotesque exaggeration of the woman. The actors wore female clothing over an exaggerated female body, an effect achieved with the addition of excessive, carnivalesque accessories. The Zagna mask, similar if not identical to the male mask, was worn with a scarf to cover the head."]}}),href:"docs/summary",children:(0,a.jsx)(t.pre,{"data-language":"jsx","data-theme":"default",children:(0,a.jsx)(t.code,{"data-language":"jsx","data-theme":"default",children:(0,a.jsxs)(t.span,{className:"line",children:[(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"Summary"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"summary"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"{"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"manifest"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:".summary} />"})]})})})}),(0,a.jsx)(P,{text:"Metadata",css:{height:"24.6vh"},component:(0,a.jsx)(F.SF,{metadata:[{label:{none:["Alternate Title"]},value:{none:["Fava"]}},{label:{none:["Creator"]},value:{none:["Fava, Antonio, 1949-"]}},{label:{none:["Date"]},value:{none:["2012"]}},{label:{none:["Department"]},value:{none:["Charles Deering McCormick Library of Special Collections"]}},{label:{none:["Dimensions"]},value:{none:["14 x 14 x 18 cm"]}},{label:{none:["Genre"]},value:{none:["comic masks"]}}]}),href:"docs/metadata",children:(0,a.jsx)(t.pre,{"data-language":"jsx","data-theme":"default",children:(0,a.jsx)(t.code,{"data-language":"jsx","data-theme":"default",children:(0,a.jsxs)(t.span,{className:"line",children:[(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"Metadata"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"metadata"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"{"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"manifest"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:".metadata} />"})]})})})}),(0,a.jsx)(P,{text:"RequiredStatement",css:{height:"14.6vh"},component:(0,a.jsx)(F.bT,{requiredStatement:{label:{none:["Attribution"]},value:{none:["Courtesy of Northwestern University Libraries","The images on this web site are from material in the collections of the Charles Deering McCormick Library of Special Collections of Northwestern University Libraries, are provided for use by its students, faculty and staff, and by other researchers visiting this site, for research consultation and scholarly purposes only. Further distribution and/or any commercial use of the images from this site is not permitted."]}}}),href:"docs/requiredStatement",children:(0,a.jsx)(t.pre,{"data-language":"jsx","data-theme":"default",children:(0,a.jsx)(t.code,{"data-language":"jsx","data-theme":"default",children:(0,a.jsxs)(t.span,{className:"line",children:[(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"RequiredStatement"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"requiredStatement"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"{"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"manifest"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:".requiredStatement} />"})]})})})})]}),(0,a.jsxs)("aside",{children:[(0,a.jsx)(P,{text:"Thumbnail",css:{height:"24.6vh"},component:(0,a.jsx)(F.pl,{thumbnail:[{id:"https://api.dc.library.northwestern.edu/api/v2/works/71153379-4283-43be-8b0f-4e7e3bfda275/thumbnail",type:"Image",format:"image/jpeg",height:300,width:300}]}),href:"docs/thumbnail",children:(0,a.jsx)(t.pre,{"data-language":"jsx","data-theme":"default",children:(0,a.jsx)(t.code,{"data-language":"jsx","data-theme":"default",children:(0,a.jsxs)(t.span,{className:"line",children:[(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"Thumbnail"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"thumbnail"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"{"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"manifest"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:".thumbnail} />"})]})})})}),(0,a.jsx)(P,{text:"PartOf",css:{height:"14.6vh"},component:(0,a.jsx)(F.i1,{className:"clover-link",partOf:[{id:"https://api.dc.library.northwestern.edu/api/v2/collections/c373ecd2-2c45-45f2-9f9e-52dc244870bd?as=iiif",type:"Collection",label:{none:["Commedia dell'Arte: The Masks of Antonio Fava"]},summary:{none:["The Commedia dell'Arte, the famous improvisational theatre style born in Renaissance Italy, remains a major influence in today's theatre. Antonio Fava is an actor, comedian, author, director, musician, mask maker and Internationally renowned Maestro of Commedia dell'Arte. The masks in this collection are all stored in the Charles Deering McCormick Library of Special Collections. Fava's book The Comic Mask in the Commedia dell'Arte is published by Northwestern University Press."]}}]}),href:"docs/partOf",children:(0,a.jsx)(t.pre,{"data-language":"jsx","data-theme":"default",children:(0,a.jsx)(t.code,{"data-language":"jsx","data-theme":"default",children:(0,a.jsxs)(t.span,{className:"line",children:[(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"PartOf"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"partOf"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"{"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"manifest"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:".partOf} />"})]})})})}),(0,a.jsx)(P,{text:"SeeAlso",css:{height:"14.6vh"},component:(0,a.jsx)(F.QZ,{className:"clover-link",seeAlso:[{id:"https://api.dc.library.northwestern.edu/api/v2/works/71153379-4283-43be-8b0f-4e7e3bfda275",type:"Dataset",format:"application/json",label:{none:["Northwestern University Libraries Digital Collections API"]}}]}),href:"docs/seeAlso",children:(0,a.jsx)(t.pre,{"data-language":"jsx","data-theme":"default",children:(0,a.jsx)(t.code,{"data-language":"jsx","data-theme":"default",children:(0,a.jsxs)(t.span,{className:"line",children:[(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"SeeAlso"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"seeAlso"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"{"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"manifest"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:".seeAlso} />"})]})})})}),(0,a.jsx)(P,{text:"Rendering",css:{height:"14.6vh"},component:(0,a.jsx)(F.Oy,{className:"clover-link",rendering:[{id:"https://fixtures.iiif.io/other/UCLA/kabuki_ezukushi_rtl.pdf",type:"Text",label:{en:["PDF version"]},format:"application/pdf"}]}),href:"docs/rendering",children:(0,a.jsx)(t.pre,{"data-language":"jsx","data-theme":"default",children:(0,a.jsx)(t.code,{"data-language":"jsx","data-theme":"default",children:(0,a.jsxs)(t.span,{className:"line",children:[(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"Rendering"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"rendering"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"{"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"manifest"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:".rendering} />"})]})})})}),(0,a.jsx)(P,{text:"Homepage",css:{height:"14.6vh"},component:(0,a.jsx)(F.bw,{className:"clover-link",homepage:[{id:"https://dc.library.northwestern.edu/items/71153379-4283-43be-8b0f-4e7e3bfda275",type:"Text",format:"text/html",label:{none:["Homepage at Northwestern University Libraries Digital Collections"]}}]}),href:"docs/homepage",children:(0,a.jsx)(t.pre,{"data-language":"jsx","data-theme":"default",children:(0,a.jsx)(t.code,{"data-language":"jsx","data-theme":"default",children:(0,a.jsxs)(t.span,{className:"line",children:[(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"Homepage"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"homepage"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"{"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"manifest"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:".homepage} />"})]})})})})]})]})]})]})}let Z={MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:t}=Object.assign({},(0,o.a)(),e.components);return t?(0,a.jsx)(t,{...e,children:(0,a.jsx)(D,{...e})}):D(e)},pageOpts:{filePath:"pages/index.mdx",route:"/",pageMap:[{kind:"Meta",data:{index:{type:"page",title:"Clover IIIF",display:"hidden",theme:{layout:"raw"}},docs:{title:"Documentation",type:"page"},contact:{title:"IIIF Presentation API ↗",type:"page",href:"https://iiif.io/api/presentation",newWindow:!0}}},{kind:"Folder",name:"docs",route:"/docs",children:[{kind:"Meta",data:{index:"Overview",composing:"Composing","--components":{type:"separator",title:"IIIF Components"},image:"Image",scroll:{title:"Scroll",type:"doc"},slider:"Slider",viewer:"Viewer","--primitives":{type:"separator",title:"IIIF Primitives"},homepage:"Homepage",label:"Label",metadata:"Metadata",partOf:"PartOf",requiredStatement:"RequiredStatement",seeAlso:"SeeAlso",summary:"Summary",thumbnail:"Thumbnail",rendering:"Rendering"}},{kind:"MdxPage",name:"composing",route:"/docs/composing",frontMatter:{title:"Getting Started"}},{kind:"MdxPage",name:"homepage",route:"/docs/homepage",frontMatter:{title:"Homepage"}},{kind:"MdxPage",name:"image",route:"/docs/image",frontMatter:{title:"Image"}},{kind:"MdxPage",name:"index",route:"/docs",frontMatter:{title:"Docs"}},{kind:"MdxPage",name:"label",route:"/docs/label",frontMatter:{title:"Label"}},{kind:"MdxPage",name:"metadata",route:"/docs/metadata",frontMatter:{title:"Metadata"}},{kind:"MdxPage",name:"partOf",route:"/docs/partOf",frontMatter:{title:"PartOf"}},{kind:"MdxPage",name:"rendering",route:"/docs/rendering",frontMatter:{title:"Rendering"}},{kind:"MdxPage",name:"requiredStatement",route:"/docs/requiredStatement",frontMatter:{title:"RequiredStatement"}},{kind:"Folder",name:"scroll",route:"/docs/scroll",children:[{kind:"Meta",data:{demo:{title:"Demo",theme:{sidebar:!1,layout:"full"}}}},{kind:"MdxPage",name:"demo",route:"/docs/scroll/demo"}]},{kind:"MdxPage",name:"scroll",route:"/docs/scroll",frontMatter:{title:"Scroll"}},{kind:"MdxPage",name:"seeAlso",route:"/docs/seeAlso",frontMatter:{title:"SeeAlso"}},{kind:"Folder",name:"slider",route:"/docs/slider",children:[{kind:"Meta",data:{demo:{title:"Demo",theme:{sidebar:!1,layout:"full"}}}},{kind:"MdxPage",name:"demo",route:"/docs/slider/demo"}]},{kind:"MdxPage",name:"slider",route:"/docs/slider",frontMatter:{title:"Slider"}},{kind:"MdxPage",name:"summary",route:"/docs/summary",frontMatter:{title:"Summary"}},{kind:"MdxPage",name:"thumbnail",route:"/docs/thumbnail",frontMatter:{title:"Thumbnail"}},{kind:"Folder",name:"viewer",route:"/docs/viewer",children:[{kind:"Meta",data:{demo:{theme:{layout:"full",sidebar:!1},title:"Demo"},contentsearch:{display:"hidden",title:"Content Search",theme:{sidebar:!1,layout:"full"}}}},{kind:"MdxPage",name:"contentsearch",route:"/docs/viewer/contentsearch"},{kind:"MdxPage",name:"demo",route:"/docs/viewer/demo"}]},{kind:"MdxPage",name:"viewer",route:"/docs/viewer",frontMatter:{title:"Viewer"}}]},{kind:"MdxPage",name:"index",route:"/"}],flexsearch:{codeblocks:!0},title:"Index",headings:R},pageNextRoute:"/",nextraLayout:i.ZP,themeConfig:s.Z};var q=(0,r.j)(Z)},1405:function(e,t,n){"use strict";var a=n(1527),r=n(5455),i=n(1890),s=n.n(i);n(959);let o=(0,r.zo)(s(),{display:"inline-flex",fontSize:"1.47rem",fontWeight:"400",lineHeight:"1.6",borderRadius:"6px",color:"#fff",background:"linear-gradient(130deg, hsl(var(--nextra-primary-hue), 100%, 45%) 0%, hsl(calc(var(--nextra-primary-hue) + 50deg), 100%, 38.2%) 100%)",padding:"0.75rem 1.5rem",gap:"0.5rem",boxShadow:"-15px 0 30px -15px hsl(var(--nextra-primary-hue) 100% 45%), 0 0 30px -15px hsl(235 100% 38.2%), 15px 0 30px -15px hsl(calc(var(--nextra-primary-hue) + 50deg), 100%, 45%)",textShadow:"-1px -1px 2px hsl(var(--nextra-primary-hue), 100%, 10%, 10%)",transition:"all 200ms ease-in-out","&:hover, &:focus":{boxShadow:"-15px 0 30px -15px hsla(var(--nextra-primary-hue), 100%, 45%, 100%), 0 0 30px -15px hsla(235, 100%, 38.2%, 38.2%), 15px 0 30px -15px hsla(calc(var(--nextra-primary-hue) + 10deg), 100%, 85%, 25%)"},variants:{size:{small:{fontSize:"1rem",padding:"0.25rem .75rem"}}},span:{display:"inline-flex",color:"hsla(var(--nextra-primary-hue), 100%, 75%, 61.8%)"}});t.Z=e=>{let{href:t,size:n,text:r}=e;return(0,a.jsxs)(o,{className:"nx-bg-primary-400/10",href:t,size:n,children:[r," ",(0,a.jsx)("span",{children:"→"})]})}},8398:function(e,t,n){"use strict";var a=n(1527),r=n(5047);let i=n.n(r)()(()=>Promise.all([n.e(668),n.e(196),n.e(50),n.e(129),n.e(177)]).then(n.bind(n,5129)),{loadableGenerated:{webpack:()=>[5129]},ssr:!1});t.Z=e=>(0,a.jsx)(i,{...e})},3907:function(e,t,n){"use strict";var a=n(1527),r=n(959),i=n(5047),s=n.n(i),o=n(4750);let l=s()(()=>Promise.all([n.e(178),n.e(668),n.e(196),n.e(646),n.e(50),n.e(861),n.e(792),n.e(129),n.e(58)]).then(n.bind(n,9058)),{loadableGenerated:{webpack:()=>[9058]},ssr:!1});t.Z=e=>{let{iiifContent:t="http://localhost:3000/manifest/annotations/commenting.json",options:n}=e,[i,s]=(0,r.useState)(),{"iiif-content":c}=(0,o.useRouter)().query;return((0,r.useEffect)(()=>{i?s(c):s(t)},[c]),i)?(0,a.jsx)(l,{iiifContent:i,options:n}):null}},2712:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var a=n(1527),r=n(5047),i=n.n(r),s=n(3699);let o=()=>{let{resolvedTheme:e}=(0,s.F)();return"dark"===e};var l=n(4750);let c=i()(()=>Promise.all([n.e(178),n.e(668),n.e(196),n.e(646),n.e(332),n.e(50),n.e(237),n.e(792),n.e(129),n.e(510)]).then(n.bind(n,888)),{loadableGenerated:{webpack:()=>[888]},ssr:!1});var d=e=>{let{iiifContent:t="https://api.dc.library.northwestern.edu/api/v2/works/71153379-4283-43be-8b0f-4e7e3bfda275?as=iiif",options:n,customDisplays:r,iiifContentSearchQuery:i}=e,s=(0,l.useRouter)(),d=s.query["iiif-content"]?s.query["iiif-content"]:t,h=o()?"rgb(17, 17, 17)":"#fff";return(0,a.jsx)(c,{iiifContent:d,iiifContentSearchQuery:i,options:{...n,background:h},...r&&{customDisplays:r}},d)}},525:function(e,t,n){"use strict";n.d(t,{F:function(){return r},e:function(){return i}});var a=n(959);function r(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function i(...e){return(0,a.useCallback)(r(...e),e)}},9474:function(e,t,n){"use strict";n.d(t,{WV:function(){return o},jH:function(){return l}});var a=n(7263),r=n(959),i=n(422),s=n(4092);let o=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,r.forwardRef)((e,n)=>{let{asChild:i,...o}=e,l=i?s.g7:t;return(0,r.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,r.createElement)(l,(0,a.Z)({},o,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function l(e,t){e&&(0,i.flushSync)(()=>e.dispatchEvent(t))}},4092:function(e,t,n){"use strict";n.d(t,{g7:function(){return s}});var a=n(7263),r=n(959),i=n(525);let s=(0,r.forwardRef)((e,t)=>{let{children:n,...i}=e,s=r.Children.toArray(n),l=s.find(c);if(l){let e=l.props.children,n=s.map(t=>t!==l?t:r.Children.count(e)>1?r.Children.only(null):(0,r.isValidElement)(e)?e.props.children:null);return(0,r.createElement)(o,(0,a.Z)({},i,{ref:t}),(0,r.isValidElement)(e)?(0,r.cloneElement)(e,void 0,n):null)}return(0,r.createElement)(o,(0,a.Z)({},i,{ref:t}),n)});s.displayName="Slot";let o=(0,r.forwardRef)((e,t)=>{let{children:n,...a}=e;return(0,r.isValidElement)(n)?(0,r.cloneElement)(n,{...function(e,t){let n={...t};for(let a in t){let r=e[a],i=t[a];/^on[A-Z]/.test(a)?r&&i?n[a]=(...e)=>{i(...e),r(...e)}:r&&(n[a]=r):"style"===a?n[a]={...r,...i}:"className"===a&&(n[a]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}(a,n.props),ref:t?(0,i.F)(t,n.ref):n.ref}):r.Children.count(n)>1?r.Children.only(null):null});o.displayName="SlotClone";let l=({children:e})=>(0,r.createElement)(r.Fragment,null,e);function c(e){return(0,r.isValidElement)(e)&&e.type===l}}},function(e){e.O(0,[178,356,196,646,101,956,792,321,888,774,179],function(){return e(e.s=9393)}),_N_E=e.O()}]);
\ No newline at end of file
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{9393:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(123)}])},123:function(e,t,n){"use strict";n.r(t),n.d(t,{__toc:function(){return R},default:function(){return q}});var a=n(1527),r=n(8567),i=n(2610),s=n(2188);n(2897);var o=n(7088),l=n(1405),c=n(959),d=n(5455);let h=(0,d.zo)("h1",{display:"inline-flex",fontSize:"3.8rem",fontWeight:"800",letterSpacing:"-0.12rem",lineHeight:"1",padding:"3rem 0 1rem 0","@md":{fontSize:"3rem"}}),x=(0,d.zo)("p",{fontSize:"1.47rem",lineHeight:"1.6",opacity:"0.7",marginBottom:"2rem"}),p=(0,d.zo)("div",{position:"relative",zIndex:"0"}),m=(0,d.zo)("div",{top:"0",height:"100%",width:"100%",position:"absolute",zIndex:"0",maskImage:"linear-gradient(180deg, transparent 61.8%, rgba(0, 0, 0, 1) 100%)"}),u=(0,d.zo)("div",{position:"relative ",maxWidth:"90rem",margin:"0 auto",padding:"0 1rem 3rem",zIndex:"1","@lg":{padding:"0 4rem 3rem"},"@md":{padding:"0 3rem 3rem"},"@sm":{padding:"0 1rem 3rem"}});var f=()=>(0,a.jsxs)(p,{children:[(0,a.jsxs)(u,{children:[(0,a.jsxs)(h,{children:["Showcase IIIF Manifests ",(0,a.jsx)("br",{}),"as interoperable web content."]}),(0,a.jsx)(x,{children:"Extensible IIIF front-end toolkit and Manifest viewer. Accessible. Composable. Open Source."}),(0,a.jsx)(l.Z,{href:"/docs",text:"Get Started"})]}),(0,a.jsx)(m,{className:"nx-bg-gray-100 nx-pb-[env(safe-area-inset-bottom)] dark:nx-bg-neutral-900 print:nx-bg-transparent"})]});let g=(0,d.zo)("div",{display:"flex",gap:"2rem","@md":{flexDirection:"column",gap:"0"},"> div":{flexShrink:"0",flexGrow:"1"},aside:{flexShrink:"1",flexGrow:"0",width:"38.2%","@md":{flexShrink:"0",flexGrow:"1",width:"100%"}}}),k=(0,d.zo)("div",{display:"flex",flexDirection:"row",justifyContent:"center"}),y=(0,d.zo)("div",{maxWidth:"90rem",width:"100%",padding:"1rem",flexShrink:"0",flexGrow:"0","@lg":{padding:"1rem 4rem"},"@md":{padding:"0 3rem 3rem"},"@sm":{padding:"0 1rem 3rem"}});var j=e=>{let{children:t}=e;return(0,a.jsx)(k,{className:"nx-bg-gray-100 nx-pb-[env(safe-area-inset-bottom)] dark:nx-bg-neutral-900 print:nx-bg-transparent",children:(0,a.jsx)(y,{children:t})})},v=n(4750);let b=(0,d.zo)("div",{lineHeight:"1",position:"absolute",width:"100%",height:"100%",zIndex:"0",transition:"all 200ms ease-in-out",margin:"5.75rem 0 0",padding:"1.5rem ",background:"hsla(var(--nextra-primary-hue), 100%, 100%, 1%)","p, span, dl":{lineHeight:"1.35",dt:{fontWeight:"700",fontSize:"0.75em",textTransform:"uppercase",marginBottom:"0.25em"},dd:{display:"block","&:last-of-type":{marginBottom:"1rem"}}},".clover-link":{textDecoration:"underline",color:"hsl(var(--nextra-primary-hue) 100% 45%)",lineHeight:"1.35"}}),w=(0,d.zo)("span",{display:"flex",flexWrap:"wrap",flexShrink:"1",width:"100%",fontWeight:"300",lineHeight:"1",padding:"0 !important",margin:"-2rem 1.5rem 1rem !important",opacity:"1",transition:"all 100ms ease-in-out",position:"absolute","pre, code":{span:{padding:"0 !important"}}}),S=(0,d.zo)("span",{lineHeight:"1",fontSize:"1.25rem",fontWeight:"800",letterSpacing:"-0.02em",display:"flex",alignItems:"center",alignSelf:"flex-start",padding:"1.5rem 1.5rem 3rem",width:"100%",transition:"all 100ms ease-in-out","&::after":{fontWeight:"400",display:"inline-flex",content:"→",opacity:"0",transition:"all 100ms ease-in-out",marginLeft:"-0.5rem"}}),M=(0,d.zo)("div",{fontWeight:"700",borderRadius:"3px",transition:"all 200ms ease-in-out",boxShadow:"1px 1px 5px #0001",position:"relative",width:"100%",background:"hsla(var(--nextra-primary-hue), 100%, 100%, 3%)"}),C=(0,d.zo)("button",{display:"flex",flexDirection:"column",textAlign:"left",width:"100%",margin:"0 0 2rem",borderRadius:"6px",position:"relative",zIndex:"0",overflow:"hidden",transition:"all 200ms ease-in-out",boxShadow:"2px 5px 14.6px #0001",minHeight:"165px",cursor:"pointer",maskImage:"linear-gradient(0deg, ".concat("rgba(0, 0, 0, 0) 3px, rgba(0, 0, 0, 1) 5rem",")"),"&::after":{content:"",display:"flex",position:"absolute",width:"100%",height:"100%"},"@md":{marginBottom:"1rem"},"&:hover, &:focus":{opacity:"1",["".concat(S)]:{color:"transparent",background:"linear-gradient(130deg, hsl(var(--nextra-primary-hue), 100%, 45%) 0%, hsl(calc(var(--nextra-primary-hue) + 50deg), 100%, 38.2%) 100%)",paddingBottom:"1.5rem",backgroundClip:"text","&::after":{opacity:"1",marginLeft:"0.5rem",color:"hsla(var(--nextra-primary-hue), 100%, 75%, 61.8%)"}},["".concat(M)]:{["".concat(w)]:{opacity:"0"}},["".concat(b)]:{marginTop:"4.25rem"}}});var P=e=>{let{component:t,children:n,css:r,href:i="/",text:s}=e,o=(0,v.useRouter)();return(0,a.jsxs)(C,{css:r,onClick:()=>o.push(i),className:"nx-bg-white dark:nx-bg-neutral-900",children:[(0,a.jsxs)(M,{children:[(0,a.jsx)(S,{children:s}),(0,a.jsx)(w,{children:n})]}),(0,a.jsx)(b,{children:t})]})},I=n(8398),N=n(3907),z=n(4408),A=n(2712),F=n(7184),E=()=>{let e=(0,v.useRouter)(),{query:t}=e;return(0,c.useEffect)(()=>{if(t["iiif-content"]){let n=t["iiif-content"];e.push({pathname:"/docs/viewer/demo",query:{"iiif-content":n}})}},[t]),(0,a.jsx)(a.Fragment,{})};n(1629),n(1080),n(6239);let R=[];function D(e){let t=Object.assign({pre:"pre",code:"code",span:"span"},(0,o.a)(),e.components);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(E,{}),"\n",(0,a.jsx)(f,{}),"\n",(0,a.jsxs)(j,{children:[(0,a.jsx)(P,{css:{height:"860px"},text:"Viewer",component:(0,a.jsx)(A.Z,{iiifContent:"https://api.dc.library.northwestern.edu/api/v2/works/71153379-4283-43be-8b0f-4e7e3bfda275?as=iiif",options:{canvasHeight:"500px",informationPanel:{open:!0}}}),href:"docs/viewer",children:(0,a.jsx)(t.pre,{"data-language":"jsx","data-theme":"default",children:(0,a.jsx)(t.code,{"data-language":"jsx","data-theme":"default",children:(0,a.jsxs)(t.span,{className:"line",children:[(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"Viewer"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"iiifContent"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://api.dc.library.northwestern.edu/api/v2/works/71153379-4283-43be-8b0f-4e7e3bfda275?as=iiif"'}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" />"})]})})})}),(0,a.jsx)(P,{text:"Scroll",css:{height:"860px"},component:(0,a.jsx)(N.Z,{iiifContent:"https://digital.lib.utk.edu/assemble/manifest/civilwar/5390"}),href:"docs/scroll",children:(0,a.jsx)(t.pre,{"data-language":"jsx","data-theme":"default",children:(0,a.jsx)(t.code,{"data-language":"jsx","data-theme":"default",children:(0,a.jsxs)(t.span,{className:"line",children:[(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"Scroll"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"iiifContent"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://digital.lib.utk.edu/assemble/manifest/civilwar/5390"'}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" />"})]})})})}),(0,a.jsx)(P,{text:"Slider",css:{height:"600px"},component:(0,a.jsx)(z.Z,{collectionId:"https://api.dc.library.northwestern.edu/api/v2/collections/c373ecd2-2c45-45f2-9f9e-52dc244870bd?as=iiif"}),href:"docs/slider",children:(0,a.jsx)(t.pre,{"data-language":"jsx","data-theme":"default",children:(0,a.jsx)(t.code,{"data-language":"jsx","data-theme":"default",children:(0,a.jsxs)(t.span,{className:"line",children:[(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"Slider"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"iiifContent"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://api.dc.library.northwestern.edu/api/v2/collections/c373ecd2-2c45-45f2-9f9e-52dc244870bd?as=iiif"'}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" />"})]})})})}),(0,a.jsx)(P,{text:"Image",css:{height:"600px"},component:(0,a.jsx)(I.Z,{src:"https://iiif.dc.library.northwestern.edu/iiif/2/b6359e7f-070c-4c86-aee1-515e5b6604e2/full/full/0/default.jpg"}),href:"docs/image",children:(0,a.jsx)(t.pre,{"data-language":"jsx","data-theme":"default",children:(0,a.jsx)(t.code,{"data-language":"jsx","data-theme":"default",children:(0,a.jsxs)(t.span,{className:"line",children:[(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"Image"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"src"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://iiif.dc.library.northwestern.edu/iiif/2/b6359e7f-070c-4c86-aee1-515e5b6604e2/full/full/0/default.jpg"'}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" />"})]})})})}),(0,a.jsxs)(g,{children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(P,{text:"Label",css:{height:"14.6vh"},component:(0,a.jsx)(F.__,{label:{none:['Zagna "lunga"']}}),href:"docs/label",children:(0,a.jsx)(t.pre,{"data-language":"jsx","data-theme":"default",children:(0,a.jsx)(t.code,{"data-language":"jsx","data-theme":"default",children:(0,a.jsxs)(t.span,{className:"line",children:[(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"Label"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"label"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"{"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"manifest"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:".label} />"})]})})})}),(0,a.jsx)(P,{text:"Summary",css:{height:"14.6vh"},component:(0,a.jsx)(F.ER,{summary:{none:["In early zannesque comedy, all the female characters were comic, grotesque, and played by men. Zagna, the feminine counterpart to Zanni, is the formal, comic-grotesque exaggeration of the woman. The actors wore female clothing over an exaggerated female body, an effect achieved with the addition of excessive, carnivalesque accessories. The Zagna mask, similar if not identical to the male mask, was worn with a scarf to cover the head."]}}),href:"docs/summary",children:(0,a.jsx)(t.pre,{"data-language":"jsx","data-theme":"default",children:(0,a.jsx)(t.code,{"data-language":"jsx","data-theme":"default",children:(0,a.jsxs)(t.span,{className:"line",children:[(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"Summary"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"summary"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"{"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"manifest"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:".summary} />"})]})})})}),(0,a.jsx)(P,{text:"Metadata",css:{height:"24.6vh"},component:(0,a.jsx)(F.SF,{metadata:[{label:{none:["Alternate Title"]},value:{none:["Fava"]}},{label:{none:["Creator"]},value:{none:["Fava, Antonio, 1949-"]}},{label:{none:["Date"]},value:{none:["2012"]}},{label:{none:["Department"]},value:{none:["Charles Deering McCormick Library of Special Collections"]}},{label:{none:["Dimensions"]},value:{none:["14 x 14 x 18 cm"]}},{label:{none:["Genre"]},value:{none:["comic masks"]}}]}),href:"docs/metadata",children:(0,a.jsx)(t.pre,{"data-language":"jsx","data-theme":"default",children:(0,a.jsx)(t.code,{"data-language":"jsx","data-theme":"default",children:(0,a.jsxs)(t.span,{className:"line",children:[(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"Metadata"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"metadata"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"{"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"manifest"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:".metadata} />"})]})})})}),(0,a.jsx)(P,{text:"RequiredStatement",css:{height:"14.6vh"},component:(0,a.jsx)(F.bT,{requiredStatement:{label:{none:["Attribution"]},value:{none:["Courtesy of Northwestern University Libraries","The images on this web site are from material in the collections of the Charles Deering McCormick Library of Special Collections of Northwestern University Libraries, are provided for use by its students, faculty and staff, and by other researchers visiting this site, for research consultation and scholarly purposes only. Further distribution and/or any commercial use of the images from this site is not permitted."]}}}),href:"docs/requiredStatement",children:(0,a.jsx)(t.pre,{"data-language":"jsx","data-theme":"default",children:(0,a.jsx)(t.code,{"data-language":"jsx","data-theme":"default",children:(0,a.jsxs)(t.span,{className:"line",children:[(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"RequiredStatement"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"requiredStatement"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"{"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"manifest"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:".requiredStatement} />"})]})})})})]}),(0,a.jsxs)("aside",{children:[(0,a.jsx)(P,{text:"Thumbnail",css:{height:"24.6vh"},component:(0,a.jsx)(F.pl,{thumbnail:[{id:"https://api.dc.library.northwestern.edu/api/v2/works/71153379-4283-43be-8b0f-4e7e3bfda275/thumbnail",type:"Image",format:"image/jpeg",height:300,width:300}]}),href:"docs/thumbnail",children:(0,a.jsx)(t.pre,{"data-language":"jsx","data-theme":"default",children:(0,a.jsx)(t.code,{"data-language":"jsx","data-theme":"default",children:(0,a.jsxs)(t.span,{className:"line",children:[(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"Thumbnail"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"thumbnail"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"{"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"manifest"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:".thumbnail} />"})]})})})}),(0,a.jsx)(P,{text:"PartOf",css:{height:"14.6vh"},component:(0,a.jsx)(F.i1,{className:"clover-link",partOf:[{id:"https://api.dc.library.northwestern.edu/api/v2/collections/c373ecd2-2c45-45f2-9f9e-52dc244870bd?as=iiif",type:"Collection",label:{none:["Commedia dell'Arte: The Masks of Antonio Fava"]},summary:{none:["The Commedia dell'Arte, the famous improvisational theatre style born in Renaissance Italy, remains a major influence in today's theatre. Antonio Fava is an actor, comedian, author, director, musician, mask maker and Internationally renowned Maestro of Commedia dell'Arte. The masks in this collection are all stored in the Charles Deering McCormick Library of Special Collections. Fava's book The Comic Mask in the Commedia dell'Arte is published by Northwestern University Press."]}}]}),href:"docs/partOf",children:(0,a.jsx)(t.pre,{"data-language":"jsx","data-theme":"default",children:(0,a.jsx)(t.code,{"data-language":"jsx","data-theme":"default",children:(0,a.jsxs)(t.span,{className:"line",children:[(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"PartOf"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"partOf"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"{"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"manifest"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:".partOf} />"})]})})})}),(0,a.jsx)(P,{text:"SeeAlso",css:{height:"14.6vh"},component:(0,a.jsx)(F.QZ,{className:"clover-link",seeAlso:[{id:"https://api.dc.library.northwestern.edu/api/v2/works/71153379-4283-43be-8b0f-4e7e3bfda275",type:"Dataset",format:"application/json",label:{none:["Northwestern University Libraries Digital Collections API"]}}]}),href:"docs/seeAlso",children:(0,a.jsx)(t.pre,{"data-language":"jsx","data-theme":"default",children:(0,a.jsx)(t.code,{"data-language":"jsx","data-theme":"default",children:(0,a.jsxs)(t.span,{className:"line",children:[(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"SeeAlso"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"seeAlso"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"{"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"manifest"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:".seeAlso} />"})]})})})}),(0,a.jsx)(P,{text:"Rendering",css:{height:"14.6vh"},component:(0,a.jsx)(F.Oy,{className:"clover-link",rendering:[{id:"https://fixtures.iiif.io/other/UCLA/kabuki_ezukushi_rtl.pdf",type:"Text",label:{en:["PDF version"]},format:"application/pdf"}]}),href:"docs/rendering",children:(0,a.jsx)(t.pre,{"data-language":"jsx","data-theme":"default",children:(0,a.jsx)(t.code,{"data-language":"jsx","data-theme":"default",children:(0,a.jsxs)(t.span,{className:"line",children:[(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"Rendering"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"rendering"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"{"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"manifest"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:".rendering} />"})]})})})}),(0,a.jsx)(P,{text:"Homepage",css:{height:"14.6vh"},component:(0,a.jsx)(F.bw,{className:"clover-link",homepage:[{id:"https://dc.library.northwestern.edu/items/71153379-4283-43be-8b0f-4e7e3bfda275",type:"Text",format:"text/html",label:{none:["Homepage at Northwestern University Libraries Digital Collections"]}}]}),href:"docs/homepage",children:(0,a.jsx)(t.pre,{"data-language":"jsx","data-theme":"default",children:(0,a.jsx)(t.code,{"data-language":"jsx","data-theme":"default",children:(0,a.jsxs)(t.span,{className:"line",children:[(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"Homepage"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"homepage"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"{"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"manifest"}),(0,a.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:".homepage} />"})]})})})})]})]})]})]})}let Z={MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:t}=Object.assign({},(0,o.a)(),e.components);return t?(0,a.jsx)(t,{...e,children:(0,a.jsx)(D,{...e})}):D(e)},pageOpts:{filePath:"pages/index.mdx",route:"/",pageMap:[{kind:"Meta",data:{index:{type:"page",title:"Clover IIIF",display:"hidden",theme:{layout:"raw"}},docs:{title:"Documentation",type:"page"},contact:{title:"IIIF Presentation API ↗",type:"page",href:"https://iiif.io/api/presentation",newWindow:!0}}},{kind:"Folder",name:"docs",route:"/docs",children:[{kind:"Meta",data:{index:"Overview",composing:"Composing","--components":{type:"separator",title:"IIIF Components"},image:"Image",scroll:{title:"Scroll",type:"doc"},slider:"Slider",viewer:"Viewer","--primitives":{type:"separator",title:"IIIF Primitives"},homepage:"Homepage",label:"Label",metadata:"Metadata",partOf:"PartOf",requiredStatement:"RequiredStatement",seeAlso:"SeeAlso",summary:"Summary",thumbnail:"Thumbnail",rendering:"Rendering"}},{kind:"MdxPage",name:"composing",route:"/docs/composing",frontMatter:{title:"Getting Started"}},{kind:"MdxPage",name:"homepage",route:"/docs/homepage",frontMatter:{title:"Homepage"}},{kind:"MdxPage",name:"image",route:"/docs/image",frontMatter:{title:"Image"}},{kind:"MdxPage",name:"index",route:"/docs",frontMatter:{title:"Docs"}},{kind:"MdxPage",name:"label",route:"/docs/label",frontMatter:{title:"Label"}},{kind:"MdxPage",name:"metadata",route:"/docs/metadata",frontMatter:{title:"Metadata"}},{kind:"MdxPage",name:"partOf",route:"/docs/partOf",frontMatter:{title:"PartOf"}},{kind:"MdxPage",name:"rendering",route:"/docs/rendering",frontMatter:{title:"Rendering"}},{kind:"MdxPage",name:"requiredStatement",route:"/docs/requiredStatement",frontMatter:{title:"RequiredStatement"}},{kind:"Folder",name:"scroll",route:"/docs/scroll",children:[{kind:"Meta",data:{demo:{title:"Demo",theme:{sidebar:!1,layout:"full"}}}},{kind:"MdxPage",name:"demo",route:"/docs/scroll/demo"}]},{kind:"MdxPage",name:"scroll",route:"/docs/scroll",frontMatter:{title:"Scroll"}},{kind:"MdxPage",name:"seeAlso",route:"/docs/seeAlso",frontMatter:{title:"SeeAlso"}},{kind:"Folder",name:"slider",route:"/docs/slider",children:[{kind:"Meta",data:{demo:{title:"Demo",theme:{sidebar:!1,layout:"full"}}}},{kind:"MdxPage",name:"demo",route:"/docs/slider/demo"}]},{kind:"MdxPage",name:"slider",route:"/docs/slider",frontMatter:{title:"Slider"}},{kind:"MdxPage",name:"summary",route:"/docs/summary",frontMatter:{title:"Summary"}},{kind:"MdxPage",name:"thumbnail",route:"/docs/thumbnail",frontMatter:{title:"Thumbnail"}},{kind:"Folder",name:"viewer",route:"/docs/viewer",children:[{kind:"Meta",data:{demo:{theme:{layout:"full",sidebar:!1},title:"Demo"},contentsearch:{display:"hidden",title:"Content Search",theme:{sidebar:!1,layout:"full"}}}},{kind:"MdxPage",name:"contentsearch",route:"/docs/viewer/contentsearch"},{kind:"MdxPage",name:"demo",route:"/docs/viewer/demo"}]},{kind:"MdxPage",name:"viewer",route:"/docs/viewer",frontMatter:{title:"Viewer"}}]},{kind:"MdxPage",name:"index",route:"/"}],flexsearch:{codeblocks:!0},title:"Index",headings:R},pageNextRoute:"/",nextraLayout:i.ZP,themeConfig:s.Z};var q=(0,r.j)(Z)},1405:function(e,t,n){"use strict";var a=n(1527),r=n(5455),i=n(1890),s=n.n(i);n(959);let o=(0,r.zo)(s(),{display:"inline-flex",fontSize:"1.47rem",fontWeight:"400",lineHeight:"1.6",borderRadius:"6px",color:"#fff",background:"linear-gradient(130deg, hsl(var(--nextra-primary-hue), 100%, 45%) 0%, hsl(calc(var(--nextra-primary-hue) + 50deg), 100%, 38.2%) 100%)",padding:"0.75rem 1.5rem",gap:"0.5rem",boxShadow:"-15px 0 30px -15px hsl(var(--nextra-primary-hue) 100% 45%), 0 0 30px -15px hsl(235 100% 38.2%), 15px 0 30px -15px hsl(calc(var(--nextra-primary-hue) + 50deg), 100%, 45%)",textShadow:"-1px -1px 2px hsl(var(--nextra-primary-hue), 100%, 10%, 10%)",transition:"all 200ms ease-in-out","&:hover, &:focus":{boxShadow:"-15px 0 30px -15px hsla(var(--nextra-primary-hue), 100%, 45%, 100%), 0 0 30px -15px hsla(235, 100%, 38.2%, 38.2%), 15px 0 30px -15px hsla(calc(var(--nextra-primary-hue) + 10deg), 100%, 85%, 25%)"},variants:{size:{small:{fontSize:"1rem",padding:"0.25rem .75rem"}}},span:{display:"inline-flex",color:"hsla(var(--nextra-primary-hue), 100%, 75%, 61.8%)"}});t.Z=e=>{let{href:t,size:n,text:r}=e;return(0,a.jsxs)(o,{className:"nx-bg-primary-400/10",href:t,size:n,children:[r," ",(0,a.jsx)("span",{children:"→"})]})}},8398:function(e,t,n){"use strict";var a=n(1527),r=n(5047);let i=n.n(r)()(()=>Promise.all([n.e(668),n.e(196),n.e(50),n.e(129),n.e(177)]).then(n.bind(n,5129)),{loadableGenerated:{webpack:()=>[5129]},ssr:!1});t.Z=e=>(0,a.jsx)(i,{...e})},3907:function(e,t,n){"use strict";var a=n(1527),r=n(959),i=n(5047),s=n.n(i),o=n(4750);let l=s()(()=>Promise.all([n.e(178),n.e(668),n.e(196),n.e(646),n.e(50),n.e(861),n.e(792),n.e(129),n.e(58)]).then(n.bind(n,9058)),{loadableGenerated:{webpack:()=>[9058]},ssr:!1});t.Z=e=>{let{iiifContent:t="http://localhost:3000/manifest/annotations/commenting.json",options:n}=e,[i,s]=(0,r.useState)(),{"iiif-content":c}=(0,o.useRouter)().query;return((0,r.useEffect)(()=>{i?s(c):s(t)},[c]),i)?(0,a.jsx)(l,{iiifContent:i,options:n}):null}},2712:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var a=n(1527),r=n(5047),i=n.n(r),s=n(3699);let o=()=>{let{resolvedTheme:e}=(0,s.F)();return"dark"===e};var l=n(4750);let c=i()(()=>Promise.all([n.e(178),n.e(668),n.e(196),n.e(646),n.e(332),n.e(50),n.e(237),n.e(792),n.e(129),n.e(82)]).then(n.bind(n,4082)),{loadableGenerated:{webpack:()=>[4082]},ssr:!1});var d=e=>{let{iiifContent:t="https://api.dc.library.northwestern.edu/api/v2/works/71153379-4283-43be-8b0f-4e7e3bfda275?as=iiif",options:n,customDisplays:r,iiifContentSearchQuery:i,plugins:s}=e,d=(0,l.useRouter)(),h=d.query["iiif-content"]?d.query["iiif-content"]:t,x=o()?"rgb(17, 17, 17)":"#fff";return(0,a.jsx)(c,{iiifContent:h,iiifContentSearchQuery:i,options:{...n,background:x},...r&&{customDisplays:r},...s&&{plugins:s}},h)}},525:function(e,t,n){"use strict";n.d(t,{F:function(){return r},e:function(){return i}});var a=n(959);function r(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function i(...e){return(0,a.useCallback)(r(...e),e)}},9474:function(e,t,n){"use strict";n.d(t,{WV:function(){return o},jH:function(){return l}});var a=n(7263),r=n(959),i=n(422),s=n(4092);let o=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,r.forwardRef)((e,n)=>{let{asChild:i,...o}=e,l=i?s.g7:t;return(0,r.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,r.createElement)(l,(0,a.Z)({},o,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function l(e,t){e&&(0,i.flushSync)(()=>e.dispatchEvent(t))}},4092:function(e,t,n){"use strict";n.d(t,{g7:function(){return s}});var a=n(7263),r=n(959),i=n(525);let s=(0,r.forwardRef)((e,t)=>{let{children:n,...i}=e,s=r.Children.toArray(n),l=s.find(c);if(l){let e=l.props.children,n=s.map(t=>t!==l?t:r.Children.count(e)>1?r.Children.only(null):(0,r.isValidElement)(e)?e.props.children:null);return(0,r.createElement)(o,(0,a.Z)({},i,{ref:t}),(0,r.isValidElement)(e)?(0,r.cloneElement)(e,void 0,n):null)}return(0,r.createElement)(o,(0,a.Z)({},i,{ref:t}),n)});s.displayName="Slot";let o=(0,r.forwardRef)((e,t)=>{let{children:n,...a}=e;return(0,r.isValidElement)(n)?(0,r.cloneElement)(n,{...function(e,t){let n={...t};for(let a in t){let r=e[a],i=t[a];/^on[A-Z]/.test(a)?r&&i?n[a]=(...e)=>{i(...e),r(...e)}:r&&(n[a]=r):"style"===a?n[a]={...r,...i}:"className"===a&&(n[a]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}(a,n.props),ref:t?(0,i.F)(t,n.ref):n.ref}):r.Children.count(n)>1?r.Children.only(null):null});o.displayName="SlotClone";let l=({children:e})=>(0,r.createElement)(r.Fragment,null,e);function c(e){return(0,r.isValidElement)(e)&&e.type===l}}},function(e){e.O(0,[178,356,196,646,101,956,792,321,888,774,179],function(){return e(e.s=9393)}),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/_next/static/chunks/webpack-af1172df7dc9d4c5.js b/_next/static/chunks/webpack-af1172df7dc9d4c5.js
new file mode 100644
index 00000000..f6a30386
--- /dev/null
+++ b/_next/static/chunks/webpack-af1172df7dc9d4c5.js
@@ -0,0 +1 @@
+!function(){"use strict";var e,t,n,r,o,u,c,i,f,a={},d={};function s(e){var t=d[e];if(void 0!==t)return t.exports;var n=d[e]={exports:{}},r=!0;try{a[e].call(n.exports,n,n.exports,s),r=!1}finally{r&&delete d[e]}return n.exports}s.m=a,e=[],s.O=function(t,n,r,o){if(n){o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var c=1/0,u=0;u=o&&Object.keys(s.O).every(function(e){return s.O[e](n[f])})?n.splice(f--,1):(i=!1,o0&&e[c-1][2]>o;c--)e[c]=e[c-1];e[c]=[n,r,o];return}for(var u=1/0,c=0;c=o&&Object.keys(s.O).every(function(e){return s.O[e](n[f])})?n.splice(f--,1):(i=!1,o