@websolutespa/bom-mixer-ui 1.7.1 → 1.7.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @websolutespa/bom-mixer-ui
2
2
 
3
+ ## 1.7.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Fixing: MediaImage aspectRatio
8
+
3
9
  ## 1.7.1
4
10
 
5
11
  ### Patch Changes
package/dist/cjs/index.js CHANGED
@@ -4698,6 +4698,11 @@ function getMediaItems(itemOrItems, options) {
4698
4698
  } else if (x.height) {
4699
4699
  mediaItem.height = x.height;
4700
4700
  }
4701
+ mediaItem.aspectRatio = options.aspectRatio;
4702
+ mediaItem.aspectRatioSm = options.aspectRatioSm;
4703
+ mediaItem.aspectRatioMd = options.aspectRatioMd;
4704
+ mediaItem.aspectRatioLg = options.aspectRatioLg;
4705
+ mediaItem.aspectRatioXl = options.aspectRatioXl;
4701
4706
  return mediaItem;
4702
4707
  });
4703
4708
  const hasGallery = options.galleryId != null && typeof options.open === 'function';
@@ -4736,6 +4741,11 @@ function getMediaItems(itemOrItems, options) {
4736
4741
  if (options.eager) {
4737
4742
  props.loading = 'eager';
4738
4743
  }
4744
+ props.aspectRatio = options.aspectRatio;
4745
+ props.aspectRatioSm = options.aspectRatioSm;
4746
+ props.aspectRatioMd = options.aspectRatioMd;
4747
+ props.aspectRatioLg = options.aspectRatioLg;
4748
+ props.aspectRatioXl = options.aspectRatioXl;
4739
4749
  }
4740
4750
  return props;
4741
4751
  };