Skip to content

Commit

Permalink
chore: update dependencies (#1328)
Browse files Browse the repository at this point in the history
* chore: update eslint

* chore: update storybook

* chore: update tsconfig

* chore: update common deps

* chore: update editor deps

* chore: update topic-image deps

* chore: update deps, swiper, react-to-print

* console.error if copy link is not working

Co-authored-by: Sindre Bøyum <boyum@users.noreply.github.com>

* console.error if copy link is not working

Co-authored-by: Sindre Bøyum <boyum@users.noreply.github.com>

---------

Co-authored-by: Sindre Bøyum <boyum@users.noreply.github.com>
  • Loading branch information
henriettemoe and boyum authored Oct 11, 2024
1 parent 3867f24 commit 1656dc8
Show file tree
Hide file tree
Showing 19 changed files with 1,279 additions and 659 deletions.
10 changes: 5 additions & 5 deletions common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@
"lint:fix": "npm run lint:check -- --fix"
},
"dependencies": {
"@headlessui/react": "^2.1.8",
"@headlessui/react": "^2.1.9",
"core-js": "^3.38.1",
"h5p-types": "^5.4.0",
"h5p-types": "^5.5.0",
"h5p-utils": "^4.0.0",
"jotai": "^2.9.3",
"jotai": "^2.10.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-hot-toast": "^2.4.1",
"replace-special-characters": "^1.2.7",
"use-local-storage-state": "^19.4.0",
"use-local-storage-state": "^19.4.1",
"uuid": "^10.0.0"
},
"devDependencies": {
"@types/react": "^18.3.5",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.0",
"@types/react-toggle": "^4.0.5",
"@types/uuid": "^10.0.0",
Expand Down
6 changes: 3 additions & 3 deletions h5p-bildetema-words-grid-view/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
},
"dependencies": {
"common": "*",
"swiper": "^9.3.2",
"swiper": "^11.1.14",
"use-h5p": "^2.0.0",
"react-router-dom": "^6.26.2"
},
"devDependencies": {
"@testing-library/react": "^16.0.1",
"@types/jquery": "^3.5.30",
"@types/react": "^18.3.5",
"@types/jquery": "^3.5.31",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.0",
"eslint-config-custom": "*",
"storybook-custom": "*",
Expand Down
2 changes: 1 addition & 1 deletion h5p-bildetema-words-grid-view/src/components/Word/Word.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable jsx-a11y/no-redundant-roles */
import { Word as WordType } from "common/types/types";
import { FC } from "react";
import { Navigation, Pagination } from "swiper";
import { Navigation, Pagination } from "swiper/modules";
import "swiper/css";
import "swiper/css/navigation";
import "swiper/css/pagination";
Expand Down
2 changes: 1 addition & 1 deletion h5p-bildetema-words-grid-view/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-unused-expressions */
import "common/polyfills";
import { registerContentType } from "h5p-utils";
import semantics from "../semantics.json";
Expand All @@ -8,5 +9,4 @@ registerContentType("BildetemaWordsGridView", H5PWrapper);

// Import semantics into value space to ensure that `unplugin-json-dts`
// generates the correct types.
// eslint-disable-next-line no-unused-expressions
semantics;
4 changes: 2 additions & 2 deletions h5p-bildetema-words-topic-image/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
"typecheck": "tsc"
},
"dependencies": {
"@tanstack/react-query": "^5.56.0",
"@tanstack/react-query": "^5.59.8",
"common": "*",
"use-h5p": "^2.0.0"
},
"devDependencies": {
"@testing-library/react": "^16.0.1",
"eslint-config-custom": "*",
"jsdom": "^25.0.0",
"jsdom": "^25.0.1",
"storybook-custom": "*",
"ts-node": "^10.9.2",
"tsconfig-custom": "*",
Expand Down
2 changes: 1 addition & 1 deletion h5p-bildetema-words-topic-image/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-unused-expressions */
import "common/polyfills";
import { registerContentType } from "h5p-utils";
import semantics from "../semantics.json";
Expand All @@ -8,5 +9,4 @@ registerContentType("BildetemaTopicImageView", H5PWrapper);

// Import semantics into value space to ensure that `unplugin-json-dts`
// generates the correct types.
// eslint-disable-next-line no-unused-expressions
semantics;
14 changes: 7 additions & 7 deletions h5p-bildetema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,26 @@
"typecheck": "tsc"
},
"dependencies": {
"@headlessui/react": "^2.1.8",
"@tanstack/react-query": "^5.56.0",
"@headlessui/react": "^2.1.9",
"@tanstack/react-query": "^5.59.8",
"common": "*",
"fastest-levenshtein": "^1.0.16",
"react-detect-click-outside": "^1.1.7",
"react-router-dom": "^6.26.2",
"react-to-print": "^2.15.1",
"react-to-print": "^3.0.1",
"react-toggle": "^4.1.3",
"react-virtuoso": "^4.10.4",
"superjson": "^2.2.1",
"swiper": "^9.3.2",
"swiper": "^11.1.14",
"use-debounce": "^10.0.3",
"use-h5p": "^2.0.0",
"use-react-router-breadcrumbs": "^4.0.1"
},
"devDependencies": {
"@testing-library/react": "^16.0.1",
"@types/jquery": "^3.5.30",
"@types/node": "^22.5.4",
"esbuild": "^0.23.1",
"@types/jquery": "^3.5.31",
"@types/node": "^22.7.5",
"esbuild": "^0.24.0",
"eslint-config-custom": "*",
"storybook-custom": "*",
"ts-node": "^10.9.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ const CollectionElement = ({
});
} catch (error) {
/* TODO: Show error message to user in for example a toast */
console.error(error);
}
};

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useMemo, useState } from "react";
import { Navigation, Pagination } from "swiper";
import { Navigation, Pagination } from "swiper/modules";
import "swiper/css";
import "swiper/css/navigation";
import "swiper/css/pagination";
Expand Down
2 changes: 1 addition & 1 deletion h5p-bildetema/src/components/PrintButton/PrintButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const PrintButton: FC<PrintProps> = ({
const { printImgLabel } = useL10ns("printImgLabel");

const handlePrint = useReactToPrint({
content: () => printRef.current,
contentRef: printRef,
pageStyle: "",
});

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Navigation, Pagination } from "swiper";
import { Navigation, Pagination } from "swiper/modules";
import "swiper/css";
import "swiper/css/navigation";
import "swiper/css/pagination";
Expand Down
1 change: 1 addition & 0 deletions h5p-bildetema/src/components/ShareButton/ShareButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const ShareButton = (): JSX.Element => {
setTimeout(() => setIsCopied(false), 3000);
} catch (error) {
/* TODO: Show error message to user in for example a toast */
console.error(error);
}
};

Expand Down
2 changes: 1 addition & 1 deletion h5p-bildetema/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-unused-expressions */
import "common/polyfills";
import { registerContentType } from "h5p-utils";
import semantics from "../semantics.json";
Expand All @@ -8,5 +9,4 @@ registerContentType("Bildetema", H5PWrapper);

// Import semantics into value space to ensure that `unplugin-json-dts`
// generates the correct types.
// eslint-disable-next-line no-unused-expressions
semantics;
4 changes: 2 additions & 2 deletions h5p-editor-bildetema-words-topic-image/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
"build-storybook": "storybook build"
},
"dependencies": {
"@tanstack/react-query": "^5.56.0",
"@tanstack/react-query": "^5.59.8",
"common": "*"
},
"devDependencies": {
"@types/jquery": "^3.5.30",
"@types/jquery": "^3.5.31",
"eslint-config-custom": "*",
"storybook-custom": "*",
"ts-node": "^10.9.2",
Expand Down
20 changes: 10 additions & 10 deletions internal-utilities/eslint-config-custom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
"main": "index.json",
"type": "module",
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^6.7.2",
"@typescript-eslint/parser": "^6.7.2",
"eslint": "^8.50.0",
"@typescript-eslint/eslint-plugin": "^8.8.1",
"@typescript-eslint/parser": "^8.8.1",
"eslint": "^9.12.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^9.0.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-storybook": "^0.6.14"
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jsx-a11y": "^6.10.0",
"eslint-plugin-react": "^7.37.1",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-storybook": "^0.9.0"
}
}
8 changes: 4 additions & 4 deletions internal-utilities/storybook-custom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"type": "module",
"devDependencies": {
"@mdx-js/react": "^3.0.1",
"@storybook/addon-essentials": "^8.3.0",
"@storybook/addon-links": "^8.3.0",
"@storybook/react": "^8.3.0",
"@storybook/addon-essentials": "^8.3.5",
"@storybook/addon-links": "^8.3.5",
"@storybook/react": "^8.3.5",
"@storybook/react-vite": "^8.3.5",
"storybook": "^8.3.0",
"storybook": "^8.3.5",
"react": "^18.3.1",
"react-dom": "^18.3.1"
}
Expand Down
2 changes: 1 addition & 1 deletion internal-utilities/tsconfig-custom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"/**/*"
],
"devDependencies": {
"typescript": "^5.6.2"
"typescript": "^5.6.3"
}
}
Loading

0 comments on commit 1656dc8

Please sign in to comment.