challenge-vtex-io-henrique-.../store/blocks/product-summary/product-summary.jsonc

79 lines
1.6 KiB
Plaintext

{
"product-summary.shelf#pdp-product-summary": {
"children": [
"stack-layout#prodsum",
"product-summary-name",
"product-list-price#summary",
"flex-layout.row#selling-price-savings",
"product-installments#summary"
]
},
"flex-layout.col#productRating": {
"props": {
"blockClass": "productRating"
},
"children": ["product-rating-inline"]
},
"stack-layout#prodsum": {
"children": ["product-summary-image#shelf"]
},
"product-summary-image#shelf": {
"props": {
"showBadge": false,
"aspectRatio": "1:1",
"maxHeight": 300
}
},
"vtex.product-highlights@2.x:product-highlights#collection": {
"props": {
"type": "collection"
},
"children": ["product-highlight-wrapper"]
},
"product-highlight-wrapper": {
"props": {
"blockClass": "collection"
},
"children": ["product-highlight-text"]
},
"product-highlight-text": {
"props": {
"message": "{highlightName}"
}
},
"product-list-price#summary": {
"props": {
"blockClass": "summary"
}
},
"flex-layout.row#selling-price-savings": {
"props": {
"colGap": 2,
"preserveLayoutOnMobile": true,
"preventHorizontalStretch": true,
"marginBottom": 4
},
"children": ["product-selling-price#summary"]
},
"product-installments#summary": {
"props": {
"blockClass": "summary"
}
},
"product-selling-price#summary": {
"props": {
"blockClass": "summary"
}
},
"product-price-savings#summary": {
"props": {
"markers": ["discount"],
"blockClass": "summary"
}
}
}