@trops/dash-core 0.1.378 → 0.1.380
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 +31 -7
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +31 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -2530,6 +2530,20 @@ var ThemeWrapper = function ThemeWrapper(_ref) {
|
|
|
2530
2530
|
});
|
|
2531
2531
|
};
|
|
2532
2532
|
|
|
2533
|
+
function AppContextBroadcast(_ref) {
|
|
2534
|
+
var ctx = _ref.ctx;
|
|
2535
|
+
useEffect(function () {
|
|
2536
|
+
if (ctx && typeof window !== "undefined") {
|
|
2537
|
+
window.__dashAppContext = ctx;
|
|
2538
|
+
window.dispatchEvent(new Event("dash:app-context-changed"));
|
|
2539
|
+
}
|
|
2540
|
+
}, [ctx]);
|
|
2541
|
+
return null;
|
|
2542
|
+
}
|
|
2543
|
+
|
|
2544
|
+
// TODO
|
|
2545
|
+
// make theme files or have a Theme context which we can populate with a plugin or config
|
|
2546
|
+
// color theme (coming soon)
|
|
2533
2547
|
var debugStyles = {
|
|
2534
2548
|
workspace: {
|
|
2535
2549
|
classes: "bg-gray-800 border border-red-900 rounded p-4"
|
|
@@ -2547,11 +2561,11 @@ var debugStyles = {
|
|
|
2547
2561
|
classes: "border border-blue-700 bg-gray-800 rounded p-4"
|
|
2548
2562
|
}
|
|
2549
2563
|
};
|
|
2550
|
-
var AppWrapper = function AppWrapper(
|
|
2551
|
-
var children =
|
|
2552
|
-
|
|
2553
|
-
credentials =
|
|
2554
|
-
dashApi =
|
|
2564
|
+
var AppWrapper = function AppWrapper(_ref2) {
|
|
2565
|
+
var children = _ref2.children,
|
|
2566
|
+
_ref2$credentials = _ref2.credentials,
|
|
2567
|
+
credentials = _ref2$credentials === void 0 ? null : _ref2$credentials,
|
|
2568
|
+
dashApi = _ref2.dashApi;
|
|
2555
2569
|
var _useState = useState(credentials),
|
|
2556
2570
|
_useState2 = _slicedToArray(_useState, 2),
|
|
2557
2571
|
creds = _useState2[0],
|
|
@@ -2785,9 +2799,11 @@ var AppWrapper = function AppWrapper(_ref) {
|
|
|
2785
2799
|
return null;
|
|
2786
2800
|
}
|
|
2787
2801
|
}, [debugMode, creds, credentials, searchClient, dashApi, settings, providers, isLoadingProviders, loadProviders, changeSearchClient, changeCreds, changeDebugMode, changeSettings, changeApplicationTheme, openDataDirectory]);
|
|
2788
|
-
return /*#__PURE__*/
|
|
2802
|
+
return /*#__PURE__*/jsxs(AppContext.Provider, {
|
|
2789
2803
|
value: contextValue,
|
|
2790
|
-
children:
|
|
2804
|
+
children: [/*#__PURE__*/jsx(AppContextBroadcast, {
|
|
2805
|
+
ctx: contextValue
|
|
2806
|
+
}), children]
|
|
2791
2807
|
});
|
|
2792
2808
|
};
|
|
2793
2809
|
|
|
@@ -25670,6 +25686,7 @@ var LayoutGridContainer = /*#__PURE__*/memo(function (_ref3) {
|
|
|
25670
25686
|
workspaceId: workspace === null || workspace === void 0 ? void 0 : workspace.id,
|
|
25671
25687
|
widgetComponentName: cellComponent.component,
|
|
25672
25688
|
widgetId: cellComponent.id,
|
|
25689
|
+
selectedProviders: cellComponent.selectedProviders || null,
|
|
25673
25690
|
sourcePackage: ((_ComponentManager$con = ComponentManager.config(cellComponent.component, cellComponent)) === null || _ComponentManager$con === void 0 ? void 0 : _ComponentManager$con._sourcePackage) || null
|
|
25674
25691
|
}
|
|
25675
25692
|
}));
|
|
@@ -56577,6 +56594,13 @@ var MessageBubble = function MessageBubble(_ref2) {
|
|
|
56577
56594
|
textParts.push(content);
|
|
56578
56595
|
}
|
|
56579
56596
|
var _text = textParts.join("");
|
|
56597
|
+
|
|
56598
|
+
// Hide empty assistant bubbles (e.g., tool-use-only responses from
|
|
56599
|
+
// the CLI backend where content is [] and tool calls are tracked
|
|
56600
|
+
// separately). Nothing useful to show the user.
|
|
56601
|
+
if (!isStreaming && !_text && toolBlocks.length === 0) {
|
|
56602
|
+
return null;
|
|
56603
|
+
}
|
|
56580
56604
|
return /*#__PURE__*/jsxs("div", {
|
|
56581
56605
|
className: "mb-4",
|
|
56582
56606
|
children: [/*#__PURE__*/jsx("div", {
|