@deephaven/dashboard-core-plugins 1.18.2 → 1.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,6 +8,10 @@ export declare function WrapWidgetPlugin(plugin: WidgetPlugin): React.ForwardRef
8
8
  * Does not open panels for widgets that are not supported by any plugins.
9
9
  * Does not open panels for widgets that are a component of a larger widget or UI element.
10
10
  *
11
+ * Supports plugin chaining via middleware plugins. When multiple plugins
12
+ * support the same widget type, middleware plugins are chained around
13
+ * the base plugin in registration order.
14
+ *
11
15
  * @param props Dashboard plugin props
12
16
  * @returns React element
13
17
  */
@@ -1 +1 @@
1
- {"version":3,"file":"WidgetLoaderPlugin.d.ts","sourceRoot":"","sources":["../src/WidgetLoaderPlugin.tsx"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,6BAA6B,EAIlC,KAAK,UAAU,EAGhB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAGL,KAAK,YAAY,EAClB,MAAM,mBAAmB,CAAC;AAM3B,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,YAAY,GACnB,KAAK,CAAC,yBAAyB,CAAC,UAAU,GAAG,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,CA2C5E;AAED;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,OAAO,CAAC,6BAA6B,CAAC,GAC5C,GAAG,CAAC,OAAO,GAAG,IAAI,CAqFpB;AAED,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"WidgetLoaderPlugin.d.ts","sourceRoot":"","sources":["../src/WidgetLoaderPlugin.tsx"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,6BAA6B,EAIlC,KAAK,UAAU,EAGhB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAML,KAAK,YAAY,EAElB,MAAM,mBAAmB,CAAC;AAgB3B,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,YAAY,GACnB,KAAK,CAAC,yBAAyB,CAAC,UAAU,GAAG,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,CA2C5E;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,OAAO,CAAC,6BAA6B,CAAC,GAC5C,GAAG,CAAC,OAAO,GAAG,IAAI,CAgNpB;AAED,eAAe,kBAAkB,CAAC"}
@@ -7,10 +7,15 @@ import { useMemo, useCallback, useEffect, forwardRef } from 'react';
7
7
  import { nanoid } from 'nanoid';
8
8
  import { assertIsDashboardPluginProps, LayoutUtils, canHaveRef, usePanelOpenListener } from '@deephaven/dashboard';
9
9
  import Log from '@deephaven/log';
10
- import { isWidgetPlugin, usePlugins } from '@deephaven/plugin';
10
+ import { isWidgetPlugin, isWidgetMiddlewarePlugin, createChainedComponent, createChainedPanelComponent, usePlugins } from '@deephaven/plugin';
11
11
  import { WidgetPanel } from "./panels/index.js";
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
13
  var log = Log.module('WidgetLoaderPlugin');
14
+
15
+ /**
16
+ * Information about a widget type including its base plugin and any middleware.
17
+ */
18
+
14
19
  export function WrapWidgetPlugin(plugin) {
15
20
  var _plugin$component$dis;
16
21
  function Wrapper(props, ref) {
@@ -51,28 +56,76 @@ export function WrapWidgetPlugin(plugin) {
51
56
  * Does not open panels for widgets that are not supported by any plugins.
52
57
  * Does not open panels for widgets that are a component of a larger widget or UI element.
53
58
  *
59
+ * Supports plugin chaining via middleware plugins. When multiple plugins
60
+ * support the same widget type, middleware plugins are chained around
61
+ * the base plugin in registration order.
62
+ *
54
63
  * @param props Dashboard plugin props
55
64
  * @returns React element
56
65
  */
57
66
  export function WidgetLoaderPlugin(props) {
58
67
  var plugins = usePlugins();
68
+
69
+ /**
70
+ * Build a map of widget types to their plugin chain info.
71
+ * For each type, we have a base plugin and a list of middleware to apply.
72
+ */
59
73
  var supportedTypes = useMemo(() => {
60
74
  var typeMap = new Map();
61
75
  plugins.forEach(plugin => {
62
- if (!isWidgetPlugin(plugin)) {
76
+ var isMiddleware = isWidgetMiddlewarePlugin(plugin);
77
+ if (!isWidgetPlugin(plugin) && !isMiddleware) {
63
78
  return;
64
79
  }
65
80
  [plugin.supportedTypes].flat().forEach(supportedType => {
66
- if (supportedType != null && supportedType !== '') {
67
- if (typeMap.has(supportedType)) {
68
- var _typeMap$get;
69
- log.warn("Multiple WidgetPlugins handling type ".concat(supportedType, ". Replacing ").concat((_typeMap$get = typeMap.get(supportedType)) === null || _typeMap$get === void 0 ? void 0 : _typeMap$get.name, " with ").concat(plugin.name, " to handle ").concat(supportedType));
81
+ if (supportedType == null || supportedType === '') {
82
+ return;
83
+ }
84
+ var existing = typeMap.get(supportedType);
85
+ if (isMiddleware) {
86
+ // Add middleware to existing chain or create pending chain
87
+ if (existing != null) {
88
+ existing.middleware.push(plugin);
89
+ log.debug("Adding middleware ".concat(plugin.name, " to chain for type ").concat(supportedType));
90
+ } else {
91
+ // No base plugin yet, create entry with just middleware
92
+ // The base plugin will be set when a non-middleware plugin is registered
93
+ typeMap.set(supportedType, {
94
+ basePlugin: null,
95
+ middleware: [plugin]
96
+ });
97
+ log.debug("Creating pending middleware chain for type ".concat(supportedType, " with ").concat(plugin.name));
98
+ }
99
+ } else {
100
+ // Non-middleware plugin: becomes the base plugin
101
+ if (existing != null) {
102
+ if (existing.basePlugin != null) {
103
+ // Already have a base plugin, warn about replacement
104
+ log.warn("Multiple WidgetPlugins handling type ".concat(supportedType, ". ") + "Replacing ".concat(existing.basePlugin.name, " with ").concat(plugin.name, " as base plugin"));
105
+ }
106
+ // Keep existing middleware, update the base plugin
107
+ existing.basePlugin = plugin;
108
+ } else {
109
+ typeMap.set(supportedType, {
110
+ basePlugin: plugin,
111
+ middleware: []
112
+ });
70
113
  }
71
- typeMap.set(supportedType, plugin);
114
+ log.debug("Set base plugin ".concat(plugin.name, " for type ").concat(supportedType));
72
115
  }
73
116
  });
74
117
  });
75
- return typeMap;
118
+
119
+ // Filter out entries that only have middleware (no base plugin)
120
+ var validEntries = new Map();
121
+ typeMap.forEach((info, type) => {
122
+ if (info.basePlugin != null) {
123
+ validEntries.set(type, info);
124
+ } else {
125
+ log.warn("No base plugin found for type ".concat(type, ", middleware will not be applied"));
126
+ }
127
+ });
128
+ return validEntries;
76
129
  }, [plugins]);
77
130
  assertIsDashboardPluginProps(props);
78
131
  var {
@@ -91,8 +144,8 @@ export function WidgetLoaderPlugin(props) {
91
144
  var {
92
145
  type
93
146
  } = widget;
94
- var plugin = type != null ? supportedTypes.get(type) : null;
95
- if (plugin == null) {
147
+ var typeInfo = type != null ? supportedTypes.get(type) : null;
148
+ if (typeInfo == null) {
96
149
  return;
97
150
  }
98
151
  var name = (_widget$name = widget.name) !== null && _widget$name !== void 0 ? _widget$name : type;
@@ -103,7 +156,7 @@ export function WidgetLoaderPlugin(props) {
103
156
  };
104
157
  var config = {
105
158
  type: 'react-component',
106
- component: plugin.name,
159
+ component: typeInfo.basePlugin.name,
107
160
  props: panelProps,
108
161
  title: name,
109
162
  id: panelId
@@ -118,14 +171,62 @@ export function WidgetLoaderPlugin(props) {
118
171
  });
119
172
  }, [id, layout, supportedTypes]);
120
173
  useEffect(() => {
121
- var deregisterFns = [...new Set(supportedTypes.values())].map(plugin => {
174
+ // Get unique base plugins (a plugin may handle multiple types)
175
+ // supportedTypes is already filtered to entries with non-null basePlugin
176
+
177
+ var uniquePluginInfos = new Map();
178
+ supportedTypes.forEach((info, _type) => {
179
+ // Use the base plugin name as the key to get unique plugins
180
+ if (!uniquePluginInfos.has(info.basePlugin.name)) {
181
+ // Clone to avoid mutating the useMemo result
182
+ uniquePluginInfos.set(info.basePlugin.name, {
183
+ basePlugin: info.basePlugin,
184
+ middleware: [...info.middleware]
185
+ });
186
+ } else {
187
+ // Merge middleware from multiple type registrations for the same base plugin
188
+ var existingInfo = uniquePluginInfos.get(info.basePlugin.name);
189
+ if (existingInfo != null) {
190
+ info.middleware.forEach(m => {
191
+ if (!existingInfo.middleware.includes(m)) {
192
+ existingInfo.middleware.push(m);
193
+ }
194
+ });
195
+ }
196
+ }
197
+ });
198
+ log.debug('Registering widget components', [...uniquePluginInfos.entries()].map(_ref2 => {
199
+ var [name, info] = _ref2;
200
+ return {
201
+ plugin: name,
202
+ middleware: info.middleware.map(m => m.name),
203
+ hasPanel: info.basePlugin.panelComponent != null
204
+ };
205
+ }));
206
+ var deregisterFns = [...uniquePluginInfos.values()].map(_ref3 => {
207
+ var {
208
+ basePlugin,
209
+ middleware
210
+ } = _ref3;
122
211
  var {
123
212
  panelComponent
124
- } = plugin;
213
+ } = basePlugin;
125
214
  if (panelComponent == null) {
126
- return registerComponent(plugin.name, WrapWidgetPlugin(plugin));
215
+ // No panel component - chain the widget components and wrap in default panel
216
+ log.debug("Chaining widget components for ".concat(basePlugin.name, " (no panel component, using default wrapper)"));
217
+ var chainedComponent = createChainedComponent(basePlugin.component, middleware);
218
+ var wrappedPlugin = _objectSpread(_objectSpread({}, basePlugin), {}, {
219
+ component: chainedComponent
220
+ });
221
+ return registerComponent(basePlugin.name, WrapWidgetPlugin(wrappedPlugin));
127
222
  }
128
- return registerComponent(plugin.name, panelComponent);
223
+
224
+ // Has panel component - chain middleware around the panel.
225
+ // Only middleware that defines panelComponent is applied here.
226
+ // Middleware with only component is skipped in this path.
227
+ log.debug("Chaining panel components for ".concat(basePlugin.name, " (has custom panel component)"));
228
+ var chainedPanelComponent = createChainedPanelComponent(panelComponent, middleware);
229
+ return registerComponent(basePlugin.name, chainedPanelComponent);
129
230
  });
130
231
  return () => {
131
232
  deregisterFns.forEach(deregister => deregister());
@@ -1 +1 @@
1
- {"version":3,"file":"WidgetLoaderPlugin.js","names":["useMemo","useCallback","useEffect","forwardRef","nanoid","assertIsDashboardPluginProps","LayoutUtils","canHaveRef","usePanelOpenListener","Log","isWidgetPlugin","usePlugins","WidgetPanel","jsx","_jsx","log","module","WrapWidgetPlugin","plugin","_plugin$component$dis","Wrapper","props","ref","_metadata$type","_metadata$name","C","component","metadata","panelDescriptor","_objectSpread","type","name","hasRef","className","concat","descriptor","children","displayName","WidgetLoaderPlugin","plugins","supportedTypes","typeMap","Map","forEach","flat","supportedType","has","_typeMap$get","warn","get","set","id","layout","registerComponent","handlePanelOpen","_ref","_widget$name","dragEvent","panelId","fetch","widget","panelProps","localDashboardId","config","title","root","openComponent","deregisterFns","Set","values","map","panelComponent","deregister","eventHub"],"sources":["../src/WidgetLoaderPlugin.tsx"],"sourcesContent":["import { useMemo, useCallback, useEffect, forwardRef } from 'react';\nimport type { ReactComponentConfig } from '@deephaven/golden-layout';\nimport { nanoid } from 'nanoid';\nimport {\n assertIsDashboardPluginProps,\n type DashboardPluginComponentProps,\n type DehydratedDashboardPanelProps,\n type PanelOpenEventDetail,\n LayoutUtils,\n type PanelProps,\n canHaveRef,\n usePanelOpenListener,\n} from '@deephaven/dashboard';\nimport Log from '@deephaven/log';\nimport {\n isWidgetPlugin,\n usePlugins,\n type WidgetPlugin,\n} from '@deephaven/plugin';\nimport { WidgetPanel } from './panels';\nimport { type WidgetPanelDescriptor } from './panels/WidgetPanelTypes';\n\nconst log = Log.module('WidgetLoaderPlugin');\n\nexport function WrapWidgetPlugin(\n plugin: WidgetPlugin\n): React.ForwardRefExoticComponent<PanelProps & React.RefAttributes<unknown>> {\n function Wrapper(props: PanelProps, ref: React.ForwardedRef<unknown>) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const C = plugin.component as any;\n const { metadata } = props;\n\n const panelDescriptor: WidgetPanelDescriptor = {\n ...metadata,\n type: metadata?.type ?? plugin.type,\n name: metadata?.name ?? 'Widget',\n };\n\n const hasRef = canHaveRef(C);\n const className = `widget-loader-${panelDescriptor.type}`;\n\n return (\n <WidgetPanel\n descriptor={panelDescriptor}\n className={className}\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...props}\n >\n {hasRef ? (\n <C\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...props}\n ref={ref}\n />\n ) : (\n <C\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...props}\n />\n )}\n </WidgetPanel>\n );\n }\n\n Wrapper.displayName = `WidgetLoaderPlugin(${\n plugin.component.displayName ?? plugin.name\n })`;\n\n return forwardRef(Wrapper);\n}\n\n/**\n * Widget to automatically open any supported WidgetPlugin types as panels\n * if the widget is emitted from the server as the result of executed code.\n *\n * Does not open panels for widgets that are not supported by any plugins.\n * Does not open panels for widgets that are a component of a larger widget or UI element.\n *\n * @param props Dashboard plugin props\n * @returns React element\n */\nexport function WidgetLoaderPlugin(\n props: Partial<DashboardPluginComponentProps>\n): JSX.Element | null {\n const plugins = usePlugins();\n const supportedTypes = useMemo(() => {\n const typeMap = new Map<string, WidgetPlugin>();\n plugins.forEach(plugin => {\n if (!isWidgetPlugin(plugin)) {\n return;\n }\n\n [plugin.supportedTypes].flat().forEach(supportedType => {\n if (supportedType != null && supportedType !== '') {\n if (typeMap.has(supportedType)) {\n log.warn(\n `Multiple WidgetPlugins handling type ${supportedType}. Replacing ${typeMap.get(\n supportedType\n )?.name} with ${plugin.name} to handle ${supportedType}`\n );\n }\n typeMap.set(supportedType, plugin);\n }\n });\n });\n\n return typeMap;\n }, [plugins]);\n\n assertIsDashboardPluginProps(props);\n const { id, layout, registerComponent } = props;\n\n const handlePanelOpen = useCallback(\n ({\n dragEvent,\n panelId = nanoid(),\n fetch,\n widget,\n }: PanelOpenEventDetail) => {\n const { type } = widget;\n const plugin = type != null ? supportedTypes.get(type) : null;\n if (plugin == null) {\n return;\n }\n const name = widget.name ?? type;\n\n const panelProps: DehydratedDashboardPanelProps & {\n fetch?: () => Promise<unknown>;\n } = {\n localDashboardId: id,\n metadata: widget,\n fetch,\n };\n\n const config: ReactComponentConfig = {\n type: 'react-component',\n component: plugin.name,\n props: panelProps,\n title: name,\n id: panelId,\n };\n\n const { root } = layout;\n LayoutUtils.openComponent({ root, config, dragEvent });\n },\n [id, layout, supportedTypes]\n );\n\n useEffect(() => {\n const deregisterFns = [...new Set(supportedTypes.values())].map(plugin => {\n const { panelComponent } = plugin;\n if (panelComponent == null) {\n return registerComponent(plugin.name, WrapWidgetPlugin(plugin));\n }\n return registerComponent(plugin.name, panelComponent);\n });\n\n return () => {\n deregisterFns.forEach(deregister => deregister());\n };\n }, [registerComponent, supportedTypes]);\n\n /**\n * Listen for panel open events so we know when to open a panel\n */\n usePanelOpenListener(layout.eventHub, handlePanelOpen);\n\n return null;\n}\n\nexport default WidgetLoaderPlugin;\n"],"mappings":";;;;;AAAA,SAASA,OAAO,EAAEC,WAAW,EAAEC,SAAS,EAAEC,UAAU,QAAQ,OAAO;AAEnE,SAASC,MAAM,QAAQ,QAAQ;AAC/B,SACEC,4BAA4B,EAI5BC,WAAW,EAEXC,UAAU,EACVC,oBAAoB,QACf,sBAAsB;AAC7B,OAAOC,GAAG,MAAM,gBAAgB;AAChC,SACEC,cAAc,EACdC,UAAU,QAEL,mBAAmB;AAAC,SAClBC,WAAW;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAGpB,IAAMC,GAAG,GAAGN,GAAG,CAACO,MAAM,CAAC,oBAAoB,CAAC;AAE5C,OAAO,SAASC,gBAAgBA,CAC9BC,MAAoB,EACwD;EAAA,IAAAC,qBAAA;EAC5E,SAASC,OAAOA,CAACC,KAAiB,EAAEC,GAAgC,EAAE;IAAA,IAAAC,cAAA,EAAAC,cAAA;IACpE;IACA,IAAMC,CAAC,GAAGP,MAAM,CAACQ,SAAgB;IACjC,IAAM;MAAEC;IAAS,CAAC,GAAGN,KAAK;IAE1B,IAAMO,eAAsC,GAAAC,aAAA,CAAAA,aAAA,KACvCF,QAAQ;MACXG,IAAI,GAAAP,cAAA,GAAEI,QAAQ,aAARA,QAAQ,uBAARA,QAAQ,CAAEG,IAAI,cAAAP,cAAA,cAAAA,cAAA,GAAIL,MAAM,CAACY,IAAI;MACnCC,IAAI,GAAAP,cAAA,GAAEG,QAAQ,aAARA,QAAQ,uBAARA,QAAQ,CAAEI,IAAI,cAAAP,cAAA,cAAAA,cAAA,GAA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EAAER,MAAM,CAACa,IAAI;MACtBV,KAAK,EAAEwC,UAAU;MACjBG,KAAK,EAAEjC,IAAI;MACXoB,EAAE,EAAEO;IACN,CAAC;IAED,IAAM;MAAEO;IAAK,CAAC,GAAGb,MAAM;IACvB9C,WAAW,CAAC4D,aAAa,CAAC;MAAED,IAAI;MAAEF,MAAM;MAAEN;IAAU,CAAC,CAAC;EACxD,CAAC,EACD,CAACN,EAAE,EAAEC,MAAM,EAAEZ,cAAc,CAC7B,CAAC;EAEDtC,SAAS,CAAC,MAAM;IACd,IAAMiE,aAAa,GAAG,CAAC,GAAG,IAAIC,GAAG,CAAC5B,cAAc,CAAC6B,MAAM,CAAC,CAAC,CAAC,CAAC,CAACC,GAAG,CAACpD,MAAM,IAAI;MACxE,IAAM;QAAEqD;MAAe,CAAC,GAAGrD,MAAM;MACjC,IAAIqD,cAAc,IAAI,IAAI,EAAE;QAC1B,OAAOlB,iBAAiB,CAACnC,MAAM,CAACa,IAAI,EAAEd,gBAAgB,CAACC,MAAM,CAAC,CAAC;MACjE;MACA,OAAOmC,iBAAiB,CAACnC,MAAM,CAACa,IAAI,EAAEwC,cAAc,CAAC;IACvD,CAAC,CAAC;IAEF,OAAO,MAAM;MACXJ,aAAa,CAACxB,OAAO,CAAC6B,UAAU,IAAIA,UAAU,CAAC,CAAC,CAAC;IACnD,CAAC;EACH,CAAC,EAAE,CAACnB,iBAAiB,EAAEb,cAAc,CAAC,CAAC;;EAEvC;AACF;AACA;EACEhC,oBAAoB,CAAC4C,MAAM,CAACqB,QAAQ,EAAEnB,eAAe,CAAC;EAEtD,OAAO,IAAI;AACb;AAEA,eAAehB,kBAAkB","ignoreList":[]}
1
+ {"version":3,"file":"WidgetLoaderPlugin.js","names":["useMemo","useCallback","useEffect","forwardRef","nanoid","assertIsDashboardPluginProps","LayoutUtils","canHaveRef","usePanelOpenListener","Log","isWidgetPlugin","isWidgetMiddlewarePlugin","createChainedComponent","createChainedPanelComponent","usePlugins","WidgetPanel","jsx","_jsx","log","module","WrapWidgetPlugin","plugin","_plugin$component$dis","Wrapper","props","ref","_metadata$type","_metadata$name","C","component","metadata","panelDescriptor","_objectSpread","type","name","hasRef","className","concat","descriptor","children","displayName","WidgetLoaderPlugin","plugins","supportedTypes","typeMap","Map","forEach","isMiddleware","flat","supportedType","existing","get","middleware","push","debug","set","basePlugin","warn","validEntries","info","id","layout","registerComponent","handlePanelOpen","_ref","_widget$name","dragEvent","panelId","fetch","widget","typeInfo","panelProps","localDashboardId","config","title","root","openComponent","uniquePluginInfos","_type","has","existingInfo","m","includes","entries","map","_ref2","hasPanel","panelComponent","deregisterFns","values","_ref3","chainedComponent","wrappedPlugin","chainedPanelComponent","deregister","eventHub"],"sources":["../src/WidgetLoaderPlugin.tsx"],"sourcesContent":["import { useMemo, useCallback, useEffect, forwardRef } from 'react';\nimport type { ReactComponentConfig } from '@deephaven/golden-layout';\nimport { nanoid } from 'nanoid';\nimport {\n assertIsDashboardPluginProps,\n type DashboardPluginComponentProps,\n type DehydratedDashboardPanelProps,\n type PanelOpenEventDetail,\n LayoutUtils,\n type PanelProps,\n canHaveRef,\n usePanelOpenListener,\n} from '@deephaven/dashboard';\nimport Log from '@deephaven/log';\nimport {\n isWidgetPlugin,\n isWidgetMiddlewarePlugin,\n createChainedComponent,\n createChainedPanelComponent,\n usePlugins,\n type WidgetPlugin,\n type WidgetMiddlewarePlugin,\n} from '@deephaven/plugin';\nimport { WidgetPanel } from './panels';\nimport { type WidgetPanelDescriptor } from './panels/WidgetPanelTypes';\n\nconst log = Log.module('WidgetLoaderPlugin');\n\n/**\n * Information about a widget type including its base plugin and any middleware.\n */\ninterface WidgetTypeInfo {\n /** The base plugin that handles this widget type, or null if only middleware registered so far */\n basePlugin: WidgetPlugin | null;\n /** Middleware plugins to apply, in order from outermost to innermost */\n middleware: WidgetMiddlewarePlugin[];\n}\n\nexport function WrapWidgetPlugin(\n plugin: WidgetPlugin\n): React.ForwardRefExoticComponent<PanelProps & React.RefAttributes<unknown>> {\n function Wrapper(props: PanelProps, ref: React.ForwardedRef<unknown>) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const C = plugin.component as any;\n const { metadata } = props;\n\n const panelDescriptor: WidgetPanelDescriptor = {\n ...metadata,\n type: metadata?.type ?? plugin.type,\n name: metadata?.name ?? 'Widget',\n };\n\n const hasRef = canHaveRef(C);\n const className = `widget-loader-${panelDescriptor.type}`;\n\n return (\n <WidgetPanel\n descriptor={panelDescriptor}\n className={className}\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...props}\n >\n {hasRef ? (\n <C\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...props}\n ref={ref}\n />\n ) : (\n <C\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...props}\n />\n )}\n </WidgetPanel>\n );\n }\n\n Wrapper.displayName = `WidgetLoaderPlugin(${\n plugin.component.displayName ?? plugin.name\n })`;\n\n return forwardRef(Wrapper);\n}\n\n/**\n * Widget to automatically open any supported WidgetPlugin types as panels\n * if the widget is emitted from the server as the result of executed code.\n *\n * Does not open panels for widgets that are not supported by any plugins.\n * Does not open panels for widgets that are a component of a larger widget or UI element.\n *\n * Supports plugin chaining via middleware plugins. When multiple plugins\n * support the same widget type, middleware plugins are chained around\n * the base plugin in registration order.\n *\n * @param props Dashboard plugin props\n * @returns React element\n */\nexport function WidgetLoaderPlugin(\n props: Partial<DashboardPluginComponentProps>\n): JSX.Element | null {\n const plugins = usePlugins();\n\n /**\n * Build a map of widget types to their plugin chain info.\n * For each type, we have a base plugin and a list of middleware to apply.\n */\n const supportedTypes = useMemo(() => {\n const typeMap = new Map<string, WidgetTypeInfo>();\n\n plugins.forEach(plugin => {\n const isMiddleware = isWidgetMiddlewarePlugin(plugin);\n if (!isWidgetPlugin(plugin) && !isMiddleware) {\n return;\n }\n\n [plugin.supportedTypes].flat().forEach(supportedType => {\n if (supportedType == null || supportedType === '') {\n return;\n }\n\n const existing = typeMap.get(supportedType);\n\n if (isMiddleware) {\n // Add middleware to existing chain or create pending chain\n if (existing != null) {\n existing.middleware.push(plugin);\n log.debug(\n `Adding middleware ${plugin.name} to chain for type ${supportedType}`\n );\n } else {\n // No base plugin yet, create entry with just middleware\n // The base plugin will be set when a non-middleware plugin is registered\n typeMap.set(supportedType, {\n basePlugin: null,\n middleware: [plugin],\n });\n log.debug(\n `Creating pending middleware chain for type ${supportedType} with ${plugin.name}`\n );\n }\n } else {\n // Non-middleware plugin: becomes the base plugin\n if (existing != null) {\n if (existing.basePlugin != null) {\n // Already have a base plugin, warn about replacement\n log.warn(\n `Multiple WidgetPlugins handling type ${supportedType}. ` +\n `Replacing ${existing.basePlugin.name} with ${plugin.name} as base plugin`\n );\n }\n // Keep existing middleware, update the base plugin\n existing.basePlugin = plugin;\n } else {\n typeMap.set(supportedType, {\n basePlugin: plugin,\n middleware: [],\n });\n }\n log.debug(`Set base plugin ${plugin.name} for type ${supportedType}`);\n }\n });\n });\n\n // Filter out entries that only have middleware (no base plugin)\n const validEntries = new Map<\n string,\n WidgetTypeInfo & { basePlugin: WidgetPlugin }\n >();\n typeMap.forEach((info, type) => {\n if (info.basePlugin != null) {\n validEntries.set(\n type,\n info as WidgetTypeInfo & { basePlugin: WidgetPlugin }\n );\n } else {\n log.warn(\n `No base plugin found for type ${type}, middleware will not be applied`\n );\n }\n });\n\n return validEntries;\n }, [plugins]);\n\n assertIsDashboardPluginProps(props);\n const { id, layout, registerComponent } = props;\n\n const handlePanelOpen = useCallback(\n ({\n dragEvent,\n panelId = nanoid(),\n fetch,\n widget,\n }: PanelOpenEventDetail) => {\n const { type } = widget;\n const typeInfo = type != null ? supportedTypes.get(type) : null;\n if (typeInfo == null) {\n return;\n }\n const name = widget.name ?? type;\n\n const panelProps: DehydratedDashboardPanelProps & {\n fetch?: () => Promise<unknown>;\n } = {\n localDashboardId: id,\n metadata: widget,\n fetch,\n };\n\n const config: ReactComponentConfig = {\n type: 'react-component',\n component: typeInfo.basePlugin.name,\n props: panelProps,\n title: name,\n id: panelId,\n };\n\n const { root } = layout;\n LayoutUtils.openComponent({ root, config, dragEvent });\n },\n [id, layout, supportedTypes]\n );\n\n useEffect(() => {\n // Get unique base plugins (a plugin may handle multiple types)\n // supportedTypes is already filtered to entries with non-null basePlugin\n type ValidWidgetTypeInfo = WidgetTypeInfo & { basePlugin: WidgetPlugin };\n const uniquePluginInfos = new Map<string, ValidWidgetTypeInfo>();\n supportedTypes.forEach((info, _type) => {\n // Use the base plugin name as the key to get unique plugins\n if (!uniquePluginInfos.has(info.basePlugin.name)) {\n // Clone to avoid mutating the useMemo result\n uniquePluginInfos.set(info.basePlugin.name, {\n basePlugin: info.basePlugin,\n middleware: [...info.middleware],\n });\n } else {\n // Merge middleware from multiple type registrations for the same base plugin\n const existingInfo = uniquePluginInfos.get(info.basePlugin.name);\n if (existingInfo != null) {\n info.middleware.forEach(m => {\n if (!existingInfo.middleware.includes(m)) {\n existingInfo.middleware.push(m);\n }\n });\n }\n }\n });\n\n log.debug(\n 'Registering widget components',\n [...uniquePluginInfos.entries()].map(([name, info]) => ({\n plugin: name,\n middleware: info.middleware.map(m => m.name),\n hasPanel: info.basePlugin.panelComponent != null,\n }))\n );\n\n const deregisterFns = [...uniquePluginInfos.values()].map(\n ({ basePlugin, middleware }) => {\n const { panelComponent } = basePlugin;\n\n if (panelComponent == null) {\n // No panel component - chain the widget components and wrap in default panel\n log.debug(\n `Chaining widget components for ${basePlugin.name} (no panel component, using default wrapper)`\n );\n const chainedComponent = createChainedComponent(\n basePlugin.component,\n middleware\n );\n const wrappedPlugin: WidgetPlugin = {\n ...basePlugin,\n component: chainedComponent,\n };\n return registerComponent(\n basePlugin.name,\n WrapWidgetPlugin(wrappedPlugin)\n );\n }\n\n // Has panel component - chain middleware around the panel.\n // Only middleware that defines panelComponent is applied here.\n // Middleware with only component is skipped in this path.\n log.debug(\n `Chaining panel components for ${basePlugin.name} (has custom panel component)`\n );\n const chainedPanelComponent = createChainedPanelComponent(\n panelComponent,\n middleware\n );\n\n return registerComponent(basePlugin.name, chainedPanelComponent);\n }\n );\n\n return () => {\n deregisterFns.forEach(deregister => deregister());\n };\n }, [registerComponent, supportedTypes]);\n\n /**\n * Listen for panel open events so we know when to open a panel\n */\n usePanelOpenListener(layout.eventHub, handlePanelOpen);\n\n return null;\n}\n\nexport default WidgetLoaderPlugin;\n"],"mappings":";;;;;AAAA,SAASA,OAAO,EAAEC,WAAW,EAAEC,SAAS,EAAEC,UAAU,QAAQ,OAAO;AAEnE,SAASC,MAAM,QAAQ,QAAQ;AAC/B,SACEC,4BAA4B,EAI5BC,WAAW,EAEXC,UAAU,EACVC,oBAAoB,QACf,sBAAsB;AAC7B,OAAOC,GAAG,MAAM,gBAAgB;AAChC,SACEC,cAAc,EACdC,wBAAwB,EACxBC,sBAAsB,EACtBC,2BAA2B,EAC3BC,UAAU,QAGL,mBAAmB;AAAC,SAClBC,WAAW;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAGpB,IAAMC,GAAG,GAAGT,GAAG,CAACU,MAAM,CAAC,oBAAoB,CAAC;;AAE5C;AACA;AACA;;AAQA,OAAO,SAASC,gBAAgBA,CAC9BC,MAAoB,EACwD;EAAA,IAAAC,qBAAA;EAC5E,SAASC,OAAOA,CAACC,KAAiB,EAAEC,GAAgC,EAAE;IAAA,IAAAC,cAAA,EAAAC,cAAA;IACpE;IACA,IAAMC,CAAC,GAAGP,MAAM,CAACQ,SAAgB;IACjC,IAAM;MAAEC;IAAS,CAAC,GAAGN,KAAK;IAE1B,IAAMO,eAAsC,GAAAC,aAAA,CAAAA,aAAA,KACvCF,QAAQ;MACXG,IAAI,GAAAP,cAAA,GAAEI,QAAQ,aAARA,QAAQ,uBAARA,QAAQ,CAAEG,IAAI,cAAAP,cAAA,cAAAA,cAAA,GAAIL,MAAM,CAACY,IAAI;MACnCC,IAAI,GAAAP,cAAA,GAAEG,QAAQ,aAARA,QAAQ,uBAARA,QAAQ,CAAEI,IAAI,cAAAP,cAAA,cAAAA,cAAA,GAAI;IAAQ,EACjC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XL,aAAa,CAAC1C,OAAO,CAACgD,UAAU,IAAIA,UAAU,CAAC,CAAC,CAAC;IACnD,CAAC;EACH,CAAC,EAAE,CAAChC,iBAAiB,EAAEnB,cAAc,CAAC,CAAC;;EAEvC;AACF;AACA;EACEnC,oBAAoB,CAACqD,MAAM,CAACkC,QAAQ,EAAEhC,eAAe,CAAC;EAEtD,OAAO,IAAI;AACb;AAEA,eAAetB,kBAAkB","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deephaven/dashboard-core-plugins",
3
- "version": "1.18.2",
3
+ "version": "1.19.0",
4
4
  "description": "Deephaven Dashboard Core Plugins",
5
5
  "author": "Deephaven Data Labs LLC",
6
6
  "license": "Apache-2.0",
@@ -25,7 +25,7 @@
25
25
  "@deephaven/chart": "^1.17.0",
26
26
  "@deephaven/components": "^1.17.0",
27
27
  "@deephaven/console": "^1.17.0",
28
- "@deephaven/dashboard": "^1.18.1",
28
+ "@deephaven/dashboard": "^1.19.0",
29
29
  "@deephaven/file-explorer": "^1.17.0",
30
30
  "@deephaven/filters": "^1.1.0",
31
31
  "@deephaven/golden-layout": "^1.18.1",
@@ -37,9 +37,9 @@
37
37
  "@deephaven/jsapi-types": "^1.0.0-dev0.40.4",
38
38
  "@deephaven/jsapi-utils": "^1.16.0",
39
39
  "@deephaven/log": "^1.8.0",
40
- "@deephaven/plugin": "^1.18.2",
40
+ "@deephaven/plugin": "^1.19.0",
41
41
  "@deephaven/react-hooks": "^1.14.0",
42
- "@deephaven/redux": "^1.17.0",
42
+ "@deephaven/redux": "^1.19.0",
43
43
  "@deephaven/storage": "^1.8.0",
44
44
  "@deephaven/utils": "^1.10.0",
45
45
  "@fortawesome/react-fontawesome": "^0.2.0",
@@ -79,5 +79,5 @@
79
79
  "publishConfig": {
80
80
  "access": "public"
81
81
  },
82
- "gitHead": "90b8e4d1cbffabdceaf2dacf010e7286805361c2"
82
+ "gitHead": "8c0cabbd8c9bb2d85bdd2234deab3f43ae8bbcaf"
83
83
  }