jan
jan copied to clipboard
(WIP) feat: initial ui extension framework
Describe Your Changes
UIManager
class that manages different UI components, allowing registration and retrieval based on component type. The components are categorized by a UIComponent
enum
- [X]
RightPanelTabItem
- [X]
InputChatBox
Example use on extension
- Add new tab for right panel tab component
import { UIManager } from '@janhq/core'
UIManager.instance().register(UIComponent.RightPanelTabItem, {
name: 'Name',
value: 'value',
render: this.createRootRenderer(ReactComponentView),
})
Fixes Issues
- Closes #2718
- Closes #
Self Checklist
- [ ] Added relevant comments, esp in complex areas
- [ ] Updated docs (for bug fixes / features)
- [ ] Created issues for follow-up changes or refactoring needed