Skip to content

Commit

Permalink
Cornerstone update 6.7.0 (#60)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
Show file tree
Hide file tree
Showing 52 changed files with 1,684 additions and 1,060 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Expand Up @@ -6,6 +6,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Draft

## 6.7.0 (11-03-2022)
- Fixed escaping on created store account confirm message. [#2265]https://github.com/bigcommerce/cornerstone/pull/2265
- Migrate Cornerstone to new "Hide Price From Guests" functionality [#2262](https://github.com/bigcommerce/cornerstone/pull/2262)
- Add Accelerated buttons container into 'add to cart' popup on product details page [#2264](https://github.com/bigcommerce/cornerstone/pull/2264)
- 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)
- Updated PayPal Accelerated Checkout default button styles [#2268](https://github.com/bigcommerce/cornerstone/pull/2268)
- 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)
- Allow quantity of "0" in cart to remove item [#2266](https://github.com/bigcommerce/cornerstone/pull/2266)
- 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)
- Delay validation on account signup, message form, and account edit page [#2274](https://github.com/bigcommerce/cornerstone/pull/2274)
- Update key render-blocking resources to be preloaded via HTTP headers/Early Hints [#2261](https://github.com/bigcommerce/cornerstone/pull/2261)

## 6.6.1 (09-14-2022)

## 6.6.0 (09-13-2022)
Expand Down
17 changes: 11 additions & 6 deletions assets/js/theme/account.js
Expand Up @@ -318,7 +318,7 @@ export default class Account extends PageManager {
const formEditSelector = 'form[data-edit-account-form]';
const editValidator = nod({
submit: '${formEditSelector} input[type="submit"]',
delay: 0,
delay: 900,
});
const emailSelector = `${formEditSelector} [data-field-type="EmailAddress"]`;
const $emailElement = $(emailSelector);
Expand Down Expand Up @@ -396,15 +396,17 @@ export default class Account extends PageManager {
}

event.preventDefault();
const earliestError = $('span.form-inlineMessage:first').prev('input');
earliestError.focus();
setTimeout(() => {
const earliestError = $('span.form-inlineMessage:first').prev('input');
earliestError.focus();
}, 900);
});
}

registerInboxValidation($inboxForm) {
const inboxValidator = nod({
submit: 'form[data-inbox-form] input[type="submit"]',
delay: 0,
delay: 900,
});

inboxValidator.add([
Expand Down Expand Up @@ -445,8 +447,11 @@ export default class Account extends PageManager {
}

event.preventDefault();
const earliestError = $('span.form-inlineMessage:first').prev('input');
earliestError.focus();

setTimeout(() => {
const earliestError = $('span.form-inlineMessage:first').prev('input');
earliestError.focus();
}, 900);
});
}
}
8 changes: 5 additions & 3 deletions assets/js/theme/auth.js
Expand Up @@ -111,7 +111,7 @@ export default class Auth extends PageManager {
const validationModel = validation($createAccountForm, this.context);
const createAccountValidator = nod({
submit: `${this.formCreateSelector} input[type='submit']`,
delay: 0,
delay: 900,
});
const $stateElement = $('[data-field-type="State"]');
const emailSelector = `${this.formCreateSelector} [data-field-type='EmailAddress']`;
Expand Down Expand Up @@ -182,8 +182,10 @@ export default class Auth extends PageManager {
return;
}
event.preventDefault();
const earliestError = $('span.form-inlineMessage:first').prev('input');
earliestError.focus();
setTimeout(() => {
const earliestError = $('span.form-inlineMessage:first').prev('input');
earliestError.focus();
}, 900);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion assets/js/theme/cart.js
Expand Up @@ -78,7 +78,7 @@ export default class Cart extends PageManager {
let invalidEntry;

// Does not quality for min/max quantity
if (!newQty) {
if (!Number.isInteger(newQty)) {
invalidEntry = $el.val();
$el.val(oldQty);
return showAlertModal(this.context.invalidEntryMessage.replace('[ENTRY]', invalidEntry));
Expand Down
2 changes: 1 addition & 1 deletion assets/js/theme/common/faceted-search.js
Expand Up @@ -2,7 +2,7 @@ import { hooks, api } from '@bigcommerce/stencil-utils';
import _ from 'lodash';
import Url from 'url';
import urlUtils from './utils/url-utils';
import modalFactory from '../global/modal';
import modalFactory, { ModalEvents } from '../global/modal';
import collapsibleFactory from './collapsible';
import { Validators } from './utils/form-utils';
import nod from './nod';
Expand Down
16 changes: 16 additions & 0 deletions assets/js/theme/common/product-details-base.js
Expand Up @@ -187,6 +187,7 @@ export default class ProductDetailsBase {
$input: $('[name=qty\\[\\]]', $scope),
},
$bulkPricing: $('.productView-info-bulkPricing', $scope),
$walletButtons: $('[data-add-to-cart-wallet-buttons]', $scope),
};
}

Expand Down Expand Up @@ -256,6 +257,7 @@ export default class ProductDetailsBase {
}

this.updateDefaultAttributesForOOS(data);
this.updateWalletButtonsView(data);

// If Bulk Pricing rendered HTML is available
if (data.bulk_discount_rates && content) {
Expand Down Expand Up @@ -351,6 +353,20 @@ export default class ProductDetailsBase {
}
}

updateWalletButtonsView(data) {
this.toggleWalletButtonsVisibility(data.purchasable && data.instock);
}

toggleWalletButtonsVisibility(shouldShow) {
const viewModel = this.getViewModel(this.$scope);

if (shouldShow) {
viewModel.$walletButtons.show();
} else {
viewModel.$walletButtons.hide();
}
}

enableAttribute($attribute, behavior, outOfStockMessage) {
if (this.getAttributeType($attribute) === 'set-select') {
return this.enableSelectOptionAttribute($attribute, behavior, outOfStockMessage);
Expand Down
48 changes: 48 additions & 0 deletions assets/js/theme/common/product-details.js
Expand Up @@ -28,6 +28,12 @@ export default class ProductDetails extends ProductDetailsBase {

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

if ($form[0].checkValidity()) {
this.updateProductDetailsData();
} else {
this.toggleWalletButtonsVisibility(false);
}

this.addToCartValidator = nod({
submit: $form.find('input#form-action-addToCart'),
tap: announceInputErrorMessage,
Expand Down Expand Up @@ -259,6 +265,7 @@ export default class ProductDetails extends ProductDetailsBase {
const productAttributesContent = response.content || {};
this.updateProductAttributes(productAttributesData);
this.updateView(productAttributesData, productAttributesContent);
this.updateProductDetailsData();
bannerUtils.dispatchProductBannerEvent(productAttributesData);

if (!this.checkIsQuickViewChild($form)) {
Expand Down Expand Up @@ -361,6 +368,8 @@ export default class ProductDetails extends ProductDetailsBase {
viewModel.quantity.$text.text(qty);
// perform validation after updating product quantity
this.addToCartValidator.performCheck();

this.updateProductDetailsData();
});

// Prevent triggering quantity change when pressing enter
Expand All @@ -372,6 +381,10 @@ export default class ProductDetails extends ProductDetailsBase {
event.preventDefault();
}
});

this.$scope.on('keyup', '.form-input--incrementTotal', () => {
this.updateProductDetailsData();
});
}

/**
Expand Down Expand Up @@ -535,4 +548,39 @@ export default class ProductDetails extends ProductDetailsBase {
super.updateProductAttributes(data);
this.showProductImage(data.image);
}

updateProductDetailsData() {
const $form = $('form[data-cart-item-add]');
const formDataItems = $form.serializeArray();

const productDetails = {};

for (const formDataItem of formDataItems) {
const { name, value } = formDataItem;

if (name === 'product_id') {
productDetails.productId = Number(value);
}

if (name === 'qty[]') {
productDetails.quantity = Number(value);
}

if (name.match(/attribute/)) {
const productOption = {
optionId: Number(name.match(/\d+/g)[0]),
optionValue: value,
};

productDetails.optionSelections = productDetails?.optionSelections
? [...productDetails.optionSelections, productOption]
: [productOption];
}
}

document.dispatchEvent(new CustomEvent('onProductUpdate', {
bubbles: true,
detail: { productDetails },
}));
}
}
4 changes: 4 additions & 0 deletions assets/scss/components/stencil/cart/_cart.scss
Expand Up @@ -295,6 +295,10 @@ $card-preview-zoom-bottom-offset: 6rem;
display: inline-block;
}

&__label {
display: inline-block;
}

+ .definitionList {
margin-top: spacing("quarter");
}
Expand Down
30 changes: 30 additions & 0 deletions assets/scss/components/stencil/heroCarousel/_heroCarousel.scss
Expand Up @@ -363,6 +363,36 @@
}
}
}

.slick-slide {
&.is-square-image-type {
.heroCarousel-image-wrapper {
height: 100vw;
}
}

&.is-vertical-image-type {
.heroCarousel-image-wrapper {
height: 110vw;
}
}

&.is-square-image-type,
&.is-vertical-image-type {
.heroCarousel-image-wrapper {
@include breakpoint("small") {
height: 56.25vw;
}
}
}

&.is-image-error {
.heroCarousel-image-wrapper {
background: url("../img/hero-carousel-image-load-error.svg") center center no-repeat;
background-size: contain;
}
}
}
}

.heroCarousel-slide {
Expand Down
18 changes: 18 additions & 0 deletions assets/scss/components/stencil/navPages/_navPages.scss
Expand Up @@ -299,6 +299,24 @@
}
}

&.is-open,
.collapsible-icon-wrapper.is-open {
svg {
fill: $navPage-subMenu-item--is-highlighted-color;
stroke: $navPage-subMenu-item--is-highlighted-color;
}
}

&:hover,
&.activePage {
color: $navPage-subMenu-item--is-highlighted-color;

svg {
fill: $navPage-subMenu-item--is-highlighted-color;
stroke: $navPage-subMenu-item--is-highlighted-color;
}
}

// turn a highlight into a button
&.highlightPage {
background-color: black;
Expand Down
4 changes: 4 additions & 0 deletions assets/scss/components/stencil/previewCart/_previewCart.scss
Expand Up @@ -78,6 +78,10 @@
margin-top: spacing("single");
}

.previewCartCheckout-acceleratedCheckoutButtons {
width: 100%;
}

.previewCartCheckout-additionalCheckoutButtons {
p {
float: none !important; // 1
Expand Down
22 changes: 20 additions & 2 deletions assets/scss/components/stencil/productView/_productView.scss
Expand Up @@ -290,6 +290,10 @@
color: stencilColor("color-textSecondary--hover");
}

&:hover {
color: stencilColor("color-textSecondary--hover");
}

&--new {
padding: 0;
}
Expand Down Expand Up @@ -446,6 +450,20 @@
}
}

.add-to-cart-wallet-buttons {
margin-top: spacing("half");

button {
color: stencilColor("color-textSecondary");
display: block;
padding: spacing("quarter") 0;
text-align: center;
text-decoration: underline;
vertical-align: middle;
width: 100%;
}
}

.add-to-cart-wallet-buttons {
margin-top: spacing("half");

Expand Down Expand Up @@ -473,8 +491,8 @@
color: stencilColor("color-textSecondary--hover");
}

@include breakpoint("large") {
margin-right: spacing("half");
&:hover {
color: stencilColor("color-textSecondary--hover");
}
}

Expand Down
4 changes: 4 additions & 0 deletions assets/scss/layouts/products/_productSaleBadges.scss
Expand Up @@ -217,6 +217,10 @@
background: stencilColor("color_hover_product_sold_out_badges");
}

.product:hover .sold-out-flag-sash {
background: stencilColor("color_hover_product_sold_out_badges");
}

.product {
overflow: hidden;
}
7 changes: 4 additions & 3 deletions config.json
@@ -1,6 +1,6 @@
{
"name": "Midwest Nice",
"version": "6.6.1",
"version": "6.7.0",
"template_engine": "handlebars_v4",
"meta": {
"price": 0,
Expand Down Expand Up @@ -321,7 +321,6 @@
"color_hover_product_sold_out_badges": "#000000",
"focusTooltip-textColor": "#ffffff",
"focusTooltip-backgroundColor": "#313440",
"restrict_to_login": false,
"swatch_option_size": "22x22",
"social_icon_placement_top": false,
"social_icon_placement_bottom": "bottom_none",
Expand All @@ -334,7 +333,9 @@
"pdp-non-sale-price-label": "",
"pdp-retail-price-label": "",
"pdp-custom-fields-tab-label": "",
"paymentbuttons-paypal-accelerated-checkout-color": "black",
"paymentbuttons-paypal-accelerated-checkout-color": "#444",
"paymentbuttons-paypal-accelerated-content-font-family": "Montserrat, Arial, Helvetica, sans-serif",
"paymentbuttons-paypal-accelerated-content-font-weight": "400",
"paymentbuttons-paypal-accelerated-content-color": "white",
"paymentbuttons-paypal-accelerated-content-label": "checkout",
"paymentbuttons-paypal-accelerated-border-color": "black",
Expand Down
2 changes: 1 addition & 1 deletion lang/da.json
Expand Up @@ -258,7 +258,7 @@
"heading": "Ny konto",
"created": {
"heading": "Din konto er blevet oprettet",
"intro": "Tak, fordi du oprettede din konto på {store_name}. Dine kontooplysninger er blevet sendt til <strong>{email}</strong>",
"intro": "Tak, fordi du oprettede din konto på {store_name}. Dine kontooplysninger er blevet sendt til {email}",
"continue": "Fortsæt med at handle"
},
"recaptcha_title": "Google recaptcha"
Expand Down

0 comments on commit 6cf14cf

Please sign in to comment.