mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-23 19:48:54 +02:00
chore: upgrade minor dependencies (#10610)
This commit is contained in:
parent
4892f3ac4a
commit
28f6a4907a
13 changed files with 3041 additions and 2843 deletions
|
@ -6,12 +6,12 @@
|
|||
"private": true,
|
||||
"scripts": {
|
||||
"screenshot": "playwright test",
|
||||
"upload": "npx @argos-ci/cli upload ./screenshots",
|
||||
"upload": "npx @argos-ci/cli upload ./screenshots/chromium",
|
||||
"report": "playwright show-report"
|
||||
},
|
||||
"dependencies": {
|
||||
"@argos-ci/playwright": "^1.9.3",
|
||||
"@playwright/test": "^1.41.2",
|
||||
"cheerio": "^1.0.0-rc.12"
|
||||
"@argos-ci/playwright": "^2.0.0",
|
||||
"@playwright/test": "^1.48.1",
|
||||
"cheerio": "1.0.0-rc.12"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -106,7 +106,7 @@
|
|||
"jest-serializer-react-helmet-async": "^1.0.21",
|
||||
"lerna": "^6.6.2",
|
||||
"lerna-changelog": "^2.2.0",
|
||||
"lint-staged": "^13.2.3",
|
||||
"lint-staged": "~13.2.3",
|
||||
"lockfile-lint": "^4.14.0",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"prettier": "^2.8.8",
|
||||
|
|
|
@ -28,16 +28,16 @@
|
|||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.23.3",
|
||||
"@babel/generator": "^7.23.3",
|
||||
"@babel/traverse": "^7.22.8",
|
||||
"@babel/core": "^7.25.9",
|
||||
"@babel/generator": "^7.25.9",
|
||||
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
||||
"@babel/plugin-transform-runtime": "^7.22.9",
|
||||
"@babel/preset-env": "^7.22.9",
|
||||
"@babel/preset-react": "^7.22.5",
|
||||
"@babel/preset-typescript": "^7.22.5",
|
||||
"@babel/runtime": "^7.22.6",
|
||||
"@babel/runtime-corejs3": "^7.22.6",
|
||||
"@babel/plugin-transform-runtime": "^7.25.9",
|
||||
"@babel/preset-env": "^7.25.9",
|
||||
"@babel/preset-react": "^7.25.9",
|
||||
"@babel/preset-typescript": "^7.25.9",
|
||||
"@babel/runtime": "^7.25.9",
|
||||
"@babel/runtime-corejs3": "^7.25.9",
|
||||
"@babel/traverse": "^7.25.9",
|
||||
"@docusaurus/logger": "3.5.2",
|
||||
"@docusaurus/utils": "3.5.2",
|
||||
"babel-plugin-dynamic-import-node": "^2.3.3",
|
||||
|
|
|
@ -18,25 +18,25 @@
|
|||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.23.3",
|
||||
"@babel/core": "^7.25.9",
|
||||
"@docusaurus/babel": "3.5.2",
|
||||
"@docusaurus/cssnano-preset": "3.5.2",
|
||||
"@docusaurus/logger": "3.5.2",
|
||||
"@docusaurus/types": "3.5.2",
|
||||
"@docusaurus/utils": "3.5.2",
|
||||
"autoprefixer": "^10.4.14",
|
||||
"babel-loader": "^9.1.3",
|
||||
"babel-loader": "^9.2.1",
|
||||
"clean-css": "^5.3.2",
|
||||
"copy-webpack-plugin": "^11.0.0",
|
||||
"css-loader": "^6.8.1",
|
||||
"css-minimizer-webpack-plugin": "^5.0.1",
|
||||
"cssnano": "^6.1.2",
|
||||
"postcss": "^8.4.26",
|
||||
"postcss-loader": "^7.3.3",
|
||||
"file-loader": "^6.2.0",
|
||||
"html-minifier-terser": "^7.2.0",
|
||||
"mini-css-extract-plugin": "^2.9.1",
|
||||
"null-loader": "^4.0.1",
|
||||
"postcss": "^8.4.26",
|
||||
"postcss-loader": "^7.3.3",
|
||||
"react-dev-utils": "^12.0.1",
|
||||
"terser-webpack-plugin": "^5.3.9",
|
||||
"tslib": "^2.6.0",
|
||||
|
|
|
@ -28,7 +28,9 @@ declare module 'unist' {
|
|||
}
|
||||
|
||||
declare module 'mdast' {
|
||||
interface HeadingData {
|
||||
interface Data {
|
||||
id?: string;
|
||||
hName?: string;
|
||||
hProperties?: Record<string, unknown>;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,11 +6,17 @@
|
|||
*/
|
||||
|
||||
import React from 'react';
|
||||
import {JsonView} from 'react-json-view-lite';
|
||||
import {
|
||||
JsonView,
|
||||
defaultStyles,
|
||||
type Props as JsonViewProps,
|
||||
} from 'react-json-view-lite';
|
||||
import type {Props} from '@theme/DebugJsonView';
|
||||
import styles from './styles.module.css';
|
||||
|
||||
const paraisoStyles = {
|
||||
const paraisoStyles: JsonViewProps['style'] = {
|
||||
clickableLabel: defaultStyles.clickableLabel,
|
||||
noQuotesForStringValues: false,
|
||||
container: styles.containerParaiso!,
|
||||
basicChildStyle: styles.basicElementParaiso!,
|
||||
label: styles.labelParaiso!,
|
||||
|
|
|
@ -20,8 +20,8 @@
|
|||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.23.3",
|
||||
"@babel/preset-env": "^7.23.3",
|
||||
"@babel/core": "^7.25.9",
|
||||
"@babel/preset-env": "^7.25.9",
|
||||
"@docusaurus/bundler": "3.5.2",
|
||||
"@docusaurus/core": "3.5.2",
|
||||
"@docusaurus/logger": "3.5.2",
|
||||
|
@ -30,7 +30,7 @@
|
|||
"@docusaurus/types": "3.5.2",
|
||||
"@docusaurus/utils": "3.5.2",
|
||||
"@docusaurus/utils-validation": "3.5.2",
|
||||
"babel-loader": "^9.1.3",
|
||||
"babel-loader": "^9.2.1",
|
||||
"clsx": "^2.0.0",
|
||||
"core-js": "^3.31.1",
|
||||
"tslib": "^2.6.0",
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import {createRoot} from 'react-dom/client';
|
||||
import type {Props} from '@theme/PwaReloadPopup';
|
||||
|
||||
const POPUP_CONTAINER_ID = 'pwa-popup-container';
|
||||
|
@ -23,6 +23,7 @@ const createContainer = () => {
|
|||
export function renderReloadPopup(props: Props): Promise<void> {
|
||||
const container = getContainer() ?? createContainer();
|
||||
return import('@theme/PwaReloadPopup').then(({default: ReloadPopup}) => {
|
||||
ReactDOM.render(<ReloadPopup {...props} />, container);
|
||||
const root = createRoot(container);
|
||||
root.render(<ReloadPopup {...props} />);
|
||||
});
|
||||
}
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
"@docusaurus/core": "3.5.2",
|
||||
"@docusaurus/types": "3.5.2",
|
||||
"@docusaurus/utils-validation": "3.5.2",
|
||||
"@rsdoctor/webpack-plugin": "^0.4.6",
|
||||
"@rsdoctor/rspack-plugin": "^0.4.6",
|
||||
"@rsdoctor/webpack-plugin": "^0.4.6",
|
||||
"tslib": "^2.6.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import React from 'react';
|
||||
|
||||
// Add react-live imports you need here
|
||||
const ReactLiveScope = {
|
||||
const ReactLiveScope: unknown = {
|
||||
React,
|
||||
...React,
|
||||
};
|
||||
|
|
|
@ -130,24 +130,22 @@ export const DEFAULT_CONFIG: Pick<
|
|||
};
|
||||
|
||||
function createPluginSchema(theme: boolean) {
|
||||
return (
|
||||
Joi.alternatives()
|
||||
.try(
|
||||
Joi.function(),
|
||||
Joi.array()
|
||||
.ordered(Joi.function().required(), Joi.object().required())
|
||||
.length(2),
|
||||
Joi.string(),
|
||||
Joi.array()
|
||||
.ordered(Joi.string().required(), Joi.object().required())
|
||||
.length(2),
|
||||
Joi.any().valid(false, null),
|
||||
)
|
||||
// @ts-expect-error: bad lib def, doesn't recognize an array of reports
|
||||
.error((errors) => {
|
||||
errors.forEach((error) => {
|
||||
const validConfigExample = theme
|
||||
? `Example valid theme config:
|
||||
return Joi.alternatives()
|
||||
.try(
|
||||
Joi.function(),
|
||||
Joi.array()
|
||||
.ordered(Joi.function().required(), Joi.object().required())
|
||||
.length(2),
|
||||
Joi.string(),
|
||||
Joi.array()
|
||||
.ordered(Joi.string().required(), Joi.object().required())
|
||||
.length(2),
|
||||
Joi.any().valid(false, null),
|
||||
)
|
||||
.error((errors) => {
|
||||
errors.forEach((error) => {
|
||||
const validConfigExample = theme
|
||||
? `Example valid theme config:
|
||||
{
|
||||
themes: [
|
||||
["@docusaurus/theme-classic",options],
|
||||
|
@ -157,7 +155,7 @@ function createPluginSchema(theme: boolean) {
|
|||
[function myTheme() { },options]
|
||||
],
|
||||
};`
|
||||
: `Example valid plugin config:
|
||||
: `Example valid plugin config:
|
||||
{
|
||||
plugins: [
|
||||
["@docusaurus/plugin-content-docs",options],
|
||||
|
@ -168,17 +166,16 @@ function createPluginSchema(theme: boolean) {
|
|||
],
|
||||
};`;
|
||||
|
||||
error.message = ` => Bad Docusaurus ${
|
||||
theme ? 'theme' : 'plugin'
|
||||
} value ${error.path.reduce((acc, cur) =>
|
||||
typeof cur === 'string' ? `${acc}.${cur}` : `${acc}[${cur}]`,
|
||||
)}.
|
||||
error.message = ` => Bad Docusaurus ${
|
||||
theme ? 'theme' : 'plugin'
|
||||
} value ${error.path.reduce((acc, cur) =>
|
||||
typeof cur === 'string' ? `${acc}.${cur}` : `${acc}[${cur}]`,
|
||||
)}.
|
||||
${validConfigExample}
|
||||
`;
|
||||
});
|
||||
return errors;
|
||||
})
|
||||
);
|
||||
});
|
||||
return errors;
|
||||
});
|
||||
}
|
||||
|
||||
const PluginSchema = createPluginSchema(false);
|
||||
|
|
|
@ -13,10 +13,8 @@ APFS
|
|||
appinstalled
|
||||
Applanga
|
||||
architecting
|
||||
Astro
|
||||
atrule
|
||||
Autoconverted
|
||||
autofix
|
||||
autogen
|
||||
Autogen
|
||||
autogenerating
|
||||
|
@ -28,16 +26,8 @@ Bhatt
|
|||
blockquotes
|
||||
Blockquotes
|
||||
Bokmål
|
||||
browserstack
|
||||
buble
|
||||
Buble
|
||||
Buble's
|
||||
bunx
|
||||
caabernathy
|
||||
cacheable
|
||||
callouts
|
||||
Callstack
|
||||
camelcase
|
||||
Candillon
|
||||
cdabcdab
|
||||
cdpath
|
||||
|
@ -58,8 +48,6 @@ Couriol
|
|||
creativecommons
|
||||
Csapo
|
||||
Csvg
|
||||
customizability
|
||||
Customizability
|
||||
dabit
|
||||
Dabit
|
||||
Daishi
|
||||
|
@ -93,17 +81,13 @@ endiliey
|
|||
Endi's
|
||||
ERRNAMETOOLONG
|
||||
evaluable
|
||||
execa
|
||||
Execa
|
||||
externalwaiting
|
||||
failfast
|
||||
Fargate
|
||||
FBID
|
||||
Fienny
|
||||
flac
|
||||
Flightcontrol
|
||||
Flightcontrol's
|
||||
Formik
|
||||
FOUC
|
||||
froms
|
||||
funboxteam
|
||||
|
@ -113,7 +97,6 @@ Gifs
|
|||
Goss
|
||||
Goyal
|
||||
gtag
|
||||
Gtag
|
||||
hahaha
|
||||
Hamel
|
||||
hasura
|
||||
|
@ -123,27 +106,18 @@ Héctor
|
|||
héllô
|
||||
hideable
|
||||
Hideable
|
||||
hola
|
||||
Hola
|
||||
Hostman
|
||||
hoverable
|
||||
Husain
|
||||
IANAD
|
||||
idempotency
|
||||
Iframes
|
||||
Immer
|
||||
infima
|
||||
Infima
|
||||
Infima's
|
||||
inlines
|
||||
Intelli
|
||||
intellij
|
||||
interactiveness
|
||||
interpolatable
|
||||
Interpolatable
|
||||
Investec
|
||||
javadoc
|
||||
jiti
|
||||
jmarcey
|
||||
jodyheavener
|
||||
joelmarcey
|
||||
|
@ -167,7 +141,6 @@ Lifecycles
|
|||
lightningcss
|
||||
linkify
|
||||
Linkify
|
||||
Localizable
|
||||
lockb
|
||||
lorber
|
||||
Lorber
|
||||
|
@ -208,7 +181,6 @@ mkdocs
|
|||
mkdown
|
||||
moesif
|
||||
Moesif
|
||||
msapplication
|
||||
Nabors
|
||||
Nakagawa
|
||||
nand
|
||||
|
@ -224,7 +196,6 @@ noicon
|
|||
nojekyll
|
||||
noninteractive
|
||||
npmjs
|
||||
nprogress
|
||||
Nuxt
|
||||
ödingers
|
||||
opensearch
|
||||
|
@ -243,7 +214,6 @@ ozaki
|
|||
ozakione
|
||||
pagefind
|
||||
Pagefind
|
||||
pageview
|
||||
palenight
|
||||
Palenight
|
||||
Paletton
|
||||
|
@ -255,11 +225,8 @@ paularmstrong
|
|||
philpl
|
||||
photoshop
|
||||
Photoshop
|
||||
picomatch
|
||||
Pipeable
|
||||
playbtn
|
||||
pluggable
|
||||
Pluggable
|
||||
plushie
|
||||
Plushie
|
||||
plushies
|
||||
|
@ -270,14 +237,10 @@ precached
|
|||
precaching
|
||||
preconfigured
|
||||
prerendered
|
||||
prerendering
|
||||
printfn
|
||||
println
|
||||
prismjs
|
||||
producthunt
|
||||
profilo
|
||||
Profilo
|
||||
Protobuf
|
||||
protobuffet
|
||||
PRPL
|
||||
Pyltsyn
|
||||
|
@ -296,12 +259,7 @@ recma
|
|||
Recma
|
||||
recrawl
|
||||
redirections
|
||||
Redoc
|
||||
redocusaurus
|
||||
redwoodjs
|
||||
refactorings
|
||||
rehype
|
||||
Rehype
|
||||
reloadable
|
||||
Reloadable
|
||||
renderable
|
||||
|
@ -317,7 +275,6 @@ RSDOCTOR
|
|||
rspack
|
||||
Rspack
|
||||
rtcts
|
||||
rtlcss
|
||||
saurus
|
||||
Scaleway
|
||||
sebastien
|
||||
|
@ -331,7 +288,6 @@ setlocal
|
|||
SFNT
|
||||
shiki
|
||||
Shiki
|
||||
shortcodes
|
||||
showinfo
|
||||
Sida
|
||||
Simen
|
||||
|
@ -347,15 +303,11 @@ stackoverflow
|
|||
Stormkit
|
||||
Strikethrough
|
||||
strikethroughs
|
||||
stylelint
|
||||
stylelintrc
|
||||
subdir
|
||||
sublabel
|
||||
sublicensable
|
||||
sublist
|
||||
subpage
|
||||
subroute
|
||||
subroutes
|
||||
subsetting
|
||||
subsubcategory
|
||||
subsubfolder
|
||||
|
@ -366,15 +318,10 @@ Sucipto
|
|||
sunsetting
|
||||
supabase
|
||||
Supabase
|
||||
svgr
|
||||
SVGR
|
||||
swizzlable
|
||||
Tagkey
|
||||
Teik
|
||||
templating
|
||||
Thanos
|
||||
Therox
|
||||
toolset
|
||||
toplevel
|
||||
Transifex
|
||||
transpiles
|
||||
|
@ -386,7 +333,6 @@ triaging
|
|||
Triaging
|
||||
TSES
|
||||
twoslash
|
||||
typecheck
|
||||
typesafe
|
||||
typesense
|
||||
Typesense
|
||||
|
@ -396,17 +342,13 @@ unlisteds
|
|||
Unlisteds
|
||||
unlocalized
|
||||
Unlocalized
|
||||
unnormalized
|
||||
unswizzle
|
||||
untruncated
|
||||
Untruncated
|
||||
upvotes
|
||||
urlset
|
||||
Vannicatte
|
||||
vbnet
|
||||
vetter
|
||||
Vetter
|
||||
vfile
|
||||
Vicenti
|
||||
Vieira
|
||||
Viet
|
||||
|
@ -414,8 +356,6 @@ Vinnik
|
|||
vjeux
|
||||
voir
|
||||
waivable
|
||||
wcag
|
||||
WCAG
|
||||
webfactory
|
||||
webpackbar
|
||||
webstorm
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue