@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.esm.js
CHANGED
|
@@ -33114,7 +33114,12 @@ var useWidgetProviders = function useWidgetProviders() {
|
|
|
33114
33114
|
var workspace = useContext(WorkspaceContext);
|
|
33115
33115
|
var widgetContext = useContext(WidgetContext);
|
|
33116
33116
|
var widgetData = widgetContext === null || widgetContext === void 0 ? void 0 : widgetContext.widgetData;
|
|
33117
|
-
|
|
33117
|
+
// Identity-key fallback chain matches the bulk-save canonical
|
|
33118
|
+
// chain (`item.uuidString || item.uuid || item.id`). Without the
|
|
33119
|
+
// fallback, widgets that lack `uuidString` (older / AI-built
|
|
33120
|
+
// instances) silently miss workspace-level bindings written by
|
|
33121
|
+
// the dashboard config bulk edit modal.
|
|
33122
|
+
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);
|
|
33118
33123
|
|
|
33119
33124
|
// Get all provider type declarations from the widget config
|
|
33120
33125
|
var providerDeclarations = (widgetData === null || widgetData === void 0 ? void 0 : widgetData.providers) || [];
|
|
@@ -33263,7 +33268,12 @@ var useMcpProvider = function useMcpProvider(providerType) {
|
|
|
33263
33268
|
// 4. null — will render MissingProviderPrompt
|
|
33264
33269
|
// Existing widgets/workspaces retain their explicit bindings — the
|
|
33265
33270
|
// default layer only activates for widgets with no explicit binding.
|
|
33266
|
-
|
|
33271
|
+
// Identity-key fallback chain matches the bulk-save canonical
|
|
33272
|
+
// chain (`item.uuidString || item.uuid || item.id`). Without the
|
|
33273
|
+
// fallback, widgets that lack `uuidString` (older / AI-built
|
|
33274
|
+
// instances) silently miss workspace-level bindings written by
|
|
33275
|
+
// the dashboard config bulk edit modal.
|
|
33276
|
+
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);
|
|
33267
33277
|
var selectedProviderName = function (_widgetData$selectedP, _workspace$workspaceD) {
|
|
33268
33278
|
// Widget-level: stored directly on the layout item
|
|
33269
33279
|
if (widgetData !== null && widgetData !== void 0 && (_widgetData$selectedP = widgetData.selectedProviders) !== null && _widgetData$selectedP !== void 0 && _widgetData$selectedP[providerType]) {
|
|
@@ -34121,7 +34131,12 @@ var useWebSocketProvider = function useWebSocketProvider(providerType) {
|
|
|
34121
34131
|
// 3. App default — provider of matching type flagged
|
|
34122
34132
|
// isDefaultForType in app.providers
|
|
34123
34133
|
// 4. null — widget renders MissingProviderPrompt
|
|
34124
|
-
|
|
34134
|
+
// Identity-key fallback chain matches the bulk-save canonical
|
|
34135
|
+
// chain (`item.uuidString || item.uuid || item.id`). Without the
|
|
34136
|
+
// fallback, widgets that lack `uuidString` (older / AI-built
|
|
34137
|
+
// instances) silently miss workspace-level bindings written by
|
|
34138
|
+
// the dashboard config bulk edit modal.
|
|
34139
|
+
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);
|
|
34125
34140
|
var selectedProviderName = function (_widgetData$selectedP, _workspace$workspaceD) {
|
|
34126
34141
|
if (widgetData !== null && widgetData !== void 0 && (_widgetData$selectedP = widgetData.selectedProviders) !== null && _widgetData$selectedP !== void 0 && _widgetData$selectedP[providerType]) {
|
|
34127
34142
|
return widgetData.selectedProviders[providerType];
|