wp-customize-snapshots
wp-customize-snapshots copied to clipboard
Introduce REST API previewing
A new bar appears at the bottom of the customizer that includes the URL for REST API request for the queried object. The URL includes the snapshot's UUID when a snapshot exists. The bar is hidden when the snapshot is not saved or when the overall customizer state is not saved, since REST API previewing requires the customizer state to be written to the DB. A button is also shown for making the API request and logging the output to the console, aside from the link to the REST API endpoint URL link that opens in a new window as well.
- [ ] Allow the bar to be expanded with the REST API response overlaying the customizer preview, where each snapshot update could show the changes in a pretty-printed JSON element.
- [ ] Add unit tests.
- [ ] Allow for multiple REST API endpoint URLs to be surfaced from the preview instead of just the queried object?

Coverage decreased (-1.2%) to 89.753% when pulling e84334e2db96f67e8098e8527056090754a1411f on feature/rest-api-preview into e0e08bb0fd06c36a9369fabd7b4f26d6493861bc on develop.
Coverage decreased (-1.3%) to 89.676% when pulling cbafbd84cdd1bd3c1df68854e681b84c1bd05d9c on feature/rest-api-preview into 962586659688a5b1fd9ae93618b7ce2d4e7a421c on develop.
@westonruter Could you fix the merge conflicts when you get back from break?