Releases: bigcommerce/stencil-utils
Releases · bigcommerce/stencil-utils
Releasing 0.3.2
Release 0.3.2
Releasing 0.3.1
Releasing 0.3.0
Release 0.3.0
Releasing 0.2.0
Includes new Tools
section with Image
being the first Tool.
0.1.7: Merge pull request #32 from bigcommerce/cookies
Added Cookie privacy event
0.1.6: Merge pull request #31 from bigcommerce/cartfix
Removed Form Models and fixed Cart rendering
0.1.5: Merge pull request #30 from bigcommerce/formfix
Added form validation models and swapped search remote api
Added form validation models
Themes can utilize the simple form validation models as
let fieldValue = $('input[name="username"]'); //example value is "myname"
var validated = utils.forms.login.username(fieldValue)
console.log(validated) //false, Bigcommerce requires email based usernames, utils.forms.login.username performs these checks for you.
Available form models will be documented and include forms such as Login, Create Account, Add Address, etc.
New hooks system
- New hooks system, the following hooks will be fired:
- Cart
cart-item-add-remote
- When an item is added to the cartcart-item-update-remote
- When an item is updated (quantity)cart-item-remove-remote
- When an item is removed from the cart
- Search
search-quick-remote
- When a search is performed in the quick-search input
- Product
product-options-change-remote
- When a product remote has been changed
- Cart
- Can access the remote utils directly instead going through the namespace:
utils.remote.cart.itemAdd
->utils.cart.itemAdd
Add itemAdd function
New function:
itemAdd
- Allows you to add items to the cart
Refactor options logic for flexibility.