feat: React 18 + automatic JSX runtime + build --dev (#8961)

This commit is contained in:
Sébastien Lorber 2023-06-08 19:40:15 +02:00 committed by GitHub
parent 76f920359b
commit 187e5aa218
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
69 changed files with 404 additions and 209 deletions

View file

@ -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": {

View file

@ -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';

View file

@ -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';