Skip to content

Commit

Permalink
Update docusaurus to 2.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Electron committed Jul 10, 2023
1 parent 03d8c2a commit 860974a
Show file tree
Hide file tree
Showing 9 changed files with 4,856 additions and 3,442 deletions.
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

0 comments on commit 860974a

Please sign in to comment.