diy-template-components 0.2.39 → 0.2.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js CHANGED
@@ -1538,13 +1538,11 @@ const NextImageRenderer = ({
1538
1538
  } = React.useContext(PageContext);
1539
1539
  const imageLoader = ({
1540
1540
  src,
1541
- quality
1541
+ quality,
1542
+ width
1542
1543
  }) => {
1543
- return `${process.env.NEXT_PUBLIC_ENV_ASSET_PREFIX}/_next/image?url=${src}&q=${quality || 75}`;
1544
+ return `${process.env.NEXT_PUBLIC_ENV_ASSET_PREFIX}/_next/image?url=${src}&q=${quality || 75}&w=${width}`;
1544
1545
  };
1545
-
1546
- // const imageUrl = `${process.env.NEXT_PUBLIC_ENV_ASSET_PREFIX}/_next/image?url=${src}&q=${quality || 75}`;
1547
-
1548
1546
  let {
1549
1547
  refSetter,
1550
1548
  className