Add a Block Kit placement for sandboxed content-editor actions #3004
diogoascarneiro
started this conversation in
Ideas
Replies: 1 comment
|
Converted this to a discussion as it is a feature request. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Description
In EmDash 0.35, sandboxed plugins can render Block Kit pages, dashboard widgets, and controls for fields inside plugin-defined Portable Text blocks. They cannot add an editor-wide action that reads or updates several collection fields.
BlockResponsecan return blocks and a toast, but it cannot return a patch for the open editor form.This blocks sandboxed marketplace plugins that need an editor-scoped interaction.
For example, a translation plugin should be able to show Translate with provider inside an existing target-locale draft, receive permitted current text fields when clicked, and return translated field values for review.
Expected behavior:
editorPatchtied to that draft revision.This is separate from adding live-draft methods to trusted React panels. It adds a new host-rendered placement and sandbox transport contract for marketplace plugins.
Documentation:
Steps to reproduce
BlockResponsehas no editor-patch response.Environment
0.35.0(3c99225d80a38a9751ed0e4b56e3924e40308e70)22.22.3Screenshots
Not applicable
Logs / error output
All reactions