92387e2912
* Prevent accessing the first element of the `parentProduct` array if empty * Include all products regardless of their `stock_status` By default, the `/wc/store/v1/products` endpoint does not return products with `outofstock` stock status. We want the users to be able to select any product regardless of its stock status, we need to explicitly request them using the `stock_status` query param. * Use the optional chaining operator Co-authored-by: Tomasz Tunik <tomasztunik@gmail.com> |
||
---|---|---|
.. | ||
block-title | ||
compatibility-notices | ||
edit-product-link | ||
error-placeholder | ||
expandable-search-list-item | ||
external-link-card | ||
feedback-prompt | ||
grid-content-control | ||
grid-layout-control | ||
heading-toolbar | ||
page-selector | ||
product-attribute-term-control | ||
product-category-control | ||
product-control | ||
product-orderby-control | ||
product-stock-control | ||
product-tag-control | ||
products-control | ||
search-list-control | ||
tag | ||
text-toolbar-button | ||
toggle-button-control | ||
utils | ||
view-switcher | ||
README.md |
README.md
WooCommerce Blocks - Editor Components
These are shared components used in WooCommerce blocks for the editor (Gutenberg) UI.
Many of our blocks need rich, smart components to provide an interface for selecting or configuring blocks with WooCommerce data. Often there are multiple blocks that need such components. Components in this collection are used in multiple blocks, and may include logic for working with Woo data specifically (e.g. products, shipping methods, product categories).
See Components & Storybook doc for more information.