64fffd7051
* remove todo from sample block * Add newsletter block * Block registration * Move provider/processor so separate them from context providers * customData implementation for setting customData for requests * Make data and schema callbacks optional in extendrestapi class * schema_type should be data_type * Allow checkout endpoint to be extended * Support validation, sanitization, and defaults on nested REST properties * Experimental endpoint data for newsletter field * Add extension data to requests * SET_EXTENSION_DATA * Update types * Add todo * move check within hook function * Remove newsletter block This is because we're testing with the integration being done in a separate extension * Delete newsletter subscription block * Pass the result of hooks down to the children blocks We need to do this to allow extension blocks to modify the extensionData (so they can send custom input to the REST api when submitting the checkout form). * Remove newsletter signup block * remove checkoutSubmitData Co-authored-by: Thomas Roberts <thomas.roberts@automattic.com> Co-authored-by: Nadir Seghir <nadir.seghir@gmail.com> |
||
---|---|---|
.. | ||
README.md | ||
available-endpoints-to-extend.md | ||
available-filters.md | ||
available-slot-fills.md | ||
checkout-flow-and-events.md | ||
extend-rest-api-add-data.md | ||
extend-rest-api-formatters.md | ||
extend-rest-api-new-endpoint.md | ||
extend-rest-api-update-cart.md | ||
integration-interface.md | ||
payment-method-integration.md | ||
slot-fills.md |
README.md
Extensibility in WooCommerce Blocks
These documents are all dealing with extensibility in the various WooCommerce Blocks.
Checkout Block
Document | Description |
---|---|
Payment Method Integration | Information about implementing payment methods. |
Checkout Flow and Events | All about the checkout flow in the checkout block and the various emitted events that can be subscribed to. |
Available Filters | All about the filters that you may use to change values of certain elements of WooCommerce Blocks. |
Exposing your data in the Store API. | Explains how you can add additional data to Store API endpoints. |
Available endpoints to extend with ExtendRestAPI. | A list of all available endpoints to extend. |
Adding an endpoint to ExtendRestAPI. | A step by step process for contributors to expose a new endpoint via ExtendRestApi. |
Slots and Fills. | Explains Slot Fills and how to use them to render your own components in Cart and Checkout. |
Available Slot Fills. | Available Slots that you can use and their positions in Cart and Checkout. |
Available Formatters | Available Formatters to format data for use in the Store API. |
IntegrationInterface | The IntegrationInterface class and how to use it to register scripts, styles, and data with WooCommerce Blocks. |