Skip to content

Commit 6cf14cf

Browse files
bcomerfordyurytut1993bc-alexsaiannyibc-nataliyakvnwang
authored
Cornerstone update 6.7.0 (#60)
* Releasing 5.2.0 * Revert "Releasing 5.2.0" * Releasing 5.2.0 * Revert "Releasing 5.2.0" 2nd time * Releasing 5.2.0 * feat(storefront): BCTHEME-200 add notifications announcement on carousel change (bigcommerce#1986) * fix(storefront): BCTHEME-392 fixed line breaks on Dropdown Menu (bigcommerce#1996) * fix(storefront): BCTHEME-347 Add unique identifiers to product cards (bigcommerce#1999) * fix(storefront): BCTHEME-409 Update focus trap in Modal (bigcommerce#1998) * fix(search): ES-2031 add error message for when star search is not availabble in facted search * feat(search): ES-1590 render error msg for brand page * fix(search): ES-2031 make search error more generic * feat(search): ES-2031 add change to changelog * feat(storefront): BCTHEME-322 add sold-out badges for products on PLP (bigcommerce#2003) * BCTHEME-426: Insufficient link text for "Read More" links (bigcommerce#2012) * BCTHEME-422: Announce email field as mandatory (bigcommerce#2011) * BCTHEME-420: 'Skip to main content' is not visible (bigcommerce#2010) * fix(storefront): BCTHEME-427 Insufficient button label on cart page (bigcommerce#2013) * feat(storefront): BCTHEME-231 Add placeholder for failed to load carousel images and update scalability (bigcommerce#2009) * fix(storefront): BCTHEME-429 Unlabelled edit fields on cart page (bigcommerce#2016) * fix(storefront): BCTHEME-428 Insufficient link text on cart page (bigcommerce#2014) * fix(storefront): BCTHEME-424 Alt text should include product name for ratings (bigcommerce#2015) * fix(storefront): IE11 - Clicking on Search Does Not Display Search Bar (bigcommerce#2017) * Releasing 5.3.0-rc.1 * Fixing 'Skip to main' content mobile display * Releasing 5.3.0-rc.2 * Releasing 5.3.0 * Revert Releasing 5.3.0 * Remove AddThis for social sharing, replace with provider sharing links (bigcommerce#1997) * Updated changelog * Releasing 5.3.0 * fix(search): ES-2071 removed adding selected filters for price filter since not needed (bigcommerce#2018) * fix(storefront): BCTHEME-431 remove horizontal scroll on swatch options PDP (bigcommerce#2023) * fix(search): ES-2138 fixed count showing issue for category facet * fix(storefront): BCTHEME-349 improve email validation for forms (bigcommerce#2029) * feat(storefront): BCTHEME-445 replace page builder ssl settings with new global region for html widget (bigcommerce#2026) * fix(storefront): BCTHEME-447 extend keyboard support for radio buttons (bigcommerce#2028) * feat(storefront): BCTHEME-446 Improve performance of analyzing homepage carousel image (bigcommerce#2027) * fix(storefront): BCTHEME-395 Wish List drop down is truncated on product page (bigcommerce#2001) * fix(storefront): BCTHEME-434 Hamburger Menu Icon missing on Google AMP Pages (bigcommerce#2022) * fix(storefront): BCTHEME-449 remove main tag duplicates (bigcommerce#2032) * feat(storefront): BCTHEME-425 Incorrect focus order for product carousels (bigcommerce#2034) * Releasing 5.4.0-rc.1 * fix(storefront): DEV-426 Fix GitHub workflows for default storefront * Releasing 5.4.0 * fix(storefront): BCTHEME-325 Apple pay button displaying needs to be fixed (bigcommerce#2043) * fix(storefront): BCTHEME-457 Update focus tooltip styles contrast to achieve accessibility AA Complaince (bigcommerce#2047) * Use https:// for schema markup (bigcommerce#2039) * fix(storefront): BCTHEME-423 Search result on search page not notified by screen reader (bigcommerce#2024) * feat(payment): PAYPAL-968 added banner widgets to page builder (bigcommerce#2021) * fix(storefront): bctheme-448 fix multiple swatch options (bigcommerce#2040) * feat(storefront): BCTHEME-476 Scale focus trap for all modals (bigcommerce#2049) * Releasing 5.5.0-rc.1 * Releasing 5.5.0 * fix(storefront): BCTHEME-496 Translation Gap: Delete from Cart confirmation popup. (bigcommerce#2065) * fix(storefront): BCTHEME-512 add translation for invalid quantity value error on cart (bigcommerce#2062) * fix(storefront): BCTHEME-459 fix product quantity change error (bigcommerce#2052) * Fix eslint grunt check * build(deps): bump underscore from 1.12.0 to 1.13.1 (bigcommerce#2053) * Updated CHANGELOG.md for bigcommerce#2052 * fix(storefront): BCTHEME-514 Translation Gap: Gift Certificate -> Code required message (bigcommerce#2064) * fix(storefront): BCTHEME-490 Translation Gap: Compare products error message (bigcommerce#2061) Co-authored-by: yurytut1993 <66325265+yurytut1993@users.noreply.github.com> * fix(storefront): BCTHEME-492 Translation Gap: Compare page fields (Description, Rating and Availability) (bigcommerce#2059) * fix(storefront): BCTHEME-479 Logo on AMP Product details page (PDP) does not fit header (bigcommerce#2054) * fix(storefront): BCTHEME-477 Add to cart button and Wishlist should be on one line on desktop (bigcommerce#2050) * fix(storefront): BCTHEME-535 Translation Gap: Cart -> Shipping estimator error messages. (bigcommerce#2066) * fix(storefront): BCTHEME-507 Translation Gap: Account -> Wish List -> Name required message. (bigcommerce#2060) * fix(storefront): BCTHEME-452 Unable to select 'None' on unrequired Swatch Options (bigcommerce#2068) * Fix eslint errors in cart.js, shipping-estimator.js and test in cart.spec.js (bigcommerce#2072) * fix(storefront): STRF-9126 Facebook social share returns an error for blog pages * fix(storefront): BCTHEME-544 fix potential shift on change options modal on Cart (bigcommerce#2071) * fix(storefront): BCTHEME-543 Product images in quick view can be squashed (bigcommerce#2075) * fix(storefront): BCTHEME-601 Enter press on Compare checkbox cause quick view opening (bigcommerce#2074) * feat(storefront): BCTHEME-608 Translation mechanism for config.json values should be implemented (bigcommerce#2076) * Update CHANGELOG.md * Updated CHANGELOG.md for bigcommerce#2024 * Releasing 5.6.0-rc.1 * Add missing quotes for Country and State/Province fields of Shipping Estimator to pass functional tests (bigcommerce#2079) * Releasing 5.6.0-rc.2 * Releasing 5.6.0 * feat(storefront): BCTHEME-603 Added translations for Consent Manager (bigcommerce#2083) * feat(storefront): BCTHEME-600 Added translation files for Cornerstone (bigcommerce#2084) * Releasing 5.7.0 * fix(storefront): BCTHEME-689 Update lang files for some locales (bigcommerce#2086) * Releasing 5.7.1 * Changelog format changes (bigcommerce#2092) * add changelog requirements (bigcommerce#2080) * feat(storefront): BCTHEME-152 Replaced scss-lint with stylelint (bigcommerce#2069) * fix(storefront): BCTHEME-540 User Account, bug styles in section payment methods (bigcommerce#2085) * fix(storefront): BCTHEME-511 Remove counter on the Wish Lists tab on Account page (bigcommerce#2087) * fix(storefront): BCTHEME-532 'undefined' is announced with screen reader while changing Product quantity on PDP (bigcommerce#2094) * Fix social sharing links for product pages and blog posts (bigcommerce#2082) * feat(payment): PAYPAL-886 added container setting for spb container (bigcommerce#2041) * fix(storefront): Reviews pagination navigation buttons reload the whole page and does not open the Reviews tab (bigcommerce#2048) * Update package-lock.json file (bigcommerce#2097) * fix(storefront): BCTHEME-606 No navigation back to wishlist tab when you are in a wishlist (bigcommerce#2096) * Fix minor merge navigation issue * Fixing merge conflict: BCTHEME-606 (bigcommerce#2100) * fix(storefront): BCTHEME-686 "Manage Website Data Collection Preferences" phrase is not translatable (bigcommerce#2090) * feat(storefront): BCTHEME-674 Make Hero Carousel both slide and button clickable when button enabled (bigcommerce#2098) * fix(storefront): BCTHEME-708 fix wishlist dropdown shift in quickview modal (bigcommerce#2102) * fix(storefront): BCTHEME-671 Empty email input in newsletter field does not trigger an error (bigcommerce#2101) * fix(storefront): BCTHEME-547 As a shopper I want to see gift wrapping price in product list the cart. (bigcommerce#2093) * BCTHEME-693: Update translation mechanism for config.json values (bigcommerce#2089) * Update translation mechanism for config.json values * Releasing 6.0.0-rc.1 * Releasing 6.0.0 * fix(storefront): BCTHEME-668 Google AMP feature request - Add in release date info for preorder products (bigcommerce#2107) * feat(customers): CUST-1583 use label for country states to send non-translated name on submit (bigcommerce#2105) * feat(payment): ADYEN-242 Added notice to Adyen vaulted cards at My account page (bigcommerce#2111) * fix(storefront): BCTHEME-856 Fixed images placeholder on hero carousel shifted on mobile when slide has content (bigcommerce#2112) * build(deps): bump path-parse from 1.0.6 to 1.0.7 (bigcommerce#2108) Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7. - [Release notes](https://github.com/jbgutierrez/path-parse/releases) - [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7) --- updated-dependencies: - dependency-name: path-parse dependency-type: indirect ... * Releasing 6.1.0-rc.1 * Releasing 6.1.0 * build(deps): bump nth-check from 2.0.0 to 2.0.1 (bigcommerce#2125) Bumps [nth-check](https://github.com/fb55/nth-check) from 2.0.0 to 2.0.1. - [Release notes](https://github.com/fb55/nth-check/releases) - [Commits](fb55/nth-check@v2.0.0...v2.0.1) --- updated-dependencies: - dependency-name: nth-check dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump tmpl from 1.0.4 to 1.0.5 (bigcommerce#2123) Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5. - [Release notes](https://github.com/daaku/nodejs-tmpl/releases) - [Commits](https://github.com/daaku/nodejs-tmpl/commits/v1.0.5) --- updated-dependencies: - dependency-name: tmpl dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump ini from 1.3.4 to 1.3.7 (bigcommerce#1993) Bumps [ini](https://github.com/isaacs/ini) from 1.3.4 to 1.3.7. - [Release notes](https://github.com/isaacs/ini/releases) - [Commits](npm/ini@v1.3.4...v1.3.7) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump dot-prop from 4.1.1 to 4.2.1 (bigcommerce#1892) Bumps [dot-prop](https://github.com/sindresorhus/dot-prop) from 4.1.1 to 4.2.1. - [Release notes](https://github.com/sindresorhus/dot-prop/releases) - [Commits](sindresorhus/dot-prop@v4.1.1...v4.2.1) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix(storefront): BCTHEME-855 Sliding carousel with products cause footer headers flickering (bigcommerce#2119) * fix(storefront): BCTHEME-355 fix additional checkout buttons (bigcommerce#2109) * fix(search): ES-2439 change debounce wait time for search (bigcommerce#2115) * fix(storefront): BCTHEME-851 Product images on PDP has clipped outline (bigcommerce#2124) * Releasing 6.1.1-rc.1 * Releasing 6.1.1-rc.2 * Releasing 6.1.1 * Apply dependency updates (jest & lighthouse) (bigcommerce#2132) * fix(storefront): BCTHEME-904 Quick View Modal "Close" bubble is slightly off center (bigcommerce#2130) * fix(storefront): BCTHEME-83 added basic validation for Account Signup Date Field (bigcommerce#2126) * fix(storefront): BCTHEME-906 Hide prices for aria-label and data-product-price attributes if set to Hidden for guests. Hide currency selection for non-logged in users. (bigcommerce#2131) * Releasing 6.1.2-rc.1 * fix(storefront): BCTHEME-932 Update lang file for FR locale * Use srcset for store logo so it looks good in more conditions (bigcommerce#2136) * Releasing 6.1.2-rc.2 * Releasing 6.1.2 * fix(storefront): BCTHEME-936 Cannot see currency dropdown in storefront (bigcommerce#2141) * Releasing 6.1.3-rc.1 * Releasing 6.1.3 * fix(storefront): BCTHEME-912 Admin Bar displays regardless of setting (bigcommerce#2144) * fix(storefront): BCTHEME-494 Translation Gap: Checkbox Option selection on Product. (bigcommerce#2063) * Replace schema microdata with LD+JSON tag (bigcommerce#2138) * fix(storefront): BCTHEME-940 optimize usage of jsTree library (bigcommerce#2145) * BCTHEME-958: Translation updates November 2021 (bigcommerce#2146) * fix(storefront): BCTHEME-944 Tooltip on close button of modal is shifted (bigcommerce#2148) * fix(storefront): BCTHEME-964 Loading unnecessary product lqip images on cart page (bigcommerce#2149) * Releasing 6.2.0-rc.1 * Releasing 6.2.0 * fix(storefront): BCTHEME-965 Update stencil-utils package (bigcommerce#2157) * fix(storefront): BCTHEME-1018 Cornerstone performance optimizations: remove unused fonts. (bigcommerce#2176) * fix(storefront): BCTHEME-991 Cornerstone performance optimizations: blocking scripts delaying DomContentLoaded. (bigcommerce#2158) * fix(storefront): BCTHEME-997 Translation updates February 2022. (bigcommerce#2177) * fix(storefront): BCTHEME-806 Password complexity error message does not reflect the requirements set in the store settings (bigcommerce#2117) * fix(storefront): Remove Compare Form (bigcommerce#2162) * feat(customers): CUST-1837 Add reCAPTCHA to password reset for Corner… (bigcommerce#2164) * Update blog component to use H1 tags on posts (bigcommerce#2179) * build(deps): bump tar from 2.2.1 to 2.2.2 (bigcommerce#2173) * build(deps): bump ws from 6.2.1 to 6.2.2 (bigcommerce#2174) * Releasing 6.3.0-rc.1 * Releasing 6.3.0 * fix(storefront): BCTHEME-1006 When price list price is set for currency, the cart does not respect product's price (bigcommerce#2190) * fix(storefront): BCTHEME-1038 Remove adminBar (bigcommerce#2191) * Remove translations for adminBar component (bigcommerce#2196) * fix(storefront): BCTHEME-982 Search results containing % symbol result in errored page. (bigcommerce#2205) * fix(storefront): BCTHEME-909 Social media icons failing wave scan with Empty Link. (bigcommerce#2202) * fix(storefront): BCTHEME-963 Reviews form not submitting after quick view opening on PDP. (bigcommerce#2201) * fix(storefront): BCTHEME-1074 Apply security updates (April 2022) (bigcommerce#2200) * fix(storefront): BCTHEME-961 Stored Payment Methods form can be submitted without selecting a Country (bigcommerce#2194) * fix(storefront): BCTHEME-1043 Remove sweetAlert (bigcommerce#2189) * build(deps-dev): bump grunt from 1.3.0 to 1.5.2 (bigcommerce#2206) * build(deps): bump minimist from 1.2.5 to 1.2.6 (bigcommerce#2207) * Add api host to github action examples (bigcommerce#2161) * fix(storefront): BCTHEME-1037 Remove nanobar (bigcommerce#2192) * fix(storefront): BCTHEME-990 Product image not shown in Pinterest preview if not signed in (bigcommerce#2203) * feat(orders): ORDERS-3932 Changes to allow pickup details to be displayed in storefront (bigcommerce#2199) * fix(storefront): BCTHEME-1083 Translation updates April 2022 (bigcommerce#2204) * Bump GitHub Actions to use node 14 (bigcommerce#2208) * Releasing 6.4.0-rc.1 * Remove adminBar translations from da/no lang files (bigcommerce#2209) * Releasing 6.4.0-rc.2 * Releasing 6.4.0 * fix(storefront): BCTHEME-1089 Incorrect handling of unsuccessful item removing from cart on the Cart page. (bigcommerce#2211) * Releasing 6.4.1-rc.1 * Releasing 6.4.1 * feat(bctheme): BCTHEME-1103 Add lang attribute to html tag in checkout * fix(storefront): BCTHEME-1110 Product pick list "none" is not selected by default when displaying without images * fix(storefront): BCTHEME-1014 Blog Pages Do Not Include Link Rel Next/Prev Tags (bigcommerce#2214) * feat(orders) ORDERS-4645 Add pickup to storefront order invoice * feat(orders) ORDERS-4645 Minor formatting update * feat(orders) ORDERS-4645 Update changelog * build(deps): bump jpeg-js from 0.4.3 to 0.4.4 Bumps [jpeg-js](https://github.com/eugeneware/jpeg-js) from 0.4.3 to 0.4.4. - [Release notes](https://github.com/eugeneware/jpeg-js/releases) - [Commits](jpeg-js/jpeg-js@v0.4.3...v0.4.4) --- updated-dependencies: - dependency-name: jpeg-js dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * fix(payments): INT-5290 Fix Payment Methods to show stored Bank Accounts * fix(storefront): BCTHEME-1115 Incorrect translation displaying in Home Page Carousel for da, sv and no. (bigcommerce#2224) * fix(storefront): BCTHEME-1061 Category icons do not appear in Search Form. (bigcommerce#2221) * fix(storefront): BCTHEME-1090 "None" modifier option is displayed as selected even if there is default modifier option (bigcommerce#2227) * Moved custom_fields loop in its own component (bigcommerce#2222) * build(deps-dev): bump grunt from 1.5.2 to 1.5.3 (bigcommerce#2217) * updated changelog * Releasing 6.5.0-rc.1 * Releasing 6.5.0 * Bump webpack-bundle-analyzer * fix(storefront): BCTHEME-1092 Make screen reader say all errors then each error while tabbing * fix(storefront): BCTHEME-1123 Incorrect translation key for Diners Club card type. (bigcommerce#2237) * fix(storefront): BCTHEME-1125 Cannot Vault 16-digit Diners Club cards - creditcards module version is out of date. (bigcommerce#2239) * fix(storefront): BCTHEME-1076 Unable to navigate to home page from search results page after clicking Back button on browser. (bigcommerce#2238) * fix(storefront): BCTHEME-1094 Make screen reader say all errors on account edit page * fix(storefront): BCTHEME-1093 Make screen reader say all errors on message page * feat(payment): PAYPAL-1579 added wallet buttons component for product details and quick view * fix(storefront): BCTHEME-1077 clarify customer order pagination (bigcommerce#2241) * fix(storefront): BCTHEME-1185 fixed escaping on created store account confirm message (bigcommerce#2248) * build(deps): bump terser from 4.8.0 to 4.8.1 Bumps [terser](https://github.com/terser/terser) from 4.8.0 to 4.8.1. - [Release notes](https://github.com/terser/terser/releases) - [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md) - [Commits](https://github.com/terser/terser/commits) --- updated-dependencies: - dependency-name: terser dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * Add global region at the bottom of the navigation (bigcommerce#2231) Currently, it's not possible to add a widget to a global region within the header. The only available region is "header_bottom--global" which is in the header template so is on all pages but is actually outside of the <header> element. This region is useful for widgets that replace the navigation. Co-authored-by: Volodymyr Krasnoshapka <88093058+BC-krasnoshapka@users.noreply.github.com> * BCTHEME-1209 Default image defined in config.json is not rendering on blog pages (bigcommerce#2253) fix(storefront): BCTHEME-1209 pass theme settings from blog page to blog post template. * Bump jQuery to 3.6.1 * feat(payment): PAYPAL-1474 added an ID for 'Check out' button and added extra container to render Accelerated Checkout in * fix(storefront): BCTHEME-1203 Translations update September 2022 (bigcommerce#2258) * Reduce lodash usage (bigcommerce#2256) Co-authored-by: Volodymyr Krasnoshapka <88093058+BC-krasnoshapka@users.noreply.github.com> * feat(payment): PAYPAL-1654 add styling config for the PayPal Accelerated Checkout button * feat(storefront): STRF-10018 Bump stencil utils with BODL events: Add to Cart and Remove from Cart (bigcommerce#2252) Co-authored-by: Volodymyr Krasnoshapka <88093058+BC-krasnoshapka@users.noreply.github.com> * Fix "incorrect value type" for anonymous reviews in Google Search Console (bigcommerce#2255) Co-authored-by: Volodymyr Krasnoshapka <88093058+BC-krasnoshapka@users.noreply.github.com> * fix(storefront): STRF-10066 Fix broken add to cart button (bigcommerce#2259) * Releasing 6.6.0-rc.1 * Releasing 6.6.0-rc.2 * fix(payment) STRIPE-87 Add unionpay img to be display on custumers account. (bigcommerce#2260) * fix(payment) STRIPE-87 Add unionpay img to be display on custumers account * Update CHANGELOG * feat(payments): PAYPAL-1345 adding button settings to the page builder (bigcommerce#2212) * Releasing 6.6.0-rc.3 * Releasing 6.6.0 * Revert BCTHEME-1185 (bigcommerce#2263) * Releasing 6.6.1 * feat(storefront): STRF-9829 Migrate Cornerstone to new "Hide Price From Guests" functionality * feat(payment): PAYPAL-1661 added Accelerated buttons container to PDP add to cart popup (bigcommerce#2264) * feat-payment): PAYPAL-1682 made PDP wallet buttons container hidden in cases when the product is not purchasable or out of stock (bigcommerce#2267) * feat(payment): PAYPAL-1695 updated PayPal Accelerated Checkout default button styles (bigcommerce#2268) * feat(payment): PAYPAL-1698 added extra wallet buttons logic for PDP page (bigcommerce#2270) * Allow quantity of "0" in cart to remove item * fix(payment): PAYPAL-1720 made initial product details data update if the form is valid on page load (bigcommerce#2271) * fix(storefront): BCTHEME-1185 fixed escaping on created store account confirm message (bigcommerce#2265) * Update key assets with preload headers * fix(storefront): BCTHEME-1213 prevent immediate validation (bigcommerce#2274) Co-authored-by: Volodymyr Krasnoshapka <88093058+BC-krasnoshapka@users.noreply.github.com> * Releasing 6.7.0-rc.1 * Releasing 6.7.0 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Yurii Zusik <yurii.zusik@bigcommerce.com> Co-authored-by: Alex Saiannyi <67792608+bc-alexsaiannyi@users.noreply.github.com> Co-authored-by: yurytut1993 <66325265+yurytut1993@users.noreply.github.com> Co-authored-by: Nataliya Solyanik <nataliya.solyanik@bigcommerce.com> Co-authored-by: Kevin Wang <kwang30@gmail.com> Co-authored-by: David Huynh <david.huynh@bigcommerce.com> Co-authored-by: BC-tymurbiedukhin <66319629+BC-tymurbiedukhin@users.noreply.github.com> Co-authored-by: Tymur Biedukhin <tymur.biedukhin@bigcommerce.com> Co-authored-by: Nathan Booker <bookernath@users.noreply.github.com> Co-authored-by: bc-krishsenthilraj <39140274+bc-krishsenthilraj@users.noreply.github.com> Co-authored-by: Senthil Krishnasamy <senthil.krishnasamy@bigcommerce.com> Co-authored-by: Nathan Booker <nathan.booker@bigcommerce.com> Co-authored-by: Yevhenii Buliuk <82589781+bc-yevhenii-buliuk@users.noreply.github.com> Co-authored-by: sacr3dc0w <mshettles@gmail.com> Co-authored-by: Andrii Vitvitskyi <andrii.vitvitskyi@bigcommerce.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: bc-vlad-dlogush <83779098+bc-vlad-dlogush@users.noreply.github.com> Co-authored-by: Jairo Panduro <jairo.panduro@bigcommerce.com> Co-authored-by: jairo-bc <68893868+jairo-bc@users.noreply.github.com> Co-authored-by: alex.saiannyi <alexander.saiannyi@bigcommerce.com> Co-authored-by: Alex Rowley <rowleyaj@gmail.com> Co-authored-by: Matt Hill <matt.hill@bigcommerce.com> Co-authored-by: Vitaliy Koshovyi <79574476+vneutrino@users.noreply.github.com> Co-authored-by: Saurabh Gedam <saurabhgedam1992@gmail.com> Co-authored-by: Jordan Arldt <jordanarldt@gmail.com> Co-authored-by: Volodymyr Krasnoshapka <volodymyr.kras@bigcommerce.com> Co-authored-by: Matthew Coy <47044676+mattcoy-arcticleaf@users.noreply.github.com> Co-authored-by: BC-Chkalov-Valerii <92578518+BC-Chkalov-Valerii@users.noreply.github.com> Co-authored-by: “bc-yevhenii-buliuk” <“yevhenii.buliuk@bigcommerce.com”> Co-authored-by: Matthew Coy <matt.coy@arcticleaf.io> Co-authored-by: Hunter Leachman <hunter.leachman@bigcommerce.com> Co-authored-by: Steve Ross <297351+steve-ross@users.noreply.github.com> Co-authored-by: Munjal Munshi <92066753+bc-munjal@users.noreply.github.com> Co-authored-by: Vlad Dlogush <vladyslav.dlohush@bigcommerce.com> Co-authored-by: Jordan Arldt <jordan.arldt@bigcommerce.com> Co-authored-by: Willem Homan <willem.homan@bigcommerce.com> Co-authored-by: Abraham Martinez <abraham.martinez@bigcommerce.com> Co-authored-by: Giacomo Mirabassi <447940+giacmir@users.noreply.github.com> Co-authored-by: Albert Singh <albert.singh@bigcommerce.com> Co-authored-by: serhii.tkachenko <serhii.tkachenko@bigcommerce.com> Co-authored-by: Tom Robertshaw <me@tomrobertshaw.net> Co-authored-by: Volodymyr Krasnoshapka <88093058+BC-krasnoshapka@users.noreply.github.com> Co-authored-by: Oleg Kovalenko <oleg.kovalenko@bigcommerce.com> Co-authored-by: Christian Erick Contreras <eri89--@hotmail.com> Co-authored-by: Andrii Fetisov <54856617+bc-fetisov@users.noreply.github.com>
1 parent 6eb97e0 commit 6cf14cf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1684
-1060
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## Draft
88

9+
## 6.7.0 (11-03-2022)
10+
- Fixed escaping on created store account confirm message. [#2265]https://github.com/bigcommerce/cornerstone/pull/2265
11+
- Migrate Cornerstone to new "Hide Price From Guests" functionality [#2262](https://github.com/bigcommerce/cornerstone/pull/2262)
12+
- Add Accelerated buttons container into 'add to cart' popup on product details page [#2264](https://github.com/bigcommerce/cornerstone/pull/2264)
13+
- Made PDP wallet buttons container hidden in cases when the product is not purchasable or out of stock [#2267](https://github.com/bigcommerce/cornerstone/pull/2267)
14+
- Updated PayPal Accelerated Checkout default button styles [#2268](https://github.com/bigcommerce/cornerstone/pull/2268)
15+
- Add logic to collect Product Details data and send it to the BC App stencil template through custom event [#2270](https://github.com/bigcommerce/cornerstone/pull/2270)
16+
- Allow quantity of "0" in cart to remove item [#2266](https://github.com/bigcommerce/cornerstone/pull/2266)
17+
- Fix the issue with getting product details data if the product details form is valid on page load [#2271](https://github.com/bigcommerce/cornerstone/pull/2271)
18+
- Delay validation on account signup, message form, and account edit page [#2274](https://github.com/bigcommerce/cornerstone/pull/2274)
19+
- Update key render-blocking resources to be preloaded via HTTP headers/Early Hints [#2261](https://github.com/bigcommerce/cornerstone/pull/2261)
20+
921
## 6.6.1 (09-14-2022)
1022

1123
## 6.6.0 (09-13-2022)

assets/js/theme/account.js

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ export default class Account extends PageManager {
318318
const formEditSelector = 'form[data-edit-account-form]';
319319
const editValidator = nod({
320320
submit: '${formEditSelector} input[type="submit"]',
321-
delay: 0,
321+
delay: 900,
322322
});
323323
const emailSelector = `${formEditSelector} [data-field-type="EmailAddress"]`;
324324
const $emailElement = $(emailSelector);
@@ -396,15 +396,17 @@ export default class Account extends PageManager {
396396
}
397397

398398
event.preventDefault();
399-
const earliestError = $('span.form-inlineMessage:first').prev('input');
400-
earliestError.focus();
399+
setTimeout(() => {
400+
const earliestError = $('span.form-inlineMessage:first').prev('input');
401+
earliestError.focus();
402+
}, 900);
401403
});
402404
}
403405

404406
registerInboxValidation($inboxForm) {
405407
const inboxValidator = nod({
406408
submit: 'form[data-inbox-form] input[type="submit"]',
407-
delay: 0,
409+
delay: 900,
408410
});
409411

410412
inboxValidator.add([
@@ -445,8 +447,11 @@ export default class Account extends PageManager {
445447
}
446448

447449
event.preventDefault();
448-
const earliestError = $('span.form-inlineMessage:first').prev('input');
449-
earliestError.focus();
450+
451+
setTimeout(() => {
452+
const earliestError = $('span.form-inlineMessage:first').prev('input');
453+
earliestError.focus();
454+
}, 900);
450455
});
451456
}
452457
}

assets/js/theme/auth.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export default class Auth extends PageManager {
111111
const validationModel = validation($createAccountForm, this.context);
112112
const createAccountValidator = nod({
113113
submit: `${this.formCreateSelector} input[type='submit']`,
114-
delay: 0,
114+
delay: 900,
115115
});
116116
const $stateElement = $('[data-field-type="State"]');
117117
const emailSelector = `${this.formCreateSelector} [data-field-type='EmailAddress']`;
@@ -182,8 +182,10 @@ export default class Auth extends PageManager {
182182
return;
183183
}
184184
event.preventDefault();
185-
const earliestError = $('span.form-inlineMessage:first').prev('input');
186-
earliestError.focus();
185+
setTimeout(() => {
186+
const earliestError = $('span.form-inlineMessage:first').prev('input');
187+
earliestError.focus();
188+
}, 900);
187189
}
188190

189191
/**

assets/js/theme/cart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export default class Cart extends PageManager {
7878
let invalidEntry;
7979

8080
// Does not quality for min/max quantity
81-
if (!newQty) {
81+
if (!Number.isInteger(newQty)) {
8282
invalidEntry = $el.val();
8383
$el.val(oldQty);
8484
return showAlertModal(this.context.invalidEntryMessage.replace('[ENTRY]', invalidEntry));

assets/js/theme/common/faceted-search.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { hooks, api } from '@bigcommerce/stencil-utils';
22
import _ from 'lodash';
33
import Url from 'url';
44
import urlUtils from './utils/url-utils';
5-
import modalFactory from '../global/modal';
5+
import modalFactory, { ModalEvents } from '../global/modal';
66
import collapsibleFactory from './collapsible';
77
import { Validators } from './utils/form-utils';
88
import nod from './nod';

assets/js/theme/common/product-details-base.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ export default class ProductDetailsBase {
187187
$input: $('[name=qty\\[\\]]', $scope),
188188
},
189189
$bulkPricing: $('.productView-info-bulkPricing', $scope),
190+
$walletButtons: $('[data-add-to-cart-wallet-buttons]', $scope),
190191
};
191192
}
192193

@@ -256,6 +257,7 @@ export default class ProductDetailsBase {
256257
}
257258

258259
this.updateDefaultAttributesForOOS(data);
260+
this.updateWalletButtonsView(data);
259261

260262
// If Bulk Pricing rendered HTML is available
261263
if (data.bulk_discount_rates && content) {
@@ -351,6 +353,20 @@ export default class ProductDetailsBase {
351353
}
352354
}
353355

356+
updateWalletButtonsView(data) {
357+
this.toggleWalletButtonsVisibility(data.purchasable && data.instock);
358+
}
359+
360+
toggleWalletButtonsVisibility(shouldShow) {
361+
const viewModel = this.getViewModel(this.$scope);
362+
363+
if (shouldShow) {
364+
viewModel.$walletButtons.show();
365+
} else {
366+
viewModel.$walletButtons.hide();
367+
}
368+
}
369+
354370
enableAttribute($attribute, behavior, outOfStockMessage) {
355371
if (this.getAttributeType($attribute) === 'set-select') {
356372
return this.enableSelectOptionAttribute($attribute, behavior, outOfStockMessage);

assets/js/theme/common/product-details.js

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ export default class ProductDetails extends ProductDetailsBase {
2828

2929
const $form = $('form[data-cart-item-add]', $scope);
3030

31+
if ($form[0].checkValidity()) {
32+
this.updateProductDetailsData();
33+
} else {
34+
this.toggleWalletButtonsVisibility(false);
35+
}
36+
3137
this.addToCartValidator = nod({
3238
submit: $form.find('input#form-action-addToCart'),
3339
tap: announceInputErrorMessage,
@@ -259,6 +265,7 @@ export default class ProductDetails extends ProductDetailsBase {
259265
const productAttributesContent = response.content || {};
260266
this.updateProductAttributes(productAttributesData);
261267
this.updateView(productAttributesData, productAttributesContent);
268+
this.updateProductDetailsData();
262269
bannerUtils.dispatchProductBannerEvent(productAttributesData);
263270

264271
if (!this.checkIsQuickViewChild($form)) {
@@ -361,6 +368,8 @@ export default class ProductDetails extends ProductDetailsBase {
361368
viewModel.quantity.$text.text(qty);
362369
// perform validation after updating product quantity
363370
this.addToCartValidator.performCheck();
371+
372+
this.updateProductDetailsData();
364373
});
365374

366375
// Prevent triggering quantity change when pressing enter
@@ -372,6 +381,10 @@ export default class ProductDetails extends ProductDetailsBase {
372381
event.preventDefault();
373382
}
374383
});
384+
385+
this.$scope.on('keyup', '.form-input--incrementTotal', () => {
386+
this.updateProductDetailsData();
387+
});
375388
}
376389

377390
/**
@@ -535,4 +548,39 @@ export default class ProductDetails extends ProductDetailsBase {
535548
super.updateProductAttributes(data);
536549
this.showProductImage(data.image);
537550
}
551+
552+
updateProductDetailsData() {
553+
const $form = $('form[data-cart-item-add]');
554+
const formDataItems = $form.serializeArray();
555+
556+
const productDetails = {};
557+
558+
for (const formDataItem of formDataItems) {
559+
const { name, value } = formDataItem;
560+
561+
if (name === 'product_id') {
562+
productDetails.productId = Number(value);
563+
}
564+
565+
if (name === 'qty[]') {
566+
productDetails.quantity = Number(value);
567+
}
568+
569+
if (name.match(/attribute/)) {
570+
const productOption = {
571+
optionId: Number(name.match(/\d+/g)[0]),
572+
optionValue: value,
573+
};
574+
575+
productDetails.optionSelections = productDetails?.optionSelections
576+
? [...productDetails.optionSelections, productOption]
577+
: [productOption];
578+
}
579+
}
580+
581+
document.dispatchEvent(new CustomEvent('onProductUpdate', {
582+
bubbles: true,
583+
detail: { productDetails },
584+
}));
585+
}
538586
}

assets/scss/components/stencil/cart/_cart.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,10 @@ $card-preview-zoom-bottom-offset: 6rem;
295295
display: inline-block;
296296
}
297297

298+
&__label {
299+
display: inline-block;
300+
}
301+
298302
+ .definitionList {
299303
margin-top: spacing("quarter");
300304
}

assets/scss/components/stencil/heroCarousel/_heroCarousel.scss

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,36 @@
363363
}
364364
}
365365
}
366+
367+
.slick-slide {
368+
&.is-square-image-type {
369+
.heroCarousel-image-wrapper {
370+
height: 100vw;
371+
}
372+
}
373+
374+
&.is-vertical-image-type {
375+
.heroCarousel-image-wrapper {
376+
height: 110vw;
377+
}
378+
}
379+
380+
&.is-square-image-type,
381+
&.is-vertical-image-type {
382+
.heroCarousel-image-wrapper {
383+
@include breakpoint("small") {
384+
height: 56.25vw;
385+
}
386+
}
387+
}
388+
389+
&.is-image-error {
390+
.heroCarousel-image-wrapper {
391+
background: url("../img/hero-carousel-image-load-error.svg") center center no-repeat;
392+
background-size: contain;
393+
}
394+
}
395+
}
366396
}
367397

368398
.heroCarousel-slide {

assets/scss/components/stencil/navPages/_navPages.scss

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,24 @@
299299
}
300300
}
301301

302+
&.is-open,
303+
.collapsible-icon-wrapper.is-open {
304+
svg {
305+
fill: $navPage-subMenu-item--is-highlighted-color;
306+
stroke: $navPage-subMenu-item--is-highlighted-color;
307+
}
308+
}
309+
310+
&:hover,
311+
&.activePage {
312+
color: $navPage-subMenu-item--is-highlighted-color;
313+
314+
svg {
315+
fill: $navPage-subMenu-item--is-highlighted-color;
316+
stroke: $navPage-subMenu-item--is-highlighted-color;
317+
}
318+
}
319+
302320
// turn a highlight into a button
303321
&.highlightPage {
304322
background-color: black;

0 commit comments

Comments
 (0)