From d635c49b587934b4675ec219c0044d1b20ec1d4e Mon Sep 17 00:00:00 2001 From: sebastien Date: Tue, 24 Dec 2024 14:30:44 +0100 Subject: [PATCH] upgrade IdealImage fork, remove defaultProps/propTypes --- packages/docusaurus-plugin-ideal-image/package.json | 2 +- .../src/theme/IdealImage/index.tsx | 4 ---- yarn.lock | 8 ++++---- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/packages/docusaurus-plugin-ideal-image/package.json b/packages/docusaurus-plugin-ideal-image/package.json index c5ead92cad80..bdb15d7cb8db 100644 --- a/packages/docusaurus-plugin-ideal-image/package.json +++ b/packages/docusaurus-plugin-ideal-image/package.json @@ -26,7 +26,7 @@ "@docusaurus/theme-translations": "3.6.3", "@docusaurus/types": "3.6.3", "@docusaurus/utils-validation": "3.6.3", - "@slorber/react-ideal-image": "^0.0.12", + "@slorber/react-ideal-image": "^0.0.14", "react-waypoint": "^10.3.0", "sharp": "^0.32.3", "tslib": "^2.6.0", diff --git a/packages/docusaurus-plugin-ideal-image/src/theme/IdealImage/index.tsx b/packages/docusaurus-plugin-ideal-image/src/theme/IdealImage/index.tsx index ab14a642cec2..a983927ec4a3 100644 --- a/packages/docusaurus-plugin-ideal-image/src/theme/IdealImage/index.tsx +++ b/packages/docusaurus-plugin-ideal-image/src/theme/IdealImage/index.tsx @@ -93,10 +93,6 @@ export default function IdealImage(props: Props): ReactNode { return ( = 19 not applying defaultProps - icons={ReactIdealImage.defaultProps.icons} - // @ts-expect-error: quick fix for React >= 19 not applying defaultProps - theme={ReactIdealImage.defaultProps.theme} {...propsRest} height={img.src.height ?? 100} width={img.src.width ?? 100} diff --git a/yarn.lock b/yarn.lock index 8ab89276da18..24a7352f64a2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3352,10 +3352,10 @@ dependencies: "@sinonjs/commons" "^3.0.0" -"@slorber/react-ideal-image@^0.0.12": - version "0.0.12" - resolved "https://registry.yarnpkg.com/@slorber/react-ideal-image/-/react-ideal-image-0.0.12.tgz#5f867f9e10f2d82456568e8fd5bfb7673089c29c" - integrity sha512-u8KiDTEkMA7/KAeA5ywg/P7YG4zuKhWtswfVZDH8R8HXgQsFcHIYU2WaQnGuK/Du7Wdj90I+SdFmajSGFRvoKA== +"@slorber/react-ideal-image@^0.0.14": + version "0.0.14" + resolved "https://registry.yarnpkg.com/@slorber/react-ideal-image/-/react-ideal-image-0.0.14.tgz#35b0756c6f06ec60c4a2b5cae9dcf346500e1e8a" + integrity sha512-ULJ1VtNg+B5puJp4ZQzEnDqYyDT9erbABoQygmAovg35ltOymLMH8jXPuxJQBVskcmaG29bTZ+++hE/PAXRgxA== "@slorber/remark-comment@^1.0.0": version "1.0.0"