@wix/entity-advanced-permissions 1.1337.0 → 1.1338.0
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.
|
@@ -62989,7 +62989,7 @@ populateGlobalFeatureSupport();
|
|
|
62989
62989
|
;// CONCATENATED MODULE: ../../../node_modules/@wix/image-kit/dist/esm/helpers/responsiveImageUtils.js
|
|
62990
62990
|
|
|
62991
62991
|
const getResponsiveImageProps = (imageProps, targetWidth, targetHeight) => {
|
|
62992
|
-
const { displayMode, uri, width, height, name, crop, focalPoint, alignType, quality, upscaleMethod, hasAnimation, allowAnimatedTransform, } = imageProps;
|
|
62992
|
+
const { displayMode, uri, width, height, name, crop, focalPoint, alignType, quality, upscaleMethod, hasAnimation, allowAnimatedTransform, encoding, } = imageProps;
|
|
62993
62993
|
const { srcset, css } = getData(displayMode, { id: uri, width, height, name, crop, focalPoint }, {
|
|
62994
62994
|
width: targetWidth,
|
|
62995
62995
|
height: targetHeight,
|
|
@@ -63002,11 +63002,13 @@ const getResponsiveImageProps = (imageProps, targetWidth, targetHeight) => {
|
|
|
63002
63002
|
hasAnimation,
|
|
63003
63003
|
allowAnimatedTransform,
|
|
63004
63004
|
useSrcset: true,
|
|
63005
|
+
encoding,
|
|
63005
63006
|
});
|
|
63006
|
-
const
|
|
63007
|
-
|
|
63008
|
-
|
|
63007
|
+
const srcsetWithPrefix = srcset?.dpr?.map((s) => /^[a-z]+:/.test(s) ? s : `${STATIC_MEDIA_URL}${s}`);
|
|
63008
|
+
const fallbackSrc = srcsetWithPrefix?.[0];
|
|
63009
|
+
const srcsetString = srcsetWithPrefix?.join(', ');
|
|
63009
63010
|
return {
|
|
63011
|
+
fallbackSrc,
|
|
63010
63012
|
srcset: srcsetString,
|
|
63011
63013
|
css,
|
|
63012
63014
|
};
|