challenge-vtex-io-ueber-james/store/blocks/pdp/product.jsonc

544 lines
10 KiB
Plaintext

{
"store.product": {
"children": [
"html#breadcrumb",
"condition-layout.product#availability",
// "tab-layout#Descricao"
"html#tab-layout",
"rich-text#slide",
"list-context.product-list#demo1",
"product-questions-and-answers"
]
},
"tab-layout#Descricao": {
"children": ["tab-list#Descricao", "tab-content#Descricao"],
"props": {
"blockClass": "Descricao",
"defaultActiveTabId": "Descricao1"
}
},
"tab-list#Descricao": {
"children": [
"tab-list.item#Descricao1",
"tab-list.item#Descricao2",
"tab-list.item#Descricao3",
"tab-list.item#Descricao4",
"tab-list.item#Descricao5"
]
},
"tab-list.item#Descricao1": {
"props": {
"blockClass": "DescricaoTab",
"tabId": "Descricao1",
"label": "Descrição",
"defaultActiveTab": true
}
},
"tab-list.item#Descricao2": {
"props": {
"blockClass": "DescricaoTab",
"tabId": "Descricao2",
"label": "Descrição"
}
},
"tab-list.item#Descricao3": {
"props": {
"blockClass": "DescricaoTab",
"tabId": "Descricao3",
"label": "Descrição"
}
},
"tab-list.item#Descricao4": {
"props": {
"blockClass": "DescricaoTab",
"tabId": "Descricao4",
"label": "Descrição"
}
},
"tab-list.item#Descricao5": {
"props": {
"blockClass": "DescricaoTab",
"tabId": "Descricao5",
"label": "Descrição"
}
},
"tab-content#Descricao": {
"props": {
"blockClass": "DescricaoCont"
},
"children": [
"tab-content.item#Descricao1",
"tab-content.item#Descricao2",
"tab-content.item#Descricao3",
"tab-content.item#Descricao4",
"tab-content.item#Descricao5"
]
},
"tab-content.item#Descricao1": {
"children": ["flex-layout.row#description"],
"props": {
"tabId": "Descricao1",
"blockClass": "DescricaoCont1"
}
},
"tab-content.item#Descricao2": {
"children": ["flex-layout.row#description"],
"props": {
"tabId": "Descricao2",
"blockClass": "DescricaoCont1"
}
},
"tab-content.item#Descricao3": {
"children": ["flex-layout.row#description"],
"props": {
"tabId": "Descricao3",
"blockClass": "DescricaoCont1"
}
},
"tab-content.item#Descricao4": {
"children": ["flex-layout.row#description"],
"props": {
"tabId": "Descricao4",
"blockClass": "DescricaoCont1"
}
},
"tab-content.item#Descricao5": {
"children": ["flex-layout.row#description"],
"props": {
"tabId": "Descricao5",
"blockClass": "DescricaoCont1"
}
},
"flex-layout.row#description": {
"props": {
"blockClass": "description",
"marginBottom": 7
},
"children": ["product-images#imageDescription", "product-description"]
},
"product-description":{
"props":{
"collapseContent": false
}
},
"flex-layout.row#wrapperImageDescription": {
"props": {
"blockClass": "imageDescription",
"width": "50%"
}
},
"product-images#imageDescription": {
"props": {
"blockClass": "imageDescription",
"displayMode": "first-image"
}
},
"rich-text#slide": {
"props": {
"textAlignment": "CENTER",
"textPosition": "CENTER",
"text": "Você também pode gostar:",
// "textColor": "c-on-emphasis",
"blockClass": "help-message"
}
},
"list-context.product-list#demo1": {
"blocks": ["product-summary.shelf#demo1"],
"children": [ "html#slider-layout#carousel"]
},
"html#product-summary":{
"props": {
"testId": "vtex-product-summary"
},
"children": [
"product-summary-image",
"product-summary-name",
"product-list-price",
"product-selling-price"
]
},
"product-summary.shelf#demo1": {
"children": [
"html#product-summary"
]
},
"slider-layout#carousel": {
"props": {
"itemsPerPage": {
"desktop": 4,
"tablet": 3,
"phone": 2
},
"infinite": true,
// "showNavigationArrows": "desktopOnly",
"blockClass": "carousel"
}
},
"slider-layout#demo-products": {
"props": {
"fullWidth": false,
"centerModeSlidesGap": 16
}
},
"html#breadcrumb": {
"props": {
"tag": "section",
"testId": "breadcrumbs",
"blockClass": "pdp-breadcrumb"
},
"children": ["breadcrumb"]
},
"flex-layout.row#specifications-title": {
"children": ["rich-text#specifications"]
},
"rich-text#specifications": {
"props": {
"text": "##### Product Specifications"
}
},
"condition-layout.product#availability": {
"props": {
"conditions": [
{
"subject": "isProductAvailable"
}
],
"Then": "flex-layout.row#product-main",
"Else": "flex-layout.row#product-availability"
}
},
"flex-layout.row#product-main": {
"props": {
"colGap": 7,
"rowGap": 7,
"marginTop": 4,
"marginBottom": 7,
"paddingTop": 7,
"paddingBottom": 7,
"blockClass": "product-main"
},
"children": ["flex-layout.col#stack", "flex-layout.col#right-col"]
},
"stack-layout": {
"props": {
"blockClass": "product"
},
"children": [
"html#product-image",
"product-bookmark",
"product-specification-badges"
]
},
"product-specification-badges": {
"props": {
"specificationGroupName": "Group",
"specificationName": "On Sale",
"visibleWhen": "True",
"displayValue": "SPECIFICATION_NAME"
}
},
"flex-layout.col#stack": {
"children": ["stack-layout"],
"props": {
// "width": "60%",
"rowGap": 0
}
},
"html#product-image": {
"props": {
"testId": "product-images"
},
"children": ["product-images"]
},
"product-images": {
"props": {
"thumbnailsOrientation": "horizontal",
"aspectRatio": {
"desktop": "auto",
"phone": "auto"
},
"showPaginationDots": false,
"showNavigationArrows": false
}
},
"flex-layout.col#right-col": {
"props": {
"preventVerticalStretch": true,
"rowGap": 0
},
"children": [
// "flex-layout.row#product-name"
"html#product-name",
// "product-identifier.product"
"html#product-identifier.product",
"product-rating-summary",
// "flex-layout.row#selling-price"
"html#product-selling-price",
"html#product-installments#m3",
// "product-installments#m3",
// "Pix"
"html#pix",
// "sku-selector"
"html#sku-selector",
// "product-quantity",
"html#quantity-button-buy",
"product-gifts",
// "flex-layout.row#buy-button",
"availability-subscriber","html#shipping-simulator"
// "shipping-simulator"
]
},
"html#quantity-button-buy":{
"props": {
"blockClass": "quantity-button-buy"
},
"children": [
"html#product-quantity#size",
"html#buy-button"
]
},
"product-quantity#size": {
"props": {
"size": "large",
"showLabel": false
}
},
"flex-layout.row#product-name": {
"props": {
"marginBottom": 3
},
"children": ["vtex.store-components:product-name"]
},
"sku-selector": {
"props": {
"variationsSpacing": 3,
"showValueNameForImageVariation": true,
"blockClass":"sku"
}
},
"flex-layout.row#buy-button": {
"props": {
"blockClass": "size-buy-button"
},
"children": ["add-to-cart-button"]
},
"flex-layout.row#product-availability": {
"props": {
"blockClass":"indisponivel",
"colGap": 7,
"marginTop": 4,
"marginBottom": 7,
"paddingTop": 7
},
"children": [
"flex-layout.col#stack",
"flex-layout.col#right-col-availability"
]
},
"flex-layout.col#right-col-availability": {
"props": {
"preventVerticalStretch": true,
"rowGap": 0,
"blockClass": "info-availability"
},
"children": [
"flex-layout.row#product-name",
"product-identifier.product",
"flex-layout.row#availability",
"sku-selector"
]
},
"product-identifier.product": {
"props": {
"label": "hide"
}
},
"flex-layout.row#availability": {
"props": {
"blockClass": "message-availability"
},
"children": ["availability-subscriber"]
},
"html#product-installments#m3":{
"props": {
"testId": "product-installments"
},
"children": [
"product-installments#m3"
]
},
"html#pix":{
"props": {
"testId": "pix-price"
},
"children": [
"Pix"
]
},
"html#product-selling-price":{
"props": {
"testId": "product-price"
},
"children": [
"product-selling-price"
]
},
"html#buy-button":{
"props": {
"blockClass": "size-buy-button",
"testId": "add-to-cart-button"
},
"children": [
"flex-layout.row#buy-button"
]
},
"html#product-quantity#size":{
"props": {
"testId":"product-quantity",
"blockClass": "size-quantity-button"
},
"children": [
"product-quantity#size"
]
},
"html#product-name":{
"props": {
"testId":"product-name"
},
"children": [
"flex-layout.row#product-name"
]
},
"html#product-identifier.product":{
"props": {
"testId":"product-code"
},
"children": [
"product-identifier.product"
]
},
"html#sku-selector":{
"props": {
"testId":"sku-selector"
},
"children": [
"sku-selector"
]
},
"html#shipping-simulator":{
"props": {
"testId":"shipping-simulator"
},
"children": [
"shipping-simulator"
]
},
"html#tab-layout":{
"props": {
"testId":"product-description"
},
"children": [
"tab-layout#Descricao"
]
},
"html#slider-layout#carousel":{
"props": {
"blockClass": "slide-k",
"testId":"product-summary-list"
},
"children": [
"slider-layout#carousel"
]
}
}