Releases: vtex-sites/base.store
v0.2.2 - Gatsby-v4 and React18
This tag holds the code right after the addition of support to Gatsby-v4 and React 18
v0.2.1 - Pre gatsby
Version to hold the state before Gatsby v4
Base Store Release Notes - March, 2022
🎉 New feature
-
New
EmptyState
component - #367
Use theEmptyState
in theCartSidebar
andProductGallery
components to display a custom page for empty carts and product results. -
Self-contained
sections
- #371
The logic developed in thepages
folder has been moved to thesections
component. As a result, CMS users can rearrange and reorder each storefront section. -
New Search
Suggestions
component - #372
Use theSuggestions
component to encapsulate autocomplete suggestions and suggested products. -
New
SearchHistory
component - #391
Use theSearchHistory
component to show the user's search history in the store page. -
New session query - #392
Use theStoreSession
query to get new sales channels when a user changes their postal code. -
New
interactive
variant added to theBadge
component - #396
Use theinteractive
variant in aBadge
component to allow users to close the badge. -
Added
hideUnavailableItems
tostore.config
- #400
The Search API now has thehideUnavailableItems
parameter. This parameter either hides (true) or displays (false) an out-of-stock product. -
New
styles/global
folder - #407
This PR sets the stage for the upcoming Theming structure by gathering all CSS variables (tokens) into thestyles/global
folder. It applies a coherent naming scheme and simplifies global styles.
🐛 Bug fix
-
Fixed the
HeroImage
size and css - #363
TheHeroImage
HTML size property has been fixed. The browser will now create a better image to fetch based on the device's screen (mobile or desktop). -
Fixed facets - #380
Thefilter
on the mobile version is now stable, and users can choose which facets to apply. -
Fixed the
Tiles
component semantic markup - #383
The semantic markup forTiles
is now fixed toul
andli
instead of a genericdiv
. -
Fixed the
CartItem
title and image - #405
The image size no longer breaks when a product title is longer than two lines. Now, the image size remains the same, and the product title is shortened. -
Fixed the Button cursor - #419
Now the browser chooses which cursor to use depending on the component. For example, for links, usepointer
, and for buttons, usedefault
.
✨ Enhancement
-
Improved performance with
content-visibility
inSection
- #368
Thecontent-visibility
CSS property was added to theSection
component. The property lazy loads part of the page's content and saves loading time. -
Avoided performance decrease with the removal of inline icons - #378
In order to remove unnecessary JavaScript and improve page performance, inline icons were removed from the final bundle and moved to SVG files.
🧹 Chore
-
Fixes in PLP loading - #362
Following the implementation of the Skeleton Loading components, some loading logic on the PLP has been changed:- The useTotalCount hook was removed.
- The
Sort
andFilter
Skeleton buttons are now loaded at the same time. - The most recent
Filter
items are now kept expanded in the mobile version
-
Badge
variants renamed - #381
TheBadge
variants have been renamed so that the semantic meaning ofBadge
is not jeopardized. Changes made include:-
Before:
BadgeVariants = 'outOfStock' | 'new' | 'recommended' | 'neutral'
-
Now:
BadgeVariants = 'neutral' | 'info' | 'highlighted'
-
-
Moved UI components and IconSVG to the
ui
folder - #386
Theui
folder centralizes UI components and IconSVG, making it easier to add UI components and icons to the storefront. -
Replaced inline
<style/>
tags by tags - #408
Inline styles are now contained in their own stylesheet, eliminating CSS code splitting and lowering the Total Blocking Time (TBT) metric. -
Removed frontend computation to the backend - #411
Offers are now sorted according to the order of the offers array. -
Improved the login performance - #418
Now the API returnsnull
for the person query when executed by an anonymous user, avoiding a mismatch with the default user session values, preventing the session of the anonymous user from being reset, and lowering the Total Blocking Time (TBT) metric.
v0.1.1
v0.1.0
Open Beta Release