@trops/dash-core 0.1.463 → 0.1.464
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.
- package/dist/index.esm.js +18 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +18 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -33132,7 +33132,12 @@ var useWidgetProviders = function useWidgetProviders() {
|
|
|
33132
33132
|
var workspace = React.useContext(WorkspaceContext);
|
|
33133
33133
|
var widgetContext = React.useContext(WidgetContext);
|
|
33134
33134
|
var widgetData = widgetContext === null || widgetContext === void 0 ? void 0 : widgetContext.widgetData;
|
|
33135
|
-
|
|
33135
|
+
// Identity-key fallback chain matches the bulk-save canonical
|
|
33136
|
+
// chain (`item.uuidString || item.uuid || item.id`). Without the
|
|
33137
|
+
// fallback, widgets that lack `uuidString` (older / AI-built
|
|
33138
|
+
// instances) silently miss workspace-level bindings written by
|
|
33139
|
+
// the dashboard config bulk edit modal.
|
|
33140
|
+
var widgetId = (widgetData === null || widgetData === void 0 ? void 0 : widgetData.uuidString) || (widgetData === null || widgetData === void 0 ? void 0 : widgetData.uuid) || (widgetData === null || widgetData === void 0 ? void 0 : widgetData.id);
|
|
33136
33141
|
|
|
33137
33142
|
// Get all provider type declarations from the widget config
|
|
33138
33143
|
var providerDeclarations = (widgetData === null || widgetData === void 0 ? void 0 : widgetData.providers) || [];
|
|
@@ -33281,7 +33286,12 @@ var useMcpProvider = function useMcpProvider(providerType) {
|
|
|
33281
33286
|
// 4. null — will render MissingProviderPrompt
|
|
33282
33287
|
// Existing widgets/workspaces retain their explicit bindings — the
|
|
33283
33288
|
// default layer only activates for widgets with no explicit binding.
|
|
33284
|
-
|
|
33289
|
+
// Identity-key fallback chain matches the bulk-save canonical
|
|
33290
|
+
// chain (`item.uuidString || item.uuid || item.id`). Without the
|
|
33291
|
+
// fallback, widgets that lack `uuidString` (older / AI-built
|
|
33292
|
+
// instances) silently miss workspace-level bindings written by
|
|
33293
|
+
// the dashboard config bulk edit modal.
|
|
33294
|
+
var widgetId = (widgetData === null || widgetData === void 0 ? void 0 : widgetData.uuidString) || (widgetData === null || widgetData === void 0 ? void 0 : widgetData.uuid) || (widgetData === null || widgetData === void 0 ? void 0 : widgetData.id);
|
|
33285
33295
|
var selectedProviderName = function (_widgetData$selectedP, _workspace$workspaceD) {
|
|
33286
33296
|
// Widget-level: stored directly on the layout item
|
|
33287
33297
|
if (widgetData !== null && widgetData !== void 0 && (_widgetData$selectedP = widgetData.selectedProviders) !== null && _widgetData$selectedP !== void 0 && _widgetData$selectedP[providerType]) {
|
|
@@ -34139,7 +34149,12 @@ var useWebSocketProvider = function useWebSocketProvider(providerType) {
|
|
|
34139
34149
|
// 3. App default — provider of matching type flagged
|
|
34140
34150
|
// isDefaultForType in app.providers
|
|
34141
34151
|
// 4. null — widget renders MissingProviderPrompt
|
|
34142
|
-
|
|
34152
|
+
// Identity-key fallback chain matches the bulk-save canonical
|
|
34153
|
+
// chain (`item.uuidString || item.uuid || item.id`). Without the
|
|
34154
|
+
// fallback, widgets that lack `uuidString` (older / AI-built
|
|
34155
|
+
// instances) silently miss workspace-level bindings written by
|
|
34156
|
+
// the dashboard config bulk edit modal.
|
|
34157
|
+
var widgetId = (widgetData === null || widgetData === void 0 ? void 0 : widgetData.uuidString) || (widgetData === null || widgetData === void 0 ? void 0 : widgetData.uuid) || (widgetData === null || widgetData === void 0 ? void 0 : widgetData.id);
|
|
34143
34158
|
var selectedProviderName = function (_widgetData$selectedP, _workspace$workspaceD) {
|
|
34144
34159
|
if (widgetData !== null && widgetData !== void 0 && (_widgetData$selectedP = widgetData.selectedProviders) !== null && _widgetData$selectedP !== void 0 && _widgetData$selectedP[providerType]) {
|
|
34145
34160
|
return widgetData.selectedProviders[providerType];
|