challenge-vtex-io-manuela-l.../store/blocks/pdp/product.jsonc

479 lines
11 KiB
Plaintext

{
"store.product": {
"children": [
"html#breadcrumb",
// "html#imagens",
// "html#product-name",
// "html#codigo",
// "html#selling-price",
// "html#product-installments",
// "html#pixzap",
// "html#sku-selector",
// "html#product-quantity",
// "html#add-to-cart-button",
// "html#shipping-simulator",
// "html#product-description",
// "html#slider",
// "html#prateleira",
"condition-layout.product#availability",
"flex-layout.row#description",
// "flex-layout.row#specifications-title",
// "product-specification-group#table",
"tab-layout#pdp-descriptions",
"flex-layout.row#shelf-title",
"flex-layout.row#shelf-product-page",
// "html#product-summary",
// "shelf.relatedProducts",
"product-questions-and-answers"
]
},
"html#breadcrumb": {
"props": {
"tag": "section",
"testId": "breadcrumbs",
"blockClass": "pdp-breadcrumb"
},
"children": ["breadcrumb"]
},
"html#imagens": {
"props": {
"testId": "product-images"
},
"children": ["product-images"]
},
"html#product-name": {
"props": {
"testId": "product-name"
},
"children": ["vtex.store-components:product-name"]
},
"html#codigo": {
"props": {
"testid": "product-code",
"blockClass": "codigo"
},
"children": ["product-identifier.product"]
},
"html#selling-price": {
"props": {
"testid": "product-price"
},
"children": ["product-selling-price"]
},
"html#product-installments": {
"props": {
"testid": "product-installments"
},
"children": ["product-installments"]
},
"html#pixzap": {
"props": {
"testid": "pix-price",
"blockClass": "pix"
},
"children": ["pix-component"]
},
"html#sku-selector": {
"props": {
"testid": "sku-selector"
},
"children": ["sku-selector"]
},
"html#product-quantity": {
"props": {
"testid": "product-quantity"
},
"children": ["product-quantity"]
},
"html#add-to-cart-button": {
"props": {
"testid": "add-to-cart-button"
},
"children": ["add-to-cart-button"]
},
"html#shipping-simulator": {
"props": {
"testid": "shipping-simulator"
},
"children": ["shipping-simulator"]
},
"html#product-description": {
"props": {
"testid": "product-description"
},
"children": ["tab-layout"]
},
"html#slider": {
"props": {
"testid": "product-summary-list"
},
"children": ["slider-layout#prateleira"]
},
"html#prateleira": {
"props": {
"testid": "vtex-product-summary"
},
"children": [
"product-summary-name",
"product-summary-image#shelf",
"product-list-price#summary",
"product-selling-price#summary"
]
},
"flex-layout.row#specifications-title": {
"children": ["rich-text#specifications"]
},
"rich-text#specifications": {
"props": {
"text": "##### Product Specifications"
}
},
"flex-layout.row#shelf-title": {
"children": ["rich-text#shelfTitle"]
},
"rich-text#shelfTitle": {
"props": {
"text": "#### Você também pode gostar:",
"blockClass": "shelfTitle"
}
},
"flex-layout.row#description": {
"props": {
"marginBottom": 7
},
"children": ["product-description"]
},
"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
},
"children": ["flex-layout.col#stack", "flex-layout.col#right-col"]
},
"stack-layout": {
"props": {
"blockClass": "product"
},
"children": [
"flex-layout.row#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
}
},
"flex-layout.row#product-image": {
"children": ["product-images"]
},
"product-images": {
"props": {
"showPaginationDots": false,
"showNavigationArrows": false,
"aspectRatio": {
"desktop": "1:1",
"phone": "1:1"
// "phone": "16:9"
},
"maxHeight": "unset",
"thumbnailsOrientation": "horizontal",
"displayThumbnailsArrows": false
}
},
"flex-layout.col#right-col": {
"props": {
"preventVerticalStretch": true,
"rowGap": 0
},
"children": [
"flex-layout.row#product-name",
"product-identifier.product",
"product-rating-summary",
// "flex-layout.row#list-price-savings",
"flex-layout.row#selling-price",
"product-installments",
"pix-component",
// "product-separator",
"sku-selector",
"product-quantity",
"product-assembly-options",
"product-gifts",
"flex-layout.row#buy-button",
"availability-subscriber",
"shipping-simulator"
// "share#default"
]
},
"flex-layout.row#product-name": {
"props": {
"marginBottom": 3
},
"children": ["vtex.store-components:product-name"]
},
"sku-selector": {
"props": {
"testId": "sku-selector",
"variationsSpacing": 3,
"showValueNameForImageVariation": false
}
},
"flex-layout.row#buy-button": {
"props": {
"marginTop": 4,
"marginBottom": 7,
"blockClass": "buttonClicker"
},
"children": ["add-to-cart-button"]
},
"flex-layout.row#product-availability": {
"props": {
"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",
"sku-selector",
"flex-layout.row#availability"
]
},
"flex-layout.row#availability": {
"props": {
"blockClass": "message-availability"
},
"children": ["availability-subscriber"]
},
"share#default": {
"props": {
"social": {
"Facebook": true,
"WhatsApp": true,
"Twitter": false,
"Pinterest": true
}
}
},
"flex-layout.row#product-image-description": {
"children": ["product-images#description-image"]
},
"product-images#description-image": {
"props": {
"aspectRatio": {
"desktop": "1:1",
"phone": "1:1"
},
"thumbnailVisibility": "hidden",
"showNavigationArrows": false,
"showPaginationDots": false
}
},
"tab-layout#pdp-descriptions": {
"props": {
"blockClass": "pdp-descriptions",
"defaultActiveTabId": "pdp-descriptions1"
},
"children": ["tab-list#pdp-descriptions", "tab-content#pdp-descriptions"]
},
"tab-list#pdp-descriptions": {
"children": [
"tab-list.item#pdp-descriptions1",
"tab-list.item#pdp-descriptions2",
"tab-list.item#pdp-descriptions3",
"tab-list.item#pdp-descriptions4",
"tab-list.item#pdp-descriptions5"
],
"props": {
"blockClass": "pdp-decriptions-list"
}
},
"tab-list.item#pdp-descriptions1": {
"props": {
"tabId": "pdp-descriptions1",
"label": "Descrição",
"defaultActiveTab": true,
"blockClass": "pdp-description-button"
}
},
"tab-list.item#pdp-descriptions2": {
"props": {
"tabId": "pdp-descriptions2",
"label": "Descrição",
"blockClass": "pdp-description-button"
}
},
"tab-list.item#pdp-descriptions3": {
"props": {
"tabId": "pdp-descriptions3",
"label": "Descrição",
"blockClass": "pdp-description-button"
}
},
"tab-list.item#pdp-descriptions4": {
"props": {
"tabId": "pdp-descriptions4",
"label": "Descrição",
"blockClass": "pdp-description-button"
}
},
"tab-list.item#pdp-descriptions5": {
"props": {
"tabId": "pdp-descriptions5",
"label": "Descrição",
"blockClass": "pdp-description-button"
}
},
"tab-content#pdp-descriptions": {
"children": [
"tab-content.item#pdp-descriptions1",
"tab-content.item#pdp-descriptions2",
"tab-content.item#pdp-descriptions3",
"tab-content.item#pdp-descriptions4",
"tab-content.item#pdp-descriptions5"
]
},
"tab-content.item#pdp-descriptions1": {
"children": [
"flex-layout.row#product-image-description",
"flex-layout.row#description"
],
"props": {
"tabId": "pdp-descriptions1"
}
},
"tab-content.item#pdp-descriptions2": {
"children": [
"flex-layout.row#product-image-description",
"flex-layout.row#description"
],
"props": {
"tabId": "pdp-descriptions2"
}
},
"tab-content.item#pdp-descriptions3": {
"children": [
"flex-layout.row#product-image-description",
"flex-layout.row#description"
],
"props": {
"tabId": "pdp-descriptions3"
}
},
"tab-content.item#pdp-descriptions4": {
"children": [
"flex-layout.row#product-image-description",
"flex-layout.row#description"
],
"props": {
"tabId": "pdp-descriptions4"
}
},
"tab-content.item#pdp-descriptions5": {
"children": [
"flex-layout.row#product-image-description",
"flex-layout.row#description"
],
"props": {
"tabId": "pdp-descriptions5"
}
},
"flex-layout.row#shelf-product-page": {
"children": ["list-context.product-list#product-shelf"]
},
"list-context.product-list#product-shelf": {
"blocks": ["product-summary.shelf"],
"children": ["slider-layout#prateleira"]
},
"product-summary.shelf#teste": {
"children": ["html#product-summary"]
},
"html#product-summary": {
"props": {
"testId": "vtex-product-summary"
},
"children": [
"product-summary-name",
"product-summary-image#shelf",
"product-list-price#summary",
"product-selling-price#summary"
// "product-summary-price",
// "product-summary-description",
// "product-summary-sku-selector",
// "product-summary-buy-button"
]
},
"slider-layout#prateleira": {
"props": {
"itemsPerPage": {
"desktop": 4,
"tablet": 3,
"phone": 2
},
"infinite": true,
"showNavigationArrows": "always",
"blockClass": "productPageCarousel"
}
}
}