Skip to content

Commit

Permalink
Merge branch 'master' into feature/add-size
Browse files Browse the repository at this point in the history
# Conflicts:
#	CHANGELOG.md
#	messages/ar.json
#	messages/bg.json
#	messages/de.json
#	messages/en.json
#	messages/es.json
#	messages/fr.json
#	messages/id.json
#	messages/it.json
#	messages/ja.json
#	messages/ko.json
#	messages/nl.json
#	messages/nn.json
#	messages/no.json
#	messages/pt.json
#	messages/ro.json
#	messages/th.json
#	react/components/InfoCard/index.js
  • Loading branch information
lucvysk committed Oct 16, 2024
2 parents 6c81ef0 + 1a09940 commit 5b4c283
Show file tree
Hide file tree
Showing 29 changed files with 414 additions and 6 deletions.
40 changes: 39 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,47 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

- add width and height in the images editable via site-editor

## [3.175.1] - 2024-09-11

### Fixed

- Arabic, Bulgarian, German, English, Spanish, French, Indonesian, Italian, Japanese, Korean, Dutch, Norwegian, Portuguese, Romanian and Thai translations
- Issue with brand link on `ProductBrand` component.

## [3.175.0] - 2024-08-15

### Added

- Adding 'fetchpriority' & 'preload' props to the infoCard component, in order to manage the images it contains.

## [3.174.2] - 2024-08-12

### Fixed

- Arabic, Bulgarian, German, English, Spanish, French, Hungarian, Indonesian, Italian, Japanese, Korean, Dutch, Norwegian, Portuguese, Romanian and Thai translations.

## [3.174.1] - 2024-08-01

### Added

- Adding `blockClass` in the props list.

## [3.174.0] - 2024-07-15

### Added

- Added `bodyText` property to `info-card` component. This property allows adding a body text below the subtitle.

## [3.173.1] - 2024-07-09

### Fixed

- Update SKU selector in PLP after changing SKU in Quickview

## [3.173.0] - 2024-05-28

### Added

- Hungarian translations.

## [3.172.2] - 2024-03-06

Expand Down
10 changes: 9 additions & 1 deletion docs/InfoCard.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ The `info-card` component groups information on a single topic. It often include
"callToActionText": "DISCOVER",
"callToActionUrl": "/sale/d",
"blockClass": "info-card-example",
"textAlignment": "center"
"textAlignment": "center",
"fetchpriority": "auto",
"preload": true
}
},
```
Expand All @@ -52,9 +54,14 @@ The `info-card` component groups information on a single topic. It often include
| `linkTarget` | `LinkTargetEnum` | Where to display the linked URL when the Info Card component is clicked. | `"_self"` |
| `mobileImageUrl` | `string` | Path to the image used on mobile devices. If empty, the desktop image is used. | `null` |
| `subhead` | `string` | Text to be displayed underneath the headline. If not provided, it will not be rendered. | `null` |
| `bodyText` | `string` | Text to be displayed underneath the subhead. If not provided, it will not be rendered. | `null` |
| `textAlignment` | `TextAlignmentEnum` | Text alignment inside the component: `left`, `center` or `right`. This prop is ignored if `isFullModeStyle` is true. | `"left"` |
| `textMode` | `TextModeEnum` | Text mode used to process the text from `headline` and `subhead` props. | `"html"` |
| `textPosition` | `TextPositionEnum` | Position of the text component: `left`, `center` or `right`. | `"left"` |
| `fetchpriority` | `string` | The fetch priority hint ('high', 'low' or 'auto').
| `auto` |
| `preload` | `boolean` | Preloads the first image in a list, prioritizing the image display over other assets.
| `false` |

#### `TextPositionEnum` possible values

Expand Down Expand Up @@ -104,4 +111,5 @@ To apply CSS customizations to this and other blocks, please see the [Using CSS
| `infoCardImageContainer` |
| `infoCardImageLinkWrapper` |
| `infoCardSubhead` |
| `infoCardBodyText` |
| `infoCardTextContainer` |
1 change: 1 addition & 0 deletions docs/ProductImages.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ The `product-images` block renders a product image or video.
| Prop name | Type | Description | Default value |
| ------------------------- | ---------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------- |
| `aspectRatio` | `string` | Sets the aspect ratio of the image; whether the image should be square, portrait, landscape, etc. The value should follow the [common aspect ratio notation](https://en.wikipedia.org/wiki/Aspect_ratio_(image)) i.e. two numbers separated by a colon, such as `1:1` for square, `3:4` for upright portrait, or `1920:1080` for even large values). | `"auto"` |
| `blockClass` | `string` | Serves as the block's unique identifier for customization. |
| `contentOrder` | `'videos-first'` | `'images-first'` | Controls the order in which the images and videos are displayed. | `'images-first'` |
| `contentType` | `enum` | Controls the type of content that will be displayed in the block. Possible values are: `images`, `videos`, or `all`. | `all` |
| `displayMode` | `enum` | Defines how the product media should be displayed. Possible values are `carousel` (displays the product images and videos in a carousel), `list` (displays only the product images inline, with no extra markup), and `first-image` (displays only the first image available). *Caution*: The `list` and `first-image` values do not display product videos and are only compatible with the `maxHeight`, `hiddenImages`, `zoomFactor`, `aspectRatio`,`ModalZoomElement`, and `zoomMode` props. | `carousel` |
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"vendor": "vtex",
"name": "store-components",
"version": "3.172.2",
"version": "3.175.1",
"title": "VTEX Store Components",
"defaultLocale": "pt-BR",
"description": "The VTEX store components for that render apps can use",
Expand Down
2 changes: 2 additions & 0 deletions messages/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
"admin/editor.imageHeight.title": "ارتفاع الصورة",
"admin/editor.imageWidth.description": "يضيف العرض في علامة <img>",
"admin/editor.imageWidth.title": "عرض الصورة",
"admin/editor.info-card.body-text.title": "النص الأساسي",
"admin/editor.info-card.body-text.description": "نص تحت عنوان فرعي داخل المكون",
"admin/editor.info-card.callAction.button": "الزر",
"admin/editor.info-card.callAction.link": "الرابط",
"admin/editor.info-card.callAction.none": "لا شيء",
Expand Down
2 changes: 2 additions & 0 deletions messages/bg.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
"admin/editor.imageHeight.title": "Височина на изображението",
"admin/editor.imageWidth.description": "Добавя широчина в тага <img>",
"admin/editor.imageWidth.title": "Широчина на изображението",
"admin/editor.info-card.body-text.title": "Текст на тялото",
"admin/editor.info-card.body-text.description": "Текст под подзаглавието вътре в компонента",
"admin/editor.info-card.callAction.button": "Бутон",
"admin/editor.info-card.callAction.link": "Връзка",
"admin/editor.info-card.callAction.none": "Няма",
Expand Down
2 changes: 2 additions & 0 deletions messages/context.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@
"admin/editor.info-card.headline.description": "Description of headline property",
"admin/editor.info-card.subhead.title": "Title of subhead property",
"admin/editor.info-card.subhead.description": "Description of subhead property",
"admin/editor.info-card.body-text.title": "Title of body text property",
"admin/editor.info-card.body-text.description": "Description of body text property",
"admin/editor.info-card.callToActionMode.title": "Title of callToActionMode property",
"admin/editor.info-card.callToActionMode.description": "Description of callToActionMode property",
"admin/editor.info-card.callToActionText.title": "Title of callToActionText property",
Expand Down
2 changes: 2 additions & 0 deletions messages/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
"admin/editor.imageHeight.title": "Bildhöhe",
"admin/editor.imageWidth.description": "Fügt Breite im <img>-Tag hinzu",
"admin/editor.imageWidth.title": "Bildbreite",
"admin/editor.info-card.body-text.title": "Haupttext",
"admin/editor.info-card.body-text.description": "Text unter dem Untertitel innerhalb der Komponente",
"admin/editor.info-card.callAction.button": "Taste",
"admin/editor.info-card.callAction.link": "Link",
"admin/editor.info-card.callAction.none": "Keine",
Expand Down
2 changes: 2 additions & 0 deletions messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
"admin/editor.imageHeight.title": "Image height",
"admin/editor.imageWidth.description": "Adds width in the <img> tag",
"admin/editor.imageWidth.title": "Image Width",
"admin/editor.info-card.body-text.title": "Body text",
"admin/editor.info-card.body-text.description": "Text under subheader inside component",
"admin/editor.info-card.callAction.button": "Button",
"admin/editor.info-card.callAction.link": "Link",
"admin/editor.info-card.callAction.none": "None",
Expand Down
2 changes: 2 additions & 0 deletions messages/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
"admin/editor.imageHeight.title": "Altura de la imagen",
"admin/editor.imageWidth.description": "Agrega la anchura en la tag <img>",
"admin/editor.imageWidth.title": "Anchura de la imagen",
"admin/editor.info-card.body-text.title": "Cuerpo del texto",
"admin/editor.info-card.body-text.description": "Texto debajo del subtítulo dentro del componente",
"admin/editor.info-card.callAction.button": "Botón",
"admin/editor.info-card.callAction.link": "Link",
"admin/editor.info-card.callAction.none": "Ninguno",
Expand Down
2 changes: 2 additions & 0 deletions messages/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
"admin/editor.imageHeight.title": "Hauteur de l'image",
"admin/editor.imageWidth.description": "Ajoute une largeur dans la balise <img>",
"admin/editor.imageWidth.title": "Largeur de l’image",
"admin/editor.info-card.body-text.title": "Corps de texte",
"admin/editor.info-card.body-text.description": "Texte sous le sous-titre à l’intérieur du composant",
"admin/editor.info-card.callAction.button": "Bouton",
"admin/editor.info-card.callAction.link": "Lien",
"admin/editor.info-card.callAction.none": "Aucun",
Expand Down
Loading

0 comments on commit 5b4c283

Please sign in to comment.