@wix/video 1.89.0 → 1.91.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.
- package/dist/statics/janet/iframe.html +1 -1
- package/dist/statics/janet/{main.f714ede5.iframe.bundle.js → main.2c19ad7d.iframe.bundle.js} +8 -6
- package/dist/statics/janet/main.2c19ad7d.iframe.bundle.js.map +1 -0
- package/dist/statics/janet/project.json +1 -1
- package/dist/statics/manifest.json +2 -2
- package/dist/statics/manifest.min.json +2 -2
- package/dist/statics/video.umd.js +8 -6
- package/dist/statics/video.umd.js.map +1 -1
- package/dist/statics/video.umd.min.js +1 -1
- package/dist/statics/video.umd.min.js.map +1 -1
- package/package.json +4 -4
- package/dist/statics/janet/main.f714ede5.iframe.bundle.js.map +0 -1
|
@@ -361,4 +361,4 @@
|
|
|
361
361
|
|
|
362
362
|
|
|
363
363
|
|
|
364
|
-
window['STORIES'] = [{"titlePrefix":"","directory":"./src","files":"**/*.stories.@(js|jsx|ts|tsx)","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.(js|jsx|ts|tsx))$"}];</script><script src="main.
|
|
364
|
+
window['STORIES'] = [{"titlePrefix":"","directory":"./src","files":"**/*.stories.@(js|jsx|ts|tsx)","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.(js|jsx|ts|tsx))$"}];</script><script src="main.2c19ad7d.iframe.bundle.js"></script></body></html>
|
package/dist/statics/janet/{main.f714ede5.iframe.bundle.js → main.2c19ad7d.iframe.bundle.js}
RENAMED
|
@@ -18260,7 +18260,7 @@ const getCropDataWithAlign = (targetAspectRatio, originalAspectRatio, originalHe
|
|
|
18260
18260
|
}
|
|
18261
18261
|
};
|
|
18262
18262
|
const WIDTHS = (/* unused pure expression or super */ null && ([1920, 1536, 1366, 1280, 980]));
|
|
18263
|
-
const getSources = (widthProportion, originalWidth, originalHeight, targetHeight, targetWidth, uri, quality, name, alignType, hasAnimation, upscaleMethod, focalPoint, crop, encoding, siteMargin, displayMode, allowFullGIFTransformation) => {
|
|
18263
|
+
const getSources = (widthProportion, originalWidth, originalHeight, targetHeight, targetWidth, uri, quality, name, alignType, hasAnimation, upscaleMethod, focalPoint, crop, encoding, siteMargin, displayMode, allowFullGIFTransformation, baseHostURL) => {
|
|
18264
18264
|
const hasOriginalSizeDisplayMode = displayMode === 'original_size';
|
|
18265
18265
|
const originalAspectRatio = originalWidth / originalHeight;
|
|
18266
18266
|
return WIDTHS.map((width, index) => {
|
|
@@ -18295,6 +18295,7 @@ const getSources = (widthProportion, originalWidth, originalHeight, targetHeight
|
|
|
18295
18295
|
hasAnimation,
|
|
18296
18296
|
encoding,
|
|
18297
18297
|
allowFullGIFTransformation,
|
|
18298
|
+
baseHostURL,
|
|
18298
18299
|
}, currentBpWidth, targetHeight);
|
|
18299
18300
|
if (hasOriginalSizeDisplayMode && css) {
|
|
18300
18301
|
css.img.objectFit = 'cover';
|
|
@@ -18311,7 +18312,7 @@ const getSources = (widthProportion, originalWidth, originalHeight, targetHeight
|
|
|
18311
18312
|
});
|
|
18312
18313
|
};
|
|
18313
18314
|
const getResponsiveImageProps = (imageProps, targetWidth, targetHeight) => {
|
|
18314
|
-
const { displayMode, uri, width, height, name, crop, focalPoint, alignType, quality, upscaleMethod, hasAnimation, allowAnimatedTransform, encoding, siteMargin, widthProportion, allowFullGIFTransformation, } = imageProps;
|
|
18315
|
+
const { displayMode, uri, width, height, name, crop, focalPoint, alignType, quality, upscaleMethod, hasAnimation, allowAnimatedTransform, encoding, siteMargin, widthProportion, allowFullGIFTransformation, baseHostURL, } = imageProps;
|
|
18315
18316
|
if (!widthProportion) {
|
|
18316
18317
|
const { srcset, css, uri: src, } = getData(displayMode, { id: uri, width, height, name, crop, focalPoint }, {
|
|
18317
18318
|
width: targetWidth,
|
|
@@ -18328,8 +18329,9 @@ const getResponsiveImageProps = (imageProps, targetWidth, targetHeight) => {
|
|
|
18328
18329
|
encoding,
|
|
18329
18330
|
allowFullGIFTransformation,
|
|
18330
18331
|
});
|
|
18331
|
-
const
|
|
18332
|
-
const
|
|
18332
|
+
const baseUrl = baseHostURL || STATIC_MEDIA_URL;
|
|
18333
|
+
const srcsetWithPrefix = srcset?.dpr?.map((s) => /^[a-z]+:/.test(s) ? s : `${baseUrl}${s}`);
|
|
18334
|
+
const fallbackSrc = `${baseUrl}${src}`;
|
|
18333
18335
|
const srcsetString = srcsetWithPrefix?.join(', ') || '';
|
|
18334
18336
|
return {
|
|
18335
18337
|
fallbackSrc,
|
|
@@ -18338,7 +18340,7 @@ const getResponsiveImageProps = (imageProps, targetWidth, targetHeight) => {
|
|
|
18338
18340
|
};
|
|
18339
18341
|
}
|
|
18340
18342
|
else {
|
|
18341
|
-
const sources = getSources(widthProportion, width, height, targetHeight, targetWidth, uri, quality, name, alignType, hasAnimation, upscaleMethod, focalPoint, crop, encoding, siteMargin, displayMode, allowFullGIFTransformation)
|
|
18343
|
+
const sources = getSources(widthProportion, width, height, targetHeight, targetWidth, uri, quality, name, alignType, hasAnimation, upscaleMethod, focalPoint, crop, encoding, siteMargin, displayMode, allowFullGIFTransformation, baseHostURL)
|
|
18342
18344
|
.filter(Boolean)
|
|
18343
18345
|
.reverse();
|
|
18344
18346
|
return {
|
|
@@ -73297,4 +73299,4 @@ module.exports = /*#__PURE__*/JSON.parse('["a","abbr","address","area","article"
|
|
|
73297
73299
|
/******/
|
|
73298
73300
|
/******/ })()
|
|
73299
73301
|
;
|
|
73300
|
-
//# sourceMappingURL=main.
|
|
73302
|
+
//# sourceMappingURL=main.2c19ad7d.iframe.bundle.js.map
|