New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@samvera/nectar-iiif

Package Overview
Dependencies
Maintainers
4
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@samvera/nectar-iiif - npm Package Compare versions

Comparing version 0.0.6-alpha.7 to 0.0.6

dist/dev/DynamicUrl.d.ts

2

dist/index.cjs.js

@@ -1,2 +0,2 @@

var B=Object.create;var p=Object.defineProperty;var D=Object.getOwnPropertyDescriptor;var J=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,K=Object.getPrototypeOf,L=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;var v=(t,e,r)=>e in t?p(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,s=(t,e)=>{for(var r in e||(e={}))L.call(e,r)&&v(t,r,e[r]);if(h)for(var r of h(e))Q.call(e,r)&&v(t,r,e[r]);return t};var U=(t,e)=>{for(var r in e)p(t,r,{get:e[r],enumerable:!0})},F=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of J(e))!L.call(t,o)&&o!==r&&p(t,o,{get:()=>e[o],enumerable:!(a=D(e,o))||a.enumerable});return t};var n=(t,e,r)=>(r=t!=null?B(K(t)):{},F(e||!t||!t.__esModule?p(r,"default",{value:t,enumerable:!0}):r,t)),X=t=>F(p({},"__esModule",{value:!0}),t);var ct={};U(ct,{Homepage:()=>R,Label:()=>l,Metadata:()=>$,RequiredStatement:()=>j,Summary:()=>H,Thumbnail:()=>P,Value:()=>S});module.exports=X(ct);var b=n(require("react")),N=require("@stitches/react");var c=(t,e="none")=>{var a;if(!t)return null;if(typeof t=="string")return[t];if(!t[e]){let o=Object.getOwnPropertyNames(t);if(o.length>0)return(a=t[o[0]])==null?void 0:a.join(", ")}return!t[e]||!Array.isArray(t[e])?null:t[e].join(", ")};var Y=(0,N.styled)("div",{}),Z=(0,N.styled)("span",{}),_=({as:t="div",children:e,homepage:r,lang:a="none"})=>{let o="span";return t!=="div"&&(o="li"),b.default.createElement(Y,{as:t,"data-testid":"nectar-homepage"},r.map(i=>{let u=c(i.label,a);return b.default.createElement(Z,{as:o,key:i.id},b.default.createElement("a",{href:i.id,"aria-label":u},e||u))}))},R=_;var M=n(require("react")),A=require("@stitches/react");var tt=(0,A.styled)("span",{}),et=t=>{let{as:e,label:r}=t,a=t;return M.default.createElement(tt,s({as:e},a),c(r,a.lang))},l=et;var d=n(require("react")),E=require("@stitches/react");var I=n(require("react"));var C=n(require("react"));var rt=({as:t="dd",lang:e,value:r})=>C.default.createElement(l,{label:r,as:t,lang:e}),S=rt;var at=t=>{let{item:e,lang:r}=t,{label:a,value:o}=e;return I.default.createElement("div",{role:"group"},I.default.createElement(l,{as:"dt",label:a,lang:r}),I.default.createElement(S,{as:"dd",value:o,lang:r}))},x=at;var ot=(0,E.styled)("dl",{}),it=t=>{let{as:e,metadata:r}=t;if(!Array.isArray(r))return d.default.createElement(d.default.Fragment,null);let a=t;return d.default.createElement(d.default.Fragment,null,r.length>0&&d.default.createElement(ot,s({as:e},a),r.map((o,i)=>d.default.createElement(x,{item:o,key:i,lang:a.lang}))))},$=it;var y=n(require("react")),W=require("@stitches/react");var mt=(0,W.styled)("dl",{}),nt=t=>{let{as:e,requiredStatement:r}=t;if(!r)return y.default.createElement(y.default.Fragment,null);let a=t;return y.default.createElement(mt,s({as:e},a),y.default.createElement(x,{item:r,lang:a.lang}))},j=nt;var q=n(require("react"));var st=t=>{let{as:e,summary:r}=t;return q.default.createElement(l,s({as:e,label:r},t))},H=st;var g=n(require("react")),O=require("@stitches/react");var m=n(require("react")),w=n(require("clsx")),G=require("@stitches/react");var T=(t,e="200,",r="full")=>{Array.isArray(t)&&(t=t[0]);let{id:a,service:o}=t,i;if(!o)return a;if(Array.isArray(t.service)&&t.service.length>0&&(i=o[0]),i){if(i["@id"])return`${i["@id"]}/${r}/${e}/0/default.jpg`;if(i.id)return`${i.id}/${r}/${e}/0/default.jpg`}};var k=(0,G.styled)("img",{width:"100%",height:"100%",transition:"all 1s cubic-bezier(0.16, 1, 0.3, 1)",opacity:0,["&.loaded"]:{opacity:1}}),lt=({alt:t,resource:e,objectFit:r})=>{let[a,o]=(0,m.useState)(!1),i=(0,m.useRef)(null);(0,m.useEffect)(()=>{i&&i.current&&i.current.complete&&o(!0)},[]);let{type:u,id:f}=e;switch(u){case"Image":let z=T(e);return m.default.createElement(k,{alt:t,src:z,ref:i,as:"img",key:f,style:{objectFit:r},onLoad:()=>o(!0),className:(0,w.default)("source",a&&"loaded")});case"Sound":return m.default.createElement(k,{src:f,as:"video",key:f});default:return console.warn(`Resource type: ${u} is not valid or not yet supported in Nectar.`),m.default.createElement(m.default.Fragment,null)}},V=lt;var ut=(0,O.styled)("div",{}),dt=({altAsLabel:t,lang:e,objectFit:r="cover",thumbnail:a})=>{let o=c(t,e);return g.default.createElement(g.default.Fragment,null,a.map(i=>{let{width:u="200",height:f}=i;return g.default.createElement(ut,{key:i.id,style:{width:`${u}px`,height:`${f}px`,backgroundColor:"#c1c8cd"}},g.default.createElement(V,{alt:o,resource:i,objectFit:r}))}))},P=dt;
var O=Object.create;var y=Object.defineProperty;var W=Object.getOwnPropertyDescriptor;var P=Object.getOwnPropertyNames,L=Object.getOwnPropertySymbols,B=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable;var x=(t,e,r)=>e in t?y(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,n=(t,e)=>{for(var r in e||(e={}))M.call(e,r)&&x(t,r,e[r]);if(L)for(var r of L(e))D.call(e,r)&&x(t,r,e[r]);return t};var J=(t,e)=>{for(var r in e)y(t,r,{get:e[r],enumerable:!0})},F=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of P(e))!M.call(t,a)&&a!==r&&y(t,a,{get:()=>e[a],enumerable:!(o=W(e,a))||o.enumerable});return t};var l=(t,e,r)=>(r=t!=null?O(B(t)):{},F(e||!t||!t.__esModule?y(r,"default",{value:t,enumerable:!0}):r,t)),K=t=>F(y({},"__esModule",{value:!0}),t);var st={};J(st,{Homepage:()=>C,Label:()=>u,Metadata:()=>R,RequiredStatement:()=>$,Summary:()=>G,Thumbnail:()=>V,Value:()=>v});module.exports=K(st);var S=l(require("react"));var q=require("@stitches/react"),{styled:m,css:ut,keyframes:ft}=(0,q.createStitches)({prefix:"nectar"});var p=(t,e="none")=>{var o;if(!t)return null;if(typeof t=="string")return[t];if(!t[e]){let a=Object.getOwnPropertyNames(t);if(a.length>0)return(o=t[a[0]])==null?void 0:o.join(", ")}return!t[e]||!Array.isArray(t[e])?null:t[e].join(", ")};var Q=m("div",{}),U=m("span",{}),X=({as:t="div",children:e,homepage:r,lang:o="none"})=>{let a="span";return t!=="div"&&(a="li"),S.default.createElement(Q,{as:t,"data-testid":"nectar-homepage"},r.map(i=>{let d=p(i.label,o);return S.default.createElement(U,{as:a,key:i.id},S.default.createElement("a",{href:i.id,"aria-label":d},e||d))}))},C=X;var H=l(require("react"));function Y(t,e){let r=Object.keys(t).filter(a=>e.includes(a)?null:a),o=new Object;return r.forEach(a=>{o[a]=t[a]}),o}var s=Y;var Z=m("span",{}),_=t=>{let{as:e,label:r}=t,a=s(t,["as","label"]);return H.default.createElement(Z,n({as:e},a),p(r,a.lang))},u=_;var c=l(require("react"));var N=l(require("react"));var j=l(require("react"));var tt=({as:t="dd",lang:e,value:r})=>j.default.createElement(u,{label:r,as:t,lang:e}),v=tt;var et=t=>{let{item:e,lang:r}=t,{label:o,value:a}=e;return N.default.createElement("div",{role:"group"},N.default.createElement(u,{as:"dt",label:o,lang:r}),N.default.createElement(v,{as:"dd",value:a,lang:r}))},h=et;var rt=m("dl",{}),at=t=>{let{as:e,metadata:r}=t;if(!Array.isArray(r))return c.default.createElement(c.default.Fragment,null);let a=s(t,["as","metadata"]);return c.default.createElement(c.default.Fragment,null,r.length>0&&c.default.createElement(rt,n({as:e},a),r.map((i,d)=>c.default.createElement(h,{item:i,key:d,lang:a.lang}))))},R=at;var b=l(require("react"));var ot=m("dl",{}),it=t=>{let{as:e,requiredStatement:r}=t;if(!r)return b.default.createElement(b.default.Fragment,null);let a=s(t,["as","requiredStatement"]);return b.default.createElement(ot,n({as:e},a),b.default.createElement(h,{item:r,lang:a.lang}))},$=it;var w=l(require("react"));var mt=t=>{let{as:e,summary:r}=t,a=s(t,["as","summary"]);return w.default.createElement(u,n({as:e,label:r},a))},G=mt;var f=l(require("react"));var T=(t,e="200,",r="full")=>{Array.isArray(t)&&(t=t[0]);let{id:o,service:a}=t,i;if(!a)return o;if(Array.isArray(t.service)&&t.service.length>0&&(i=a[0]),i){if(i["@id"])return`${i["@id"]}/${r}/${e}/0/default.jpg`;if(i.id)return`${i.id}/${r}/${e}/0/default.jpg`}};var A=m("img",{}),nt=t=>{let{thumbnail:e,altAsLabel:r}=t,o;r&&(o=p(r));let i=s(t,["thumbnail","altAsLabel"]);return f.default.createElement(f.default.Fragment,null,e&&e.map(d=>{let{type:I,id:g,width:k=200,height:z}=d;switch(I){case"Image":let E=T(d);return f.default.createElement(A,n({as:"img",alt:o,src:E,key:g,css:{width:k,height:z}},i));case"Sound":return f.default.createElement(A,{as:"video",key:g,src:g});case"Video":return f.default.createElement(A,{as:"video",key:g,src:g});default:return console.warn(`Resource type: ${I} is not valid or not yet supported in Nectar.`),f.default.createElement(f.default.Fragment,null)}}))},V=nt;
//# sourceMappingURL=index.cjs.js.map

@@ -1,2 +0,2 @@

var R=Object.defineProperty;var I=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var x=(t,e,r)=>e in t?R(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,m=(t,e)=>{for(var r in e||(e={}))M.call(e,r)&&x(t,r,e[r]);if(I)for(var r of I(e))A.call(e,r)&&x(t,r,e[r]);return t};import g from"react";import{styled as N}from"@stitches/react";var l=(t,e="none")=>{var a;if(!t)return null;if(typeof t=="string")return[t];if(!t[e]){let i=Object.getOwnPropertyNames(t);if(i.length>0)return(a=t[i[0]])==null?void 0:a.join(", ")}return!t[e]||!Array.isArray(t[e])?null:t[e].join(", ")};var C=N("div",{}),E=N("span",{}),$=({as:t="div",children:e,homepage:r,lang:a="none"})=>{let i="span";return t!=="div"&&(i="li"),g.createElement(C,{as:t,"data-testid":"nectar-homepage"},r.map(o=>{let n=l(o.label,a);return g.createElement(E,{as:i,key:o.id},g.createElement("a",{href:o.id,"aria-label":n},e||n))}))},W=$;import j from"react";import{styled as q}from"@stitches/react";var H=q("span",{}),T=t=>{let{as:e,label:r}=t,a=t;return j.createElement(H,m({as:e},a),l(r,a.lang))},s=T;import u from"react";import{styled as V}from"@stitches/react";import S from"react";import k from"react";var w=({as:t="dd",lang:e,value:r})=>k.createElement(s,{label:r,as:t,lang:e}),b=w;var G=t=>{let{item:e,lang:r}=t,{label:a,value:i}=e;return S.createElement("div",{role:"group"},S.createElement(s,{as:"dt",label:a,lang:r}),S.createElement(b,{as:"dd",value:i,lang:r}))},c=G;var O=V("dl",{}),P=t=>{let{as:e,metadata:r}=t;if(!Array.isArray(r))return u.createElement(u.Fragment,null);let a=t;return u.createElement(u.Fragment,null,r.length>0&&u.createElement(O,m({as:e},a),r.map((i,o)=>u.createElement(c,{item:i,key:o,lang:a.lang}))))},z=P;import f from"react";import{styled as B}from"@stitches/react";var D=B("dl",{}),J=t=>{let{as:e,requiredStatement:r}=t;if(!r)return f.createElement(f.Fragment,null);let a=t;return f.createElement(D,m({as:e},a),f.createElement(c,{item:r,lang:a.lang}))},K=J;import Q from"react";var U=t=>{let{as:e,summary:r}=t;return Q.createElement(s,m({as:e,label:r},t))},X=U;import y from"react";import{styled as at}from"@stitches/react";import p,{useEffect as Y,useRef as Z,useState as _}from"react";import tt from"clsx";import{styled as et}from"@stitches/react";var h=(t,e="200,",r="full")=>{Array.isArray(t)&&(t=t[0]);let{id:a,service:i}=t,o;if(!i)return a;if(Array.isArray(t.service)&&t.service.length>0&&(o=i[0]),o){if(o["@id"])return`${o["@id"]}/${r}/${e}/0/default.jpg`;if(o.id)return`${o.id}/${r}/${e}/0/default.jpg`}};var v=et("img",{width:"100%",height:"100%",transition:"all 1s cubic-bezier(0.16, 1, 0.3, 1)",opacity:0,["&.loaded"]:{opacity:1}}),rt=({alt:t,resource:e,objectFit:r})=>{let[a,i]=_(!1),o=Z(null);Y(()=>{o&&o.current&&o.current.complete&&i(!0)},[]);let{type:n,id:d}=e;switch(n){case"Image":let F=h(e);return p.createElement(v,{alt:t,src:F,ref:o,as:"img",key:d,style:{objectFit:r},onLoad:()=>i(!0),className:tt("source",a&&"loaded")});case"Sound":return p.createElement(v,{src:d,as:"video",key:d});default:return console.warn(`Resource type: ${n} is not valid or not yet supported in Nectar.`),p.createElement(p.Fragment,null)}},L=rt;var ot=at("div",{}),it=({altAsLabel:t,lang:e,objectFit:r="cover",thumbnail:a})=>{let i=l(t,e);return y.createElement(y.Fragment,null,a.map(o=>{let{width:n="200",height:d}=o;return y.createElement(ot,{key:o.id,style:{width:`${n}px`,height:`${d}px`,backgroundColor:"#c1c8cd"}},y.createElement(L,{alt:i,resource:o,objectFit:r}))}))},mt=it;export{W as Homepage,s as Label,z as Metadata,K as RequiredStatement,X as Summary,mt as Thumbnail,b as Value};
var q=Object.defineProperty;var A=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable;var I=(t,e,r)=>e in t?q(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,n=(t,e)=>{for(var r in e||(e={}))C.call(e,r)&&I(t,r,e[r]);if(A)for(var r of A(e))H.call(e,r)&&I(t,r,e[r]);return t};import b from"react";import{createStitches as j}from"@stitches/react";var{styled:m,css:rt,keyframes:at}=j({prefix:"nectar"});var d=(t,e="none")=>{var o;if(!t)return null;if(typeof t=="string")return[t];if(!t[e]){let a=Object.getOwnPropertyNames(t);if(a.length>0)return(o=t[a[0]])==null?void 0:o.join(", ")}return!t[e]||!Array.isArray(t[e])?null:t[e].join(", ")};var R=m("div",{}),$=m("span",{}),w=({as:t="div",children:e,homepage:r,lang:o="none"})=>{let a="span";return t!=="div"&&(a="li"),b.createElement(R,{as:t,"data-testid":"nectar-homepage"},r.map(i=>{let l=d(i.label,o);return b.createElement($,{as:a,key:i.id},b.createElement("a",{href:i.id,"aria-label":l},e||l))}))},G=w;import V from"react";function T(t,e){let r=Object.keys(t).filter(a=>e.includes(a)?null:a),o=new Object;return r.forEach(a=>{o[a]=t[a]}),o}var s=T;var k=m("span",{}),z=t=>{let{as:e,label:r}=t,a=s(t,["as","label"]);return V.createElement(k,n({as:e},a),d(r,a.lang))},u=z;import c from"react";import v from"react";import E from"react";var O=({as:t="dd",lang:e,value:r})=>E.createElement(u,{label:r,as:t,lang:e}),S=O;var W=t=>{let{item:e,lang:r}=t,{label:o,value:a}=e;return v.createElement("div",{role:"group"},v.createElement(u,{as:"dt",label:o,lang:r}),v.createElement(S,{as:"dd",value:a,lang:r}))},g=W;var P=m("dl",{}),B=t=>{let{as:e,metadata:r}=t;if(!Array.isArray(r))return c.createElement(c.Fragment,null);let a=s(t,["as","metadata"]);return c.createElement(c.Fragment,null,r.length>0&&c.createElement(P,n({as:e},a),r.map((i,l)=>c.createElement(g,{item:i,key:l,lang:a.lang}))))},D=B;import y from"react";var J=m("dl",{}),K=t=>{let{as:e,requiredStatement:r}=t;if(!r)return y.createElement(y.Fragment,null);let a=s(t,["as","requiredStatement"]);return y.createElement(J,n({as:e},a),y.createElement(g,{item:r,lang:a.lang}))},Q=K;import U from"react";var X=t=>{let{as:e,summary:r}=t,a=s(t,["as","summary"]);return U.createElement(u,n({as:e,label:r},a))},Y=X;import f from"react";var L=(t,e="200,",r="full")=>{Array.isArray(t)&&(t=t[0]);let{id:o,service:a}=t,i;if(!a)return o;if(Array.isArray(t.service)&&t.service.length>0&&(i=a[0]),i){if(i["@id"])return`${i["@id"]}/${r}/${e}/0/default.jpg`;if(i.id)return`${i.id}/${r}/${e}/0/default.jpg`}};var N=m("img",{}),Z=t=>{let{thumbnail:e,altAsLabel:r}=t,o;r&&(o=d(r));let i=s(t,["thumbnail","altAsLabel"]);return f.createElement(f.Fragment,null,e&&e.map(l=>{let{type:h,id:p,width:x=200,height:M}=l;switch(h){case"Image":let F=L(l);return f.createElement(N,n({as:"img",alt:o,src:F,key:p,css:{width:x,height:M}},i));case"Sound":return f.createElement(N,{as:"video",key:p,src:p});case"Video":return f.createElement(N,{as:"video",key:p,src:p});default:return console.warn(`Resource type: ${h} is not valid or not yet supported in Nectar.`),f.createElement(f.Fragment,null)}}))},_=Z;export{G as Homepage,u as Label,D as Metadata,Q as RequiredStatement,Y as Summary,_ as Thumbnail,S as Value};
//# sourceMappingURL=index.esm.js.map

@@ -5,7 +5,2 @@ import { IIIFExternalWebResource, InternationalString, MetadataItem } from "@iiif/presentation-3";

}
export interface NectarExternalWebResource {
alt: string | undefined;
resource: IIIFExternalWebResource;
objectFit: "contain" | "cover" | "fill" | "none" | "scale-down";
}
export interface NectarMetadataItem extends NectarPrimitive {

@@ -39,5 +34,4 @@ item: MetadataItem;

export interface NectarThumbnail extends NectarPrimitive {
altAsLabel: InternationalString;
altAsLabel?: InternationalString;
thumbnail: IIIFExternalWebResource[];
objectFit?: "contain" | "cover" | "fill" | "none" | "scale-down";
}

@@ -44,0 +38,0 @@ export interface NectarSummary extends NectarPrimitive {

{
"name": "@samvera/nectar-iiif",
"version": "0.0.6-alpha.7",
"version": "0.0.6",
"description": "",

@@ -32,2 +32,3 @@ "main": "dist/index.cjs.js",

"devDependencies": {
"@iiif/presentation-3": "^1.0.4",
"@iiif/vault": "^0.9.17",

@@ -37,8 +38,13 @@ "@testing-library/jest-dom": "^5.16.4",

"@types/jest": "^27.4.1",
"@types/react": "^18.0.5",
"@types/react-dom": "^18.0.1",
"chokidar": "^3.5.3",
"esbuild": "^0.14.36",
"esbuild-envfile-plugin": "^1.0.2",
"fs-extra": "^10.1.0",
"jest": "^27.5.1",
"live-server": "^1.1.0",
"markdown-it": "^13.0.0",
"rimraf": "^3.0.2",
"shiki": "^0.10.1",
"ts-jest": "^27.1.4",

@@ -49,7 +55,3 @@ "ts-node": "^10.7.0",

"dependencies": {
"@iiif/presentation-3": "^1.0.4",
"@stitches/react": "^1.2.7",
"@types/react": "^18.0.5",
"@types/react-dom": "^18.0.1",
"clsx": "^1.1.1",
"react": "^16.8 || ^17.0 || ^18.0",

@@ -56,0 +58,0 @@ "react-dom": "^16.8 || ^17.0 || ^18.0"

@@ -5,3 +5,3 @@ # Nectar IIIF

[**Demo**](https://codesandbox.io/s/nectar-vault-4dzc7l?file=/src/App.js)
[**Demo**](https://samvera-labs.github.io/nectar-iiif)

@@ -52,2 +52,15 @@ ---

All primitives accept HTMLElement attributes.
| Prop | Type | Default |
| ----------- | ----------------------------- | ----------- |
| `className` | `string`, `undefined` | `undefined` |
| `style` | `CSSProperties`, `undefined` | `undefined` |
| `lang` | `string`, `undefined` | `undefined` |
| `title` | `string`, `undefined` | `undefined` |
| `data-*` | `string`, `undefined` | `undefined` |
| `aria-*` | `AriaAttributes`, `undefined` | `undefined` |
The value of `lang` will couple with [InternationalString](https://github.com/IIIF-Commons/presentation-3-types/blob/main/iiif/descriptive.d.ts#L6-L8) props to output the denoted `label`, `value`, `summary` entries. If lang is undefined, entries will default to the first entry in the array index.
### Label

@@ -57,7 +70,6 @@

| Prop | Type | Default | Required |
| ---------- | ----------------------------------------------------------------------------------------------------------------- | ------- | ------------------ |
| `as` | ` span`, `h1`, `h2`, `h3`, `h4`, `h5`, `h6`, `p`, `label`, `dt`, `dd` | `span` | -- |
| `language` | string | `none` | -- |
| `label` | [InternationalString](https://github.com/IIIF-Commons/presentation-3-types/blob/main/iiif/descriptive.d.ts#L6-L8) | -- | :white_check_mark: |
| Prop | Type | Default | Required |
| ------- | --------------------------------------------------------------------- | ------- | ------------------ |
| `as` | ` span`, `h1`, `h2`, `h3`, `h4`, `h5`, `h6`, `p`, `label`, `dt`, `dd` | `span` | -- |
| `label` | `InternationalString` | -- | :white_check_mark: |

@@ -78,7 +90,6 @@ #### Usage

| Prop | Type | Default | Required |
| ---------- | ----------------------------------------------------------------------------------------------------------------- | ------- | ------------------ |
| `as` | ` span`, `h1`, `h2`, `h3`, `h4`, `h5`, `h6`, `p` | `p` | -- |
| `language` | string | `none` | -- |
| `summary` | [InternationalString](https://github.com/IIIF-Commons/presentation-3-types/blob/main/iiif/descriptive.d.ts#L6-L8) | -- | :white_check_mark: |
| Prop | Type | Default | Required |
| --------- | ------------------------------------------------ | ------- | ------------------ |
| `as` | ` span`, `h1`, `h2`, `h3`, `h4`, `h5`, `h6`, `p` | `span` | -- |
| `summary` | `InternationalString | -- | :white_check_mark: |

@@ -85,0 +96,0 @@ #### Usage

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc