Subgraph widget promotion - Part 2 (#5617)

Implements proxyWidget support on subgraph nodes.  This registers a
special proxyWidgets property on subgraph nodes which is directly mapped
to the proxyWidgets displayed on the node. Each proxyWidget directly
maps to a real widget inside the subgraph.

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-5617-Subgraph-widget-promotion-Part-2-2716d73d3650813d8621fefdce6ae518)
by [Unito](https://www.unito.io)

---------

Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
AustinMroz
2025-09-26 08:24:55 -07:00
committed by GitHub
parent 3a9365af13
commit 9678a87846
6 changed files with 337 additions and 3 deletions

View File

@@ -57,6 +57,13 @@ export const useDomWidgetStore = defineStore('domWidget', () => {
if (state) state.active = false
}
const setWidget = (widget: BaseDOMWidget) => {
const state = widgetStates.value.get(widget.id)
if (!state) return
state.active = true
state.widget = widget
}
const clear = () => {
widgetStates.value.clear()
}
@@ -69,6 +76,7 @@ export const useDomWidgetStore = defineStore('domWidget', () => {
unregisterWidget,
activateWidget,
deactivateWidget,
setWidget,
clear
}
})