Skip to content

Commit

Permalink
Merge pull request #264 from nulib/deploy/staging
Browse files Browse the repository at this point in the history
Update Clover/API Types.
  • Loading branch information
mathewjordan authored Apr 5, 2023
2 parents b0ea4ac + 4019085 commit c5c5078
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 17 deletions.
1 change: 1 addition & 0 deletions components/SharedLink/SharedLink.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ const work: Work = {
file_sets: [
{
accession_number: "inu-dil-12b39039-68af-4a31-8b04-1b025d95a0b8",
description: "Something",
duration: null,
height: 4050,
id: "7ad42e60-a8b6-444d-b4cf-f53f9c2756f6",
Expand Down
10 changes: 9 additions & 1 deletion components/Work/ViewerWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ interface WrapperProps {
isWorkRestricted?: boolean;
}

const WorkViewerWrapper: React.FC<WrapperProps> = ({ manifestId, isWorkRestricted }) => {
const WorkViewerWrapper: React.FC<WrapperProps> = ({
manifestId,
isWorkRestricted,
}) => {
const userAuth = React.useContext(UserContext);

const customTheme = {
Expand All @@ -52,6 +55,11 @@ const WorkViewerWrapper: React.FC<WrapperProps> = ({ manifestId, isWorkRestricte
const options = {
canvasBackgroundColor: "$gray6",
canvasHeight: "640px",
openSeadragon: {
gestureSettingsMouse: {
scrollToZoom: false,
},
},
renderAbout: false,
showIIIFBadge: false,
showInformationToggle: false,
Expand Down
1 change: 1 addition & 0 deletions mocks/sample-work1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export const sampleWork1: Work = {
file_sets: [
{
accession_number: "inu-dil-50575a78-a47a-4a07-939f-6e1d6a9d7065",
description: "Something",
duration: 20,
height: 1000,
id: "93d75ffe-20d8-48ea-9206-8db9114f2731",
Expand Down
1 change: 1 addition & 0 deletions mocks/sample-work2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export const sampleWork2: Work = {
file_sets: [
{
accession_number: "inu-dil-50575a78-a47a-4a07-939f-6e1d6a9d7065",
description: "Something",
duration: null,
height: 1000,
id: "93d75ffe-20d8-48ea-9206-8db9114f2731",
Expand Down
30 changes: 16 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@iiif/parser": "^1.0.10",
"@next/bundle-analyzer": "^13.1.6",
"@next/font": "^13.1.6",
"@nulib/dcapi-types": "^2.0.0-rc.5",
"@nulib/dcapi-types": "^2.0.0",
"@nulib/design-system": "^1.6.2",
"@radix-ui/colors": "^0.1.8",
"@radix-ui/react-accordion": "^1.0.1",
Expand All @@ -35,7 +35,7 @@
"@radix-ui/react-switch": "^1.0.1",
"@radix-ui/react-tabs": "^1.0.1",
"@samvera/bloom-iiif": "^0.5.0",
"@samvera/clover-iiif": "^1.13.2",
"@samvera/clover-iiif": "^1.14.1",
"@samvera/image-downloader": "^1.1.6",
"@samvera/nectar-iiif": "^0.0.20",
"@stitches/react": "^1.2.6",
Expand Down

0 comments on commit c5c5078

Please sign in to comment.