@wix/video 1.95.0 → 1.97.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.2c19ad7d.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.18a75df1.iframe.bundle.js"></script></body></html>
@@ -18407,6 +18407,8 @@ const getScreenHeight = (heightOverride) => heightOverride ||
18407
18407
  document.documentElement.clientHeight ||
18408
18408
  window.innerHeight ||
18409
18409
  0;
18410
+ const STOCK_IMAGE_PREFIXES = ['11062b_', 'nsplsh_'];
18411
+ const isStockImage = (uri) => STOCK_IMAGE_PREFIXES.some((prefix) => uri.startsWith(prefix));
18410
18412
  const getImageComputedProperties = (extendedImageInfo, envConsts, htmlTag) => {
18411
18413
  // todo: CLNT-5323 , wixapp sildergallery proxy is generating image data without uri
18412
18414
  if (!extendedImageInfo.targetWidth ||
@@ -18434,7 +18436,13 @@ const getImageComputedProperties = (extendedImageInfo, envConsts, htmlTag) => {
18434
18436
  alignment: extendedImageInfo.alignType || alignTypes.CENTER,
18435
18437
  };
18436
18438
  const imageComputedProperties = api_getData(fittingType, src, target, imageOptions);
18437
- imageComputedProperties.uri = getMediaUrlByContext(imageComputedProperties.uri, envConsts.staticMediaUrl, envConsts.mediaRootUrl);
18439
+ const useExternalUrl = !!envConsts.externalBaseUrl &&
18440
+ envConsts.hasUserDomainMedia === true &&
18441
+ !isStockImage(imageData.uri);
18442
+ const staticMediaUrl = useExternalUrl
18443
+ ? `${envConsts.externalBaseUrl}/_media`
18444
+ : envConsts.staticMediaUrl;
18445
+ imageComputedProperties.uri = getMediaUrlByContext(imageComputedProperties.uri, staticMediaUrl, envConsts.mediaRootUrl);
18438
18446
  return imageComputedProperties;
18439
18447
  };
18440
18448
  const getMediaUrlByContext = (imageUri, staticMediaUrl, mediaRootUrl) => {
@@ -73299,4 +73307,4 @@ module.exports = /*#__PURE__*/JSON.parse('["a","abbr","address","area","article"
73299
73307
  /******/
73300
73308
  /******/ })()
73301
73309
  ;
73302
- //# sourceMappingURL=main.2c19ad7d.iframe.bundle.js.map
73310
+ //# sourceMappingURL=main.18a75df1.iframe.bundle.js.map