@wix/video 1.89.0 → 1.90.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.
@@ -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.f714ede5.iframe.bundle.js"></script></body></html>
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>
@@ -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 srcsetWithPrefix = srcset?.dpr?.map((s) => /^[a-z]+:/.test(s) ? s : `${STATIC_MEDIA_URL}${s}`);
18332
- const fallbackSrc = `${STATIC_MEDIA_URL}${src}`;
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.f714ede5.iframe.bundle.js.map
73302
+ //# sourceMappingURL=main.2c19ad7d.iframe.bundle.js.map