Skip to content

Commit

Permalink
Merge pull request #316 from nulib/update-clover
Browse files Browse the repository at this point in the history
Update dependencies including Clover to fix video Chapters bug
  • Loading branch information
adamjarling authored Mar 13, 2024
2 parents 15a4852 + b94c75a commit 08484c7
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 37 deletions.
5 changes: 4 additions & 1 deletion components/Clover/ViewerWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ import {
AnnouncementContent,
ViewerWrapperStyled,
} from "@/components/Clover/ViewerWrapper.styled";
import type { CloverViewerProps, ViewerConfigOptions } from "@samvera/clover-iiif";
import type {
CloverViewerProps,
ViewerConfigOptions,
} from "@samvera/clover-iiif";

import Announcement from "@/components/Shared/Announcement";
import { IconInfo } from "@/components/Shared/SVG/Icons";
Expand Down
2 changes: 1 addition & 1 deletion components/Facets/WorkType/WorkType.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useEffect, useState } from "react";
import { FACETS_WORK_TYPE } from "@/lib/constants/facets-model";
import RadioGroup from "./RadioGroup";
import { WorkType } from "@nulib/dcapi-types";
import { type WorkType } from "@nulib/dcapi-types";
import useQueryParams from "@/hooks/useQueryParams";
import { useRouter } from "next/router";

Expand Down
59 changes: 31 additions & 28 deletions package-lock.json

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

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@
"@radix-ui/react-select": "^2.0.0",
"@radix-ui/react-switch": "^1.0.1",
"@radix-ui/react-tabs": "^1.0.1",
"@samvera/clover-iiif": "2.4.0-rc.0",
"@samvera/clover-iiif": "^2.4.0",
"@samvera/image-downloader": "^1.1.6",
"@stitches/react": "^1.2.6",
"axios": "^1.2.2",
"framer-motion": "^10.2.5",
"framer-motion": "^11.0.12",
"jsonwebtoken": "^9.0.0",
"next": "^13.5.6",
"react": "^18.2.0",
"react-content-loader": "^6.2.0",
"react-dom": "^18.2.0",
"react-error-boundary": "^4.0.4",
"react-error-boundary": "^4.0.13",
"react-masonry-css": "^1.0.16",
"react-share": "^5.0.3",
"swiper": "^9.4.1"
Expand All @@ -65,7 +65,7 @@
"babel-jest": "^29.6.2",
"cypress": "^12.4.0",
"eslint": "^8.47.0",
"eslint-config-next": "^14.0.3",
"eslint-config-next": "^14.1.3",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-cypress": "^2.12.1",
"eslint-plugin-testing-library": "^6.0.1",
Expand All @@ -75,7 +75,7 @@
"next-router-mock": "^0.9.1-beta.0",
"prettier": "^3.0.1",
"ts-jest": "^29.0.5",
"typescript": "^5.0.4"
"typescript": "^5.4.2"
},
"optionalDependencies": {
"fsevents": "^2.3.2"
Expand Down
5 changes: 3 additions & 2 deletions pages/collections/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ import {
getTopMetadataAggs,
} from "@/lib/collection-helpers";
import { useEffect, useState } from "react";

import { ApiResponseBucket } from "@/types/api/response";
import { Collection } from "@nulib/dcapi-types";
import CollectionTabsExplore from "@/components/Collection/Tabs/Explore";
import CollectionTabsMetadata from "@/components/Collection/Tabs/Metadata";
import CollectionTabsOrganization from "@/components/Collection/Tabs/Organization";
import { Collection as CollectionType } from "@nulib/dcapi-types";
import Container from "@/components/Shared/Container";
import Facts from "@/components/Shared/Facts";
import Head from "next/head";
Expand All @@ -41,7 +42,7 @@ import { useRouter } from "next/router";

const Collection: NextPage = () => {
const router = useRouter();
const [collection, setCollection] = useState<Collection>();
const [collection, setCollection] = useState<CollectionType>();
const [metadata, setMetadata] = useState<ApiResponseBucket[]>([]);
const [series, setSeries] = useState<GenericAggsReturn[]>([]);
const [topMetadata, setTopMetadata] = useState<GetTopMetadataAggsReturn[]>(
Expand Down

0 comments on commit 08484c7

Please sign in to comment.