vip-block-data-api
vip-block-data-api copied to clipboard
WordPress plugin that provides an API to retrieve Gutenberg content as structured JSON.
We have too many manual steps for creating a release in RELEAE.md, and we should automate that. Gutenberg can be used as an example for how to do this.
**Describe the bug** There's almost no type hinting in the plugin, and half the methods are missing PHPDocs. **To Reproduce** look at the code, I would have expected the VIP...
Could return shorter props, e.g. “attrs” instead of “attributes”, etc.? Or have a “compact” mode? This becomes important for the OpenAI ChatGPT integration since we need to be efficient with...
Create an endpoint that renders the HTML of a block as WordPress would do.
Allow returned nodes to be filtered by index, either with a specific index or a range. This parameter would be passed via query string.
## Description The current implementation of the content parser doesn't return empty attributes, which is a deviation from the expected behavior. This inconsistency can potentially break the typing contract, causing...
## Describe the bug Currently, there is a significant issue with default attributes, such as the anchor attribute. These attributes are not available in the server-side context, causing them to...
## Description For some specific use cases, such as retrieving the anchor attributes from the HTML of every block, the API may unexpectedly return `null`. For example: - If the...
Default and client-side registered attributes (e.g., "anchor") not available in server-side context
**Describe the bug** Currently, there is a significant issue with default and client-side registered attributes, such as the `anchor` attribute, which are registered on the frontend and not in the...
## Description I realized we don't have a PHP and WP version check and the one we have been relying won't really be enforced for the way we expect this...