We've created a new plugin to source products and collections into the Gatsby's GraphQL layer! Also, you can now send and receive custom events via the Analytics module.
Featuresโ
๐ Send and receive custom events via the Analytics module #937
We've added the
UnknownEvent
event type to the Analytics module\ This is a minimal event sent via thesendAnalyticsEvent
function, which can be overwritten by other event types, such as pre-purchase interactions.- Check out the details on how to manage analytics events in the Analytics module documentation and the Google Analytics 4 (GA4) data model.
๐ Source store plugin #944
We've added the plugin
gatsby-source-store
to source products and collections into the Gatsby's GraphQL layer. This plugin replaces thegatsby-source-vtex
plugin and works with the store-api GraphQL schema.- Learn how to install and use the
gatsby-source-store
plugin here.
- Learn how to install and use the
๐ Modal Molecule #957
Use the Modal Molecule to create alert windows in your storefront.
๐ GraphQL Code Generator #960
We've added the GraphQL Code Generator CLI to automatically generate TypeScript typings for
store-api
.๐ Spinner atom #961
Now, you can use the Spinner atom as a loading button component.
๐ Cart component with state validation #963
We modified the Cart APIs to provide a cart with state validation. The browser now has its cart state, which is validated by the backend. The backend signalizes if the frontend should be modified or not. For example, if the browser's state is not valid, containing a product currently unavailable at your store, the backend will send the updated cart state to the frontend.
๐ Storybook theme #979
Besides adding a new logo and theme to the Store UI Storybook, we also synced the FastStore CHANGELOG.md with the Storybook Changelog.