Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FE]: Plugin API to communicate with other plugins #376

Closed
airslice opened this issue Nov 28, 2022 · 0 comments · Fixed by reearth/reearth-web#364
Closed

[FE]: Plugin API to communicate with other plugins #376

airslice opened this issue Nov 28, 2022 · 0 comments · Fixed by reearth/reearth-web#364
Assignees
Labels

Comments

@airslice
Copy link
Contributor

What

This is the development task of #374

Notice:

  • Only list mounted widget/block.

What not

Implementation policy/Detail

API:

type PluginExtensionInstance = {
  id: string; // widget id, block id
  pluginId: string; // includes version
  name: string; // excludes version
  extensionId: string;
  extensionType: "widget" | "block";
};

reearth.plugins.instances: PluginExtensionInstance[]
reearth.plugins.postMessage(id: string; message: any)
reearth.on("pluginmessage", (e: { data: any, sender: string }) => {})
@airslice airslice self-assigned this Nov 28, 2022
@airslice airslice added this to In progress in Re:Earth Dev Kanban v2 Nov 28, 2022
@airslice airslice moved this from In progress to In Review in Re:Earth Dev Kanban v2 Dec 9, 2022
@airslice airslice moved this from In Review to Done in Re:Earth Dev Kanban v2 Dec 14, 2022
pyshx pushed a commit that referenced this issue Apr 17, 2023
* feat: add local storage API

* test: test for return promise

* refactor: clean up

* chore: remove empty file

* refactor: add startEventLoop and clean up

* refactor: remove undefined from type

* refactor: check if promise with instanceof

* refactor: set pluginId as `reearth-plugineditor`

* refactor: prefix store name & reject empty

* refactor:  update default widget/block id

* refactor: use extensionInstanceId & clean type

* fix: unexist extention

* refactor: renaming id

* chore: update package registry to yarnpkg.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

1 participant