@wix/video 1.100.0 → 1.102.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.3a729171.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.149c6d94.iframe.bundle.js"></script></body></html>
@@ -17753,7 +17753,8 @@ function getImageURI(transformsObj) {
17753
17753
  function getURI(fittingType, src, target, options = {}, transformObj) {
17754
17754
  // check if image transformation is applicable (e.g. .gif, .wix_mp)
17755
17755
  if (isImageTransformApplicable(src.id, options?.hasAnimation, options?.allowAnimatedTransform, options?.allowFullGIFTransformation)) {
17756
- if (imageServiceUtils_isWEBP(src.id) || isAVIF(src.id)) {
17756
+ if ((imageServiceUtils_isWEBP(src.id) || isAVIF(src.id)) &&
17757
+ !options.allowWebpAvifTransforms) {
17757
17758
  // exclude alignment, focalPoint and crop from webp and avif transformation in order not to break webp or avif images before transformation was enabled
17758
17759
  const { alignment, ...transformTarget } = target;
17759
17760
  src.focalPoint = { x: undefined, y: undefined };
@@ -18432,6 +18433,7 @@ const getImageComputedProperties = (extendedImageInfo, envConsts, htmlTag) => {
18432
18433
  'filters',
18433
18434
  'encoding',
18434
18435
  'allowFullGIFTransformation',
18436
+ 'allowWebpAvifTransforms',
18435
18437
  ]), extendedImageInfo.quality || imageData.quality, {
18436
18438
  hasAnimation: extendedImageInfo?.hasAnimation || imageData?.hasAnimation,
18437
18439
  });
@@ -18629,6 +18631,7 @@ function patch(id, measures, domNodes, imageInfo, services, envConsts, loadImage
18629
18631
  }
18630
18632
  const targetScale = imageInfo.targetScale || 1;
18631
18633
  const allowFullGIFTransformation = services.isExperimentOpen?.('specs.thunderbolt.allowFullGIFTransformation');
18634
+ const allowWebpAvifTransforms = services.isExperimentOpen?.('specs.thunderbolt.allowWebpAvifTransforms');
18632
18635
  const extendedImageInfo = {
18633
18636
  ...imageInfo,
18634
18637
  ...(!imageInfo.skipMeasure && {
@@ -18637,6 +18640,7 @@ function patch(id, measures, domNodes, imageInfo, services, envConsts, loadImage
18637
18640
  }),
18638
18641
  displayMode: imageData.displayMode,
18639
18642
  allowFullGIFTransformation,
18643
+ allowWebpAvifTransforms,
18640
18644
  };
18641
18645
  const imageComputedProperties = getImageComputedProperties(extendedImageInfo, envConsts, 'img');
18642
18646
  const computedStyle = imageComputedProperties?.css?.img || {};
@@ -73318,4 +73322,4 @@ module.exports = /*#__PURE__*/JSON.parse('["a","abbr","address","area","article"
73318
73322
  /******/
73319
73323
  /******/ })()
73320
73324
  ;
73321
- //# sourceMappingURL=main.3a729171.iframe.bundle.js.map
73325
+ //# sourceMappingURL=main.149c6d94.iframe.bundle.js.map