@gem-sdk/components 23.0.0-dev.2 → 23.0.0-dev.4

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.
Files changed (114) hide show
  1. package/dist/cjs/article/components/ArticleImage.liquid.js +2 -2
  2. package/dist/cjs/article/components/ArticleList.js +1 -1
  3. package/dist/cjs/article/settings/configs/article-image/settings.js +1 -1
  4. package/dist/cjs/article/settings/configs/article-image/ui-v2.js +1 -1
  5. package/dist/cjs/common/components/Loading.js +1 -1
  6. package/dist/cjs/common/const.js +1 -1
  7. package/dist/cjs/common/helpers.js +1 -0
  8. package/dist/cjs/common/hooks/useElementWidth.js +1 -0
  9. package/dist/cjs/common/hooks/useLoadingProgress.js +1 -0
  10. package/dist/cjs/grid/components/row/Row.liquid.js +12 -12
  11. package/dist/cjs/grid/components/section/Section.js +1 -1
  12. package/dist/cjs/hero-banner/components/HeroBannerItem.liquid.js +5 -5
  13. package/dist/cjs/image/common/attrs.js +1 -1
  14. package/dist/cjs/image/common/classes.js +1 -1
  15. package/dist/cjs/image/common/helpers.js +2 -2
  16. package/dist/cjs/image/common/liquidSrcset.js +1 -0
  17. package/dist/cjs/image/common/srcset.js +1 -0
  18. package/dist/cjs/image/components/AdaptiveImage.js +1 -1
  19. package/dist/cjs/image/components/AdaptiveImage.liquid.js +10 -12
  20. package/dist/cjs/image/components/Image.liquid.js +10 -10
  21. package/dist/cjs/image/components/NextImage.js +1 -1
  22. package/dist/cjs/image/components/NextImage.liquid.js +4 -5
  23. package/dist/cjs/image/constants.js +1 -1
  24. package/dist/cjs/image/settings/configs/settings.js +1 -1
  25. package/dist/cjs/image/settings/configs/ui-v2.js +1 -1
  26. package/dist/cjs/image-comparison/components/CompareImage.liquid.js +14 -14
  27. package/dist/cjs/image-comparison/components/ImageComparison.liquid.js +3 -3
  28. package/dist/cjs/image-comparison/settings/configs/settings.js +1 -1
  29. package/dist/cjs/image-comparison/settings/configs/ui-v2.js +1 -1
  30. package/dist/cjs/post-purchase/product/components/product-offer/components/ProductOffer.js +1 -1
  31. package/dist/cjs/post-purchase/product/components/product-offer/hooks/useProductOfferData.js +1 -1
  32. package/dist/cjs/product/components/product-badge/ProductBadge.js +1 -1
  33. package/dist/cjs/product/components/product-discount-tag/ProductDiscountTag.js +1 -1
  34. package/dist/cjs/product/components/product-images-v2/common/common.js +1 -1
  35. package/dist/cjs/product/components/product-images-v2/components/feature-gallery/FeatureImageWithGallery.liquid.js +42 -42
  36. package/dist/cjs/product/components/product-images-v2/components/gallery-carousel/GalleryCarousel.liquid.js +13 -13
  37. package/dist/cjs/product/components/product-images-v2/components/gallery-grid/GalleryGrid.liquid.js +23 -23
  38. package/dist/cjs/product/components/product-images-v3/common/common.js +1 -1
  39. package/dist/cjs/product/components/product-images-v3/components/feature-gallery/FeatureImageWithGallery.liquid.js +39 -39
  40. package/dist/cjs/product/components/product-images-v3/components/feature-gallery/FeatureImageWithGalleryEmbla.liquid.js +38 -38
  41. package/dist/cjs/product/components/product-images-v3/components/gallery-carousel/GalleryCarousel.liquid.js +12 -12
  42. package/dist/cjs/product/components/product-images-v3/components/gallery-carousel/GalleryCarouselEmbla.liquid.js +12 -12
  43. package/dist/cjs/product/components/product-images-v3/components/gallery-grid/GalleryGrid.liquid.js +23 -23
  44. package/dist/cjs/product/components/product-list/ProductList.js +1 -1
  45. package/dist/cjs/product/components/product-list/common/helpers.js +1 -1
  46. package/dist/cjs/product/components/product-list-v3/ProductList.js +1 -1
  47. package/dist/cjs/product/components/product-wrap/Product.js +1 -1
  48. package/dist/cjs/product/components/product-wrap/hook/useProductSetting.js +1 -1
  49. package/dist/cjs/product/settings/product-image-v2/configs/setting-v2/index.js +1 -1
  50. package/dist/cjs/product/settings/product-image-v2/configs/ui-v2.js +1 -1
  51. package/dist/cjs/product/settings/product-image-v3/configs/setting-v2/index.js +1 -1
  52. package/dist/cjs/product/settings/product-image-v3/configs/ui-v2.js +1 -1
  53. package/dist/cjs/video/components/HTML5Embed.liquid.js +9 -9
  54. package/dist/cjs/video/components/LiteVimeoEmbed.liquid.js +11 -11
  55. package/dist/cjs/video/components/LiteYouTubeEmbed.liquid.js +11 -11
  56. package/dist/cjs/video/components/Video.liquid.js +1 -1
  57. package/dist/esm/article/components/ArticleImage.liquid.js +3 -3
  58. package/dist/esm/article/components/ArticleList.js +1 -1
  59. package/dist/esm/article/settings/configs/article-image/settings.js +1 -1
  60. package/dist/esm/article/settings/configs/article-image/ui-v2.js +1 -1
  61. package/dist/esm/common/components/Loading.js +1 -1
  62. package/dist/esm/common/const.js +1 -1
  63. package/dist/esm/common/helpers.js +1 -0
  64. package/dist/esm/common/hooks/useElementWidth.js +1 -0
  65. package/dist/esm/common/hooks/useLoadingProgress.js +1 -0
  66. package/dist/esm/grid/components/row/Row.liquid.js +10 -10
  67. package/dist/esm/grid/components/section/Section.js +1 -1
  68. package/dist/esm/hero-banner/components/HeroBannerItem.liquid.js +9 -9
  69. package/dist/esm/image/common/attrs.js +1 -1
  70. package/dist/esm/image/common/classes.js +1 -1
  71. package/dist/esm/image/common/helpers.js +2 -2
  72. package/dist/esm/image/common/liquidSrcset.js +1 -0
  73. package/dist/esm/image/common/srcset.js +1 -0
  74. package/dist/esm/image/components/AdaptiveImage.js +1 -1
  75. package/dist/esm/image/components/AdaptiveImage.liquid.js +11 -13
  76. package/dist/esm/image/components/Image.liquid.js +3 -3
  77. package/dist/esm/image/components/NextImage.js +1 -1
  78. package/dist/esm/image/components/NextImage.liquid.js +5 -6
  79. package/dist/esm/image/constants.js +1 -1
  80. package/dist/esm/image/settings/configs/settings.js +1 -1
  81. package/dist/esm/image/settings/configs/ui-v2.js +1 -1
  82. package/dist/esm/image-comparison/components/CompareImage.liquid.js +17 -17
  83. package/dist/esm/image-comparison/components/ImageComparison.liquid.js +3 -3
  84. package/dist/esm/image-comparison/settings/configs/settings.js +1 -1
  85. package/dist/esm/image-comparison/settings/configs/ui-v2.js +1 -1
  86. package/dist/esm/post-purchase/product/components/product-offer/components/ProductOffer.js +1 -1
  87. package/dist/esm/post-purchase/product/components/product-offer/hooks/useProductOfferData.js +1 -1
  88. package/dist/esm/product/components/product-badge/ProductBadge.js +1 -1
  89. package/dist/esm/product/components/product-discount-tag/ProductDiscountTag.js +1 -1
  90. package/dist/esm/product/components/product-images-v2/common/common.js +1 -1
  91. package/dist/esm/product/components/product-images-v2/components/feature-gallery/FeatureImageWithGallery.liquid.js +24 -24
  92. package/dist/esm/product/components/product-images-v2/components/gallery-carousel/GalleryCarousel.liquid.js +13 -13
  93. package/dist/esm/product/components/product-images-v2/components/gallery-grid/GalleryGrid.liquid.js +29 -29
  94. package/dist/esm/product/components/product-images-v3/common/common.js +1 -1
  95. package/dist/esm/product/components/product-images-v3/components/feature-gallery/FeatureImageWithGallery.liquid.js +24 -24
  96. package/dist/esm/product/components/product-images-v3/components/feature-gallery/FeatureImageWithGalleryEmbla.liquid.js +24 -24
  97. package/dist/esm/product/components/product-images-v3/components/gallery-carousel/GalleryCarousel.liquid.js +5 -5
  98. package/dist/esm/product/components/product-images-v3/components/gallery-carousel/GalleryCarouselEmbla.liquid.js +5 -5
  99. package/dist/esm/product/components/product-images-v3/components/gallery-grid/GalleryGrid.liquid.js +30 -30
  100. package/dist/esm/product/components/product-list/ProductList.js +1 -1
  101. package/dist/esm/product/components/product-list/common/helpers.js +1 -1
  102. package/dist/esm/product/components/product-list-v3/ProductList.js +1 -1
  103. package/dist/esm/product/components/product-wrap/Product.js +1 -1
  104. package/dist/esm/product/components/product-wrap/hook/useProductSetting.js +1 -1
  105. package/dist/esm/product/settings/product-image-v2/configs/setting-v2/index.js +1 -1
  106. package/dist/esm/product/settings/product-image-v2/configs/ui-v2.js +1 -1
  107. package/dist/esm/product/settings/product-image-v3/configs/setting-v2/index.js +1 -1
  108. package/dist/esm/product/settings/product-image-v3/configs/ui-v2.js +1 -1
  109. package/dist/esm/video/components/HTML5Embed.liquid.js +9 -9
  110. package/dist/esm/video/components/LiteVimeoEmbed.liquid.js +11 -11
  111. package/dist/esm/video/components/LiteYouTubeEmbed.liquid.js +9 -9
  112. package/dist/esm/video/components/Video.liquid.js +1 -1
  113. package/dist/types/index.d.ts +15 -2
  114. package/package.json +4 -4
@@ -101,6 +101,19 @@ type SharedProps = {
101
101
  };
102
102
  type MixedProps$1 = Omit<React.ImgHTMLAttributes<HTMLImageElement>, 'children' | 'width' | 'height' | 'as' | 'src' | 'srcSet'>;
103
103
  type ImgProps = SharedProps & MixedProps$1;
104
+ type ImageSizeTarget = 'Image' | 'HeroBanner' | 'ImageComparison' | 'ProductFeatureImage' | 'GalleryList' | 'ArticleImage';
105
+ /** The sidebar "Quality" setting shared by Image, ImageComparison and ProductImages. */
106
+ type ImageQualityProps = {
107
+ qualityType?: ObjectDevices<QualityType$3 | string>;
108
+ qualityPercent?: ObjectDevices<number | string>;
109
+ };
110
+ /**
111
+ * `sizeTarget` picks the per-device `srcset` width table; Quality scales it
112
+ * (High 1, Medium 0.7, Custom percent/100, Finest = original file only).
113
+ */
114
+ type ImageSizeProps = ImageQualityProps & {
115
+ sizeTarget?: ImageSizeTarget;
116
+ };
104
117
  type ImageStyleProps$1 = {
105
118
  shape?: ObjectDevices<SizeSettingGlobal>;
106
119
  customAspectRadio?: ObjectDevices<Ratio>;
@@ -164,7 +177,7 @@ type ImageProps = BasePropsWrap<ImageSettingProps$1, ImageStyleProps$1> & {
164
177
  } & {
165
178
  advanced?: any;
166
179
  };
167
- type ImageLiquidProps = ImageProps & {
180
+ type ImageLiquidProps = ImageProps & Pick<ImageSizeProps, 'sizeTarget'> & {
168
181
  pageContext?: PageContext;
169
182
  };
170
183
 
@@ -6814,7 +6827,7 @@ declare const IconListHoz: (props: IconListHozProps) => string;
6814
6827
 
6815
6828
  declare const IconListV2$1: (props: IconListProps) => string;
6816
6829
 
6817
- declare const Image$1: ({ style, styles, setting, advanced, className, pageContext, builderAttrs, builderProps, }: ImageLiquidProps) => string;
6830
+ declare const Image$1: ({ style, styles, setting, advanced, className, sizeTarget, pageContext, builderAttrs, builderProps, }: ImageLiquidProps) => string;
6818
6831
 
6819
6832
  declare const ImageComparison$1: ({ setting, styles, builderProps, advanced, pageContext, ...props }: ImageComparisonProps) => string;
6820
6833
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "23.0.0-dev.2",
3
+ "version": "23.0.0-dev.4",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -32,9 +32,9 @@
32
32
  "react-youtube": "10.1.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@gem-sdk/core": "23.0.0-dev.2",
36
- "@gem-sdk/styles": "23.0.0-dev.2",
37
- "@gem-sdk/system": "23.0.0-dev.2",
35
+ "@gem-sdk/core": "23.0.0-dev.4",
36
+ "@gem-sdk/styles": "23.0.0-dev.4",
37
+ "@gem-sdk/system": "23.0.0-dev.4",
38
38
  "@thedutchcoder/postcss-rem-to-px": "0.0.2",
39
39
  "@types/react-transition-group": "^4.4.12",
40
40
  "autoprefixer": "10.4.23",