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> |
||
---|---|---|
.. | ||
actions.ts | ||
constants.ts | ||
event-emit.ts | ||
index.tsx | ||
reducer.ts | ||
types.ts | ||
utils.ts |