(widgetId: string, component: CustomWidgetComponent)
| 57 | } |
| 58 | |
| 59 | registerWidget(widgetId: string, component: CustomWidgetComponent) { |
| 60 | if (!this.#widgetRegistry || !this.#pluginId) { |
| 61 | throw new Error('Widget registry not available'); |
| 62 | } |
| 63 | this.#widgetRegistry.register(this.#pluginId, widgetId, component); |
| 64 | } |
| 65 | |
| 66 | unregisterWidget(widgetId: string) { |
| 67 | if (!this.#widgetRegistry || !this.#pluginId) { |