Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docusaurus to 2.4.1 #937

Merged
merged 6 commits into from Jul 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
26 changes: 13 additions & 13 deletions package.json
Expand Up @@ -44,27 +44,27 @@
},
"dependencies": {
"@algolia/client-search": "^4.14.1",
"@docusaurus/core": "2.2.0",
"@docusaurus/plugin-client-redirects": "2.2.0",
"@docusaurus/preset-classic": "2.2.0",
"@docusaurus/core": "2.4.1",
"@docusaurus/plugin-client-redirects": "2.4.1",
"@docusaurus/preset-classic": "2.4.1",
"@iota-wiki/plugin-tutorial": "workspace:^",
"@mdx-js/react": "^1.6.21",
"@popperjs/core": "^2.11.5",
"@saucelabs/theme-github-codeblock": "^0.2.3",
"@svgr/webpack": "^5.5.0",
"clsx": "^1.2.1",
"docusaurus-plugin-openapi-docs": "^1.4.7",
"docusaurus-theme-openapi-docs": "^1.4.7",
"docusaurus-plugin-openapi-docs": "^v2.0.0-beta.3",
"docusaurus-theme-openapi-docs": "^v2.0.0-beta.3",
"file-loader": "^6.2.0",
"flickity": "2.3.0",
"flickity-fade": "^2.0.0",
"globby": "^13.1.4",
"hast-util-is-element": "1.1.0",
"plugin-image-zoom": "flexanalytics/plugin-image-zoom",
"raw-loader": "^4.0.2",
"react": "17.0.2",
"react": "18.0.0",
"react-collapsible": "^2.8.4",
"react-dom": "17.0.2",
"react-dom": "18.0.0",
"react-flickity-component": "^3.6.3",
"react-image-gallery": "^1.2.7",
"react-player": "^2.11.2",
Expand All @@ -80,8 +80,8 @@
"webpack": "^5.81.0"
},
"resolutions": {
"@types/react": "17.0.2",
"@types/react-dom": "17.0.2"
"@types/react": "18.0.0",
"@types/react-dom": "18.0.0"
},
"browserslist": {
"production": [
Expand All @@ -96,12 +96,12 @@
]
},
"devDependencies": {
"@docusaurus/module-type-aliases": "2.2.0",
"@docusaurus/plugin-google-gtag": "2.2.0",
"@docusaurus/module-type-aliases": "2.4.1",
"@docusaurus/plugin-google-gtag": "2.4.1",
"@iota-wiki/cli": "workspace:^",
"@tsconfig/docusaurus": "^1.0.6",
"@types/react": "17.0.2",
"@types/react-dom": "17.0.2",
"@types/react": "18.0.0",
"@types/react-dom": "18.0.0",
"@types/webpack-env": "^1.16.3",
"@typescript-eslint/eslint-plugin": "^5.9.1",
"@typescript-eslint/parser": "^5.9.1",
Expand Down
2 changes: 1 addition & 1 deletion plugins/tutorial/package.json
Expand Up @@ -10,7 +10,7 @@
},
"packageManager": "yarn@3.2.2",
"devDependencies": {
"@docusaurus/types": "2.2.0",
"@docusaurus/types": "2.4.1",
"typescript": "^4.6.3"
},
"files": [
Expand Down
3 changes: 0 additions & 3 deletions src/iota/css/custom.css
Expand Up @@ -184,9 +184,6 @@ html {

.markdown {
margin: 2rem 0rem;

/*TODO: Remove after banner fix*/
max-width: 862px;
}

.menu {
Expand Down
3 changes: 0 additions & 3 deletions src/next/css/custom.css
Expand Up @@ -184,9 +184,6 @@ html {

.markdown {
margin: 2rem 0rem;

/*TODO: Remove after banner fix*/
max-width: 862px;
}

.menu {
Expand Down
3 changes: 0 additions & 3 deletions src/shimmer/css/custom.css
Expand Up @@ -184,9 +184,6 @@ html {

.markdown {
margin: 2rem 0rem;

/*TODO: Remove after banner fix*/
max-width: 862px;
}

.menu {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/socials.ts
Expand Up @@ -25,7 +25,7 @@ const map: Array<{
];

// Returns an object with icon and name for given url
export default function get_socials_data(url: string): typeof map[number] {
export default function get_socials_data(url: string): (typeof map)[number] {
for (let i = 0; i < map.length; i++) {
if (url.toLowerCase().includes(map[i].name.toLowerCase())) {
return map[i];
Expand Down
2 changes: 1 addition & 1 deletion src/utils/storageUtils.ts
Expand Up @@ -7,7 +7,7 @@

const StorageTypes = ['localStorage', 'sessionStorage', 'none'] as const;

export type StorageType = typeof StorageTypes[number];
export type StorageType = (typeof StorageTypes)[number];

const DefaultStorageType: StorageType = 'localStorage';

Expand Down
8 changes: 4 additions & 4 deletions theme/package.json
Expand Up @@ -12,17 +12,17 @@
"test": "jest"
},
"dependencies": {
"@docusaurus/theme-classic": "2.2.0",
"@docusaurus/theme-classic": "2.4.1",
"@metamask/providers": "^10.2.1",
"clsx": "^1.2.1"
},
"devDependencies": {
"@docusaurus/types": "2.2.0",
"@types/react": "17.0.2",
"@docusaurus/types": "2.4.1",
"@types/react": "18.0.0",
"copyfiles": "^2.4.1",
"nodemon": "^2.0.16",
"prettier": "^2.4.1",
"react": "17.0.2",
"react": "18.0.0",
"typescript": "^4.9"
},
"peerDependencies": {
Expand Down