mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-06 04:42:40 +02:00
feat: React 18 + automatic JSX runtime + build --dev (#8961)
This commit is contained in:
parent
76f920359b
commit
187e5aa218
69 changed files with 404 additions and 209 deletions
|
@ -26,7 +26,7 @@
|
|||
"@docusaurus/theme-translations": "^3.0.0-alpha.0",
|
||||
"@docusaurus/types": "^3.0.0-alpha.0",
|
||||
"@docusaurus/utils-validation": "^3.0.0-alpha.0",
|
||||
"@endiliey/react-ideal-image": "^0.0.11",
|
||||
"@slorber/react-ideal-image": "^0.0.12",
|
||||
"react-waypoint": "^10.3.0",
|
||||
"sharp": "^0.31.3",
|
||||
"tslib": "^2.5.0",
|
||||
|
@ -38,8 +38,8 @@
|
|||
},
|
||||
"peerDependencies": {
|
||||
"jimp": "*",
|
||||
"react": "^16.8.4 || ^17.0.0",
|
||||
"react-dom": "^16.8.4 || ^17.0.0"
|
||||
"react": "^18.0.0",
|
||||
"react-dom": "^18.0.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"jimp": {
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
* Note: the original type definition is WRONG. getIcon & getMessage receive
|
||||
* full state object.
|
||||
*/
|
||||
declare module '@endiliey/react-ideal-image' {
|
||||
declare module '@slorber/react-ideal-image' {
|
||||
import type {ComponentProps, ComponentType, CSSProperties} from 'react';
|
||||
|
||||
export type LoadingState = 'initial' | 'loading' | 'loaded' | 'error';
|
||||
|
|
|
@ -9,7 +9,7 @@ import React from 'react';
|
|||
import ReactIdealImage, {
|
||||
type IconKey,
|
||||
type State,
|
||||
} from '@endiliey/react-ideal-image';
|
||||
} from '@slorber/react-ideal-image';
|
||||
import {translate} from '@docusaurus/Translate';
|
||||
|
||||
import type {Props} from '@theme/IdealImage';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue