diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 43d466925..f70e87a81 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -465,8 +465,8 @@ importers: specifier: ^2.0.1 version: 2.0.1(react-dom@19.0.0(react@19.0.0))(react-hook-form@7.54.2(react@19.0.0))(react@19.0.0) '@slorber/react-ideal-image': - specifier: ^0.0.12 - version: 0.0.12(prop-types@15.8.1)(react-waypoint@10.3.0(react@19.0.0))(react@19.0.0) + specifier: ^0.0.14 + version: 0.0.14(react-waypoint@10.3.0(react@19.0.0))(react@19.0.0) clsx: specifier: ^2.1.1 version: 2.1.1 @@ -3051,6 +3051,13 @@ packages: react: '>=0.14.x' react-waypoint: '>=9.0.2' + '@slorber/react-ideal-image@0.0.14': + resolution: {integrity: sha512-ULJ1VtNg+B5puJp4ZQzEnDqYyDT9erbABoQygmAovg35ltOymLMH8jXPuxJQBVskcmaG29bTZ+++hE/PAXRgxA==} + engines: {node: '>= 8.9.0', npm: '> 3'} + peerDependencies: + react: '>=0.14.x' + react-waypoint: '>=9.0.2' + '@slorber/remark-comment@1.0.0': resolution: {integrity: sha512-RCE24n7jsOj1M0UPvIQCHTe7fI0sFL4S2nwKVWwHyVr/wI/H8GosgsJGyhnsZoGFnD/P2hLf1mSbrrgSLN93NA==} @@ -13110,6 +13117,11 @@ snapshots: react: 19.0.0 react-waypoint: 10.3.0(react@19.0.0) + '@slorber/react-ideal-image@0.0.14(react-waypoint@10.3.0(react@19.0.0))(react@19.0.0)': + dependencies: + react: 19.0.0 + react-waypoint: 10.3.0(react@19.0.0) + '@slorber/remark-comment@1.0.0': dependencies: micromark-factory-space: 1.1.0 diff --git a/website/package.json b/website/package.json index d816332e9..876745714 100644 --- a/website/package.json +++ b/website/package.json @@ -6,7 +6,7 @@ "@docusaurus/preset-classic": "^3.6.3", "@formspree/react": "^2.5.1", "@hookform/error-message": "^2.0.1", - "@slorber/react-ideal-image": "^0.0.12", + "@slorber/react-ideal-image": "^0.0.14", "clsx": "^2.1.1", "lodash": "^4.17.21", "react": "^19.0.0", diff --git a/website/src/theme/IdealImage/index.tsx b/website/src/theme/IdealImage/index.tsx index 4119cd89a..d8aeda26a 100644 --- a/website/src/theme/IdealImage/index.tsx +++ b/website/src/theme/IdealImage/index.tsx @@ -96,10 +96,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} getMessage={getMessage} height={img.src.height ?? 100}