95efc38d1f
* Document payment_gateways() usage * Type in code comment * Return available methods in cart/checkout StoreAPI responses * Filter available methods in checkout * fix tests * fix TS error * fix TS warnings in tests * Update src/StoreApi/Schemas/V1/CartSchema.php Co-authored-by: Saad Tarhi <saad.trh@gmail.com> * Only apply filtering on frontend * Avoid filter on express methods --------- Co-authored-by: Saad Tarhi <saad.trh@gmail.com> |
||
---|---|---|
.. | ||
components | ||
context | ||
hocs | ||
hooks | ||
utils | ||
README.MD |
README.MD
Base Components/Context/Hooks
Base components are designed to be used on the frontend of a store. Due to this, we need to avoid using heavy WordPress externals as dependencies (wp-components, wp-block-editor, etc). To get around this, import from a local package instead.
e.g. Instead of importing from @wordpress/components
, use:
import { Component } from 'wordpress-components';
Check the built *.assets.php
files to ensure extra dependencies aren't being added to the build.