id
stringlengths
12
53
messages
listlengths
3
3
code_pocfamiliabercomat_af384b48
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/store/blocks.jsonc from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n/* Blocks can be defined both on the store/blocks.json file, and in any number of json\n * files inside the store/blocks directory, with any arbitrary directory structure.\n *\n * Additionally, all blocks files can support comments, such as this one, if given the\n * .jsonc file extension.\n *\n * The store/blocks.json file is intended for backwards compatibility, for miscellaneous\n * blocks, or if the app is simple enough that it doesn't warrant splitting the file.\n */\n{\n \"store.orderplaced\": {\n \"blocks\": [\"order-placed\"]\n },\n\n \"store.account\": {\n \"blocks\": [\"my-account\"],\n \"parent\": {\n \"challenge\": \"challenge.profile\"\n }\n },\n\n \"store.login\": {\n \"blocks\": [\"login-content#default\"]\n },\n\n \"login-content#default\": {\n \"props\": {\n \"isInitialScreenOptionOnly\": false,\n \"defaultOption\": 1,\n \"showPasswordVerificationIntoTooltip\": true\n }\n },\n\n \"store.product-review-form\": {\n \"blocks\": [\"product-review-form\"]\n },\n\n \"store.not-found#product\": {\n \"blocks\": [\"rich-text#not-found\"]\n },\n\n \"store.not-found#search\": {\n \"blocks\": [\"rich-text#not-found\"]\n },\n\n \"rich-text#not-found\": {\n \"props\": {\n \"textAlignment\": \"CENTER\",\n \"textPosition\": \"CENTER\",\n \"text\": \"**PAGE NOT FOUND**\",\n \"font\": \"t-heading-1\"\n }\n }\n}\n\n```" } ]
code_pocfamiliabercomat_4ad2da05
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/store/routes.json from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"store.custom#about-us\": {\n \"path\": \"/about-us\"\n },\n \"store.custom#faq\": {\n \"path\": \"/faq\"\n },\n \"store.custom#contact-us\": {\n \"path\": \"/contact-us\"\n }\n}\n\n```" } ]
code_pocfamiliabercomat_32ea991e
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/styles/css/vtex.store-video.css from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.videoContainer {\n width: 100%;\n height: 300px;\n margin-top: 2%;\n}\n\n@media only screen and (min-width: 640px) {\n .videoContainer {\n height: 700px;\n }\n}\n\n```" } ]
code_pocfamiliabercomat_64b06344
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/styles/css/vtex.product-price.css from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.listPrice {\n color: #727273;\n margin-bottom: .25rem;\n font-size: 1rem;\n}\n\n.sellingPrice {\n color: #3f3f40;\n font-size: 1.25rem;\n}\n\n.sellingPriceValue {\n font-size: 2.25rem;\n font-weight: 700;\n}\n\n.installments {\n color: #727273;\n margin-bottom: 1rem;\n}\n\n.savings {\n font-weight: 500;\n color: #79B03A;\n}\n\n.sellingPriceValue--summary {\n font-size: 1.25rem;\n font-weight: 600;\n color: #2E2E2E;\n}\n\n.savings--summary {\n background: #8BC34A;\n border-radius: 1000px;\n align-items: center;\n display: flex;\n\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n font-size: 0.875rem;\n font-weight: 600;\n vertical-align: baseline;\n color: #FFFFFF;\n}\n\n.savings-discount--summary {\n font-size: 0.875rem;\n font-weight: 600;\n vertical-align: baseline;\n color: #FFFFFF;\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n}\n\n.listPrice--summary {\n margin-bottom: 0.25rem;\n font-size: .875rem;\n}\n\n.installments--summary {\n margin-bottom: 2rem;\n font-size: 0.875rem;\n}\n\n.savings--summaryPercentage {\n background: #0f3e99;\n border-radius: 1000px;\n align-items: center;\n display: flex;\n}\n\n.savingsPercentage--summaryPercentage {\n font-size: 0.875rem;\n font-weight: 600;\n vertical-align: baseline;\n color: #FFFFFF;\n padding: 0.25rem 0.5rem 0.25rem 0.5rem;\n}\n\n```" } ]
code_pocfamiliabercomat_6d9456b3
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/styles/css/vtex.rich-text.css from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.container--deals {\n color: #ffffff;\n text-align: center;\n justify-content: center;\n}\n\n.container--shelfTitle {\n color: #727273;\n justify-content: center;\n text-align: center;\n}\n\n.headingLevel2--shelfTitle {\n font-weight: 200;\n}\n\n.container--deals .paragraph {\n margin: 0;\n}\n\n.container--link {\n justify-content: center;\n}\n\n.container--question {\n justify-content: center;\n}\n\n.container--question .paragraph {\n text-align: center;\n max-width: 540px;\n margin: 0 16px;\n padding-top: 120px;\n color: #03034E;\n}\n\n.container--question .strong {\n font-size: 32px;\n line-height: 2rem;\n font-weight: 700;\n}\n\n.container--link .paragraph {\n text-align: center;\n max-width: 540px;\n padding-top: 36px;\n padding-bottom: 84px;\n color: #03034E;\n}\n\n.container--link .strong {\n font-size: 16px;\n font-weight: 700;\n text-transform: uppercase;\n}\n\n.container--link .link {\n text-decoration: none;\n font-size: 36px;\n font-weight: 300;\n color: #03034E;\n}\n\n.container--title {\n color: #03034E;\n font-size: 28px;\n font-weight: 700;\n}\n\n@media only screen and (min-width: 640px) {\n .container--question .strong {\n font-size: 40px;\n line-height: 3rem;\n }\n\n .container--about {\n max-width: 85%;\n }\n\n .container--title {\n color: #03034E;\n font-size: 40px;\n font-weight: 700;\n max-width: 60%;\n }\n\n .container--title .paragraph {\n line-height: 1.3em;\n }\n}\n\n```" } ]
code_pocfamiliabercomat_f051e541
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/styles/css/vtex.product-summary.css from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.skuSelectorContainer--quickview .skuSelectorItemImage .frameAround, .skuSelectorContainer--quickview .skuSelectorItemImage .skuSelectorInternalBox {\n border-radius: 50%;\n}\n\n.container :global(.vtex-modal-layout-0-x-triggerContainer) {\n opacity: 0;\n transition: opacity 200ms ease-in-out;\n}\n\n.container:hover :global(.vtex-modal-layout-0-x-triggerContainer) {\n opacity: 1;\n}\n\n@media screen and (max-width: 40em) {\n .container :global(.vtex-modal-layout-0-x-triggerContainer) {\n display: none;\n }\n}\n\n.nameContainer {\n justify-content: start;\n padding-top: 1rem;\n padding-bottom: 1rem;\n}\n\n.brandName {\n font-weight: 600;\n font-size: 18px;\n color: #2E2E2E;\n}\n\n.container {\n text-align: start;\n}\n\n.imageContainer {\n text-align: center;\n}\n\n.image {\n border-radius: 0.25rem;\n}\n\n```" } ]
code_pocfamiliabercomat_3ea32c8a
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/styles/css/vtex.modal-layout.css from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n@media screen and (min-width: 40em) {\n .paper--quickview {\n height: 260px;\n width: 580px;\n }\n\n .actionsContainer--quickview {\n padding: 0 2rem 2rem 2rem;\n }\n}\n\n@media screen and (min-width: 50em) {\n .paper--quickview {\n height: 450px;\n width: 900px;\n }\n}\n\n\n@media screen and (min-width: 75em) {\n .paper--quickview {\n width: calc(100% - 4rem);\n height: auto;\n }\n}\n\n@media screen and (min-width: 82em) {\n .actionsContainer--quickview {\n padding: 0 2.5rem 2.5rem 2.5rem;\n }\n}\n\n.paper--quickview {\n min-width: 320px;\n max-width: 96rem;\n}\n\n.headerContainer--quickview {\n border: none;\n position: absolute;\n right: 0;\n}\n\n.actionsContainer--quickview {\n height: 100%;\n width: 100%;\n transition: box-shadow 150ms ease-in-out, border-top 150ms ease-in-out;\n border-top-style: solid;\n border-top-width: 1px;\n border-top-color: transparent;\n box-shadow: -4px 0px 27px -12px transparent;\n}\n\n.actionsContentWrapper {\n border-top-width: 1px;\n border-top-style: solid;\n border-top-color: #aaa;\n padding-top: 1.5rem;\n}\n\n.contentContainer--quickviewContent {\n padding: 2.5rem 0 2.5rem 2rem;\n overflow-x: hidden;\n}\n\n.triggerContainer--quickview {\n padding: .75rem;\n}\n\n.triggerContainer {\n outline: none;\n}\n\n.actionsContainer--quickview:not(.actionsContainerEndOfContent--quickview) {\n border-top-color: rgb(238, 238, 238);\n box-shadow: -4px 0px 27px -12px rgba(0,0,0,0.64);\n}\n\n.actionsContainer--quickview:not(.actionsContainerEndOfContent--quickview) .actionsContentWrapper {\n border-top-color: transparent;\n}\n\n.closeButton {\n padding-right: 1rem;\n}\n\n.paper--product-gifts {\n padding: 1.5rem;\n}\n\n```" } ]
code_pocfamiliabercomat_2e225770
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/styles/css/vtex.store-header.css from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n/* add transitions */\n:global(.vtex-sticky-layout-0-x-container)\n :global(.vtex-store-components-3-x-logoLink),\n:global(.vtex-sticky-layout-0-x-container)\n :global(.vtex-minicart-2-x-openIconContainer),\n:global(.vtex-sticky-layout-0-x-container)\n :global(.vtex-store-components-3-x-searchBarContainer) {\n transition: all 0.3s ease;\n display: block;\n}\n\n/* desktop/mobile main header padding and background transitions */\n:global(.vtex-flex-layout-0-x-flexRowContent--main-header),\n:global(.vtex-flex-layout-0-x-flexRowContent--main-header-mobile) {\n transition: background 0.3s ease;\n will-change: padding, background;\n}\n\n/* main header desktop has a bigger padding when not stuck */\n:global(.vtex-flex-layout-0-x-flexRowContent--main-header) {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n\n/* add a box-shadow to desktop/mobile header when stuck */\n:global(.vtex-sticky-layout-0-x-wrapper--stuck)\n :global(.vtex-flex-layout-0-x-flexRowContent--main-header),\n:global(.vtex-sticky-layout-0-x-wrapper--stuck)\n :global(.vtex-flex-layout-0-x-flexRowContent--main-header-mobile) {\n box-shadow: 0 4px 5px rgba(0, 0, 0, 0.1);\n}\n\n/*\n * remove the extra padding when stuck from the desktop header\n * we add a transition only when \"stuck\" for the \"unstick\" step seem faster\n */\n:global(.vtex-sticky-layout-0-x-wrapper--stuck)\n :global(.vtex-flex-layout-0-x-flexRowContent--main-header) {\n transition: padding 0.3s ease, background 0.3s ease;\n padding-top: 0;\n padding-bottom: 0;\n}\n\n/* if supported add some translucency to the desktop/mobile header background */\n@supports (backdrop-filter: blur(5px)) {\n :global(.vtex-sticky-layout-0-x-wrapper--stuck)\n :global(.vtex-flex-layout-0-x-flexRowContent--main-header),\n :global(.vtex-sticky-layout-0-x-wrapper--stuck)\n :global(.vtex-flex-layout-0-x-flexRowContent--main-header-mobile) {\n backdrop-filter: blur(8px);\n }\n\n /* header background when stuck and not hovered */\n :global(.vtex-sticky-layout-0-x-wrapper--stuck):not(:hover)\n :global(.vtex-flex-layout-0-x-flexRowContent--main-header),\n :global(.vtex-sticky-layout-0-x-wrapper--stuck):not(:hover)\n :global(.vtex-flex-layout-0-x-flexRowContent--main-header-mobile) {\n background: rgba(240, 240, 240, 0.8);\n }\n}\n\n/* stick wrapper with the same color as the desktop/mobile header */\n:global(.vtex-sticky-layout-0-x-wrapper--sticky-header) {\n background-color: #f0f0f0;\n}\n\n/* resize the logo for neat effect */\n:global(.vtex-sticky-layout-0-x-wrapper--stuck)\n :global(.vtex-store-components-3-x-logoLink) {\n transform: scale(0.85);\n}\n\n@media (prefers-reduced-motion: reduce) {\n :global(.vtex-sticky-layout-0-x-container)\n :global(.vtex-store-components-3-x-logoLink),\n :global(.vtex-sticky-layout-0-x-container)\n :global(.vtex-minicart-2-x-openIconContainer),\n :global(.vtex-sticky-layout-0-x-container)\n :global(.vtex-store-components-3-x-searchBarContainer),\n :global(.vtex-sticky-layout-0-x-wrapper--stuck)\n :global(.vtex-flex-layout-0-x-flexRowContent--main-header) {\n transition: none;\n }\n}\n\n```" } ]
code_pocfamiliabercomat_49e71408
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/styles/css/vtex.store-components.css from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.notificationBarContainer {\n background-color: #e6f1e6;\n color: #03034e;\n font-weight: 700;\n font-size: 12px;\n text-decoration: underline;\n}\n\n.infoCardContainer--info-card-home {\n max-width: 1520px;\n margin: 0 auto;\n background-color: #e6f1e6;\n padding: 0px;\n}\n\n.newsletter {\n background-color: #03054e;\n max-width: 1528px;\n margin: 0 auto;\n}\n\n.newsletter .container {\n padding: 60px 10px;\n}\n\n.label {\n color: #fff;\n font-size: 26px;\n}\n\n.inputGroup {\n padding-bottom: 4px;\n display: flex;\n color: #fff;\n}\n\n.inputGroup :global(.vtex-styleguide-9-x-hideDecorators) {\n background-color: transparent;\n color: #fff;\n border: none;\n}\n\n.inputGroup :global(.vtex-styleguide-9-x-hideDecorators)::placeholder {\n color: #fff;\n font-size: 16px;\n}\n\n.inputGroup :global(.vtex-button) {\n background-color: transparent;\n color: #fff;\n border: none;\n margin-right: -24px;\n}\n\n.buttonContainer {\n padding-top: 0px;\n}\n\n.imageElement--storePrint {\n max-height: 300px;\n margin-bottom: 20px;\n}\n\n.skuSelectorContainer {\n margin: 1rem 0;\n}\n\n@media only screen and (min-width: 640px) {\n .newsletter .container {\n padding: 140px;\n }\n .label {\n font-size: 40px;\n }\n .infoCardContainer--info-card-home .infoCardTextContainer {\n width: 30%;\n }\n .infoCardContainer--info-card-home .infoCardImageContainer {\n width: 70%;\n }\n .imageElement--storePrint {\n margin-bottom: 0px;\n max-height: 600px;\n }\n}\n\n.productImagesContainer--quickview .carouselContainer {\n justify-content: flex-start;\n}\n\n.productImagesContainer--quickview .productImageTag {\n object-fit: cover !important;\n}\n\n.productImagesContainer--quickview .carouselGaleryThumbs {\n display: none;\n}\n\n.productImagesContainer--quickview .carouselGaleryCursor {\n margin: 0;\n padding: 0;\n width: 100%;\n}\n\n.productNameContainer {\n color: #3f3f40;\n font-weight: bold;\n font-size: 30px;\n}\n\n.image {\n image-rendering: -webkit-optimize-contrast;\n}\n\n```" } ]
code_pocfamiliabercomat_a9e69c8f
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/styles/css/vtex.store-footer.css from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.row--menu-row {\n padding-right: 24px;\n}\n\n.row--menu-row .rowContainer {\n align-items: flex-start;\n}\n\n.row--payment-methods {\n padding-top: 16px;\n}\n\n```" } ]
code_pocfamiliabercomat_c4b51c4e
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/styles/css/vtex.product-identifier.css from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.product-identifier--productReference {\n margin-bottom: 1rem;\n}\n\n```" } ]
code_pocfamiliabercomat_d0f465b0
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/styles/css/vtex.reviews-and-ratings.css from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.container {\n max-width: 96rem;\n padding-left: .5rem;\n padding-right: .5rem;\n}\n\n.inlineContainer {\n margin-left: 0rem;\n}\n\n.star--filled {\n color: #FFB100;\n}\n\n.star--empty {\n color: #FFB100;\n}\n\n```" } ]
code_pocfamiliabercomat_3ef8d956
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/styles/css/vtex.product-highlights.css from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.productHighlightWrapper--collection {\n position: absolute;\n top: 10px;\n left: 5px;\n width: 200px;\n}\n\n.productHighlightText {\n background: antiquewhite;\n border-radius: 20px;\n padding: 5px 10px;\n}\n\n```" } ]
code_pocfamiliabercomat_7d1dfdf4
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/styles/css/vtex.flex-layout.css from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.flexRowContent--menu-link,\n.flexRowContent--main-header {\n padding: 0 0.5rem;\n}\n\n@media screen and (min-width: 40em) {\n .flexRowContent--menu-link,\n .flexRowContent--main-header {\n padding: 0 1rem;\n }\n}\n\n@media screen and (min-width: 80rem) {\n .flexRowContent--menu-link,\n .flexRowContent--main-header {\n padding: 0 0.25rem;\n }\n}\n\n.flexRowContent--menu-link {\n background-color: #03044e;\n color: #fff;\n}\n\n.flexRowContent--main-header {\n background-color: #f0f0f0;\n}\n\n.flexRowContent--main-header-mobile {\n align-items: center;\n padding: 0.625rem 0.5rem;\n background-color: #f0f0f0;\n}\n\n.flexRowContent--menu-link :global(.vtex-menu-2-x-styledLink) {\n color: #ffffff;\n font-size: 14px;\n}\n\n.flexRowContent--main-header :global(.vtex-menu-2-x-styledLink) {\n color: #727273;\n font-size: 14px;\n}\n\n.flexRow--deals {\n background-color: #0F3E99;\n padding: 14px 0px;\n}\n\n.flexRow--deals .stretchChildrenWidth {\n align-items: center;\n}\n\n.flexRow--deals .flexCol {\n align-items: center;\n margin-bottom: 5px;\n padding-top: 5px;\n}\n\n.flexCol--filterCol {\n max-width: 500px;\n min-width: 230px;\n}\n\n.flexCol--productCountCol {\n align-items: flex-start;\n}\n\n.flexCol--orderByCol {\n align-items: flex-end;\n}\n\n.flexCol--orderByMobileCol {\n width: 42%;\n}\n\n.flexCol--filterMobileCol {\n width: 38%;\n}\n\n.flexRow--quickviewMainRow {\n display: flex;\n max-height: 100%;\n}\n\n.flexColChild--quickviewDetails:first-child {\n overflow-y: auto;\n height: 66% !important;\n overflow-x: hidden;\n}\n\n.flexColChild--quickviewDetails:last-child {\n height: 34% !important;\n}\n\n.flexRow--addToCartRow {\n padding-bottom: 1rem;\n}\n\n```" } ]
code_pocfamiliabercomat_a15ff703
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/styles/css/vtex.carousel.css from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.containerImg {\n background-color: #f0f0f0;\n}\n\n.containerImg .img {\n max-width: 100%;\n}\n\n```" } ]
code_pocfamiliabercomat_962ddc77
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/styles/css/vtex.search-result.css from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.galleryLayoutOptionButton {\n background-color: #F0F0F0;\n color: #3F3F40;\n padding: 0.375rem 0.75rem 0.375rem 0.75rem;\n}\n\n.galleryLayoutOptionButton--selected {\n background-color: #3F3F40;\n color: #FFFFFF;\n}\n\n.galleryLayoutSwitcher {\n border-radius: 4px 4px 4px 4px;\n justify-content: center;\n overflow: hidden;\n width: auto !important;\n align-self: center\n}\n\n.galleryItem--list {\n border-bottom: 1px #E7E9EE solid;\n}\n\n```" } ]
code_pocfamiliabercomat_b173729d
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/styles/css/vtex.slider-layout.css from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.sliderLayoutContainer {\n justify-content: center;\n}\n\n.sliderLayoutContainer--carousel {\n background-color: #F0F0F0;\n min-height: 450px;\n}\n\n.sliderTrackContainer {\n max-width: 100%;\n}\n\n.paginationDotsContainer {\n margin-top: .5rem;\n margin-bottom: .5rem;\n}\n\n.layoutContainer--shelf {\n margin-top: 20px;\n margin-bottom: 20px;\n max-width: 96rem;\n min-height: 550px;\n}\n\n.slide--shelf {\n margin-bottom: 25px;\n padding-left: .5rem;\n padding-right: .5rem;\n min-height: 550px;\n}\n\n```" } ]
code_pocfamiliabercomat_59d6eb8d
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/styles/css/vtex.stack-layout.css from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.stackItem--product {\n width: 100%;\n min-height: 257px\n}\n\n.stackItem--quickview {\n right: 0;\n top: 0;\n left: auto;\n}\n\n```" } ]
code_pocfamiliabercomat_970e05b5
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/styles/configs/style.json from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"typeScale\": [\n 3, 2.25, 1.5, 1.25, 1, 0.875, 0.75\n ],\n \"spacing\": [0.125, 0.25, 0.5, 0.75, 1, 1.5, 2, 3, 4, 8, 16],\n \"customMedia\": [\n { \"s\": 20 },\n { \"ns\": {\n \"value\": 40,\n \"minWidth\": true\n }\n },\n { \"m\": {\n \"value\": 40,\n \"minWidth\": true\n }\n },\n { \"l\": {\n \"value\": 64,\n \"minWidth\": true\n }\n },\n { \"xl\": {\n \"value\": 80,\n \"minWidth\": true\n }\n }\n ],\n \"colors\": {\n \"black-90\": \"rgba(0,0,0,.9)\",\n \"black-80\": \"rgba(0,0,0,.8)\",\n \"black-70\": \"rgba(0,0,0,.7)\",\n \"black-60\": \"rgba(0,0,0,.6)\",\n \"black-50\": \"rgba(0,0,0,.5)\",\n \"black-40\": \"rgba(0,0,0,.4)\",\n \"black-30\": \"rgba(0,0,0,.3)\",\n \"black-20\": \"rgba(0,0,0,.2)\",\n \"black-10\": \"rgba(0,0,0,.1)\",\n \"black-05\": \"rgba(0,0,0,.05)\",\n \"black-025\": \"rgba(0,0,0,.025)\",\n \"black-0125\": \"rgba(0,0,0,.0125)\",\n\n \"white-90\": \"rgba(255,255,255,.9)\",\n \"white-80\": \"rgba(255,255,255,.8)\",\n \"white-70\": \"rgba(255,255,255,.7)\",\n \"white-60\": \"rgba(255,255,255,.6)\",\n \"white-50\": \"rgba(255,255,255,.5)\",\n \"white-40\": \"rgba(255,255,255,.4)\",\n \"white-30\": \"rgba(255,255,255,.3)\",\n \"white-20\": \"rgba(255,255,255,.2)\",\n \"white-10\": \"rgba(255,255,255,.1)\",\n \"white-05\": \"rgba(255,255,255,.05)\",\n \"white-025\": \"rgba(255,255,255,.025)\",\n \"white-0125\": \"rgba(255,255,255,.0125)\"\n },\n \"semanticColors\": {\n \"background\": {\n \"base\": \"#ffffff\",\n \"base--inverted\": \"#03044e\",\n \"action-primary\": \"#0F3E99\",\n \"action-secondary\": \"#eef3f7\",\n \"emphasis\": \"#f71963\",\n \"disabled\": \"#f2f4f5\",\n \"success\": \"#8bc34a\",\n \"success--faded\": \"#eafce3\",\n \"danger\": \"#ff4c4c\",\n \"danger--faded\": \"#ffe6e6\",\n \"warning\": \"#ffb100\",\n \"warning--faded\": \"#fff6e0\",\n \"muted-1\": \"#727273\",\n \"muted-2\": \"#979899\",\n \"muted-3\": \"#cacbcc\",\n \"muted-4\": \"#e3e4e6\",\n \"muted-5\": \"#f2f4f5\"\n },\n \"hover-background\": {\n \"action-primary\": \"#072c75\",\n \"action-secondary\": \"#dbe9fd\",\n \"emphasis\": \"#dd1659\",\n \"success\": \"#8bc34a\",\n \"success--faded\": \"#eafce3\",\n \"danger\": \"#e13232\",\n \"danger--faded\": \"#ffe6e6\",\n \"warning\": \"#ffb100\",\n \"warning--faded\": \"#fff6e0\",\n \"muted-1\": \"#727273\",\n \"muted-2\": \"#979899\",\n \"muted-3\": \"#cacbcc\",\n \"muted-4\": \"#e3e4e6\",\n \"muted-5\": \"#f2f4f5\"\n },\n \"active-background\": {\n \"action-primary\": \"#0c389f\",\n \"action-secondary\": \"#d2defc\",\n \"emphasis\": \"#dd1659\",\n \"success\": \"#8bc34a\",\n \"success--faded\": \"#eafce3\",\n \"danger\": \"#ff4c4c\",\n \"danger--faded\": \"#ffe6e6\",\n \"warning\": \"#ffb100\",\n \"warning--faded\": \"#fff6e0\",\n \"muted-1\": \"#727273\",\n \"muted-2\": \"#979899\",\n \"muted-3\": \"#cacbcc\",\n \"muted-4\": \"#e3e4e6\",\n \"muted-5\": \"#f2f4f5\"\n },\n \"text\": {\n \"action-primary\": \"#0F3E99\",\n \"action-secondary\": \"#eef3f7\",\n \"link\": \"#0F3E99\",\n \"emphasis\": \"#f71963\",\n \"disabled\": \"#979899\",\n \"success\": \"#8bc34a\",\n \"success--faded\": \"#eafce3\",\n \"danger\": \"#ff4c4c\",\n \"danger--faded\": \"#ffe6e6\",\n \"warning\": \"#ffb100\",\n \"warning--faded\": \"#fff6e0\",\n \"muted-1\": \"#727273\",\n \"muted-2\": \"#979899\",\n \"muted-3\": \"#cacbcc\",\n \"muted-4\": \"#e3e4e6\",\n \"muted-5\": \"#f2f4f5\"\n },\n \"visited-text\": {\n \"link\": \"#0c389f\"\n },\n \"hover-text\": {\n \"action-primary\": \"#072c75\",\n \"action-secondary\": \"#dbe9fd\",\n \"link\": \"#0c389f\",\n \"emphasis\": \"#dd1659\",\n \"success\": \"#8bc34a\",\n \"success--faded\": \"#eafce3\",\n \"danger\": \"#e13232\",\n \"danger--faded\": \"#ffe6e6\",\n \"warning\": \"#ffb100\",\n \"warning--faded\": \"#fff6e0\"\n },\n \"active-text\": {\n \"link\": \"#0c389f\",\n \"emphasis\": \"#dd1659\",\n \"success\": \"#8bc34a\",\n \"success--faded\": \"#eafce3\",\n \"danger\": \"#ff4c4c\",\n \"danger--faded\": \"#ffe6e6\",\n \"warning\": \"#ffb100\",\n \"warning--faded\": \"#fff6e0\"\n },\n \"border\": {\n \"action-primary\": \"#0F3E99\",\n \"action-secondary\": \"#eef3f7\",\n \"emphasis\": \"#f71963\",\n \"disabled\": \"#e3e4e6\",\n \"success\": \"#8bc34a\",\n \"success--faded\": \"#eafce3\",\n \"danger\": \"#ff4c4c\",\n \"danger--faded\": \"#ffe6e6\",\n \"warning\": \"#ffb100\",\n \"warning--faded\": \"#fff6e0\",\n \"muted-1\": \"#727273\",\n \"muted-2\": \"#979899\",\n \"muted-3\": \"#cacbcc\",\n \"muted-4\": \"#e3e4e6\",\n \"muted-5\": \"#f2f4f5\"\n },\n \"hover-border\": {\n \"action-primary\": \"#072c75\",\n \"action-secondary\": \"#dbe9fd\",\n \"emphasis\": \"#dd1659\",\n \"success\": \"#8bc34a\",\n \"success--faded\": \"#eafce3\",\n \"danger\": \"#e13232\",\n \"danger--faded\": \"#ffe6e6\",\n \"warning\": \"#ffb100\",\n \"warning--faded\": \"#fff6e0\",\n \"muted-1\": \"#727273\",\n \"muted-2\": \"#979899\",\n \"muted-3\": \"#cacbcc\",\n \"muted-4\": \"#e3e4e6\",\n \"muted-5\": \"#f2f4f5\"\n },\n \"active-border\": {\n \"action-primary\": \"#0c389f\",\n \"action-secondary\": \"#d2defc\",\n \"emphasis\": \"#dd1659\",\n \"success\": \"#8bc34a\",\n \"success--faded\": \"#eafce3\",\n \"danger\": \"#ff4c4c\",\n \"danger--faded\": \"#ffe6e6\",\n \"warning\": \"#ffb100\",\n \"warning--faded\": \"#fff6e0\",\n \"muted-1\": \"#727273\",\n \"muted-2\": \"#979899\",\n \"muted-3\": \"#cacbcc\",\n \"muted-4\": \"#e3e4e6\",\n \"muted-5\": \"#f2f4f5\"\n },\n \"on\": {\n \"base\": \"#3f3f40\",\n \"base--inverted\": \"#ffffff\",\n \"action-primary\": \"#ffffff\",\n \"action-secondary\": \"#0F3E99\",\n \"emphasis\": \"#ffffff\",\n \"disabled\": \"#979899\",\n \"success\": \"#ffffff\",\n \"success--faded\": \"#3f3f40\",\n \"danger\": \"#ffffff\",\n \"danger--faded\": \"#3f3f40\",\n \"warning\": \"#ffffff\",\n \"warning--faded\": \"#1a1a1a\",\n \"muted-1\": \"#ffffff\",\n \"muted-2\": \"#ffffff\",\n \"muted-3\": \"#3f3f40\",\n \"muted-4\": \"#3f3f40\",\n \"muted-5\": \"#3f3f40\"\n },\n \"hover-on\": {\n \"action-primary\": \"#ffffff\",\n \"action-secondary\": \"#0F3E99\",\n \"emphasis\": \"#ffffff\",\n \"success\": \"#ffffff\",\n \"success--faded\": \"#3f3f40\",\n \"danger\": \"#ffffff\",\n \"danger--faded\": \"#3f3f40\",\n \"warning\": \"#ffffff\",\n \"warning--faded\": \"#1a1a1a\"\n },\n \"active-on\": {\n \"action-primary\": \"#ffffff\",\n \"action-secondary\": \"#0F3E99\",\n \"emphasis\": \"#ffffff\",\n \"success\": \"#ffffff\",\n \"success--faded\": \"#3f3f40\",\n \"danger\": \"#ffffff\",\n \"danger--faded\": \"#3f3f40\",\n \"warning\": \"#ffffff\",\n \"warning--faded\": \"#1a1a1a\"\n }\n },\n \"borderWidths\": [0, 0.125, 0.25, 0.5, 1, 2],\n \"borderRadius\": [0, 0.125, 0.25, 0.5, 1],\n \"widths\": [1, 2, 4, 8, 16],\n \"maxWidths\": [1, 2, 4, 8, 16, 32, 48, 64, 96],\n \"heights\": [1, 2, 4, 8, 16],\n \"sizes\": [\n {\"name\": \"small\", \"value\": 2},\n {\"name\": \"regular\", \"value\": 2.5},\n {\"name\": \"large\", \"value\": 3}\n ],\n \"typography\":{\n \"measure\": [30, 34, 20],\n \"styles\": {\n \"heading-1\": {\n \"fontFamily\": \"San Francisco, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif\",\n \"fontWeight\": \"700\",\n \"fontSize\": \"3rem\",\n \"textTransform\": \"initial\",\n \"letterSpacing\": \"0\"\n },\n \"heading-2\": {\n \"fontFamily\": \"San Francisco, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif\",\n \"fontWeight\": \"700\",\n \"fontSize\": \"2.25rem\",\n \"textTransform\": \"initial\",\n \"letterSpacing\": \"0\"\n },\n \"heading-3\": {\n \"fontFamily\": \"San Francisco, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif\",\n \"fontWeight\": \"700\",\n \"fontSize\": \"1.75rem\",\n \"textTransform\": \"initial\",\n \"letterSpacing\": \"0\"\n },\n \"heading-4\": {\n \"fontFamily\": \"San Francisco, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif\",\n \"fontWeight\": \"normal\",\n \"fontSize\": \"1.5rem\",\n \"textTransform\": \"initial\",\n \"letterSpacing\": \"0\"\n },\n \"heading-5\": {\n \"fontFamily\": \"San Francisco, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif\",\n \"fontWeight\": \"normal\",\n \"fontSize\": \"1.25rem\",\n \"textTransform\": \"initial\",\n \"letterSpacing\": \"0\"\n },\n \"heading-6\": {\n \"fontFamily\": \"San Francisco, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif\",\n \"fontWeight\": \"normal\",\n \"fontSize\": \"1.25rem\",\n \"textTransform\": \"initial\",\n \"letterSpacing\": \"0\"\n },\n \"body\": {\n \"fontFamily\": \"San Francisco, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif\",\n \"fontWeight\": \"normal\",\n \"fontSize\": \"1rem\",\n \"textTransform\": \"initial\",\n \"letterSpacing\": \"0\"\n },\n \"small\": {\n \"fontFamily\": \"San Francisco, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif\",\n \"fontWeight\": \"normal\",\n \"fontSize\": \"0.875rem\",\n \"textTransform\": \"initial\",\n \"letterSpacing\": \"0\"\n },\n \"mini\": {\n \"fontFamily\": \"San Francisco, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif\",\n \"fontWeight\": \"normal\",\n \"fontSize\": \"0.75rem\",\n \"textTransform\": \"initial\",\n \"letterSpacing\": \"0\"\n },\n \"action\": {\n \"fontFamily\": \"San Francisco, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif\",\n \"fontWeight\": \"500\",\n \"fontSize\": \"1rem\",\n \"textTransform\": \"uppercase\",\n \"letterSpacing\": \"0\"\n },\n \"action--small\": {\n \"fontFamily\": \"San Francisco, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif\",\n \"fontWeight\": \"500\",\n \"fontSize\": \"0.875rem\",\n \"textTransform\": \"uppercase\",\n \"letterSpacing\": \"0\"\n },\n \"action--large\": {\n \"fontFamily\": \"San Francisco, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif\",\n \"fontWeight\": \"500\",\n \"fontSize\": \"1.25rem\",\n \"textTransform\": \"uppercase\",\n \"letterSpacing\": \"0\"\n },\n \"code\": {\n \"fontFamily\": \"Consolas, monaco, monospace\",\n \"fontWeight\": \"normal\",\n \"fontSize\": \"1rem\",\n \"textTransform\": \"initial\",\n \"letterSpacing\": \"0\"\n }\n }\n },\n \"opacity\": [1, 0.9, 0.8, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1, 0.05, 0.025, 0]\n}\n\n```" } ]
code_pocfamiliabercomat_4662e285
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/styles/css/contact/vtex.flex-layout.css from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.flexRowContent--contact {\n max-width: 700px;\n margin: auto;\n}\n\n.flexRowContent--contact :global(.vtex-input__label),\n.flexRowContent--contact :global(.vtex-textarea__label) {\n font-size: 1rem;\n color: #3f3f40;\n}\n\n.flexRowContent--contact :global(.vtex-input),\n.flexRowContent--contact :global(.vtex-textarea) {\n display: block;\n margin-bottom: 1rem;\n}\n\n```" } ]
code_pocfamiliabercomat_e6474f49
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/styles/css/faq/vtex.flex-layout.css from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.flexRowContent--faq {\n max-width: 700px;\n margin: auto;\n}\n\n```" } ]
code_pocfamiliabercomat_80dd8406
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/styles/css/faq/vtex.disclosure-layout.css from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.trigger--question {\n display: flex;\n align-items: center;\n cursor: pointer;\n outline: none;\n}\n\n.trigger--question :global(.vtex-rich-text-0-x-paragraph) {\n font-weight: bold;\n}\n\n.trigger--question:focus,\n.trigger--question:focus :global(.vtex-rich-text-0-x-paragraph) {\n color: #0F3E99;\n}\n\n.trigger :global(.vtex-store-icons-0-x-caretIcon) {\n margin-right: 1rem;\n}\n\n.content--answer {\n transition: opacity 250ms ease-in-out, height 250ms ease-in-out, transform 250ms ease-in-out;\n opacity: 0;\n height: 0;\n transform: translate3d(0, -10%, 0);\n}\n\n.content--answer[data-enter] {\n opacity: 1;\n height: fit-content;\n transform: translate3d(0, 0, 0);\n}\n\n.content--answer[data-leave] {\n height: 0;\n overflow: hidden;\n}\n\n```" } ]
code_pocfamiliabercomat_ff727a88
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/styles/css/search/vtex.rich-text.css from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.container--layout-option {\n margin-left: 0.3em;\n}\n\n.paragraph--layout-option {\n margin: 0;\n}\n\n.paragraph--summarySpecificationBullet {\n margin: 0;\n line-height: initial;\n font-size: 1.25rem;\n line-height: 1.15rem;\n}\n\n```" } ]
code_pocfamiliabercomat_f4c699d4
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/styles/css/search/vtex.product-summary.css from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.nameContainer--summaryListDesktop {\n padding-top: 0.25rem;\n padding-bottom: 0.75rem;\n justify-content: start;\n}\n\n.nameContainer--summaryListMobile {\n padding-top: 0.25rem;\n padding-bottom: 0.5rem;\n justify-content: start;\n}\n\n.brandName--summaryListMobile {\n font-weight: 400;\n font-size: 0.875rem;\n color: black;\n}\n\n.container--listLayout {\n max-width: none !important;\n}\n\n.image--summaryListDesktop {\n width: 180px !important;\n}\n\n.image--summaryListMobile {\n width: 140px !important;\n min-width: 140px;\n height: inherit !important;\n}\n\n```" } ]
code_pocfamiliabercomat_51ab9a3b
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/styles/css/search/vtex.store-components.css from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.productBrandName--summaryListDesktop {\n text-decoration: none;\n font-weight: 500;\n color: #0067C7;\n font-size: .875rem;\n}\n\n.productBrandName--summaryListMobile {\n text-decoration: none;\n color: #0067C7;\n font-size: .875rem;\n}\n\n```" } ]
code_pocfamiliabercomat_0f415531
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/styles/css/search/vtex.flex-layout.css from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.flexRow--orderByAndSwitcher {\n padding-right: 1.5em;\n}\n\n.flexRowContent--savingsSummaryListDesktop {\n justify-content: flex-start;\n}\n\n.flexCol--summaryRightListDesktop {\n justify-content: space-around;\n}\n\n.flexRow--buyNowButton :global(.vtex-button) {\n background: #eef3f7;\n border-color:#eef3f7;\n color: #0f3e99;\n}\n\n.flexRow--buyNowButton:hover :global(.vtex-button) {\n background: #dbe9fd;\n border-color:#dbe9fd;\n}\n\n.flexCol--productRating {\n margin-bottom: 3rem;\n}\n\n.flexCol--summaryDetailsListMobile {\n justify-content: space-between;\n}\n\n.flexCol--summaryUpDetailsListMobile {\n margin-bottom: 0.25rem\n}\n\n```" } ]
code_pocfamiliabercomat_06660328
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/styles/css/product-specification-table/vtex.flex-layout.css from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.flexRow--productSpecificationGroup:not(:first-child) {\n margin-top: 1.5rem;\n}\n\n.flexRow--productSpecificationGroupName {\n background-color: #eaeaea;\n padding: 0.5rem 1rem;\n}\n\n.flexCol--productSpecificationName {\n padding: 1rem;\n}\n\n.flexCol--productSpecificationValue {\n padding: 1rem 1rem 1rem 0;\n}\n\n.flexRow--productSpecification:nth-child(even) {\n background-color: #f9f9f9;\n}\n\n```" } ]
code_pocfamiliabercomat_a68022c0
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/styles/css/product-specification-table/vtex.product-specifications.css from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.groupName {\n font-size: 1.25rem;\n}\n\n.specificationName {\n font-weight: bold;\n}\n\n```" } ]
code_pocfamiliabercomat_4d45961b
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/store/blocks/about-us.json from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"store.custom#about-us\": {\n \"blocks\": [\n \"flex-layout.row#about-us\",\n \"video#about-us\"\n ]\n },\n\n \"flex-layout.row#about-us\": {\n \"children\": [\n \"image#mobile-phone\",\n \"flex-layout.col#text-about-us\"\n ]\n },\n\n \"flex-layout.col#text-about-us\": {\n \"children\": [\n \"rich-text#title-about-us\",\n \"rich-text#about-us\"\n ],\n \"props\": {\n \"blockclass\": \"textColumn\",\n \"preventVerticalStretch\": true\n }\n },\n\n \"rich-text#title-about-us\": {\n \"props\": {\n \"text\":\n \"# Create meaningful and relevant experiences.\",\n \"blockClass\": \"title\"\n }\n },\n\n \"image#mobile-phone\": {\n \"props\": {\n \"src\": \"https://storecomponents.vteximg.com.br/arquivos/mobile-phone.png\",\n \"maxHeight\": \"\",\n \"maxWidth\": \"\",\n \"blockClass\": \"storePrint\"\n }\n },\n \"video#about-us\": {\n \"props\": {\n \"src\": \"https://www.youtube.com/embed/JgkrlaF52WQ\",\n \"width\": \"100%\",\n \"height\": \"100%\"\n }\n },\n \"rich-text#about-us\": {\n \"props\": {\n \"text\": \"**Optimized store framework** \\n Free your front-end with our React + Node store framework. Improve usability and SEO, while driving more conversion with modular components, single page applications, and a ready-for-PWA structure. \\n **Multi-currency and language** \\n Go international with multiple storefronts to support different languages and easily manage local currencies and payment conditions. \\n **Serverless development platform** \\n Reduce loading time, improve usability, and make the best out of SEO. Developing scalable components with a comprehensive, easy-to-use toolset, you can build stores faster than ever.\",\n \"blockClass\": \"about\"\n }\n }\n}\n\n```" } ]
code_pocfamiliabercomat_ebdfbb38
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/store/blocks/product-price.jsonc from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"flex-layout.row#selling-price\": {\n \"props\": {\n \"colGap\": 2,\n \"preserveLayoutOnMobile\": true,\n \"preventHorizontalStretch\": true,\n \"marginBottom\": 4\n },\n \"children\": [\n \"product-selling-price\"\n ]\n },\n\n \"flex-layout.row#list-price-savings\": {\n \"props\": {\n \"colGap\": 2,\n \"preserveLayoutOnMobile\": true,\n \"preventHorizontalStretch\": true,\n \"marginBottom\": 2,\n \"marginTop\": 5\n },\n \"children\": [\n \"product-list-price\",\n \"product-price-savings\"\n ]\n }\n}\n\n```" } ]
code_pocfamiliabercomat_c54fa7bb
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/store/blocks/minicart.jsonc from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"add-to-cart-button\": {\n \"props\": {\n \"addToCartFeedback\": \"customEvent\",\n \"customPixelEventId\": \"add-to-cart-button\"\n }\n },\n\n \"minicart.v2\": {\n \"props\": {\n \"customPixelEventId\": \"add-to-cart-button\"\n },\n \"children\": [\"minicart-base-content\"]\n }\n}\n\n```" } ]
code_pocfamiliabercomat_d336c178
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/store/blocks/search.jsonc from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"store.search\": {\n \"blocks\": [\"search-result-layout\"],\n \"props\": {\n \"context\": {\n \"skusFilter\": \"ALL\",\n \"simulationBehavior\": \"skip\"\n }\n }\n },\n\n \"store.search#brand\": {\n \"blocks\": [\"search-result-layout\"],\n \"props\": {\n \"context\": {\n \"orderByField\": \"OrderByReleaseDateDESC\",\n \"hideUnavailableItems\": true,\n \"maxItemsPerPage\": 10,\n \"skusFilter\": \"ALL\",\n \"simulationBehavior\": \"skip\"\n }\n }\n },\n\n \"store.search#department\": {\n \"blocks\": [\"search-result-layout\"],\n \"props\": {\n \"context\": {\n \"skusFilter\": \"ALL\",\n \"simulationBehavior\": \"skip\"\n }\n }\n },\n\n \"store.search#category\": {\n \"blocks\": [\"search-result-layout\"],\n \"props\": {\n \"context\": {\n \"skusFilter\": \"ALL\",\n \"simulationBehavior\": \"skip\"\n }\n }\n },\n\n \"store.search#subcategory\": {\n \"blocks\": [\"search-result-layout\"],\n \"props\": {\n \"context\": {\n \"skusFilter\": \"ALL\",\n \"simulationBehavior\": \"skip\"\n }\n }\n },\n\n \"search-result-layout\": {\n \"blocks\": [\n \"search-result-layout.desktop\",\n \"search-result-layout.mobile\",\n \"search-not-found-layout\"\n ]\n },\n\n \"search-result-layout.desktop\": {\n \"children\": [\n \"flex-layout.row#searchbread\",\n \"flex-layout.row#searchtitle\",\n \"flex-layout.row#result\"\n ],\n \"props\": {\n \"pagination\": \"show-more\",\n \"preventRouteChange\": false,\n \"defaultGalleryLayout\": \"grid\"\n }\n },\n \"flex-layout.row#searchbread\": {\n \"children\": [\"breadcrumb.search\"],\n \"props\": {\n \"preserveLayoutOnMobile\": true,\n \"fullWidth\": true\n }\n },\n \"flex-layout.row#searchtitle\": {\n \"children\": [\"search-title.v2\"]\n },\n \"flex-layout.row#result\": {\n \"children\": [\"flex-layout.col#filter\", \"flex-layout.col#content\"],\n \"props\": {\n \"preventHorizontalStretch\": true,\n \"fullWidth\": true\n }\n },\n \"flex-layout.col#filter\": {\n \"children\": [\"filter-navigator.v3\"],\n \"props\": {\n \"blockClass\": \"filterCol\"\n }\n },\n \"flex-layout.col#content\": {\n \"children\": [\n \"flex-layout.row#searchinfo\",\n \"flex-layout.row#fetchprevious\",\n \"flex-layout.row#products\",\n \"flex-layout.row#fetchmore\"\n ],\n \"props\": {\n \"width\": \"grow\",\n \"preventVerticalStretch\": true\n }\n },\n \"flex-layout.row#searchinfo\": {\n \"children\": [\"flex-layout.col#productCount\", \"flex-layout.row#orderByAndSwitcher\"]\n },\n \"flex-layout.row#orderByAndSwitcher\": {\n \"children\": [\"order-by.v2\", \"gallery-layout-switcher\"],\n \"props\": {\n \"horizontalAlign\": \"right\",\n \"preventHorizontalStretch\": true,\n \"blockClass\": \"orderByAndSwitcher\",\n \"colGap\": 3\n }\n },\n \"flex-layout.col#productCount\": {\n \"children\": [\"total-products.v2\"],\n \"props\": {\n \"blockClass\": \"productCountCol\"\n }\n },\n \"flex-layout.row#fetchprevious\": {\n \"props\": {\n \"marginBottom\": 3\n },\n \"children\": [\"search-fetch-previous\"]\n },\n \"flex-layout.row#fetchmore\": {\n \"props\": {\n \"marginTop\": 3\n },\n \"children\": [\"search-fetch-more\"]\n },\n \"search-fetch-previous\": {\n \"props\": {\n \"htmlElementForButton\": \"a\"\n }\n },\n \"search-fetch-more\": {\n \"props\": {\n \"htmlElementForButton\": \"a\"\n }\n },\n \"flex-layout.row#products\": {\n \"children\": [\"search-content\"]\n },\n \"search-content\": {\n \"blocks\": [\"gallery\", \"not-found\"]\n },\n\n \"search-result-layout.mobile\": {\n \"children\": [\n \"flex-layout.row#searchinfomobile\",\n \"flex-layout.row#searchbread\",\n \"flex-layout.row#productCountMobile\",\n \"flex-layout.row#fetchprevious\",\n \"flex-layout.row#contentmobile\",\n \"flex-layout.row#fetchmore\"\n ],\n \"props\": {\n \"pagination\": \"show-more\",\n \"mobileLayout\": {\n \"mode1\": \"small\",\n \"mode2\": \"normal\"\n },\n \"defaultGalleryLayout\": \"grid\"\n }\n },\n \"flex-layout.row#contentmobile\": {\n \"children\": [\"search-content\"],\n \"props\": {\n \"preserveLayoutOnMobile\": true\n }\n },\n\n \"flex-layout.row#searchinfomobile\": {\n \"children\": [\n \"flex-layout.col#orderByMobile\",\n \"flex-layout.col#filterMobile\",\n \"flex-layout.col#switcherMobile\"\n ],\n \"props\": {\n \"preserveLayoutOnMobile\": true,\n \"colSizing\": \"auto\",\n \"colJustify\": \"around\"\n }\n },\n\n \"flex-layout.col#orderByMobile\": {\n \"children\": [\"order-by.v2\"],\n \"props\": {\n \"blockClass\": \"orderByMobileCol\"\n }\n },\n\n \"flex-layout.row#productCountMobile\": {\n \"children\": [\"total-products.v2\"],\n \"props\": {\n \"blockClass\": \"productCountMobileRow\"\n }\n },\n\n \"flex-layout.col#filterMobile\": {\n \"children\": [\"filter-navigator.v3\"],\n \"props\": {\n \"blockClass\": \"filterMobileCol\"\n }\n },\n \"flex-layout.col#switcherMobile\": {\n \"children\": [\"gallery-layout-switcher\"],\n \"props\": {\n \"verticalAlign\": \"middle\"\n }\n },\n \"search-not-found-layout\": {\n \"children\": [\"flex-layout.row#searchbread\", \"flex-layout.row#notfound\"]\n },\n\n \"flex-layout.row#notfound\": {\n \"children\": [\"not-found\"],\n \"props\": {\n \"fullWidth\": true\n }\n },\n\n \"breadcrumb\": {\n \"props\": {\n \"showOnMobile\": true\n }\n },\n\n \"gallery\": {\n \"props\": {\n \"layouts\": [\n {\n \"name\": \"grid\",\n \"component\": \"GridSummary\",\n \"itemsPerRow\": {\n \"(min-width:1300px)\": 4,\n \"desktop\": 3,\n \"tablet\": 3,\n \"phone\": 2\n }\n },\n {\n \"name\": \"list\",\n \"component\": \"ListSummary\",\n \"itemsPerRow\": 1\n }\n ],\n \"ListSummary\": \"product-summary.shelf#listLayout\",\n \"GridSummary\": \"product-summary.shelf\"\n }\n },\n \"gallery-layout-switcher\": {\n \"children\": [\n /*\n * For accessbility to work properly,\n * It's important to define the options in the same order as the layouts\n */\n \"gallery-layout-option#grid\",\n \"gallery-layout-option#list\"\n ]\n },\n \"gallery-layout-option#grid\": {\n \"props\": {\n \"name\": \"grid\"\n },\n \"children\": [\n \"icon-grid\",\n \"responsive-layout.desktop#textOptionGrid\"\n ]\n },\n \"gallery-layout-option#list\": {\n \"props\": {\n \"name\": \"list\"\n },\n \"children\": [\n \"icon-inline-grid\",\n \"responsive-layout.desktop#textOptionList\"\n ]\n },\n \"responsive-layout.desktop#textOptionGrid\": {\n \"children\": [\n \"rich-text#option-grid\"\n ]\n },\n \"responsive-layout.desktop#textOptionList\": {\n \"children\": [\n \"rich-text#option-list\"\n ]\n },\n \"rich-text#option-grid\": {\n \"props\": {\n \"text\": \"Grid\",\n \"textColor\": \"c-auto\",\n \"blockClass\": \"layout-option\"\n }\n },\n \"rich-text#option-list\": {\n \"props\": {\n \"text\": \"List\",\n \"textColor\": \"c-auto\",\n \"blockClass\": \"layout-option\"\n }\n }\n}\n\n```" } ]
code_pocfamiliabercomat_d07ceea3
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/store/blocks/contact.jsonc from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"store.custom#contact-us\": {\n \"children\": [\n \"flex-layout.row#contact-us\"\n ]\n },\n\n \"flex-layout.row#contact-us\": {\n \"props\": {\n \"blockClass\": \"contact\"\n },\n \"children\": [\n \"flex-layout.col#contact-us\"\n ]\n },\n\n \"flex-layout.col#contact-us\": {\n \"children\": [\n \"rich-text#contact-us\",\n \"form#contact-us\"\n ]\n },\n \"rich-text#contact-us\": {\n \"props\": {\n \"text\": \"## Contact Us\"\n }\n },\n\n \"form#contact-us\": {\n \"props\": {\n \"entity\": \"contact\",\n \"schema\": \"site-contact\"\n },\n \"blocks\": [\n \"form-success#contact-us\"\n ],\n \"children\": [\n \"form-input.text#title\",\n \"form-input.text#name\",\n \"form-input.text#email\",\n \"form-input.textarea#message\",\n \"form-submit#contact\"\n ]\n },\n\n \"form-success#contact-us\": {\n \"children\": [\n \"rich-text#success-submit\"\n ]\n },\n \"rich-text#success-submit\": {\n \"props\": {\n \"text\": \"Thanks for reaching out! We will come back shortly.\",\n \"textAlignment\": \"CENTER\",\n \"textPosition\": \"CENTER\"\n }\n },\n\n \"form-input.text#title\": {\n \"props\": {\n \"pointer\": \"#/properties/title\"\n }\n },\n \"form-input.text#name\": {\n \"props\": {\n \"pointer\": \"#/properties/name\"\n }\n },\n \"form-input.text#email\": {\n \"props\": {\n \"pointer\": \"#/properties/email\"\n }\n },\n \"form-input.textarea#message\": {\n \"props\": {\n \"pointer\": \"#/properties/message\"\n }\n },\n\n \"form-submit#contact\": {\n \"props\": {\n \"label\": \"Submit\"\n }\n }\n}\n\n```" } ]
code_pocfamiliabercomat_148e8ce8
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/store/blocks/orderplaced.jsonc from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"order-placed\": {\n \"blocks\": [\"op-header\", \"op-order\"]\n },\n \"op-header\": {\n \"children\": [\n \"op-section#confirmation\",\n \"op-section#notices\",\n \"op-summary-section\",\n \"op-bank-invoice-section\"\n ]\n },\n \"op-section#confirmation\": {\n \"props\": {\n \"name\": \"confirmation\",\n \"marginBottom\": 9,\n \"borderless\": true\n },\n \"children\": [\n \"op-confirmation-icon\",\n \"op-confirmation-title\",\n \"op-confirmation-message\",\n \"flex-layout.row#confirmation-buttons\"\n ]\n },\n \"flex-layout.row#confirmation-buttons\": {\n \"props\": {\n \"blockClass\": \"confirmationButtons\",\n \"marginTop\": 8,\n \"marginBottom\": 8,\n \"horizontalAlign\": \"center\",\n \"preventHorizontalStretch\": true,\n \"preserveLayoutOnMobile\": true\n },\n \"children\": [\"flex-layout.col#confirmation-buttons\"]\n },\n \"flex-layout.col#confirmation-buttons\": {\n \"children\": [\"op-print-button\"]\n },\n \"op-section#notices\": {\n \"props\": {\n \"name\": \"notices\",\n \"marginBottom\": 9,\n \"borderless\": true\n },\n \"children\": [\"op-notices\"]\n },\n // each order section\n \"op-order\": {\n \"children\": [\n \"flex-layout.row#order-header\",\n \"op-order-split-notice\",\n \"op-order-customer\",\n \"op-section#payments\",\n \"op-section#pickup-packages\",\n \"op-section#delivery-packages\",\n \"op-order-takeaway-packages\",\n \"op-order-total\"\n ]\n },\n // each order header\n \"flex-layout.row#order-header\": {\n \"props\": {\n \"fullWidth\": true,\n \"colSizing\": \"auto\",\n \"colGap\": 5,\n \"marginBottom\": 5\n },\n \"children\": [\n \"flex-layout.col#order-header-info\",\n \"flex-layout.col#order-header-options\"\n ]\n },\n \"flex-layout.col#order-header-info\": {\n \"children\": [\"op-order-number\", \"op-order-datetime\", \"op-order-seller\"]\n },\n \"flex-layout.col#order-header-options\": {\n \"children\": [\"responsive-layout.desktop#order-options-desktop\"]\n },\n \"responsive-layout.desktop#order-options-desktop\": {\n \"children\": [\"op-order-options\"]\n },\n // payment section\n \"op-section#payments\": {\n \"props\": {\n \"name\": \"paymentMethods\"\n },\n \"children\": [\n \"op-order-payment\",\n \"responsive-layout.mobile#order-options-mobile\"\n ]\n },\n // bottom of top section of order header\n \"responsive-layout.mobile#order-options-mobile\": {\n \"children\": [\"op-order-options#mobile\"]\n },\n \"op-order-options#mobile\": {\n \"props\": {\n \"blockClass\": \"mobile\",\n \"fullWidth\": true\n }\n },\n \"op-section#pickup-packages\": {\n \"props\": {\n \"name\": \"pickupPackages\"\n },\n \"children\": [\"op-order-pickup-packages\"]\n },\n \"op-section#delivery-packages\": {\n \"props\": {\n \"name\": \"deliveryPackages\"\n },\n \"children\": [\"op-order-delivery-packages\"]\n }\n}\n\n```" } ]
code_pocfamiliabercomat_ae198609
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/store/blocks/faq.jsonc from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"store.custom#faq\": {\n \"children\": [\n \"flex-layout.row#faq\"\n ]\n },\n\n \"flex-layout.row#faq\": {\n \"props\": {\n \"blockClass\": \"faq\"\n },\n \"children\": [\n \"flex-layout.col#faq\"\n ]\n },\n\n \"flex-layout.col#faq\": {\n \"children\": [\n \"rich-text#faq\",\n \"disclosure-layout-group#group\"\n ]\n },\n \"rich-text#faq\": {\n \"props\": {\n \"text\": \"## FAQ\"\n }\n },\n\n \"disclosure-layout-group#group\": {\n \"children\": [\n \"disclosure-layout#first\",\n \"disclosure-layout#second\",\n \"disclosure-layout#third\",\n \"disclosure-layout#fourth\"\n ]\n },\n\n \"disclosure-layout#first\": {\n \"props\": {\n \"animated\": true\n },\n \"children\": [\"disclosure-trigger#first\", \"disclosure-content#first\"]\n },\n \"disclosure-trigger#first\": {\n \"props\": {\n \"blockClass\": \"question\",\n \"as\": \"div\"\n },\n \"children\": [\"disclosure-state-indicator\", \"rich-text#question1\"]\n },\n \"disclosure-content#first\": {\n \"props\": {\n \"blockClass\": \"answer\"\n },\n \"children\": [\"rich-text#answer1\"]\n },\n \"rich-text#question1\": {\n \"props\": {\n \"text\": \"How can I change my shipping address?\"\n }\n },\n \"rich-text#answer1\": {\n \"props\": {\n \"text\": \"Call us at the number (212) 1234-1234.\"\n }\n },\n\n \"disclosure-layout#second\": {\n \"props\": {\n \"animated\": true\n },\n \"children\": [\"disclosure-trigger#second\", \"disclosure-content#second\"]\n },\n \"disclosure-trigger#second\": {\n \"props\": {\n \"blockClass\": \"question\",\n \"as\": \"div\"\n },\n \"children\": [\"disclosure-state-indicator\", \"rich-text#question2\"]\n },\n \"disclosure-content#second\": {\n \"props\": {\n \"blockClass\": \"answer\"\n },\n \"children\": [\"rich-text#answer2\"]\n },\n \"rich-text#question2\": {\n \"props\": {\n \"text\": \"How can I track my order?\"\n }\n },\n \"rich-text#answer2\": {\n \"props\": {\n \"text\": \"After logging into your account, you can find this info at the link Orders.\"\n }\n },\n\n\n \"disclosure-layout#third\": {\n \"props\": {\n \"animated\": true\n },\n \"children\": [\"disclosure-trigger#third\", \"disclosure-content#third\"]\n },\n \"disclosure-trigger#third\": {\n \"props\": {\n \"blockClass\": \"question\",\n \"as\": \"div\"\n },\n \"children\": [\"disclosure-state-indicator\", \"rich-text#question3\"]\n },\n \"disclosure-content#third\": {\n \"props\": {\n \"blockClass\": \"answer\"\n },\n \"children\": [\"rich-text#answer3\"]\n },\n \"rich-text#question3\": {\n \"props\": {\n \"text\": \"How can I change my shipping address?\"\n }\n },\n \"rich-text#answer3\": {\n \"props\": {\n \"text\": \"Call us at the number (212) 1234-1234.\"\n }\n },\n\n\n \"disclosure-layout#fourth\": {\n \"props\": {\n \"animated\": true\n },\n \"children\": [\"disclosure-trigger#fourth\", \"disclosure-content#fourth\"]\n },\n \"disclosure-trigger#fourth\": {\n \"props\": {\n \"blockClass\": \"question\",\n \"as\": \"div\"\n },\n \"children\": [\"disclosure-state-indicator\", \"rich-text#question4\"]\n },\n \"disclosure-content#fourth\": {\n \"props\": {\n \"blockClass\": \"answer\"\n },\n \"children\": [\"rich-text#answer2\"]\n },\n \"rich-text#question4\": {\n \"props\": {\n \"text\": \"How can I track my order?\"\n }\n },\n \"rich-text#answer4\": {\n \"props\": {\n \"text\": \"After logging into your account, you can find this info at the link Orders.\"\n }\n },\n\n\n \"disclosure-state-indicator\": {\n \"props\": {\n \"Show\": \"icon-caret#down\",\n \"Hide\": \"icon-caret#up\"\n }\n },\n \"icon-caret#down\": {\n \"props\": {\n \"orientation\": \"down\"\n }\n },\n \"icon-caret#up\": {\n \"props\": {\n \"orientation\": \"up\"\n }\n }\n}\n\n```" } ]
code_pocfamiliabercomat_82cbaa51
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/store/blocks/home/home.jsonc from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"store.home\": {\n \"blocks\": [\n \"conditionalFrontBlock#id1\",\n \"conditionalFrontBlock#id2\",\n \"conditionalFrontBlock#id3\",\n /* You can make references to blocks defined in other files.\n * For example, `flex-layout.row#deals` is defined in the `deals.json` file. */\n // \"flex-layout.row#deals\",\n // \"__fold__\",\n // \"rich-text#shelf-title\",\n \"info-card#home\",\n \"rich-text#question\",\n \"rich-text#link\",\n \"newsletter\"\n ]\n },\n \n \"conditionalFrontBlock#id1\": {\n \"props\": {\n \"frontValue\": 1\n },\n \"children\": [\n \"list-context.image-list#banner-1\",\n \"rich-text#shelf-title1\",\n \"flex-layout.row#shelf\"\n ]\n },\n\n \"conditionalFrontBlock#id2\": {\n \"props\": {\n \"frontValue\": 2\n },\n \"children\": [\n \"list-context.image-list#banner-2\",\n \"rich-text#shelf-title2\",\n \"flex-layout.row#shelf\"\n ]\n },\n\n \"conditionalFrontBlock#id3\": {\n \"props\": {\n \"frontValue\": 3\n },\n \"children\": [\n \"list-context.image-list#banner-3\",\n \"rich-text#shelf-title3\",\n \"flex-layout.row#shelf\"\n ]\n },\n\n \"rich-text#shelf-title1\": {\n \"props\": {\n \"text\": \"## Productos Destacados 1\",\n \"blockClass\": \"shelfTitle\"\n },\n \"title\": \"FC01 - Richtext\"\n },\n\n \"rich-text#shelf-title2\": {\n \"props\": {\n \"text\": \"## Productos Destacados 2\",\n \"blockClass\": \"shelfTitle\"\n },\n \"title\": \"FC02 - Richtext\"\n },\n\n \"rich-text#shelf-title3\": {\n \"props\": {\n \"text\": \"## Productos Destacados 3\",\n \"blockClass\": \"shelfTitle\"\n },\n \"title\": \"FC03 - Richtext\"\n },\n\n \"list-context.image-list#banner-1\": {\n \"children\": [\"slider-layout#demo-images\"],\n \"props\": {\n \"height\": 570,\n \"preload\": true,\n \"images\": [\n {\n \"image\": \"https://familiabercomat.vtexassets.com/assets/vtex.file-manager-graphql/images/b89c2a70-6ccd-4167-8351-1aa73b6badea___3013b50e15dfd005d0c12cd91e7fae86.png\",\n \"mobileImage\": \"https://familiabercomat.vtexassets.com/assets/vtex.file-manager-graphql/images/b89c2a70-6ccd-4167-8351-1aa73b6badea___3013b50e15dfd005d0c12cd91e7fae86.png\"\n },\n {\n \"image\": \"https://familiabercomat.vtexassets.com/assets/vtex.file-manager-graphql/images/bafe160d-7863-4055-ab13-a36c2f411d76___43ce53bb97af20a682b6c4e9bc65c55f.png\",\n \"mobileImage\": \"https://familiabercomat.vtexassets.com/assets/vtex.file-manager-graphql/images/bafe160d-7863-4055-ab13-a36c2f411d76___43ce53bb97af20a682b6c4e9bc65c55f.png\"\n },\n {\n \"image\": \"https://familiabercomat.vtexassets.com/assets/vtex.file-manager-graphql/images/d436cfa1-486b-4d25-96ec-59568f281d38___a5b40e1874d9e28c34170b9eb6427936.png\",\n \"mobileImage\": \"https://familiabercomat.vtexassets.com/assets/vtex.file-manager-graphql/images/d436cfa1-486b-4d25-96ec-59568f281d38___a5b40e1874d9e28c34170b9eb6427936.png\"\n }\n ]\n },\n \"title\": \"FC01 - Banner\"\n },\n\n \"list-context.image-list#banner-2\": {\n \"children\": [\"slider-layout#demo-images\"],\n \"props\": {\n \"height\": 570,\n \"preload\": true,\n \"images\": [\n {\n \"image\": \"https://familiabercomat.vtexassets.com/assets/vtex.file-manager-graphql/images/309f5f8a-ce0c-45b7-b881-71b48ee185ee___47066b8f96cdacd94e44e5ff7fd0ea35.webp\",\n \"mobileImage\": \"https://familiabercomat.vtexassets.com/assets/vtex.file-manager-graphql/images/309f5f8a-ce0c-45b7-b881-71b48ee185ee___47066b8f96cdacd94e44e5ff7fd0ea35.webp\"\n },\n {\n \"image\": \"https://familiabercomat.vtexassets.com/assets/vtex.file-manager-graphql/images/4b318bf3-eac8-4b99-bf94-f14a2fcd9657___0152e1eaa7e39f38f6c267c72bbcbdc4.jpeg\",\n \"mobileImage\": \"https://familiabercomat.vtexassets.com/assets/vtex.file-manager-graphql/images/4b318bf3-eac8-4b99-bf94-f14a2fcd9657___0152e1eaa7e39f38f6c267c72bbcbdc4.jpeg\"\n },\n {\n \"image\": \"https://familiabercomat.vtexassets.com/assets/vtex.file-manager-graphql/images/fd7d163c-39cf-4609-9d2a-0cb59392fb2e___85402d41958cc04da2a2ef23e0254704.jpeg\",\n \"mobileImage\": \"https://familiabercomat.vtexassets.com/assets/vtex.file-manager-graphql/images/fd7d163c-39cf-4609-9d2a-0cb59392fb2e___85402d41958cc04da2a2ef23e0254704.jpeg\"\n }\n ]\n },\n \"title\": \"FC02 - Banner\"\n },\n\n \"list-context.image-list#banner-3\": {\n \"children\": [\"slider-layout#demo-images\"],\n \"props\": {\n \"height\": 570,\n \"preload\": true,\n \"images\": [\n {\n \"image\": \"https://familiabercomat.vtexassets.com/assets/vtex.file-manager-graphql/images/37ee2d42-ff65-465d-9849-3883060bfb75___b9fead3a4a5c9a45e44ca42aff799cec.jpeg\",\n \"mobileImage\": \"https://familiabercomat.vtexassets.com/assets/vtex.file-manager-graphql/images/37ee2d42-ff65-465d-9849-3883060bfb75___b9fead3a4a5c9a45e44ca42aff799cec.jpeg\"\n },\n {\n \"image\": \"https://familiabercomat.vtexassets.com/assets/vtex.file-manager-graphql/images/f018cbdb-4bd8-4531-84ca-94b507ef7f17___b45a86290af619b1f0420d307d8eadeb.jpeg\",\n \"mobileImage\": \"https://familiabercomat.vtexassets.com/assets/vtex.file-manager-graphql/images/f018cbdb-4bd8-4531-84ca-94b507ef7f17___b45a86290af619b1f0420d307d8eadeb.jpeg\"\n },\n {\n \"image\": \"https://familiabercomat.vtexassets.com/assets/vtex.file-manager-graphql/images/81cf5409-9017-4fcc-b68e-68c2243a9a8a___ba8b8c31514198e347dbc2608c2318b2.jpeg\",\n \"mobileImage\": \"https://familiabercomat.vtexassets.com/assets/vtex.file-manager-graphql/images/81cf5409-9017-4fcc-b68e-68c2243a9a8a___ba8b8c31514198e347dbc2608c2318b2.jpeg\"\n }\n ]\n },\n \"title\": \"FC03 - Banner\"\n },\n\n \"slider-layout#demo-images\": {\n \"props\": {\n \"itemsPerPage\": {\n \"desktop\": 1,\n \"tablet\": 1,\n \"phone\": 1\n },\n \"infinite\": true,\n \"showNavigationArrows\": \"desktopOnly\",\n \"blockClass\": \"carousel\"\n }\n },\n\n \"rich-text#shelf-title\": {\n \"props\": {\n \"text\": \"## Materiales\",\n \"blockClass\": \"shelfTitle\"\n }\n },\n\n \"flex-layout.row#shelf\": {\n \"children\": [\"list-context.product-list#demo1\"]\n },\n\n \"list-context.product-list#demo1\": {\n \"blocks\": [\"product-summary.shelf\"],\n \"children\": [\"slider-layout#demo-products\"],\n \"props\": {\n \"orderBy\": \"OrderByTopSaleDESC\"\n }\n },\n\n \"slider-layout#demo-products\": {\n \"props\": {\n \"itemsPerPage\": {\n \"desktop\": 4,\n \"tablet\": 3,\n \"phone\": 1\n },\n \"infinite\": true,\n \"fullWidth\": false,\n \"blockClass\": \"shelf\"\n }\n },\n\n \"info-card#home\": {\n \"props\": {\n \"id\": \"info-card-home\",\n \"isFullModeStyle\": false,\n \"textPosition\": \"left\",\n \"imageUrl\": \"https://storecomponents.vteximg.com.br/arquivos/banner-infocard2.png\",\n \"headline\": \"Clearance Sale\",\n \"callToActionText\": \"DISCOVER\",\n \"callToActionUrl\": \"/sale/d\",\n \"blockClass\": \"info-card-home\",\n \"textAlignment\": \"center\"\n }\n },\n\n \"rich-text#question\": {\n \"props\": {\n \"text\": \"**This is an example store built using the VTEX platform.\\nWant to know more?**\",\n \"blockClass\": \"question\"\n }\n },\n\n \"rich-text#link\": {\n \"props\": {\n \"text\": \"\\n**Reach us at**\\nwww.vtex.com.br\",\n \"blockClass\": \"link\"\n }\n }\n}\n\n```" } ]
code_pocfamiliabercomat_a78e0c12
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/store/blocks/home/deals.json from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"flex-layout.row#deals\": {\n \"children\": [\n \"flex-layout.col#deals1\",\n \"flex-layout.col#deals2\",\n \"flex-layout.col#deals3\",\n \"flex-layout.col#deals4\"\n ],\n \"props\": {\n \"blockClass\": \"deals\"\n }\n },\n\n \"flex-layout.col#deals1\": {\n \"children\": [\n \"image#deal1\",\n \"rich-text#deal1\"\n ]\n },\n \"image#deal1\": {\n \"props\": {\n \"src\": \"https://storecomponents.vteximg.com.br/arquivos/box.png\",\n \"maxHeight\": \"24px\"\n }\n },\n \"rich-text#deal1\": {\n \"props\": {\n \"text\": \"Free shipping\",\n \"blockClass\": \"deals\"\n }\n },\n \"flex-layout.col#deals2\": {\n \"children\": [\n \"image#deal2\",\n \"rich-text#deal2\"\n ]\n },\n \"image#deal2\": {\n \"props\": {\n \"src\": \"https://storecomponents.vteximg.com.br/arquivos/delivery-fast.png\",\n \"maxHeight\": \"24px\"\n }\n },\n \"rich-text#deal2\": {\n \"props\": {\n \"text\": \"One day delivery\",\n \"blockClass\": \"deals\"\n }\n },\n \"flex-layout.col#deals3\": {\n \"children\": [\n \"image#deal3\",\n \"rich-text#deal3\"\n ]\n },\n \"image#deal3\": {\n \"props\": {\n \"src\": \"https://storecomponents.vteximg.com.br/arquivos/store.png\",\n \"maxHeight\": \"24px\"\n }\n },\n \"rich-text#deal3\": {\n \"props\": {\n \"text\": \"Pick up in store\",\n \"blockClass\": \"deals\"\n }\n },\n \"flex-layout.col#deals4\": {\n \"children\": [\n \"image#deal4\",\n \"rich-text#deal4\"\n ]\n },\n \"image#deal4\": {\n \"props\": {\n \"src\": \"https://storecomponents.vteximg.com.br/arquivos/coupon.png\",\n \"maxHeight\": \"24px\"\n }\n },\n \"rich-text#deal4\": {\n \"props\": {\n \"text\": \"Exclusive deals\",\n \"blockClass\": \"deals\"\n }\n }\n}\n\n```" } ]
code_pocfamiliabercomat_fda9e0e8
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/store/blocks/footer/footer.json from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"footer\": {\n \"blocks\": [\"footer-layout.desktop\", \"footer-layout.mobile\"]\n },\n \"footer-layout.desktop\": {\n \"children\": [\n \"flex-layout.row#footer-1-desktop\",\n \"flex-layout.row#footer-2-desktop\",\n \"flex-layout.row#footer-3-desktop\"\n ]\n },\n \"flex-layout.row#footer-1-desktop\": {\n \"children\": [\n \"vtex.menu@2.x:menu#Products\",\n \"vtex.menu@2.x:menu#footer-clothing\",\n \"vtex.menu@2.x:menu#footer-decoration\",\n \"vtex.menu@2.x:menu#footer-bags\",\n \"footer-spacer\",\n \"social-networks\"\n ],\n \"props\": {\n \"blockClass\": \"menu-row\",\n \"paddingTop\": 6,\n \"paddingBottom\": 3\n }\n },\n\n \"social-networks\": {\n \"props\": {\n \"socialNetworks\": [\n {\n \"name\": \"Facebook\",\n \"url\": \"https://www.facebook.com/vtexonline/\"\n },\n {\n \"name\": \"Instagram\",\n \"url\": \"https://www.instagram.com/vtextruecloud/\"\n },\n {\n \"name\": \"Twitter\",\n \"url\": \"https://twitter.com/vtexonline\"\n },\n {\n \"name\": \"Youtube\",\n \"url\": \"https://www.youtube.com/user/VTEXTV\"\n }\n ]\n }\n },\n\n \"flex-layout.row#footer-2-desktop\": {\n \"children\": [\"accepted-payment-methods\"],\n \"props\": {\n \"blockClass\": \"payment-methods\"\n }\n },\n \"accepted-payment-methods\": {\n \"props\": {\n \"paymentMethods\": [\"MasterCard\", \"Visa\", \"Diners Club\"]\n }\n },\n\n \"flex-layout.row#footer-3-desktop\": {\n \"children\": [\"rich-text#footer\"],\n \"props\": {\n \"blockClass\": \"credits\"\n }\n },\n \"rich-text#footer\": {\n \"props\": {\n \"text\": \"All stock and product photos are from photos.icons8.com\",\n \"blockClass\": \"footer\"\n }\n },\n\n \"footer-layout.mobile\": {\n \"children\": [\n \"flex-layout.row#1-footer-mobile\",\n \"flex-layout.row#2-footer-mobile\"\n ]\n },\n \"flex-layout.row#2-footer-mobile\": {\n \"children\": [\"flex-layout.col#footer-1-mobile\"],\n \"props\": {\n \"blockClass\": \"payment-methods\",\n \"paddingTop\": 4,\n \"paddingBottom\": 4\n }\n },\n \"flex-layout.col#footer-1-mobile\": {\n \"children\": [\n \"accepted-payment-methods\",\n \"social-networks\",\n \"rich-text#footer-mobile\"\n ],\n \"props\": {\n \"blockClass\": \"payment-methods\",\n \"paddingTop\": 4,\n \"paddingBottom\": 4,\n \"rowGap\": 4\n }\n },\n \"flex-layout.row#1-footer-mobile\": {\n \"props\": {\n \"paddingTop\": 4,\n \"paddingBottom\": 4\n },\n \"children\": [\"vtex.menu@2.x:menu#footer-mobile\"]\n },\n \"rich-text#footer-mobile\": {\n \"props\": {\n \"text\": \"All stock and product photos are from photos.icons8.com\",\n \"blockClass\": \"footer\"\n }\n }\n}\n\n```" } ]
code_pocfamiliabercomat_73956c20
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/store/blocks/footer/menu.json from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"vtex.menu@2.x:menu#Products\": {\n \"props\": {\n \"orientation\": \"vertical\"\n },\n \"children\": [\n \"menu-item#news\",\n \"menu-item#blackfriday\",\n \"menu-item#sale\",\n \"menu-item#personalization\"\n ]\n },\n \"menu-item#news\": {\n \"props\": {\n \"id\": \"menu-item-news\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"#\",\n \"noFollow\": false,\n \"tagTitle\": \"News\",\n \"text\": \"News\"\n }\n }\n },\n \"menu-item#blackfriday\": {\n \"props\": {\n \"id\": \"menu-item-black-friday\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"#\",\n \"noFollow\": false,\n \"tagTitle\": \"BlackFriday\",\n \"text\": \"Black Friday\"\n }\n }\n },\n \"menu-item#sale\": {\n \"props\": {\n \"id\": \"menu-item-sale\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"#\",\n \"noFollow\": false,\n \"tagTitle\": \"Sale\",\n \"text\": \"Sale\"\n }\n }\n },\n \"menu-item#personalization\": {\n \"props\": {\n \"id\": \"menu-item-personalization\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"#\",\n \"noFollow\": false,\n \"tagTitle\": \"Personalization\",\n \"text\": \"Personalization\"\n }\n }\n },\n\n \"vtex.menu@2.x:menu#footer-decoration\": {\n \"props\": {\n \"orientation\": \"vertical\"\n },\n \"children\": [\n \"menu-item#smartphones\",\n \"menu-item#videogames\",\n \"menu-item#tvs\"\n ]\n },\n\n \"menu-item#smartphones\": {\n \"props\": {\n \"id\": \"menu-item-smartphones\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/decoration/smartphones\",\n \"noFollow\": true,\n \"tagTitle\": \"Smartphones\",\n \"text\": \"Smartphones\"\n }\n }\n },\n\n \"menu-item#videogames\": {\n \"props\": {\n \"id\": \"menu-item-videogames\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/decoration/videogames\",\n \"noFollow\": true,\n \"tagTitle\": \"Videogames\",\n \"text\": \"Videogames\"\n }\n }\n },\n\n \"menu-item#tvs\": {\n \"props\": {\n \"id\": \"menu-item-tvs\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/decoration/tvs\",\n \"noFollow\": true,\n \"tagTitle\": \"TVs\",\n \"text\": \"TVs\"\n }\n }\n },\n\n \"vtex.menu@2.x:menu#footer-bags\": {\n \"props\": {\n \"orientation\": \"vertical\"\n },\n \"children\": [\n \"menu-item#bags\",\n \"menu-item#backpacks\",\n \"menu-item#necessaire\"\n ]\n },\n\n \"menu-item#bags\": {\n \"props\": {\n \"id\": \"menu-item-bags\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/bags/d\",\n \"noFollow\": true,\n \"tagTitle\": \"Bags\",\n \"text\": \"Bags\"\n }\n }\n },\n\n \"menu-item#backpacks\": {\n \"props\": {\n \"id\": \"menu-item-backpacks\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/bags/backpacks\",\n \"noFollow\": true,\n \"tagTitle\": \"Backpacks\",\n \"text\": \"Backpacks\"\n }\n }\n },\n\n \"menu-item#necessaire\": {\n \"props\": {\n \"id\": \"menu-item-necessaire\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/bags/necessaire\",\n \"noFollow\": true,\n \"tagTitle\": \"Necessaire\",\n \"text\": \"Necessaire\"\n }\n }\n },\n\n \"vtex.menu@2.x:menu#footer-clothing\": {\n \"props\": {\n \"orientation\": \"vertical\"\n },\n \"children\": [\n \"menu-item#clothing\",\n \"menu-item#shorts\",\n \"menu-item#tank-tops\",\n \"menu-item#shirts\",\n \"menu-item#sweatshirt\",\n \"menu-item#cropped\"\n ]\n },\n\n \"vtex.menu@2.x:menu#footer-mobile\": {\n \"props\": {\n \"orientation\": \"vertical\"\n },\n \"children\": [\n \"menu-item#clothing-mobile\",\n \"menu-item#decoration-mobile\",\n \"menu-item#sale-mobile\"\n ]\n },\n\n \"menu-item#clothing-mobile\": {\n \"props\": {\n \"id\": \"menu-item-category-clothing\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/clothing/d\",\n \"noFollow\": true,\n \"tagTitle\": \"Clothing\",\n \"text\": \"Clothing\"\n }\n },\n \"blocks\": [\"vtex.menu@2.x:submenu.accordion#clothing\"]\n },\n \"vtex.menu@2.x:submenu.accordion#clothing\": {\n \"children\": [\"vtex.menu@2.x:menu#clothing-accordion\"]\n },\n\n \"vtex.menu@2.x:menu#clothing-accordion\": {\n \"props\": {\n \"orientation\": \"vertical\"\n },\n \"children\": [\n \"menu-item#shorts\",\n \"menu-item#tank-tops\",\n \"menu-item#shirts\",\n \"menu-item#sweatshirt\",\n \"menu-item#cropped\"\n ]\n },\n\n \"menu-item#decoration-mobile\": {\n \"props\": {\n \"itemProps\": {\n \"tagTitle\": \"Decoration\",\n \"text\": \"Decoration\"\n }\n },\n \"blocks\": [\"vtex.menu@2.x:submenu.accordion#decoration\"]\n },\n \"vtex.menu@2.x:submenu.accordion#decoration\": {\n \"children\": [\"vtex.menu@2.x:menu#footer-decoration-mobile\"]\n },\n\n \"vtex.menu@2.x:menu#footer-decoration-mobile\": {\n \"props\": {\n \"orientation\": \"vertical\"\n },\n \"children\": [\n \"menu-item#smartphones\",\n \"menu-item#videogames\",\n \"menu-item#tvs\"\n ]\n },\n\n \"menu-item#sale-mobile\": {\n \"props\": {\n \"itemProps\": {\n \"tagTitle\": \"Sale\",\n \"text\": \"Sale\"\n }\n },\n \"blocks\": [\"vtex.menu@2.x:submenu.accordion#sale\"]\n },\n \"vtex.menu@2.x:submenu.accordion#sale\": {\n \"children\": [\"vtex.menu@2.x:menu#footer-sale-mobile\"]\n },\n\n \"vtex.menu@2.x:menu#footer-sale-mobile\": {\n \"props\": {\n \"orientation\": \"vertical\"\n },\n \"children\": [\n \"menu-item#smartphones\",\n \"menu-item#videogames\",\n \"menu-item#tvs\"\n ]\n },\n\n \"menu-item#clothing\": {\n \"props\": {\n \"id\": \"menu-item-category-clothing\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/clothing/d\",\n \"noFollow\": true,\n \"tagTitle\": \"Clothing\",\n \"text\": \"Clothing\"\n }\n }\n },\n\n \"menu-item#shorts\": {\n \"props\": {\n \"id\": \"menu-item-shorts\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/clothing/shorts\",\n \"noFollow\": false,\n \"tagTitle\": \"Shorts\",\n \"text\": \"Shorts\"\n }\n }\n },\n\n \"menu-item#tank-tops\": {\n \"props\": {\n \"id\": \"menu-item-tank-tops\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/clothing/tank-tops\",\n \"noFollow\": false,\n \"tagTitle\": \"Tank tops\",\n \"text\": \"Tank tops\"\n }\n }\n },\n\n \"menu-item#shirts\": {\n \"props\": {\n \"id\": \"menu-item-shirts\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/clothing/shirts\",\n \"noFollow\": false,\n \"tagTitle\": \"Shirts\",\n \"text\": \"Shirts\"\n }\n }\n },\n\n \"menu-item#sweatshirt\": {\n \"props\": {\n \"id\": \"menu-item-sweat-shirts\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/clothing/sweatshirt\",\n \"noFollow\": false,\n \"tagTitle\": \"Sweatshirt\",\n \"text\": \"Sweatshirt\"\n }\n }\n },\n\n \"menu-item#cropped\": {\n \"props\": {\n \"id\": \"menu-item-cropped\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/clothing/cropped\",\n \"noFollow\": false,\n \"tagTitle\": \"Cropped\",\n \"text\": \"Cropped\"\n }\n }\n }\n}\n\n```" } ]
code_pocfamiliabercomat_48b9b008
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/store/blocks/product-summary/product-summary.jsonc from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"product-summary.shelf\": {\n \"children\": [\n \"stack-layout#prodsum\",\n \"product-summary-name\",\n \"flex-layout.col#productRating\",\n \"product-summary-space\",\n \"product-list-price#summary\",\n \"flex-layout.row#selling-price-savings\",\n \"product-installments#summary\",\n \"add-to-cart-button\"\n ]\n },\n \"flex-layout.col#productRating\": {\n \"props\": {\n \"blockClass\": \"productRating\"\n },\n \"children\": [\"product-rating-inline\"]\n },\n\n \"stack-layout#prodsum\": {\n \"children\": [\n \"product-summary-image#shelf\",\n \"vtex.product-highlights@2.x:product-highlights#collection\",\n \"modal-trigger#quickview\" // Check quickview.jsonc\n ]\n },\n\n \"product-summary-image#shelf\": {\n \"props\": {\n \"showBadge\": false,\n \"aspectRatio\": \"1:1\",\n \"maxHeight\": 300\n }\n },\n\n \"vtex.product-highlights@2.x:product-highlights#collection\": {\n \"props\": {\n \"type\": \"collection\"\n },\n \"children\": [\"product-highlight-wrapper\"]\n },\n \"product-highlight-wrapper\": {\n \"props\": {\n \"blockClass\": \"collection\"\n },\n \"children\": [\"product-highlight-text\"]\n },\n \"product-highlight-text\": {\n \"props\": {\n \"message\": \"{highlightName}\"\n }\n },\n\n \"product-list-price#summary\": {\n \"props\": {\n \"blockClass\": \"summary\"\n }\n },\n \"flex-layout.row#selling-price-savings\": {\n \"props\": {\n \"colGap\": 2,\n \"preserveLayoutOnMobile\": true,\n \"preventHorizontalStretch\": true,\n \"marginBottom\": 4\n },\n \"children\": [\n \"product-selling-price#summary\",\n \"product-price-savings#summary\"\n ]\n },\n \"product-installments#summary\": {\n \"props\": {\n \"blockClass\": \"summary\"\n }\n },\n \"product-selling-price#summary\": {\n \"props\": {\n \"blockClass\": \"summary\"\n }\n },\n \"product-price-savings#summary\": {\n \"props\": {\n \"markers\": [\n \"discount\"\n ],\n \"blockClass\": \"summary\"\n }\n }\n}\n\n```" } ]
code_pocfamiliabercomat_045b5880
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/store/blocks/product-summary/quickview.json from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"modal-trigger#quickview\": {\n \"children\": [\n \"icon-expand\",\n \"modal-layout#quickview\"\n ],\n \"props\": {\n \"blockClass\": \"quickview\"\n }\n },\n\n \"modal-layout#quickview\": {\n \"children\": [\n \"modal-header#quickview\",\n \"flex-layout.row#quickview-main-row\"\n ],\n \"props\": {\n \"blockClass\": \"quickview\"\n }\n },\n \"modal-header#quickview\": {\n \"props\": {\n \"blockClass\": \"quickview\"\n }\n },\n\n \"modal-content#quickview\": {\n \"children\": [\n \"vtex.store-components:product-name\",\n \"flex-layout.col#quickviewPrice\",\n \"product-summary-sku-selector#quickview\"\n ],\n \"props\": {\n \"blockClass\": \"quickviewContent\"\n }\n },\n \"flex-layout.col#quickviewPrice\": {\n \"children\": [\n \"flex-layout.row#list-price-savings\",\n \"flex-layout.row#selling-price\",\n \"product-installments\"\n ]\n },\n \"modal-actions#quickview\": {\n \"props\": {\n \"blockClass\": \"quickview\"\n },\n \"children\": [\n \"flex-layout.row#quickview-actions-1\",\n \"flex-layout.row#quickview-actions-2\"\n ]\n },\n \"flex-layout.row#quickview-actions-1\": {\n \"children\": [\n \"flex-layout.col#quickview-product-quantity\",\n \"flex-layout.col#quickview-add-to-card-button\"\n ],\n \"props\": {\n \"colSizing\": \"auto\",\n \"colGap\": 6,\n \"blockClass\": \"addToCartRow\"\n }\n },\n\n \"flex-layout.col#quickview-product-quantity\": {\n \"children\": [\n \"product-summary-quantity#quickview\"\n ]\n },\n \"product-summary-quantity#quickview\": {\n \"props\": {\n \"showLabel\": false,\n \"size\": \"regular\"\n }\n },\n \"flex-layout.col#quickview-add-to-card-button\": {\n \"children\": [\n \"add-to-cart-button\"\n ],\n \"props\": {\n \"width\": \"grow\"\n }\n },\n\n \"flex-layout.row#quickview-actions-2\": {\n \"children\": [\n \"link.product#button-pdp\"\n ]\n },\n \"link.product#button-pdp\": {\n \"props\": {\n \"buttonProps\": {\n \"variant\": \"secondary\"\n },\n \"displayMode\": \"button\",\n \"label\": \"View details\",\n \"href\": \"/{slug}/p\"\n }\n },\n \"flex-layout.row#quickview-main-row\": {\n \"children\": [\n \"flex-layout.col#quickview-images\",\n \"flex-layout.col#quickview-product-details\"\n ],\n \"props\": {\n \"blockClass\": \"quickviewMainRow\"\n }\n },\n \"flex-layout.col#quickview-images\": {\n \"children\": [\n \"product-images#quickview\"\n ]\n },\n \"flex-layout.col#quickview-product-details\": {\n \"children\": [\n \"modal-content#quickview\",\n \"modal-actions#quickview\"\n ],\n \"props\": {\n \"preventVerticalStretch\": true,\n \"blockClass\": \"quickviewDetails\"\n }\n },\n \"product-summary-sku-selector#quickview\": {\n \"props\": {\n \"thumbnailImage\": \"skuvariation\",\n \"imageHeight\": 28,\n \"blockClass\": \"quickview\",\n \"visibility\": \"more-than-one\"\n }\n },\n \"vtex.store-components:product-name\": {\n \"props\": {\n \"blockClass\": \"quickview\"\n }\n },\n \"product-images#quickview\" : {\n \"props\": {\n \"blockClass\": \"quickview\",\n \"showNavigationArrows\": true\n }\n }\n}\n\n```" } ]
code_pocfamiliabercomat_247bbb45
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/store/blocks/product-summary/product-summary-list.jsonc from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"product-summary.shelf#listLayout\": {\n \"props\": {\n \"blockClass\": \"listLayout\"\n },\n \"children\": [\n \"responsive-layout.desktop#productSummaryList\",\n \"responsive-layout.mobile#productSummaryList\"\n ]\n },\n \"responsive-layout.desktop#productSummaryList\": {\n \"children\": [\n \"flex-layout.row#summaryListDesktop\"\n ]\n },\n \"responsive-layout.mobile#productSummaryList\": {\n \"children\": [\n \"flex-layout.row#summaryListMobile\"\n ]\n },\n \"product-price-savings#summaryPercentage\": {\n \"props\": {\n \"message\": \"{savingsPercentage}\",\n \"blockClass\": \"summaryPercentage\"\n }\n },\n \"flex-layout.row#savingsSummaryListDesktop\": {\n \"props\": {\n \"colSizing\": \"auto\",\n \"colGap\": 3,\n \"blockClass\": \"savingsSummaryListDesktop\"\n },\n \"children\": [\n \"product-price-savings#summaryPercentage\",\n \"product-price-savings#summary\"\n ]\n },\n \"flex-layout.row#summaryListDesktop\": {\n \"props\":{\n \"fullWidth\": true,\n \"colSizing\": \"auto\",\n \"blockClass\": \"summaryListDesktop\"\n },\n \"children\": [\n \"flex-layout.row#summaryLeftListDesktop\",\n \"flex-layout.col#summaryRightListDesktop\"\n ]\n },\n \"flex-layout.row#summaryLeftListDesktop\": {\n \"props\": {\n \"blockClass\": \"summaryLeftListDesktop\",\n \"colSizing\": \"auto\",\n \"colGap\": 7\n },\n \"children\": [\n \"stack-layout#summaryListDesktop\",\n \"flex-layout.col#summaryDetailsListDesktop\"\n ]\n },\n \"flex-layout.col#summaryDetailsListDesktop\": {\n \"props\": {\n \"preventVerticalStretch\": true\n },\n \"children\": [\n \"vtex.store-components:product-brand#summaryListDesktop\",\n \"product-summary-name#summaryListDesktop\",\n \"flex-layout.col#productRating\",\n \"flex-layout.row#productSpecifications\"\n ]\n },\n \"flex-layout.row#productSpecifications\": {\n \"children\": [\n \"product-specification-group#summary\"\n ]\n },\n \"product-summary-name#summaryListDesktop\": {\n \"props\": {\n \"blockClass\": \"summaryListDesktop\"\n }\n },\n \"vtex.store-components:product-brand#summaryListDesktop\": {\n \"props\": {\n \"displayMode\": \"text\",\n \"blockClass\": \"summaryListDesktop\"\n }\n },\n \"flex-layout.col#summaryRightListDesktop\": {\n \"props\": {\n \"blockClass\": \"summaryRightListDesktop\",\n \"preventVerticalStretch\": true\n },\n \"children\": [\n \"flex-layout.row#savingsSummaryListDesktop\",\n \"flex-layout.col#priceSummaryListDesktop\",\n \"flex-layout.row#buyButtonsSummaryListDesktop\"\n ]\n },\n \"flex-layout.row#buyButtonsSummaryListDesktop\": {\n \"props\": {\n \"colSizing\": \"auto\",\n \"colGap\": 5\n },\n \"children\": [\n \"add-to-cart-button\",\n \"flex-layout.row#buyNowButton\"\n ]\n },\n \"flex-layout.row#buyNowButton\": {\n \"props\": {\n \"blockClass\": \"buyNowButton\"\n },\n \"children\": [\n \"add-to-cart-button#buyNow\"\n ]\n },\n\n \"add-to-cart-button#buyNow\": {\n \"props\": {\n \"text\": \"BUY NOW\",\n \"isOneClickBuy\": true,\n \"onClickEventPropagation\": \"enabled\",\n \"blockClass\": \"buyNow\"\n }\n },\n \"flex-layout.col#priceSummaryListDesktop\": {\n \"children\": [\n \"product-selling-price#summary\",\n \"product-list-price#summary\"\n ]\n },\n \"stack-layout#summaryListDesktop\": {\n \"children\": [\n \"product-summary-image#summaryListDesktop\",\n \"vtex.product-highlights@2.x:product-highlights#collection\",\n \"modal-trigger#quickview\" // Check quickview.jsonc\n ]\n },\n \"product-summary-image#summaryListDesktop\": {\n \"props\": {\n \"showBadge\": false,\n \"aspectRatio\": \"1:1\",\n \"maxHeight\": 180,\n \"blockClass\": \"summaryListDesktop\"\n }\n },\n \"flex-layout.row#summaryListMobile\": {\n \"props\":{\n \"preserveLayoutOnMobile\": true,\n \"colSizing\": \"auto\",\n \"blockClass\": \"summaryListMobile\",\n \"colGap\": 5\n },\n \"children\": [\n \"stack-layout#summaryListMobile\",\n \"flex-layout.col#summaryDetailsListMobile\"\n ]\n },\n \"stack-layout#summaryListMobile\": {\n \"children\": [\n \"product-summary-image#summaryListMobile\",\n \"vtex.product-highlights@2.x:product-highlights#collection\",\n \"modal-trigger#quickview\" // Check quickview.jsonc\n ]\n },\n \"product-summary-image#summaryListMobile\": {\n \"props\": {\n \"showBadge\": false,\n \"aspectRatio\": \"1:1\",\n \"maxHeight\": 220,\n \"blockClass\": \"summaryListMobile\"\n }\n },\n \"flex-layout.col#summaryDetailsListMobile\": {\n \"props\": {\n \"preventVerticalStretch\": true,\n \"width\": \"grow\",\n \"blockClass\": \"summaryDetailsListMobile\"\n },\n \"children\": [\n \"flex-layout.col#summaryUpDetailsListMobile\",\n \"flex-layout.col#summaryDownDetailsListMobile\"\n ]\n },\n \"flex-layout.col#summaryUpDetailsListMobile\": {\n \"props\": {\n \"preventVerticalStretch\": true,\n \"blockClass\": \"summaryUpDetailsListMobile\"\n },\n \"children\": [\n \"vtex.store-components:product-brand#summaryListMobile\",\n \"product-summary-name#summaryListMobile\",\n \"product-rating-inline\"\n ]\n },\n \"flex-layout.col#summaryDownDetailsListMobile\": {\n \"props\": {\n \"preventVerticalStretch\": true\n },\n \"children\": [\n \"product-selling-price#summary\",\n \"product-installments#summary\"\n ]\n },\n \"vtex.store-components:product-brand#summaryListMobile\": {\n \"props\": {\n \"displayMode\": \"text\",\n \"blockClass\": \"summaryListMobile\"\n }\n },\n \"product-summary-name#summaryListMobile\": {\n \"props\": {\n \"tag\": \"div\",\n \"blockClass\": \"summaryListMobile\"\n }\n }\n}\n\n```" } ]
code_pocfamiliabercomat_61c5e14f
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/store/blocks/product-summary/product-specification-list.jsonc from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"product-specification-group#summary\": {\n \"children\": [\n \"product-specification#summary\"\n ]\n },\n \"product-specification#summary\": {\n \"children\": [\n \"flex-layout.row#summarySpecificationValues\"\n ]\n },\n \"flex-layout.row#summarySpecificationValues\": {\n \"props\": {\n \"preventHorizontalStretch\": true,\n \"colGap\": 3\n },\n \"children\": [\n \"rich-text#summarySpecificationBullet\",\n \"product-specification-values\"\n ]\n },\n \"rich-text#summarySpecificationBullet\": {\n \"props\": {\n \"text\": \"•\",\n \"textColor\": \"c-action-primary\",\n \"blockClass\": \"summarySpecificationBullet\"\n }\n }\n}\n\n```" } ]
code_pocfamiliabercomat_c55204b6
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/store/blocks/pdp/product-assembly.jsonc from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"sticky-layout#buy-button\": {\n \"props\": {\n \"position\": \"bottom\"\n },\n \"children\": [\"flex-layout.row#buy-button\"]\n },\n \"product-assembly-options\": {\n \"children\": [\n \"flex-layout.row#product-assembly-options\",\n \"assembly-option-input-values\"\n ]\n },\n \"assembly-option-input-values\": {\n \"props\": {\n \"optionsDisplay\": \"box\"\n }\n },\n \"flex-layout.row#product-assembly-options\": {\n \"props\": {\n \"colGap\": 2,\n \"preserveLayoutOnMobile\": true,\n \"colSizing\": \"auto\"\n },\n \"children\": [\n \"flex-layout.col#product-assembly-image\",\n \"flex-layout.col#product-assembly-middle\",\n \"flex-layout.col#product-assembly-quantity\"\n ]\n },\n \"flex-layout.col#product-assembly-quantity\": {\n \"props\": {\n \"verticalAlign\": \"middle\"\n },\n \"children\": [\n \"assembly-option-item-quantity-selector\"\n ]\n },\n \"flex-layout.col#product-assembly-image\": {\n \"props\": {\n \"marginRight\": 4\n },\n \"children\": [\n \"assembly-option-item-image\"\n ]\n },\n \"flex-layout.col#product-assembly-middle\": {\n \"props\": {\n \"width\": \"grow\",\n \"verticalAlignment\": \"middle\"\n },\n \"children\": [\n \"assembly-option-item-name\",\n \"assembly-option-item-price\",\n \"assembly-option-item-children-description\",\n \"assembly-option-item-customize#first-level\"\n ]\n },\n \"assembly-option-item-customize#first-level\": {\n \"props\": {\n \"buttonProps\": {\n \"collapse\": \"left\"\n }\n },\n \"children\": [\n \"flex-layout.row#item-customize\",\n \"assembly-option-input-values\"\n ]\n },\n \"flex-layout.row#item-customize\": {\n \"props\": {\n \"colGap\": 2,\n \"preserveLayoutOnMobile\": true,\n \"colSizing\": \"auto\"\n },\n \"children\": [\n \"flex-layout.col#product-assembly-image\",\n \"flex-layout.col#item-customize-middle\",\n \"flex-layout.col#item-customize-quantity\"\n ]\n },\n \"flex-layout.col#item-customize-middle\": {\n \"props\": {\n \"width\": \"grow\",\n \"verticalAlignment\": \"middle\"\n },\n \"children\": [\n \"assembly-option-item-name\",\n \"assembly-option-item-price\",\n \"assembly-option-item-children-description\",\n \"assembly-option-item-customize#sec-level\"\n ]\n },\n \"flex-layout.col#item-customize-quantity\": {\n \"props\": {\n \"horizontalAlign\": \"right\",\n \"verticalAlign\": \"middle\"\n },\n \"children\": [\n \"assembly-option-item-quantity-selector\"\n ]\n },\n \"assembly-option-item-customize#sec-level\": {\n \"props\": {\n \"buttonProps\": {\n \"collapse\": \"left\"\n }\n },\n \"children\": [\n \"assembly-option-item-image\",\n \"assembly-option-item-name\",\n \"assembly-option-item-price\",\n \"assembly-option-item-quantity-selector\"\n ]\n }\n}\n\n```" } ]
code_pocfamiliabercomat_72d47557
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/store/blocks/pdp/product-gifts.jsonc from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"product-gifts\": {\n \"props\": {\n \"maxVisibleItems\": {\n \"desktop\": 1,\n \"mobile\": 1\n }\n },\n \"children\": [\"flex-layout.row#product-gifts-text\", \"product-gift-list\"]\n },\n\n \"flex-layout.row#product-gifts-text\": {\n \"props\": {\n \"verticalAlign\": \"middle\",\n \"colSizing\": \"auto\",\n \"preserveLayoutOnMobile\": true\n },\n \"children\": [\n \"rich-text#product-gifts\",\n \"flex-layout.col#product-gifts-text\"\n ]\n },\n \"flex-layout.col#product-gifts-text\": {\n \"children\": [\"modal-trigger#product-gifts\"],\n \"props\": {\n \"verticalAlign\": \"middle\"\n }\n },\n \"rich-text#product-gifts\": {\n \"props\": {\n \"text\": \"**+ GIFT**\"\n }\n },\n \"gift-text\": {\n \"props\": {\n \"blockClass\": \"default\",\n \"text\": \"{exceedingItems, plural, =0{} one {+ # gift} other {+ # gifts}}\"\n }\n },\n \"product-gift-list\": {\n \"children\": [\"flex-layout.row#gift\"]\n },\n \"flex-layout.row#gift\": {\n \"props\": {\n \"fullWidth\": true\n },\n \"children\": [\"flex-layout.col#gift-name-description\", \"gift-image\"]\n },\n \"flex-layout.col#gift-name-description\": {\n \"props\": {\n \"verticalAlign\": \"middle\",\n \"rowGap\": 3\n },\n \"children\": [\"gift-name\", \"gift-description\"]\n },\n\n \"modal-trigger#product-gifts\": {\n \"children\": [\"modal-layout#product-gifts\", \"gift-text\"],\n \"props\": {\n \"blockClass\": \"product-gifts\"\n }\n },\n \"modal-layout#product-gifts\": {\n \"props\": {\n \"blockClass\": \"product-gifts\",\n \"fullScreen\": {\n \"phone\": true,\n \"desktop\": false,\n \"tablet\": false\n }\n },\n \"children\": [\"product-gifts#modal\"]\n },\n\n \"product-gifts#modal\": {\n \"children\": [\"product-gift-list\"]\n }\n}\n\n```" } ]
code_pocfamiliabercomat_bf5d4300
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/store/blocks/pdp/product.jsonc from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"store.product\": {\n \"children\": [\n \"flex-layout.row#product-breadcrumb\",\n \"condition-layout.product#availability\",\n \"flex-layout.row#description\",\n \"flex-layout.row#specifications-title\",\n \"product-specification-group#table\",\n \"shelf.relatedProducts\",\n \"product-reviews\",\n \"product-questions-and-answers\"\n ]\n },\n \"flex-layout.row#specifications-title\": {\n \"children\": [\"rich-text#specifications\"]\n },\n \"rich-text#specifications\": {\n \"props\": {\n \"text\": \"##### Product Specifications\"\n }\n },\n \"flex-layout.row#product-breadcrumb\": {\n \"props\": {\n \"marginTop\": 4\n },\n \"children\": [\"breadcrumb\"]\n },\n \"flex-layout.row#description\": {\n \"props\": {\n \"marginBottom\": 7\n },\n \"children\": [\"product-description\"]\n },\n \"condition-layout.product#availability\": {\n \"props\": {\n \"conditions\": [\n {\n \"subject\": \"isProductAvailable\"\n }\n ],\n \"Then\": \"flex-layout.row#product-main\",\n \"Else\": \"flex-layout.row#product-availability\"\n }\n },\n \"flex-layout.row#product-main\": {\n \"props\": {\n \"colGap\": 7,\n \"rowGap\": 7,\n \"marginTop\": 4,\n \"marginBottom\": 7,\n \"paddingTop\": 7,\n \"paddingBottom\": 7\n },\n \"children\": [\"flex-layout.col#stack\", \"flex-layout.col#right-col\"]\n },\n\n \"stack-layout\": {\n \"props\": {\n \"blockClass\": \"product\"\n },\n \"children\": [\n \"flex-layout.row#product-image\",\n \"product-bookmark\",\n \"product-specification-badges\"\n ]\n },\n\n \"product-specification-badges\": {\n \"props\": {\n \"specificationGroupName\": \"Group\",\n \"specificationName\": \"On Sale\",\n \"visibleWhen\": \"True\",\n \"displayValue\": \"SPECIFICATION_NAME\"\n }\n },\n\n \"flex-layout.col#stack\": {\n \"children\": [\"stack-layout\"],\n \"props\": {\n \"width\": \"60%\",\n \"rowGap\": 0\n }\n },\n \"flex-layout.row#product-image\": {\n \"children\": [\"product-images\"]\n },\n \"product-images\": {\n \"props\": {\n \"aspectRatio\": {\n \"desktop\": \"auto\",\n \"phone\": \"16:9\"\n },\n \"displayThumbnailsArrows\": true\n }\n },\n \"flex-layout.col#right-col\": {\n \"props\": {\n \"preventVerticalStretch\": true,\n \"rowGap\": 0\n },\n \"children\": [\n \"flex-layout.row#product-name\",\n \"product-rating-summary\",\n \"flex-layout.row#list-price-savings\",\n \"flex-layout.row#selling-price\",\n \"product-installments\",\n \"product-separator\",\n \"product-identifier.product\",\n \"sku-selector\",\n \"product-quantity\",\n \"product-assembly-options\",\n \"product-gifts\",\n \"flex-layout.row#buy-button\",\n \"availability-subscriber\",\n \"shipping-simulator\",\n \"share#default\"\n ]\n },\n\n \"flex-layout.row#product-name\": {\n \"props\": {\n \"marginBottom\": 3\n },\n \"children\": [\"vtex.store-components:product-name\"]\n },\n\n \"sku-selector\": {\n \"props\": {\n \"variationsSpacing\": 3,\n \"showValueNameForImageVariation\": true\n }\n },\n\n \"flex-layout.row#buy-button\": {\n \"props\": {\n \"marginTop\": 4,\n \"marginBottom\": 7\n },\n \"children\": [\"add-to-cart-button\"]\n },\n\n \"flex-layout.row#product-availability\": {\n \"props\": {\n \"colGap\": 7,\n \"marginTop\": 4,\n \"marginBottom\": 7,\n \"paddingTop\": 7\n },\n \"children\": [\n \"flex-layout.col#stack\",\n \"flex-layout.col#right-col-availability\"\n ]\n },\n \"flex-layout.col#right-col-availability\": {\n \"props\": {\n \"preventVerticalStretch\": true,\n \"rowGap\": 0,\n \"blockClass\": \"info-availability\"\n },\n \"children\": [\n \"flex-layout.row#product-name\",\n \"product-identifier.product\",\n \"sku-selector\",\n \"flex-layout.row#availability\"\n ]\n },\n \"flex-layout.row#availability\": {\n \"props\": {\n \"blockClass\": \"message-availability\"\n },\n \"children\": [\"availability-subscriber\"]\n },\n\n \"share#default\": {\n \"props\": {\n \"social\": {\n \"Facebook\": true,\n \"WhatsApp\": true,\n \"Twitter\": false,\n \"Pinterest\": true\n }\n }\n }\n}\n\n```" } ]
code_pocfamiliabercomat_2c0cf527
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/store/blocks/pdp/product-specifications-table.jsonc from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"product-specification-group#table\": {\n \"children\": [\n \"flex-layout.row#spec-group\"\n ]\n },\n \"flex-layout.row#spec-group\": {\n \"props\": {\n \"blockClass\": \"productSpecificationGroup\"\n },\n \"children\": [\n \"flex-layout.col#spec-group\"\n ]\n },\n \"flex-layout.col#spec-group\": {\n \"children\": [\n \"flex-layout.row#spec-group-name\",\n \"product-specification\"\n ]\n },\n \"flex-layout.row#spec-group-name\": {\n \"props\": {\n \"blockClass\": \"productSpecificationGroupName\"\n },\n \"children\": [\n \"product-specification-text#group\"\n ]\n },\n \"product-specification\": {\n \"children\": [\n \"flex-layout.row#spec-item\"\n ]\n },\n \"flex-layout.row#spec-item\": {\n \"props\": {\n \"blockClass\": \"productSpecification\"\n },\n \"children\": [\n \"flex-layout.col#spec-name\",\n \"flex-layout.col#spec-value\"\n ]\n },\n \"flex-layout.col#spec-name\": {\n \"props\": {\n \"blockClass\": \"productSpecificationName\",\n \"width\": {\n \"mobile\": \"50%\",\n \"desktop\": \"25%\"\n }\n },\n \"children\": [\n \"product-specification-text#specification\"\n ]\n },\n \"flex-layout.col#spec-value\": {\n \"props\": {\n \"blockClass\": \"productSpecificationValue\"\n },\n \"children\": [\n \"product-specification-values\"\n ]\n },\n \"product-specification-values\": {\n \"children\": [\n \"product-specification-text#value\"\n ]\n },\n \"product-specification-text#group\": {\n \"props\": {\n \"message\": \"{groupName}\"\n }\n },\n \"product-specification-text#specification\": {\n \"props\": {\n \"message\": \"{specificationName}\"\n }\n },\n \"product-specification-text#value\": {\n \"props\": {\n \"message\": \"{specificationValue}\"\n }\n }\n}\n\n```" } ]
code_pocfamiliabercomat_e60bd1c2
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/store/blocks/header/category-menu.json from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"vtex.menu@2.x:menu#category-menu\": {\n \"props\": {\n \"experimentalOptimizeRendering\": true\n },\n \"children\": [\n \"menu-item#category-apparel\",\n \"menu-item#category-home\",\n \"menu-item#more\"\n ]\n },\n \"menu-item#category-apparel\": {\n \"props\": {\n \"id\": \"menu-item-category-apparel\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/apparel---accessories/\",\n \"noFollow\": false,\n \"tagTitle\": \"Apparel & Accessories\",\n \"text\": \"Apparel & Accessories\"\n }\n },\n \"blocks\": [\n \"vtex.menu@2.x:submenu#category-apparel\"\n ]\n },\n \"vtex.menu@2.x:submenu#category-apparel\": {\n \"props\": {\n \"width\": \"auto\"\n },\n \"children\": [\n \"vtex.menu@2.x:menu#category-apparel\"\n ]\n },\n \"vtex.menu@2.x:menu#category-apparel\": {\n \"props\": {\n \"orientation\": \"vertical\"\n },\n \"children\": [\n \"menu-item#category-apparel-clothing\",\n \"menu-item#category-apparel-accessories\",\n \"menu-item#category-apparel-eyeglasses\"\n ]\n },\n \"menu-item#category-apparel-clothing\": {\n \"props\": {\n \"id\": \"menu-item-category-apparel-clothing\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/apparel---accessories/clothing/\",\n \"noFollow\": false,\n \"tagTitle\": \"Clothing\",\n \"text\": \"Clothing\"\n }\n }\n },\n \"menu-item#category-apparel-accessories\": {\n \"props\": {\n \"id\": \"menu-item-category-apparel-accessories\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/apparel---accessories/accessories/\",\n \"noFollow\": false,\n \"tagTitle\": \"Accessories\",\n \"text\": \"Accessories\"\n }\n }\n },\n \"menu-item#category-apparel-eyeglasses\": {\n \"props\": {\n \"id\": \"menu-item-category-apparel-eyeglasses\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/apparel---accessories/eyeglasses/\",\n \"noFollow\": false,\n \"tagTitle\": \"Eyeglasses\",\n \"text\": \"Eyeglasses\"\n }\n }\n },\n \"menu-item#category-home\": {\n \"props\": {\n \"id\": \"menu-item-category-home\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/home---decor/\",\n \"noFollow\": false,\n \"tagTitle\": \"Home & Decor\",\n \"text\": \"Home & Decor\"\n }\n }\n },\n \"menu-item#more\": {\n \"props\": {\n \"id\": \"menu-item-custom-sale\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"#\",\n \"noFollow\": true,\n \"tagTitle\": \"More\",\n \"text\": \"More\"\n }\n },\n \"blocks\": [\n \"vtex.menu@2.x:submenu#more\"\n ]\n },\n \"vtex.menu@2.x:submenu#more\": {\n \"props\": {\n \"width\": \"100%\"\n },\n \"children\": [\n \"flex-layout.row#menu-more\"\n ]\n },\n \"flex-layout.row#menu-more\": {\n \"children\": [\n \"flex-layout.col#menu-more-1\",\n \"flex-layout.col#menu-more-2\"\n ]\n },\n \"flex-layout.col#menu-more-1\": {\n \"children\": [\n \"vtex.menu@2.x:menu#more\"\n ]\n },\n \"flex-layout.col#menu-more-2\": {\n \"children\": [\n \"info-card#home\"\n ]\n },\n \"vtex.menu@2.x:menu#more\": {\n \"props\": {\n \"orientation\": \"vertical\"\n },\n \"children\": [\n \"menu-item#about-us\",\n \"menu-item#faq\"\n ]\n },\n \"menu-item#about-us\": {\n \"props\": {\n \"id\": \"menu-item-about-us\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/about-us\",\n \"noFollow\": true,\n \"tagTitle\": \"About us\",\n \"text\": \"About us\"\n }\n }\n },\n \"menu-item#faq\": {\n \"props\": {\n \"id\": \"menu-item-faq\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/faq\",\n \"noFollow\": true,\n \"tagTitle\": \"FAQ\",\n \"text\": \"FAQ\"\n }\n }\n },\n \"menu-item#contact-us\": {\n \"props\": {\n \"id\": \"menu-item-contact-us\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/contact-us\",\n \"noFollow\": true,\n \"tagTitle\": \"Contact Us\",\n \"text\": \"Contact Us\"\n }\n }\n }\n}\n\n```" } ]
code_pocfamiliabercomat_2c1b3148
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/store/blocks/header/header.jsonc from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"header\": {\n \"blocks\": [\"header-layout.desktop\", \"header-layout.mobile\"]\n },\n \"header.full\": {\n \"blocks\": [\"header-layout.desktop\", \"header-layout.mobile\"]\n },\n \"header-layout.desktop\": {\n \"children\": [\n \"flex-layout.row#1-desktop\",\n \"flex-layout.row#3-desktop\",\n \"sticky-layout#4-desktop\"\n ]\n },\n\n \"flex-layout.row#1-desktop\": {\n \"children\": [\"telemarketing\"],\n \"props\": {\n \"fullWidth\": true\n }\n },\n \n \"flex-layout.row#3-desktop\": {\n \"props\": {\n \"blockClass\": \"menu-link\",\n \"horizontalAlign\": \"center\",\n \"preventHorizontalStretch\": true,\n \"preventVerticalStretch\": true,\n \"fullWidth\": true\n },\n \"children\": [\n \"vtex.menu@2.x:menu#websites\",\n \"flex-layout.col#spacer\",\n \"vtex.menu@2.x:menu#institutional\"\n ]\n },\n \"flex-layout.col#spacer\": {\n \"props\": {\n \"width\": \"grow\"\n }\n },\n \"sticky-layout#4-desktop\": {\n \"props\": {\n \"blockClass\": \"sticky-header\"\n },\n \"children\": [\"flex-layout.row#4-desktop\"]\n },\n \"flex-layout.row#4-desktop\": {\n \"props\": {\n \"blockClass\": \"main-header\",\n \"horizontalAlign\": \"center\",\n \"verticalAlign\": \"center\",\n \"preventHorizontalStretch\": true,\n \"preventVerticalStretch\": true,\n \"fullWidth\": true\n },\n \"children\": [\n \"flex-layout.col#logo-desktop\",\n \"flex-layout.col#category-menu\",\n \"flex-layout.col#spacer\",\n \"search-bar\",\n \"locale-switcher\",\n \"login\",\n \"minicart.v2\"\n ]\n },\n \"flex-layout.col#logo-desktop\": {\n \"props\": {\n \"verticalAlign\": \"middle\"\n },\n \"children\": [\"logo#desktop\"]\n },\n \"flex-layout.col#category-menu\": {\n \"props\": {\n \"verticalAlign\": \"middle\"\n },\n \"children\": [\"vtex.menu@2.x:menu#category-menu\"]\n },\n \"logo#desktop\": {\n \"props\": {\n \"title\": \"Logo\",\n \"href\": \"/\",\n \"url\": \"https://storecomponents.vteximg.com.br/arquivos/store-theme-logo.png\",\n \"width\": \"180\",\n \"height\": \"12\"\n }\n },\n \"header-layout.mobile\": {\n \"children\": [\"sticky-layout#1-mobile\"]\n },\n \"sticky-layout#1-mobile\": {\n \"children\": [\"flex-layout.row#1-mobile\"]\n },\n \"flex-layout.row#1-mobile\": {\n \"children\": [\n \"drawer\",\n \"logo#mobile\",\n \"flex-layout.col#spacer\",\n \"login\",\n \"minicart.v2\"\n ],\n \"props\": {\n \"blockClass\": \"main-header-mobile\",\n \"preventHorizontalStretch\": true,\n \"preserveLayoutOnMobile\": true,\n \"fullWidth\": true\n }\n },\n \"drawer\": {\n \"children\": [\"menu#drawer\"]\n },\n\n \"menu#drawer\": {\n \"children\": [\n \"menu-item#category-apparel\",\n \"menu-item#category-home\",\n \"menu-item#more\"\n ],\n \"props\": {\n \"orientation\": \"vertical\"\n }\n },\n\n \"logo#mobile\": {\n \"props\": {\n \"title\": \"Logo\",\n \"href\": \"/\",\n \"url\": \"https://storecomponents.vteximg.com.br/arquivos/store-theme-logo-mobile.png\",\n \"width\": \"77.5\",\n \"height\": \"27.5\"\n }\n }\n}\n\n```" } ]
code_pocfamiliabercomat_13bc2eb1
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pocfamiliabercomat/store/blocks/header/top-menu.json from the pocfamiliabercomat VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"vtex.menu@2.x:menu#websites\": {\n \"children\": [\n \"menu-item#shop\",\n \"menu-item#about-us\"\n ]\n },\n \"menu-item#shop\": {\n \"props\": {\n \"id\": \"menu-item-shop\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"#\",\n \"noFollow\": false,\n \"tagTitle\": \"Shop\",\n \"text\": \"Shop\"\n }\n }\n },\n \"vtex.menu@2.x:menu#institutional\": {\n \"children\": [\n \"menu-item#vtex-website\"\n ]\n },\n \"menu-item#vtex-website\": {\n \"props\": {\n \"id\": \"menu-item-vtex-website\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"external\",\n \"href\": \"http://vtex.com\",\n \"noFollow\": false,\n \"tagTitle\": \"visit vtex.com\",\n \"text\": \"visit vtex.com\"\n }\n }\n }\n}\n\n```" } ]
code_menu_2360deda
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/messages/it-IT.json from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin/editor.menu-link\": \"Menù\",\n \"admin/editor.menu-link.title\": \"Titolo\",\n \"admin/editor.menu-link.description\": \"Una barra del menù con link\",\n \"admin/editor.menu-link.links\": \"Link\",\n \"admin/editor.menu-link.links.link\": \"Link\",\n \"admin/editor.menu-link.links.link.text\": \"Testo link\",\n \"admin/editor.menu-link.links.link.internalPage\": \"Pagina di destinazione\",\n \"admin/editor.menu-link.links.link.internalPage.description\": \"Se interna\",\n \"admin/editor.menu-link.links.link.params\": \"Parametri\",\n \"admin/editor.menu-link.links.link.params.description\": \"Parametri separati da virgole, ad esempio: chiave=valore, a=b, c=d\",\n \"admin/editor.menu-link.links.link.externalPage\": \"URL (deve iniziare con https o http)\",\n \"admin/editor.menu-link.links.link.externalPage.description\": \"Se esterna\",\n \"admin/editor.menu-link.links.link.typeOfRoute\": \"Tipo di route\",\n \"admin/editor.menu-link.links.link.typeOfRoute.internal\": \"Interno\",\n \"admin/editor.menu-link.links.link.typeOfRoute.external\": \"Esterno\",\n \"admin/editor.menu-link.links.link.position\": \"Posizione\",\n \"admin/editor.menu-link.links.link.position.left\": \"Sinistra\",\n \"admin/editor.menu-link.links.link.position.middle\": \"Centro\",\n \"admin/editor.menu-link.links.link.position.right\": \"Destra\",\n \"admin/editor.future-menu.title\": \"Menù\",\n \"admin/editor.future-menu.description\": \"App VTEX Menu\",\n \"admin/editor.menu.typography.title\": \"Tipografia\",\n \"admin/editor.menu.typography.description\": \"Consente agli utenti di scegliere quale classe tipografica verrà utilizzata nelle voci di menu\",\n \"admin/editor.menu.orientation.title\": \"Orientamento\",\n \"admin/editor.menu.orientation.vertical.label\": \"verticale\",\n \"admin/editor.menu.orientation.horizontal.label\": \"orizzontale\",\n \"admin/editor.menu.items.title\": \"Voce di menù\",\n \"admin/editor.menu.item.id.title\": \"ID\",\n \"admin/editor.menu.item.type.title\": \"Tipo\",\n \"admin/editor.menu.item.category.title\": \"Categoria\",\n \"admin/editor.menu.item.custom.title\": \"Personalizzato\",\n \"admin/editor.menu.item.iconProps.id.title\": \"ID icona\",\n \"admin/editor.menu.item.onMountBehavior.title\": \"Il sottomenù si apre al passaggio del mouse\",\n \"admin/editor.menu.item.editorItemTitle.title\": \"Nome della voce di menù\",\n \"admin/editor.menu.item.editorItemTitle.description\": \"Sarà visibile solo su Site Editor\",\n \"admin/editor.menu.item.highlight.title\": \"In evidenza\",\n \"admin/editor.menu.item.submenuWidth.title\": \"Larghezza sottomenù\",\n \"admin/editor.menu.item.params.title\": \"Parametri\",\n \"admin/editor.menu.item.params.categoryId.title\": \"ID categoria\",\n \"admin/editor.menu.item.params.text.title\": \"Testo\",\n \"admin/editor.menu.item.params.type.title\": \"Tipo\",\n \"admin/editor.menu.item.params.internal.title\": \"Interni\",\n \"admin/editor.menu.item.params.external.title\": \"Esterni\",\n \"admin/editor.menu.item.params.href.title\": \"href\",\n \"admin/editor.menu.item.params.noFollow.title\": \"attributo nofollow\",\n \"admin/editor.menu.item.params.tagTitle.title\": \"attributo title\",\n \"admin/editor.menu.submenu.title\": \"Sottomenù\",\n \"admin/editor.menu.additionalDef.title\": \"Definizione aggiuntiva\",\n \"admin/editor.menu.def.none\": \"Nessuna\",\n \"admin/editor.menu.def.title\": \"Titolo\",\n \"admin/editor.menu.def.category\": \"Categoria\",\n \"admin/editor.menu.categoryId.title\": \"ID categoria\"\n}\n\n```" } ]
code_menu_2663509e
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/messages/ko-KR.json from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin/editor.menu-link\": \"메뉴\",\n \"admin/editor.menu-link.title\": \"제목\",\n \"admin/editor.menu-link.description\": \"링크 메뉴 모음\",\n \"admin/editor.menu-link.links\": \"링크\",\n \"admin/editor.menu-link.links.link\": \"링크\",\n \"admin/editor.menu-link.links.link.text\": \"링크 텍스트\",\n \"admin/editor.menu-link.links.link.internalPage\": \"타켓 페이지\",\n \"admin/editor.menu-link.links.link.internalPage.description\": \"내부인 경우\",\n \"admin/editor.menu-link.links.link.params\": \"매개 변수\",\n \"admin/editor.menu-link.links.link.params.description\": \"쉼표로 구분된 매개 변수(예: 키=값, a=b,c=d)\",\n \"admin/editor.menu-link.links.link.externalPage\": \"URL(https 또는 http로 시작해야 함)\",\n \"admin/editor.menu-link.links.link.externalPage.description\": \"외부인 경우\",\n \"admin/editor.menu-link.links.link.typeOfRoute\": \"경로 유형\",\n \"admin/editor.menu-link.links.link.typeOfRoute.internal\": \"내부\",\n \"admin/editor.menu-link.links.link.typeOfRoute.external\": \"외부\",\n \"admin/editor.menu-link.links.link.position\": \"위치\",\n \"admin/editor.menu-link.links.link.position.left\": \"왼쪽\",\n \"admin/editor.menu-link.links.link.position.middle\": \"중간\",\n \"admin/editor.menu-link.links.link.position.right\": \"오른쪽\",\n \"admin/editor.future-menu.title\": \"메뉴\",\n \"admin/editor.future-menu.description\": \"The VTEX 메뉴 앱\",\n \"admin/editor.menu.typography.title\": \"타이포그래피\",\n \"admin/editor.menu.typography.description\": \"사용자가 메뉴 항목에 사용할 타이포그래피 클래스를 선택할 수 있습니다.\",\n \"admin/editor.menu.orientation.title\": \"방향\",\n \"admin/editor.menu.orientation.vertical.label\": \"수직\",\n \"admin/editor.menu.orientation.horizontal.label\": \"수평\",\n \"admin/editor.menu.items.title\": \"메뉴 항목\",\n \"admin/editor.menu.item.id.title\": \"아이디\",\n \"admin/editor.menu.item.type.title\": \"유형\",\n \"admin/editor.menu.item.category.title\": \"카테고리\",\n \"admin/editor.menu.item.custom.title\": \"사용자 지정\",\n \"admin/editor.menu.item.iconProps.id.title\": \"아이콘 ID\",\n \"admin/editor.menu.item.onMountBehavior.title\": \"가리키면 하위 메뉴 열림\",\n \"admin/editor.menu.item.editorItemTitle.title\": \"메뉴 항목 이름\",\n \"admin/editor.menu.item.editorItemTitle.description\": \"이것은 사이트 편집기에만 표시됩니다.\",\n \"admin/editor.menu.item.iconProps\": \"아이콘 Props\",\n \"admin/editor.menu.item.iconProps.id.title\": \"아이콘 ID\",\n \"admin/editor.menu.item.highlight.title\": \"하이라이트\",\n \"admin/editor.menu.item.submenuWidth.title\": \"하위 메뉴 너비\",\n \"admin/editor.menu.item.params.title\": \"매개 변수\",\n \"admin/editor.menu.item.params.categoryId.title\": \"카테고리 ID\",\n \"admin/editor.menu.item.params.text.title\": \"텍스트\",\n \"admin/editor.menu.item.params.type.title\": \"유형\",\n \"admin/editor.menu.item.params.internal.title\": \"내부\",\n \"admin/editor.menu.item.params.external.title\": \"외부\",\n \"admin/editor.menu.item.params.href.title\": \"href\",\n \"admin/editor.menu.item.params.noFollow.title\": \"nofollow 속성\",\n \"admin/editor.menu.item.params.tagTitle.title\": \"제목 속성\",\n \"admin/editor.menu.submenu.title\": \"하위 메뉴\",\n \"admin/editor.menu.additionalDef.title\": \"추가 정의\",\n \"admin/editor.menu.def.none\": \"없음\",\n \"admin/editor.menu.def.title\": \"제목\",\n \"admin/editor.menu.def.category\": \"카테고리\",\n \"admin/editor.menu.categoryId.title\": \"카테고리 ID\"\n}\n\n```" } ]
code_menu_55f3be91
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/messages/ja-JP.json from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin/editor.menu-link\": \"メニュー\",\n \"admin/editor.menu-link.title\": \"タイトル\",\n \"admin/editor.menu-link.description\": \"リンクのメニューバー\",\n \"admin/editor.menu-link.links\": \"リンク\",\n \"admin/editor.menu-link.links.link\": \"リンク\",\n \"admin/editor.menu-link.links.link.text\": \"リンクテキスト\",\n \"admin/editor.menu-link.links.link.internalPage\": \"ターゲットページ\",\n \"admin/editor.menu-link.links.link.internalPage.description\": \"社内の場合\",\n \"admin/editor.menu-link.links.link.params\": \"パラメータ\",\n \"admin/editor.menu-link.links.link.params.description\": \"コンマで区切られたパラメータ。例: key=value,a=b,c=d\",\n \"admin/editor.menu-link.links.link.externalPage\": \"URL (https または http から始めてください)\",\n \"admin/editor.menu-link.links.link.externalPage.description\": \"外部の場合\",\n \"admin/editor.menu-link.links.link.typeOfRoute\": \"ルートのタイプ\",\n \"admin/editor.menu-link.links.link.typeOfRoute.internal\": \"社内\",\n \"admin/editor.menu-link.links.link.typeOfRoute.external\": \"外部\",\n \"admin/editor.menu-link.links.link.position\": \"ポジション\",\n \"admin/editor.menu-link.links.link.position.left\": \"左\",\n \"admin/editor.menu-link.links.link.position.middle\": \"中央\",\n \"admin/editor.menu-link.links.link.position.right\": \"右\",\n \"admin/editor.future-menu.title\": \"メニュー\",\n \"admin/editor.future-menu.description\": \"VTEX メニューアプリ\",\n \"admin/editor.menu.typography.title\": \"タイポグラフィ\",\n \"admin/editor.menu.typography.description\": \"メニュー項目でどのタイポグラフィタイプを使うか、ユーザーが選べるようにします\",\n \"admin/editor.menu.orientation.title\": \"方向\",\n \"admin/editor.menu.orientation.vertical.label\": \"垂直\",\n \"admin/editor.menu.orientation.horizontal.label\": \"水平\",\n \"admin/editor.menu.items.title\": \"メニュー項目\",\n \"admin/editor.menu.item.id.title\": \"ID\",\n \"admin/editor.menu.item.type.title\": \"タイプ\",\n \"admin/editor.menu.item.category.title\": \"カテゴリ\",\n \"admin/editor.menu.item.custom.title\": \"カスタム\",\n \"admin/editor.menu.item.iconProps.id.title\": \"アイコン ID\",\n \"admin/editor.menu.item.onMountBehavior.title\": \"マウスを重ねるとサブメニューが開きます\",\n \"admin/editor.menu.item.editorItemTitle.title\": \"メニュー項目名\",\n \"admin/editor.menu.item.editorItemTitle.description\": \"これはサイト編集者にのみ表示されます\",\n \"admin/editor.menu.item.iconProps\": \"アイコンプロパティ\",\n \"admin/editor.menu.item.iconProps.id.title\": \"アイコン ID\",\n \"admin/editor.menu.item.highlight.title\": \"ハイライト\",\n \"admin/editor.menu.item.submenuWidth.title\": \"サブメニュー幅\",\n \"admin/editor.menu.item.params.title\": \"パラメータ\",\n \"admin/editor.menu.item.params.categoryId.title\": \"カテゴリ ID\",\n \"admin/editor.menu.item.params.text.title\": \"テキスト\",\n \"admin/editor.menu.item.params.type.title\": \"タイプ\",\n \"admin/editor.menu.item.params.internal.title\": \"社内\",\n \"admin/editor.menu.item.params.external.title\": \"外部\",\n \"admin/editor.menu.item.params.href.title\": \"href\",\n \"admin/editor.menu.item.params.noFollow.title\": \"nofollow 属性\",\n \"admin/editor.menu.item.params.tagTitle.title\": \"title 属性\",\n \"admin/editor.menu.submenu.title\": \"サブメニュー\",\n \"admin/editor.menu.additionalDef.title\": \"追加定義\",\n \"admin/editor.menu.def.none\": \"なし\",\n \"admin/editor.menu.def.title\": \"タイトル\",\n \"admin/editor.menu.def.category\": \"カテゴリ\",\n \"admin/editor.menu.categoryId.title\": \"カテゴリ ID\"\n}\n\n```" } ]
code_menu_4cbc84c0
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/messages/bg-BG.json from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin/editor.menu-link\": \"Меню\",\n \"admin/editor.menu-link.title\": \"Заглавие\",\n \"admin/editor.menu-link.description\": \"Лента от меню с линкове\",\n \"admin/editor.menu-link.links\": \"Линкове\",\n \"admin/editor.menu-link.links.link\": \"Линк\",\n \"admin/editor.menu-link.links.link.text\": \"Текст на линк\",\n \"admin/editor.menu-link.links.link.internalPage\": \"Целева страница\",\n \"admin/editor.menu-link.links.link.internalPage.description\": \"Ако е вътрешно\",\n \"admin/editor.menu-link.links.link.params\": \"Параметри\",\n \"admin/editor.menu-link.links.link.params.description\": \"Параметри, разделени със запетая, напр.: key=value,a=b,c=d\",\n \"admin/editor.menu-link.links.link.externalPage\": \"URL (трябва да започва с https или http)\",\n \"admin/editor.menu-link.links.link.externalPage.description\": \"Ако е външно\",\n \"admin/editor.menu-link.links.link.typeOfRoute\": \"Тип пътека\",\n \"admin/editor.menu-link.links.link.typeOfRoute.internal\": \"Вътрешно\",\n \"admin/editor.menu-link.links.link.typeOfRoute.external\": \"Външно\",\n \"admin/editor.menu-link.links.link.position\": \"Позиция\",\n \"admin/editor.menu-link.links.link.position.left\": \"Ляво\",\n \"admin/editor.menu-link.links.link.position.middle\": \"Средно\",\n \"admin/editor.menu-link.links.link.position.right\": \"Дясно\",\n \"admin/editor.future-menu.title\": \"Меню\",\n \"admin/editor.future-menu.description\": \"Приложение с менюто на VTEX\",\n \"admin/editor.menu.typography.title\": \"Типография\",\n \"admin/editor.menu.typography.description\": \"Позволява на потребителите да изберат кой клас типография да се използва за елементите от менюто\",\n \"admin/editor.menu.orientation.title\": \"Ориентация\",\n \"admin/editor.menu.orientation.vertical.label\": \"вертикално\",\n \"admin/editor.menu.orientation.horizontal.label\": \"хоризонтално\",\n \"admin/editor.menu.items.title\": \"Елемент от менюто\",\n \"admin/editor.menu.item.id.title\": \"ИД\",\n \"admin/editor.menu.item.type.title\": \"Тип\",\n \"admin/editor.menu.item.category.title\": \"Категория\",\n \"admin/editor.menu.item.custom.title\": \"По избор\",\n \"admin/editor.menu.item.iconProps.id.title\": \"Икона на ИД\",\n \"admin/editor.menu.item.editorItemTitle.title\": \"Наименование на елемент от меню\",\n \"admin/editor.menu.item.editorItemTitle.description\": \"Това ще е видимо само в редактора за сайтове\",\n \"admin/editor.menu.item.highlight.title\": \"Акцент\",\n \"admin/editor.menu.item.submenuWidth.title\": \"Широчина на подменю\",\n \"admin/editor.menu.item.params.title\": \"Параметри\",\n \"admin/editor.menu.item.params.categoryId.title\": \"ИД на категория\",\n \"admin/editor.menu.item.params.text.title\": \"Текст\",\n \"admin/editor.menu.item.params.type.title\": \"Тип\",\n \"admin/editor.menu.item.params.internal.title\": \"Вътрешно\",\n \"admin/editor.menu.item.params.external.title\": \"Външно\",\n \"admin/editor.menu.item.params.href.title\": \"href\",\n \"admin/editor.menu.item.params.noFollow.title\": \"атрибут nofollow\",\n \"admin/editor.menu.item.params.tagTitle.title\": \"Атрибут на заглавието\",\n \"admin/editor.menu.submenu.title\": \"Подменю\",\n \"admin/editor.menu.additionalDef.title\": \"Допълнителна дефиниция\",\n \"admin/editor.menu.def.none\": \"Няма\",\n \"admin/editor.menu.def.title\": \"Заглавие\",\n \"admin/editor.menu.def.category\": \"Категория\",\n \"admin/editor.menu.categoryId.title\": \"ИД на категория\"\n}\n\n```" } ]
code_menu_07392aed
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/messages/pt.json from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin/editor.menu-link\": \"Menu\",\n \"admin/editor.menu-link.title\": \"Título\",\n \"admin/editor.menu-link.description\": \"Uma barra de menu com links\",\n \"admin/editor.menu-link.links\": \"Links\",\n \"admin/editor.menu-link.links.link\": \"URL\",\n \"admin/editor.menu-link.links.link.text\": \"Texto do Link\",\n \"admin/editor.menu-link.links.link.internalPage\": \"Página Alvo\",\n \"admin/editor.menu-link.links.link.internalPage.description\": \"Se interna\",\n \"admin/editor.menu-link.links.link.params\": \"Parâmetros\",\n \"admin/editor.menu-link.links.link.params.description\": \"Parâmetros separados por vírgula, e.g.: chave=valor,a=b,c=d\",\n \"admin/editor.menu-link.links.link.externalPage\": \"URL (deve começar com https ou http)\",\n \"admin/editor.menu-link.links.link.externalPage.description\": \"Se externa\",\n \"admin/editor.menu-link.links.link.typeOfRoute\": \"Tipo da Rota\",\n \"admin/editor.menu-link.links.link.typeOfRoute.internal\": \"Interna\",\n \"admin/editor.menu-link.links.link.typeOfRoute.external\": \"Externa\",\n \"admin/editor.menu-link.links.link.position\": \"Posição\",\n \"admin/editor.menu-link.links.link.position.left\": \"Esquerda\",\n \"admin/editor.menu-link.links.link.position.middle\": \"Centro\",\n \"admin/editor.menu-link.links.link.position.right\": \"Direita\",\n \"admin/editor.future-menu.title\": \"Menu\",\n \"admin/editor.future-menu.description\": \"Menu de navegação\",\n \"admin/editor.menu.typography.title\": \"Tipografia\",\n \"admin/editor.menu.typography.description\": \"Permite escolher a classe de tipografia para ser usada pelos itens do menu\",\n \"admin/editor.menu.orientation.title\": \"Orientação\",\n \"admin/editor.menu.orientation.vertical.label\": \"vertical\",\n \"admin/editor.menu.orientation.horizontal.label\": \"horizontal\",\n \"admin/editor.menu.items.title\": \"Item do Menu\",\n \"admin/editor.menu.item.id.title\": \"Código\",\n \"admin/editor.menu.item.type.title\": \"Tipo\",\n \"admin/editor.menu.item.category.title\": \"Categoria\",\n \"admin/editor.menu.item.custom.title\": \"Customizado\",\n \"admin/editor.menu.item.iconProps.id.title\": \"ID do ícone\",\n \"admin/editor.menu.item.onMountBehavior.title\": \"Submenu aberto no hover\",\n \"admin/editor.menu.item.editorItemTitle.title\": \"Nome do Ítem do Menu\",\n \"admin/editor.menu.item.editorItemTitle.description\": \"Só será visível dentro do Site Editor\",\n \"admin/editor.menu.item.highlight.title\": \"Destaque\",\n \"admin/editor.menu.item.submenuWidth.title\": \"Largura do Submenu\",\n \"admin/editor.menu.item.params.title\": \"Parâmetros\",\n \"admin/editor.menu.item.params.categoryId.title\": \"ID da Categoria\",\n \"admin/editor.menu.item.params.text.title\": \"Texto\",\n \"admin/editor.menu.item.params.type.title\": \"Tipo de link\",\n \"admin/editor.menu.item.params.internal.title\": \"Interno\",\n \"admin/editor.menu.item.params.external.title\": \"Externo\",\n \"admin/editor.menu.item.params.href.title\": \"href\",\n \"admin/editor.menu.item.params.noFollow.title\": \"Atributo nofollow\",\n \"admin/editor.menu.item.params.tagTitle.title\": \"Atributo title\",\n \"admin/editor.menu.submenu.title\": \"Submenu\",\n \"admin/editor.menu.additionalDef.title\": \"Definições adicionais\",\n \"admin/editor.menu.def.none\": \"Nenhuma\",\n \"admin/editor.menu.def.title\": \"Título\",\n \"admin/editor.menu.def.category\": \"Categoria\",\n \"admin/editor.menu.categoryId.title\": \"Id da Categoria\"\n}\n\n```" } ]
code_menu_ef3c610e
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/messages/en.json from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin/editor.menu-link\": \"Menu\",\n \"admin/editor.menu-link.title\": \"Title\",\n \"admin/editor.menu-link.description\": \"A menu bar of links\",\n \"admin/editor.menu-link.links\": \"Links\",\n \"admin/editor.menu-link.links.link\": \"Link\",\n \"admin/editor.menu-link.links.link.text\": \"Link Text\",\n \"admin/editor.menu-link.links.link.internalPage\": \"Target Page\",\n \"admin/editor.menu-link.links.link.internalPage.description\": \"If internal\",\n \"admin/editor.menu-link.links.link.params\": \"Params\",\n \"admin/editor.menu-link.links.link.params.description\": \"Comma separated params, e.g.: key=value,a=b,c=d\",\n \"admin/editor.menu-link.links.link.externalPage\": \"URL (should start with https or http)\",\n \"admin/editor.menu-link.links.link.externalPage.description\": \"If external\",\n \"admin/editor.menu-link.links.link.typeOfRoute\": \"Type of Route\",\n \"admin/editor.menu-link.links.link.typeOfRoute.internal\": \"Internal\",\n \"admin/editor.menu-link.links.link.typeOfRoute.external\": \"External\",\n \"admin/editor.menu-link.links.link.position\": \"Position\",\n \"admin/editor.menu-link.links.link.position.left\": \"Left\",\n \"admin/editor.menu-link.links.link.position.middle\": \"Middle\",\n \"admin/editor.menu-link.links.link.position.right\": \"Right\",\n\n \"admin/editor.future-menu.title\": \"Menu\",\n \"admin/editor.future-menu.description\": \"The VTEX Menu app\",\n \"admin/editor.menu.typography.title\": \"Typography\",\n \"admin/editor.menu.typography.description\": \"Allows users to choose which typography class will be used in the menu items\",\n\n \"admin/editor.menu.orientation.title\": \"Orientation\",\n \"admin/editor.menu.orientation.vertical.label\": \"vertical\",\n \"admin/editor.menu.orientation.horizontal.label\": \"horizontal\",\n\n \"admin/editor.menu.items.title\": \"Menu Item\",\n \"admin/editor.menu.item.id.title\": \"ID\",\n \"admin/editor.menu.item.type.title\": \"Type\",\n \"admin/editor.menu.item.category.title\": \"Category\",\n \"admin/editor.menu.item.custom.title\": \"Custom\",\n \"admin/editor.menu.item.iconProps.id.title\": \"Icon ID\",\n \"admin/editor.menu.item.onMountBehavior.title\": \"Submenu is open on hover\",\n \"admin/editor.menu.item.editorItemTitle.title\": \"Menu Item Name\",\n \"admin/editor.menu.item.editorItemTitle.description\": \"This will only be visible on Site Editor\", \n \n \"admin/editor.menu.item.highlight.title\": \"Highlight\",\n \"admin/editor.menu.item.submenuWidth.title\": \"Submenu Width\",\n \"admin/editor.menu.item.params.title\": \"Params\",\n \"admin/editor.menu.item.params.categoryId.title\": \"Category ID\",\n \"admin/editor.menu.item.params.text.title\": \"Text\",\n \"admin/editor.menu.item.params.type.title\": \"Type\",\n \"admin/editor.menu.item.params.internal.title\": \"Internal\",\n \"admin/editor.menu.item.params.external.title\": \"External\",\n \"admin/editor.menu.item.params.href.title\": \"href\",\n \"admin/editor.menu.item.params.noFollow.title\": \"nofollow attribute\",\n \"admin/editor.menu.item.params.tagTitle.title\": \"title attribute\",\n \"admin/editor.menu.submenu.title\": \"Submenu\",\n\n \"admin/editor.menu.additionalDef.title\": \"Additional Definition\",\n \"admin/editor.menu.def.none\": \"None\",\n \"admin/editor.menu.def.title\": \"Title\",\n \"admin/editor.menu.def.category\": \"Category\",\n \"admin/editor.menu.categoryId.title\": \"Category ID\"\n}\n\n```" } ]
code_menu_2956ef63
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/messages/ro-RO.json from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin/editor.menu-link\": \"Meniu\",\n \"admin/editor.menu-link.title\": \"Titlu\",\n \"admin/editor.menu-link.description\": \"O bară de meniu cu link-uri\",\n \"admin/editor.menu-link.links\": \"Link-uri\",\n \"admin/editor.menu-link.links.link\": \"Link\",\n \"admin/editor.menu-link.links.link.text\": \"Text link\",\n \"admin/editor.menu-link.links.link.internalPage\": \"Pagină țintă\",\n \"admin/editor.menu-link.links.link.internalPage.description\": \"Dacă intern\",\n \"admin/editor.menu-link.links.link.params\": \"Parametri\",\n \"admin/editor.menu-link.links.link.params.description\": \"Parametri separați de virgule, de exemplu: key=value,a=b,c=d\",\n \"admin/editor.menu-link.links.link.externalPage\": \"URL (trebuie să înceapă cu https sau http)\",\n \"admin/editor.menu-link.links.link.externalPage.description\": \"Dacă extern\",\n \"admin/editor.menu-link.links.link.typeOfRoute\": \"Tipul rutei\",\n \"admin/editor.menu-link.links.link.typeOfRoute.internal\": \"Intern\",\n \"admin/editor.menu-link.links.link.typeOfRoute.external\": \"Extern\",\n \"admin/editor.menu-link.links.link.position\": \"Poziție\",\n \"admin/editor.menu-link.links.link.position.left\": \"Stânga\",\n \"admin/editor.menu-link.links.link.position.middle\": \"Mijloc\",\n \"admin/editor.menu-link.links.link.position.right\": \"Dreapta\",\n \"admin/editor.future-menu.title\": \"Meniu\",\n \"admin/editor.future-menu.description\": \"Aplicația VTEX Menu\",\n \"admin/editor.menu.typography.title\": \"Tipografie\",\n \"admin/editor.menu.typography.description\": \"Permite utilizatorilor să aleagă ce clasă de tipografie va fi folosite în articolele meniului\",\n \"admin/editor.menu.orientation.title\": \"Orientare\",\n \"admin/editor.menu.orientation.vertical.label\": \"vertical\",\n \"admin/editor.menu.orientation.horizontal.label\": \"orizontal\",\n \"admin/editor.menu.items.title\": \"Articol meniu\",\n \"admin/editor.menu.item.id.title\": \"ID\",\n \"admin/editor.menu.item.type.title\": \"Tip\",\n \"admin/editor.menu.item.category.title\": \"Categorie\",\n \"admin/editor.menu.item.custom.title\": \"Personalizat\",\n \"admin/editor.menu.item.iconProps.id.title\": \"ID iconiță\",\n \"admin/editor.menu.item.onMountBehavior.title\": \"Submeniul se deschide la trecerea cu mouse-ul\",\n \"admin/editor.menu.item.editorItemTitle.title\": \"Denumire articol meniu\",\n \"admin/editor.menu.item.editorItemTitle.description\": \"Acest lucru va fi vizibil doar în Site Editor\",\n \"admin/editor.menu.item.iconProps\": \"Props Iconiță\",\n \"admin/editor.menu.item.highlight.title\": \"Evidențiere\",\n \"admin/editor.menu.item.submenuWidth.title\": \"Lățime sub-meniu\",\n \"admin/editor.menu.item.params.title\": \"Parametri\",\n \"admin/editor.menu.item.params.categoryId.title\": \"ID Categorie\",\n \"admin/editor.menu.item.params.text.title\": \"Text\",\n \"admin/editor.menu.item.params.type.title\": \"Tip\",\n \"admin/editor.menu.item.params.internal.title\": \"Intern\",\n \"admin/editor.menu.item.params.external.title\": \"Extern\",\n \"admin/editor.menu.item.params.href.title\": \"href\",\n \"admin/editor.menu.item.params.noFollow.title\": \"atribut nofollow\",\n \"admin/editor.menu.item.params.tagTitle.title\": \"atribut titlu\",\n \"admin/editor.menu.submenu.title\": \"Sub-meniu\",\n \"admin/editor.menu.additionalDef.title\": \"Definiție suplimentară\",\n \"admin/editor.menu.def.none\": \"Niciunul\",\n \"admin/editor.menu.def.title\": \"Titlu\",\n \"admin/editor.menu.def.category\": \"Categorie\",\n \"admin/editor.menu.categoryId.title\": \"ID Categorie\"\n}\n\n```" } ]
code_menu_42977d0d
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/messages/context.json from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin/editor.menu-link\": \"admin/editor.menu-link\",\n \"admin/editor.menu-link.title\": \"admin/editor.menu-link.title\",\n \"admin/editor.menu-link.description\": \"admin/editor.menu-link.description\",\n \"admin/editor.menu-link.links\": \"admin/editor.menu-link.links\",\n \"admin/editor.menu-link.links.link\": \"admin/editor.menu-link.links.link\",\n \"admin/editor.menu-link.links.link.text\": \"admin/editor.menu-link.links.link.text\",\n \"admin/editor.menu-link.links.link.internalPage\": \"admin/editor.menu-link.links.link.internalPage\",\n \"admin/editor.menu-link.links.link.internalPage.description\": \"admin/editor.menu-link.links.link.internalPage.description\",\n \"admin/editor.menu-link.links.link.params\": \"admin/editor.menu-link.links.link.params\",\n \"admin/editor.menu-link.links.link.params.description\": \"admin/editor.menu-link.links.link.params.description\",\n \"admin/editor.menu-link.links.link.externalPage\": \"admin/editor.menu-link.links.link.externalPage\",\n \"admin/editor.menu-link.links.link.externalPage.description\": \"admin/editor.menu-link.links.link.externalPage.description\",\n \"admin/editor.menu-link.links.link.typeOfRoute\": \"admin/editor.menu-link.links.link.typeOfRoute\",\n \"admin/editor.menu-link.links.link.typeOfRoute.internal\": \"admin/editor.menu-link.links.link.typeOfRoute.internal\",\n \"admin/editor.menu-link.links.link.typeOfRoute.external\": \"admin/editor.menu-link.links.link.typeOfRoute.external\",\n \"admin/editor.menu-link.links.link.position\": \"admin/editor.menu-link.links.link.position\",\n \"admin/editor.menu-link.links.link.position.left\": \"admin/editor.menu-link.links.link.position.left\",\n \"admin/editor.menu-link.links.link.position.middle\": \"admin/editor.menu-link.links.link.position.middle\",\n \"admin/editor.menu-link.links.link.position.right\": \"admin/editor.menu-link.links.link.position.right\",\n \"admin/editor.future-menu.title\": \"Title of the menu editor used in storefront\",\n \"admin/editor.future-menu.description\": \"Description of the menu\",\n \"admin/editor.menu.typography.title\": \"Title of the editor 'typography' item.\",\n \"admin/editor.menu.typography.description\": \"Allows users to choose which typography class will be used in the menu items\",\n \"admin/editor.menu.orientation.title\": \"Title for the orientation option\",\n \"admin/editor.menu.orientation.vertical.label\": \"Label for vertical orientation\",\n \"admin/editor.menu.orientation.horizontal.label\": \"Label for horizontal orientation\",\n \"admin/editor.menu.items.title\": \"menu items title\",\n \"admin/editor.menu.item.id.title\": \"item id title\",\n \"admin/editor.menu.item.type.title\": \"item type title\",\n \"admin/editor.menu.item.category.title\": \"'category' item type title\",\n \"admin/editor.menu.item.custom.title\": \"'custom' item type title\",\n \"admin/editor.menu.item.editorItemTitle.title\": \"editorItemTitle title\",\n \"admin/editor.menu.item.editorItemTitle.description\": \"editorItemTitle description\",\n \"admin/editor.menu.item.onMountBehavior.title\": \"onMountBehavior title\",\n \"admin/editor.menu.item.iconProps\": \"iconProps title\",\n \"admin/editor.menu.item.iconProps.id.title\": \"icon ID title\",\n \"admin/editor.menu.item.highlight.title\": \"highlight title\",\n \"admin/editor.menu.item.submenuWidth.title\": \"subMenuWidth title\",\n \"admin/editor.menu.item.params.title\": \"params Title\",\n \"admin/editor.menu.item.params.categoryId.title\": \"Category id title\",\n \"admin/editor.menu.item.params.text.title\": \"params text title\",\n \"admin/editor.menu.item.params.type.title\": \"params type title\",\n \"admin/editor.menu.item.params.internal.title\": \"params link internal type\",\n \"admin/editor.menu.item.params.external.title\": \"params link external type\",\n \"admin/editor.menu.item.params.href.title\": \"params href title\",\n \"admin/editor.menu.item.params.noFollow.title\": \"params noFollow title\",\n \"admin/editor.menu.item.params.tagTitle.title\": \"params tagTitle title\",\n \"admin/editor.menu.submenu.title\": \"Submenu's title\",\n \"admin/editor.menu.additionalDef.title\": \"Additional Definition title\",\n \"admin/editor.menu.def.none\": \"None value used in radio button\",\n \"admin/editor.menu.def.title\": \"Title value used in radio button\",\n \"admin/editor.menu.def.category\": \"Category value used in radio button\",\n \"admin/editor.menu.categoryId.title\": \"Category ID title\"\n}\n```" } ]
code_menu_01a5fdee
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/messages/de-DE.json from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin/editor.menu-link\": \"Menü\",\n \"admin/editor.menu-link.title\": \"Titel\",\n \"admin/editor.menu-link.description\": \"Eine Menüleiste von Links\",\n \"admin/editor.menu-link.links\": \"Links\",\n \"admin/editor.menu-link.links.link\": \"Link\",\n \"admin/editor.menu-link.links.link.text\": \"Link-Text\",\n \"admin/editor.menu-link.links.link.internalPage\": \"Zielseite\",\n \"admin/editor.menu-link.links.link.internalPage.description\": \"Wenn intern\",\n \"admin/editor.menu-link.links.link.params\": \"Parameter\",\n \"admin/editor.menu-link.links.link.params.description\": \"Durch Komma getrennte Parameter, z. B.: key=value,a=b,c=d\",\n \"admin/editor.menu-link.links.link.externalPage\": \"URL (sollte mit https oder http) beginnen\",\n \"admin/editor.menu-link.links.link.externalPage.description\": \"Wenn extern\",\n \"admin/editor.menu-link.links.link.typeOfRoute\": \"Art der Route\",\n \"admin/editor.menu-link.links.link.typeOfRoute.internal\": \"Intern\",\n \"admin/editor.menu-link.links.link.typeOfRoute.external\": \"Extern\",\n \"admin/editor.menu-link.links.link.position\": \"Position\",\n \"admin/editor.menu-link.links.link.position.left\": \"Links\",\n \"admin/editor.menu-link.links.link.position.middle\": \"Mitte\",\n \"admin/editor.menu-link.links.link.position.right\": \"Rechts\",\n \"admin/editor.future-menu.title\": \"Menü\",\n \"admin/editor.future-menu.description\": \"Die VTEX-Menü-App\",\n \"admin/editor.menu.typography.title\": \"Typografie\",\n \"admin/editor.menu.typography.description\": \"Erlaubt Benutzern auszuwählen, welche Typografieklasse in den Menüeinträgen verwendet werden soll\",\n \"admin/editor.menu.orientation.title\": \"Ausrichtung\",\n \"admin/editor.menu.orientation.vertical.label\": \"vertikal\",\n \"admin/editor.menu.orientation.horizontal.label\": \"horizontal\",\n \"admin/editor.menu.items.title\": \"Menüpunkt\",\n \"admin/editor.menu.item.id.title\": \"ID\",\n \"admin/editor.menu.item.type.title\": \"Typ\",\n \"admin/editor.menu.item.category.title\": \"Kategorie\",\n \"admin/editor.menu.item.custom.title\": \"Benutzerdefiniert\",\n \"admin/editor.menu.item.iconProps.id.title\": \"Symbol-ID\",\n \"admin/editor.menu.item.onMountBehavior.title\": \"Untermenü ist bei Mausverschiebung geöffnet\",\n \"admin/editor.menu.item.editorItemTitle.title\": \"Name des Menüpunkts\",\n \"admin/editor.menu.item.editorItemTitle.description\": \"Dies wird nur im Site-Editor sichtbar sein\",\n \"admin/editor.menu.item.highlight.title\": \"Hervorhebung\",\n \"admin/editor.menu.item.submenuWidth.title\": \"Untermenü-Breite\",\n \"admin/editor.menu.item.params.title\": \"Parameter\",\n \"admin/editor.menu.item.params.categoryId.title\": \"Kategorie-ID\",\n \"admin/editor.menu.item.params.text.title\": \"Text\",\n \"admin/editor.menu.item.params.type.title\": \"Typ\",\n \"admin/editor.menu.item.params.internal.title\": \"Intern\",\n \"admin/editor.menu.item.params.external.title\": \"Extern\",\n \"admin/editor.menu.item.params.href.title\": \"href\",\n \"admin/editor.menu.item.params.noFollow.title\": \"nofollow Attribut\",\n \"admin/editor.menu.item.params.tagTitle.title\": \"title Attribut\",\n \"admin/editor.menu.submenu.title\": \"Untermenü\",\n \"admin/editor.menu.additionalDef.title\": \"Zusätzliche Definition\",\n \"admin/editor.menu.def.none\": \"Keine\",\n \"admin/editor.menu.def.title\": \"Titel\",\n \"admin/editor.menu.def.category\": \"Kategorie\",\n \"admin/editor.menu.categoryId.title\": \"Kategorie-ID\"\n}\n\n```" } ]
code_menu_749019b3
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/messages/fr-FR.json from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin/editor.menu-link\": \"Menu\",\n \"admin/editor.menu-link.title\": \"Titre\",\n \"admin/editor.menu-link.description\": \"Une barre de menu des liens\",\n \"admin/editor.menu-link.links\": \"Liens\",\n \"admin/editor.menu-link.links.link\": \"Lien\",\n \"admin/editor.menu-link.links.link.text\": \"Texte du lien\",\n \"admin/editor.menu-link.links.link.internalPage\": \"Page cible\",\n \"admin/editor.menu-link.links.link.internalPage.description\": \"Si interne\",\n \"admin/editor.menu-link.links.link.params\": \"Paramètres\",\n \"admin/editor.menu-link.links.link.params.description\": \"Les paramètres sont séparés par des virgules, par exemple : clé=valeur,a=b,c=d\",\n \"admin/editor.menu-link.links.link.externalPage\": \"L’URL (doit commencer par https ou http)\",\n \"admin/editor.menu-link.links.link.externalPage.description\": \"Si externe\",\n \"admin/editor.menu-link.links.link.typeOfRoute\": \"Type d’itinéraire\",\n \"admin/editor.menu-link.links.link.typeOfRoute.internal\": \"Interne\",\n \"admin/editor.menu-link.links.link.typeOfRoute.external\": \"Externe\",\n \"admin/editor.menu-link.links.link.position\": \"Position\",\n \"admin/editor.menu-link.links.link.position.left\": \"Gauche\",\n \"admin/editor.menu-link.links.link.position.middle\": \"Milieu\",\n \"admin/editor.menu-link.links.link.position.right\": \"Droite\",\n \"admin/editor.future-menu.title\": \"Menu\",\n \"admin/editor.future-menu.description\": \"L’application VTEX Menu\",\n \"admin/editor.menu.typography.title\": \"Typographie\",\n \"admin/editor.menu.typography.description\": \"Permet aux utilisateurs de choisir la typographie qui sera utilisée dans les éléments du menu\",\n \"admin/editor.menu.orientation.title\": \"Orientation\",\n \"admin/editor.menu.orientation.vertical.label\": \"verticale\",\n \"admin/editor.menu.orientation.horizontal.label\": \"horizontale\",\n \"admin/editor.menu.items.title\": \"Élément de menu\",\n \"admin/editor.menu.item.id.title\": \"Identité\",\n \"admin/editor.menu.item.type.title\": \"Type\",\n \"admin/editor.menu.item.category.title\": \"Categorie\",\n \"admin/editor.menu.item.custom.title\": \"Personnaliser\",\n \"admin/editor.menu.item.iconProps.id.title\": \"ID de l’icône\",\n \"admin/editor.menu.item.onMountBehavior.title\": \"Le sous-menu est ouvert sur pointage\",\n \"admin/editor.menu.item.editorItemTitle.title\": \"Nom de l’item du menu\",\n \"admin/editor.menu.item.editorItemTitle.description\": \"Ceci ne sera visible que dans l’éditeur du site (Site Editor)\",\n \"admin/editor.menu.item.iconProps\": \"Propriétés d’icônes\",\n \"admin/editor.menu.item.iconProps.id.title\": \"ID de l’icône\",\n \"admin/editor.menu.item.highlight.title\": \"Point fort\",\n \"admin/editor.menu.item.submenuWidth.title\": \"Largeur du sous-menu\",\n \"admin/editor.menu.item.params.title\": \"Paramètres\",\n \"admin/editor.menu.item.params.categoryId.title\": \"ID de la catégorie\",\n \"admin/editor.menu.item.params.text.title\": \"Texte\",\n \"admin/editor.menu.item.params.type.title\": \"Type\",\n \"admin/editor.menu.item.params.internal.title\": \"Interne\",\n \"admin/editor.menu.item.params.external.title\": \"Externe\",\n \"admin/editor.menu.item.params.href.title\": \"href\",\n \"admin/editor.menu.item.params.noFollow.title\": \"attribut nofollow\",\n \"admin/editor.menu.item.params.tagTitle.title\": \"attribut title\",\n \"admin/editor.menu.submenu.title\": \"Sous-menu\",\n \"admin/editor.menu.additionalDef.title\": \"Définition supplémentaire\",\n \"admin/editor.menu.def.none\": \"Aucun\",\n \"admin/editor.menu.def.title\": \"Titre\",\n \"admin/editor.menu.def.category\": \"Catégorie\",\n \"admin/editor.menu.categoryId.title\": \"ID de la catégorie\"\n}\n\n```" } ]
code_menu_3435bbee
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/messages/nl-NL.json from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin/editor.menu-link\": \"Menu\",\n \"admin/editor.menu-link.title\": \"Titel\",\n \"admin/editor.menu-link.description\": \"Een menubalk met links\",\n \"admin/editor.menu-link.links\": \"Links\",\n \"admin/editor.menu-link.links.link\": \"Link\",\n \"admin/editor.menu-link.links.link.text\": \"Linktekst\",\n \"admin/editor.menu-link.links.link.internalPage\": \"Doelpagina\",\n \"admin/editor.menu-link.links.link.internalPage.description\": \"Indien intern\",\n \"admin/editor.menu-link.links.link.params\": \"Params\",\n \"admin/editor.menu-link.links.link.params.description\": \"Door komma's gescheiden parameters, bijvoorbeeld: sleutel=waarde, a=b, c=d\",\n \"admin/editor.menu-link.links.link.externalPage\": \"URL (moet beginnen met https of http)\",\n \"admin/editor.menu-link.links.link.externalPage.description\": \"Indien intern\",\n \"admin/editor.menu-link.links.link.typeOfRoute\": \"Type route\",\n \"admin/editor.menu-link.links.link.typeOfRoute.internal\": \"Intern\",\n \"admin/editor.menu-link.links.link.typeOfRoute.external\": \"Externe\",\n \"admin/editor.menu-link.links.link.position\": \"Positie\",\n \"admin/editor.menu-link.links.link.position.left\": \"Links\",\n \"admin/editor.menu-link.links.link.position.middle\": \"Midden\",\n \"admin/editor.menu-link.links.link.position.right\": \"Rechts\",\n \"admin/editor.future-menu.title\": \"Menu\",\n \"admin/editor.future-menu.description\": \"De VTEX Menu-app\",\n \"admin/editor.menu.typography.title\": \"Typografie\",\n \"admin/editor.menu.typography.description\": \"Stelt gebruikers in staat om te kiezen welke typografieklasse zal worden gebruikt in de menu-items\",\n \"admin/editor.menu.orientation.title\": \"Orientatie\",\n \"admin/editor.menu.orientation.vertical.label\": \"verticaal\",\n \"admin/editor.menu.orientation.horizontal.label\": \"horizontaal\",\n \"admin/editor.menu.items.title\": \"Menu-item\",\n \"admin/editor.menu.item.id.title\": \"ID\",\n \"admin/editor.menu.item.type.title\": \"Type\",\n \"admin/editor.menu.item.category.title\": \"Category\",\n \"admin/editor.menu.item.custom.title\": \"Aangepast\",\n \"admin/editor.menu.item.iconProps.id.title\": \"Icoon-id\",\n \"admin/editor.menu.item.onMountBehavior.title\": \"Submenu wordt geopend bij beweging van de cursor over het scherm\",\n \"admin/editor.menu.item.editorItemTitle.title\": \"Naam menu-item\",\n \"admin/editor.menu.item.editorItemTitle.description\": \"Dit zal alleen zichtbaar zijn op Site Editor\",\n \"admin/editor.menu.item.iconProps\": \"Pictogram props\",\n \"admin/editor.menu.item.iconProps.id.title\": \"Icoon-id\",\n \"admin/editor.menu.item.highlight.title\": \"Highlight\",\n \"admin/editor.menu.item.submenuWidth.title\": \"Breedte submenu\",\n \"admin/editor.menu.item.params.title\": \"Params\",\n \"admin/editor.menu.item.params.categoryId.title\": \"Categorie-id\",\n \"admin/editor.menu.item.params.text.title\": \"Tekst\",\n \"admin/editor.menu.item.params.type.title\": \"Type\",\n \"admin/editor.menu.item.params.internal.title\": \"Intern\",\n \"admin/editor.menu.item.params.external.title\": \"Externe\",\n \"admin/editor.menu.item.params.href.title\": \"href\",\n \"admin/editor.menu.item.params.noFollow.title\": \"nofollow-attribuut\",\n \"admin/editor.menu.item.params.tagTitle.title\": \"titel attribuut\",\n \"admin/editor.menu.submenu.title\": \"Submenu\",\n \"admin/editor.menu.additionalDef.title\": \"Aanvullende definitie\",\n \"admin/editor.menu.def.none\": \"Geen\",\n \"admin/editor.menu.def.title\": \"Titel\",\n \"admin/editor.menu.def.category\": \"Categorie\",\n \"admin/editor.menu.categoryId.title\": \"Categorie-id\"\n}\n\n```" } ]
code_menu_50cecad1
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/messages/es.json from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin/editor.menu-link\": \"Menú\",\n \"admin/editor.menu-link.title\": \"Título\",\n \"admin/editor.menu-link.description\": \"Una barra de menú de enlaces\",\n \"admin/editor.menu-link.links\": \"Enlaces\",\n \"admin/editor.menu-link.links.link\": \"Enlace\",\n \"admin/editor.menu-link.links.link.text\": \"Texto del enlace\",\n \"admin/editor.menu-link.links.link.internalPage\": \"Página de destino\",\n \"admin/editor.menu-link.links.link.internalPage.description\": \"Si es interno\",\n \"admin/editor.menu-link.links.link.params\": \"Parámetros\",\n \"admin/editor.menu-link.links.link.params.description\": \"Parámetros separados por coma, por ejemplo: key=value,a=b,c=d\",\n \"admin/editor.menu-link.links.link.externalPage\": \"URL (debe empezar con https o http)\",\n \"admin/editor.menu-link.links.link.externalPage.description\": \"Si es externo\",\n \"admin/editor.menu-link.links.link.typeOfRoute\": \"Tipo de ruta\",\n \"admin/editor.menu-link.links.link.typeOfRoute.internal\": \"Interna\",\n \"admin/editor.menu-link.links.link.typeOfRoute.external\": \"Externa\",\n \"admin/editor.menu-link.links.link.position\": \"Posición\",\n \"admin/editor.menu-link.links.link.position.left\": \"Izquierda\",\n \"admin/editor.menu-link.links.link.position.middle\": \"Centro\",\n \"admin/editor.menu-link.links.link.position.right\": \"Derecha\",\n \"admin/editor.future-menu.title\": \"Menú\",\n \"admin/editor.future-menu.description\": \"Aplicación VTEX Menu\",\n \"admin/editor.menu.typography.title\": \"Tipografía\",\n \"admin/editor.menu.typography.description\": \"Permite a los usuarios seleccionar la clase de tipografía que se utilizará en los ítems del menú\",\n \"admin/editor.menu.orientation.title\": \"Orientación\",\n \"admin/editor.menu.orientation.vertical.label\": \"vertical\",\n \"admin/editor.menu.orientation.horizontal.label\": \"horizontal\",\n \"admin/editor.menu.items.title\": \"Ítem del menú\",\n \"admin/editor.menu.item.id.title\": \"ID\",\n \"admin/editor.menu.item.type.title\": \"Tipo\",\n \"admin/editor.menu.item.category.title\": \"Categoría\",\n \"admin/editor.menu.item.custom.title\": \"Personalizado\",\n \"admin/editor.menu.item.iconProps.id.title\": \"ID del ícono\",\n \"admin/editor.menu.item.onMountBehavior.title\": \"El submenú se abre al pasar el mouse\",\n \"admin/editor.menu.item.editorItemTitle.title\": \"Nombre del ítem del menú\",\n \"admin/editor.menu.item.editorItemTitle.description\": \"Esto solo se verá en Site Editor\",\n \"admin/editor.menu.item.highlight.title\": \"En destaque\",\n \"admin/editor.menu.item.submenuWidth.title\": \"Anchura del submenú\",\n \"admin/editor.menu.item.params.title\": \"Parámetros\",\n \"admin/editor.menu.item.params.categoryId.title\": \"ID de la categoría\",\n \"admin/editor.menu.item.params.text.title\": \"Texto\",\n \"admin/editor.menu.item.params.type.title\": \"Tipo\",\n \"admin/editor.menu.item.params.internal.title\": \"Interno\",\n \"admin/editor.menu.item.params.external.title\": \"Externo\",\n \"admin/editor.menu.item.params.href.title\": \"href\",\n \"admin/editor.menu.item.params.noFollow.title\": \"Atributo nofollow\",\n \"admin/editor.menu.item.params.tagTitle.title\": \"Atributo title\",\n \"admin/editor.menu.submenu.title\": \"Submenú\",\n \"admin/editor.menu.additionalDef.title\": \"Definición adicional\",\n \"admin/editor.menu.def.none\": \"Ninguna\",\n \"admin/editor.menu.def.title\": \"Título\",\n \"admin/editor.menu.def.category\": \"Categoría\",\n \"admin/editor.menu.categoryId.title\": \"ID de la categoría\"\n}\n\n```" } ]
code_menu_26bb760a
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/docs/README.md from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```markdown\n📢 Don't fork this project. Use, contribute, or open issues through [Store Discussion](https://github.com/vtex-apps/store-discussion).\n\n# Menu\n\n<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->\n\n[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors)\n\n<!-- ALL-CONTRIBUTORS-BADGE:END -->\n\nThe Menu component displays a navigation bar with links and dropdown submenus. It can be configured to display internal or external links and supports both category-based and custom menu items.\n\n![menu-app](https://cdn.jsdelivr.net/gh/vtexdocs/dev-portal-content@main/images/vtex-menu-0.png)\n\n## Configuration\n\n1. Add the app to the store theme dependencies in the `manifest.json` file.\n\n```json\n \"dependencies\": {\n \"vtex.menu\": \"2.x\"\n }\n```\n\n2. Add the `vtex.menu@2.x:menu` block to the [store header](https://github.com/vtex-apps/store-header/blob/master/store/interfaces.json) template.\n\n3. Configure the `menu-item` blocks to build the store menu options. These can be declared in two ways in `vtex.menu@2.x:menu`: as children or as props. The advantage of the second type of `menu-item` configuration is that Site Editor can be used to edit the blocks.\n\n### `menu-item` as children\n\n_Example:_\n\n```json\n\"vtex.menu@2.x:menu#websites\": {\n \"children\": [\n \"menu-item#shop\",\n \"menu-item#about-us\"\n ]\n},\n\"menu-item#shop\": {\n \"props\": {\n \"id\": \"menu-item-shop\",\n \"type\": \"custom\",\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"#\",\n \"noFollow\": false,\n \"tagTitle\": \"Shop\",\n \"text\": \"Shop\"\n },\n \"iconProps\": {\n \"id\": \"bnd-logo\",\n \"size\": 16,\n \"viewBox\": \"0 0 16 16\",\n \"activeClassName\": \"rebel-pink\",\n \"mutedClassName\": \"c-action-primary\"\n },\n \"iconToTheRight\": true\n }\n}\n```\n\n### `menu-item` as props\n\n_Example:_\n\n```json\n\"vtex.menu@2.x:menu#websites\": {\n \"props\": {\n \"items\": [\n {\n \"id\": \"menu-item-shop\",\n \"type\": \"custom\",\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"#\",\n \"noFollow\": false,\n \"tagTitle\": \"Shop\",\n \"text\": \"Shop\"\n }\n },\n {\n \"id\": \"menu-item-about-us\",\n \"type\": \"custom\",\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/about-us\",\n \"noFollow\": false,\n \"tagTitle\": \"about-us\",\n \"text\": \"About Us\"\n }\n }\n ]\n }\n}\n```\n\n### Adding a submenu \n\nYou can define a submenu by adding the `submenu` block to a `menu-item`:\n\n```jsonc\n\"menu-item#shop\": {\n \"props\": {\n \"type\": \"custom\",\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"#\",\n \"noFollow\": false,\n \"tagTitle\": \"Shop\",\n \"text\": \"Shop\"\n },\n },\n \"blocks\": [\"vtex.menu@2.x:submenu#shop\"] // Defining a submenu\n},\n\"vtex.menu@2.x:submenu#shop\": {\n \"children\": [\n \"vtex.menu@2.x:menu#submenushop\"\n ]\n},\n\"vtex.menu@2.x:menu#submenushop\": {\n \"children\": [\n \"menu-item#shop\"\n ]\n}\n```\n\n>ℹ️ The Menu block doesn't require any specific child blocks to work\n\n## `menu-item` props\n\nThe available `menu-item` block props are:\n\n| Prop name | Type | Description | Default value |\n| ----------------- | ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- |\n| `type` | `string` | Menu item type, either `category` or `custom` | `category` |\n| `id` | `string` | Menu item ID | `undefined` |\n| `highlight` | `boolean` | Indicates whether the item has a highlight | `undefined` |\n| `iconPosition` | `string` | Icon position relative to the menu item text, either to the `left` or `right` | `left` |\n| `iconProps` | `IconProps` | Icon props | `undefined` |\n| `onMountBehavior` | `enum` | Indicates whether the submenu should always be automatically displayed when its parent is hovered/clicked on (`open`) or (`close`) | `closed` |\n| `itemProps` | `CategoryItem` or `CustomItem` | Item props | `undefined` |\n| `blockClass` | `CustomCSSClasses` | Used to override default CSS handles. To learn how this prop works, check this description of [useCustomClasses](https://github.com/vtex-apps/css-handles#usecustomclasses). Please note that this is only useful when importing this block as a React component. | `undefined` |\n\n### Icon props\n\n| Prop name | Type | Description | Default value |\n| ----------------- | --------- | --------------------------------------- | ------------- |\n| `id` | `string` | Icon ID | N/A |\n| `isActive` | `boolean` | Indicates if the item is active | `true` |\n| `size` | `number` | Icon size | 16 |\n| `viewBox` | `string` | Icon view box | `0 0 16 16` |\n| `activeClassName` | `string` | Icon classname when `isActive` is true | N/A |\n| `mutedClassName` | `string` | Icon classname when `isActive` is false | N/A |\n\n### Category-specific props\n\n| Prop name | Type | Description | Default value |\n| ------------ | -------- | ---------------- | ------------- |\n| `categoryId` | `number` | Item category ID | N/A |\n| `text` | `string` | Menu item text | N/A |\n\n### Custom item props\n\n| Prop name | Type | Description | Default value |\n| ---------- | --------- | ----------------------------------------------- | ------------- |\n| `type` | `string` | Menu item type, either `internal` or `external` | `internal` |\n| `href` | `string` | Link to the menu item destination | N/A |\n| `noFollow` | `boolean` | No follow attribute | N/A |\n| `tagTitle` | `string` | Menu item tag | N/A |\n| `text` | `string` | Menu item text | N/A |\n\n## Customization\n\nTo apply CSS customizations to this and other blocks, please follow the instructions in [Using CSS Handles for store customization](https://developers.vtex.com/docs/guides/vtex-io-documentation-using-css-handles-for-store-customization).\n\n| CSS Handle |\n| -------------------------- |\n| `accordionIcon--isClosed` |\n| `accordionIcon--isOpen` |\n| `accordionIcon` |\n| `container` |\n| `linkLeft` |\n| `linkMiddle` |\n| `linkRight` |\n| `menuContainerNav` |\n| `menuContainer` |\n| `menuItemInnerDiv` |\n| `menuItem` |\n| `menuItem--isOpen` |\n| `menuItem--isClosed` |\n| `menuLinkDivLeft` |\n| `menuLinkDivMiddle` |\n| `menuLinkDivRight` |\n| `menuLinkNav` |\n| `renderLink` |\n| `styledLinkContainer` |\n| `styledLinkContent` |\n| `styledLinkIcon` |\n| `styledLink` |\n| `submenuAccordion` |\n| `submenuColumn` |\n| `submenuContainer` |\n| `submenuWrapper--isClosed` |\n| `submenuWrapper--isOpen` |\n| `submenuWrapper` |\n| `submenu` |\n\n## Contributors\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n<!-- prettier-ignore -->\n<table><tr><td align=\"center\"><a href=\"http://giovanapereira.com.br/\"><img src=\"https://avatars3.githubusercontent.com/u/26018620?v=4\" width=\"100px;\" alt=\"Giovana Pereira\"/><br /><sub><b>Giovana Pereira</b></sub></a><br /><a href=\"https://github.com/vtex-apps/menu/commits?author=giovanapereira\" title=\"Code\">💻</a></td></tr></table>\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind are welcome!\n\n```" } ]
code_menu_2c5afc7f
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/react/index.tsx from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\nimport React, { ReactNode } from 'react'\nimport { useCssHandles, CssHandlesTypes } from 'vtex.css-handles'\nimport { Link } from 'vtex.render-runtime'\nimport { Container } from 'vtex.store-components'\n\nimport Options from './constants/Options'\n\n// This is required because is used in static schema attribute of Menu Component\nconst GLOBAL_PAGES =\n (global as any).__RUNTIME__ && Object.keys((global as any).__RUNTIME__.pages)\n\nconst MAX_ITEMS = 10\n\nconst CSS_HANDLES = [\n 'container',\n 'linkLeft',\n 'linkMiddle',\n 'linkRight',\n 'menuLinkNav',\n 'menuLinkDivLeft',\n 'menuLinkDivMiddle',\n 'menuLinkDivRight',\n 'renderLink',\n] as const\n\ninterface Link {\n text?: string | null\n internalPage?: string\n params?: string | null\n externalPage?: string | null\n typeOfRoute?: string | null\n page?: string | null\n position?: string | null\n}\n\ninterface Options {\n LEFT: string\n MIDDLE: string\n RIGHT: string\n INTERNAL: string\n EXTERNAL: string\n}\n\ninterface Props {\n links?: Link[]\n classes?: CssHandlesTypes.CustomClasses<typeof CSS_HANDLES>\n}\n\n/**\n * Convert the string params to a js object\n */\nconst getParams = (params?: string | null): { [key: string]: string } => {\n const json: { [key: string]: string } = {}\n\n if (params) {\n const array: string[] = params.split(',')\n array.forEach((item: string) => {\n const pair: string[] = item.split('=')\n json[pair[0]] = pair[1]\n })\n }\n\n return json\n}\n\nconst getValidPage = (page?: string | null): string => {\n if (!page || (!page.startsWith('http://') && !page.startsWith('https://'))) {\n page = `http://${page}`\n }\n\n return page\n}\n\n/**\n * Links MenuLink Component.\n * Shows a menu bar with links.\n */\nconst MenuLink: StorefrontFunctionComponent<Props> = ({\n links = [],\n classes,\n}) => {\n const { handles } = useCssHandles(CSS_HANDLES, { classes })\n\n const renderLink = (link: Link, index: number): ReactNode => {\n let className = `${handles.renderLink} t-small link c-muted-2 dib dim mr3 mr4-ns`\n\n // eslint-disable-next-line default-case\n switch (link.position) {\n case Options.LEFT:\n className = `${handles.linkLeft} ${className}`\n break\n case Options.MIDDLE:\n className = `${handles.linkMiddle} ${className}`\n break\n case Options.RIGHT:\n className = `${handles.linkRight} ${className}`\n break\n }\n\n return link.typeOfRoute === Options.INTERNAL ? (\n <Link\n className={className}\n key={`${link.text}-${link.position}-${index}`}\n page={link.internalPage}\n params={getParams(link.params)}\n >\n {link.text}\n </Link>\n ) : (\n <a\n className={className}\n key={`${link.text}-${link.position}-${index}`}\n href={getValidPage(link.externalPage)}\n // eslint-disable-next-line react/jsx-no-target-blank\n target=\"_blank\"\n >\n {link.text}\n </a>\n )\n }\n\n if (!links.length) {\n return null\n }\n\n return (\n <div className={`${handles.container} bg-base h2 c-muted-2 w-100 dn db-ns`}>\n <Container>\n <nav className={`${handles.menuLinkNav} flex justify-between`}>\n <div\n className={`${handles.menuLinkDivLeft} flex-grow pa3 flex items-center`}\n >\n {links\n .filter(link => link.position === Options.LEFT)\n .map((link, index) => {\n return renderLink(link, index)\n })}\n </div>\n <div\n className={`${handles.menuLinkDivMiddle} flex-grow pa3 flex items-center`}\n >\n {links\n .filter(link => link.position === Options.MIDDLE)\n .map((link, index) => {\n return renderLink(link, index)\n })}\n </div>\n <div\n className={`${handles.menuLinkDivRight} flex-grow pa3 flex items-center`}\n >\n {links\n .filter(link => link.position === Options.RIGHT)\n .map((link, index) => {\n return renderLink(link, index)\n })}\n </div>\n </nav>\n </Container>\n </div>\n )\n}\n\nMenuLink.schema = {\n title: 'admin/editor.menu-link',\n description: 'admin/editor.menu-link.description',\n type: 'object',\n properties: {\n links: {\n title: 'admin/editor.menu-link.links',\n type: 'array',\n minItems: 0,\n maxItems: MAX_ITEMS,\n items: {\n title: 'admin/editor.menu-link.links.link',\n type: 'object',\n properties: {\n text: {\n title: 'admin/editor.menu-link.links.link.text',\n type: 'string',\n },\n internalPage: {\n title: 'admin/editor.menu-link.links.link.internalPage',\n description:\n 'admin/editor.menu-link.links.link.internalPage.description',\n type: 'string',\n enum: GLOBAL_PAGES,\n },\n params: {\n title: 'admin/editor.menu-link.links.link.params',\n description: 'admin/editor.menu-link.links.link.params.description',\n type: 'string',\n },\n externalPage: {\n title: 'admin/editor.menu-link.links.link.externalPage',\n description:\n 'admin/editor.menu-link.links.link.externalPage.description',\n type: 'string',\n },\n typeOfRoute: {\n title: 'admin/editor.menu-link.links.link.typeOfRoute',\n type: 'string',\n enum: [Options.INTERNAL, Options.EXTERNAL],\n enumNames: [\n 'admin/editor.menu-link.links.link.typeOfRoute.internal',\n 'admin/editor.menu-link.links.link.typeOfRoute.external',\n ],\n default: Options.INTERNAL,\n widget: {\n 'ui:widget': 'radio',\n 'ui:options': {\n inline: true,\n },\n },\n },\n position: {\n title: 'admin/editor.menu-link.links.link.position',\n type: 'string',\n enum: [Options.LEFT, Options.MIDDLE, Options.RIGHT],\n enumNames: [\n 'admin/editor.menu-link.links.link.position.left',\n 'admin/editor.menu-link.links.link.position.middle',\n 'admin/editor.menu-link.links.link.position.right',\n ],\n default: Options.MIDDLE,\n },\n },\n },\n },\n },\n}\n\nexport default MenuLink\n\n```" } ]
code_menu_9978db22
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/react/Submenu.tsx from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\nimport React from 'react'\nimport classNames from 'classnames'\nimport { defineMessages } from 'react-intl'\nimport { useCssHandles, CssHandlesTypes } from 'vtex.css-handles'\n\nconst CSS_HANDLES = ['submenu', 'submenuWrapper', 'submenuContainer'] as const\n\nexport interface SubmenuProps extends SubmenuSchema {\n isOpen: boolean\n orientation: Orientation\n paddingTop: number | string\n paddingBottom: number | string\n blockClass?: string\n classes?: CssHandlesTypes.CustomClasses<typeof CSS_HANDLES>\n}\n\nconst MAX_TACHYONS_SCALE = 11\nexport type TachyonsScaleInput = string | number | undefined\n\n/** TODO: This function is copied from the flex-layout app.\n * It should probably be exported to a separate package.\n */\nconst parseTachyonsValue = (value: TachyonsScaleInput, name?: string) => {\n if (!value) {\n return 0\n }\n\n const parsedValue = typeof value === 'string' ? parseInt(value, 10) : value\n\n if (\n // eslint-disable-next-line no-restricted-globals\n isNaN(parsedValue) ||\n String(parsedValue) !== String(value) ||\n parsedValue < 0 ||\n parsedValue > MAX_TACHYONS_SCALE\n ) {\n if (name) {\n console.warn(\n `Invalid ${name} value. It should be an integer between 0 and ${MAX_TACHYONS_SCALE}.`\n )\n }\n return 0\n }\n\n return parsedValue\n}\n\nconst Submenu: StorefrontFunctionComponent<SubmenuProps> = ({\n isOpen,\n width,\n children,\n classes,\n orientation = Orientation.horizontal,\n paddingTop = 4,\n paddingBottom = 4,\n}) => {\n const { handles, withModifiers } = useCssHandles(CSS_HANDLES, { classes })\n\n return (\n <div\n className={`${handles.submenuContainer} ${\n width === '100%' ? '' : 'relative'\n }`}\n >\n <div\n className={classNames(\n withModifiers('submenuWrapper', isOpen ? 'isOpen' : 'isClosed'),\n `absolute left-0 bg-base pt${parseTachyonsValue(\n paddingTop,\n 'paddingTop'\n )} pb${parseTachyonsValue(\n paddingBottom,\n 'paddingBottom'\n )} bw1 bb b--muted-3 z-2`,\n {\n dn: !isOpen,\n flex: isOpen,\n 'w-100': width === '100%',\n 'w-auto ml6': width === 'auto',\n }\n )}\n >\n <section\n className={classNames(handles.submenu, 'w-100 flex justify-center', {\n 'flex-column': orientation === Orientation.vertical,\n })}\n >\n {children}\n </section>\n </div>\n </div>\n )\n}\n\nenum Orientation {\n horizontal = 'horizontal',\n vertical = 'vertical',\n}\n\ninterface SubmenuSchema {\n width: '100%' | 'auto'\n}\n\nconst messages = defineMessages({\n submenuTitle: {\n defaultMessage: '',\n id: 'admin/editor.menu.submenu.title',\n },\n submenuWidthTitle: {\n defaultMessage: '',\n id: 'admin/editor.menu.item.submenuWidth.title',\n },\n})\n\n// tslint:disable: object-literal-sort-keys\nSubmenu.getSchema = () => ({\n title: messages.submenuTitle.id,\n})\n\nexport default Submenu\n\n```" } ]
code_menu_ce66f4f1
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/react/SubmenuAccordion.tsx from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\nimport React from 'react'\nimport { defineMessages } from 'react-intl'\nimport { useCssHandles, CssHandlesTypes } from 'vtex.css-handles'\n\nimport Collapsible from './components/Collapsible'\n\nconst CSS_HANDLES = ['submenuAccordion'] as const\n\ninterface Props {\n isOpen: boolean\n blockClass?: string\n classes?: CssHandlesTypes.CustomClasses<typeof CSS_HANDLES>\n}\n\nconst SubmenuAccordion: StorefrontFunctionComponent<Props> = ({\n isOpen,\n classes,\n children,\n}) => {\n const { handles } = useCssHandles(CSS_HANDLES, { classes })\n\n return (\n <Collapsible open={isOpen}>\n <section className={`${handles.submenuAccordion} w-100 flex pl4 flex`}>\n {children}\n </section>\n </Collapsible>\n )\n}\n\nconst messages = defineMessages({\n submenuTitle: {\n defaultMessage: '',\n id: 'editor.menu.submenu.title',\n },\n})\n\nSubmenuAccordion.getSchema = () => ({\n title: messages.submenuTitle.id,\n type: 'object',\n})\n\nexport default SubmenuAccordion\n\n```" } ]
code_menu_44e9eac3
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/react/MenuItem.tsx from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\nimport React, {\n Reducer,\n useReducer,\n useContext,\n useState,\n useEffect,\n useCallback,\n useRef,\n} from 'react'\nimport classNames from 'classnames'\nimport { defineMessages } from 'react-intl'\nimport { ExtensionPoint } from 'vtex.render-runtime'\nimport {\n useCssHandles,\n applyModifiers,\n CssHandlesTypes,\n} from 'vtex.css-handles'\n\nimport { CategoryItemSchema } from './components/CategoryItem'\nimport { CustomItemSchema } from './components/CustomItem'\nimport Item from './components/Item'\nimport { IconProps } from './components/StyledLink'\nimport useSubmenuImplementation from './hooks/useSubmenuImplementation'\nimport MenuContext from './components/MenuContext'\nimport { useMouseSpeedDebouncer } from './hooks/useMouseSpeedDebouncer'\nimport { useUrlChange } from './hooks/useUrlChange'\n\nconst CSS_HANDLES = ['menuItem', 'menuItemInnerDiv'] as const\n\nexport interface MenuItemSchema {\n id: string\n type: 'category' | 'custom'\n iconProps: IconProps\n iconPosition: 'left' | 'right'\n highlight: boolean\n itemProps: CategoryItemSchema | CustomItemSchema\n onMountBehavior?: 'open' | 'closed'\n blockClass?: string\n experimentalOptimizeRendering?: boolean\n classes?: CssHandlesTypes.CustomClasses<typeof CSS_HANDLES>\n}\n\ntype SubmenuState = {\n hasBeenActive: boolean\n isActive: boolean\n onMountBehavior?: 'open' | 'closed'\n}\n\ntype SubmenuAction =\n | { type: 'SHOW_SUBMENU' }\n | { type: 'HIDE_SUBMENU' }\n | { type: 'DISABLE_ON_MOUNT_BEHAVIOR_FLAG' }\n\nconst submenuReducer: Reducer<SubmenuState, SubmenuAction> = (\n state,\n action\n) => {\n switch (action.type) {\n case 'SHOW_SUBMENU':\n return {\n hasBeenActive: true,\n isActive: true,\n }\n case 'HIDE_SUBMENU':\n return {\n ...state,\n isActive: false,\n }\n case 'DISABLE_ON_MOUNT_BEHAVIOR_FLAG':\n return {\n ...state,\n onMountBehavior: 'closed',\n }\n default:\n return state\n }\n}\n\nconst MenuItem: StorefrontFunctionComponent<MenuItemSchema> = ({\n children,\n onMountBehavior = 'closed',\n ...props\n}) => {\n const { experimentalOptimizeRendering } = useContext(MenuContext)\n const [\n { isActive, hasBeenActive, onMountBehavior: onMountBehaviorFlag },\n dispatch,\n ] = useReducer(submenuReducer, {\n hasBeenActive: onMountBehavior === 'open',\n isActive: onMountBehavior === 'open',\n onMountBehavior,\n })\n const [isHovered, setHovered] = useState(false)\n const setActive = useCallback(\n (value: boolean) => {\n if (value !== isActive) {\n dispatch({ type: value ? 'SHOW_SUBMENU' : 'HIDE_SUBMENU' })\n }\n },\n [isActive]\n )\n const disableIsOpenOnMountFlag = useCallback(() => {\n if (onMountBehaviorFlag === 'open') {\n dispatch({ type: 'DISABLE_ON_MOUNT_BEHAVIOR_FLAG' })\n }\n }, [onMountBehaviorFlag])\n\n // Close any active/open menu when url changes\n useUrlChange(() => {\n if (isActive) setActive(false)\n }, [isActive, setActive])\n\n /* Prevents submenus from closing if the mouse is moving within a certain speed.\n * This makes it easier for the user to click on a submenu item without it closing on\n * them if they hover another menu item by accident. */\n const debouncedSetActive = useMouseSpeedDebouncer(setActive, {\n delay: 200,\n maxSpeed: 450,\n })\n\n /* This is a temporary check of which kind of submenu is being\n * inserted. This will be replaced by new functionality of useChildBlocks\n * in the future. */\n const submenuImplementation = useSubmenuImplementation()\n const isCollapsible = submenuImplementation === 'submenu.accordion'\n\n const closeTimeout = useRef<number | null>(null)\n useEffect(\n function guaranteeClosing() {\n if (isCollapsible) {\n return\n }\n\n if (closeTimeout.current) {\n clearTimeout(closeTimeout.current)\n }\n\n // if a menu is still active but is not hovered for at least 400ms, close it\n if (isActive && !isHovered && onMountBehaviorFlag !== 'open') {\n closeTimeout.current = window.setTimeout(() => {\n setActive(false)\n }, 400)\n }\n\n return () => {\n closeTimeout.current && clearTimeout(closeTimeout.current)\n }\n },\n [isActive, isCollapsible, isHovered, setActive, onMountBehaviorFlag]\n )\n\n const { handles } = useCssHandles(CSS_HANDLES, { classes: props.classes })\n\n const itemClasses = classNames(\n handles.menuItem,\n 'list',\n applyModifiers(handles.menuItem, isActive ? 'isOpen' : 'isClosed')\n )\n\n if (isCollapsible) {\n return (\n <li className={itemClasses}>\n {/* eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events */}\n <div\n className={handles.menuItemInnerDiv}\n onClick={event => {\n setActive(!isActive)\n event.stopPropagation()\n }}\n >\n <Item {...props} accordion active={isActive} />\n </div>\n {(hasBeenActive || !experimentalOptimizeRendering) && (\n /* Collapsible menus need to still persist after being open,\n * to make the closing transition work properly */ <>\n <ExtensionPoint id=\"submenu\" isOpen={isActive} />\n <ExtensionPoint id=\"unstable--submenu\" isOpen={isActive} />\n {children}\n </>\n )}\n </li>\n )\n }\n\n return (\n <li\n className={itemClasses}\n onMouseEnter={() => {\n debouncedSetActive(true)\n setHovered(true)\n disableIsOpenOnMountFlag()\n }}\n onMouseLeave={() => {\n debouncedSetActive(false)\n setHovered(false)\n }}\n >\n <Item {...props} active={isActive} />\n {(isActive || !experimentalOptimizeRendering) && (\n <>\n <ExtensionPoint id=\"submenu\" isOpen={isActive} />\n <ExtensionPoint id=\"unstable--submenu\" isOpen={isActive} />\n {children}\n </>\n )}\n </li>\n )\n}\n\nconst messages = defineMessages({\n categoryIdTitle: {\n defaultMessage: '',\n id: 'admin/editor.menu.item.params.categoryId.title',\n },\n categoryTitle: {\n defaultMessage: '',\n id: 'admin/editor.menu.item.category.title',\n },\n customTitle: {\n defaultMessage: '',\n id: 'admin/editor.menu.item.custom.title',\n },\n customTypeTitle: {\n defaultMessage: '',\n id: 'admin/editor.menu.item.params.type.title',\n },\n externalTitle: {\n defaultMessage: '',\n id: 'admin/editor.menu.item.params.external.title',\n },\n highlightTitle: {\n defaultMessage: '',\n id: 'admin/editor.menu.item.highlight.title',\n },\n hrefTitle: {\n defaultMessage: '',\n id: 'admin/editor.menu.item.params.href.title',\n },\n internalTitle: {\n defaultMessage: '',\n id: 'admin/editor.menu.item.params.internal.title',\n },\n onMountBehaviorTitle: {\n defaultMessage: '',\n id: 'admin/editor.menu.item.onMountBehavior.title',\n },\n itemIdTitle: {\n defaultMessage: '',\n id: 'admin/editor.menu.item.id.title',\n },\n itemsTitle: {\n defaultMessage: '',\n id: 'admin/editor.menu.items.title',\n },\n noFollowTitle: {\n defaultMessage: '',\n id: 'admin/editor.menu.item.params.noFollow.title',\n },\n paramsTextTitle: {\n defaultMessage: '',\n id: 'admin/editor.menu.item.params.text.title',\n },\n paramsTitle: {\n defaultMessage: '',\n id: 'admin/editor.menu.item.params.title',\n },\n tagTitleTitle: {\n defaultMessage: '',\n id: 'admin/editor.menu.item.params.tagTitle.title',\n },\n typeTitle: {\n defaultMessage: '',\n id: 'admin/editor.menu.item.type.title',\n },\n})\n\nMenuItem.getSchema = props => {\n const text = props?.itemProps?.text\n const id = props?.id ? props.id : ''\n\n // tslint:disable: object-literal-sort-keys\n return {\n title: [text, id, messages.itemsTitle.id].find(e => !!e),\n type: 'object',\n required: ['type'],\n properties: {\n id: {\n default: id,\n title: messages.itemIdTitle.id,\n type: 'string',\n },\n },\n }\n}\n\nexport default MenuItem\n\n```" } ]
code_menu_8a68a06b
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/react/package.json from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"vtex.menu\",\n \"version\": \"2.35.3\",\n \"description\": \"A Menu Component.\",\n \"scripts\": {\n \"pretest\": \"yarn\",\n \"test\": \"vtex-test-tools test\",\n \"test:watch\": \"vtex-test-tools test --watch\",\n \"lint\": \"tsc --noEmit --pretty && tslint -c tslint.json './**/*.ts'\"\n },\n \"author\": \"VTEX\",\n \"license\": \"ISC\",\n \"dependencies\": {\n \"@vtex/css-handles\": \"^1.1.3\",\n \"classnames\": \"^2.2.6\",\n \"graphql\": \"^14.6.0\",\n \"react\": \"^16.13.0\",\n \"react-apollo\": \"^3.1.3\",\n \"react-dom\": \"^16.13.0\",\n \"react-intl\": \"^3.12.0\"\n },\n \"devDependencies\": {\n \"@apollo/react-testing\": \"^3.1.3\",\n \"@types/classnames\": \"^2.2.9\",\n \"@types/jest\": \"^25.1.3\",\n \"@types/node\": \"^13.7.7\",\n \"@types/prop-types\": \"^15.7.3\",\n \"@types/react\": \"^16.9.23\",\n \"@vtex/test-tools\": \"^3.0.3\",\n \"@vtex/tsconfig\": \"^0.4.4\",\n \"apollo-cache-inmemory\": \"^1.6.5\",\n \"apollo-client\": \"^2.6.8\",\n \"history\": \"^5.0.0\",\n \"typescript\": \"3.9.7\",\n \"vtex.css-handles\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.css-handles@1.0.0/public/@types/vtex.css-handles\",\n \"vtex.native-types\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.native-types@0.7.4/public/@types/vtex.native-types\",\n \"vtex.render-runtime\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.render-runtime@8.126.4/public/@types/vtex.render-runtime\",\n \"vtex.store-components\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store-components@3.134.0/public/@types/vtex.store-components\",\n \"vtex.store-graphql\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store-graphql@2.136.8/public/@types/vtex.store-graphql\",\n \"vtex.store-icons\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store-icons@0.18.0/public/@types/vtex.store-icons\"\n },\n \"resolutions\": {\n \"json-schema\": \"^0.4.0\",\n \"jsdom\": \"^16.5.0\",\n \"jest-environment-jsdom\": \"^26.0.0\",\n \"node-notifier\": \"^8.0.1\"\n }\n}\n\n```" } ]
code_menu_bcf48879
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/react/Menu.tsx from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\nimport React, { useContext, useMemo } from 'react'\nimport classNames from 'classnames'\nimport { defineMessages } from 'react-intl'\nimport { CssHandlesTypes, useCssHandles } from 'vtex.css-handles'\nimport { useRuntime } from 'vtex.render-runtime'\n\nimport CategoryMenu from './components/CategoryMenu'\nimport Item from './components/Item'\nimport LevelContext from './components/LevelContext'\nimport MenuContext from './components/MenuContext'\nimport MenuItem, { MenuItemSchema } from './MenuItem'\n\nconst CSS_HANDLES = ['menuContainer', 'menuContainerNav'] as const\n\ninterface MenuSchema {\n orientation?: 'vertical' | 'horizontal'\n categoryId?: number\n textType?: Typography\n title?: MenuItemSchema\n additionalDef?: string\n blockClass?: string\n items?: MenuItemSchema[]\n experimentalOptimizeRendering?: boolean\n classes?: CssHandlesTypes.CustomClasses<typeof CSS_HANDLES>\n}\n\nenum Typography {\n heading1 = 't-heading-1',\n heading2 = 't-heading-2',\n heading3 = 't-heading-3',\n heading4 = 't-heading-4',\n heading5 = 't-heading-5',\n body = 't-body',\n small = 't-small',\n mini = 't-mini',\n}\n\nconst TypographyMap: Record<string, string> = {\n body: 't-body',\n heading1: 't-heading-1',\n heading2: 't-heading-2',\n heading3: 't-heading-3',\n heading4: 't-heading-4',\n heading5: 't-heading-5',\n mini: 't-mini',\n small: 't-small',\n}\n\nconst Menu: StorefrontFunctionComponent<MenuSchema> = ({\n orientation = 'horizontal',\n textType,\n title,\n categoryId,\n items: itemsProps = [],\n children,\n experimentalOptimizeRendering = false,\n classes,\n}) => {\n const { getSettings } = useRuntime()\n const level = useContext(LevelContext)\n const { handles } = useCssHandles(CSS_HANDLES, { classes })\n const menuContext = useMemo(\n () => ({\n experimentalOptimizeRendering:\n experimentalOptimizeRendering ||\n getSettings('vtex.store')?.enableMenuRenderingOptimization,\n hasTitle: !!(title ?? categoryId),\n orientation,\n textType: textType ? TypographyMap[textType] : TypographyMap.body,\n }),\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [orientation, textType, experimentalOptimizeRendering]\n )\n\n const menuItems = itemsProps\n .filter(item => item.itemProps)\n .map(({ itemProps: { text }, itemProps, ...rest }) => (\n <MenuItem key={text} itemProps={itemProps} {...rest} />\n ))\n\n return (\n <LevelContext.Provider value={level + 1}>\n <MenuContext.Provider value={menuContext}>\n <nav className={handles.menuContainerNav}>\n <ul\n className={classNames(handles.menuContainer, 'list flex pl0 mv0', {\n 'flex-column': orientation === 'vertical',\n 'flex-row': orientation === 'horizontal',\n })}\n >\n {!categoryId && title && <Item {...title} isTitle />}\n {categoryId && <CategoryMenu categoryId={categoryId} />}\n {children}\n {menuItems}\n </ul>\n </nav>\n </MenuContext.Provider>\n </LevelContext.Provider>\n )\n}\n\nconst messages = defineMessages({\n categoryDef: {\n defaultMessage: '',\n id: 'admin/editor.menu.def.category',\n },\n categoryIdTitle: {\n defaultMessage: '',\n id: 'admin/editor.menu.categoryId.title',\n },\n defTitle: {\n defaultMessage: '',\n id: 'admin/editor.menu.additionalDef.title',\n },\n horizontalLabel: {\n defaultMessage: '',\n id: 'admin/editor.menu.orientation.horizontal.label',\n },\n menuTitle: {\n defaultMessage: '',\n id: 'admin/editor.future-menu.title',\n },\n noneDef: {\n defaultMessage: '',\n id: 'admin/editor.menu.def.none',\n },\n orientationTitle: {\n defaultMessage: '',\n id: 'admin/editor.menu.orientation.title',\n },\n titleDef: {\n defaultMessage: '',\n id: 'admin/editor.menu.def.title',\n },\n typographyTitle: {\n defaultMessage: '',\n id: 'admin/editor.menu.typography.title',\n },\n verticalLabel: {\n defaultMessage: '',\n id: 'admin/editor.menu.orientation.vertical.label',\n },\n})\n\nMenu.getSchema = () => {\n // tslint:disable: object-literal-sort-keys\n return {\n title: messages.menuTitle.id,\n }\n}\n\nexport default Menu\n\n```" } ]
code_menu_f7ced793
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/react/Column.tsx from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\nimport React, { PropsWithChildren } from 'react'\nimport { useCssHandles, CssHandlesTypes } from 'vtex.css-handles'\n\nconst CSS_HANDLES = ['submenuColumn'] as const\n\ninterface Props {\n classes?: CssHandlesTypes.CustomClasses<typeof CSS_HANDLES>\n}\n\nfunction Column(props: PropsWithChildren<Props>) {\n const { handles } = useCssHandles(CSS_HANDLES, { classes: props.classes })\n\n return <div className={handles.submenuColumn}>{props.children}</div>\n}\n\nexport default Column\n\n```" } ]
code_menu_4304fc77
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/store/contentSchemas.json from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"definitions\": {\n \"Menu\": {\n \"type\": \"object\",\n \"dependencies\": {\n \"additionalDef\": {\n \"oneOf\": [\n {\n \"properties\": {\n \"additionalDef\": {\n \"enum\": [\n \"category\"\n ]\n },\n \"categoryId\": {\n \"type\": \"integer\",\n \"title\": \"admin/editor.menu.categoryId.title\"\n }\n }\n },\n {\n \"properties\": {\n \"additionalDef\": {\n \"enum\": [\n \"title\"\n ]\n },\n \"title\": {\n \"$ref\": \"app:vtex.menu#/definitions/MenuItem\"\n }\n }\n },\n {\n \"properties\": {\n \"additionalDef\": {\n \"enum\": [\n \"enum\"\n ]\n }\n }\n }\n ]\n }\n },\n \"properties\": {\n \"additionalDef\": {\n \"title\": \"admin/editor.menu.additionalDef.title\",\n \"enum\": [\n \"none\",\n \"category\",\n \"title\"\n ],\n \"enumNames\": [\n \"admin/editor.menu.def.none\",\n \"admin/editor.menu.def.category\",\n \"admin/editor.menu.def.title\"\n ],\n \"widget\": {\n \"ui:widget\": \"radio\"\n },\n \"default\": \"none\"\n },\n \"textType\": {\n \"title\": \"admin/editor.menu.typography.title\",\n \"type\": \"string\",\n \"enum\": [\n \"t-heading-1\",\n \"t-heading-2\",\n \"t-heading-3\",\n \"t-heading-4\",\n \"t-heading-5\",\n \"t-body\",\n \"t-small\",\n \"t-mini\"\n ],\n \"enumNames\": [\n \"t-heading-1\",\n \"t-heading-2\",\n \"t-heading-3\",\n \"t-heading-4\",\n \"t-heading-5\",\n \"t-body\",\n \"t-small\",\n \"t-mini\"\n ],\n \"default\": \"t-body\"\n },\n \"orientation\": {\n \"title\": \"admin/editor.menu.orientation.title\",\n \"type\": \"string\",\n \"enum\": [\n \"vertical\",\n \"horizontal\"\n ],\n \"enumNames\": [\n \"admin/editor.menu.orientation.vertical.label\",\n \"admin/editor.menu.orientation.horizontal.label\"\n ],\n \"default\": \"horizontal\"\n },\n \"items\": {\n \"minItems\": 0,\n \"type\": \"array\",\n \"title\": \"admin/editor.menu.items.title\",\n \"items\": {\n \"$ref\": \"app:vtex.menu#/definitions/MenuItem\"\n }\n }\n }\n },\n \"MenuItem\": {\n \"dependencies\": {\n \"type\": {\n \"oneOf\": [\n {\n \"properties\": {\n \"type\": {\n \"enum\": [\n \"category\"\n ]\n },\n \"itemProps\": {\n \"type\": \"object\",\n \"properties\": {\n \"categoryId\": {\n \"title\": \"admin/editor.menu.item.params.categoryId.title\",\n \"type\": \"string\"\n }\n } \n } \n }\n },\n {\n \"properties\": {\n \"type\": {\n \"enum\": [\n \"custom\"\n ]\n },\n \"itemProps\": {\n \"type\": \"object\",\n \"properties\": { \n \"type\": {\n \"title\": \"admin/editor.menu.item.params.type.title\",\n \"type\": \"string\",\n \"enum\": [\n \"internal\",\n \"external\"\n ],\n \"enumNames\": [\n \"admin/editor.menu.item.params.internal.title\",\n \"admin/editor.menu.item.params.external.title\"\n ]\n },\n \"text\": {\n \"title\": \"admin/editor.menu.item.params.text.title\",\n \"$ref\": \"app:vtex.native-types#/definitions/text\"\n },\n \"href\": {\n \"title\": \"admin/editor.menu.item.params.href.title\",\n \"type\": \"string\"\n },\n \"noFollow\": {\n \"title\": \"admin/editor.menu.item.params.noFollow.title\",\n \"type\": \"boolean\"\n },\n \"tagTitle\": {\n \"title\": \"admin/editor.menu.item.params.tagTitle.title\",\n \"$ref\": \"app:vtex.native-types#/definitions/text\"\n }\n }\n },\n \"iconProps\": {\n \"title\": \"admin/editor.menu.item.iconProps\",\n \"properties\": {\n \"id\": {\n \"title\": \"admin/editor.menu.item.iconProps.id.title\",\n \"type\": \"string\",\n \"default\": null\n }\n }\n }\n }\n }\n ]\n }\n },\n \"properties\": {\n \"__editorItemTitle\": {\n \"title\": \"admin/editor.menu.item.editorItemTitle.title\",\n \"description\": \"admin/editor.menu.item.editorItemTitle.description\",\n \"type\": \"string\"\n },\n \"highlight\": {\n \"title\": \"admin/editor.menu.item.highlight.title\",\n \"type\": \"boolean\"\n },\n \"type\": {\n \"title\": \"admin/editor.menu.item.type.title\",\n \"type\": \"string\",\n \"enum\": [\n \"category\",\n \"custom\"\n ],\n \"default\": \"custom\",\n \"enumNames\": [\n \"admin/editor.menu.item.category.title\",\n \"admin/editor.menu.item.custom.title\"\n ],\n \"widget\": {\n \"ui:widget\": \"radio\"\n }\n },\n \"onMountBehavior\": {\n \"title\": \"admin/editor.menu.item.onMountBehavior.title\",\n \"type\": \"string\",\n \"enum\": [\n \"open\",\n \"closed\"\n ]\n }\n }\n },\n \"Submenu\": {\n \"type\": \"object\",\n \"properties\": {\n \"submenuWidth\": {\n \"title\": \"admin/editor.menu.item.submenuWidth.title\",\n \"enum\": [\n \"100%\",\n \"auto\"\n ],\n \"default\": \"auto\"\n }\n }\n }\n }\n}\n```" } ]
code_menu_bf931474
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/store/interfaces.json from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"menu-link\": {\n \"component\": \"index\"\n },\n \"menu\": {\n \"component\": \"Menu\",\n \"composition\": \"children\",\n \"content\": {\n \"$ref\": \"app:vtex.menu#/definitions/Menu\"\n }\n },\n \"menu-item\": {\n \"component\": \"MenuItem\",\n \"composition\": \"children\",\n \"allowed\": [\"submenu\"],\n \"content\": {\n \"$ref\": \"app:vtex.menu#/definitions/MenuItem\"\n }\n },\n \"submenu\": {\n \"component\": \"Submenu\",\n \"composition\": \"children\",\n \"content\": {\n \"$ref\": \"app:vtex.menu#/definitions/Submenu\"\n }\n },\n \"submenu.accordion\": {\n \"component\": \"SubmenuAccordion\",\n \"composition\": \"children\"\n },\n \"submenu-col\": {\n \"component\": \"Column\",\n \"composition\": \"children\"\n },\n \"unstable--menu\": {\n \"component\": \"Menu\",\n \"composition\": \"children\"\n },\n \"unstable--menu-item\": {\n \"component\": \"MenuItem\",\n \"allowed\": [\"unstable--submenu\"]\n },\n \"unstable--submenu\": {\n \"component\": \"Submenu\",\n \"composition\": \"children\"\n },\n \"unstable--col\": {\n \"component\": \"Column\",\n \"composition\": \"children\"\n },\n \"unstable--second-level-menu\": {\n \"component\": \"Menu\",\n \"composition\": \"children\"\n },\n \"unstable--second-level-menu-item\": {\n \"component\": \"MenuItem\"\n }\n}\n\n```" } ]
code_menu_c69ba014
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/react/constants/Options.ts from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nexport default {\n EXTERNAL: 'external',\n INTERNAL: 'internal',\n LEFT: 'left',\n MIDDLE: 'middle',\n RIGHT: 'right',\n}\n\n```" } ]
code_menu_b40b61f3
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/react/typings/vtex.store-icons.d.ts from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\ndeclare module 'vtex.store-icons' {\n export const Icon\n}\n\n```" } ]
code_menu_e7928f0a
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/react/typings/global.d.ts from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport { FunctionComponent } from 'react'\n\ndeclare global {\n interface StorefrontFunctionComponent<P = {}> extends FunctionComponent<P> {\n schema?: object\n getSchema?(props?: P): object\n }\n\n interface StorefrontComponent<P = {}, S = {}> extends Component<P, S> {\n schema?: object\n getSchema?(props: P): object\n }\n\n interface StorefrontElement extends ReactElement {\n schema?: object\n getSchema?(props: P): object\n }\n}\n\n```" } ]
code_menu_e4414eb5
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/react/typings/css.d.ts from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\ndeclare module '*.css' {\n const css: any\n export default css\n}\n\n```" } ]
code_menu_da9d6486
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/react/typings/graphql.d.ts from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\ndeclare module '*.graphql' {\n import { DocumentNode } from 'graphql'\n\n const value: DocumentNode\n export default value\n}\n\n```" } ]
code_menu_8c98ac11
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/react/components/LevelContext.tsx from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\nimport { createContext } from 'react'\n\nconst LevelContext = createContext(0)\n\nexport default LevelContext\n\n```" } ]
code_menu_26f8f2ee
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/react/components/MenuContext.tsx from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\nimport { createContext } from 'react'\n\nconst MenuContext = createContext<MenuContextValue>({\n experimentalOptimizeRendering: false,\n hasTitle: false,\n orientation: 'horizontal',\n textType: 't-body',\n})\n\ninterface MenuContextValue {\n hasTitle: boolean\n orientation: 'horizontal' | 'vertical'\n textType: string\n experimentalOptimizeRendering?: boolean\n}\n\nexport default MenuContext\n\n```" } ]
code_menu_29c4e5a5
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/react/components/CustomItem.tsx from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\nimport React, { FunctionComponent } from 'react'\nimport { injectIntl } from 'react-intl'\nimport { formatIOMessage } from 'vtex.native-types'\n\nimport StyledLink, { StyledLinkProps } from './StyledLink'\n\nconst CustomItem: FunctionComponent<\n CustomItemProps & { intl: any }\n> = props => {\n const { type, noFollow, tagTitle, text, href, intl, ...rest } = props\n\n return (\n <StyledLink\n {...rest}\n to={href}\n title={formatIOMessage({ id: tagTitle, intl })}\n {...(type === 'external' ? { target: '_blank', rel: 'noopener' } : {})}\n {...(noFollow ? { rel: 'nofollow noopener' } : {})}\n >\n {formatIOMessage({ id: text, intl })}\n </StyledLink>\n )\n}\n\nexport interface CustomItemProps extends CustomItemSchema, StyledLinkProps {}\n\nexport interface CustomItemSchema {\n type: 'internal' | 'external'\n href: string\n noFollow: boolean\n tagTitle: string\n text: string\n}\n\nexport default injectIntl(CustomItem)\n\n```" } ]
code_menu_b02c61e6
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/react/components/Item.tsx from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\nimport React, { FunctionComponent } from 'react'\n\nimport CategoryItem, { CategoryItemSchema } from './CategoryItem'\nimport CustomItem, { CustomItemSchema } from './CustomItem'\nimport { StyledLinkProps } from './StyledLink'\n\n// TODO use this\n// type ItemComponent = (\n// props: CategoryItemProps | CustomItemProps\n// ) => React.ReactElement\n\nconst menuItemTypes = {\n category: CategoryItem,\n custom: CustomItem,\n}\n\nconst Item: FunctionComponent<ItemProps> = props => {\n const { type, itemProps, ...rest } = props\n\n // TODO: fix\n const Component = menuItemTypes[type] as any\n\n if (!Component) {\n return null\n }\n\n return <Component {...rest} {...itemProps} />\n}\n\ninterface ItemProps extends StyledLinkProps {\n type: 'category' | 'custom'\n accordion?: boolean\n itemProps: CategoryItemSchema | CustomItemSchema\n}\n\nexport default Item\n\n```" } ]
code_menu_12b5389d
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/react/components/StyledLink.tsx from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\nimport classNames from 'classnames'\nimport React, { FunctionComponent, useContext } from 'react'\nimport { useCssHandles } from 'vtex.css-handles'\nimport { Link } from 'vtex.render-runtime'\nimport { Icon } from 'vtex.store-icons'\n\nimport LevelContext from './LevelContext'\nimport MenuContext from './MenuContext'\n\nconst CSS_HANDLES = [\n 'styledLink',\n 'styledLinkIcon',\n 'styledLinkContainer',\n 'styledLinkContent',\n 'accordionIcon',\n] as const\n\nconst defaultTypography: Record<number, string> = {\n 1: 't-body',\n 2: 't-small',\n 3: 't-small',\n}\n\nconst StyledLink: FunctionComponent<StyledLinkProps> = props => {\n const level = useContext(LevelContext)\n const { orientation, hasTitle } = useContext(MenuContext)\n const { handles, withModifiers } = useCssHandles(CSS_HANDLES)\n\n const {\n typography = defaultTypography[level],\n accordion,\n highlight,\n isHovered,\n active,\n isTitle,\n disabled,\n to,\n children,\n iconId,\n iconProps,\n iconPosition,\n treePath,\n ...rest\n } = props\n\n const hasLink = to && to !== '#'\n\n const linkClassNames = classNames(\n withModifiers('styledLink', highlight ? 'highlight' : ''),\n 'no-underline pointer',\n {\n [typography]: true,\n 'c-emphasis': highlight,\n 'c-muted-1': !highlight && hasTitle && !isTitle,\n 'c-on-base': !highlight && !hasTitle,\n 'fw5 c-on-base': !highlight && isTitle,\n pointer: !disabled,\n }\n )\n\n const iconTestId = `icon-${iconPosition}`\n const iconComponent = iconProps?.id ? (\n <span className={`${handles.styledLinkIcon} mh2`} data-testid={iconTestId}>\n <Icon\n id={iconProps.id}\n isActive={iconProps.isActive}\n size={iconProps.size}\n viewBox={iconProps.viewBox}\n activeClassName={iconProps.activeClassName}\n mutedClassName={iconProps.mutedClassName}\n />\n </span>\n ) : null\n\n const content = (\n <div className={`${handles.styledLinkContent} flex justify-between nowrap`}>\n {iconPosition === 'left' && iconComponent}\n {children}\n {iconPosition === 'right' && iconComponent}\n {accordion && (\n <div\n className={`${withModifiers(\n 'accordionIcon',\n active ? 'isOpen' : 'isClosed'\n )} ml3 c-muted-2`}\n >\n {active ? '-' : '+'}\n </div>\n )}\n </div>\n )\n\n return (\n <div\n className={classNames(handles.styledLinkContainer, 'mh6', {\n pv2: orientation === 'vertical',\n pv5: orientation === 'horizontal' && level === 1,\n })}\n >\n {disabled || !hasLink || accordion ? (\n <span className={linkClassNames}>{content}</span>\n ) : (\n <Link to={to} {...rest} className={linkClassNames}>\n {content}\n </Link>\n )}\n </div>\n )\n}\n\nexport interface StyledLinkProps extends LinkProps {\n highlight?: boolean\n isHovered?: boolean\n active?: boolean\n isTitle?: boolean\n typography?: string\n disabled?: boolean\n accordion?: boolean\n treePath?: string\n iconId?: string\n iconProps?: IconProps\n iconPosition?: 'left' | 'right'\n}\n\nexport interface IconProps {\n id: string\n isActive?: boolean\n size?: number\n viewBox?: string\n activeClassName?: string\n mutedClassName?: string\n}\n\ninterface LinkProps {\n to?: any\n title?: string\n target?: string\n rel?: string\n}\n\nStyledLink.defaultProps = {\n iconPosition: 'left',\n}\n\nexport default StyledLink\n\n```" } ]
code_menu_1ababe69
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/react/components/CategoryItem.tsx from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\nimport React, { Component } from 'react'\nimport { Query, QueryResult } from 'react-apollo'\n\nimport category from '../graphql/category.graphql'\nimport StyledLink, { StyledLinkProps } from './StyledLink'\n\nclass CategoryItem extends Component<CategoryItemProps, State> {\n public static getDerivedStateFromError() {\n return { hasError: true }\n }\n\n public state = { hasError: false }\n\n public componentDidCatch(error: any) {\n // eslint-disable-next-line no-console\n console.log({ error })\n }\n\n public render() {\n const { categoryId, text, ...rest } = this.props\n\n if (this.state.hasError || categoryId == null) {\n return null\n }\n\n return (\n <Query query={category} variables={{ id: categoryId }}>\n {({ data, loading, error }: QueryResult) => {\n if (error) {\n throw new Error(\n `GraphQL error while rendering Menu rendered Category id ${categoryId}`\n )\n }\n\n if (loading) {\n // TODO: Add a ContentLoader here\n return null\n }\n\n const {\n category: { name, titleTag, href },\n } = data\n\n return (\n <StyledLink {...rest} title={titleTag} to={href}>\n {text ?? name}\n </StyledLink>\n )\n }}\n </Query>\n )\n }\n}\n\nexport interface CategoryItemProps\n extends CategoryItemSchema,\n StyledLinkProps {}\n\nexport interface CategoryItemSchema {\n categoryId: number\n text?: string\n}\n\ninterface State {\n hasError: boolean\n}\n\nexport default CategoryItem\n\n```" } ]
code_menu_a8905085
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/react/components/Collapsible.tsx from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\nimport React, {\n useState,\n useRef,\n useEffect,\n useContext,\n FunctionComponent,\n useMemo,\n} from 'react'\n\nconst TRANSITION_DELAY = 250\n\nfunction isFunction(value: any): value is (...rest: any) => any {\n return typeof value === 'function'\n}\n\ninterface Props {\n open: boolean\n}\n\ninterface CollapsibleContextValue {\n updateHeight?: (height: number) => void\n}\n\nconst CollapsibleContext = React.createContext<CollapsibleContextValue>({})\n\nconst Collapsible: FunctionComponent<Props> = ({ children, open }) => {\n const { updateHeight: updateParentHeight } = useContext(CollapsibleContext)\n\n const [height, setHeight] = useState(0)\n\n const contextValue = useMemo(\n () => ({\n updateHeight: (heightDelta: number) => {\n setHeight(height + heightDelta)\n if (isFunction(updateParentHeight)) {\n updateParentHeight(heightDelta)\n }\n },\n }),\n [updateParentHeight, height]\n )\n\n return (\n <CollapsibleContext.Provider value={contextValue}>\n <CollapsibleContainer open={open} height={height}>\n {children}\n </CollapsibleContainer>\n </CollapsibleContext.Provider>\n )\n}\n\ninterface ContainerProps {\n open: boolean\n height: number\n}\n\nconst CollapsibleContainer: FunctionComponent<ContainerProps> = ({\n children,\n open,\n height,\n}) => {\n const { updateHeight } = useContext(CollapsibleContext)\n\n const container = useRef<HTMLDivElement>(null)\n\n useEffect(() => {\n /** Calculates the content size on the next browser render tick,\n * because the content might not exist right at the time of\n * changing the open prop\n */\n requestAnimationFrame(() => {\n const element = container.current\n\n /** The second verification here prevents it from trying to close\n * the menu on initialization (because `open` inits as `false`)\n */\n if (!element || (!open && height === 0)) {\n return\n }\n\n const initialHeight = element.offsetHeight\n const initialMaxHeight = element.style.maxHeight\n\n element.style.height = 'auto'\n element.style.maxHeight = 'none'\n\n const childrenHeight = element.offsetHeight\n\n element.style.height = `${initialHeight}px`\n element.style.maxHeight = initialMaxHeight\n\n /** Runs `getBoundingClientRect` to trigger a layout event\n * in order to make the transition to the new height work.\n */\n element.getBoundingClientRect()\n\n if (isFunction(updateHeight)) {\n updateHeight(open ? childrenHeight : -childrenHeight)\n }\n })\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [open])\n\n return (\n <div\n className=\"overflow-hidden\"\n ref={container}\n style={{\n height,\n transition: `height ${TRANSITION_DELAY}ms ease-out`,\n }}\n >\n {children}\n </div>\n )\n}\n\nexport default Collapsible\n\n```" } ]
code_menu_c7678cbb
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/react/components/CategoryMenu.tsx from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\nimport React, { FunctionComponent } from 'react'\nimport { Query } from 'react-apollo'\n\nimport categoryWithChildren from '../graphql/categoryWithChildren.graphql'\nimport StyledLink from './StyledLink'\n\nconst CategoryLink: FunctionComponent<CategoryLinkProps> = ({\n href,\n titleTag,\n isTitle,\n name,\n}: CategoryLinkProps) => {\n return (\n <StyledLink title={titleTag} to={href} isTitle={isTitle}>\n {name}\n </StyledLink>\n )\n}\n\nconst CategoryMenu: FunctionComponent<CategoryMenuProps> = ({\n categoryId,\n}: CategoryMenuProps) => {\n if (categoryId == null) {\n return null\n }\n return (\n <Query query={categoryWithChildren} variables={{ id: categoryId }}>\n {({ data, loading, error }: any) => {\n if (error || loading) {\n // TODO add loader and error message\n return null\n }\n\n const {\n category,\n category: { children },\n }: { category: Category } = data\n return (\n <>\n <CategoryLink {...category} isTitle />\n {children?.map((child: Category) => (\n <li key={child.id}>\n <CategoryLink {...child} />\n </li>\n ))}\n </>\n )\n }}\n </Query>\n )\n}\n\ninterface CategoryMenuProps {\n categoryId: number\n customText?: string\n}\n\ninterface Category {\n id: number\n titleTag: string\n href: string\n name: string\n children: Category[]\n}\n\ninterface CategoryLinkProps extends Category {\n isTitle?: boolean\n}\n\nexport default CategoryMenu\n\n```" } ]
code_menu_180f82e2
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/react/__tests__/StyledLink.test.tsx from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\nimport { render } from '@vtex/test-tools/react'\nimport React from 'react'\n\nimport StyledLink from '../components/StyledLink'\n\ndescribe('Icon should appear at the left', () => {\n function renderComponent(iconPos: 'left' | 'right' | undefined) {\n const props = {\n active: false,\n children: 'Shop',\n highlight: false,\n iconProps: {\n activeClassName: 'rebel-pink',\n id: 'bnd-logo',\n mutedClassName: 'c-action-primary',\n size: 16,\n viewBox: '0 0 16 16',\n },\n iconPosition: iconPos,\n id: 'menu-item-shop',\n params: undefined,\n query: undefined,\n title: 'Shop',\n to: '#',\n treePath:\n 'store.home/$before_header.full/header-layout.desktop/header-row#3-desktop/vtex.menu@2.x:menu#websites/menu-item#shop',\n }\n return render(<StyledLink {...props} />)\n }\n\n it('should be rendered', () => {\n expect(renderComponent('left')).toBeDefined()\n })\n\n it('should not have icon', () => {\n const props = {\n active: false,\n children: 'Shop',\n highlight: false,\n iconToTheRight: false,\n id: 'menu-item-shop',\n params: undefined,\n query: undefined,\n title: 'Shop',\n to: '#',\n treePath:\n 'store.home/$before_header.full/header-layout.desktop/header-row#3-desktop/vtex.menu@2.x:menu#websites/menu-item#shop',\n }\n\n const { queryByTestId } = render(<StyledLink {...props} />)\n expect(queryByTestId('icon-right')).toBeNull()\n expect(queryByTestId('icon-left')).toBeNull()\n })\n\n it('should have icon to the left', () => {\n const { getByTestId } = renderComponent('left')\n // eslint-disable-next-line jest/valid-expect\n expect(getByTestId('icon-left'))\n })\n\n it('should have icon to the right', () => {\n const { getByTestId } = renderComponent('right')\n // eslint-disable-next-line jest/valid-expect\n expect(getByTestId('icon-right'))\n })\n})\n\n```" } ]
code_menu_25302545
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/react/__tests__/Menu.test.tsx from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\nimport { render } from '@vtex/test-tools/react'\nimport React from 'react'\n\nimport Menu from '../Menu'\n\ndescribe('Menu Component', () => {\n function renderComponent() {\n return render(<Menu />)\n }\n\n it('should be rendered', () => {\n expect(renderComponent()).toBeDefined()\n })\n\n it('should match the snapshot', () => {\n const { asFragment } = renderComponent()\n expect(asFragment()).toMatchSnapshot()\n })\n\n it('should be editable through storefront', () => {\n expect(Menu.getSchema?.({})).toHaveProperty('title')\n })\n})\n\n```" } ]
code_menu_96ab2dbf
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/react/__tests__/MenuLink.test.tsx from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\nimport { render } from '@vtex/test-tools/react'\nimport React from 'react'\n\nimport Menu from '../index'\n\ndescribe('MenuLink Component', () => {\n function renderComponent() {\n const props = {\n links: [\n {\n externalPage: 'externalPage',\n internalPage: 'internalPage',\n page: 'page',\n params: 'params',\n position: 'position',\n text: 'text',\n typeOfRoute: 'typeOfRoute',\n },\n ],\n }\n\n return render(<Menu {...props} />)\n }\n\n it('should be rendered', () => {\n expect(renderComponent()).toBeDefined()\n })\n\n it('should match the snapshot', () => {\n const { asFragment } = renderComponent()\n expect(asFragment()).toMatchSnapshot()\n })\n})\n\n```" } ]
code_menu_542508e1
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/react/graphql/categoryWithChildren.graphql from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```graphql\nquery categoryWithChildren($id: Int) {\n category(id: $id) {\n cacheId\n id\n href\n name\n titleTag\n children {\n id\n href\n name\n titleTag\n }\n }\n}\n\n```" } ]
code_menu_9b6d6065
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/react/graphql/category.graphql from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```graphql\nquery category($id: Int) {\n category(id: $id) {\n cacheId\n id\n href\n name\n titleTag\n }\n}\n```" } ]
code_menu_1ca6585a
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/react/hooks/useSubmenuImplementation.tsx from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\n// @ts-expect-error - useTreePath is not a public API\nimport { useRuntime, useTreePath } from 'vtex.render-runtime'\n\n/** This is a throwaway function, while useChildBlock doesn't return\n * the \"implements\" block info, or which specialization of the block\n * is being used (i.e. whether its `submenu` or `submenu.accordion`)\n */\nconst useSubmenuImplementation = () => {\n const runtime = useRuntime()\n const treePathContext = useTreePath()\n\n const { treePath } = treePathContext\n // @ts-expect-error - extensions is not a public API\n const { extensions } = runtime\n\n if (!extensions || !treePath) {\n return null\n }\n\n const submenuTreePath = `${treePath}/submenu`\n\n const extension = extensions[submenuTreePath]\n\n if (!extension) {\n return null\n }\n\n const { component } = extension\n\n if (\n typeof component === 'string' &&\n component.indexOf('SubmenuAccordion') > -1\n ) {\n return 'submenu.accordion'\n }\n return 'submenu'\n}\n\nexport default useSubmenuImplementation\n\n```" } ]
code_menu_a46c0b2c
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/react/hooks/useMouseSpeedDebouncer.ts from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport { useRef } from 'react'\n\nimport { useMouseSpeed } from './useMouseSpeed'\n\n// Max mouse speed in pixels/second to allow the debounced method to be called\nconst MAX_MOUSE_SPEED = 450\nconst DEBOUNCE_INTERVAL = 200\n\nexport const useMouseSpeedDebouncer = (\n fn: Function,\n {\n delay = DEBOUNCE_INTERVAL,\n maxSpeed = MAX_MOUSE_SPEED,\n }: { delay: number; maxSpeed: number }\n) => {\n const timeout = useRef<number | null>(null)\n const { getMouseSpeed } = useMouseSpeed()\n\n return (...args: any[]) => {\n let lastSpeed: number | null = null\n\n if (timeout.current) {\n clearTimeout(timeout.current)\n timeout.current = null\n }\n\n timeout.current = window.setTimeout(function check() {\n const speed = getMouseSpeed()\n if (speed <= maxSpeed) {\n fn(...args)\n } else if (lastSpeed !== null && lastSpeed > maxSpeed) {\n fn(...args)\n } else if (lastSpeed == null || lastSpeed !== speed) {\n timeout.current = window.setTimeout(check, delay)\n }\n lastSpeed = speed\n }, delay)\n }\n}\n\n```" } ]
code_menu_c3ac4bd9
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/react/hooks/useUrlChange.ts from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport { useCallback, useEffect } from 'react'\nimport { useRuntime } from 'vtex.render-runtime'\nimport type { Listener } from 'history'\n\nexport const useUrlChange = (fn: Listener, deps: unknown[]) => {\n const { history } = useRuntime()\n\n const memoizedCallback = useCallback(fn, deps)\n\n useEffect(() => {\n // cancel method is returned to be executed whenever our deps change\n return history?.listen(memoizedCallback)\n }, [memoizedCallback, history])\n}\n\n```" } ]
code_menu_87abfd36
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of menu/react/hooks/useMouseSpeed.ts from the menu VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport { useEffect } from 'react'\n\ninterface MousePosition {\n x: number | null\n y: number | null\n}\n\nconst lastPosition: MousePosition = { x: null, y: null }\nconst currentPosition: MousePosition = { x: null, y: null }\n\nlet listenerCount = 0\nlet lastTimestamp = 0\nlet mouseSpeed = 0\n\nconst handleMouseMove = (e: MouseEvent) => {\n currentPosition.x = e.pageX\n currentPosition.y = e.pageY\n\n if (lastPosition.x != null && lastPosition.y != null) {\n const now = e.timeStamp\n const distance = Math.sqrt(\n (currentPosition.x - lastPosition.x) ** 2 +\n (currentPosition.y - lastPosition.y) ** 2\n )\n // gives us speed in pixels/second\n const interval = now - lastTimestamp\n mouseSpeed = Math.round((distance / interval) * 1000)\n lastTimestamp = now\n }\n\n lastPosition.x = currentPosition.x\n lastPosition.y = currentPosition.y\n}\n\nexport const useMouseSpeed = () => {\n useEffect(() => {\n if (listenerCount === 0) {\n window.addEventListener('mousemove', handleMouseMove)\n }\n\n listenerCount += 1\n\n return () => {\n listenerCount -= 1\n\n if (listenerCount > 0) {\n return\n }\n\n lastPosition.x = null\n lastPosition.y = null\n currentPosition.x = null\n currentPosition.y = null\n window.removeEventListener('mousemove', handleMouseMove)\n }\n }, [])\n\n return {\n // Can return NaN for tiny variations\n getMouseSpeed: () => mouseSpeed || 0,\n }\n}\n\n```" } ]
code_formula_8488f220
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of formula/docs/README.md from the formula VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```markdown\n# VTEX Formula\n\nThe VTEX Formula hackathon manager\n\nSign-up at https://vtex.myvtex.com/formula\n\n```" } ]
code_formula_8c66935b
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of formula/pages/pages.json from the formula VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"pages\": {\n \"formula\": {\n \"path\": \"/formula\"\n },\n \"formula/intro\": {\n \"path\": \"/formula\"\n },\n \"formula/projects\": {\n \"path\": \"/formula/:edition\"\n },\n \"formula/projects/list\": {\n \"path\": \"/formula/:edition/projects\"\n },\n \"formula/projects/finalists\": {\n \"path\": \"/formula/:edition/finalists\"\n },\n \"formula/projects/detail\": {\n \"path\": \"/formula/:edition/projects/:id\"\n }\n },\n \"extensions\": {\n \"formula\": {\n \"component\": \"Template\"\n },\n \"formula/intro\": {\n \"component\": \"Intro\"\n },\n \"formula/projects\": {\n \"component\": \"ProjectTemplate\"\n },\n \"formula/projects/list\": {\n \"component\": \"FormulaEdition\"\n },\n \"formula/projects/finalists\": {\n \"component\": \"FormulaEdition\"\n },\n \"formula/projects/detail\": {\n \"component\": \"ProjectDetail\"\n }\n }\n}\n\n```" } ]
code_formula_77861780
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of formula/react/Intro.tsx from the formula VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\nimport React, { Component } from 'react'\nimport { FormattedMessage } from 'react-intl'\nimport { Link, withRuntimeContext } from 'render'\nimport { Button, Card } from 'vtex.styleguide'\n\nimport Header from './components/Header'\nimport TeamIcon from './icons/TeamIcon'\nimport SignupIcon from './icons/SignupIcon'\nimport DevelopIcon from './icons/DevelopIcon'\nimport AwardIcon from './icons/AwardIcon'\n\nclass IntroPage extends Component<RuntimeProps> {\n componentDidMount() {\n const { runtime: { prefetchPage } } = this.props\n prefetchPage('formula/projects')\n prefetchPage('formula/projects/list')\n prefetchPage('formula/projects/detail')\n }\n\n render() {\n return (\n <div>\n <Header />\n <div className=\"tc f2 fw7 mt10\">We know you missed Formula</div>\n <div className=\"flex flex-row-ns flex-column items-center justify-center-ns w-100 pv9 tc f4\">\n <div className=\"ma6 w5\">\n <Card>\n <TeamIcon height=\"68\" />\n <div className=\"pv5\">Create a team</div>\n <div className=\"f6 c-muted-2\">Up to five members</div>\n </Card>\n </div>\n <div className=\"ma6 w5\">\n <Card>\n <SignupIcon height=\"68\" />\n <div className=\"pv5\">Sign up</div>\n <div className=\"f6 c-muted-2\">You have until tomorrow!</div>\n </Card>\n </div>\n <div className=\"ma6 w5\">\n <Card>\n <DevelopIcon height=\"68\" />\n <div className=\"pv5\">Develop</div>\n <div className=\"f6 c-muted-2\">Improve VTEX product</div>\n </Card>\n </div>\n <div className=\"ma6 w5\">\n <Card>\n <AwardIcon height=\"68\" />\n <div className=\"pv5\">Win prizes!</div>\n <div className=\"f6 c-muted-2\">Surprise, surprise ;)</div>\n </Card>\n </div>\n </div>\n <div className=\"pa8 flex center justify-center\">\n <Link page=\"formula/projects/list\" params={{edition: \"2018.10\"}}>\n <Button variation=\"primary\">\n <FormattedMessage id=\"formula.signup\"/>\n </Button>\n </Link>\n </div>\n </div>\n )\n }\n}\n\nexport default withRuntimeContext(IntroPage)\n\n```" } ]
code_formula_1bb16fe6
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of formula/react/global.css from the formula VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n@import '//io.vtex.com.br/fonts/fabriga/stylesheet.css';\n\nhtml,\nbody,\n#render-container,\n#render-provider,\n.render-container,\n.render-provider,\n\n/* Fixes Safari position:fixed + z-index bug https://www.queness.com/code-snippet/16824/fix-mobile-safari-positionfixed-and-z-index-issue */\n.safari-positioning {\n transform: translate3d(0, 0, 0);\n -webkit-transform: translate3d(0, 0, 0);\n}\n\n.font-display,\n.font-body {\n font-family: 'Fabriga', 'Helvetica Neue', 'Arial', sans-serif;\n}\n\n.c-action-primary {\n color: #f71963;\n}\n\n.bg-action-primary {\n background-color: #f71963;\n}\n\n.b--action-primary {\n border-color: #f71963;\n}\n\n.vtex-pageHeader__container {\n background-color: white;\n}\n\n.hover-bg-action-primary:hover {\n background-color: #dd1659;\n}\n\n.hover-b--action-primary:hover {\n background-color: #dd1659;\n}\n```" } ]
code_formula_9b4a9882
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of formula/react/ProjectDetail.tsx from the formula VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\nimport React, { Component, Fragment } from 'react'\nimport { Query } from 'react-apollo'\nimport { FormattedMessage } from 'react-intl'\nimport { withRuntimeContext } from 'render'\nimport { PageHeader } from 'vtex.styleguide'\n\nimport ProjectDetailQuery from './queries/project.graphql'\n\nimport Loading from './components/Loading'\nimport ProjectForm from './components/ProjectForm'\n\ninterface ProjectsData {\n data: any\n params: any\n}\n\ninterface ProjectState {\n project: Project\n}\n\nclass ProjectDetail extends Component<ProjectsData & RuntimeProps, ProjectState> {\n constructor(props: any) {\n super(props)\n\n this.state = {\n project: props.data && props.data.project || {}\n }\n }\n\n public render() {\n const { params: { edition, id }, runtime } = this.props\n\n return (\n <Query query={ProjectDetailQuery} skip={id === 'new'} variables={{edition, id}}>\n {({ loading, error, data = {} }) => {\n return (\n <div className=\"pa7 bg-white mw7 center\">\n {loading ? <Loading /> : (\n <Fragment>\n <PageHeader\n title={<FormattedMessage id=\"formula.projectDetails\" />}\n linkLabel={<FormattedMessage id=\"formula.back\" />}\n onLinkClick={() => {\n runtime.navigate({page: 'formula/projects/list', params: {edition}})\n }}\n />\n <ProjectForm initialProject={data.project} edition={edition} email={data.profile && data.profile.email}/>\n </Fragment>\n )}\n </div>\n )\n }}\n </Query>\n )\n }\n}\n\nexport default withRuntimeContext(ProjectDetail)\n\n```" } ]
code_formula_d31bf3a9
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of formula/react/typings.d.ts from the formula VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\ndeclare module '*.graphql' {\n import { DocumentNode } from 'graphql'\n\n const value: DocumentNode\n export default value\n}\n\ndeclare module 'vtex.styleguide' {\n import { ReactElement } from 'react'\n\n const Badge: ReactElement\n const Button: ReactElement\n const Checkbox: ReactElement\n const Dropdown: ReactElement\n const IconCaretRight: ReactElement\n const Input: ReactElement\n const Tab: ReactElement\n const Tabs: ReactElement\n const Textarea: ReactElement\n const Radio: ReactElement\n const Spinner: ReactElement\n const PageHeader: ReactElement\n\n export { Badge, Button, Checkbox, Dropdown, IconCaretRight, Input, Tab, Tabs, Textarea, Radio, Spinner, PageHeader }\n}\n\ndeclare module 'render' {\n import { ReactElement } from 'react'\n import { Helmet } from 'react-helmet'\n\n const NoSSR: ReactElement\n const Link: ReactElement\n const withRuntimeContext: ReactElement\n\n export { NoSSR, Helmet, Link, withRuntimeContext }\n}\n\ninterface Project {\n demoURL?: string\n description?: string\n edition?: string\n id?: string\n name?: string\n owner?: string\n team?: ProfileData[]\n}\n\ninterface ProfileData {\n id: string\n name: string\n email: string\n picture: string\n}\n\ninterface RuntimeProps {\n runtime: any\n}\n\nenum States {\n Registration = 'REGISTRATION',\n Running = 'RUNNING',\n Voting = 'VOTING',\n Results = 'RESULTS'\n}\n\n```" } ]