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

Expose Monaco Code Editor as a Web Component for Custom Extensions #3520

Open
4 tasks
pbochynski opened this issue Dec 5, 2024 · 2 comments
Open
4 tasks
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@pbochynski
Copy link
Contributor

pbochynski commented Dec 5, 2024

Description
To enhance the extensibility of the Busola application, we need to expose the Monaco code editor as a web component. This will enable custom extensions to utilize the Monaco code editor within their own interfaces, providing a consistent and powerful editing experience.

Reasons
The code editor is required for the new version of serverless UI.

Acceptance Criteria

  • Web Component Creation - The Monaco code editor is encapsulated as a web component that can be imported and used by custom extensions.
  • Easy Integration—Documentation and examples demonstrate how to integrate and configure the Monaco code editor web component within custom extensions.
  • Performance—The Monaco code editor web component's performance is optimised to ensure smooth integration and usage within custom extensions.
  • Documentation - The documentation is updated to include detailed instructions on how to use and configure the Monaco code editor web component within custom extensions.

Attachments
PoC

@mrCherry97 mrCherry97 changed the title Expose web-component for code editor Expose Monaco Code Editor as a Web Component for Custom Extensions Dec 5, 2024
@mrCherry97 mrCherry97 added the kind/feature Categorizes issue or PR as related to a new feature. label Dec 5, 2024
@pbochynski
Copy link
Contributor Author

Some ideas:

  1. You can wrap your react components into web components
  2. You can reuse existing web component wrappers for monaco editor like: https://github.com/hey-web-components/monaco-editor

@mrCherry97
Copy link
Contributor

Also there is a problem with ObjectPage, because it is not a base webcomponent that external teams can reuse. We need to check how to expose our DynamicPageComponent as webcomponent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

2 participants