@trops/dash-core 0.1.315 → 0.1.316
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/electron/index.js +35559 -35485
- package/dist/electron/index.js.map +1 -1
- package/dist/index.esm.js +1365 -490
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1403 -530
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/dist/index.esm.js
CHANGED
|
@@ -30,9 +30,10 @@ import { createPortal } from 'react-dom';
|
|
|
30
30
|
import algoliasearch from 'algoliasearch';
|
|
31
31
|
import { InstantSearch, Hits } from 'react-instantsearch-hooks-web';
|
|
32
32
|
import { Link } from 'react-router-dom';
|
|
33
|
+
import { marked } from 'marked';
|
|
33
34
|
|
|
34
|
-
function ownKeys$
|
|
35
|
-
function _objectSpread$
|
|
35
|
+
function ownKeys$Q(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
36
|
+
function _objectSpread$Q(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$Q(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$Q(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
36
37
|
var event = {
|
|
37
38
|
list: new Map(),
|
|
38
39
|
// Map(1) { '<widget-UUID>' => { 'CustomSearchbar[10].searchQueryChanged': [] } }
|
|
@@ -94,7 +95,7 @@ var event = {
|
|
|
94
95
|
uuid: subscriber["uuid"]
|
|
95
96
|
};
|
|
96
97
|
if ("action" in subscriber && subscriber.action !== undefined) {
|
|
97
|
-
subscriber["action"](_objectSpread$
|
|
98
|
+
subscriber["action"](_objectSpread$Q({}, objectToSend));
|
|
98
99
|
}
|
|
99
100
|
});
|
|
100
101
|
}
|
|
@@ -2628,8 +2629,8 @@ var DashboardWrapper = function DashboardWrapper(_ref) {
|
|
|
2628
2629
|
});
|
|
2629
2630
|
};
|
|
2630
2631
|
|
|
2631
|
-
function ownKeys$
|
|
2632
|
-
function _objectSpread$
|
|
2632
|
+
function ownKeys$P(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2633
|
+
function _objectSpread$P(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$P(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$P(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2633
2634
|
var DashboardThemeProvider = function DashboardThemeProvider(_ref) {
|
|
2634
2635
|
var themeKey = _ref.themeKey,
|
|
2635
2636
|
children = _ref.children;
|
|
@@ -2641,7 +2642,7 @@ var DashboardThemeProvider = function DashboardThemeProvider(_ref) {
|
|
|
2641
2642
|
var dashboardTheme = themes[themeKey];
|
|
2642
2643
|
var themeValue = dashboardTheme ? dashboardTheme[themeVariant] || null : null;
|
|
2643
2644
|
if (!themeValue) return null;
|
|
2644
|
-
return _objectSpread$
|
|
2645
|
+
return _objectSpread$P(_objectSpread$P({}, parentContext), {}, {
|
|
2645
2646
|
currentTheme: themeValue,
|
|
2646
2647
|
currentThemeKey: themeKey,
|
|
2647
2648
|
theme: themeValue,
|
|
@@ -2659,8 +2660,8 @@ var DashboardThemeProvider = function DashboardThemeProvider(_ref) {
|
|
|
2659
2660
|
});
|
|
2660
2661
|
};
|
|
2661
2662
|
|
|
2662
|
-
function ownKeys$
|
|
2663
|
-
function _objectSpread$
|
|
2663
|
+
function ownKeys$O(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2664
|
+
function _objectSpread$O(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$O(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$O(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2664
2665
|
var AppThemeScope = function AppThemeScope(_ref) {
|
|
2665
2666
|
var children = _ref.children;
|
|
2666
2667
|
var ctx = useContext(ThemeContext);
|
|
@@ -2668,7 +2669,7 @@ var AppThemeScope = function AppThemeScope(_ref) {
|
|
|
2668
2669
|
children: children
|
|
2669
2670
|
});
|
|
2670
2671
|
return /*#__PURE__*/jsx(ThemeContext.Provider, {
|
|
2671
|
-
value: _objectSpread$
|
|
2672
|
+
value: _objectSpread$O(_objectSpread$O({}, ctx), {}, {
|
|
2672
2673
|
currentTheme: ctx.appTheme,
|
|
2673
2674
|
currentThemeKey: ctx.appThemeKey,
|
|
2674
2675
|
theme: ctx.appTheme,
|
|
@@ -2780,11 +2781,11 @@ var LayoutContainer = function LayoutContainer(_ref) {
|
|
|
2780
2781
|
});
|
|
2781
2782
|
};
|
|
2782
2783
|
|
|
2783
|
-
function ownKeys$
|
|
2784
|
-
function _objectSpread$
|
|
2785
|
-
function _createForOfIteratorHelper$
|
|
2786
|
-
function _unsupportedIterableToArray$
|
|
2787
|
-
function _arrayLikeToArray$
|
|
2784
|
+
function ownKeys$N(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2785
|
+
function _objectSpread$N(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$N(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$N(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2786
|
+
function _createForOfIteratorHelper$n(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$n(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
2787
|
+
function _unsupportedIterableToArray$n(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$n(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$n(r, a) : void 0; } }
|
|
2788
|
+
function _arrayLikeToArray$n(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
2788
2789
|
/**
|
|
2789
2790
|
* Layout template definitions for the dashboard template picker.
|
|
2790
2791
|
*
|
|
@@ -3058,12 +3059,12 @@ function createLayoutFromTemplate(template) {
|
|
|
3058
3059
|
cols: template.cols,
|
|
3059
3060
|
gap: "gap-2"
|
|
3060
3061
|
};
|
|
3061
|
-
var _iterator = _createForOfIteratorHelper$
|
|
3062
|
+
var _iterator = _createForOfIteratorHelper$n(template.cells),
|
|
3062
3063
|
_step;
|
|
3063
3064
|
try {
|
|
3064
3065
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3065
3066
|
var cell = _step.value;
|
|
3066
|
-
grid[cell.key] = _objectSpread$
|
|
3067
|
+
grid[cell.key] = _objectSpread$N({
|
|
3067
3068
|
component: null,
|
|
3068
3069
|
hide: cell.hide || false
|
|
3069
3070
|
}, cell.span ? {
|
|
@@ -3989,11 +3990,11 @@ var RegistryAuthModal = function RegistryAuthModal(_ref) {
|
|
|
3989
3990
|
});
|
|
3990
3991
|
};
|
|
3991
3992
|
|
|
3992
|
-
function _createForOfIteratorHelper$
|
|
3993
|
-
function _unsupportedIterableToArray$
|
|
3994
|
-
function _arrayLikeToArray$
|
|
3995
|
-
function ownKeys$
|
|
3996
|
-
function _objectSpread$
|
|
3993
|
+
function _createForOfIteratorHelper$m(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$m(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
3994
|
+
function _unsupportedIterableToArray$m(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$m(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$m(r, a) : void 0; } }
|
|
3995
|
+
function _arrayLikeToArray$m(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
3996
|
+
function ownKeys$M(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3997
|
+
function _objectSpread$M(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$M(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$M(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3997
3998
|
var RegistryDashboardDetail = function RegistryDashboardDetail(_ref) {
|
|
3998
3999
|
var dashboardPackage = _ref.dashboardPackage,
|
|
3999
4000
|
appId = _ref.appId,
|
|
@@ -4109,7 +4110,7 @@ var RegistryDashboardDetail = function RegistryDashboardDetail(_ref) {
|
|
|
4109
4110
|
setProgressWidgets(function (prev) {
|
|
4110
4111
|
var next = _toConsumableArray(prev);
|
|
4111
4112
|
if (data.index >= 0 && data.index < next.length) {
|
|
4112
|
-
next[data.index] = _objectSpread$
|
|
4113
|
+
next[data.index] = _objectSpread$M(_objectSpread$M({}, next[data.index]), {}, {
|
|
4113
4114
|
status: data.status,
|
|
4114
4115
|
error: data.error || null
|
|
4115
4116
|
});
|
|
@@ -4205,7 +4206,7 @@ var RegistryDashboardDetail = function RegistryDashboardDetail(_ref) {
|
|
|
4205
4206
|
var raw = preview === null || preview === void 0 ? void 0 : preview.compatibility;
|
|
4206
4207
|
if (!raw) return raw;
|
|
4207
4208
|
var cMap = ComponentManager.componentMap();
|
|
4208
|
-
var augWidgets = _objectSpread$
|
|
4209
|
+
var augWidgets = _objectSpread$M({}, raw.widgets);
|
|
4209
4210
|
var fixedCount = 0;
|
|
4210
4211
|
var _loop = function _loop() {
|
|
4211
4212
|
var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
|
|
@@ -4232,7 +4233,7 @@ var RegistryDashboardDetail = function RegistryDashboardDetail(_ref) {
|
|
|
4232
4233
|
toInstall = 0,
|
|
4233
4234
|
unavailable = 0,
|
|
4234
4235
|
hasUnavailableRequired = false;
|
|
4235
|
-
var _iterator = _createForOfIteratorHelper$
|
|
4236
|
+
var _iterator = _createForOfIteratorHelper$m(widgetDeps),
|
|
4236
4237
|
_step;
|
|
4237
4238
|
try {
|
|
4238
4239
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -4681,8 +4682,8 @@ var DiscoverDashboardsDetail = function DiscoverDashboardsDetail(_ref) {
|
|
|
4681
4682
|
});
|
|
4682
4683
|
};
|
|
4683
4684
|
|
|
4684
|
-
function ownKeys$
|
|
4685
|
-
function _objectSpread$
|
|
4685
|
+
function ownKeys$L(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4686
|
+
function _objectSpread$L(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$L(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$L(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4686
4687
|
var LayoutManagerModal = function LayoutManagerModal(_ref) {
|
|
4687
4688
|
var open = _ref.open,
|
|
4688
4689
|
setIsOpen = _ref.setIsOpen,
|
|
@@ -4927,7 +4928,7 @@ var LayoutManagerModal = function LayoutManagerModal(_ref) {
|
|
|
4927
4928
|
}
|
|
4928
4929
|
return _context2.abrupt("return");
|
|
4929
4930
|
case 6:
|
|
4930
|
-
updatedWorkspace = _objectSpread$
|
|
4931
|
+
updatedWorkspace = _objectSpread$L(_objectSpread$L({}, importedWorkspace), {}, {
|
|
4931
4932
|
name: dashboardName.trim(),
|
|
4932
4933
|
menuId: menuId,
|
|
4933
4934
|
themeKey: selectedThemeKey
|
|
@@ -5900,9 +5901,9 @@ function cleanIpcError(message) {
|
|
|
5900
5901
|
return match ? match[1] : message;
|
|
5901
5902
|
}
|
|
5902
5903
|
|
|
5903
|
-
function _createForOfIteratorHelper$
|
|
5904
|
-
function _unsupportedIterableToArray$
|
|
5905
|
-
function _arrayLikeToArray$
|
|
5904
|
+
function _createForOfIteratorHelper$l(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$l(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
5905
|
+
function _unsupportedIterableToArray$l(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$l(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$l(r, a) : void 0; } }
|
|
5906
|
+
function _arrayLikeToArray$l(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5906
5907
|
|
|
5907
5908
|
/**
|
|
5908
5909
|
* useRegistrySearch — shared hook for browsing and installing registry packages.
|
|
@@ -6013,13 +6014,13 @@ var useRegistrySearch = function useRegistrySearch() {
|
|
|
6013
6014
|
return c.toLowerCase();
|
|
6014
6015
|
}));
|
|
6015
6016
|
widgets = [];
|
|
6016
|
-
_iterator = _createForOfIteratorHelper$
|
|
6017
|
+
_iterator = _createForOfIteratorHelper$l(pkgs);
|
|
6017
6018
|
try {
|
|
6018
6019
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6019
6020
|
pkg = _step.value;
|
|
6020
6021
|
// Compute missing APIs for the entire package
|
|
6021
6022
|
allApiProviders = [];
|
|
6022
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
6023
|
+
_iterator2 = _createForOfIteratorHelper$l(pkg.providers || []);
|
|
6023
6024
|
try {
|
|
6024
6025
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
6025
6026
|
p = _step2.value;
|
|
@@ -6032,11 +6033,11 @@ var useRegistrySearch = function useRegistrySearch() {
|
|
|
6032
6033
|
} finally {
|
|
6033
6034
|
_iterator2.f();
|
|
6034
6035
|
}
|
|
6035
|
-
_iterator3 = _createForOfIteratorHelper$
|
|
6036
|
+
_iterator3 = _createForOfIteratorHelper$l(pkg.widgets || []);
|
|
6036
6037
|
try {
|
|
6037
6038
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
6038
6039
|
w = _step3.value;
|
|
6039
|
-
_iterator5 = _createForOfIteratorHelper$
|
|
6040
|
+
_iterator5 = _createForOfIteratorHelper$l(w.providers || []);
|
|
6040
6041
|
try {
|
|
6041
6042
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
6042
6043
|
_p = _step5.value;
|
|
@@ -6058,7 +6059,7 @@ var useRegistrySearch = function useRegistrySearch() {
|
|
|
6058
6059
|
missingApis = _toConsumableArray(new Set(allApiProviders)).filter(function (api) {
|
|
6059
6060
|
return !capSet.has(api.toLowerCase());
|
|
6060
6061
|
});
|
|
6061
|
-
_iterator4 = _createForOfIteratorHelper$
|
|
6062
|
+
_iterator4 = _createForOfIteratorHelper$l(pkg.widgets || []);
|
|
6062
6063
|
try {
|
|
6063
6064
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
6064
6065
|
widget = _step4.value;
|
|
@@ -6679,11 +6680,11 @@ function applyFilters(items, filters, mode) {
|
|
|
6679
6680
|
});
|
|
6680
6681
|
}
|
|
6681
6682
|
|
|
6682
|
-
function _createForOfIteratorHelper$
|
|
6683
|
-
function _unsupportedIterableToArray$
|
|
6684
|
-
function _arrayLikeToArray$
|
|
6685
|
-
function ownKeys$
|
|
6686
|
-
function _objectSpread$
|
|
6683
|
+
function _createForOfIteratorHelper$k(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$k(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
6684
|
+
function _unsupportedIterableToArray$k(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$k(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$k(r, a) : void 0; } }
|
|
6685
|
+
function _arrayLikeToArray$k(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
6686
|
+
function ownKeys$K(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6687
|
+
function _objectSpread$K(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$K(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$K(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6687
6688
|
var WizardCustomizeStep = function WizardCustomizeStep(_ref) {
|
|
6688
6689
|
var _state$selectedDashbo, _state$selectedDashbo2;
|
|
6689
6690
|
var state = _ref.state,
|
|
@@ -6853,7 +6854,7 @@ var WizardCustomizeStep = function WizardCustomizeStep(_ref) {
|
|
|
6853
6854
|
_context2.next = 7;
|
|
6854
6855
|
break;
|
|
6855
6856
|
}
|
|
6856
|
-
updatedWorkspace = _objectSpread$
|
|
6857
|
+
updatedWorkspace = _objectSpread$K(_objectSpread$K({}, installResult.workspace), {}, {
|
|
6857
6858
|
name: name.trim(),
|
|
6858
6859
|
menuId: menuId || 1,
|
|
6859
6860
|
themeKey: theme
|
|
@@ -6905,7 +6906,7 @@ var WizardCustomizeStep = function WizardCustomizeStep(_ref) {
|
|
|
6905
6906
|
installedNames = new Set(installedList.map(function (w) {
|
|
6906
6907
|
return w.name;
|
|
6907
6908
|
}));
|
|
6908
|
-
_iterator = _createForOfIteratorHelper$
|
|
6909
|
+
_iterator = _createForOfIteratorHelper$k(state.selectedWidgets);
|
|
6909
6910
|
_context2.prev = 13;
|
|
6910
6911
|
_iterator.s();
|
|
6911
6912
|
case 14:
|
|
@@ -7608,8 +7609,8 @@ var WizardCustomizeStep = function WizardCustomizeStep(_ref) {
|
|
|
7608
7609
|
});
|
|
7609
7610
|
};
|
|
7610
7611
|
|
|
7611
|
-
function ownKeys$
|
|
7612
|
-
function _objectSpread$
|
|
7612
|
+
function ownKeys$J(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7613
|
+
function _objectSpread$J(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$J(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$J(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7613
7614
|
var TOTAL_STEPS = 2; // Steps 0-1: Discover, Customize
|
|
7614
7615
|
|
|
7615
7616
|
var initialState = {
|
|
@@ -7635,20 +7636,20 @@ var initialState = {
|
|
|
7635
7636
|
function wizardReducer(state, action) {
|
|
7636
7637
|
switch (action.type) {
|
|
7637
7638
|
case "SET_STEP":
|
|
7638
|
-
return _objectSpread$
|
|
7639
|
+
return _objectSpread$J(_objectSpread$J({}, state), {}, {
|
|
7639
7640
|
step: action.payload
|
|
7640
7641
|
});
|
|
7641
7642
|
case "SET_FILTERS":
|
|
7642
|
-
return _objectSpread$
|
|
7643
|
-
filters: _objectSpread$
|
|
7643
|
+
return _objectSpread$J(_objectSpread$J({}, state), {}, {
|
|
7644
|
+
filters: _objectSpread$J(_objectSpread$J({}, state.filters), action.payload)
|
|
7644
7645
|
});
|
|
7645
7646
|
case "TOGGLE_FILTER_CATEGORY":
|
|
7646
7647
|
{
|
|
7647
7648
|
var categories = state.filters.categories.includes(action.payload) ? state.filters.categories.filter(function (c) {
|
|
7648
7649
|
return c !== action.payload;
|
|
7649
7650
|
}) : [].concat(_toConsumableArray(state.filters.categories), [action.payload]);
|
|
7650
|
-
return _objectSpread$
|
|
7651
|
-
filters: _objectSpread$
|
|
7651
|
+
return _objectSpread$J(_objectSpread$J({}, state), {}, {
|
|
7652
|
+
filters: _objectSpread$J(_objectSpread$J({}, state.filters), {}, {
|
|
7652
7653
|
categories: categories
|
|
7653
7654
|
})
|
|
7654
7655
|
});
|
|
@@ -7658,15 +7659,15 @@ function wizardReducer(state, action) {
|
|
|
7658
7659
|
var providers = state.filters.providers.includes(action.payload) ? state.filters.providers.filter(function (p) {
|
|
7659
7660
|
return p !== action.payload;
|
|
7660
7661
|
}) : [].concat(_toConsumableArray(state.filters.providers), [action.payload]);
|
|
7661
|
-
return _objectSpread$
|
|
7662
|
-
filters: _objectSpread$
|
|
7662
|
+
return _objectSpread$J(_objectSpread$J({}, state), {}, {
|
|
7663
|
+
filters: _objectSpread$J(_objectSpread$J({}, state.filters), {}, {
|
|
7663
7664
|
providers: providers
|
|
7664
7665
|
})
|
|
7665
7666
|
});
|
|
7666
7667
|
}
|
|
7667
7668
|
case "SET_SEARCH_QUERY":
|
|
7668
|
-
return _objectSpread$
|
|
7669
|
-
filters: _objectSpread$
|
|
7669
|
+
return _objectSpread$J(_objectSpread$J({}, state), {}, {
|
|
7670
|
+
filters: _objectSpread$J(_objectSpread$J({}, state.filters), {}, {
|
|
7670
7671
|
query: action.payload
|
|
7671
7672
|
})
|
|
7672
7673
|
});
|
|
@@ -7676,7 +7677,7 @@ function wizardReducer(state, action) {
|
|
|
7676
7677
|
var widgetOrder = action.payload.map(function (w) {
|
|
7677
7678
|
return w.name || w.key;
|
|
7678
7679
|
});
|
|
7679
|
-
return _objectSpread$
|
|
7680
|
+
return _objectSpread$J(_objectSpread$J({}, state), {}, {
|
|
7680
7681
|
selectedWidgets: action.payload,
|
|
7681
7682
|
layout: {
|
|
7682
7683
|
templateKey: templateKey,
|
|
@@ -7696,7 +7697,7 @@ function wizardReducer(state, action) {
|
|
|
7696
7697
|
var toggleWidgetOrder = selectedWidgets.map(function (w) {
|
|
7697
7698
|
return w.name || w.key;
|
|
7698
7699
|
});
|
|
7699
|
-
return _objectSpread$
|
|
7700
|
+
return _objectSpread$J(_objectSpread$J({}, state), {}, {
|
|
7700
7701
|
selectedWidgets: selectedWidgets,
|
|
7701
7702
|
layout: {
|
|
7702
7703
|
templateKey: toggleTemplateKey,
|
|
@@ -7705,29 +7706,29 @@ function wizardReducer(state, action) {
|
|
|
7705
7706
|
});
|
|
7706
7707
|
}
|
|
7707
7708
|
case "SET_SELECTED_DASHBOARD":
|
|
7708
|
-
return _objectSpread$
|
|
7709
|
+
return _objectSpread$J(_objectSpread$J({}, state), {}, {
|
|
7709
7710
|
selectedDashboard: action.payload
|
|
7710
7711
|
});
|
|
7711
7712
|
case "SET_PATH":
|
|
7712
|
-
return _objectSpread$
|
|
7713
|
+
return _objectSpread$J(_objectSpread$J({}, state), {}, {
|
|
7713
7714
|
path: action.payload
|
|
7714
7715
|
});
|
|
7715
7716
|
case "SET_LAYOUT":
|
|
7716
|
-
return _objectSpread$
|
|
7717
|
+
return _objectSpread$J(_objectSpread$J({}, state), {}, {
|
|
7717
7718
|
layout: action.payload
|
|
7718
7719
|
});
|
|
7719
7720
|
case "REORDER_WIDGETS":
|
|
7720
|
-
return _objectSpread$
|
|
7721
|
-
layout: _objectSpread$
|
|
7721
|
+
return _objectSpread$J(_objectSpread$J({}, state), {}, {
|
|
7722
|
+
layout: _objectSpread$J(_objectSpread$J({}, state.layout), {}, {
|
|
7722
7723
|
widgetOrder: action.payload
|
|
7723
7724
|
})
|
|
7724
7725
|
});
|
|
7725
7726
|
case "SET_CUSTOMIZATION":
|
|
7726
|
-
return _objectSpread$
|
|
7727
|
-
customization: _objectSpread$
|
|
7727
|
+
return _objectSpread$J(_objectSpread$J({}, state), {}, {
|
|
7728
|
+
customization: _objectSpread$J(_objectSpread$J({}, state.customization), action.payload)
|
|
7728
7729
|
});
|
|
7729
7730
|
case "RESET":
|
|
7730
|
-
return _objectSpread$
|
|
7731
|
+
return _objectSpread$J({}, initialState);
|
|
7731
7732
|
default:
|
|
7732
7733
|
return state;
|
|
7733
7734
|
}
|
|
@@ -12379,8 +12380,8 @@ var deepEqual = function deepEqual(a, b, opts) {
|
|
|
12379
12380
|
|
|
12380
12381
|
var deepEqual$1 = /*@__PURE__*/getDefaultExportFromCjs(deepEqual);
|
|
12381
12382
|
|
|
12382
|
-
function ownKeys$
|
|
12383
|
-
function _objectSpread$
|
|
12383
|
+
function ownKeys$I(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12384
|
+
function _objectSpread$I(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$I(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$I(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12384
12385
|
var PanelEditItem = function PanelEditItem(_ref) {
|
|
12385
12386
|
var _ComponentManager$get;
|
|
12386
12387
|
var workspace = _ref.workspace,
|
|
@@ -12440,7 +12441,7 @@ var PanelEditItem = function PanelEditItem(_ref) {
|
|
|
12440
12441
|
var uuid = newItem.uuid || newItem.uuidString;
|
|
12441
12442
|
if (uuid) {
|
|
12442
12443
|
workspaceTemp.selectedProviders = workspaceTemp.selectedProviders || {};
|
|
12443
|
-
workspaceTemp.selectedProviders[uuid] = _objectSpread$
|
|
12444
|
+
workspaceTemp.selectedProviders[uuid] = _objectSpread$I(_objectSpread$I({}, workspaceTemp.selectedProviders[uuid] || {}), {}, _defineProperty({}, providerType, providerId));
|
|
12444
12445
|
}
|
|
12445
12446
|
onUpdate(newItem, workspaceTemp);
|
|
12446
12447
|
forceUpdate();
|
|
@@ -12569,7 +12570,7 @@ var PanelEditItem = function PanelEditItem(_ref) {
|
|
|
12569
12570
|
var _ref5 = _slicedToArray(_ref4, 2),
|
|
12570
12571
|
name = _ref5[0],
|
|
12571
12572
|
p = _ref5[1];
|
|
12572
|
-
return _objectSpread$
|
|
12573
|
+
return _objectSpread$I({
|
|
12573
12574
|
name: name
|
|
12574
12575
|
}, p);
|
|
12575
12576
|
});
|
|
@@ -12611,11 +12612,11 @@ var PanelEditItem = function PanelEditItem(_ref) {
|
|
|
12611
12612
|
};
|
|
12612
12613
|
|
|
12613
12614
|
var _excluded$5 = ["rows", "cols"];
|
|
12614
|
-
function _createForOfIteratorHelper$
|
|
12615
|
-
function _unsupportedIterableToArray$
|
|
12616
|
-
function _arrayLikeToArray$
|
|
12617
|
-
function ownKeys$
|
|
12618
|
-
function _objectSpread$
|
|
12615
|
+
function _createForOfIteratorHelper$j(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$j(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
12616
|
+
function _unsupportedIterableToArray$j(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$j(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$j(r, a) : void 0; } }
|
|
12617
|
+
function _arrayLikeToArray$j(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
12618
|
+
function ownKeys$H(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12619
|
+
function _objectSpread$H(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$H(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$H(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12619
12620
|
var defaultGrid = {
|
|
12620
12621
|
rows: 1,
|
|
12621
12622
|
cols: 1,
|
|
@@ -12636,7 +12637,7 @@ function GridEditor(_ref) {
|
|
|
12636
12637
|
setGrid = _useState2[1];
|
|
12637
12638
|
var addRow = function addRow() {
|
|
12638
12639
|
var newRow = grid.rows;
|
|
12639
|
-
var newGrid = _objectSpread$
|
|
12640
|
+
var newGrid = _objectSpread$H(_objectSpread$H({}, grid), {}, {
|
|
12640
12641
|
rows: grid.rows + 1
|
|
12641
12642
|
});
|
|
12642
12643
|
for (var col = 0; col < grid.cols; col++) {
|
|
@@ -12651,7 +12652,7 @@ function GridEditor(_ref) {
|
|
|
12651
12652
|
};
|
|
12652
12653
|
var addColumn = function addColumn() {
|
|
12653
12654
|
var newCol = grid.cols;
|
|
12654
|
-
var newGrid = _objectSpread$
|
|
12655
|
+
var newGrid = _objectSpread$H(_objectSpread$H({}, grid), {}, {
|
|
12655
12656
|
cols: grid.cols + 1
|
|
12656
12657
|
});
|
|
12657
12658
|
for (var row = 0; row < grid.rows; row++) {
|
|
@@ -12684,8 +12685,8 @@ function GridEditor(_ref) {
|
|
|
12684
12685
|
});
|
|
12685
12686
|
}
|
|
12686
12687
|
if (grid[nextKey]) {
|
|
12687
|
-
var newGrid = _objectSpread$
|
|
12688
|
-
newGrid[currentKey] = _objectSpread$
|
|
12688
|
+
var newGrid = _objectSpread$H({}, grid);
|
|
12689
|
+
newGrid[currentKey] = _objectSpread$H(_objectSpread$H({}, newGrid[currentKey]), {}, {
|
|
12689
12690
|
colSpan: newGrid[currentKey].colSpan + 1
|
|
12690
12691
|
});
|
|
12691
12692
|
delete newGrid[nextKey];
|
|
@@ -12698,8 +12699,8 @@ function GridEditor(_ref) {
|
|
|
12698
12699
|
var currentKey = "".concat(row, ".").concat(col);
|
|
12699
12700
|
var belowKey = "".concat(row + 1, ".").concat(col);
|
|
12700
12701
|
if (grid[belowKey]) {
|
|
12701
|
-
var newGrid = _objectSpread$
|
|
12702
|
-
newGrid[currentKey] = _objectSpread$
|
|
12702
|
+
var newGrid = _objectSpread$H({}, grid);
|
|
12703
|
+
newGrid[currentKey] = _objectSpread$H(_objectSpread$H({}, newGrid[currentKey]), {}, {
|
|
12703
12704
|
rowSpan: newGrid[currentKey].rowSpan + 1
|
|
12704
12705
|
});
|
|
12705
12706
|
delete newGrid[belowKey];
|
|
@@ -12716,7 +12717,7 @@ function GridEditor(_ref) {
|
|
|
12716
12717
|
var splitCell = function splitCell(row, col) {
|
|
12717
12718
|
var key = "".concat(row, ".").concat(col);
|
|
12718
12719
|
var cell = grid[key];
|
|
12719
|
-
var newGrid = _objectSpread$
|
|
12720
|
+
var newGrid = _objectSpread$H({}, grid);
|
|
12720
12721
|
|
|
12721
12722
|
// we have to check the colspan, and since the colspan is greater than 1
|
|
12722
12723
|
// Only handle horizontal split if colSpan > 1
|
|
@@ -12732,13 +12733,13 @@ function GridEditor(_ref) {
|
|
|
12732
12733
|
var oldKey = "".concat(row, ".").concat(c);
|
|
12733
12734
|
var newKey = "".concat(row, ".").concat(c + 1);
|
|
12734
12735
|
if (newGrid[oldKey]) {
|
|
12735
|
-
newGrid[newKey] = _objectSpread$
|
|
12736
|
+
newGrid[newKey] = _objectSpread$H({}, newGrid[oldKey]);
|
|
12736
12737
|
delete newGrid[oldKey];
|
|
12737
12738
|
}
|
|
12738
12739
|
}
|
|
12739
12740
|
|
|
12740
12741
|
// Update the original cell's colSpan
|
|
12741
|
-
newGrid[key] = _objectSpread$
|
|
12742
|
+
newGrid[key] = _objectSpread$H(_objectSpread$H({}, cell), {}, {
|
|
12742
12743
|
colSpan: cell.colSpan - 1
|
|
12743
12744
|
});
|
|
12744
12745
|
|
|
@@ -12750,7 +12751,7 @@ function GridEditor(_ref) {
|
|
|
12750
12751
|
};
|
|
12751
12752
|
}
|
|
12752
12753
|
if (cell.rowSpan > 1) {
|
|
12753
|
-
newGrid[key] = _objectSpread$
|
|
12754
|
+
newGrid[key] = _objectSpread$H(_objectSpread$H({}, newGrid[key]), {}, {
|
|
12754
12755
|
rowSpan: cell.rowSpan - 1
|
|
12755
12756
|
});
|
|
12756
12757
|
newGrid["".concat(row + 1, ".").concat(col)] = {
|
|
@@ -12766,7 +12767,7 @@ function GridEditor(_ref) {
|
|
|
12766
12767
|
function sortObjectByKeys(obj) {
|
|
12767
12768
|
var sortedKeys = Object.keys(obj).sort();
|
|
12768
12769
|
var sortedObj = {};
|
|
12769
|
-
var _iterator = _createForOfIteratorHelper$
|
|
12770
|
+
var _iterator = _createForOfIteratorHelper$j(sortedKeys),
|
|
12770
12771
|
_step;
|
|
12771
12772
|
try {
|
|
12772
12773
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -12869,7 +12870,7 @@ function GridEditor(_ref) {
|
|
|
12869
12870
|
var fromKey = "".concat(from.row, ".").concat(from.col);
|
|
12870
12871
|
var toKey = "".concat(to.row, ".").concat(to.col);
|
|
12871
12872
|
if (fromKey === toKey) return;
|
|
12872
|
-
var newGrid = _objectSpread$
|
|
12873
|
+
var newGrid = _objectSpread$H({}, grid);
|
|
12873
12874
|
|
|
12874
12875
|
// Swap the cells
|
|
12875
12876
|
var temp = newGrid[fromKey];
|
|
@@ -12895,7 +12896,7 @@ function GridEditor(_ref) {
|
|
|
12895
12896
|
// console.log("Grid updated:", sequencedGrid);
|
|
12896
12897
|
}
|
|
12897
12898
|
function resetGridLayout() {
|
|
12898
|
-
var newGrid = _objectSpread$
|
|
12899
|
+
var newGrid = _objectSpread$H({}, defaultGrid);
|
|
12899
12900
|
setGrid(newGrid);
|
|
12900
12901
|
onUpdate(newGrid);
|
|
12901
12902
|
}
|
|
@@ -13173,8 +13174,8 @@ var PanelEditItemGrid = function PanelEditItemGrid(_ref) {
|
|
|
13173
13174
|
});
|
|
13174
13175
|
};
|
|
13175
13176
|
|
|
13176
|
-
function ownKeys$
|
|
13177
|
-
function _objectSpread$
|
|
13177
|
+
function ownKeys$G(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13178
|
+
function _objectSpread$G(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$G(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$G(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13178
13179
|
var PanelEditItemNotifications = function PanelEditItemNotifications(_ref) {
|
|
13179
13180
|
var item = _ref.item;
|
|
13180
13181
|
_ref.workspace;
|
|
@@ -13197,7 +13198,7 @@ var PanelEditItemNotifications = function PanelEditItemNotifications(_ref) {
|
|
|
13197
13198
|
}, [widgetUuid, notificationDefs.length]);
|
|
13198
13199
|
function handleNotifToggle(typeKey, value) {
|
|
13199
13200
|
var _window$mainApi2;
|
|
13200
|
-
var updated = _objectSpread$
|
|
13201
|
+
var updated = _objectSpread$G(_objectSpread$G({}, notifPrefs), {}, _defineProperty({}, typeKey, value));
|
|
13201
13202
|
setNotifPrefs(updated);
|
|
13202
13203
|
if ((_window$mainApi2 = window.mainApi) !== null && _window$mainApi2 !== void 0 && (_window$mainApi2 = _window$mainApi2.notifications) !== null && _window$mainApi2 !== void 0 && _window$mainApi2.setPreferences && widgetUuid) {
|
|
13203
13204
|
window.mainApi.notifications.setPreferences(widgetUuid, _defineProperty({}, typeKey, value));
|
|
@@ -13239,11 +13240,11 @@ var PanelEditItemNotifications = function PanelEditItemNotifications(_ref) {
|
|
|
13239
13240
|
});
|
|
13240
13241
|
};
|
|
13241
13242
|
|
|
13242
|
-
function _createForOfIteratorHelper$
|
|
13243
|
-
function _unsupportedIterableToArray$
|
|
13244
|
-
function _arrayLikeToArray$
|
|
13245
|
-
function ownKeys$
|
|
13246
|
-
function _objectSpread$
|
|
13243
|
+
function _createForOfIteratorHelper$i(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$i(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
13244
|
+
function _unsupportedIterableToArray$i(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$i(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$i(r, a) : void 0; } }
|
|
13245
|
+
function _arrayLikeToArray$i(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
13246
|
+
function ownKeys$F(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13247
|
+
function _objectSpread$F(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$F(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$F(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13247
13248
|
var DAYS = [{
|
|
13248
13249
|
key: "mon",
|
|
13249
13250
|
label: "Mon"
|
|
@@ -13344,7 +13345,7 @@ function TaskScheduleEditor(_ref) {
|
|
|
13344
13345
|
var _window$mainApi;
|
|
13345
13346
|
var overrides = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
13346
13347
|
if (!((_window$mainApi = window.mainApi) !== null && _window$mainApi !== void 0 && (_window$mainApi = _window$mainApi.scheduler) !== null && _window$mainApi !== void 0 && _window$mainApi.registerTask)) return;
|
|
13347
|
-
var payload = _objectSpread$
|
|
13348
|
+
var payload = _objectSpread$F({
|
|
13348
13349
|
widgetId: widgetId,
|
|
13349
13350
|
widgetName: widgetName,
|
|
13350
13351
|
workspaceId: workspaceId || "",
|
|
@@ -13570,7 +13571,7 @@ var PanelEditItemSchedule = function PanelEditItemSchedule(_ref2) {
|
|
|
13570
13571
|
setIsLoading(true);
|
|
13571
13572
|
window.mainApi.scheduler.getTasks(widgetUuid).then(function (tasks) {
|
|
13572
13573
|
var stateMap = {};
|
|
13573
|
-
var _iterator = _createForOfIteratorHelper$
|
|
13574
|
+
var _iterator = _createForOfIteratorHelper$i(tasks || []),
|
|
13574
13575
|
_step;
|
|
13575
13576
|
try {
|
|
13576
13577
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -15629,8 +15630,8 @@ var WidgetIcon = function WidgetIcon(_ref) {
|
|
|
15629
15630
|
});
|
|
15630
15631
|
};
|
|
15631
15632
|
|
|
15632
|
-
function ownKeys$
|
|
15633
|
-
function _objectSpread$
|
|
15633
|
+
function ownKeys$E(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15634
|
+
function _objectSpread$E(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$E(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$E(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15634
15635
|
var ProviderForm = function ProviderForm(_ref) {
|
|
15635
15636
|
var credentialSchema = _ref.credentialSchema,
|
|
15636
15637
|
_ref$initialValues = _ref.initialValues,
|
|
@@ -15675,14 +15676,14 @@ var ProviderForm = function ProviderForm(_ref) {
|
|
|
15675
15676
|
var oldKey = f.key;
|
|
15676
15677
|
if (oldKey && formData[oldKey] !== undefined) {
|
|
15677
15678
|
setFormData(function (fd) {
|
|
15678
|
-
var updated = _objectSpread$
|
|
15679
|
+
var updated = _objectSpread$E({}, fd);
|
|
15679
15680
|
var val = updated[oldKey];
|
|
15680
15681
|
delete updated[oldKey];
|
|
15681
15682
|
if (newKey.trim()) updated[newKey] = val;
|
|
15682
15683
|
return updated;
|
|
15683
15684
|
});
|
|
15684
15685
|
}
|
|
15685
|
-
return _objectSpread$
|
|
15686
|
+
return _objectSpread$E(_objectSpread$E({}, f), {}, {
|
|
15686
15687
|
key: newKey
|
|
15687
15688
|
});
|
|
15688
15689
|
});
|
|
@@ -15694,14 +15695,14 @@ var ProviderForm = function ProviderForm(_ref) {
|
|
|
15694
15695
|
});
|
|
15695
15696
|
if (field !== null && field !== void 0 && field.key) {
|
|
15696
15697
|
setFormData(function (prev) {
|
|
15697
|
-
return _objectSpread$
|
|
15698
|
+
return _objectSpread$E(_objectSpread$E({}, prev), {}, _defineProperty({}, field.key, value));
|
|
15698
15699
|
});
|
|
15699
15700
|
}
|
|
15700
15701
|
};
|
|
15701
15702
|
var handleDynamicSecretToggle = function handleDynamicSecretToggle(id) {
|
|
15702
15703
|
setDynamicFields(function (prev) {
|
|
15703
15704
|
return prev.map(function (f) {
|
|
15704
|
-
return f.id === id ? _objectSpread$
|
|
15705
|
+
return f.id === id ? _objectSpread$E(_objectSpread$E({}, f), {}, {
|
|
15705
15706
|
secret: !f.secret
|
|
15706
15707
|
}) : f;
|
|
15707
15708
|
});
|
|
@@ -15723,7 +15724,7 @@ var ProviderForm = function ProviderForm(_ref) {
|
|
|
15723
15724
|
});
|
|
15724
15725
|
if (field !== null && field !== void 0 && field.key) {
|
|
15725
15726
|
setFormData(function (prev) {
|
|
15726
|
-
var updated = _objectSpread$
|
|
15727
|
+
var updated = _objectSpread$E({}, prev);
|
|
15727
15728
|
delete updated[field.key];
|
|
15728
15729
|
return updated;
|
|
15729
15730
|
});
|
|
@@ -15765,13 +15766,13 @@ var ProviderForm = function ProviderForm(_ref) {
|
|
|
15765
15766
|
*/
|
|
15766
15767
|
var handleInputChange = function handleInputChange(fieldName, value) {
|
|
15767
15768
|
setFormData(function (prev) {
|
|
15768
|
-
return _objectSpread$
|
|
15769
|
+
return _objectSpread$E(_objectSpread$E({}, prev), {}, _defineProperty({}, fieldName, value));
|
|
15769
15770
|
});
|
|
15770
15771
|
|
|
15771
15772
|
// Clear error for this field if it was filled
|
|
15772
15773
|
if (errors[fieldName] && value !== null && value !== void 0 && value.trim()) {
|
|
15773
15774
|
setErrors(function (prev) {
|
|
15774
|
-
var newErrors = _objectSpread$
|
|
15775
|
+
var newErrors = _objectSpread$E({}, prev);
|
|
15775
15776
|
delete newErrors[fieldName];
|
|
15776
15777
|
return newErrors;
|
|
15777
15778
|
});
|
|
@@ -15809,7 +15810,7 @@ var ProviderForm = function ProviderForm(_ref) {
|
|
|
15809
15810
|
// Clear error if filled
|
|
15810
15811
|
if (errors.providerName && value !== null && value !== void 0 && value.trim()) {
|
|
15811
15812
|
setErrors(function (prev) {
|
|
15812
|
-
var newErrors = _objectSpread$
|
|
15813
|
+
var newErrors = _objectSpread$E({}, prev);
|
|
15813
15814
|
delete newErrors.providerName;
|
|
15814
15815
|
return newErrors;
|
|
15815
15816
|
});
|
|
@@ -15970,7 +15971,7 @@ var ProviderForm = function ProviderForm(_ref) {
|
|
|
15970
15971
|
});
|
|
15971
15972
|
};
|
|
15972
15973
|
|
|
15973
|
-
var ToolSelector = function ToolSelector(_ref) {
|
|
15974
|
+
var ToolSelector$1 = function ToolSelector(_ref) {
|
|
15974
15975
|
var _ref$tools = _ref.tools,
|
|
15975
15976
|
tools = _ref$tools === void 0 ? [] : _ref$tools,
|
|
15976
15977
|
_ref$selectedTools = _ref.selectedTools,
|
|
@@ -16046,8 +16047,8 @@ var ToolSelector = function ToolSelector(_ref) {
|
|
|
16046
16047
|
});
|
|
16047
16048
|
};
|
|
16048
16049
|
|
|
16049
|
-
function ownKeys$
|
|
16050
|
-
function _objectSpread$
|
|
16050
|
+
function ownKeys$D(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16051
|
+
function _objectSpread$D(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$D(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$D(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16051
16052
|
/**
|
|
16052
16053
|
* Shared MCP utility functions.
|
|
16053
16054
|
*
|
|
@@ -16175,7 +16176,7 @@ function buildMcpConfigFromOverrides(baseMcpConfig, envMappingRows, headerRows)
|
|
|
16175
16176
|
headerTemplate[name] = value;
|
|
16176
16177
|
}
|
|
16177
16178
|
});
|
|
16178
|
-
var config = _objectSpread$
|
|
16179
|
+
var config = _objectSpread$D({}, baseMcpConfig);
|
|
16179
16180
|
if (Object.keys(headerTemplate).length > 0) {
|
|
16180
16181
|
config.headerTemplate = headerTemplate;
|
|
16181
16182
|
} else {
|
|
@@ -16193,7 +16194,7 @@ function buildMcpConfigFromOverrides(baseMcpConfig, envMappingRows, headerRows)
|
|
|
16193
16194
|
envMapping[env] = cred;
|
|
16194
16195
|
}
|
|
16195
16196
|
});
|
|
16196
|
-
return _objectSpread$
|
|
16197
|
+
return _objectSpread$D(_objectSpread$D({}, baseMcpConfig), {}, {
|
|
16197
16198
|
envMapping: envMapping
|
|
16198
16199
|
});
|
|
16199
16200
|
}
|
|
@@ -16434,11 +16435,11 @@ var getUserConfigurableProviders = function getUserConfigurableProviders(provide
|
|
|
16434
16435
|
});
|
|
16435
16436
|
};
|
|
16436
16437
|
|
|
16437
|
-
function _createForOfIteratorHelper$
|
|
16438
|
-
function _unsupportedIterableToArray$
|
|
16439
|
-
function _arrayLikeToArray$
|
|
16440
|
-
function ownKeys$
|
|
16441
|
-
function _objectSpread$
|
|
16438
|
+
function _createForOfIteratorHelper$h(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$h(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
16439
|
+
function _unsupportedIterableToArray$h(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$h(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$h(r, a) : void 0; } }
|
|
16440
|
+
function _arrayLikeToArray$h(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
16441
|
+
function ownKeys$C(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16442
|
+
function _objectSpread$C(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$C(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$C(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16442
16443
|
var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
16443
16444
|
var isOpen = _ref.isOpen,
|
|
16444
16445
|
onClose = _ref.onClose,
|
|
@@ -16633,7 +16634,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
16633
16634
|
.map(function (entry) {
|
|
16634
16635
|
var widget = allWidgets[entry.widgetKey];
|
|
16635
16636
|
if (!widget) return null; // Widget no longer exists
|
|
16636
|
-
return _objectSpread$
|
|
16637
|
+
return _objectSpread$C(_objectSpread$C({
|
|
16637
16638
|
key: entry.widgetKey
|
|
16638
16639
|
}, widget), {}, {
|
|
16639
16640
|
savedProviders: entry.providers || {},
|
|
@@ -16721,11 +16722,11 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
16721
16722
|
|
|
16722
16723
|
// Flatten all widgets from all packages for the widget list
|
|
16723
16724
|
flatWidgets = [];
|
|
16724
|
-
_iterator = _createForOfIteratorHelper$
|
|
16725
|
+
_iterator = _createForOfIteratorHelper$h(result.packages || []);
|
|
16725
16726
|
try {
|
|
16726
16727
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
16727
16728
|
pkg = _step.value;
|
|
16728
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
16729
|
+
_iterator2 = _createForOfIteratorHelper$h(pkg.widgets || []);
|
|
16729
16730
|
try {
|
|
16730
16731
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
16731
16732
|
widget = _step2.value;
|
|
@@ -16784,7 +16785,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
16784
16785
|
// Get widgets from ComponentManager
|
|
16785
16786
|
var allWidgets = ComponentManager.map();
|
|
16786
16787
|
var widgetList = Object.keys(allWidgets).map(function (key) {
|
|
16787
|
-
return _objectSpread$
|
|
16788
|
+
return _objectSpread$C({
|
|
16788
16789
|
key: key
|
|
16789
16790
|
}, allWidgets[key]);
|
|
16790
16791
|
}).filter(function (widget) {
|
|
@@ -17015,7 +17016,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
17015
17016
|
setInlineCreateType(null);
|
|
17016
17017
|
setInlineCreateSchema({});
|
|
17017
17018
|
setInlineCreateError(null);
|
|
17018
|
-
setSelectedProviders(_objectSpread$
|
|
17019
|
+
setSelectedProviders(_objectSpread$C(_objectSpread$C({}, selectedProviders), {}, _defineProperty({}, providerType, providerName)));
|
|
17019
17020
|
}
|
|
17020
17021
|
};
|
|
17021
17022
|
var handleInlineProviderSubmit = function handleInlineProviderSubmit(formData) {
|
|
@@ -17036,7 +17037,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
17036
17037
|
|
|
17037
17038
|
// Auto-select the newly created provider
|
|
17038
17039
|
setSelectedProviders(function (prev) {
|
|
17039
|
-
return _objectSpread$
|
|
17040
|
+
return _objectSpread$C(_objectSpread$C({}, prev), {}, _defineProperty({}, providerType, providerName));
|
|
17040
17041
|
});
|
|
17041
17042
|
|
|
17042
17043
|
// Collapse the inline form
|
|
@@ -17090,11 +17091,11 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
17090
17091
|
};
|
|
17091
17092
|
var inlineHandleCredentialChange = function inlineHandleCredentialChange(fieldName, value) {
|
|
17092
17093
|
setInlineCredentialData(function (prev) {
|
|
17093
|
-
return _objectSpread$
|
|
17094
|
+
return _objectSpread$C(_objectSpread$C({}, prev), {}, _defineProperty({}, fieldName, value));
|
|
17094
17095
|
});
|
|
17095
17096
|
if (inlineFormErrors[fieldName] && value !== null && value !== void 0 && value.trim()) {
|
|
17096
17097
|
setInlineFormErrors(function (prev) {
|
|
17097
|
-
var next = _objectSpread$
|
|
17098
|
+
var next = _objectSpread$C({}, prev);
|
|
17098
17099
|
delete next[fieldName];
|
|
17099
17100
|
return next;
|
|
17100
17101
|
});
|
|
@@ -17187,7 +17188,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
17187
17188
|
refreshProviders();
|
|
17188
17189
|
}
|
|
17189
17190
|
setSelectedProviders(function (prev) {
|
|
17190
|
-
return _objectSpread$
|
|
17191
|
+
return _objectSpread$C(_objectSpread$C({}, prev), {}, _defineProperty({}, providerType, providerName));
|
|
17191
17192
|
});
|
|
17192
17193
|
|
|
17193
17194
|
// Reset stepper state
|
|
@@ -17208,7 +17209,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
17208
17209
|
});
|
|
17209
17210
|
};
|
|
17210
17211
|
var handleConfigChange = function handleConfigChange(key, value) {
|
|
17211
|
-
setUserConfigValues(_objectSpread$
|
|
17212
|
+
setUserConfigValues(_objectSpread$C(_objectSpread$C({}, userConfigValues), {}, _defineProperty({}, key, value)));
|
|
17212
17213
|
};
|
|
17213
17214
|
|
|
17214
17215
|
// Install a package from the registry
|
|
@@ -17274,7 +17275,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
17274
17275
|
// Mark items as installed
|
|
17275
17276
|
setProgressWidgets(function (prev) {
|
|
17276
17277
|
return prev.map(function (w) {
|
|
17277
|
-
return _objectSpread$
|
|
17278
|
+
return _objectSpread$C(_objectSpread$C({}, w), {}, {
|
|
17278
17279
|
status: "installed"
|
|
17279
17280
|
});
|
|
17280
17281
|
});
|
|
@@ -17293,7 +17294,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
17293
17294
|
setInstallError(msg);
|
|
17294
17295
|
setProgressWidgets(function (prev) {
|
|
17295
17296
|
return prev.map(function (w) {
|
|
17296
|
-
return _objectSpread$
|
|
17297
|
+
return _objectSpread$C(_objectSpread$C({}, w), {}, {
|
|
17297
17298
|
status: "failed",
|
|
17298
17299
|
error: msg
|
|
17299
17300
|
});
|
|
@@ -17367,7 +17368,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
17367
17368
|
|
|
17368
17369
|
// Phase 3: Save to recent widgets
|
|
17369
17370
|
saveToRecent(selectedWidget, selectedProviders, userConfigValues);
|
|
17370
|
-
onSelectWidget(_objectSpread$
|
|
17371
|
+
onSelectWidget(_objectSpread$C(_objectSpread$C({}, selectedWidget), {}, {
|
|
17371
17372
|
selectedProviders: selectedProviders,
|
|
17372
17373
|
// Pass to parent
|
|
17373
17374
|
userConfigValues: userConfigValues // Pass to parent
|
|
@@ -18004,7 +18005,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
18004
18005
|
setInlineProviderName(value);
|
|
18005
18006
|
if (inlineFormErrors.providerName && value !== null && value !== void 0 && value.trim()) {
|
|
18006
18007
|
setInlineFormErrors(function (prev) {
|
|
18007
|
-
var next = _objectSpread$
|
|
18008
|
+
var next = _objectSpread$C({}, prev);
|
|
18008
18009
|
delete next.providerName;
|
|
18009
18010
|
return next;
|
|
18010
18011
|
});
|
|
@@ -18116,7 +18117,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
18116
18117
|
className: "mr-1"
|
|
18117
18118
|
}), inlineTestResult.message]
|
|
18118
18119
|
})]
|
|
18119
|
-
}), (inlineTestResult === null || inlineTestResult === void 0 ? void 0 : inlineTestResult.success) && ((_inlineTestResult$too = inlineTestResult.tools) === null || _inlineTestResult$too === void 0 ? void 0 : _inlineTestResult$too.length) > 0 && inlineSelectedTools && /*#__PURE__*/jsx(ToolSelector, {
|
|
18120
|
+
}), (inlineTestResult === null || inlineTestResult === void 0 ? void 0 : inlineTestResult.success) && ((_inlineTestResult$too = inlineTestResult.tools) === null || _inlineTestResult$too === void 0 ? void 0 : _inlineTestResult$too.length) > 0 && inlineSelectedTools && /*#__PURE__*/jsx(ToolSelector$1, {
|
|
18120
18121
|
tools: inlineTestResult.tools,
|
|
18121
18122
|
selectedTools: inlineSelectedTools,
|
|
18122
18123
|
onSelectionChange: setInlineSelectedTools
|
|
@@ -18363,9 +18364,9 @@ var ProviderBadge = function ProviderBadge(_ref) {
|
|
|
18363
18364
|
});
|
|
18364
18365
|
};
|
|
18365
18366
|
|
|
18366
|
-
function _createForOfIteratorHelper$
|
|
18367
|
-
function _unsupportedIterableToArray$
|
|
18368
|
-
function _arrayLikeToArray$
|
|
18367
|
+
function _createForOfIteratorHelper$g(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$g(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
18368
|
+
function _unsupportedIterableToArray$g(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$g(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$g(r, a) : void 0; } }
|
|
18369
|
+
function _arrayLikeToArray$g(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
18369
18370
|
var WidgetCardHeader = function WidgetCardHeader(_ref) {
|
|
18370
18371
|
var item = _ref.item,
|
|
18371
18372
|
widget = _ref.widget,
|
|
@@ -18409,7 +18410,7 @@ var WidgetCardHeader = function WidgetCardHeader(_ref) {
|
|
|
18409
18410
|
var el = headerRef.current;
|
|
18410
18411
|
if (!el) return;
|
|
18411
18412
|
var observer = new ResizeObserver(function (entries) {
|
|
18412
|
-
var _iterator = _createForOfIteratorHelper$
|
|
18413
|
+
var _iterator = _createForOfIteratorHelper$g(entries),
|
|
18413
18414
|
_step;
|
|
18414
18415
|
try {
|
|
18415
18416
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -18774,9 +18775,9 @@ var useWidgetSchedulerStatus = function useWidgetSchedulerStatus(widgetId) {
|
|
|
18774
18775
|
};
|
|
18775
18776
|
};
|
|
18776
18777
|
|
|
18777
|
-
function _createForOfIteratorHelper$
|
|
18778
|
-
function _unsupportedIterableToArray$
|
|
18779
|
-
function _arrayLikeToArray$
|
|
18778
|
+
function _createForOfIteratorHelper$f(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$f(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
18779
|
+
function _unsupportedIterableToArray$f(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$f(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$f(r, a) : void 0; } }
|
|
18780
|
+
function _arrayLikeToArray$f(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
18780
18781
|
function formatCountdown(ms) {
|
|
18781
18782
|
if (ms == null || ms < 0) return "--";
|
|
18782
18783
|
if (ms < 1000) return "< 1s";
|
|
@@ -18893,7 +18894,7 @@ var WidgetCardStatusBar = function WidgetCardStatusBar(_ref) {
|
|
|
18893
18894
|
|
|
18894
18895
|
// Find soonest countdown among enabled tasks
|
|
18895
18896
|
var soonestMs = null;
|
|
18896
|
-
var _iterator = _createForOfIteratorHelper$
|
|
18897
|
+
var _iterator = _createForOfIteratorHelper$f(enabledTasks),
|
|
18897
18898
|
_step;
|
|
18898
18899
|
try {
|
|
18899
18900
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -19344,8 +19345,8 @@ var ProviderSelector = function ProviderSelector(_ref) {
|
|
|
19344
19345
|
});
|
|
19345
19346
|
};
|
|
19346
19347
|
|
|
19347
|
-
function ownKeys$
|
|
19348
|
-
function _objectSpread$
|
|
19348
|
+
function ownKeys$B(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19349
|
+
function _objectSpread$B(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$B(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$B(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19349
19350
|
var AdvancedMcpConfig = function AdvancedMcpConfig(_ref) {
|
|
19350
19351
|
var transport = _ref.transport,
|
|
19351
19352
|
envMappingRows = _ref.envMappingRows,
|
|
@@ -19374,7 +19375,7 @@ var AdvancedMcpConfig = function AdvancedMcpConfig(_ref) {
|
|
|
19374
19375
|
var updateEnvRow = function updateEnvRow(id, field, value) {
|
|
19375
19376
|
onEnvMappingRowsChange(function (prev) {
|
|
19376
19377
|
return prev.map(function (row) {
|
|
19377
|
-
return row.id === id ? _objectSpread$
|
|
19378
|
+
return row.id === id ? _objectSpread$B(_objectSpread$B({}, row), {}, _defineProperty({}, field, value)) : row;
|
|
19378
19379
|
});
|
|
19379
19380
|
});
|
|
19380
19381
|
};
|
|
@@ -19399,7 +19400,7 @@ var AdvancedMcpConfig = function AdvancedMcpConfig(_ref) {
|
|
|
19399
19400
|
var updateHeaderRow = function updateHeaderRow(id, field, value) {
|
|
19400
19401
|
onHeaderRowsChange(function (prev) {
|
|
19401
19402
|
return prev.map(function (row) {
|
|
19402
|
-
return row.id === id ? _objectSpread$
|
|
19403
|
+
return row.id === id ? _objectSpread$B(_objectSpread$B({}, row), {}, _defineProperty({}, field, value)) : row;
|
|
19403
19404
|
});
|
|
19404
19405
|
});
|
|
19405
19406
|
};
|
|
@@ -19548,8 +19549,8 @@ var AdvancedMcpConfig = function AdvancedMcpConfig(_ref) {
|
|
|
19548
19549
|
});
|
|
19549
19550
|
};
|
|
19550
19551
|
|
|
19551
|
-
function ownKeys$
|
|
19552
|
-
function _objectSpread$
|
|
19552
|
+
function ownKeys$A(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19553
|
+
function _objectSpread$A(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$A(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$A(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19553
19554
|
var McpServerPicker = function McpServerPicker(_ref) {
|
|
19554
19555
|
var _testResult$tools;
|
|
19555
19556
|
var isOpen = _ref.isOpen,
|
|
@@ -19728,11 +19729,11 @@ var McpServerPicker = function McpServerPicker(_ref) {
|
|
|
19728
19729
|
// Handle credential field changes
|
|
19729
19730
|
var handleCredentialChange = function handleCredentialChange(fieldName, value) {
|
|
19730
19731
|
setCredentialData(function (prev) {
|
|
19731
|
-
return _objectSpread$
|
|
19732
|
+
return _objectSpread$A(_objectSpread$A({}, prev), {}, _defineProperty({}, fieldName, value));
|
|
19732
19733
|
});
|
|
19733
19734
|
if (formErrors[fieldName] && value !== null && value !== void 0 && value.trim()) {
|
|
19734
19735
|
setFormErrors(function (prev) {
|
|
19735
|
-
var next = _objectSpread$
|
|
19736
|
+
var next = _objectSpread$A({}, prev);
|
|
19736
19737
|
delete next[fieldName];
|
|
19737
19738
|
return next;
|
|
19738
19739
|
});
|
|
@@ -20070,7 +20071,7 @@ var McpServerPicker = function McpServerPicker(_ref) {
|
|
|
20070
20071
|
setProviderName(value);
|
|
20071
20072
|
if (formErrors.providerName && value !== null && value !== void 0 && value.trim()) {
|
|
20072
20073
|
setFormErrors(function (prev) {
|
|
20073
|
-
var next = _objectSpread$
|
|
20074
|
+
var next = _objectSpread$A({}, prev);
|
|
20074
20075
|
delete next.providerName;
|
|
20075
20076
|
return next;
|
|
20076
20077
|
});
|
|
@@ -20199,7 +20200,7 @@ var McpServerPicker = function McpServerPicker(_ref) {
|
|
|
20199
20200
|
className: "mr-1"
|
|
20200
20201
|
}), testResult.message]
|
|
20201
20202
|
})]
|
|
20202
|
-
}), (testResult === null || testResult === void 0 ? void 0 : testResult.success) && ((_testResult$tools = testResult.tools) === null || _testResult$tools === void 0 ? void 0 : _testResult$tools.length) > 0 && selectedTools && /*#__PURE__*/jsx(ToolSelector, {
|
|
20203
|
+
}), (testResult === null || testResult === void 0 ? void 0 : testResult.success) && ((_testResult$tools = testResult.tools) === null || _testResult$tools === void 0 ? void 0 : _testResult$tools.length) > 0 && selectedTools && /*#__PURE__*/jsx(ToolSelector$1, {
|
|
20203
20204
|
tools: testResult.tools,
|
|
20204
20205
|
selectedTools: selectedTools,
|
|
20205
20206
|
onSelectionChange: setSelectedTools
|
|
@@ -20260,8 +20261,8 @@ var McpServerPicker = function McpServerPicker(_ref) {
|
|
|
20260
20261
|
});
|
|
20261
20262
|
};
|
|
20262
20263
|
|
|
20263
|
-
function ownKeys$
|
|
20264
|
-
function _objectSpread$
|
|
20264
|
+
function ownKeys$z(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20265
|
+
function _objectSpread$z(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$z(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$z(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20265
20266
|
var USE_ENHANCED_WIDGET_SELECTOR = true; // Set to false to use original modal
|
|
20266
20267
|
|
|
20267
20268
|
/**
|
|
@@ -20307,7 +20308,7 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
20307
20308
|
var _ref3 = _slicedToArray(_ref2, 2),
|
|
20308
20309
|
id = _ref3[0],
|
|
20309
20310
|
p = _ref3[1];
|
|
20310
|
-
return _objectSpread$
|
|
20311
|
+
return _objectSpread$z(_objectSpread$z({}, p), {}, {
|
|
20311
20312
|
id: id,
|
|
20312
20313
|
name: p.name || id
|
|
20313
20314
|
});
|
|
@@ -20394,7 +20395,7 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
20394
20395
|
// so we use its layout to replace any corrupted grid data.
|
|
20395
20396
|
if (workspace && workspace["layout"]) {
|
|
20396
20397
|
var model = new DashboardModel(workspace);
|
|
20397
|
-
setCurrentWorkspace(_objectSpread$
|
|
20398
|
+
setCurrentWorkspace(_objectSpread$z(_objectSpread$z({}, workspace), {}, {
|
|
20398
20399
|
layout: model.layout
|
|
20399
20400
|
}));
|
|
20400
20401
|
} else {
|
|
@@ -20785,7 +20786,7 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
20785
20786
|
var uuid = widget.uuid || widget.uuidString;
|
|
20786
20787
|
if (uuid) {
|
|
20787
20788
|
newWorkspace.selectedProviders = newWorkspace.selectedProviders || {};
|
|
20788
|
-
newWorkspace.selectedProviders[uuid] = _objectSpread$
|
|
20789
|
+
newWorkspace.selectedProviders[uuid] = _objectSpread$z(_objectSpread$z({}, newWorkspace.selectedProviders[uuid] || {}), {}, _defineProperty({}, providerType, providerId));
|
|
20789
20790
|
}
|
|
20790
20791
|
setCurrentWorkspace(newWorkspace);
|
|
20791
20792
|
}
|
|
@@ -20921,7 +20922,7 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
20921
20922
|
var _gridContainer$grid;
|
|
20922
20923
|
var config = ComponentManager.config(widgetKey);
|
|
20923
20924
|
if (!config) return;
|
|
20924
|
-
var widgetItem = _objectSpread$
|
|
20925
|
+
var widgetItem = _objectSpread$z(_objectSpread$z({}, config), {}, {
|
|
20925
20926
|
component: widgetKey,
|
|
20926
20927
|
key: widgetKey
|
|
20927
20928
|
});
|
|
@@ -21175,7 +21176,7 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
21175
21176
|
onSelectWidget: function onSelectWidget(widget) {
|
|
21176
21177
|
|
|
21177
21178
|
// Add component property from widget.key
|
|
21178
|
-
var widgetWithComponent = _objectSpread$
|
|
21179
|
+
var widgetWithComponent = _objectSpread$z(_objectSpread$z({}, widget), {}, {
|
|
21179
21180
|
component: widget.key
|
|
21180
21181
|
});
|
|
21181
21182
|
handleClickConfirmAdd(widgetWithComponent, dropdownTarget);
|
|
@@ -22804,8 +22805,8 @@ var MissingProviderPrompt = function MissingProviderPrompt(_ref) {
|
|
|
22804
22805
|
});
|
|
22805
22806
|
};
|
|
22806
22807
|
|
|
22807
|
-
function ownKeys$
|
|
22808
|
-
function _objectSpread$
|
|
22808
|
+
function ownKeys$y(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22809
|
+
function _objectSpread$y(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$y(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$y(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22809
22810
|
function _callSuper$4(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$4() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
22810
22811
|
function _isNativeReflectConstruct$4() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$4 = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
22811
22812
|
var ProviderErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
@@ -22860,7 +22861,7 @@ var ProviderErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
|
22860
22861
|
_defineProperty(_this, "handleProviderSelect", function (providerType, providerName, credentials) {
|
|
22861
22862
|
|
|
22862
22863
|
// Update local selected providers state
|
|
22863
|
-
var updatedSelected = _objectSpread$
|
|
22864
|
+
var updatedSelected = _objectSpread$y(_objectSpread$y({}, _this.state.selectedProviders), {}, _defineProperty({}, providerType, providerName));
|
|
22864
22865
|
_this.setState({
|
|
22865
22866
|
selectedProviders: updatedSelected
|
|
22866
22867
|
}, function () {
|
|
@@ -22934,8 +22935,8 @@ var ProviderErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
|
22934
22935
|
}(Component);
|
|
22935
22936
|
_defineProperty(ProviderErrorBoundary, "contextType", ProviderContext);
|
|
22936
22937
|
|
|
22937
|
-
function ownKeys$
|
|
22938
|
-
function _objectSpread$
|
|
22938
|
+
function ownKeys$x(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22939
|
+
function _objectSpread$x(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$x(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$x(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22939
22940
|
var withProviderDetection = function withProviderDetection(Component) {
|
|
22940
22941
|
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
22941
22942
|
_ref$requiredProvider = _ref.requiredProviders,
|
|
@@ -22960,7 +22961,7 @@ var withProviderDetection = function withProviderDetection(Component) {
|
|
|
22960
22961
|
onProviderSelect: onProviderSelect
|
|
22961
22962
|
});
|
|
22962
22963
|
}
|
|
22963
|
-
return /*#__PURE__*/jsx(Component, _objectSpread$
|
|
22964
|
+
return /*#__PURE__*/jsx(Component, _objectSpread$x({}, props));
|
|
22964
22965
|
};
|
|
22965
22966
|
};
|
|
22966
22967
|
|
|
@@ -23636,8 +23637,8 @@ var WidgetNotFound = function WidgetNotFound(_ref) {
|
|
|
23636
23637
|
});
|
|
23637
23638
|
};
|
|
23638
23639
|
|
|
23639
|
-
function ownKeys$
|
|
23640
|
-
function _objectSpread$
|
|
23640
|
+
function ownKeys$w(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
23641
|
+
function _objectSpread$w(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$w(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$w(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
23641
23642
|
function _callSuper$2(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$2() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
23642
23643
|
function _isNativeReflectConstruct$2() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$2 = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
23643
23644
|
var WidgetErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
@@ -23768,7 +23769,7 @@ var WidgetRenderer = function WidgetRenderer(_ref) {
|
|
|
23768
23769
|
|
|
23769
23770
|
// Build widgetData for WidgetContext — hooks read from this
|
|
23770
23771
|
var uuidString = getUUID(params.uuid);
|
|
23771
|
-
var widgetData = _objectSpread$
|
|
23772
|
+
var widgetData = _objectSpread$w(_objectSpread$w({}, params), {}, {
|
|
23772
23773
|
uuidString: uuidString,
|
|
23773
23774
|
providers: (config === null || config === void 0 ? void 0 : config.providers) || [],
|
|
23774
23775
|
notifications: (config === null || config === void 0 ? void 0 : config.notifications) || []
|
|
@@ -23792,7 +23793,7 @@ var WidgetRenderer = function WidgetRenderer(_ref) {
|
|
|
23792
23793
|
widgetData: widgetData
|
|
23793
23794
|
};
|
|
23794
23795
|
var hasScheduledTasks = ((config === null || config === void 0 ? void 0 : config.scheduledTasks) || []).length > 0;
|
|
23795
|
-
var widgetElement = children === null ? /*#__PURE__*/jsx(WidgetComponent, _objectSpread$
|
|
23796
|
+
var widgetElement = children === null ? /*#__PURE__*/jsx(WidgetComponent, _objectSpread$w(_objectSpread$w(_objectSpread$w({
|
|
23796
23797
|
id: "widget-nokids-".concat(widgetKey),
|
|
23797
23798
|
listen: function listen(listeners, handlers) {
|
|
23798
23799
|
return helpers.listen(listeners, handlers);
|
|
@@ -23805,7 +23806,7 @@ var WidgetRenderer = function WidgetRenderer(_ref) {
|
|
|
23805
23806
|
backgroundColor: bgColor,
|
|
23806
23807
|
widgetConfig: helpers.config(),
|
|
23807
23808
|
widgetEventNames: helpers.events()
|
|
23808
|
-
}), "widget-nokids-".concat(widgetKey)) : /*#__PURE__*/jsx(WidgetComponent, _objectSpread$
|
|
23809
|
+
}), "widget-nokids-".concat(widgetKey)) : /*#__PURE__*/jsx(WidgetComponent, _objectSpread$w(_objectSpread$w(_objectSpread$w({
|
|
23809
23810
|
listen: function listen(listeners, handlers) {
|
|
23810
23811
|
return helpers.listen(listeners, handlers);
|
|
23811
23812
|
},
|
|
@@ -24004,11 +24005,11 @@ var ExternalWidget = function ExternalWidget(_ref) {
|
|
|
24004
24005
|
var GRID_CELL_WIDGET_TYPE = "grid-cell-widget";
|
|
24005
24006
|
var SIDEBAR_WIDGET_TYPE = "sidebar-widget";
|
|
24006
24007
|
|
|
24007
|
-
function _createForOfIteratorHelper$
|
|
24008
|
-
function _unsupportedIterableToArray$
|
|
24009
|
-
function _arrayLikeToArray$
|
|
24010
|
-
function ownKeys$
|
|
24011
|
-
function _objectSpread$
|
|
24008
|
+
function _createForOfIteratorHelper$e(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$e(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
24009
|
+
function _unsupportedIterableToArray$e(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$e(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$e(r, a) : void 0; } }
|
|
24010
|
+
function _arrayLikeToArray$e(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
24011
|
+
function ownKeys$v(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24012
|
+
function _objectSpread$v(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$v(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$v(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24012
24013
|
var DraggableDroppableCellBody = function DraggableDroppableCellBody(_ref) {
|
|
24013
24014
|
var cellNumber = _ref.cellNumber,
|
|
24014
24015
|
gridContainerId = _ref.gridContainerId,
|
|
@@ -24206,7 +24207,7 @@ var LayoutGridContainer = /*#__PURE__*/memo(function (_ref3) {
|
|
|
24206
24207
|
var _ref5 = _slicedToArray(_ref4, 2),
|
|
24207
24208
|
id = _ref5[0],
|
|
24208
24209
|
provider = _ref5[1];
|
|
24209
|
-
return _objectSpread$
|
|
24210
|
+
return _objectSpread$v({
|
|
24210
24211
|
id: id
|
|
24211
24212
|
}, provider);
|
|
24212
24213
|
}) : [];
|
|
@@ -24581,7 +24582,7 @@ var LayoutGridContainer = /*#__PURE__*/memo(function (_ref3) {
|
|
|
24581
24582
|
return selectable["delete"](cn);
|
|
24582
24583
|
});
|
|
24583
24584
|
var resolved = new Set();
|
|
24584
|
-
var _iterator = _createForOfIteratorHelper$
|
|
24585
|
+
var _iterator = _createForOfIteratorHelper$e(selectable),
|
|
24585
24586
|
_step;
|
|
24586
24587
|
try {
|
|
24587
24588
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -25212,7 +25213,7 @@ var LayoutGridContainer = /*#__PURE__*/memo(function (_ref3) {
|
|
|
25212
25213
|
var widgetSpecificSelections = (workspace === null || workspace === void 0 || (_workspace$selectedPr = workspace.selectedProviders) === null || _workspace$selectedPr === void 0 ? void 0 : _workspace$selectedPr[id]) || {};
|
|
25213
25214
|
|
|
25214
25215
|
// Add provider-related props from workspace
|
|
25215
|
-
var itemWithProviders = _objectSpread$
|
|
25216
|
+
var itemWithProviders = _objectSpread$v(_objectSpread$v({}, item), {}, {
|
|
25216
25217
|
selectedProviders: widgetSpecificSelections,
|
|
25217
25218
|
onProviderSelect: onProviderSelect
|
|
25218
25219
|
});
|
|
@@ -26717,11 +26718,11 @@ function isWidgetResolvable(componentKey) {
|
|
|
26717
26718
|
// isMinOrderForItem
|
|
26718
26719
|
// }
|
|
26719
26720
|
|
|
26720
|
-
function ownKeys$
|
|
26721
|
-
function _objectSpread$
|
|
26722
|
-
function _createForOfIteratorHelper$
|
|
26723
|
-
function _unsupportedIterableToArray$
|
|
26724
|
-
function _arrayLikeToArray$
|
|
26721
|
+
function ownKeys$u(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
26722
|
+
function _objectSpread$u(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$u(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$u(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
26723
|
+
function _createForOfIteratorHelper$d(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$d(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
26724
|
+
function _unsupportedIterableToArray$d(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$d(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$d(r, a) : void 0; } }
|
|
26725
|
+
function _arrayLikeToArray$d(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
26725
26726
|
/**
|
|
26726
26727
|
* The model for all layout components used primarily in the renderLayout method
|
|
26727
26728
|
* @param {Object} layoutItem an object containing various attributes of the layout item
|
|
@@ -26733,7 +26734,7 @@ function _arrayLikeToArray$b(r, a) { (null == a || a > r.length) && (a = r.lengt
|
|
|
26733
26734
|
function sortObjectByKeys(obj) {
|
|
26734
26735
|
var sortedKeys = Object.keys(obj).sort();
|
|
26735
26736
|
var sortedObj = {};
|
|
26736
|
-
var _iterator = _createForOfIteratorHelper$
|
|
26737
|
+
var _iterator = _createForOfIteratorHelper$d(sortedKeys),
|
|
26737
26738
|
_step;
|
|
26738
26739
|
try {
|
|
26739
26740
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -26874,7 +26875,7 @@ var LayoutModel = function LayoutModel(layoutItem, workspaceLayout, dashboardId)
|
|
|
26874
26875
|
|
|
26875
26876
|
// Merge user-entered config values (from EnhancedWidgetDropdown) into userPrefs
|
|
26876
26877
|
if ("userConfigValues" in obj && obj.userConfigValues) {
|
|
26877
|
-
layout.userPrefs = _objectSpread$
|
|
26878
|
+
layout.userPrefs = _objectSpread$u(_objectSpread$u({}, layout.userPrefs), obj.userConfigValues);
|
|
26878
26879
|
}
|
|
26879
26880
|
|
|
26880
26881
|
// Preserve provider selections for this widget
|
|
@@ -27407,11 +27408,11 @@ var MenuItemModel = function MenuItemModel() {
|
|
|
27407
27408
|
return m;
|
|
27408
27409
|
};
|
|
27409
27410
|
|
|
27410
|
-
function ownKeys$
|
|
27411
|
-
function _objectSpread$
|
|
27412
|
-
function _createForOfIteratorHelper$
|
|
27413
|
-
function _unsupportedIterableToArray$
|
|
27414
|
-
function _arrayLikeToArray$
|
|
27411
|
+
function ownKeys$t(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
27412
|
+
function _objectSpread$t(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$t(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$t(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
27413
|
+
function _createForOfIteratorHelper$c(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$c(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
27414
|
+
function _unsupportedIterableToArray$c(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$c(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$c(r, a) : void 0; } }
|
|
27415
|
+
function _arrayLikeToArray$c(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
27415
27416
|
/**
|
|
27416
27417
|
* A Model for a Workspace (Dashboard)
|
|
27417
27418
|
* The Dashboard in this instance is the entire Layout inclusive of the workspaces and widgets
|
|
@@ -27468,7 +27469,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
27468
27469
|
|
|
27469
27470
|
// Also normalize grids within pages
|
|
27470
27471
|
if (this.pages.length > 0) {
|
|
27471
|
-
var _iterator = _createForOfIteratorHelper$
|
|
27472
|
+
var _iterator = _createForOfIteratorHelper$c(this.pages),
|
|
27472
27473
|
_step;
|
|
27473
27474
|
try {
|
|
27474
27475
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -28728,7 +28729,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
28728
28729
|
visibleCells.push({
|
|
28729
28730
|
row: r,
|
|
28730
28731
|
col: c,
|
|
28731
|
-
data: _objectSpread$
|
|
28732
|
+
data: _objectSpread$t({}, cell),
|
|
28732
28733
|
spanCol: ((_cell$span = cell.span) === null || _cell$span === void 0 ? void 0 : _cell$span.col) || 1,
|
|
28733
28734
|
spanRow: ((_cell$span2 = cell.span) === null || _cell$span2 === void 0 ? void 0 : _cell$span2.row) || 1
|
|
28734
28735
|
});
|
|
@@ -28750,7 +28751,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
28750
28751
|
var vc = _visibleCells[_i5];
|
|
28751
28752
|
var newCol = (vc.col - 1) * count + 1;
|
|
28752
28753
|
var _key7 = "".concat(vc.row, ".").concat(newCol);
|
|
28753
|
-
grid[_key7] = _objectSpread$
|
|
28754
|
+
grid[_key7] = _objectSpread$t(_objectSpread$t({}, vc.data), {}, {
|
|
28754
28755
|
hide: false,
|
|
28755
28756
|
span: {
|
|
28756
28757
|
row: vc.spanRow,
|
|
@@ -28825,7 +28826,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
28825
28826
|
_visibleCells2.push({
|
|
28826
28827
|
row: _r1,
|
|
28827
28828
|
col: _c10,
|
|
28828
|
-
data: _objectSpread$
|
|
28829
|
+
data: _objectSpread$t({}, _cell6),
|
|
28829
28830
|
spanRow: ((_cell6$span = _cell6.span) === null || _cell6$span === void 0 ? void 0 : _cell6$span.row) || 1,
|
|
28830
28831
|
spanCol: ((_cell6$span2 = _cell6.span) === null || _cell6$span2 === void 0 ? void 0 : _cell6$span2.col) || 1
|
|
28831
28832
|
});
|
|
@@ -28847,7 +28848,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
28847
28848
|
var _vc = _visibleCells3[_i9];
|
|
28848
28849
|
var newRow = (_vc.row - 1) * count + 1;
|
|
28849
28850
|
var _key10 = "".concat(newRow, ".").concat(_vc.col);
|
|
28850
|
-
grid[_key10] = _objectSpread$
|
|
28851
|
+
grid[_key10] = _objectSpread$t(_objectSpread$t({}, _vc.data), {}, {
|
|
28851
28852
|
hide: false,
|
|
28852
28853
|
span: {
|
|
28853
28854
|
row: _vc.spanRow * count,
|
|
@@ -29444,7 +29445,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
29444
29445
|
try {
|
|
29445
29446
|
// Collect all item IDs actively referenced by grid cells
|
|
29446
29447
|
var activeItemIds = new Set();
|
|
29447
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
29448
|
+
var _iterator2 = _createForOfIteratorHelper$c(this.layout),
|
|
29448
29449
|
_step2;
|
|
29449
29450
|
try {
|
|
29450
29451
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -29484,7 +29485,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
29484
29485
|
});
|
|
29485
29486
|
|
|
29486
29487
|
// Clean listener references on remaining items for each removed orphan
|
|
29487
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
29488
|
+
var _iterator3 = _createForOfIteratorHelper$c(orphanedIds),
|
|
29488
29489
|
_step3;
|
|
29489
29490
|
try {
|
|
29490
29491
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -30077,8 +30078,8 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
|
30077
30078
|
}]);
|
|
30078
30079
|
}(React__default.Component);
|
|
30079
30080
|
|
|
30080
|
-
function ownKeys$
|
|
30081
|
-
function _objectSpread$
|
|
30081
|
+
function ownKeys$s(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
30082
|
+
function _objectSpread$s(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$s(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$s(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
30082
30083
|
|
|
30083
30084
|
/**
|
|
30084
30085
|
* useDashboard Hook
|
|
@@ -30134,7 +30135,7 @@ var useDashboard = function useDashboard() {
|
|
|
30134
30135
|
}
|
|
30135
30136
|
});
|
|
30136
30137
|
}
|
|
30137
|
-
return _objectSpread$
|
|
30138
|
+
return _objectSpread$s({
|
|
30138
30139
|
app: app,
|
|
30139
30140
|
dashboard: dashboard,
|
|
30140
30141
|
theme: theme
|
|
@@ -30143,9 +30144,9 @@ var useDashboard = function useDashboard() {
|
|
|
30143
30144
|
});
|
|
30144
30145
|
};
|
|
30145
30146
|
|
|
30146
|
-
function _createForOfIteratorHelper$
|
|
30147
|
-
function _unsupportedIterableToArray$
|
|
30148
|
-
function _arrayLikeToArray$
|
|
30147
|
+
function _createForOfIteratorHelper$b(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$b(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
30148
|
+
function _unsupportedIterableToArray$b(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$b(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$b(r, a) : void 0; } }
|
|
30149
|
+
function _arrayLikeToArray$b(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
30149
30150
|
|
|
30150
30151
|
/**
|
|
30151
30152
|
* useWidgetProviders Hook
|
|
@@ -30196,7 +30197,7 @@ var useWidgetProviders = function useWidgetProviders() {
|
|
|
30196
30197
|
// 1. Widget-level: stored directly on the layout item by handleSelectProvider
|
|
30197
30198
|
// 2. Workspace-level: stored as workspace.selectedProviders[widgetId][providerType]
|
|
30198
30199
|
var providers = {};
|
|
30199
|
-
var _iterator = _createForOfIteratorHelper$
|
|
30200
|
+
var _iterator = _createForOfIteratorHelper$b(providerDeclarations),
|
|
30200
30201
|
_step;
|
|
30201
30202
|
try {
|
|
30202
30203
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -30931,9 +30932,9 @@ var useNotifications = function useNotifications() {
|
|
|
30931
30932
|
};
|
|
30932
30933
|
};
|
|
30933
30934
|
|
|
30934
|
-
function _createForOfIteratorHelper$
|
|
30935
|
-
function _unsupportedIterableToArray$
|
|
30936
|
-
function _arrayLikeToArray$
|
|
30935
|
+
function _createForOfIteratorHelper$a(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$a(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
30936
|
+
function _unsupportedIterableToArray$a(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$a(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$a(r, a) : void 0; } }
|
|
30937
|
+
function _arrayLikeToArray$a(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
30937
30938
|
|
|
30938
30939
|
/**
|
|
30939
30940
|
* useScheduler Hook
|
|
@@ -31006,7 +31007,7 @@ var useScheduler = function useScheduler() {
|
|
|
31006
31007
|
if (pending && pending.length > 0) {
|
|
31007
31008
|
setPendingResults(pending);
|
|
31008
31009
|
// Call handlers for each pending result
|
|
31009
|
-
var _iterator = _createForOfIteratorHelper$
|
|
31010
|
+
var _iterator = _createForOfIteratorHelper$a(pending),
|
|
31010
31011
|
_step;
|
|
31011
31012
|
try {
|
|
31012
31013
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -31847,8 +31848,8 @@ function useMcpDashServer() {
|
|
|
31847
31848
|
};
|
|
31848
31849
|
}
|
|
31849
31850
|
|
|
31850
|
-
function ownKeys$
|
|
31851
|
-
function _objectSpread$
|
|
31851
|
+
function ownKeys$r(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
31852
|
+
function _objectSpread$r(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$r(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$r(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
31852
31853
|
var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
31853
31854
|
var theme = _ref.theme,
|
|
31854
31855
|
themeVariant = _ref.themeVariant,
|
|
@@ -31897,13 +31898,13 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
31897
31898
|
className: "flex flex-col space-y-4 p-4",
|
|
31898
31899
|
children: [/*#__PURE__*/jsxs("div", {
|
|
31899
31900
|
className: "flex flex-row bg-gray-900 p-4 space-x-4 rounded justify-between",
|
|
31900
|
-
children: [/*#__PURE__*/jsxs(Panel, _objectSpread$
|
|
31901
|
+
children: [/*#__PURE__*/jsxs(Panel, _objectSpread$r(_objectSpread$r({}, styles), {}, {
|
|
31901
31902
|
scrollable: false,
|
|
31902
31903
|
className: "rounded",
|
|
31903
31904
|
children: [/*#__PURE__*/jsx(Panel.Header, {
|
|
31904
31905
|
className: "text-xs uppercase font-bold",
|
|
31905
31906
|
children: "Panel"
|
|
31906
|
-
}), /*#__PURE__*/jsx(Panel.Body, _objectSpread$
|
|
31907
|
+
}), /*#__PURE__*/jsx(Panel.Body, _objectSpread$r(_objectSpread$r({}, styles), {}, {
|
|
31907
31908
|
onClick: function onClick() {
|
|
31908
31909
|
handleClickItem(themeObjects.PANEL, styles);
|
|
31909
31910
|
}
|
|
@@ -31911,14 +31912,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
31911
31912
|
className: "text-xs uppercase font-light",
|
|
31912
31913
|
children: getCSSStyleForClassname("backgroundColor", themeObjects.PANEL)
|
|
31913
31914
|
})]
|
|
31914
|
-
})), /*#__PURE__*/jsxs(Panel2, _objectSpread$
|
|
31915
|
+
})), /*#__PURE__*/jsxs(Panel2, _objectSpread$r(_objectSpread$r({
|
|
31915
31916
|
className: "rounded"
|
|
31916
31917
|
}, styles2), {}, {
|
|
31917
31918
|
scrollable: false,
|
|
31918
31919
|
children: [/*#__PURE__*/jsx(Panel2.Header, {
|
|
31919
31920
|
className: "text-xs uppercase font-bold",
|
|
31920
31921
|
children: "Panel 2"
|
|
31921
|
-
}), /*#__PURE__*/jsx(Panel2.Body, _objectSpread$
|
|
31922
|
+
}), /*#__PURE__*/jsx(Panel2.Body, _objectSpread$r(_objectSpread$r({}, styles2), {}, {
|
|
31922
31923
|
onClick: function onClick() {
|
|
31923
31924
|
handleClickItem(themeObjects.PANEL_2, styles2);
|
|
31924
31925
|
}
|
|
@@ -31926,14 +31927,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
31926
31927
|
className: "text-xs uppercase font-light",
|
|
31927
31928
|
children: getCSSStyleForClassname("backgroundColor", themeObjects.PANEL_2)
|
|
31928
31929
|
})]
|
|
31929
|
-
})), /*#__PURE__*/jsxs(Panel3, _objectSpread$
|
|
31930
|
+
})), /*#__PURE__*/jsxs(Panel3, _objectSpread$r(_objectSpread$r({
|
|
31930
31931
|
className: "rounded"
|
|
31931
31932
|
}, styles3), {}, {
|
|
31932
31933
|
scrollable: false,
|
|
31933
31934
|
children: [/*#__PURE__*/jsx(Panel3.Header, {
|
|
31934
31935
|
className: "text-xs uppercase font-bold",
|
|
31935
31936
|
children: "Panel 3"
|
|
31936
|
-
}), /*#__PURE__*/jsx(Panel3.Body, _objectSpread$
|
|
31937
|
+
}), /*#__PURE__*/jsx(Panel3.Body, _objectSpread$r(_objectSpread$r({}, styles3), {}, {
|
|
31937
31938
|
onClick: function onClick() {
|
|
31938
31939
|
handleClickItem(themeObjects.PANEL_3, styles3);
|
|
31939
31940
|
}
|
|
@@ -31942,68 +31943,68 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
31942
31943
|
children: getCSSStyleForClassname("backgroundColor", themeObjects.PANEL_3)
|
|
31943
31944
|
})]
|
|
31944
31945
|
}))]
|
|
31945
|
-
}), /*#__PURE__*/jsxs(Panel, _objectSpread$
|
|
31946
|
+
}), /*#__PURE__*/jsxs(Panel, _objectSpread$r(_objectSpread$r({
|
|
31946
31947
|
className: "p-6 rounded border-4 space-y-4",
|
|
31947
31948
|
scrollable: false,
|
|
31948
31949
|
height: "h-fit"
|
|
31949
31950
|
}, styles), {}, {
|
|
31950
|
-
children: [/*#__PURE__*/jsx(Heading, _objectSpread$
|
|
31951
|
+
children: [/*#__PURE__*/jsx(Heading, _objectSpread$r(_objectSpread$r({
|
|
31951
31952
|
title: "Heading"
|
|
31952
31953
|
}, headingStyles), {}, {
|
|
31953
31954
|
padding: false,
|
|
31954
31955
|
onClick: function onClick() {
|
|
31955
31956
|
return handleClickItem(themeObjects.HEADING, headingStyles);
|
|
31956
31957
|
}
|
|
31957
|
-
})), /*#__PURE__*/jsx(Heading2, _objectSpread$
|
|
31958
|
+
})), /*#__PURE__*/jsx(Heading2, _objectSpread$r(_objectSpread$r({
|
|
31958
31959
|
title: "Heading 2"
|
|
31959
31960
|
}, heading2Styles), {}, {
|
|
31960
31961
|
padding: false,
|
|
31961
31962
|
onClick: function onClick() {
|
|
31962
31963
|
return handleClickItem(themeObjects.HEADING_2, heading2Styles);
|
|
31963
31964
|
}
|
|
31964
|
-
})), /*#__PURE__*/jsx(Heading3, _objectSpread$
|
|
31965
|
+
})), /*#__PURE__*/jsx(Heading3, _objectSpread$r(_objectSpread$r({
|
|
31965
31966
|
title: "Heading 3"
|
|
31966
31967
|
}, heading3Styles), {}, {
|
|
31967
31968
|
padding: false,
|
|
31968
31969
|
onClick: function onClick() {
|
|
31969
31970
|
return handleClickItem(themeObjects.HEADING_3, heading3Styles);
|
|
31970
31971
|
}
|
|
31971
|
-
})), /*#__PURE__*/jsx(SubHeading, _objectSpread$
|
|
31972
|
+
})), /*#__PURE__*/jsx(SubHeading, _objectSpread$r(_objectSpread$r({
|
|
31972
31973
|
title: "Subheading"
|
|
31973
31974
|
}, subHeadingStyles), {}, {
|
|
31974
31975
|
padding: false,
|
|
31975
31976
|
onClick: function onClick() {
|
|
31976
31977
|
return handleClickItem(themeObjects.SUBHEADING, subHeadingStyles);
|
|
31977
31978
|
}
|
|
31978
|
-
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$
|
|
31979
|
+
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$r(_objectSpread$r({
|
|
31979
31980
|
title: "Subheading 2"
|
|
31980
31981
|
}, subHeading2Styles), {}, {
|
|
31981
31982
|
padding: false,
|
|
31982
31983
|
onClick: function onClick() {
|
|
31983
31984
|
return handleClickItem(themeObjects.SUBHEADING_2, subHeading2Styles);
|
|
31984
31985
|
}
|
|
31985
|
-
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$
|
|
31986
|
+
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$r(_objectSpread$r({
|
|
31986
31987
|
title: "Subheading"
|
|
31987
31988
|
}, subHeading3Styles), {}, {
|
|
31988
31989
|
padding: false,
|
|
31989
31990
|
onClick: function onClick() {
|
|
31990
31991
|
return handleClickItem(themeObjects.SUBHEADING_3, subHeading3Styles);
|
|
31991
31992
|
}
|
|
31992
|
-
})), /*#__PURE__*/jsx(Paragraph, _objectSpread$
|
|
31993
|
+
})), /*#__PURE__*/jsx(Paragraph, _objectSpread$r(_objectSpread$r({
|
|
31993
31994
|
text: "The quick brown fox jumps over the lazy dog."
|
|
31994
31995
|
}, paragraphStyles), {}, {
|
|
31995
31996
|
padding: false,
|
|
31996
31997
|
onClick: function onClick() {
|
|
31997
31998
|
return handleClickItem(themeObjects.PARAGRAPH, paragraphStyles);
|
|
31998
31999
|
}
|
|
31999
|
-
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$
|
|
32000
|
+
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$r(_objectSpread$r({
|
|
32000
32001
|
text: "The quick brown fox jumps over the lazy dog."
|
|
32001
32002
|
}, paragraph2Styles), {}, {
|
|
32002
32003
|
padding: false,
|
|
32003
32004
|
onClick: function onClick() {
|
|
32004
32005
|
return handleClickItem(themeObjects.PARAGRAPH_2, paragraph2Styles);
|
|
32005
32006
|
}
|
|
32006
|
-
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$
|
|
32007
|
+
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$r(_objectSpread$r({
|
|
32007
32008
|
text: "The quick brown fox jumps over the lazy dog."
|
|
32008
32009
|
}, paragraph3Styles), {}, {
|
|
32009
32010
|
padding: false,
|
|
@@ -32012,19 +32013,19 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32012
32013
|
}
|
|
32013
32014
|
})), /*#__PURE__*/jsxs("div", {
|
|
32014
32015
|
className: "flex flex-row space-x-2 w-full",
|
|
32015
|
-
children: [/*#__PURE__*/jsx(Button, _objectSpread$
|
|
32016
|
+
children: [/*#__PURE__*/jsx(Button, _objectSpread$r(_objectSpread$r({
|
|
32016
32017
|
title: "Button"
|
|
32017
32018
|
}, buttonStyles), {}, {
|
|
32018
32019
|
onClick: function onClick() {
|
|
32019
32020
|
return handleClickItem(themeObjects.BUTTON, buttonStyles);
|
|
32020
32021
|
}
|
|
32021
|
-
})), /*#__PURE__*/jsx(Button2, _objectSpread$
|
|
32022
|
+
})), /*#__PURE__*/jsx(Button2, _objectSpread$r(_objectSpread$r({
|
|
32022
32023
|
title: "Button 2"
|
|
32023
32024
|
}, button2Styles), {}, {
|
|
32024
32025
|
onClick: function onClick() {
|
|
32025
32026
|
return handleClickItem(themeObjects.BUTTON_2, button2Styles);
|
|
32026
32027
|
}
|
|
32027
|
-
})), /*#__PURE__*/jsx(Button3, _objectSpread$
|
|
32028
|
+
})), /*#__PURE__*/jsx(Button3, _objectSpread$r(_objectSpread$r({
|
|
32028
32029
|
title: "Button 3"
|
|
32029
32030
|
}, button3Styles), {}, {
|
|
32030
32031
|
onClick: function onClick() {
|
|
@@ -32035,14 +32036,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32035
32036
|
className: "flex flex-row space-x-4 w-full h-fit",
|
|
32036
32037
|
children: [/*#__PURE__*/jsxs("div", {
|
|
32037
32038
|
className: "flex flex-row space-x-2",
|
|
32038
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32039
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$r(_objectSpread$r({
|
|
32039
32040
|
text: "Button Icon",
|
|
32040
32041
|
icon: "pencil"
|
|
32041
32042
|
}, buttonIconStyles), {}, {
|
|
32042
32043
|
onClick: function onClick() {
|
|
32043
32044
|
return handleClickItem(themeObjects.BUTTON_ICON, buttonIconStyles);
|
|
32044
32045
|
}
|
|
32045
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32046
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$r(_objectSpread$r({
|
|
32046
32047
|
icon: "pencil"
|
|
32047
32048
|
}, buttonIconStyles), {}, {
|
|
32048
32049
|
onClick: function onClick() {
|
|
@@ -32051,14 +32052,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32051
32052
|
}))]
|
|
32052
32053
|
}), /*#__PURE__*/jsxs("div", {
|
|
32053
32054
|
className: "flex flex-row space-x-2",
|
|
32054
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32055
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$r(_objectSpread$r({
|
|
32055
32056
|
text: "Button Icon 2",
|
|
32056
32057
|
icon: "pencil"
|
|
32057
32058
|
}, buttonIconStyles), {}, {
|
|
32058
32059
|
onClick: function onClick() {
|
|
32059
32060
|
return handleClickItem(themeObjects.BUTTON_ICON_2, buttonIcon2Styles);
|
|
32060
32061
|
}
|
|
32061
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32062
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$r(_objectSpread$r({
|
|
32062
32063
|
icon: "pencil"
|
|
32063
32064
|
}, buttonIconStyles), {}, {
|
|
32064
32065
|
onClick: function onClick() {
|
|
@@ -32067,14 +32068,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32067
32068
|
}))]
|
|
32068
32069
|
}), /*#__PURE__*/jsxs("div", {
|
|
32069
32070
|
className: "flex flex-row space-x-2",
|
|
32070
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32071
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$r(_objectSpread$r({
|
|
32071
32072
|
text: "Button Icon 3",
|
|
32072
32073
|
icon: "pencil"
|
|
32073
32074
|
}, buttonIcon3Styles), {}, {
|
|
32074
32075
|
onClick: function onClick() {
|
|
32075
32076
|
return handleClickItem(themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
32076
32077
|
}
|
|
32077
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32078
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$r(_objectSpread$r({
|
|
32078
32079
|
icon: "pencil"
|
|
32079
32080
|
}, buttonIcon3Styles), {}, {
|
|
32080
32081
|
onClick: function onClick() {
|
|
@@ -32084,17 +32085,17 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32084
32085
|
})]
|
|
32085
32086
|
}), /*#__PURE__*/jsxs("div", {
|
|
32086
32087
|
className: "flex flex-col space-y-2 w-full",
|
|
32087
|
-
children: [/*#__PURE__*/jsx(MenuItem, _objectSpread$
|
|
32088
|
+
children: [/*#__PURE__*/jsx(MenuItem, _objectSpread$r(_objectSpread$r({}, menuItemStyles), {}, {
|
|
32088
32089
|
onClick: function onClick() {
|
|
32089
32090
|
return handleClickItem(themeObjects.MENU_ITEM, menuItemStyles);
|
|
32090
32091
|
},
|
|
32091
32092
|
children: "Menu Item"
|
|
32092
|
-
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$
|
|
32093
|
+
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$r(_objectSpread$r({}, menuItem2Styles), {}, {
|
|
32093
32094
|
onClick: function onClick() {
|
|
32094
32095
|
return handleClickItem(themeObjects.MENU_ITEM_2, menuItem2Styles);
|
|
32095
32096
|
},
|
|
32096
32097
|
children: "Menu Item 2"
|
|
32097
|
-
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$
|
|
32098
|
+
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$r(_objectSpread$r({}, menuItem3Styles), {}, {
|
|
32098
32099
|
onClick: function onClick() {
|
|
32099
32100
|
return handleClickItem(themeObjects.MENU_ITEM_3, menuItem3Styles);
|
|
32100
32101
|
},
|
|
@@ -32102,21 +32103,21 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32102
32103
|
}))]
|
|
32103
32104
|
}), /*#__PURE__*/jsxs("div", {
|
|
32104
32105
|
className: "flex flex-row space-x-2 w-full",
|
|
32105
|
-
children: [/*#__PURE__*/jsx(Tag, _objectSpread$
|
|
32106
|
+
children: [/*#__PURE__*/jsx(Tag, _objectSpread$r(_objectSpread$r({
|
|
32106
32107
|
text: "Tag",
|
|
32107
32108
|
icon: "pencil"
|
|
32108
32109
|
}, tagStyles), {}, {
|
|
32109
32110
|
onClick: function onClick() {
|
|
32110
32111
|
return handleClickItem(themeObjects.TAG, tagStyles);
|
|
32111
32112
|
}
|
|
32112
|
-
})), /*#__PURE__*/jsx(Tag2, _objectSpread$
|
|
32113
|
+
})), /*#__PURE__*/jsx(Tag2, _objectSpread$r(_objectSpread$r({
|
|
32113
32114
|
text: "Tag 2",
|
|
32114
32115
|
icon: "pencil"
|
|
32115
32116
|
}, tag2Styles), {}, {
|
|
32116
32117
|
onClick: function onClick() {
|
|
32117
32118
|
return handleClickItem(themeObjects.TAG_2, tag2Styles);
|
|
32118
32119
|
}
|
|
32119
|
-
})), /*#__PURE__*/jsx(Tag3, _objectSpread$
|
|
32120
|
+
})), /*#__PURE__*/jsx(Tag3, _objectSpread$r(_objectSpread$r({
|
|
32120
32121
|
text: "Tag 3",
|
|
32121
32122
|
icon: "pencil"
|
|
32122
32123
|
}, tag3Styles), {}, {
|
|
@@ -32125,67 +32126,67 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32125
32126
|
}
|
|
32126
32127
|
}))]
|
|
32127
32128
|
})]
|
|
32128
|
-
})), /*#__PURE__*/jsxs(Panel2, _objectSpread$
|
|
32129
|
+
})), /*#__PURE__*/jsxs(Panel2, _objectSpread$r(_objectSpread$r({
|
|
32129
32130
|
className: "p-6 rounded border-4 space-y-4",
|
|
32130
32131
|
height: "h-fit"
|
|
32131
32132
|
}, styles2), {}, {
|
|
32132
|
-
children: [/*#__PURE__*/jsx(Heading, _objectSpread$
|
|
32133
|
+
children: [/*#__PURE__*/jsx(Heading, _objectSpread$r(_objectSpread$r({
|
|
32133
32134
|
title: "Heading"
|
|
32134
32135
|
}, headingStyles), {}, {
|
|
32135
32136
|
padding: false,
|
|
32136
32137
|
onClick: function onClick() {
|
|
32137
32138
|
return handleClickItem(themeObjects.HEADING, headingStyles);
|
|
32138
32139
|
}
|
|
32139
|
-
})), /*#__PURE__*/jsx(Heading2, _objectSpread$
|
|
32140
|
+
})), /*#__PURE__*/jsx(Heading2, _objectSpread$r(_objectSpread$r({
|
|
32140
32141
|
title: "Heading 2"
|
|
32141
32142
|
}, heading2Styles), {}, {
|
|
32142
32143
|
padding: false,
|
|
32143
32144
|
onClick: function onClick() {
|
|
32144
32145
|
return handleClickItem(themeObjects.HEADING_2, heading2Styles);
|
|
32145
32146
|
}
|
|
32146
|
-
})), /*#__PURE__*/jsx(Heading3, _objectSpread$
|
|
32147
|
+
})), /*#__PURE__*/jsx(Heading3, _objectSpread$r(_objectSpread$r({
|
|
32147
32148
|
title: "Heading 3"
|
|
32148
32149
|
}, heading3Styles), {}, {
|
|
32149
32150
|
padding: false,
|
|
32150
32151
|
onClick: function onClick() {
|
|
32151
32152
|
return handleClickItem(themeObjects.HEADING_3, heading3Styles);
|
|
32152
32153
|
}
|
|
32153
|
-
})), /*#__PURE__*/jsx(SubHeading, _objectSpread$
|
|
32154
|
+
})), /*#__PURE__*/jsx(SubHeading, _objectSpread$r(_objectSpread$r({
|
|
32154
32155
|
title: "Subheading"
|
|
32155
32156
|
}, subHeadingStyles), {}, {
|
|
32156
32157
|
padding: false,
|
|
32157
32158
|
onClick: function onClick() {
|
|
32158
32159
|
return handleClickItem(themeObjects.SUBHEADING, subHeadingStyles);
|
|
32159
32160
|
}
|
|
32160
|
-
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$
|
|
32161
|
+
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$r(_objectSpread$r({
|
|
32161
32162
|
title: "Subheading 2"
|
|
32162
32163
|
}, subHeading2Styles), {}, {
|
|
32163
32164
|
padding: false,
|
|
32164
32165
|
onClick: function onClick() {
|
|
32165
32166
|
return handleClickItem(themeObjects.SUBHEADING_2, subHeading2Styles);
|
|
32166
32167
|
}
|
|
32167
|
-
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$
|
|
32168
|
+
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$r(_objectSpread$r({
|
|
32168
32169
|
title: "Subheading"
|
|
32169
32170
|
}, subHeading3Styles), {}, {
|
|
32170
32171
|
padding: false,
|
|
32171
32172
|
onClick: function onClick() {
|
|
32172
32173
|
return handleClickItem(themeObjects.SUBHEADING_3, subHeading3Styles);
|
|
32173
32174
|
}
|
|
32174
|
-
})), /*#__PURE__*/jsx(Paragraph, _objectSpread$
|
|
32175
|
+
})), /*#__PURE__*/jsx(Paragraph, _objectSpread$r(_objectSpread$r({
|
|
32175
32176
|
text: "The quick brown fox jumps over the lazy dog."
|
|
32176
32177
|
}, paragraphStyles), {}, {
|
|
32177
32178
|
padding: false,
|
|
32178
32179
|
onClick: function onClick() {
|
|
32179
32180
|
return handleClickItem(themeObjects.PARAGRAPH, paragraphStyles);
|
|
32180
32181
|
}
|
|
32181
|
-
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$
|
|
32182
|
+
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$r(_objectSpread$r({
|
|
32182
32183
|
text: "The quick brown fox jumps over the lazy dog."
|
|
32183
32184
|
}, paragraph2Styles), {}, {
|
|
32184
32185
|
padding: false,
|
|
32185
32186
|
onClick: function onClick() {
|
|
32186
32187
|
return handleClickItem(themeObjects.PARAGRAPH_2, paragraph2Styles);
|
|
32187
32188
|
}
|
|
32188
|
-
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$
|
|
32189
|
+
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$r(_objectSpread$r({
|
|
32189
32190
|
text: "The quick brown fox jumps over the lazy dog."
|
|
32190
32191
|
}, paragraph3Styles), {}, {
|
|
32191
32192
|
padding: false,
|
|
@@ -32194,19 +32195,19 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32194
32195
|
}
|
|
32195
32196
|
})), /*#__PURE__*/jsxs("div", {
|
|
32196
32197
|
className: "flex flex-row space-x-2 w-full",
|
|
32197
|
-
children: [/*#__PURE__*/jsx(Button, _objectSpread$
|
|
32198
|
+
children: [/*#__PURE__*/jsx(Button, _objectSpread$r(_objectSpread$r({
|
|
32198
32199
|
title: "Button"
|
|
32199
32200
|
}, buttonStyles), {}, {
|
|
32200
32201
|
onClick: function onClick() {
|
|
32201
32202
|
return handleClickItem(themeObjects.BUTTON, buttonStyles);
|
|
32202
32203
|
}
|
|
32203
|
-
})), /*#__PURE__*/jsx(Button2, _objectSpread$
|
|
32204
|
+
})), /*#__PURE__*/jsx(Button2, _objectSpread$r(_objectSpread$r({
|
|
32204
32205
|
title: "Button 2"
|
|
32205
32206
|
}, button2Styles), {}, {
|
|
32206
32207
|
onClick: function onClick() {
|
|
32207
32208
|
return handleClickItem(themeObjects.BUTTON_2, button2Styles);
|
|
32208
32209
|
}
|
|
32209
|
-
})), /*#__PURE__*/jsx(Button3, _objectSpread$
|
|
32210
|
+
})), /*#__PURE__*/jsx(Button3, _objectSpread$r(_objectSpread$r({
|
|
32210
32211
|
title: "Button 3"
|
|
32211
32212
|
}, button3Styles), {}, {
|
|
32212
32213
|
onClick: function onClick() {
|
|
@@ -32217,14 +32218,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32217
32218
|
className: "flex flex-row space-x-4 w-full",
|
|
32218
32219
|
children: [/*#__PURE__*/jsxs("div", {
|
|
32219
32220
|
className: "flex flex-row space-x-2",
|
|
32220
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32221
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$r(_objectSpread$r({
|
|
32221
32222
|
text: "Button Icon",
|
|
32222
32223
|
icon: "pencil"
|
|
32223
32224
|
}, buttonIconStyles), {}, {
|
|
32224
32225
|
onClick: function onClick() {
|
|
32225
32226
|
return handleClickItem(themeObjects.BUTTON_ICON, buttonIconStyles);
|
|
32226
32227
|
}
|
|
32227
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32228
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$r(_objectSpread$r({
|
|
32228
32229
|
icon: "pencil"
|
|
32229
32230
|
}, buttonIconStyles), {}, {
|
|
32230
32231
|
onClick: function onClick() {
|
|
@@ -32233,14 +32234,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32233
32234
|
}))]
|
|
32234
32235
|
}), /*#__PURE__*/jsxs("div", {
|
|
32235
32236
|
className: "flex flex-row space-x-2",
|
|
32236
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32237
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$r(_objectSpread$r({
|
|
32237
32238
|
text: "Button Icon 2",
|
|
32238
32239
|
icon: "pencil"
|
|
32239
32240
|
}, buttonIconStyles), {}, {
|
|
32240
32241
|
onClick: function onClick() {
|
|
32241
32242
|
return handleClickItem(themeObjects.BUTTON_ICON_2, buttonIcon2Styles);
|
|
32242
32243
|
}
|
|
32243
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32244
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$r(_objectSpread$r({
|
|
32244
32245
|
icon: "pencil"
|
|
32245
32246
|
}, buttonIconStyles), {}, {
|
|
32246
32247
|
onClick: function onClick() {
|
|
@@ -32249,14 +32250,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32249
32250
|
}))]
|
|
32250
32251
|
}), /*#__PURE__*/jsxs("div", {
|
|
32251
32252
|
className: "flex flex-row space-x-2",
|
|
32252
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32253
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$r(_objectSpread$r({
|
|
32253
32254
|
text: "Button Icon 3",
|
|
32254
32255
|
icon: "pencil"
|
|
32255
32256
|
}, buttonIcon3Styles), {}, {
|
|
32256
32257
|
onClick: function onClick() {
|
|
32257
32258
|
return handleClickItem(themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
32258
32259
|
}
|
|
32259
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32260
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$r(_objectSpread$r({
|
|
32260
32261
|
icon: "pencil"
|
|
32261
32262
|
}, buttonIcon3Styles), {}, {
|
|
32262
32263
|
onClick: function onClick() {
|
|
@@ -32266,17 +32267,17 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32266
32267
|
})]
|
|
32267
32268
|
}), /*#__PURE__*/jsxs("div", {
|
|
32268
32269
|
className: "flex flex-col space-y-2 w-full",
|
|
32269
|
-
children: [/*#__PURE__*/jsx(MenuItem, _objectSpread$
|
|
32270
|
+
children: [/*#__PURE__*/jsx(MenuItem, _objectSpread$r(_objectSpread$r({}, menuItemStyles), {}, {
|
|
32270
32271
|
onClick: function onClick() {
|
|
32271
32272
|
return handleClickItem(themeObjects.MENU_ITEM, menuItemStyles);
|
|
32272
32273
|
},
|
|
32273
32274
|
children: "Menu Item"
|
|
32274
|
-
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$
|
|
32275
|
+
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$r(_objectSpread$r({}, menuItem2Styles), {}, {
|
|
32275
32276
|
onClick: function onClick() {
|
|
32276
32277
|
return handleClickItem(themeObjects.MENU_ITEM_2, menuItem2Styles);
|
|
32277
32278
|
},
|
|
32278
32279
|
children: "Menu Item 2"
|
|
32279
|
-
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$
|
|
32280
|
+
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$r(_objectSpread$r({}, menuItem3Styles), {}, {
|
|
32280
32281
|
onClick: function onClick() {
|
|
32281
32282
|
return handleClickItem(themeObjects.MENU_ITEM_3, menuItem3Styles);
|
|
32282
32283
|
},
|
|
@@ -32284,21 +32285,21 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32284
32285
|
}))]
|
|
32285
32286
|
}), /*#__PURE__*/jsxs("div", {
|
|
32286
32287
|
className: "flex flex-row space-x-2 w-full",
|
|
32287
|
-
children: [/*#__PURE__*/jsx(Tag, _objectSpread$
|
|
32288
|
+
children: [/*#__PURE__*/jsx(Tag, _objectSpread$r(_objectSpread$r({
|
|
32288
32289
|
text: "Tag",
|
|
32289
32290
|
icon: "pencil"
|
|
32290
32291
|
}, tagStyles), {}, {
|
|
32291
32292
|
onClick: function onClick() {
|
|
32292
32293
|
return handleClickItem(themeObjects.TAG, tagStyles);
|
|
32293
32294
|
}
|
|
32294
|
-
})), /*#__PURE__*/jsx(Tag2, _objectSpread$
|
|
32295
|
+
})), /*#__PURE__*/jsx(Tag2, _objectSpread$r(_objectSpread$r({
|
|
32295
32296
|
text: "Tag 2",
|
|
32296
32297
|
icon: "pencil"
|
|
32297
32298
|
}, tag2Styles), {}, {
|
|
32298
32299
|
onClick: function onClick() {
|
|
32299
32300
|
return handleClickItem(themeObjects.TAG_2, tag2Styles);
|
|
32300
32301
|
}
|
|
32301
|
-
})), /*#__PURE__*/jsx(Tag3, _objectSpread$
|
|
32302
|
+
})), /*#__PURE__*/jsx(Tag3, _objectSpread$r(_objectSpread$r({
|
|
32302
32303
|
text: "Tag 3",
|
|
32303
32304
|
icon: "pencil"
|
|
32304
32305
|
}, tag3Styles), {}, {
|
|
@@ -32307,68 +32308,68 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32307
32308
|
}
|
|
32308
32309
|
}))]
|
|
32309
32310
|
})]
|
|
32310
|
-
})), /*#__PURE__*/jsxs(Panel3, _objectSpread$
|
|
32311
|
+
})), /*#__PURE__*/jsxs(Panel3, _objectSpread$r(_objectSpread$r({
|
|
32311
32312
|
className: "p-6 rounded border-4 space-y-4"
|
|
32312
32313
|
}, styles3), {}, {
|
|
32313
32314
|
padding: false,
|
|
32314
32315
|
height: "h-fit",
|
|
32315
|
-
children: [/*#__PURE__*/jsx(Heading, _objectSpread$
|
|
32316
|
+
children: [/*#__PURE__*/jsx(Heading, _objectSpread$r(_objectSpread$r({
|
|
32316
32317
|
title: "Heading"
|
|
32317
32318
|
}, headingStyles), {}, {
|
|
32318
32319
|
padding: false,
|
|
32319
32320
|
onClick: function onClick() {
|
|
32320
32321
|
return handleClickItem(themeObjects.HEADING, headingStyles);
|
|
32321
32322
|
}
|
|
32322
|
-
})), /*#__PURE__*/jsx(Heading2, _objectSpread$
|
|
32323
|
+
})), /*#__PURE__*/jsx(Heading2, _objectSpread$r(_objectSpread$r({
|
|
32323
32324
|
title: "Heading 2"
|
|
32324
32325
|
}, heading2Styles), {}, {
|
|
32325
32326
|
padding: false,
|
|
32326
32327
|
onClick: function onClick() {
|
|
32327
32328
|
return handleClickItem(themeObjects.HEADING_2, heading2Styles);
|
|
32328
32329
|
}
|
|
32329
|
-
})), /*#__PURE__*/jsx(Heading3, _objectSpread$
|
|
32330
|
+
})), /*#__PURE__*/jsx(Heading3, _objectSpread$r(_objectSpread$r({
|
|
32330
32331
|
title: "Heading 3"
|
|
32331
32332
|
}, heading3Styles), {}, {
|
|
32332
32333
|
padding: false,
|
|
32333
32334
|
onClick: function onClick() {
|
|
32334
32335
|
return handleClickItem(themeObjects.HEADING_3, heading3Styles);
|
|
32335
32336
|
}
|
|
32336
|
-
})), /*#__PURE__*/jsx(SubHeading, _objectSpread$
|
|
32337
|
+
})), /*#__PURE__*/jsx(SubHeading, _objectSpread$r(_objectSpread$r({
|
|
32337
32338
|
title: "Subheading"
|
|
32338
32339
|
}, subHeadingStyles), {}, {
|
|
32339
32340
|
padding: false,
|
|
32340
32341
|
onClick: function onClick() {
|
|
32341
32342
|
return handleClickItem(themeObjects.SUBHEADING, subHeadingStyles);
|
|
32342
32343
|
}
|
|
32343
|
-
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$
|
|
32344
|
+
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$r(_objectSpread$r({
|
|
32344
32345
|
title: "Subheading 2"
|
|
32345
32346
|
}, subHeading2Styles), {}, {
|
|
32346
32347
|
padding: false,
|
|
32347
32348
|
onClick: function onClick() {
|
|
32348
32349
|
return handleClickItem(themeObjects.SUBHEADING_2, subHeading2Styles);
|
|
32349
32350
|
}
|
|
32350
|
-
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$
|
|
32351
|
+
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$r(_objectSpread$r({
|
|
32351
32352
|
title: "Subheading"
|
|
32352
32353
|
}, subHeading3Styles), {}, {
|
|
32353
32354
|
padding: false,
|
|
32354
32355
|
onClick: function onClick() {
|
|
32355
32356
|
return handleClickItem(themeObjects.SUBHEADING_3, subHeading3Styles);
|
|
32356
32357
|
}
|
|
32357
|
-
})), /*#__PURE__*/jsx(Paragraph, _objectSpread$
|
|
32358
|
+
})), /*#__PURE__*/jsx(Paragraph, _objectSpread$r(_objectSpread$r({
|
|
32358
32359
|
text: "The quick brown fox jumps over the lazy dog."
|
|
32359
32360
|
}, paragraphStyles), {}, {
|
|
32360
32361
|
padding: false,
|
|
32361
32362
|
onClick: function onClick() {
|
|
32362
32363
|
return handleClickItem(themeObjects.PARAGRAPH, paragraphStyles);
|
|
32363
32364
|
}
|
|
32364
|
-
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$
|
|
32365
|
+
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$r(_objectSpread$r({
|
|
32365
32366
|
text: "The quick brown fox jumps over the lazy dog."
|
|
32366
32367
|
}, paragraph2Styles), {}, {
|
|
32367
32368
|
padding: false,
|
|
32368
32369
|
onClick: function onClick() {
|
|
32369
32370
|
return handleClickItem(themeObjects.PARAGRAPH, paragraph2Styles);
|
|
32370
32371
|
}
|
|
32371
|
-
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$
|
|
32372
|
+
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$r(_objectSpread$r({
|
|
32372
32373
|
text: "The quick brown fox jumps over the lazy dog."
|
|
32373
32374
|
}, paragraph3Styles), {}, {
|
|
32374
32375
|
padding: false,
|
|
@@ -32377,19 +32378,19 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32377
32378
|
}
|
|
32378
32379
|
})), /*#__PURE__*/jsxs("div", {
|
|
32379
32380
|
className: "flex flex-row space-x-2 w-full",
|
|
32380
|
-
children: [/*#__PURE__*/jsx(Button, _objectSpread$
|
|
32381
|
+
children: [/*#__PURE__*/jsx(Button, _objectSpread$r(_objectSpread$r({
|
|
32381
32382
|
title: "Button"
|
|
32382
32383
|
}, buttonStyles), {}, {
|
|
32383
32384
|
onClick: function onClick() {
|
|
32384
32385
|
return handleClickItem(themeObjects.BUTTON, buttonStyles);
|
|
32385
32386
|
}
|
|
32386
|
-
})), /*#__PURE__*/jsx(Button2, _objectSpread$
|
|
32387
|
+
})), /*#__PURE__*/jsx(Button2, _objectSpread$r(_objectSpread$r({
|
|
32387
32388
|
title: "Button 2"
|
|
32388
32389
|
}, button2Styles), {}, {
|
|
32389
32390
|
onClick: function onClick() {
|
|
32390
32391
|
return handleClickItem(themeObjects.BUTTON_2, button2Styles);
|
|
32391
32392
|
}
|
|
32392
|
-
})), /*#__PURE__*/jsx(Button3, _objectSpread$
|
|
32393
|
+
})), /*#__PURE__*/jsx(Button3, _objectSpread$r(_objectSpread$r({
|
|
32393
32394
|
title: "Button 3"
|
|
32394
32395
|
}, button3Styles), {}, {
|
|
32395
32396
|
onClick: function onClick() {
|
|
@@ -32400,14 +32401,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32400
32401
|
className: "flex flex-row space-x-4 w-full",
|
|
32401
32402
|
children: [/*#__PURE__*/jsxs("div", {
|
|
32402
32403
|
className: "flex flex-row space-x-2",
|
|
32403
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32404
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$r(_objectSpread$r({
|
|
32404
32405
|
text: "Button Icon",
|
|
32405
32406
|
icon: "pencil"
|
|
32406
32407
|
}, buttonIconStyles), {}, {
|
|
32407
32408
|
onClick: function onClick() {
|
|
32408
32409
|
return handleClickItem(themeObjects.BUTTON_ICON, buttonIconStyles);
|
|
32409
32410
|
}
|
|
32410
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32411
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$r(_objectSpread$r({
|
|
32411
32412
|
icon: "pencil"
|
|
32412
32413
|
}, buttonIconStyles), {}, {
|
|
32413
32414
|
onClick: function onClick() {
|
|
@@ -32416,14 +32417,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32416
32417
|
}))]
|
|
32417
32418
|
}), /*#__PURE__*/jsxs("div", {
|
|
32418
32419
|
className: "flex flex-row space-x-2",
|
|
32419
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32420
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$r(_objectSpread$r({
|
|
32420
32421
|
text: "Button Icon 2",
|
|
32421
32422
|
icon: "pencil"
|
|
32422
32423
|
}, buttonIconStyles), {}, {
|
|
32423
32424
|
onClick: function onClick() {
|
|
32424
32425
|
return handleClickItem(themeObjects.BUTTON_ICON_2, buttonIcon2Styles);
|
|
32425
32426
|
}
|
|
32426
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32427
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$r(_objectSpread$r({
|
|
32427
32428
|
icon: "pencil"
|
|
32428
32429
|
}, buttonIconStyles), {}, {
|
|
32429
32430
|
onClick: function onClick() {
|
|
@@ -32432,14 +32433,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32432
32433
|
}))]
|
|
32433
32434
|
}), /*#__PURE__*/jsxs("div", {
|
|
32434
32435
|
className: "flex flex-row space-x-2",
|
|
32435
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32436
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$r(_objectSpread$r({
|
|
32436
32437
|
text: "Button Icon 3",
|
|
32437
32438
|
icon: "pencil"
|
|
32438
32439
|
}, buttonIcon3Styles), {}, {
|
|
32439
32440
|
onClick: function onClick() {
|
|
32440
32441
|
return handleClickItem(themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
32441
32442
|
}
|
|
32442
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32443
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$r(_objectSpread$r({
|
|
32443
32444
|
icon: "pencil"
|
|
32444
32445
|
}, buttonIcon3Styles), {}, {
|
|
32445
32446
|
onClick: function onClick() {
|
|
@@ -32449,17 +32450,17 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32449
32450
|
})]
|
|
32450
32451
|
}), /*#__PURE__*/jsxs("div", {
|
|
32451
32452
|
className: "flex flex-col space-y-2 w-full",
|
|
32452
|
-
children: [/*#__PURE__*/jsx(MenuItem, _objectSpread$
|
|
32453
|
+
children: [/*#__PURE__*/jsx(MenuItem, _objectSpread$r(_objectSpread$r({}, menuItemStyles), {}, {
|
|
32453
32454
|
onClick: function onClick() {
|
|
32454
32455
|
return handleClickItem(themeObjects.MENU_ITEM, menuItemStyles);
|
|
32455
32456
|
},
|
|
32456
32457
|
children: "Menu Item"
|
|
32457
|
-
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$
|
|
32458
|
+
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$r(_objectSpread$r({}, menuItem2Styles), {}, {
|
|
32458
32459
|
onClick: function onClick() {
|
|
32459
32460
|
return handleClickItem(themeObjects.MENU_ITEM_2, menuItem2Styles);
|
|
32460
32461
|
},
|
|
32461
32462
|
children: "Menu Item 2"
|
|
32462
|
-
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$
|
|
32463
|
+
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$r(_objectSpread$r({}, menuItem3Styles), {}, {
|
|
32463
32464
|
onClick: function onClick() {
|
|
32464
32465
|
return handleClickItem(themeObjects.MENU_ITEM_3, menuItem3Styles);
|
|
32465
32466
|
},
|
|
@@ -32467,21 +32468,21 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32467
32468
|
}))]
|
|
32468
32469
|
}), /*#__PURE__*/jsxs("div", {
|
|
32469
32470
|
className: "flex flex-row space-x-2 w-full",
|
|
32470
|
-
children: [/*#__PURE__*/jsx(Tag, _objectSpread$
|
|
32471
|
+
children: [/*#__PURE__*/jsx(Tag, _objectSpread$r(_objectSpread$r({
|
|
32471
32472
|
text: "Tag",
|
|
32472
32473
|
icon: "pencil"
|
|
32473
32474
|
}, tagStyles), {}, {
|
|
32474
32475
|
onClick: function onClick() {
|
|
32475
32476
|
return handleClickItem(themeObjects.TAG, tagStyles);
|
|
32476
32477
|
}
|
|
32477
|
-
})), /*#__PURE__*/jsx(Tag2, _objectSpread$
|
|
32478
|
+
})), /*#__PURE__*/jsx(Tag2, _objectSpread$r(_objectSpread$r({
|
|
32478
32479
|
text: "Tag 2",
|
|
32479
32480
|
icon: "pencil"
|
|
32480
32481
|
}, tag2Styles), {}, {
|
|
32481
32482
|
onClick: function onClick() {
|
|
32482
32483
|
return handleClickItem(themeObjects.TAG_2, tag2Styles);
|
|
32483
32484
|
}
|
|
32484
|
-
})), /*#__PURE__*/jsx(Tag3, _objectSpread$
|
|
32485
|
+
})), /*#__PURE__*/jsx(Tag3, _objectSpread$r(_objectSpread$r({
|
|
32485
32486
|
text: "Tag 3",
|
|
32486
32487
|
icon: "pencil"
|
|
32487
32488
|
}, tag3Styles), {}, {
|
|
@@ -32490,57 +32491,57 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32490
32491
|
}
|
|
32491
32492
|
}))]
|
|
32492
32493
|
})]
|
|
32493
|
-
})), /*#__PURE__*/jsxs(Panel2, _objectSpread$
|
|
32494
|
+
})), /*#__PURE__*/jsxs(Panel2, _objectSpread$r(_objectSpread$r({
|
|
32494
32495
|
className: "p-6 rounded border-4 space-y-4"
|
|
32495
32496
|
}, styles2), {}, {
|
|
32496
32497
|
height: "h-fit",
|
|
32497
32498
|
padding: false,
|
|
32498
|
-
children: [/*#__PURE__*/jsx(Heading2, _objectSpread$
|
|
32499
|
+
children: [/*#__PURE__*/jsx(Heading2, _objectSpread$r(_objectSpread$r({
|
|
32499
32500
|
title: "Heading 2"
|
|
32500
32501
|
}, heading2Styles), {}, {
|
|
32501
32502
|
padding: false,
|
|
32502
32503
|
onClick: function onClick() {
|
|
32503
32504
|
return handleClickItem(themeObjects.HEADING_2, heading2Styles);
|
|
32504
32505
|
}
|
|
32505
|
-
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$
|
|
32506
|
+
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$r(_objectSpread$r({
|
|
32506
32507
|
title: "Subheading 2"
|
|
32507
32508
|
}, subHeading2Styles), {}, {
|
|
32508
32509
|
padding: false,
|
|
32509
32510
|
onClick: function onClick() {
|
|
32510
32511
|
return handleClickItem(themeObjects.SUBHEADING_2, subHeading2Styles);
|
|
32511
32512
|
}
|
|
32512
|
-
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$
|
|
32513
|
+
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$r(_objectSpread$r({
|
|
32513
32514
|
text: "Paragraph 2 - The quick brown fox jumps over the lazy dog."
|
|
32514
32515
|
}, paragraph2Styles), {}, {
|
|
32515
32516
|
padding: false,
|
|
32516
32517
|
onClick: function onClick() {
|
|
32517
32518
|
return handleClickItem(themeObjects.PARAGRAPH_2, paragraph2Styles);
|
|
32518
32519
|
}
|
|
32519
|
-
})), /*#__PURE__*/jsx(Button2, _objectSpread$
|
|
32520
|
+
})), /*#__PURE__*/jsx(Button2, _objectSpread$r(_objectSpread$r({
|
|
32520
32521
|
title: "Button"
|
|
32521
32522
|
}, button2Styles), {}, {
|
|
32522
32523
|
onClick: function onClick() {
|
|
32523
32524
|
return handleClickItem(themeObjects.BUTTON_2, button2Styles);
|
|
32524
32525
|
}
|
|
32525
|
-
})), /*#__PURE__*/jsx(ButtonIcon2, _objectSpread$
|
|
32526
|
+
})), /*#__PURE__*/jsx(ButtonIcon2, _objectSpread$r(_objectSpread$r({
|
|
32526
32527
|
text: "Button Icon",
|
|
32527
32528
|
icon: "pencil"
|
|
32528
32529
|
}, buttonIcon2Styles), {}, {
|
|
32529
32530
|
onClick: function onClick() {
|
|
32530
32531
|
return handleClickItem(themeObjects.BUTTON_ICON_2, buttonIcon2Styles);
|
|
32531
32532
|
}
|
|
32532
|
-
})), /*#__PURE__*/jsx(ButtonIcon2, _objectSpread$
|
|
32533
|
+
})), /*#__PURE__*/jsx(ButtonIcon2, _objectSpread$r(_objectSpread$r({
|
|
32533
32534
|
icon: "pencil"
|
|
32534
32535
|
}, buttonIcon2Styles), {}, {
|
|
32535
32536
|
onClick: function onClick() {
|
|
32536
32537
|
return handleClickItem(themeObjects.BUTTON_ICON_2, buttonIconStyles);
|
|
32537
32538
|
}
|
|
32538
|
-
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$
|
|
32539
|
+
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$r(_objectSpread$r({}, menuItem2Styles), {}, {
|
|
32539
32540
|
onClick: function onClick() {
|
|
32540
32541
|
return handleClickItem(themeObjects.MENU_ITEM_2, menuItem2Styles);
|
|
32541
32542
|
},
|
|
32542
32543
|
children: "Menu Item"
|
|
32543
|
-
})), /*#__PURE__*/jsx(Tag2, _objectSpread$
|
|
32544
|
+
})), /*#__PURE__*/jsx(Tag2, _objectSpread$r(_objectSpread$r({
|
|
32544
32545
|
text: "Tag 2",
|
|
32545
32546
|
icon: "pencil"
|
|
32546
32547
|
}, tag2Styles), {}, {
|
|
@@ -32548,57 +32549,57 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32548
32549
|
return handleClickItem(themeObjects.TAG_2, tag2Styles);
|
|
32549
32550
|
}
|
|
32550
32551
|
}))]
|
|
32551
|
-
})), /*#__PURE__*/jsxs(Panel3, _objectSpread$
|
|
32552
|
+
})), /*#__PURE__*/jsxs(Panel3, _objectSpread$r(_objectSpread$r({
|
|
32552
32553
|
className: "p-6 rounded border-4 space-y-4"
|
|
32553
32554
|
}, styles3), {}, {
|
|
32554
32555
|
height: "h-fit",
|
|
32555
32556
|
padding: false,
|
|
32556
|
-
children: [/*#__PURE__*/jsx(Heading3, _objectSpread$
|
|
32557
|
+
children: [/*#__PURE__*/jsx(Heading3, _objectSpread$r(_objectSpread$r({
|
|
32557
32558
|
title: "Heading 3"
|
|
32558
32559
|
}, heading3Styles), {}, {
|
|
32559
32560
|
padding: false,
|
|
32560
32561
|
onClick: function onClick() {
|
|
32561
32562
|
return handleClickItem(themeObjects.HEADING_3, heading3Styles);
|
|
32562
32563
|
}
|
|
32563
|
-
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$
|
|
32564
|
+
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$r(_objectSpread$r({
|
|
32564
32565
|
title: "Subheading"
|
|
32565
32566
|
}, subHeading3Styles), {}, {
|
|
32566
32567
|
padding: false,
|
|
32567
32568
|
onClick: function onClick() {
|
|
32568
32569
|
return handleClickItem(themeObjects.SUBHEADING_3, subHeading3Styles);
|
|
32569
32570
|
}
|
|
32570
|
-
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$
|
|
32571
|
+
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$r(_objectSpread$r({
|
|
32571
32572
|
text: "Paragraph 3 - The quick brown fox jumps over the lazy dog."
|
|
32572
32573
|
}, paragraph3Styles), {}, {
|
|
32573
32574
|
padding: false,
|
|
32574
32575
|
onClick: function onClick() {
|
|
32575
32576
|
return handleClickItem(themeObjects.PARAGRAPH_3, paragraph3Styles);
|
|
32576
32577
|
}
|
|
32577
|
-
})), /*#__PURE__*/jsx(Button3, _objectSpread$
|
|
32578
|
+
})), /*#__PURE__*/jsx(Button3, _objectSpread$r(_objectSpread$r({
|
|
32578
32579
|
title: "Button"
|
|
32579
32580
|
}, button3Styles), {}, {
|
|
32580
32581
|
onClick: function onClick() {
|
|
32581
32582
|
return handleClickItem(themeObjects.BUTTON_3, button3Styles);
|
|
32582
32583
|
}
|
|
32583
|
-
})), /*#__PURE__*/jsx(ButtonIcon3, _objectSpread$
|
|
32584
|
+
})), /*#__PURE__*/jsx(ButtonIcon3, _objectSpread$r(_objectSpread$r({
|
|
32584
32585
|
text: "Button Icon 3",
|
|
32585
32586
|
icon: "pencil"
|
|
32586
32587
|
}, buttonIcon3Styles), {}, {
|
|
32587
32588
|
onClick: function onClick() {
|
|
32588
32589
|
return handleClickItem(themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
32589
32590
|
}
|
|
32590
|
-
})), /*#__PURE__*/jsx(ButtonIcon3, _objectSpread$
|
|
32591
|
+
})), /*#__PURE__*/jsx(ButtonIcon3, _objectSpread$r(_objectSpread$r({
|
|
32591
32592
|
icon: "pencil"
|
|
32592
32593
|
}, buttonIcon3Styles), {}, {
|
|
32593
32594
|
onClick: function onClick() {
|
|
32594
32595
|
return handleClickItem(themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
32595
32596
|
}
|
|
32596
|
-
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$
|
|
32597
|
+
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$r(_objectSpread$r({}, menuItem3Styles), {}, {
|
|
32597
32598
|
onClick: function onClick() {
|
|
32598
32599
|
return handleClickItem(themeObjects.MENU_ITEM_3, menuItem3Styles);
|
|
32599
32600
|
},
|
|
32600
32601
|
children: "Menu Item"
|
|
32601
|
-
})), /*#__PURE__*/jsx(Tag3, _objectSpread$
|
|
32602
|
+
})), /*#__PURE__*/jsx(Tag3, _objectSpread$r(_objectSpread$r({
|
|
32602
32603
|
text: "Tag",
|
|
32603
32604
|
icon: "pencil"
|
|
32604
32605
|
}, tag3Styles), {}, {
|
|
@@ -32647,8 +32648,8 @@ var ThemePane = function ThemePane(_ref) {
|
|
|
32647
32648
|
};
|
|
32648
32649
|
|
|
32649
32650
|
var _excluded$2 = ["colorFromTheme", "colorName", "shade", "variant", "colorType", "colorLevelName", "selected", "onClick", "onMouseOver", "width", "height"];
|
|
32650
|
-
function ownKeys$
|
|
32651
|
-
function _objectSpread$
|
|
32651
|
+
function ownKeys$q(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
32652
|
+
function _objectSpread$q(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$q(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$q(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
32652
32653
|
var ColorTile = function ColorTile(_ref) {
|
|
32653
32654
|
var _ref$colorFromTheme = _ref.colorFromTheme,
|
|
32654
32655
|
colorFromTheme = _ref$colorFromTheme === void 0 ? null : _ref$colorFromTheme,
|
|
@@ -32673,7 +32674,7 @@ var ColorTile = function ColorTile(_ref) {
|
|
|
32673
32674
|
_ref$height = _ref.height,
|
|
32674
32675
|
height = _ref$height === void 0 ? "h-10" : _ref$height,
|
|
32675
32676
|
rest = _objectWithoutProperties(_ref, _excluded$2);
|
|
32676
|
-
var c = ColorModel(_objectSpread$
|
|
32677
|
+
var c = ColorModel(_objectSpread$q({
|
|
32677
32678
|
colorFromTheme: colorFromTheme,
|
|
32678
32679
|
colorName: colorName,
|
|
32679
32680
|
colorType: colorType,
|
|
@@ -32701,10 +32702,10 @@ var ColorTile = function ColorTile(_ref) {
|
|
|
32701
32702
|
return /*#__PURE__*/jsx("div", {
|
|
32702
32703
|
className: "flex flex-col rounded-lg cursor-pointer items-center justify-center border-2 text-xs ".concat(selected === true ? "border-yellow-500" : "border-gray-800", " hover:border-yellow-500 border-gray-800 ").concat(c["class"], " ").concat(width, " ").concat(height),
|
|
32703
32704
|
onClick: function onClick() {
|
|
32704
|
-
return _onClick !== null ? _onClick(_objectSpread$
|
|
32705
|
+
return _onClick !== null ? _onClick(_objectSpread$q(_objectSpread$q({}, c), rest)) : null;
|
|
32705
32706
|
},
|
|
32706
32707
|
onMouseOver: function onMouseOver() {
|
|
32707
|
-
return _onMouseOver !== null ? _onMouseOver(_objectSpread$
|
|
32708
|
+
return _onMouseOver !== null ? _onMouseOver(_objectSpread$q(_objectSpread$q({}, c), rest)) : null;
|
|
32708
32709
|
},
|
|
32709
32710
|
children: "\xA0"
|
|
32710
32711
|
});
|
|
@@ -33887,8 +33888,8 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
33887
33888
|
var propTypesExports = propTypes.exports;
|
|
33888
33889
|
var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
|
|
33889
33890
|
|
|
33890
|
-
function ownKeys$
|
|
33891
|
-
function _objectSpread$
|
|
33891
|
+
function ownKeys$p(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
33892
|
+
function _objectSpread$p(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$p(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$p(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
33892
33893
|
|
|
33893
33894
|
// Host-injected module references (e.g., "@trops/dash-core").
|
|
33894
33895
|
// Set by the host app via setHostModules() after all modules are fully loaded,
|
|
@@ -33924,7 +33925,7 @@ var BASE_MODULE_MAP = {
|
|
|
33924
33925
|
function evaluateBundle(source, widgetName) {
|
|
33925
33926
|
// Merge base modules with host-provided modules (e.g., "@trops/dash-core")
|
|
33926
33927
|
// at call time so _hostModules is populated by the time widgets load.
|
|
33927
|
-
var moduleMap = _objectSpread$
|
|
33928
|
+
var moduleMap = _objectSpread$p(_objectSpread$p({}, BASE_MODULE_MAP), _hostModules);
|
|
33928
33929
|
var module = {
|
|
33929
33930
|
exports: {}
|
|
33930
33931
|
};
|
|
@@ -33937,7 +33938,7 @@ function evaluateBundle(source, widgetName) {
|
|
|
33937
33938
|
// CJS bundles expect `require("pkg").Widget` to work, so merge
|
|
33938
33939
|
// `.default` properties onto the returned object.
|
|
33939
33940
|
if (mod["default"] && _typeof(mod["default"]) === "object") {
|
|
33940
|
-
return _objectSpread$
|
|
33941
|
+
return _objectSpread$p(_objectSpread$p(_objectSpread$p({}, mod["default"]), mod), {}, {
|
|
33941
33942
|
"default": mod["default"]
|
|
33942
33943
|
});
|
|
33943
33944
|
}
|
|
@@ -34019,9 +34020,9 @@ function loadWidgetBundle(source, widgetName) {
|
|
|
34019
34020
|
};
|
|
34020
34021
|
}
|
|
34021
34022
|
|
|
34022
|
-
function _createForOfIteratorHelper$
|
|
34023
|
-
function _unsupportedIterableToArray$
|
|
34024
|
-
function _arrayLikeToArray$
|
|
34023
|
+
function _createForOfIteratorHelper$9(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$9(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
34024
|
+
function _unsupportedIterableToArray$9(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$9(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$9(r, a) : void 0; } }
|
|
34025
|
+
function _arrayLikeToArray$9(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
34025
34026
|
/**
|
|
34026
34027
|
* Validation utilities for grid-first dashboard architecture
|
|
34027
34028
|
*
|
|
@@ -34260,7 +34261,7 @@ var validateCellMerge = function validateCellMerge(cellNumbers, grid) {
|
|
|
34260
34261
|
|
|
34261
34262
|
// Validate each cell
|
|
34262
34263
|
var cells = [];
|
|
34263
|
-
var _iterator = _createForOfIteratorHelper$
|
|
34264
|
+
var _iterator = _createForOfIteratorHelper$9(cellNumbers),
|
|
34264
34265
|
_step;
|
|
34265
34266
|
try {
|
|
34266
34267
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -34608,8 +34609,8 @@ var HARMONY_STRATEGIES = [{
|
|
|
34608
34609
|
label: "Custom"
|
|
34609
34610
|
}];
|
|
34610
34611
|
|
|
34611
|
-
function ownKeys$
|
|
34612
|
-
function _objectSpread$
|
|
34612
|
+
function ownKeys$o(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
34613
|
+
function _objectSpread$o(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$o(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$o(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
34613
34614
|
var COLOR_PROPERTIES$1 = new Set(["backgroundColor", "textColor", "borderColor", "hoverBackgroundColor", "hoverTextColor", "hoverBorderColor", "focusRingColor", "focusBorderColor", "activeBackgroundColor", "activeTextColor", "placeholderTextColor"]);
|
|
34614
34615
|
var PreviewColorsPane = function PreviewColorsPane(_ref) {
|
|
34615
34616
|
var _ref$styles = _ref.styles,
|
|
@@ -34626,7 +34627,7 @@ var PreviewColorsPane = function PreviewColorsPane(_ref) {
|
|
|
34626
34627
|
function handleClickItem(data, styleNameCss, itemType, objectType) {
|
|
34627
34628
|
// override the object type
|
|
34628
34629
|
data["objectType"] = objectType;
|
|
34629
|
-
onClickItem(_objectSpread$
|
|
34630
|
+
onClickItem(_objectSpread$o(_objectSpread$o({}, data), {}, {
|
|
34630
34631
|
itemType: itemType,
|
|
34631
34632
|
styleName: styleNameCss
|
|
34632
34633
|
}));
|
|
@@ -35036,8 +35037,8 @@ var ThemeMenuPane = function ThemeMenuPane(_ref) {
|
|
|
35036
35037
|
});
|
|
35037
35038
|
};
|
|
35038
35039
|
|
|
35039
|
-
function ownKeys$
|
|
35040
|
-
function _objectSpread$
|
|
35040
|
+
function ownKeys$n(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
35041
|
+
function _objectSpread$n(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$n(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$n(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
35041
35042
|
var COMPONENT_GROUPS$1 = {
|
|
35042
35043
|
Typography: [themeObjects.HEADING, themeObjects.HEADING_2, themeObjects.HEADING_3, themeObjects.SUBHEADING, themeObjects.SUBHEADING_2, themeObjects.SUBHEADING_3, themeObjects.PARAGRAPH, themeObjects.PARAGRAPH_2, themeObjects.PARAGRAPH_3],
|
|
35043
35044
|
Buttons: [themeObjects.BUTTON, themeObjects.BUTTON_2, themeObjects.BUTTON_3, themeObjects.BUTTON_ICON, themeObjects.BUTTON_ICON_2, themeObjects.BUTTON_ICON_3],
|
|
@@ -35068,7 +35069,7 @@ var ComponentSelectorPane = function ComponentSelectorPane(_ref) {
|
|
|
35068
35069
|
setCollapsedGroups = _useState2[1];
|
|
35069
35070
|
function toggleGroup(groupName) {
|
|
35070
35071
|
setCollapsedGroups(function (prev) {
|
|
35071
|
-
return _objectSpread$
|
|
35072
|
+
return _objectSpread$n(_objectSpread$n({}, prev), {}, _defineProperty({}, groupName, !prev[groupName]));
|
|
35072
35073
|
});
|
|
35073
35074
|
}
|
|
35074
35075
|
function hasOverrides(itemKey) {
|
|
@@ -35305,8 +35306,8 @@ var NonColorPickerPane = function NonColorPickerPane(_ref) {
|
|
|
35305
35306
|
};
|
|
35306
35307
|
|
|
35307
35308
|
var _excluded$1 = ["children"];
|
|
35308
|
-
function ownKeys$
|
|
35309
|
-
function _objectSpread$
|
|
35309
|
+
function ownKeys$m(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
35310
|
+
function _objectSpread$m(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$m(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$m(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
35310
35311
|
var COLOR_PROPERTIES = new Set(["backgroundColor", "textColor", "borderColor", "hoverBackgroundColor", "hoverTextColor", "hoverBorderColor", "focusRingColor", "focusBorderColor", "activeBackgroundColor", "activeTextColor", "placeholderTextColor"]);
|
|
35311
35312
|
var isColorProperty = function isColorProperty(name) {
|
|
35312
35313
|
return COLOR_PROPERTIES.has(name);
|
|
@@ -35866,7 +35867,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
35866
35867
|
if (itemSelected && themeSelected && themeVariant) {
|
|
35867
35868
|
var updatedStyles = getStylesForItem(itemSelected.item, themeSelected[themeVariant]);
|
|
35868
35869
|
setItemSelected(function (prev) {
|
|
35869
|
-
return _objectSpread$
|
|
35870
|
+
return _objectSpread$m(_objectSpread$m({}, prev), {}, {
|
|
35870
35871
|
styles: updatedStyles
|
|
35871
35872
|
});
|
|
35872
35873
|
});
|
|
@@ -36037,7 +36038,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
36037
36038
|
styles: clickStyles
|
|
36038
36039
|
});
|
|
36039
36040
|
},
|
|
36040
|
-
children: /*#__PURE__*/jsx(PanelComponent, _objectSpread$
|
|
36041
|
+
children: /*#__PURE__*/jsx(PanelComponent, _objectSpread$m(_objectSpread$m({}, panelStyles), {}, {
|
|
36041
36042
|
scrollable: false,
|
|
36042
36043
|
className: "rounded",
|
|
36043
36044
|
height: "",
|
|
@@ -36051,9 +36052,9 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
36051
36052
|
var _comp$props = comp.props,
|
|
36052
36053
|
childContent = _comp$props.children,
|
|
36053
36054
|
restProps = _objectWithoutProperties(_comp$props, _excluded$1);
|
|
36054
|
-
var renderedComponent = childContent !== undefined ? /*#__PURE__*/jsx(comp.Component, _objectSpread$
|
|
36055
|
+
var renderedComponent = childContent !== undefined ? /*#__PURE__*/jsx(comp.Component, _objectSpread$m(_objectSpread$m({}, restProps), {}, {
|
|
36055
36056
|
children: childContent
|
|
36056
|
-
})) : /*#__PURE__*/jsx(comp.Component, _objectSpread$
|
|
36057
|
+
})) : /*#__PURE__*/jsx(comp.Component, _objectSpread$m({}, restProps));
|
|
36057
36058
|
return renderComponentRow(comp.key, renderedComponent);
|
|
36058
36059
|
})
|
|
36059
36060
|
})
|
|
@@ -36069,7 +36070,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
36069
36070
|
children: [/*#__PURE__*/jsx("div", {
|
|
36070
36071
|
className: "text-xs uppercase font-bold text-gray-500 tracking-wider",
|
|
36071
36072
|
children: "Forms & Inputs"
|
|
36072
|
-
}), /*#__PURE__*/jsx(Panel, _objectSpread$
|
|
36073
|
+
}), /*#__PURE__*/jsx(Panel, _objectSpread$m(_objectSpread$m({}, getStylesForItem("panel", themeData)), {}, {
|
|
36073
36074
|
scrollable: false,
|
|
36074
36075
|
className: "rounded",
|
|
36075
36076
|
height: "",
|
|
@@ -36097,7 +36098,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
36097
36098
|
children: [/*#__PURE__*/jsx("div", {
|
|
36098
36099
|
className: "text-xs uppercase font-bold text-gray-500 tracking-wider",
|
|
36099
36100
|
children: "Data & Stats"
|
|
36100
|
-
}), /*#__PURE__*/jsx(Panel, _objectSpread$
|
|
36101
|
+
}), /*#__PURE__*/jsx(Panel, _objectSpread$m(_objectSpread$m({}, getStylesForItem("panel", themeData)), {}, {
|
|
36101
36102
|
scrollable: false,
|
|
36102
36103
|
className: "rounded",
|
|
36103
36104
|
height: "",
|
|
@@ -36202,7 +36203,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
36202
36203
|
}), themeSelected && /*#__PURE__*/jsx("div", {
|
|
36203
36204
|
className: "flex flex-col flex-1 min-w-0",
|
|
36204
36205
|
children: /*#__PURE__*/jsx(ThemeContext.Provider, {
|
|
36205
|
-
value: _objectSpread$
|
|
36206
|
+
value: _objectSpread$m(_objectSpread$m({}, themeContextValue), {}, {
|
|
36206
36207
|
currentTheme: (themeSelected === null || themeSelected === void 0 ? void 0 : themeSelected[themeVariant]) || themeContextValue.currentTheme
|
|
36207
36208
|
}),
|
|
36208
36209
|
children: showPreview ? /*#__PURE__*/jsx(PreviewComponentsPane, {
|
|
@@ -37606,8 +37607,8 @@ var DiscoverThemesDetail = function DiscoverThemesDetail(_ref) {
|
|
|
37606
37607
|
});
|
|
37607
37608
|
};
|
|
37608
37609
|
|
|
37609
|
-
function ownKeys$
|
|
37610
|
-
function _objectSpread$
|
|
37610
|
+
function ownKeys$l(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
37611
|
+
function _objectSpread$l(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$l(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$l(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
37611
37612
|
var ThemeManagerModal = function ThemeManagerModal(_ref) {
|
|
37612
37613
|
var open = _ref.open,
|
|
37613
37614
|
setIsOpen = _ref.setIsOpen;
|
|
@@ -37799,7 +37800,7 @@ var ThemeManagerModal = function ThemeManagerModal(_ref) {
|
|
|
37799
37800
|
function handleWizardComplete() {
|
|
37800
37801
|
if (!wizardTheme || !wizardName.trim()) return;
|
|
37801
37802
|
var key = wizardTheme.id || "theme-".concat(Date.now());
|
|
37802
|
-
var finalTheme = _objectSpread$
|
|
37803
|
+
var finalTheme = _objectSpread$l(_objectSpread$l({}, wizardTheme), {}, {
|
|
37803
37804
|
id: key,
|
|
37804
37805
|
name: wizardName.trim()
|
|
37805
37806
|
});
|
|
@@ -38762,8 +38763,8 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
|
|
|
38762
38763
|
});
|
|
38763
38764
|
};
|
|
38764
38765
|
|
|
38765
|
-
function ownKeys$
|
|
38766
|
-
function _objectSpread$
|
|
38766
|
+
function ownKeys$k(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
38767
|
+
function _objectSpread$k(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$k(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$k(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
38767
38768
|
var LayoutPreview = function LayoutPreview(_ref) {
|
|
38768
38769
|
var layout = _ref.layout;
|
|
38769
38770
|
var gridRoot = (layout || []).find(function (item) {
|
|
@@ -38945,7 +38946,7 @@ var DashboardDetail = function DashboardDetail(_ref2) {
|
|
|
38945
38946
|
updated.menuId = val ? Number(val) : null;
|
|
38946
38947
|
// Strip widgetConfig from layout before saving
|
|
38947
38948
|
updated.layout = (updated.layout || []).map(function (layoutItem) {
|
|
38948
|
-
var cleaned = _objectSpread$
|
|
38949
|
+
var cleaned = _objectSpread$k({}, layoutItem);
|
|
38949
38950
|
delete cleaned.widgetConfig;
|
|
38950
38951
|
return cleaned;
|
|
38951
38952
|
});
|
|
@@ -38960,7 +38961,7 @@ var DashboardDetail = function DashboardDetail(_ref2) {
|
|
|
38960
38961
|
var updated = deepCopy(ws);
|
|
38961
38962
|
updated.themeKey = val || null;
|
|
38962
38963
|
updated.layout = (updated.layout || []).map(function (layoutItem) {
|
|
38963
|
-
var cleaned = _objectSpread$
|
|
38964
|
+
var cleaned = _objectSpread$k({}, layoutItem);
|
|
38964
38965
|
delete cleaned.widgetConfig;
|
|
38965
38966
|
return cleaned;
|
|
38966
38967
|
});
|
|
@@ -39113,8 +39114,8 @@ var DashboardDetail = function DashboardDetail(_ref2) {
|
|
|
39113
39114
|
});
|
|
39114
39115
|
};
|
|
39115
39116
|
|
|
39116
|
-
function ownKeys$
|
|
39117
|
-
function _objectSpread$
|
|
39117
|
+
function ownKeys$j(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
39118
|
+
function _objectSpread$j(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$j(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$j(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
39118
39119
|
var DashboardsSection = function DashboardsSection(_ref) {
|
|
39119
39120
|
var _ref$workspaces = _ref.workspaces,
|
|
39120
39121
|
workspaces = _ref$workspaces === void 0 ? [] : _ref$workspaces,
|
|
@@ -39203,7 +39204,7 @@ var DashboardsSection = function DashboardsSection(_ref) {
|
|
|
39203
39204
|
updated.name = editName.trim();
|
|
39204
39205
|
// Strip widgetConfig from layout before saving
|
|
39205
39206
|
updated.layout = (updated.layout || []).map(function (layoutItem) {
|
|
39206
|
-
var cleaned = _objectSpread$
|
|
39207
|
+
var cleaned = _objectSpread$j({}, layoutItem);
|
|
39207
39208
|
delete cleaned.widgetConfig;
|
|
39208
39209
|
return cleaned;
|
|
39209
39210
|
});
|
|
@@ -39223,7 +39224,7 @@ var DashboardsSection = function DashboardsSection(_ref) {
|
|
|
39223
39224
|
copy.version = Date.now();
|
|
39224
39225
|
// Strip widgetConfig from layout before saving
|
|
39225
39226
|
copy.layout = (copy.layout || []).map(function (layoutItem) {
|
|
39226
|
-
var cleaned = _objectSpread$
|
|
39227
|
+
var cleaned = _objectSpread$j({}, layoutItem);
|
|
39227
39228
|
delete cleaned.widgetConfig;
|
|
39228
39229
|
return cleaned;
|
|
39229
39230
|
});
|
|
@@ -39623,8 +39624,8 @@ var FoldersSection = function FoldersSection(_ref) {
|
|
|
39623
39624
|
});
|
|
39624
39625
|
};
|
|
39625
39626
|
|
|
39626
|
-
function ownKeys$
|
|
39627
|
-
function _objectSpread$
|
|
39627
|
+
function ownKeys$i(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
39628
|
+
function _objectSpread$i(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$i(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$i(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
39628
39629
|
var ProviderDetail = function ProviderDetail(_ref) {
|
|
39629
39630
|
var _provider$mcpConfig, _testResult$tools;
|
|
39630
39631
|
var _ref$providerName = _ref.providerName,
|
|
@@ -39715,14 +39716,14 @@ var ProviderDetail = function ProviderDetail(_ref) {
|
|
|
39715
39716
|
var oldKey = f.key;
|
|
39716
39717
|
if (oldKey && formCredentials[oldKey] !== undefined) {
|
|
39717
39718
|
setFormCredentials(function (creds) {
|
|
39718
|
-
var updated = _objectSpread$
|
|
39719
|
+
var updated = _objectSpread$i({}, creds);
|
|
39719
39720
|
var val = updated[oldKey];
|
|
39720
39721
|
delete updated[oldKey];
|
|
39721
39722
|
if (newKey.trim()) updated[newKey] = val;
|
|
39722
39723
|
return updated;
|
|
39723
39724
|
});
|
|
39724
39725
|
}
|
|
39725
|
-
return _objectSpread$
|
|
39726
|
+
return _objectSpread$i(_objectSpread$i({}, f), {}, {
|
|
39726
39727
|
key: newKey
|
|
39727
39728
|
});
|
|
39728
39729
|
});
|
|
@@ -39734,14 +39735,14 @@ var ProviderDetail = function ProviderDetail(_ref) {
|
|
|
39734
39735
|
});
|
|
39735
39736
|
if (field !== null && field !== void 0 && field.key) {
|
|
39736
39737
|
setFormCredentials(function (prev) {
|
|
39737
|
-
return _objectSpread$
|
|
39738
|
+
return _objectSpread$i(_objectSpread$i({}, prev), {}, _defineProperty({}, field.key, value));
|
|
39738
39739
|
});
|
|
39739
39740
|
}
|
|
39740
39741
|
};
|
|
39741
39742
|
var handleFieldSecretToggle = function handleFieldSecretToggle(id) {
|
|
39742
39743
|
setCredentialFields(function (prev) {
|
|
39743
39744
|
return prev.map(function (f) {
|
|
39744
|
-
return f.id === id ? _objectSpread$
|
|
39745
|
+
return f.id === id ? _objectSpread$i(_objectSpread$i({}, f), {}, {
|
|
39745
39746
|
secret: !f.secret
|
|
39746
39747
|
}) : f;
|
|
39747
39748
|
});
|
|
@@ -39763,7 +39764,7 @@ var ProviderDetail = function ProviderDetail(_ref) {
|
|
|
39763
39764
|
});
|
|
39764
39765
|
if (field !== null && field !== void 0 && field.key) {
|
|
39765
39766
|
setFormCredentials(function (prev) {
|
|
39766
|
-
var updated = _objectSpread$
|
|
39767
|
+
var updated = _objectSpread$i({}, prev);
|
|
39767
39768
|
delete updated[field.key];
|
|
39768
39769
|
return updated;
|
|
39769
39770
|
});
|
|
@@ -39776,7 +39777,7 @@ var ProviderDetail = function ProviderDetail(_ref) {
|
|
|
39776
39777
|
};
|
|
39777
39778
|
var handleCredentialChange = function handleCredentialChange(key, value) {
|
|
39778
39779
|
setFormCredentials(function (prev) {
|
|
39779
|
-
return _objectSpread$
|
|
39780
|
+
return _objectSpread$i(_objectSpread$i({}, prev), {}, _defineProperty({}, key, value));
|
|
39780
39781
|
});
|
|
39781
39782
|
};
|
|
39782
39783
|
var handleTestConnection = function handleTestConnection() {
|
|
@@ -40266,7 +40267,7 @@ var ProviderDetail = function ProviderDetail(_ref) {
|
|
|
40266
40267
|
children: testResult.message
|
|
40267
40268
|
})]
|
|
40268
40269
|
})
|
|
40269
|
-
}), (testResult === null || testResult === void 0 ? void 0 : testResult.success) && ((_testResult$tools = testResult.tools) === null || _testResult$tools === void 0 ? void 0 : _testResult$tools.length) > 0 && selectedTools && /*#__PURE__*/jsx(ToolSelector, {
|
|
40270
|
+
}), (testResult === null || testResult === void 0 ? void 0 : testResult.success) && ((_testResult$tools = testResult.tools) === null || _testResult$tools === void 0 ? void 0 : _testResult$tools.length) > 0 && selectedTools && /*#__PURE__*/jsx(ToolSelector$1, {
|
|
40270
40271
|
tools: testResult.tools,
|
|
40271
40272
|
selectedTools: selectedTools,
|
|
40272
40273
|
onSelectionChange: setSelectedTools
|
|
@@ -40378,8 +40379,8 @@ var ProviderDetail = function ProviderDetail(_ref) {
|
|
|
40378
40379
|
});
|
|
40379
40380
|
};
|
|
40380
40381
|
|
|
40381
|
-
function ownKeys$
|
|
40382
|
-
function _objectSpread$
|
|
40382
|
+
function ownKeys$h(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
40383
|
+
function _objectSpread$h(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$h(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$h(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
40383
40384
|
var rowIdCounter = 0;
|
|
40384
40385
|
var nextRowId = function nextRowId() {
|
|
40385
40386
|
return "row_".concat(++rowIdCounter);
|
|
@@ -40640,7 +40641,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
40640
40641
|
var updateEnvRow = function updateEnvRow(id, field, value) {
|
|
40641
40642
|
setEnvMappingRows(function (prev) {
|
|
40642
40643
|
return prev.map(function (row) {
|
|
40643
|
-
return row.id === id ? _objectSpread$
|
|
40644
|
+
return row.id === id ? _objectSpread$h(_objectSpread$h({}, row), {}, _defineProperty({}, field, value)) : row;
|
|
40644
40645
|
});
|
|
40645
40646
|
});
|
|
40646
40647
|
};
|
|
@@ -40665,7 +40666,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
40665
40666
|
var updateHeaderRow = function updateHeaderRow(id, field, value) {
|
|
40666
40667
|
setHeaderRows(function (prev) {
|
|
40667
40668
|
return prev.map(function (row) {
|
|
40668
|
-
return row.id === id ? _objectSpread$
|
|
40669
|
+
return row.id === id ? _objectSpread$h(_objectSpread$h({}, row), {}, _defineProperty({}, field, value)) : row;
|
|
40669
40670
|
});
|
|
40670
40671
|
});
|
|
40671
40672
|
};
|
|
@@ -40680,11 +40681,11 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
40680
40681
|
// --- credential field change ---
|
|
40681
40682
|
var handleCredentialChange = function handleCredentialChange(fieldName, value) {
|
|
40682
40683
|
setCredentialData(function (prev) {
|
|
40683
|
-
return _objectSpread$
|
|
40684
|
+
return _objectSpread$h(_objectSpread$h({}, prev), {}, _defineProperty({}, fieldName, value));
|
|
40684
40685
|
});
|
|
40685
40686
|
if (formErrors[fieldName] && value !== null && value !== void 0 && value.trim()) {
|
|
40686
40687
|
setFormErrors(function (prev) {
|
|
40687
|
-
var next = _objectSpread$
|
|
40688
|
+
var next = _objectSpread$h({}, prev);
|
|
40688
40689
|
delete next[fieldName];
|
|
40689
40690
|
return next;
|
|
40690
40691
|
});
|
|
@@ -40892,7 +40893,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
40892
40893
|
setProviderName(value);
|
|
40893
40894
|
if (formErrors.providerName && value !== null && value !== void 0 && value.trim()) {
|
|
40894
40895
|
setFormErrors(function (prev) {
|
|
40895
|
-
var next = _objectSpread$
|
|
40896
|
+
var next = _objectSpread$h({}, prev);
|
|
40896
40897
|
delete next.providerName;
|
|
40897
40898
|
return next;
|
|
40898
40899
|
});
|
|
@@ -41008,7 +41009,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
41008
41009
|
setCommand(value);
|
|
41009
41010
|
if (formErrors.command && value !== null && value !== void 0 && value.trim()) {
|
|
41010
41011
|
setFormErrors(function (prev) {
|
|
41011
|
-
var next = _objectSpread$
|
|
41012
|
+
var next = _objectSpread$h({}, prev);
|
|
41012
41013
|
delete next.command;
|
|
41013
41014
|
return next;
|
|
41014
41015
|
});
|
|
@@ -41114,7 +41115,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
41114
41115
|
setUrl(value);
|
|
41115
41116
|
if (formErrors.url && value !== null && value !== void 0 && value.trim()) {
|
|
41116
41117
|
setFormErrors(function (prev) {
|
|
41117
|
-
var next = _objectSpread$
|
|
41118
|
+
var next = _objectSpread$h({}, prev);
|
|
41118
41119
|
delete next.url;
|
|
41119
41120
|
return next;
|
|
41120
41121
|
});
|
|
@@ -41302,7 +41303,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
41302
41303
|
className: "mr-1"
|
|
41303
41304
|
}), testResult.message]
|
|
41304
41305
|
})]
|
|
41305
|
-
}), (testResult === null || testResult === void 0 ? void 0 : testResult.success) && ((_testResult$tools = testResult.tools) === null || _testResult$tools === void 0 ? void 0 : _testResult$tools.length) > 0 && selectedTools && /*#__PURE__*/jsx(ToolSelector, {
|
|
41306
|
+
}), (testResult === null || testResult === void 0 ? void 0 : testResult.success) && ((_testResult$tools = testResult.tools) === null || _testResult$tools === void 0 ? void 0 : _testResult$tools.length) > 0 && selectedTools && /*#__PURE__*/jsx(ToolSelector$1, {
|
|
41306
41307
|
tools: testResult.tools,
|
|
41307
41308
|
selectedTools: selectedTools,
|
|
41308
41309
|
onSelectionChange: setSelectedTools
|
|
@@ -41359,8 +41360,8 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
41359
41360
|
});
|
|
41360
41361
|
};
|
|
41361
41362
|
|
|
41362
|
-
function ownKeys$
|
|
41363
|
-
function _objectSpread$
|
|
41363
|
+
function ownKeys$g(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
41364
|
+
function _objectSpread$g(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$g(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$g(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
41364
41365
|
var getIconForServer = function getIconForServer(server) {
|
|
41365
41366
|
var iconMap = {
|
|
41366
41367
|
github: "code-branch",
|
|
@@ -41547,11 +41548,11 @@ var McpCatalogDetail = function McpCatalogDetail(_ref) {
|
|
|
41547
41548
|
// Handle credential field changes
|
|
41548
41549
|
var handleCredentialChange = function handleCredentialChange(fieldName, value) {
|
|
41549
41550
|
setCredentialData(function (prev) {
|
|
41550
|
-
return _objectSpread$
|
|
41551
|
+
return _objectSpread$g(_objectSpread$g({}, prev), {}, _defineProperty({}, fieldName, value));
|
|
41551
41552
|
});
|
|
41552
41553
|
if (formErrors[fieldName] && value !== null && value !== void 0 && value.trim()) {
|
|
41553
41554
|
setFormErrors(function (prev) {
|
|
41554
|
-
var next = _objectSpread$
|
|
41555
|
+
var next = _objectSpread$g({}, prev);
|
|
41555
41556
|
delete next[fieldName];
|
|
41556
41557
|
return next;
|
|
41557
41558
|
});
|
|
@@ -41799,7 +41800,7 @@ var McpCatalogDetail = function McpCatalogDetail(_ref) {
|
|
|
41799
41800
|
setProviderName(value);
|
|
41800
41801
|
if (formErrors.providerName && value !== null && value !== void 0 && value.trim()) {
|
|
41801
41802
|
setFormErrors(function (prev) {
|
|
41802
|
-
var next = _objectSpread$
|
|
41803
|
+
var next = _objectSpread$g({}, prev);
|
|
41803
41804
|
delete next.providerName;
|
|
41804
41805
|
return next;
|
|
41805
41806
|
});
|
|
@@ -41928,7 +41929,7 @@ var McpCatalogDetail = function McpCatalogDetail(_ref) {
|
|
|
41928
41929
|
className: "mr-1"
|
|
41929
41930
|
}), testResult.message]
|
|
41930
41931
|
})]
|
|
41931
|
-
}), (testResult === null || testResult === void 0 ? void 0 : testResult.success) && ((_testResult$tools = testResult.tools) === null || _testResult$tools === void 0 ? void 0 : _testResult$tools.length) > 0 && selectedTools && /*#__PURE__*/jsx(ToolSelector, {
|
|
41932
|
+
}), (testResult === null || testResult === void 0 ? void 0 : testResult.success) && ((_testResult$tools = testResult.tools) === null || _testResult$tools === void 0 ? void 0 : _testResult$tools.length) > 0 && selectedTools && /*#__PURE__*/jsx(ToolSelector$1, {
|
|
41932
41933
|
tools: testResult.tools,
|
|
41933
41934
|
selectedTools: selectedTools,
|
|
41934
41935
|
onSelectionChange: setSelectedTools
|
|
@@ -42061,11 +42062,11 @@ var McpCatalogDetail = function McpCatalogDetail(_ref) {
|
|
|
42061
42062
|
});
|
|
42062
42063
|
};
|
|
42063
42064
|
|
|
42064
|
-
function ownKeys$
|
|
42065
|
-
function _objectSpread$
|
|
42066
|
-
function _createForOfIteratorHelper$
|
|
42067
|
-
function _unsupportedIterableToArray$
|
|
42068
|
-
function _arrayLikeToArray$
|
|
42065
|
+
function ownKeys$f(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
42066
|
+
function _objectSpread$f(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$f(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$f(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
42067
|
+
function _createForOfIteratorHelper$8(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$8(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
42068
|
+
function _unsupportedIterableToArray$8(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$8(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$8(r, a) : void 0; } }
|
|
42069
|
+
function _arrayLikeToArray$8(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
42069
42070
|
function isValidWsUrl(url) {
|
|
42070
42071
|
if (!url) return false;
|
|
42071
42072
|
try {
|
|
@@ -42112,7 +42113,7 @@ function extractCredentialFields(url, headerRows) {
|
|
|
42112
42113
|
fields.add(match[1]);
|
|
42113
42114
|
}
|
|
42114
42115
|
}
|
|
42115
|
-
var _iterator = _createForOfIteratorHelper$
|
|
42116
|
+
var _iterator = _createForOfIteratorHelper$8(headerRows),
|
|
42116
42117
|
_step;
|
|
42117
42118
|
try {
|
|
42118
42119
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -42215,7 +42216,7 @@ var WebSocketProviderForm = function WebSocketProviderForm(_ref) {
|
|
|
42215
42216
|
if (!url.trim()) errs.url = "WebSocket URL is required";else if (!isValidWsUrl(url)) errs.url = "URL must start with ws:// or wss://";
|
|
42216
42217
|
|
|
42217
42218
|
// Check required credential fields are filled
|
|
42218
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
42219
|
+
var _iterator2 = _createForOfIteratorHelper$8(credentialFields),
|
|
42219
42220
|
_step2;
|
|
42220
42221
|
try {
|
|
42221
42222
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -42238,7 +42239,7 @@ var WebSocketProviderForm = function WebSocketProviderForm(_ref) {
|
|
|
42238
42239
|
|
|
42239
42240
|
// Build headers object from rows
|
|
42240
42241
|
var headers = {};
|
|
42241
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
42242
|
+
var _iterator3 = _createForOfIteratorHelper$8(headerRows),
|
|
42242
42243
|
_step3;
|
|
42243
42244
|
try {
|
|
42244
42245
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -42283,7 +42284,7 @@ var WebSocketProviderForm = function WebSocketProviderForm(_ref) {
|
|
|
42283
42284
|
function handleHeaderChange(id, field, value) {
|
|
42284
42285
|
setHeaderRows(function (prev) {
|
|
42285
42286
|
return prev.map(function (r) {
|
|
42286
|
-
return r.id === id ? _objectSpread$
|
|
42287
|
+
return r.id === id ? _objectSpread$f(_objectSpread$f({}, r), {}, _defineProperty({}, field, value)) : r;
|
|
42287
42288
|
});
|
|
42288
42289
|
});
|
|
42289
42290
|
}
|
|
@@ -42307,7 +42308,7 @@ var WebSocketProviderForm = function WebSocketProviderForm(_ref) {
|
|
|
42307
42308
|
|
|
42308
42309
|
// Build config from current form state (same as handleSave)
|
|
42309
42310
|
headers = {};
|
|
42310
|
-
_iterator4 = _createForOfIteratorHelper$
|
|
42311
|
+
_iterator4 = _createForOfIteratorHelper$8(headerRows);
|
|
42311
42312
|
try {
|
|
42312
42313
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
42313
42314
|
row = _step4.value;
|
|
@@ -42511,7 +42512,7 @@ var WebSocketProviderForm = function WebSocketProviderForm(_ref) {
|
|
|
42511
42512
|
value: credentials[field] || "",
|
|
42512
42513
|
onChange: function onChange(value) {
|
|
42513
42514
|
return setCredentials(function (prev) {
|
|
42514
|
-
return _objectSpread$
|
|
42515
|
+
return _objectSpread$f(_objectSpread$f({}, prev), {}, _defineProperty({}, field, value));
|
|
42515
42516
|
});
|
|
42516
42517
|
},
|
|
42517
42518
|
placeholder: "Enter ".concat(field),
|
|
@@ -44091,8 +44092,8 @@ var ThemeDetail = function ThemeDetail(_ref6) {
|
|
|
44091
44092
|
});
|
|
44092
44093
|
};
|
|
44093
44094
|
|
|
44094
|
-
function ownKeys$
|
|
44095
|
-
function _objectSpread$
|
|
44095
|
+
function ownKeys$e(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
44096
|
+
function _objectSpread$e(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$e(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$e(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
44096
44097
|
var BackToChooser = function BackToChooser(_ref) {
|
|
44097
44098
|
var onClick = _ref.onClick,
|
|
44098
44099
|
children = _ref.children;
|
|
@@ -44212,7 +44213,7 @@ var ThemesSection = function ThemesSection(_ref2) {
|
|
|
44212
44213
|
if (!wizardTheme || !wizardName.trim()) return;
|
|
44213
44214
|
if (!dashApi || !appId) return;
|
|
44214
44215
|
var key = wizardTheme.id || "theme-".concat(Date.now());
|
|
44215
|
-
var finalTheme = _objectSpread$
|
|
44216
|
+
var finalTheme = _objectSpread$e(_objectSpread$e({}, wizardTheme), {}, {
|
|
44216
44217
|
id: key,
|
|
44217
44218
|
name: wizardName.trim()
|
|
44218
44219
|
});
|
|
@@ -44319,7 +44320,7 @@ var ThemesSection = function ThemesSection(_ref2) {
|
|
|
44319
44320
|
function handleUrlThemeGenerated(theme) {
|
|
44320
44321
|
if (!dashApi || !appId) return;
|
|
44321
44322
|
var key = theme.id || "theme-".concat(Date.now());
|
|
44322
|
-
var finalTheme = _objectSpread$
|
|
44323
|
+
var finalTheme = _objectSpread$e(_objectSpread$e({}, theme), {}, {
|
|
44323
44324
|
id: key
|
|
44324
44325
|
});
|
|
44325
44326
|
saveAndSelectTheme(key, finalTheme);
|
|
@@ -44824,11 +44825,11 @@ var InstallWidgetPicker = function InstallWidgetPicker(_ref2) {
|
|
|
44824
44825
|
});
|
|
44825
44826
|
};
|
|
44826
44827
|
|
|
44827
|
-
function ownKeys$
|
|
44828
|
-
function _objectSpread$
|
|
44829
|
-
function _createForOfIteratorHelper$
|
|
44830
|
-
function _unsupportedIterableToArray$
|
|
44831
|
-
function _arrayLikeToArray$
|
|
44828
|
+
function ownKeys$d(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
44829
|
+
function _objectSpread$d(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$d(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$d(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
44830
|
+
function _createForOfIteratorHelper$7(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$7(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
44831
|
+
function _unsupportedIterableToArray$7(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$7(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$7(r, a) : void 0; } }
|
|
44832
|
+
function _arrayLikeToArray$7(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
44832
44833
|
var DiscoverWidgetsDetail = function DiscoverWidgetsDetail(_ref) {
|
|
44833
44834
|
var onBack = _ref.onBack;
|
|
44834
44835
|
var _useContext = useContext(ThemeContext),
|
|
@@ -44894,7 +44895,7 @@ var DiscoverWidgetsDetail = function DiscoverWidgetsDetail(_ref) {
|
|
|
44894
44895
|
case 1:
|
|
44895
44896
|
widgets = _context.sent;
|
|
44896
44897
|
names = new Set();
|
|
44897
|
-
_iterator = _createForOfIteratorHelper$
|
|
44898
|
+
_iterator = _createForOfIteratorHelper$7(widgets);
|
|
44898
44899
|
try {
|
|
44899
44900
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
44900
44901
|
w = _step.value;
|
|
@@ -44953,7 +44954,7 @@ var DiscoverWidgetsDetail = function DiscoverWidgetsDetail(_ref) {
|
|
|
44953
44954
|
if (installError) {
|
|
44954
44955
|
setProgressWidgets(function (prev) {
|
|
44955
44956
|
return prev.map(function (w) {
|
|
44956
|
-
return _objectSpread$
|
|
44957
|
+
return _objectSpread$d(_objectSpread$d({}, w), {}, {
|
|
44957
44958
|
status: "failed",
|
|
44958
44959
|
error: installError
|
|
44959
44960
|
});
|
|
@@ -44962,7 +44963,7 @@ var DiscoverWidgetsDetail = function DiscoverWidgetsDetail(_ref) {
|
|
|
44962
44963
|
} else {
|
|
44963
44964
|
setProgressWidgets(function (prev) {
|
|
44964
44965
|
return prev.map(function (w) {
|
|
44965
|
-
return _objectSpread$
|
|
44966
|
+
return _objectSpread$d(_objectSpread$d({}, w), {}, {
|
|
44966
44967
|
status: "installed"
|
|
44967
44968
|
});
|
|
44968
44969
|
});
|
|
@@ -45000,12 +45001,12 @@ var DiscoverWidgetsDetail = function DiscoverWidgetsDetail(_ref) {
|
|
|
45000
45001
|
var checkToolConflicts = function checkToolConflicts(widget) {
|
|
45001
45002
|
var conflicts = [];
|
|
45002
45003
|
var packageWidgets = widget.packageWidgets || [];
|
|
45003
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
45004
|
+
var _iterator2 = _createForOfIteratorHelper$7(packageWidgets),
|
|
45004
45005
|
_step2;
|
|
45005
45006
|
try {
|
|
45006
45007
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
45007
45008
|
var w = _step2.value;
|
|
45008
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
45009
|
+
var _iterator3 = _createForOfIteratorHelper$7(w.providers || []),
|
|
45009
45010
|
_step3;
|
|
45010
45011
|
try {
|
|
45011
45012
|
var _loop = function _loop() {
|
|
@@ -45018,7 +45019,7 @@ var DiscoverWidgetsDetail = function DiscoverWidgetsDetail(_ref) {
|
|
|
45018
45019
|
prov = _ref4[1];
|
|
45019
45020
|
return prov.type === p.type && prov.providerClass === "mcp" && prov.allowedTools;
|
|
45020
45021
|
});
|
|
45021
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
45022
|
+
var _iterator4 = _createForOfIteratorHelper$7(matchingProviders),
|
|
45022
45023
|
_step4;
|
|
45023
45024
|
try {
|
|
45024
45025
|
var _loop2 = function _loop2() {
|
|
@@ -45089,7 +45090,7 @@ var DiscoverWidgetsDetail = function DiscoverWidgetsDetail(_ref) {
|
|
|
45089
45090
|
// Transition to downloading
|
|
45090
45091
|
setProgressWidgets(function (prev) {
|
|
45091
45092
|
return prev.map(function (w) {
|
|
45092
|
-
return _objectSpread$
|
|
45093
|
+
return _objectSpread$d(_objectSpread$d({}, w), {}, {
|
|
45093
45094
|
status: "downloading"
|
|
45094
45095
|
});
|
|
45095
45096
|
});
|
|
@@ -45287,9 +45288,9 @@ var DiscoverWidgetsDetail = function DiscoverWidgetsDetail(_ref) {
|
|
|
45287
45288
|
});
|
|
45288
45289
|
};
|
|
45289
45290
|
|
|
45290
|
-
function _createForOfIteratorHelper$
|
|
45291
|
-
function _unsupportedIterableToArray$
|
|
45292
|
-
function _arrayLikeToArray$
|
|
45291
|
+
function _createForOfIteratorHelper$6(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$6(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
45292
|
+
function _unsupportedIterableToArray$6(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$6(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$6(r, a) : void 0; } }
|
|
45293
|
+
function _arrayLikeToArray$6(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
45293
45294
|
|
|
45294
45295
|
/**
|
|
45295
45296
|
* Walk a workspace layout and collect widget component keys that are
|
|
@@ -45303,7 +45304,7 @@ function collectComponentsFromLayout(layout) {
|
|
|
45303
45304
|
|
|
45304
45305
|
// Collect IDs of layout items that are actively referenced by grid cells
|
|
45305
45306
|
var activeItemIds = new Set();
|
|
45306
|
-
var _iterator = _createForOfIteratorHelper$
|
|
45307
|
+
var _iterator = _createForOfIteratorHelper$6(layout),
|
|
45307
45308
|
_step;
|
|
45308
45309
|
try {
|
|
45309
45310
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -45323,7 +45324,7 @@ function collectComponentsFromLayout(layout) {
|
|
|
45323
45324
|
} finally {
|
|
45324
45325
|
_iterator.f();
|
|
45325
45326
|
}
|
|
45326
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
45327
|
+
var _iterator2 = _createForOfIteratorHelper$6(layout),
|
|
45327
45328
|
_step2;
|
|
45328
45329
|
try {
|
|
45329
45330
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -45357,7 +45358,7 @@ function findWidgetUsage(componentNames, workspaces) {
|
|
|
45357
45358
|
if (!(componentNames !== null && componentNames !== void 0 && componentNames.length) || !(workspaces !== null && workspaces !== void 0 && workspaces.length)) return [];
|
|
45358
45359
|
var nameSet = new Set(componentNames);
|
|
45359
45360
|
var results = [];
|
|
45360
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
45361
|
+
var _iterator3 = _createForOfIteratorHelper$6(workspaces),
|
|
45361
45362
|
_step3;
|
|
45362
45363
|
try {
|
|
45363
45364
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -45592,9 +45593,9 @@ var useInstalledWidgets = function useInstalledWidgets() {
|
|
|
45592
45593
|
};
|
|
45593
45594
|
};
|
|
45594
45595
|
|
|
45595
|
-
function _createForOfIteratorHelper$
|
|
45596
|
-
function _unsupportedIterableToArray$
|
|
45597
|
-
function _arrayLikeToArray$
|
|
45596
|
+
function _createForOfIteratorHelper$5(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$5(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
45597
|
+
function _unsupportedIterableToArray$5(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$5(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$5(r, a) : void 0; } }
|
|
45598
|
+
function _arrayLikeToArray$5(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
45598
45599
|
|
|
45599
45600
|
/**
|
|
45600
45601
|
* useWidgetUpdates — checks the registry for newer versions of installed widgets
|
|
@@ -45724,7 +45725,7 @@ function useWidgetUpdates() {
|
|
|
45724
45725
|
// (install replaces the entire package, not just one widget)
|
|
45725
45726
|
setUpdates(function (prev) {
|
|
45726
45727
|
var next = new Map(prev);
|
|
45727
|
-
var _iterator = _createForOfIteratorHelper$
|
|
45728
|
+
var _iterator = _createForOfIteratorHelper$5(next),
|
|
45728
45729
|
_step;
|
|
45729
45730
|
try {
|
|
45730
45731
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -45775,8 +45776,8 @@ function useWidgetUpdates() {
|
|
|
45775
45776
|
};
|
|
45776
45777
|
}
|
|
45777
45778
|
|
|
45778
|
-
function ownKeys$
|
|
45779
|
-
function _objectSpread$
|
|
45779
|
+
function ownKeys$c(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
45780
|
+
function _objectSpread$c(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$c(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$c(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
45780
45781
|
var WidgetsSection = function WidgetsSection(_ref) {
|
|
45781
45782
|
var _ref$workspaces = _ref.workspaces,
|
|
45782
45783
|
workspaces = _ref$workspaces === void 0 ? [] : _ref$workspaces;
|
|
@@ -45954,7 +45955,7 @@ var WidgetsSection = function WidgetsSection(_ref) {
|
|
|
45954
45955
|
})));
|
|
45955
45956
|
var usage = findWidgetUsage(allComponentNames, workspaces);
|
|
45956
45957
|
setDeleteUsage(usage);
|
|
45957
|
-
setDeleteTarget(_objectSpread$
|
|
45958
|
+
setDeleteTarget(_objectSpread$c(_objectSpread$c({}, widget), {}, {
|
|
45958
45959
|
_siblings: siblings
|
|
45959
45960
|
}));
|
|
45960
45961
|
}
|
|
@@ -46063,7 +46064,7 @@ var WidgetsSection = function WidgetsSection(_ref) {
|
|
|
46063
46064
|
_t2 = _context2["catch"](1);
|
|
46064
46065
|
setProgressWidgets(function (prev) {
|
|
46065
46066
|
return prev.map(function (w) {
|
|
46066
|
-
return _objectSpread$
|
|
46067
|
+
return _objectSpread$c(_objectSpread$c({}, w), {}, {
|
|
46067
46068
|
status: "failed",
|
|
46068
46069
|
error: _t2.message
|
|
46069
46070
|
});
|
|
@@ -46168,7 +46169,7 @@ var WidgetsSection = function WidgetsSection(_ref) {
|
|
|
46168
46169
|
_t3 = _context3["catch"](1);
|
|
46169
46170
|
setProgressWidgets(function (prev) {
|
|
46170
46171
|
return prev.map(function (w) {
|
|
46171
|
-
return _objectSpread$
|
|
46172
|
+
return _objectSpread$c(_objectSpread$c({}, w), {}, {
|
|
46172
46173
|
status: "failed",
|
|
46173
46174
|
error: _t3.message
|
|
46174
46175
|
});
|
|
@@ -46474,7 +46475,7 @@ var WidgetsSection = function WidgetsSection(_ref) {
|
|
|
46474
46475
|
widgets: progressWidgets,
|
|
46475
46476
|
isComplete: progressComplete,
|
|
46476
46477
|
onDone: handleProgressDone
|
|
46477
|
-
}), /*#__PURE__*/jsx(ConfirmationModal, _objectSpread$
|
|
46478
|
+
}), /*#__PURE__*/jsx(ConfirmationModal, _objectSpread$c(_objectSpread$c({
|
|
46478
46479
|
isOpen: !!deleteTarget,
|
|
46479
46480
|
setIsOpen: function setIsOpen() {
|
|
46480
46481
|
setDeleteTarget(null);
|
|
@@ -46549,8 +46550,8 @@ var WidgetsSection = function WidgetsSection(_ref) {
|
|
|
46549
46550
|
});
|
|
46550
46551
|
};
|
|
46551
46552
|
|
|
46552
|
-
function ownKeys$
|
|
46553
|
-
function _objectSpread$
|
|
46553
|
+
function ownKeys$b(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
46554
|
+
function _objectSpread$b(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$b(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$b(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
46554
46555
|
var AccountSection = function AccountSection(_ref) {
|
|
46555
46556
|
var authStatus = _ref.authStatus,
|
|
46556
46557
|
authProfile = _ref.authProfile,
|
|
@@ -46655,7 +46656,7 @@ var AuthenticatedView = function AuthenticatedView(_ref3) {
|
|
|
46655
46656
|
onPackageUpdated: function onPackageUpdated(updatedPkg) {
|
|
46656
46657
|
setPackages(function (prev) {
|
|
46657
46658
|
return prev.map(function (p) {
|
|
46658
|
-
return p.name === updatedPkg.name && p.scope === updatedPkg.scope ? _objectSpread$
|
|
46659
|
+
return p.name === updatedPkg.name && p.scope === updatedPkg.scope ? _objectSpread$b(_objectSpread$b({}, p), updatedPkg) : p;
|
|
46659
46660
|
});
|
|
46660
46661
|
});
|
|
46661
46662
|
},
|
|
@@ -46910,7 +46911,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
46910
46911
|
case 2:
|
|
46911
46912
|
result = _context3.sent;
|
|
46912
46913
|
if (result) {
|
|
46913
|
-
onSaved(_objectSpread$
|
|
46914
|
+
onSaved(_objectSpread$b(_objectSpread$b({}, pkg), updates));
|
|
46914
46915
|
}
|
|
46915
46916
|
_context3.next = 4;
|
|
46916
46917
|
break;
|
|
@@ -46975,7 +46976,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
46975
46976
|
label: "Display Name",
|
|
46976
46977
|
value: form.displayName,
|
|
46977
46978
|
onChange: function onChange(v) {
|
|
46978
|
-
return setForm(_objectSpread$
|
|
46979
|
+
return setForm(_objectSpread$b(_objectSpread$b({}, form), {}, {
|
|
46979
46980
|
displayName: v
|
|
46980
46981
|
}));
|
|
46981
46982
|
}
|
|
@@ -46983,7 +46984,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
46983
46984
|
label: "Description",
|
|
46984
46985
|
value: form.description,
|
|
46985
46986
|
onChange: function onChange(v) {
|
|
46986
|
-
return setForm(_objectSpread$
|
|
46987
|
+
return setForm(_objectSpread$b(_objectSpread$b({}, form), {}, {
|
|
46987
46988
|
description: v
|
|
46988
46989
|
}));
|
|
46989
46990
|
}
|
|
@@ -46991,7 +46992,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
46991
46992
|
label: "Category",
|
|
46992
46993
|
value: form.category,
|
|
46993
46994
|
onChange: function onChange(v) {
|
|
46994
|
-
return setForm(_objectSpread$
|
|
46995
|
+
return setForm(_objectSpread$b(_objectSpread$b({}, form), {}, {
|
|
46995
46996
|
category: v
|
|
46996
46997
|
}));
|
|
46997
46998
|
}
|
|
@@ -46999,7 +47000,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
46999
47000
|
label: "Tags (comma-separated)",
|
|
47000
47001
|
value: form.tags,
|
|
47001
47002
|
onChange: function onChange(v) {
|
|
47002
|
-
return setForm(_objectSpread$
|
|
47003
|
+
return setForm(_objectSpread$b(_objectSpread$b({}, form), {}, {
|
|
47003
47004
|
tags: v
|
|
47004
47005
|
}));
|
|
47005
47006
|
}
|
|
@@ -47011,7 +47012,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
47011
47012
|
}), /*#__PURE__*/jsxs("select", {
|
|
47012
47013
|
value: form.visibility,
|
|
47013
47014
|
onChange: function onChange(e) {
|
|
47014
|
-
return setForm(_objectSpread$
|
|
47015
|
+
return setForm(_objectSpread$b(_objectSpread$b({}, form), {}, {
|
|
47015
47016
|
visibility: e.target.value
|
|
47016
47017
|
}));
|
|
47017
47018
|
},
|
|
@@ -47115,8 +47116,8 @@ var EditField = function EditField(_ref7) {
|
|
|
47115
47116
|
});
|
|
47116
47117
|
};
|
|
47117
47118
|
|
|
47118
|
-
function ownKeys$
|
|
47119
|
-
function _objectSpread$
|
|
47119
|
+
function ownKeys$a(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
47120
|
+
function _objectSpread$a(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$a(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$a(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
47120
47121
|
var NotificationsSection = function NotificationsSection(_ref) {
|
|
47121
47122
|
var _ref$workspaces = _ref.workspaces,
|
|
47122
47123
|
workspaces = _ref$workspaces === void 0 ? [] : _ref$workspaces;
|
|
@@ -47199,7 +47200,7 @@ var NotificationsSection = function NotificationsSection(_ref) {
|
|
|
47199
47200
|
}
|
|
47200
47201
|
function handleTypeToggle(widgetUuid, typeKey, value) {
|
|
47201
47202
|
var _window$mainApi4;
|
|
47202
|
-
var updated = _objectSpread$
|
|
47203
|
+
var updated = _objectSpread$a(_objectSpread$a({}, instances), {}, _defineProperty({}, widgetUuid, _objectSpread$a(_objectSpread$a({}, instances[widgetUuid] || {}), {}, _defineProperty({}, typeKey, value))));
|
|
47203
47204
|
setInstances(updated);
|
|
47204
47205
|
(_window$mainApi4 = window.mainApi) === null || _window$mainApi4 === void 0 || (_window$mainApi4 = _window$mainApi4.notifications) === null || _window$mainApi4 === void 0 || _window$mainApi4.setPreferences(widgetUuid, _defineProperty({}, typeKey, value));
|
|
47205
47206
|
}
|
|
@@ -47595,8 +47596,8 @@ var McpServerSection = function McpServerSection() {
|
|
|
47595
47596
|
});
|
|
47596
47597
|
};
|
|
47597
47598
|
|
|
47598
|
-
function ownKeys$
|
|
47599
|
-
function _objectSpread$
|
|
47599
|
+
function ownKeys$9(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
47600
|
+
function _objectSpread$9(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$9(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$9(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
47600
47601
|
var MODELS = [{
|
|
47601
47602
|
value: "claude-sonnet-4-20250514",
|
|
47602
47603
|
label: "Claude Sonnet 4"
|
|
@@ -47682,8 +47683,8 @@ var AiAssistantSection = function AiAssistantSection() {
|
|
|
47682
47683
|
var saveAiSettings = useCallback(function (updates) {
|
|
47683
47684
|
if (appContext !== null && appContext !== void 0 && appContext.changeSettings) {
|
|
47684
47685
|
var current = appContext.settings || {};
|
|
47685
|
-
var newAiSettings = _objectSpread$
|
|
47686
|
-
appContext.changeSettings(_objectSpread$
|
|
47686
|
+
var newAiSettings = _objectSpread$9(_objectSpread$9({}, current.aiAssistant || {}), updates);
|
|
47687
|
+
appContext.changeSettings(_objectSpread$9(_objectSpread$9({}, current), {}, {
|
|
47687
47688
|
aiAssistant: newAiSettings
|
|
47688
47689
|
}));
|
|
47689
47690
|
}
|
|
@@ -48626,8 +48627,8 @@ var DashTabBar = function DashTabBar(_ref) {
|
|
|
48626
48627
|
});
|
|
48627
48628
|
};
|
|
48628
48629
|
|
|
48629
|
-
function ownKeys$
|
|
48630
|
-
function _objectSpread$
|
|
48630
|
+
function ownKeys$8(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
48631
|
+
function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$8(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$8(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
48631
48632
|
var PageTabBar = function PageTabBar(_ref) {
|
|
48632
48633
|
var _ref$pages = _ref.pages,
|
|
48633
48634
|
pages = _ref$pages === void 0 ? [] : _ref$pages,
|
|
@@ -48711,7 +48712,7 @@ var PageTabBar = function PageTabBar(_ref) {
|
|
|
48711
48712
|
|
|
48712
48713
|
// Update order values
|
|
48713
48714
|
var updated = reordered.map(function (p, i) {
|
|
48714
|
-
return _objectSpread$
|
|
48715
|
+
return _objectSpread$8(_objectSpread$8({}, p), {}, {
|
|
48715
48716
|
order: i
|
|
48716
48717
|
});
|
|
48717
48718
|
});
|
|
@@ -48801,8 +48802,8 @@ var PageTabBar = function PageTabBar(_ref) {
|
|
|
48801
48802
|
});
|
|
48802
48803
|
};
|
|
48803
48804
|
|
|
48804
|
-
function ownKeys$
|
|
48805
|
-
function _objectSpread$
|
|
48805
|
+
function ownKeys$7(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
48806
|
+
function _objectSpread$7(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$7(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$7(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
48806
48807
|
function createEmptySidebarLayout() {
|
|
48807
48808
|
return [LayoutModel({
|
|
48808
48809
|
id: 90001,
|
|
@@ -48894,11 +48895,11 @@ var PinnedSidebar = /*#__PURE__*/React__default.memo(function (_ref) {
|
|
|
48894
48895
|
// Ensure sidebar grid uses grow mode for full-height rendering
|
|
48895
48896
|
layout = layout.map(function (item) {
|
|
48896
48897
|
if (item.grid && item.parent === 0) {
|
|
48897
|
-
return _objectSpread$
|
|
48898
|
+
return _objectSpread$7(_objectSpread$7({}, item), {}, {
|
|
48898
48899
|
scrollable: false,
|
|
48899
48900
|
height: "h-full",
|
|
48900
|
-
grid: _objectSpread$
|
|
48901
|
-
rowModes: _objectSpread$
|
|
48901
|
+
grid: _objectSpread$7(_objectSpread$7({}, item.grid), {}, {
|
|
48902
|
+
rowModes: _objectSpread$7(_objectSpread$7({}, item.grid.rowModes), {}, {
|
|
48902
48903
|
1: "grow"
|
|
48903
48904
|
})
|
|
48904
48905
|
})
|
|
@@ -48906,14 +48907,14 @@ var PinnedSidebar = /*#__PURE__*/React__default.memo(function (_ref) {
|
|
|
48906
48907
|
}
|
|
48907
48908
|
return item;
|
|
48908
48909
|
});
|
|
48909
|
-
return _objectSpread$
|
|
48910
|
+
return _objectSpread$7(_objectSpread$7({}, workspaceRefInternal.current), {}, {
|
|
48910
48911
|
layout: layout
|
|
48911
48912
|
});
|
|
48912
48913
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
48913
48914
|
}, [workspace === null || workspace === void 0 ? void 0 : workspace.id, sidebarLayout, hasWidget]);
|
|
48914
48915
|
var handleSidebarChange = useCallback(function (updatedWs) {
|
|
48915
48916
|
if (onWorkspaceChange && workspaceRefInternal.current) {
|
|
48916
|
-
onWorkspaceChange(_objectSpread$
|
|
48917
|
+
onWorkspaceChange(_objectSpread$7(_objectSpread$7({}, workspaceRefInternal.current), {}, {
|
|
48917
48918
|
sidebarLayout: updatedWs.layout || []
|
|
48918
48919
|
}));
|
|
48919
48920
|
}
|
|
@@ -49334,11 +49335,11 @@ var PopoverItem = function PopoverItem(_ref5) {
|
|
|
49334
49335
|
});
|
|
49335
49336
|
};
|
|
49336
49337
|
|
|
49337
|
-
function _createForOfIteratorHelper$
|
|
49338
|
-
function _unsupportedIterableToArray$
|
|
49339
|
-
function _arrayLikeToArray$
|
|
49340
|
-
function ownKeys$
|
|
49341
|
-
function _objectSpread$
|
|
49338
|
+
function _createForOfIteratorHelper$4(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$4(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
49339
|
+
function _unsupportedIterableToArray$4(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$4(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$4(r, a) : void 0; } }
|
|
49340
|
+
function _arrayLikeToArray$4(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
49341
|
+
function ownKeys$6(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
49342
|
+
function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$6(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$6(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
49342
49343
|
var DraggableWidgetItem = function DraggableWidgetItem(_ref) {
|
|
49343
49344
|
var widgetKey = _ref.widgetKey,
|
|
49344
49345
|
widget = _ref.widget;
|
|
@@ -49464,7 +49465,7 @@ var SidebarDiscoverContent = function SidebarDiscoverContent(_ref2) {
|
|
|
49464
49465
|
if (registry.installError) {
|
|
49465
49466
|
setProgressWidgets(function (prev) {
|
|
49466
49467
|
return prev.map(function (w) {
|
|
49467
|
-
return _objectSpread$
|
|
49468
|
+
return _objectSpread$6(_objectSpread$6({}, w), {}, {
|
|
49468
49469
|
status: "failed",
|
|
49469
49470
|
error: registry.installError
|
|
49470
49471
|
});
|
|
@@ -49473,7 +49474,7 @@ var SidebarDiscoverContent = function SidebarDiscoverContent(_ref2) {
|
|
|
49473
49474
|
} else {
|
|
49474
49475
|
setProgressWidgets(function (prev) {
|
|
49475
49476
|
return prev.map(function (w) {
|
|
49476
|
-
return _objectSpread$
|
|
49477
|
+
return _objectSpread$6(_objectSpread$6({}, w), {}, {
|
|
49477
49478
|
status: "installed"
|
|
49478
49479
|
});
|
|
49479
49480
|
});
|
|
@@ -49518,7 +49519,7 @@ var SidebarDiscoverContent = function SidebarDiscoverContent(_ref2) {
|
|
|
49518
49519
|
// Transition to downloading
|
|
49519
49520
|
setProgressWidgets(function (prev) {
|
|
49520
49521
|
return prev.map(function (w) {
|
|
49521
|
-
return _objectSpread$
|
|
49522
|
+
return _objectSpread$6(_objectSpread$6({}, w), {}, {
|
|
49522
49523
|
status: "downloading"
|
|
49523
49524
|
});
|
|
49524
49525
|
});
|
|
@@ -49878,7 +49879,7 @@ var WidgetSidebar = function WidgetSidebar(_ref4) {
|
|
|
49878
49879
|
return _context2.abrupt("return");
|
|
49879
49880
|
case 2:
|
|
49880
49881
|
names = new Set();
|
|
49881
|
-
_iterator = _createForOfIteratorHelper$
|
|
49882
|
+
_iterator = _createForOfIteratorHelper$4(widgets);
|
|
49882
49883
|
try {
|
|
49883
49884
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
49884
49885
|
w = _step.value;
|
|
@@ -50264,11 +50265,11 @@ var useMissingWidgets = function useMissingWidgets(workspace) {
|
|
|
50264
50265
|
};
|
|
50265
50266
|
};
|
|
50266
50267
|
|
|
50267
|
-
function ownKeys$
|
|
50268
|
-
function _objectSpread$
|
|
50269
|
-
function _createForOfIteratorHelper$
|
|
50270
|
-
function _unsupportedIterableToArray$
|
|
50271
|
-
function _arrayLikeToArray$
|
|
50268
|
+
function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
50269
|
+
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
50270
|
+
function _createForOfIteratorHelper$3(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$3(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
50271
|
+
function _unsupportedIterableToArray$3(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$3(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$3(r, a) : void 0; } }
|
|
50272
|
+
function _arrayLikeToArray$3(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
50272
50273
|
var MissingWidgetsModal = function MissingWidgetsModal(_ref) {
|
|
50273
50274
|
var _ref$missingComponent = _ref.missingComponents,
|
|
50274
50275
|
missingComponents = _ref$missingComponent === void 0 ? [] : _ref$missingComponent,
|
|
@@ -50319,7 +50320,7 @@ var MissingWidgetsModal = function MissingWidgetsModal(_ref) {
|
|
|
50319
50320
|
case 0:
|
|
50320
50321
|
results = [];
|
|
50321
50322
|
seen = new Set();
|
|
50322
|
-
_iterator = _createForOfIteratorHelper$
|
|
50323
|
+
_iterator = _createForOfIteratorHelper$3(missingComponents);
|
|
50323
50324
|
_context2.prev = 1;
|
|
50324
50325
|
_loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
|
|
50325
50326
|
var componentKey, _getWidgetSearchQuery, packageName, widgetName, pkg, result;
|
|
@@ -50490,7 +50491,7 @@ var MissingWidgetsModal = function MissingWidgetsModal(_ref) {
|
|
|
50490
50491
|
case 2:
|
|
50491
50492
|
setProgressWidgets(function (prev) {
|
|
50492
50493
|
var next = _toConsumableArray(prev);
|
|
50493
|
-
next[i] = _objectSpread$
|
|
50494
|
+
next[i] = _objectSpread$5(_objectSpread$5({}, next[i]), {}, {
|
|
50494
50495
|
status: "installed"
|
|
50495
50496
|
});
|
|
50496
50497
|
return next;
|
|
@@ -50502,7 +50503,7 @@ var MissingWidgetsModal = function MissingWidgetsModal(_ref) {
|
|
|
50502
50503
|
_t3 = _context3["catch"](1);
|
|
50503
50504
|
setProgressWidgets(function (prev) {
|
|
50504
50505
|
var next = _toConsumableArray(prev);
|
|
50505
|
-
next[i] = _objectSpread$
|
|
50506
|
+
next[i] = _objectSpread$5(_objectSpread$5({}, next[i]), {}, {
|
|
50506
50507
|
status: "failed",
|
|
50507
50508
|
error: _t3.message || "Install failed"
|
|
50508
50509
|
});
|
|
@@ -50640,8 +50641,8 @@ var MissingWidgetsModal = function MissingWidgetsModal(_ref) {
|
|
|
50640
50641
|
});
|
|
50641
50642
|
};
|
|
50642
50643
|
|
|
50643
|
-
function ownKeys$
|
|
50644
|
-
function _objectSpread$
|
|
50644
|
+
function ownKeys$4(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
50645
|
+
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
50645
50646
|
var DashboardStage = function DashboardStage(_ref) {
|
|
50646
50647
|
var dashApi = _ref.dashApi,
|
|
50647
50648
|
credentials = _ref.credentials,
|
|
@@ -50658,6 +50659,8 @@ var DashboardStage = function DashboardStage(_ref) {
|
|
|
50658
50659
|
_ref.showWelcomePrompt;
|
|
50659
50660
|
_ref.onAcceptWelcome;
|
|
50660
50661
|
_ref.onDismissWelcome;
|
|
50662
|
+
var _ref$renderAiAssistan = _ref.renderAiAssistant,
|
|
50663
|
+
renderAiAssistant = _ref$renderAiAssistan === void 0 ? null : _ref$renderAiAssistan;
|
|
50661
50664
|
return /*#__PURE__*/jsx(Profiler, {
|
|
50662
50665
|
id: "myapp",
|
|
50663
50666
|
onRender: function onRender() {},
|
|
@@ -50672,7 +50675,8 @@ var DashboardStage = function DashboardStage(_ref) {
|
|
|
50672
50675
|
preview: preview,
|
|
50673
50676
|
backgroundColor: backgroundColor,
|
|
50674
50677
|
popout: popout,
|
|
50675
|
-
popoutWorkspaceId: popoutWorkspaceId
|
|
50678
|
+
popoutWorkspaceId: popoutWorkspaceId,
|
|
50679
|
+
renderAiAssistant: renderAiAssistant
|
|
50676
50680
|
})
|
|
50677
50681
|
})
|
|
50678
50682
|
});
|
|
@@ -50694,7 +50698,7 @@ var PageLayoutBuilder = /*#__PURE__*/React__default.memo(function PageLayoutBuil
|
|
|
50694
50698
|
workspaceRef = _ref2.workspaceRef,
|
|
50695
50699
|
onWidgetPopout = _ref2.onWidgetPopout;
|
|
50696
50700
|
var pageWorkspace = useMemo(function () {
|
|
50697
|
-
return _objectSpread$
|
|
50701
|
+
return _objectSpread$4(_objectSpread$4({}, workspaceItem), {}, {
|
|
50698
50702
|
layout: page.layout || []
|
|
50699
50703
|
});
|
|
50700
50704
|
},
|
|
@@ -50728,7 +50732,9 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
50728
50732
|
var _ref3$popout = _ref3.popout,
|
|
50729
50733
|
popout = _ref3$popout === void 0 ? false : _ref3$popout,
|
|
50730
50734
|
_ref3$popoutWorkspace = _ref3.popoutWorkspaceId,
|
|
50731
|
-
popoutWorkspaceId = _ref3$popoutWorkspace === void 0 ? null : _ref3$popoutWorkspace
|
|
50735
|
+
popoutWorkspaceId = _ref3$popoutWorkspace === void 0 ? null : _ref3$popoutWorkspace,
|
|
50736
|
+
_ref3$renderAiAssista = _ref3.renderAiAssistant,
|
|
50737
|
+
renderAiAssistant = _ref3$renderAiAssista === void 0 ? null : _ref3$renderAiAssista;
|
|
50732
50738
|
var _useContext = useContext(DashboardContext),
|
|
50733
50739
|
pub = _useContext.pub;
|
|
50734
50740
|
var appContext = useContext(AppContext);
|
|
@@ -51096,7 +51102,7 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51096
51102
|
// Sync fresh workspace data to existing tab
|
|
51097
51103
|
setOpenTabs(function (prev) {
|
|
51098
51104
|
return prev.map(function (tab) {
|
|
51099
|
-
return tab.id === existingTab.id ? _objectSpread$
|
|
51105
|
+
return tab.id === existingTab.id ? _objectSpread$4(_objectSpread$4({}, tab), {}, {
|
|
51100
51106
|
name: workspaceItem.name || "Untitled",
|
|
51101
51107
|
workspace: workspaceItem
|
|
51102
51108
|
}) : tab;
|
|
@@ -51149,7 +51155,7 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51149
51155
|
if (!ws) return;
|
|
51150
51156
|
setOpenTabs(function (prev) {
|
|
51151
51157
|
return prev.map(function (tab) {
|
|
51152
|
-
return tab.id === ws.id ? _objectSpread$
|
|
51158
|
+
return tab.id === ws.id ? _objectSpread$4(_objectSpread$4({}, tab), {}, {
|
|
51153
51159
|
name: ws.name || "Untitled",
|
|
51154
51160
|
workspace: ws
|
|
51155
51161
|
}) : tab;
|
|
@@ -51246,7 +51252,7 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51246
51252
|
if (activeTabId) {
|
|
51247
51253
|
setOpenTabs(function (prev) {
|
|
51248
51254
|
return prev.map(function (tab) {
|
|
51249
|
-
return tab.id === activeTabId ? _objectSpread$
|
|
51255
|
+
return tab.id === activeTabId ? _objectSpread$4(_objectSpread$4({}, tab), {}, {
|
|
51250
51256
|
name: wsModel.name || "Untitled",
|
|
51251
51257
|
workspace: wsModel
|
|
51252
51258
|
}) : tab;
|
|
@@ -51271,8 +51277,8 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51271
51277
|
if (workspaceSelected && widgetId) {
|
|
51272
51278
|
// Build widget-specific provider selections
|
|
51273
51279
|
var currentSelections = workspaceSelected.selectedProviders || {};
|
|
51274
|
-
var updatedWorkspace = _objectSpread$
|
|
51275
|
-
selectedProviders: _objectSpread$
|
|
51280
|
+
var updatedWorkspace = _objectSpread$4(_objectSpread$4({}, workspaceSelected), {}, {
|
|
51281
|
+
selectedProviders: _objectSpread$4(_objectSpread$4({}, currentSelections), {}, _defineProperty({}, widgetId, updatedProviders))
|
|
51276
51282
|
});
|
|
51277
51283
|
|
|
51278
51284
|
// Update the tab's workspace reference
|
|
@@ -51295,7 +51301,7 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51295
51301
|
var sidebarWorkspaceRef = useRef(null);
|
|
51296
51302
|
function handleSidebarToggle(enabled) {
|
|
51297
51303
|
if (!workspaceSelected) return;
|
|
51298
|
-
handleWorkspaceChange(_objectSpread$
|
|
51304
|
+
handleWorkspaceChange(_objectSpread$4(_objectSpread$4({}, workspaceSelected), {}, {
|
|
51299
51305
|
sidebarEnabled: enabled
|
|
51300
51306
|
}));
|
|
51301
51307
|
}
|
|
@@ -51339,7 +51345,7 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51339
51345
|
}
|
|
51340
51346
|
var newPage = DashboardModel.createPage("Page ".concat(existingPages.length + 1));
|
|
51341
51347
|
newPage.order = existingPages.length;
|
|
51342
|
-
var updatedWorkspace = _objectSpread$
|
|
51348
|
+
var updatedWorkspace = _objectSpread$4(_objectSpread$4({}, workspaceSelected), {}, {
|
|
51343
51349
|
pages: [].concat(_toConsumableArray(existingPages), [newPage]),
|
|
51344
51350
|
activePageId: newPage.id
|
|
51345
51351
|
});
|
|
@@ -51352,11 +51358,11 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51352
51358
|
function handleRenamePage(pageId, newName) {
|
|
51353
51359
|
if (!workspaceSelected) return;
|
|
51354
51360
|
var updatedPages = workspacePages.map(function (p) {
|
|
51355
|
-
return p.id === pageId ? _objectSpread$
|
|
51361
|
+
return p.id === pageId ? _objectSpread$4(_objectSpread$4({}, p), {}, {
|
|
51356
51362
|
name: newName
|
|
51357
51363
|
}) : p;
|
|
51358
51364
|
});
|
|
51359
|
-
handleWorkspaceChange(_objectSpread$
|
|
51365
|
+
handleWorkspaceChange(_objectSpread$4(_objectSpread$4({}, workspaceSelected), {}, {
|
|
51360
51366
|
pages: updatedPages
|
|
51361
51367
|
}));
|
|
51362
51368
|
}
|
|
@@ -51371,7 +51377,7 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51371
51377
|
|
|
51372
51378
|
// If only one page remains, convert back to single-page mode
|
|
51373
51379
|
if (updatedPages.length === 1) {
|
|
51374
|
-
handleWorkspaceChange(_objectSpread$
|
|
51380
|
+
handleWorkspaceChange(_objectSpread$4(_objectSpread$4({}, workspaceSelected), {}, {
|
|
51375
51381
|
layout: updatedPages[0].layout,
|
|
51376
51382
|
pages: [],
|
|
51377
51383
|
activePageId: null
|
|
@@ -51379,14 +51385,14 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51379
51385
|
setActivePageId(null);
|
|
51380
51386
|
return;
|
|
51381
51387
|
}
|
|
51382
|
-
handleWorkspaceChange(_objectSpread$
|
|
51388
|
+
handleWorkspaceChange(_objectSpread$4(_objectSpread$4({}, workspaceSelected), {}, {
|
|
51383
51389
|
pages: updatedPages,
|
|
51384
51390
|
activePageId: newActiveId
|
|
51385
51391
|
}));
|
|
51386
51392
|
}
|
|
51387
51393
|
function handleReorderPages(reorderedPages) {
|
|
51388
51394
|
if (!workspaceSelected) return;
|
|
51389
|
-
handleWorkspaceChange(_objectSpread$
|
|
51395
|
+
handleWorkspaceChange(_objectSpread$4(_objectSpread$4({}, workspaceSelected), {}, {
|
|
51390
51396
|
pages: reorderedPages
|
|
51391
51397
|
}));
|
|
51392
51398
|
}
|
|
@@ -51600,9 +51606,9 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51600
51606
|
var _pageRef$current;
|
|
51601
51607
|
var pageRef = pageRefsMap.current[page.id];
|
|
51602
51608
|
var latestLayout = (pageRef === null || pageRef === void 0 || (_pageRef$current = pageRef.current) === null || _pageRef$current === void 0 ? void 0 : _pageRef$current.layout) || page.layout || [];
|
|
51603
|
-
return _objectSpread$
|
|
51609
|
+
return _objectSpread$4(_objectSpread$4({}, page), {}, {
|
|
51604
51610
|
layout: latestLayout.map(function (item) {
|
|
51605
|
-
var copy = _objectSpread$
|
|
51611
|
+
var copy = _objectSpread$4({}, item);
|
|
51606
51612
|
delete copy.widgetConfig;
|
|
51607
51613
|
return copy;
|
|
51608
51614
|
})
|
|
@@ -51611,7 +51617,7 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51611
51617
|
workspaceToSave.activePageId = currentActivePageId;
|
|
51612
51618
|
// Also sanitize the root layout (may be stale from pre-pages era)
|
|
51613
51619
|
workspaceToSave.layout = (workspaceToSave.layout || []).map(function (item) {
|
|
51614
|
-
var copy = _objectSpread$
|
|
51620
|
+
var copy = _objectSpread$4({}, item);
|
|
51615
51621
|
delete copy.widgetConfig;
|
|
51616
51622
|
return copy;
|
|
51617
51623
|
});
|
|
@@ -51628,7 +51634,7 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51628
51634
|
// Gather sidebar layout from its LayoutBuilder ref
|
|
51629
51635
|
if ((_sidebarWorkspaceRef$ = sidebarWorkspaceRef.current) !== null && _sidebarWorkspaceRef$ !== void 0 && _sidebarWorkspaceRef$.layout) {
|
|
51630
51636
|
workspaceToSave.sidebarLayout = sidebarWorkspaceRef.current.layout.map(function (item) {
|
|
51631
|
-
var copy = _objectSpread$
|
|
51637
|
+
var copy = _objectSpread$4({}, item);
|
|
51632
51638
|
delete copy.widgetConfig;
|
|
51633
51639
|
return copy;
|
|
51634
51640
|
});
|
|
@@ -51674,7 +51680,7 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51674
51680
|
if (savedWs) {
|
|
51675
51681
|
setOpenTabs(function (prev) {
|
|
51676
51682
|
return prev.map(function (tab) {
|
|
51677
|
-
return tab.id === activeTabId ? _objectSpread$
|
|
51683
|
+
return tab.id === activeTabId ? _objectSpread$4(_objectSpread$4({}, tab), {}, {
|
|
51678
51684
|
name: savedWs.name || "Untitled",
|
|
51679
51685
|
workspace: savedWs
|
|
51680
51686
|
}) : tab;
|
|
@@ -51978,7 +51984,7 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51978
51984
|
}), !popout && !previewMode && workspaceSelected && /*#__PURE__*/jsx(WidgetSidebar, {
|
|
51979
51985
|
collapsed: widgetSidebarCollapsed,
|
|
51980
51986
|
onCollapsedChange: setWidgetSidebarCollapsed
|
|
51981
|
-
})]
|
|
51987
|
+
}), !popout && renderAiAssistant]
|
|
51982
51988
|
}), !popout && /*#__PURE__*/jsxs(Fragment, {
|
|
51983
51989
|
children: [/*#__PURE__*/jsx(AppSettingsModal, {
|
|
51984
51990
|
isOpen: isAppSettingsOpen,
|
|
@@ -52397,8 +52403,8 @@ var DashboardHeader = function DashboardHeader(_ref) {
|
|
|
52397
52403
|
});
|
|
52398
52404
|
};
|
|
52399
52405
|
|
|
52400
|
-
function ownKeys$
|
|
52401
|
-
function _objectSpread$
|
|
52406
|
+
function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
52407
|
+
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
52402
52408
|
var MAX_LOG_ENTRIES = 200;
|
|
52403
52409
|
function truncateJson(obj) {
|
|
52404
52410
|
var maxLen = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 120;
|
|
@@ -52463,7 +52469,7 @@ var DashboardMonitor = function DashboardMonitor() {
|
|
|
52463
52469
|
useEffect(function () {
|
|
52464
52470
|
var unsub = DashboardPublisher.onMonitor(function (data) {
|
|
52465
52471
|
setEventLog(function (prev) {
|
|
52466
|
-
var next = [].concat(_toConsumableArray(prev), [_objectSpread$
|
|
52472
|
+
var next = [].concat(_toConsumableArray(prev), [_objectSpread$3(_objectSpread$3({}, data), {}, {
|
|
52467
52473
|
parsed: parseEventType(data.eventType)
|
|
52468
52474
|
})]);
|
|
52469
52475
|
return next.length > MAX_LOG_ENTRIES ? next.slice(-MAX_LOG_ENTRIES) : next;
|
|
@@ -52579,11 +52585,11 @@ var DashboardMonitor = function DashboardMonitor() {
|
|
|
52579
52585
|
});
|
|
52580
52586
|
};
|
|
52581
52587
|
|
|
52582
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
52583
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
52584
|
-
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
52585
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
52586
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
52588
|
+
function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
52589
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
52590
|
+
function _createForOfIteratorHelper$2(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$2(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
52591
|
+
function _unsupportedIterableToArray$2(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$2(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$2(r, a) : void 0; } }
|
|
52592
|
+
function _arrayLikeToArray$2(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
52587
52593
|
var WidgetPopoutStage = function WidgetPopoutStage(_ref) {
|
|
52588
52594
|
var dashApi = _ref.dashApi,
|
|
52589
52595
|
credentials = _ref.credentials,
|
|
@@ -52665,7 +52671,7 @@ var WidgetPopoutInner = function WidgetPopoutInner(_ref2) {
|
|
|
52665
52671
|
return item.id === widgetId;
|
|
52666
52672
|
});
|
|
52667
52673
|
if (!widget && target.pages && Array.isArray(target.pages)) {
|
|
52668
|
-
var _iterator = _createForOfIteratorHelper(target.pages),
|
|
52674
|
+
var _iterator = _createForOfIteratorHelper$2(target.pages),
|
|
52669
52675
|
_step;
|
|
52670
52676
|
try {
|
|
52671
52677
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -52695,8 +52701,8 @@ var WidgetPopoutInner = function WidgetPopoutInner(_ref2) {
|
|
|
52695
52701
|
|
|
52696
52702
|
// Merge provider selections: widget-level (persisted on layout item)
|
|
52697
52703
|
// takes priority, workspace-level (keyed by uuid) is the fallback
|
|
52698
|
-
var widgetWithProviders = _objectSpread(_objectSpread({}, widget), {}, {
|
|
52699
|
-
selectedProviders: _objectSpread(_objectSpread({}, ((_target$selectedProvi = target.selectedProviders) === null || _target$selectedProvi === void 0 ? void 0 : _target$selectedProvi[widget.uuid]) || {}), widget.selectedProviders || {})
|
|
52704
|
+
var widgetWithProviders = _objectSpread$2(_objectSpread$2({}, widget), {}, {
|
|
52705
|
+
selectedProviders: _objectSpread$2(_objectSpread$2({}, ((_target$selectedProvi = target.selectedProviders) === null || _target$selectedProvi === void 0 ? void 0 : _target$selectedProvi[widget.uuid]) || {}), widget.selectedProviders || {})
|
|
52700
52706
|
});
|
|
52701
52707
|
setWidgetItem(widgetWithProviders);
|
|
52702
52708
|
|
|
@@ -53759,6 +53765,875 @@ var WorkspaceMenu = function WorkspaceMenu(_ref) {
|
|
|
53759
53765
|
});
|
|
53760
53766
|
};
|
|
53761
53767
|
|
|
53768
|
+
/**
|
|
53769
|
+
* StreamingText
|
|
53770
|
+
*
|
|
53771
|
+
* Renders partial text with a blinking cursor while streaming is active.
|
|
53772
|
+
*/
|
|
53773
|
+
var StreamingText = function StreamingText(_ref) {
|
|
53774
|
+
var text = _ref.text,
|
|
53775
|
+
isStreaming = _ref.isStreaming;
|
|
53776
|
+
if (!text && !isStreaming) return null;
|
|
53777
|
+
return /*#__PURE__*/jsxs("span", {
|
|
53778
|
+
className: "whitespace-pre-wrap break-words",
|
|
53779
|
+
children: [text, isStreaming && /*#__PURE__*/jsx("span", {
|
|
53780
|
+
className: "inline-block w-2 h-4 ml-0.5 bg-indigo-400 animate-pulse align-text-bottom"
|
|
53781
|
+
})]
|
|
53782
|
+
});
|
|
53783
|
+
};
|
|
53784
|
+
|
|
53785
|
+
var ToolCallBlock = function ToolCallBlock(_ref) {
|
|
53786
|
+
var toolName = _ref.toolName,
|
|
53787
|
+
serverName = _ref.serverName,
|
|
53788
|
+
input = _ref.input,
|
|
53789
|
+
result = _ref.result,
|
|
53790
|
+
isError = _ref.isError,
|
|
53791
|
+
isLoading = _ref.isLoading;
|
|
53792
|
+
var _useState = useState(false),
|
|
53793
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
53794
|
+
expanded = _useState2[0],
|
|
53795
|
+
setExpanded = _useState2[1];
|
|
53796
|
+
return /*#__PURE__*/jsxs("div", {
|
|
53797
|
+
className: "my-1.5 border border-gray-700 rounded-md overflow-hidden text-xs",
|
|
53798
|
+
children: [/*#__PURE__*/jsxs("button", {
|
|
53799
|
+
onClick: function onClick() {
|
|
53800
|
+
return setExpanded(!expanded);
|
|
53801
|
+
},
|
|
53802
|
+
className: "w-full flex items-center gap-2 px-2.5 py-1.5 bg-gray-800/60 hover:bg-gray-800 transition-colors text-left",
|
|
53803
|
+
children: [isLoading ? /*#__PURE__*/jsx("span", {
|
|
53804
|
+
className: "inline-block w-2 h-2 rounded-full bg-yellow-500 animate-pulse"
|
|
53805
|
+
}) : isError ? /*#__PURE__*/jsx("span", {
|
|
53806
|
+
className: "inline-block w-2 h-2 rounded-full bg-red-500"
|
|
53807
|
+
}) : /*#__PURE__*/jsx("span", {
|
|
53808
|
+
className: "inline-block w-2 h-2 rounded-full bg-green-500"
|
|
53809
|
+
}), /*#__PURE__*/jsx("span", {
|
|
53810
|
+
className: "font-mono text-indigo-300",
|
|
53811
|
+
children: toolName
|
|
53812
|
+
}), serverName && /*#__PURE__*/jsxs("span", {
|
|
53813
|
+
className: "text-gray-600",
|
|
53814
|
+
children: ["via ", serverName]
|
|
53815
|
+
}), /*#__PURE__*/jsx("span", {
|
|
53816
|
+
className: "ml-auto text-gray-600",
|
|
53817
|
+
children: expanded ? "\u25B2" : "\u25BC"
|
|
53818
|
+
})]
|
|
53819
|
+
}), expanded && /*#__PURE__*/jsxs("div", {
|
|
53820
|
+
className: "px-2.5 py-2 space-y-2 bg-gray-900/50",
|
|
53821
|
+
children: [input && /*#__PURE__*/jsxs("div", {
|
|
53822
|
+
children: [/*#__PURE__*/jsx("div", {
|
|
53823
|
+
className: "text-gray-500 mb-0.5",
|
|
53824
|
+
children: "Input:"
|
|
53825
|
+
}), /*#__PURE__*/jsx("pre", {
|
|
53826
|
+
className: "text-gray-400 bg-black/30 p-1.5 rounded overflow-x-auto max-h-32 overflow-y-auto",
|
|
53827
|
+
children: typeof input === "string" ? input : JSON.stringify(input, null, 2)
|
|
53828
|
+
})]
|
|
53829
|
+
}), result !== undefined && /*#__PURE__*/jsxs("div", {
|
|
53830
|
+
children: [/*#__PURE__*/jsx("div", {
|
|
53831
|
+
className: "text-gray-500 mb-0.5",
|
|
53832
|
+
children: "Result:"
|
|
53833
|
+
}), /*#__PURE__*/jsx("pre", {
|
|
53834
|
+
className: "p-1.5 rounded overflow-x-auto max-h-48 overflow-y-auto ".concat(isError ? "text-red-400 bg-red-950/30" : "text-gray-400 bg-black/30"),
|
|
53835
|
+
children: typeof result === "string" ? result : JSON.stringify(result, null, 2)
|
|
53836
|
+
})]
|
|
53837
|
+
}), isLoading && /*#__PURE__*/jsx("div", {
|
|
53838
|
+
className: "text-yellow-400 italic",
|
|
53839
|
+
children: "Running..."
|
|
53840
|
+
})]
|
|
53841
|
+
})]
|
|
53842
|
+
});
|
|
53843
|
+
};
|
|
53844
|
+
|
|
53845
|
+
function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
53846
|
+
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
53847
|
+
function _createForOfIteratorHelper$1(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$1(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
53848
|
+
function _unsupportedIterableToArray$1(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1(r, a) : void 0; } }
|
|
53849
|
+
function _arrayLikeToArray$1(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
53850
|
+
function AssistantTextContent(_ref) {
|
|
53851
|
+
var text = _ref.text;
|
|
53852
|
+
if (!text) return null;
|
|
53853
|
+
var html = marked(text, {
|
|
53854
|
+
breaks: true
|
|
53855
|
+
});
|
|
53856
|
+
return /*#__PURE__*/jsx("div", {
|
|
53857
|
+
className: "prose prose-invert prose-sm max-w-none prose-p:my-2 prose-headings:my-3 prose-ul:my-2 prose-ol:my-2 prose-li:my-0.5 prose-pre:bg-black/40 prose-pre:text-gray-300 prose-code:text-indigo-300 prose-a:text-indigo-400 leading-relaxed",
|
|
53858
|
+
dangerouslySetInnerHTML: {
|
|
53859
|
+
__html: html
|
|
53860
|
+
}
|
|
53861
|
+
});
|
|
53862
|
+
}
|
|
53863
|
+
var MessageBubble = function MessageBubble(_ref2) {
|
|
53864
|
+
var message = _ref2.message,
|
|
53865
|
+
isStreaming = _ref2.isStreaming,
|
|
53866
|
+
streamingText = _ref2.streamingText;
|
|
53867
|
+
var role = message.role,
|
|
53868
|
+
content = message.content,
|
|
53869
|
+
toolCalls = message.toolCalls;
|
|
53870
|
+
if (role === "user") {
|
|
53871
|
+
var text = typeof content === "string" ? content : Array.isArray(content) ? content.filter(function (c) {
|
|
53872
|
+
return c.type === "text";
|
|
53873
|
+
}).map(function (c) {
|
|
53874
|
+
return c.text;
|
|
53875
|
+
}).join("") : "";
|
|
53876
|
+
return /*#__PURE__*/jsxs("div", {
|
|
53877
|
+
className: "mb-4 pt-3 border-t border-gray-700/30",
|
|
53878
|
+
children: [/*#__PURE__*/jsx("div", {
|
|
53879
|
+
className: "text-[10px] font-semibold uppercase tracking-wider text-indigo-400 mb-1.5",
|
|
53880
|
+
children: "You"
|
|
53881
|
+
}), /*#__PURE__*/jsx("div", {
|
|
53882
|
+
className: "text-sm text-gray-100 whitespace-pre-wrap break-words leading-relaxed",
|
|
53883
|
+
children: text
|
|
53884
|
+
})]
|
|
53885
|
+
});
|
|
53886
|
+
}
|
|
53887
|
+
if (role === "assistant") {
|
|
53888
|
+
var textParts = [];
|
|
53889
|
+
var toolBlocks = [];
|
|
53890
|
+
if (Array.isArray(content)) {
|
|
53891
|
+
var _iterator = _createForOfIteratorHelper$1(content),
|
|
53892
|
+
_step;
|
|
53893
|
+
try {
|
|
53894
|
+
var _loop = function _loop() {
|
|
53895
|
+
var block = _step.value;
|
|
53896
|
+
if (block.type === "text") {
|
|
53897
|
+
textParts.push(block.text);
|
|
53898
|
+
} else if (block.type === "tool_use") {
|
|
53899
|
+
var callInfo = toolCalls === null || toolCalls === void 0 ? void 0 : toolCalls.find(function (tc) {
|
|
53900
|
+
return tc.toolUseId === block.id;
|
|
53901
|
+
});
|
|
53902
|
+
toolBlocks.push(_objectSpread$1(_objectSpread$1({}, block), {}, {
|
|
53903
|
+
serverName: callInfo === null || callInfo === void 0 ? void 0 : callInfo.serverName,
|
|
53904
|
+
result: callInfo === null || callInfo === void 0 ? void 0 : callInfo.result,
|
|
53905
|
+
isError: callInfo === null || callInfo === void 0 ? void 0 : callInfo.isError,
|
|
53906
|
+
isLoading: callInfo === null || callInfo === void 0 ? void 0 : callInfo.isLoading
|
|
53907
|
+
}));
|
|
53908
|
+
}
|
|
53909
|
+
};
|
|
53910
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
53911
|
+
_loop();
|
|
53912
|
+
}
|
|
53913
|
+
} catch (err) {
|
|
53914
|
+
_iterator.e(err);
|
|
53915
|
+
} finally {
|
|
53916
|
+
_iterator.f();
|
|
53917
|
+
}
|
|
53918
|
+
} else if (typeof content === "string") {
|
|
53919
|
+
textParts.push(content);
|
|
53920
|
+
}
|
|
53921
|
+
var _text = textParts.join("");
|
|
53922
|
+
return /*#__PURE__*/jsxs("div", {
|
|
53923
|
+
className: "mb-4",
|
|
53924
|
+
children: [/*#__PURE__*/jsx("div", {
|
|
53925
|
+
className: "text-[10px] font-semibold uppercase tracking-wider text-gray-500 mb-1.5",
|
|
53926
|
+
children: "Assistant"
|
|
53927
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
53928
|
+
className: "text-sm leading-relaxed",
|
|
53929
|
+
children: [isStreaming && /*#__PURE__*/jsx("div", {
|
|
53930
|
+
className: "text-gray-200",
|
|
53931
|
+
children: /*#__PURE__*/jsx(StreamingText, {
|
|
53932
|
+
text: streamingText,
|
|
53933
|
+
isStreaming: true
|
|
53934
|
+
})
|
|
53935
|
+
}), !isStreaming && _text && /*#__PURE__*/jsx(AssistantTextContent, {
|
|
53936
|
+
text: _text
|
|
53937
|
+
}), toolBlocks.map(function (block) {
|
|
53938
|
+
return /*#__PURE__*/jsx(ToolCallBlock, {
|
|
53939
|
+
toolName: block.name,
|
|
53940
|
+
serverName: block.serverName,
|
|
53941
|
+
input: block.input,
|
|
53942
|
+
result: block.result,
|
|
53943
|
+
isError: block.isError,
|
|
53944
|
+
isLoading: block.isLoading
|
|
53945
|
+
}, block.id);
|
|
53946
|
+
})]
|
|
53947
|
+
})]
|
|
53948
|
+
});
|
|
53949
|
+
}
|
|
53950
|
+
return null;
|
|
53951
|
+
};
|
|
53952
|
+
|
|
53953
|
+
/**
|
|
53954
|
+
* ChatMessages
|
|
53955
|
+
*
|
|
53956
|
+
* Scrollable message list that auto-scrolls to the bottom on new messages.
|
|
53957
|
+
*/
|
|
53958
|
+
var ChatMessages = function ChatMessages(_ref) {
|
|
53959
|
+
var messages = _ref.messages,
|
|
53960
|
+
streamingRequestId = _ref.streamingRequestId,
|
|
53961
|
+
streamingText = _ref.streamingText;
|
|
53962
|
+
var scrollRef = useRef(null);
|
|
53963
|
+
useEffect(function () {
|
|
53964
|
+
if (scrollRef.current) {
|
|
53965
|
+
scrollRef.current.scrollTop = scrollRef.current.scrollHeight;
|
|
53966
|
+
}
|
|
53967
|
+
}, [messages, streamingText]);
|
|
53968
|
+
if (messages.length === 0) {
|
|
53969
|
+
return /*#__PURE__*/jsx("div", {
|
|
53970
|
+
className: "flex-1 flex items-center justify-center text-gray-600 text-sm",
|
|
53971
|
+
children: /*#__PURE__*/jsxs("div", {
|
|
53972
|
+
className: "text-center space-y-1",
|
|
53973
|
+
children: [/*#__PURE__*/jsx("div", {
|
|
53974
|
+
className: "text-2xl",
|
|
53975
|
+
children: "\uD83D\uDCAC"
|
|
53976
|
+
}), /*#__PURE__*/jsx("div", {
|
|
53977
|
+
children: "Send a message to start chatting"
|
|
53978
|
+
})]
|
|
53979
|
+
})
|
|
53980
|
+
});
|
|
53981
|
+
}
|
|
53982
|
+
return /*#__PURE__*/jsx("div", {
|
|
53983
|
+
ref: scrollRef,
|
|
53984
|
+
className: "flex-1 overflow-y-auto px-4 py-3 scroll-smooth",
|
|
53985
|
+
children: messages.map(function (message, index) {
|
|
53986
|
+
var isLastAssistant = message.role === "assistant" && index === messages.length - 1;
|
|
53987
|
+
var isStreaming = isLastAssistant && streamingRequestId !== null;
|
|
53988
|
+
return /*#__PURE__*/jsx(MessageBubble, {
|
|
53989
|
+
message: message,
|
|
53990
|
+
isStreaming: isStreaming,
|
|
53991
|
+
streamingText: isStreaming ? streamingText : ""
|
|
53992
|
+
}, message.id || index);
|
|
53993
|
+
})
|
|
53994
|
+
});
|
|
53995
|
+
};
|
|
53996
|
+
|
|
53997
|
+
var ChatInput = function ChatInput(_ref) {
|
|
53998
|
+
var onSend = _ref.onSend,
|
|
53999
|
+
onStop = _ref.onStop,
|
|
54000
|
+
isLoading = _ref.isLoading,
|
|
54001
|
+
disabled = _ref.disabled;
|
|
54002
|
+
var _useState = useState(""),
|
|
54003
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
54004
|
+
input = _useState2[0],
|
|
54005
|
+
setInput = _useState2[1];
|
|
54006
|
+
var textareaRef = useRef(null);
|
|
54007
|
+
useEffect(function () {
|
|
54008
|
+
var el = textareaRef.current;
|
|
54009
|
+
if (el) {
|
|
54010
|
+
el.style.height = "auto";
|
|
54011
|
+
el.style.height = Math.min(el.scrollHeight, 120) + "px";
|
|
54012
|
+
}
|
|
54013
|
+
}, [input]);
|
|
54014
|
+
var handleSend = function handleSend() {
|
|
54015
|
+
var trimmed = input.trim();
|
|
54016
|
+
if (!trimmed || isLoading) return;
|
|
54017
|
+
onSend(trimmed);
|
|
54018
|
+
setInput("");
|
|
54019
|
+
};
|
|
54020
|
+
var handleKeyDown = function handleKeyDown(e) {
|
|
54021
|
+
if (e.key === "Enter" && !e.shiftKey) {
|
|
54022
|
+
e.preventDefault();
|
|
54023
|
+
handleSend();
|
|
54024
|
+
}
|
|
54025
|
+
};
|
|
54026
|
+
return /*#__PURE__*/jsxs("div", {
|
|
54027
|
+
className: "flex items-end gap-2 px-3 py-2 border-t border-gray-700/50",
|
|
54028
|
+
children: [/*#__PURE__*/jsx("textarea", {
|
|
54029
|
+
ref: textareaRef,
|
|
54030
|
+
value: input,
|
|
54031
|
+
onChange: function onChange(e) {
|
|
54032
|
+
return setInput(e.target.value);
|
|
54033
|
+
},
|
|
54034
|
+
onKeyDown: handleKeyDown,
|
|
54035
|
+
placeholder: "Type a message...",
|
|
54036
|
+
disabled: disabled,
|
|
54037
|
+
rows: 1,
|
|
54038
|
+
className: "flex-1 px-3 py-2 bg-gray-800 border border-gray-700 rounded-lg text-sm text-gray-200 placeholder-gray-500 focus:outline-none focus:border-indigo-500 resize-none disabled:opacity-50"
|
|
54039
|
+
}), isLoading ? /*#__PURE__*/jsx("button", {
|
|
54040
|
+
onClick: onStop,
|
|
54041
|
+
className: "px-3 py-2 rounded-lg bg-red-700 hover:bg-red-600 text-white text-sm font-medium transition-colors shrink-0",
|
|
54042
|
+
children: "Stop"
|
|
54043
|
+
}) : /*#__PURE__*/jsx("button", {
|
|
54044
|
+
onClick: handleSend,
|
|
54045
|
+
disabled: !input.trim() || disabled,
|
|
54046
|
+
className: "px-3 py-2 rounded-lg bg-indigo-600 hover:bg-indigo-500 disabled:opacity-40 disabled:cursor-not-allowed text-white text-sm font-medium transition-colors shrink-0",
|
|
54047
|
+
children: "Send"
|
|
54048
|
+
})]
|
|
54049
|
+
});
|
|
54050
|
+
};
|
|
54051
|
+
|
|
54052
|
+
var ToolSelector = function ToolSelector(_ref) {
|
|
54053
|
+
var servers = _ref.servers,
|
|
54054
|
+
enabledTools = _ref.enabledTools,
|
|
54055
|
+
onToggle = _ref.onToggle;
|
|
54056
|
+
var _useState = useState(false),
|
|
54057
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
54058
|
+
expanded = _useState2[0],
|
|
54059
|
+
setExpanded = _useState2[1];
|
|
54060
|
+
var totalTools = servers.reduce(function (sum, s) {
|
|
54061
|
+
var _s$tools;
|
|
54062
|
+
return sum + (((_s$tools = s.tools) === null || _s$tools === void 0 ? void 0 : _s$tools.length) || 0);
|
|
54063
|
+
}, 0);
|
|
54064
|
+
var enabledCount = Object.values(enabledTools).filter(Boolean).length;
|
|
54065
|
+
if (totalTools === 0) return null;
|
|
54066
|
+
return /*#__PURE__*/jsxs("div", {
|
|
54067
|
+
className: "text-xs",
|
|
54068
|
+
children: [/*#__PURE__*/jsxs("button", {
|
|
54069
|
+
onClick: function onClick() {
|
|
54070
|
+
return setExpanded(!expanded);
|
|
54071
|
+
},
|
|
54072
|
+
className: "flex items-center gap-1.5 px-2 py-1 rounded hover:bg-white/5 transition-colors text-gray-400",
|
|
54073
|
+
children: [/*#__PURE__*/jsx("svg", {
|
|
54074
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
54075
|
+
viewBox: "0 0 20 20",
|
|
54076
|
+
fill: "currentColor",
|
|
54077
|
+
className: "w-3.5 h-3.5",
|
|
54078
|
+
children: /*#__PURE__*/jsx("path", {
|
|
54079
|
+
fillRule: "evenodd",
|
|
54080
|
+
d: "M14.5 10a4.5 4.5 0 004.284-5.882c-.105-.324-.51-.391-.752-.15L15.34 6.66a.454.454 0 01-.493.11 3.01 3.01 0 01-1.618-1.616.455.455 0 01.11-.494l2.694-2.692c.24-.241.174-.647-.15-.752a4.5 4.5 0 00-5.873 4.575c.055.873-.128 1.808-.8 2.368l-7.23 6.024a2.724 2.724 0 103.837 3.837l6.024-7.23c.56-.672 1.495-.855 2.368-.8.096.007.193.01.291.01zM5 16a1 1 0 11-2 0 1 1 0 012 0z",
|
|
54081
|
+
clipRule: "evenodd"
|
|
54082
|
+
})
|
|
54083
|
+
}), /*#__PURE__*/jsxs("span", {
|
|
54084
|
+
children: ["Tools (", enabledCount, "/", totalTools, ")"]
|
|
54085
|
+
}), /*#__PURE__*/jsx("span", {
|
|
54086
|
+
className: "text-gray-600",
|
|
54087
|
+
children: expanded ? "\u25B2" : "\u25BC"
|
|
54088
|
+
})]
|
|
54089
|
+
}), expanded && /*#__PURE__*/jsx("div", {
|
|
54090
|
+
className: "mt-1 p-2 bg-gray-800/50 rounded-md border border-gray-700 max-h-48 overflow-y-auto space-y-2",
|
|
54091
|
+
children: servers.map(function (server) {
|
|
54092
|
+
return /*#__PURE__*/jsxs("div", {
|
|
54093
|
+
children: [/*#__PURE__*/jsx("div", {
|
|
54094
|
+
className: "text-gray-500 font-medium mb-1",
|
|
54095
|
+
children: server.serverName
|
|
54096
|
+
}), /*#__PURE__*/jsx("div", {
|
|
54097
|
+
className: "space-y-0.5 ml-2",
|
|
54098
|
+
children: server.tools.map(function (tool) {
|
|
54099
|
+
return /*#__PURE__*/jsxs("label", {
|
|
54100
|
+
className: "flex items-center gap-2 py-0.5 cursor-pointer hover:bg-white/5 rounded px-1",
|
|
54101
|
+
children: [/*#__PURE__*/jsx("input", {
|
|
54102
|
+
type: "checkbox",
|
|
54103
|
+
checked: enabledTools[tool.name] !== false,
|
|
54104
|
+
onChange: function onChange() {
|
|
54105
|
+
return onToggle(tool.name);
|
|
54106
|
+
},
|
|
54107
|
+
className: "rounded border-gray-600 bg-gray-700 text-indigo-500 focus:ring-indigo-500 focus:ring-offset-0 w-3 h-3"
|
|
54108
|
+
}), /*#__PURE__*/jsx("span", {
|
|
54109
|
+
className: "text-gray-300 font-mono",
|
|
54110
|
+
children: tool.name
|
|
54111
|
+
})]
|
|
54112
|
+
}, tool.name);
|
|
54113
|
+
})
|
|
54114
|
+
})]
|
|
54115
|
+
}, server.serverName);
|
|
54116
|
+
})
|
|
54117
|
+
})]
|
|
54118
|
+
});
|
|
54119
|
+
};
|
|
54120
|
+
|
|
54121
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
54122
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
54123
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
54124
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
54125
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
54126
|
+
var requestCounter = 0;
|
|
54127
|
+
function generateRequestId(uuid) {
|
|
54128
|
+
return "".concat(uuid || "chat", "-").concat(Date.now(), "-").concat(++requestCounter);
|
|
54129
|
+
}
|
|
54130
|
+
function ChatCore(_ref) {
|
|
54131
|
+
var title = _ref.title,
|
|
54132
|
+
model = _ref.model,
|
|
54133
|
+
systemPrompt = _ref.systemPrompt,
|
|
54134
|
+
maxToolRounds = _ref.maxToolRounds,
|
|
54135
|
+
_ref$apiKey = _ref.apiKey,
|
|
54136
|
+
apiKey = _ref$apiKey === void 0 ? null : _ref$apiKey,
|
|
54137
|
+
_ref$api = _ref.api,
|
|
54138
|
+
api = _ref$api === void 0 ? null : _ref$api,
|
|
54139
|
+
_ref$uuid = _ref.uuid,
|
|
54140
|
+
uuid = _ref$uuid === void 0 ? null : _ref$uuid,
|
|
54141
|
+
_ref$persistKey = _ref.persistKey,
|
|
54142
|
+
persistKey = _ref$persistKey === void 0 ? null : _ref$persistKey,
|
|
54143
|
+
_ref$backend = _ref.backend,
|
|
54144
|
+
backend = _ref$backend === void 0 ? "anthropic" : _ref$backend,
|
|
54145
|
+
_ref$onPublishEvent = _ref.onPublishEvent,
|
|
54146
|
+
onPublishEvent = _ref$onPublishEvent === void 0 ? null : _ref$onPublishEvent;
|
|
54147
|
+
var mainApi = window.mainApi;
|
|
54148
|
+
|
|
54149
|
+
// Conversation state
|
|
54150
|
+
var _useState = useState([]),
|
|
54151
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
54152
|
+
messages = _useState2[0],
|
|
54153
|
+
setMessages = _useState2[1];
|
|
54154
|
+
var _useState3 = useState(false),
|
|
54155
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
54156
|
+
isLoading = _useState4[0],
|
|
54157
|
+
setIsLoading = _useState4[1];
|
|
54158
|
+
var _useState5 = useState(null),
|
|
54159
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
54160
|
+
error = _useState6[0],
|
|
54161
|
+
setError = _useState6[1];
|
|
54162
|
+
var _useState7 = useState(""),
|
|
54163
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
54164
|
+
streamingText = _useState8[0],
|
|
54165
|
+
setStreamingText = _useState8[1];
|
|
54166
|
+
var activeRequestId = useRef(null);
|
|
54167
|
+
|
|
54168
|
+
// MCP tool state (only used for anthropic backend)
|
|
54169
|
+
var _useState9 = useState([]),
|
|
54170
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
54171
|
+
servers = _useState0[0],
|
|
54172
|
+
setServers = _useState0[1];
|
|
54173
|
+
var _useState1 = useState({}),
|
|
54174
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
54175
|
+
enabledTools = _useState10[0],
|
|
54176
|
+
setEnabledTools = _useState10[1];
|
|
54177
|
+
|
|
54178
|
+
// Tool calls for current streaming response
|
|
54179
|
+
var toolCallsRef = useRef([]);
|
|
54180
|
+
|
|
54181
|
+
// Scoped listener references for cleanup
|
|
54182
|
+
var listenersRef = useRef([]);
|
|
54183
|
+
|
|
54184
|
+
// CLI session state
|
|
54185
|
+
var _useState11 = useState(false),
|
|
54186
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
54187
|
+
sessionActive = _useState12[0],
|
|
54188
|
+
setSessionActive = _useState12[1];
|
|
54189
|
+
|
|
54190
|
+
// Backend readiness
|
|
54191
|
+
var isAnthropicBackend = backend === "anthropic";
|
|
54192
|
+
var isCliBackend = backend === "claude-code";
|
|
54193
|
+
|
|
54194
|
+
// CLI availability state
|
|
54195
|
+
var _useState13 = useState(null),
|
|
54196
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
54197
|
+
cliAvailable = _useState14[0],
|
|
54198
|
+
setCliAvailable = _useState14[1];
|
|
54199
|
+
useEffect(function () {
|
|
54200
|
+
var _mainApi$llm;
|
|
54201
|
+
if (!isCliBackend || !(mainApi !== null && mainApi !== void 0 && (_mainApi$llm = mainApi.llm) !== null && _mainApi$llm !== void 0 && _mainApi$llm.checkCliAvailable)) return;
|
|
54202
|
+
mainApi.llm.checkCliAvailable().then(function (result) {
|
|
54203
|
+
setCliAvailable((result === null || result === void 0 ? void 0 : result.available) || false);
|
|
54204
|
+
});
|
|
54205
|
+
}, [isCliBackend, mainApi]);
|
|
54206
|
+
var handleCheckCliAgain = useCallback(function () {
|
|
54207
|
+
var _mainApi$llm2;
|
|
54208
|
+
if (!(mainApi !== null && mainApi !== void 0 && (_mainApi$llm2 = mainApi.llm) !== null && _mainApi$llm2 !== void 0 && _mainApi$llm2.checkCliAvailable)) return;
|
|
54209
|
+
setCliAvailable(null);
|
|
54210
|
+
mainApi.llm.checkCliAvailable().then(function (result) {
|
|
54211
|
+
setCliAvailable((result === null || result === void 0 ? void 0 : result.available) || false);
|
|
54212
|
+
});
|
|
54213
|
+
}, [mainApi]);
|
|
54214
|
+
|
|
54215
|
+
// Determine readiness
|
|
54216
|
+
var isReady = isAnthropicBackend ? !!apiKey : cliAvailable === true;
|
|
54217
|
+
|
|
54218
|
+
// Persistence helpers
|
|
54219
|
+
var saveConversation = useCallback(function (msgs, tools) {
|
|
54220
|
+
var data = {
|
|
54221
|
+
messages: msgs,
|
|
54222
|
+
enabledTools: tools || enabledTools
|
|
54223
|
+
};
|
|
54224
|
+
if (api && uuid) {
|
|
54225
|
+
api.storeData({
|
|
54226
|
+
data: data,
|
|
54227
|
+
uuid: uuid,
|
|
54228
|
+
append: false,
|
|
54229
|
+
callbackComplete: function callbackComplete() {},
|
|
54230
|
+
callbackError: function callbackError() {}
|
|
54231
|
+
});
|
|
54232
|
+
} else if (persistKey) {
|
|
54233
|
+
try {
|
|
54234
|
+
localStorage.setItem(persistKey, JSON.stringify(data));
|
|
54235
|
+
} catch (e) {
|
|
54236
|
+
/* ignore quota errors */
|
|
54237
|
+
}
|
|
54238
|
+
}
|
|
54239
|
+
}, [api, uuid, persistKey, enabledTools]);
|
|
54240
|
+
|
|
54241
|
+
// Load saved conversation on mount
|
|
54242
|
+
useEffect(function () {
|
|
54243
|
+
if (api && uuid) {
|
|
54244
|
+
api.readData({
|
|
54245
|
+
uuid: uuid,
|
|
54246
|
+
callbackComplete: function callbackComplete(data) {
|
|
54247
|
+
if (data !== null && data !== void 0 && data.messages && Array.isArray(data.messages)) {
|
|
54248
|
+
setMessages(data.messages);
|
|
54249
|
+
}
|
|
54250
|
+
if (data !== null && data !== void 0 && data.enabledTools) {
|
|
54251
|
+
setEnabledTools(data.enabledTools);
|
|
54252
|
+
}
|
|
54253
|
+
},
|
|
54254
|
+
callbackError: function callbackError() {}
|
|
54255
|
+
});
|
|
54256
|
+
} else if (persistKey) {
|
|
54257
|
+
try {
|
|
54258
|
+
var raw = localStorage.getItem(persistKey);
|
|
54259
|
+
if (raw) {
|
|
54260
|
+
var data = JSON.parse(raw);
|
|
54261
|
+
if (data !== null && data !== void 0 && data.messages && Array.isArray(data.messages)) {
|
|
54262
|
+
setMessages(data.messages);
|
|
54263
|
+
}
|
|
54264
|
+
if (data !== null && data !== void 0 && data.enabledTools) {
|
|
54265
|
+
setEnabledTools(data.enabledTools);
|
|
54266
|
+
}
|
|
54267
|
+
}
|
|
54268
|
+
} catch (e) {
|
|
54269
|
+
/* ignore */
|
|
54270
|
+
}
|
|
54271
|
+
}
|
|
54272
|
+
}, [api, uuid, persistKey]);
|
|
54273
|
+
|
|
54274
|
+
// Discover connected MCP tools (only for anthropic backend)
|
|
54275
|
+
var refreshTools = useCallback(function () {
|
|
54276
|
+
if (!isAnthropicBackend || !(mainApi !== null && mainApi !== void 0 && mainApi.llm)) return;
|
|
54277
|
+
mainApi.llm.listConnectedTools().then(function (result) {
|
|
54278
|
+
if (Array.isArray(result)) {
|
|
54279
|
+
setServers(result);
|
|
54280
|
+
}
|
|
54281
|
+
});
|
|
54282
|
+
}, [mainApi, isAnthropicBackend]);
|
|
54283
|
+
useEffect(function () {
|
|
54284
|
+
refreshTools();
|
|
54285
|
+
var interval = setInterval(refreshTools, 30000);
|
|
54286
|
+
return function () {
|
|
54287
|
+
return clearInterval(interval);
|
|
54288
|
+
};
|
|
54289
|
+
}, [refreshTools]);
|
|
54290
|
+
|
|
54291
|
+
// Set up stream listeners
|
|
54292
|
+
useEffect(function () {
|
|
54293
|
+
if (!(mainApi !== null && mainApi !== void 0 && mainApi.llm)) return;
|
|
54294
|
+
var deltaId = mainApi.llm.onStreamDelta(function (data) {
|
|
54295
|
+
if (data.requestId !== activeRequestId.current) return;
|
|
54296
|
+
setStreamingText(function (prev) {
|
|
54297
|
+
return prev + data.text;
|
|
54298
|
+
});
|
|
54299
|
+
});
|
|
54300
|
+
var toolCallId = mainApi.llm.onStreamToolCall(function (data) {
|
|
54301
|
+
if (data.requestId !== activeRequestId.current) return;
|
|
54302
|
+
toolCallsRef.current.push({
|
|
54303
|
+
toolUseId: data.toolUseId,
|
|
54304
|
+
toolName: data.toolName,
|
|
54305
|
+
serverName: data.serverName,
|
|
54306
|
+
input: data.input,
|
|
54307
|
+
isLoading: true
|
|
54308
|
+
});
|
|
54309
|
+
setMessages(function (prev) {
|
|
54310
|
+
return _toConsumableArray(prev);
|
|
54311
|
+
});
|
|
54312
|
+
});
|
|
54313
|
+
var toolResultId = mainApi.llm.onStreamToolResult(function (data) {
|
|
54314
|
+
if (data.requestId !== activeRequestId.current) return;
|
|
54315
|
+
var tc = toolCallsRef.current.find(function (t) {
|
|
54316
|
+
return t.toolUseId === data.toolUseId;
|
|
54317
|
+
});
|
|
54318
|
+
if (tc) {
|
|
54319
|
+
tc.result = data.result;
|
|
54320
|
+
tc.isError = data.isError;
|
|
54321
|
+
tc.isLoading = false;
|
|
54322
|
+
}
|
|
54323
|
+
setStreamingText("");
|
|
54324
|
+
if (onPublishEvent) {
|
|
54325
|
+
onPublishEvent("toolUsed", {
|
|
54326
|
+
toolName: data.toolName,
|
|
54327
|
+
isError: data.isError
|
|
54328
|
+
});
|
|
54329
|
+
}
|
|
54330
|
+
});
|
|
54331
|
+
var completeId = mainApi.llm.onStreamComplete(function (data) {
|
|
54332
|
+
if (data.requestId !== activeRequestId.current) return;
|
|
54333
|
+
var assistantMessage = {
|
|
54334
|
+
id: "msg-".concat(Date.now()),
|
|
54335
|
+
role: "assistant",
|
|
54336
|
+
content: data.content,
|
|
54337
|
+
toolCalls: _toConsumableArray(toolCallsRef.current),
|
|
54338
|
+
usage: data.usage
|
|
54339
|
+
};
|
|
54340
|
+
setMessages(function (prev) {
|
|
54341
|
+
var updated = [].concat(_toConsumableArray(prev), [assistantMessage]);
|
|
54342
|
+
saveConversation(updated);
|
|
54343
|
+
return updated;
|
|
54344
|
+
});
|
|
54345
|
+
setStreamingText("");
|
|
54346
|
+
setIsLoading(false);
|
|
54347
|
+
setSessionActive(true);
|
|
54348
|
+
activeRequestId.current = null;
|
|
54349
|
+
toolCallsRef.current = [];
|
|
54350
|
+
});
|
|
54351
|
+
var errorId = mainApi.llm.onStreamError(function (data) {
|
|
54352
|
+
if (data.requestId !== activeRequestId.current) return;
|
|
54353
|
+
var errorMessage = data.error;
|
|
54354
|
+
if (data.code === "RATE_LIMITED" && data.retryAfter) {
|
|
54355
|
+
errorMessage = "Rate limited. Try again in ".concat(data.retryAfter, " seconds.");
|
|
54356
|
+
}
|
|
54357
|
+
setError(errorMessage);
|
|
54358
|
+
setIsLoading(false);
|
|
54359
|
+
setStreamingText("");
|
|
54360
|
+
activeRequestId.current = null;
|
|
54361
|
+
toolCallsRef.current = [];
|
|
54362
|
+
});
|
|
54363
|
+
listenersRef.current = [deltaId, toolCallId, toolResultId, completeId, errorId];
|
|
54364
|
+
return function () {
|
|
54365
|
+
var _iterator = _createForOfIteratorHelper(listenersRef.current),
|
|
54366
|
+
_step;
|
|
54367
|
+
try {
|
|
54368
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
54369
|
+
var id = _step.value;
|
|
54370
|
+
mainApi.llm.removeStreamListener(id);
|
|
54371
|
+
}
|
|
54372
|
+
} catch (err) {
|
|
54373
|
+
_iterator.e(err);
|
|
54374
|
+
} finally {
|
|
54375
|
+
_iterator.f();
|
|
54376
|
+
}
|
|
54377
|
+
listenersRef.current = [];
|
|
54378
|
+
};
|
|
54379
|
+
}, [mainApi, onPublishEvent, saveConversation]);
|
|
54380
|
+
|
|
54381
|
+
// Send message
|
|
54382
|
+
var handleSend = useCallback(function (text) {
|
|
54383
|
+
if (!(mainApi !== null && mainApi !== void 0 && mainApi.llm) || isLoading) return;
|
|
54384
|
+
setError(null);
|
|
54385
|
+
var userMessage = {
|
|
54386
|
+
id: "msg-".concat(Date.now()),
|
|
54387
|
+
role: "user",
|
|
54388
|
+
content: text
|
|
54389
|
+
};
|
|
54390
|
+
var updatedMessages = [].concat(_toConsumableArray(messages), [userMessage]);
|
|
54391
|
+
setMessages(updatedMessages);
|
|
54392
|
+
if (onPublishEvent) {
|
|
54393
|
+
onPublishEvent("messageSent", {
|
|
54394
|
+
text: text
|
|
54395
|
+
});
|
|
54396
|
+
}
|
|
54397
|
+
var apiMessages = updatedMessages.map(function (msg) {
|
|
54398
|
+
return {
|
|
54399
|
+
role: msg.role,
|
|
54400
|
+
content: msg.content
|
|
54401
|
+
};
|
|
54402
|
+
});
|
|
54403
|
+
var allTools = [];
|
|
54404
|
+
var toolServerMap = {};
|
|
54405
|
+
if (isAnthropicBackend) {
|
|
54406
|
+
var _iterator2 = _createForOfIteratorHelper(servers),
|
|
54407
|
+
_step2;
|
|
54408
|
+
try {
|
|
54409
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
54410
|
+
var server = _step2.value;
|
|
54411
|
+
var _iterator3 = _createForOfIteratorHelper(server.tools || []),
|
|
54412
|
+
_step3;
|
|
54413
|
+
try {
|
|
54414
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
54415
|
+
var tool = _step3.value;
|
|
54416
|
+
if (enabledTools[tool.name] !== false) {
|
|
54417
|
+
allTools.push(tool);
|
|
54418
|
+
toolServerMap[tool.name] = server.serverName;
|
|
54419
|
+
}
|
|
54420
|
+
}
|
|
54421
|
+
} catch (err) {
|
|
54422
|
+
_iterator3.e(err);
|
|
54423
|
+
} finally {
|
|
54424
|
+
_iterator3.f();
|
|
54425
|
+
}
|
|
54426
|
+
}
|
|
54427
|
+
} catch (err) {
|
|
54428
|
+
_iterator2.e(err);
|
|
54429
|
+
} finally {
|
|
54430
|
+
_iterator2.f();
|
|
54431
|
+
}
|
|
54432
|
+
}
|
|
54433
|
+
var requestId = generateRequestId(uuid || persistKey);
|
|
54434
|
+
activeRequestId.current = requestId;
|
|
54435
|
+
toolCallsRef.current = [];
|
|
54436
|
+
setIsLoading(true);
|
|
54437
|
+
setStreamingText("");
|
|
54438
|
+
setMessages(function (prev) {
|
|
54439
|
+
return [].concat(_toConsumableArray(prev), [{
|
|
54440
|
+
id: "msg-streaming",
|
|
54441
|
+
role: "assistant",
|
|
54442
|
+
content: [],
|
|
54443
|
+
toolCalls: toolCallsRef.current
|
|
54444
|
+
}]);
|
|
54445
|
+
});
|
|
54446
|
+
mainApi.llm.sendMessage(requestId, {
|
|
54447
|
+
backend: backend,
|
|
54448
|
+
apiKey: isAnthropicBackend ? apiKey : undefined,
|
|
54449
|
+
model: model,
|
|
54450
|
+
messages: apiMessages,
|
|
54451
|
+
tools: allTools,
|
|
54452
|
+
toolServerMap: toolServerMap,
|
|
54453
|
+
systemPrompt: systemPrompt,
|
|
54454
|
+
maxToolRounds: parseInt(maxToolRounds, 10) || 10,
|
|
54455
|
+
widgetUuid: uuid || persistKey
|
|
54456
|
+
});
|
|
54457
|
+
}, [mainApi, isLoading, messages, servers, enabledTools, apiKey, model, systemPrompt, maxToolRounds, uuid, persistKey, onPublishEvent, backend, isAnthropicBackend]);
|
|
54458
|
+
|
|
54459
|
+
// Stop streaming
|
|
54460
|
+
var handleStop = useCallback(function () {
|
|
54461
|
+
if (activeRequestId.current && mainApi !== null && mainApi !== void 0 && mainApi.llm) {
|
|
54462
|
+
mainApi.llm.abortRequest(activeRequestId.current);
|
|
54463
|
+
if (streamingText) {
|
|
54464
|
+
setMessages(function (prev) {
|
|
54465
|
+
var updated = prev.map(function (msg) {
|
|
54466
|
+
if (msg.id === "msg-streaming") {
|
|
54467
|
+
return _objectSpread(_objectSpread({}, msg), {}, {
|
|
54468
|
+
id: "msg-".concat(Date.now()),
|
|
54469
|
+
content: [{
|
|
54470
|
+
type: "text",
|
|
54471
|
+
text: streamingText
|
|
54472
|
+
}],
|
|
54473
|
+
toolCalls: _toConsumableArray(toolCallsRef.current)
|
|
54474
|
+
});
|
|
54475
|
+
}
|
|
54476
|
+
return msg;
|
|
54477
|
+
});
|
|
54478
|
+
saveConversation(updated);
|
|
54479
|
+
return updated;
|
|
54480
|
+
});
|
|
54481
|
+
} else {
|
|
54482
|
+
setMessages(function (prev) {
|
|
54483
|
+
var updated = prev.filter(function (msg) {
|
|
54484
|
+
return msg.id !== "msg-streaming";
|
|
54485
|
+
});
|
|
54486
|
+
saveConversation(updated);
|
|
54487
|
+
return updated;
|
|
54488
|
+
});
|
|
54489
|
+
}
|
|
54490
|
+
setIsLoading(false);
|
|
54491
|
+
setStreamingText("");
|
|
54492
|
+
activeRequestId.current = null;
|
|
54493
|
+
toolCallsRef.current = [];
|
|
54494
|
+
}
|
|
54495
|
+
}, [mainApi, streamingText, saveConversation]);
|
|
54496
|
+
|
|
54497
|
+
// New chat
|
|
54498
|
+
var handleNewChat = function handleNewChat() {
|
|
54499
|
+
var _mainApi$llm3;
|
|
54500
|
+
if (isLoading) handleStop();
|
|
54501
|
+
setMessages([]);
|
|
54502
|
+
setError(null);
|
|
54503
|
+
setStreamingText("");
|
|
54504
|
+
setSessionActive(false);
|
|
54505
|
+
saveConversation([]);
|
|
54506
|
+
if (isCliBackend && mainApi !== null && mainApi !== void 0 && (_mainApi$llm3 = mainApi.llm) !== null && _mainApi$llm3 !== void 0 && _mainApi$llm3.clearCliSession) {
|
|
54507
|
+
mainApi.llm.clearCliSession(uuid || persistKey);
|
|
54508
|
+
}
|
|
54509
|
+
};
|
|
54510
|
+
|
|
54511
|
+
// End CLI session
|
|
54512
|
+
var handleEndSession = function handleEndSession() {
|
|
54513
|
+
var _mainApi$llm4;
|
|
54514
|
+
if (!isCliBackend || !(mainApi !== null && mainApi !== void 0 && (_mainApi$llm4 = mainApi.llm) !== null && _mainApi$llm4 !== void 0 && _mainApi$llm4.endCliSession)) return;
|
|
54515
|
+
if (isLoading) handleStop();
|
|
54516
|
+
mainApi.llm.endCliSession(uuid || persistKey);
|
|
54517
|
+
setSessionActive(false);
|
|
54518
|
+
};
|
|
54519
|
+
|
|
54520
|
+
// Toggle tool
|
|
54521
|
+
var handleToggleTool = function handleToggleTool(toolName) {
|
|
54522
|
+
setEnabledTools(function (prev) {
|
|
54523
|
+
var updated = _objectSpread(_objectSpread({}, prev), {}, _defineProperty({}, toolName, prev[toolName] === false ? true : false));
|
|
54524
|
+
saveConversation(messages, updated);
|
|
54525
|
+
return updated;
|
|
54526
|
+
});
|
|
54527
|
+
};
|
|
54528
|
+
var hasTools = isAnthropicBackend && servers.some(function (s) {
|
|
54529
|
+
var _s$tools;
|
|
54530
|
+
return ((_s$tools = s.tools) === null || _s$tools === void 0 ? void 0 : _s$tools.length) > 0;
|
|
54531
|
+
});
|
|
54532
|
+
return /*#__PURE__*/jsxs("div", {
|
|
54533
|
+
className: "flex flex-col flex-1 overflow-hidden bg-gray-900 text-gray-200",
|
|
54534
|
+
children: [title ? /*#__PURE__*/jsxs("div", {
|
|
54535
|
+
className: "flex items-center justify-between px-3 py-2 border-b border-gray-700/50 shrink-0",
|
|
54536
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
54537
|
+
className: "flex items-center gap-2",
|
|
54538
|
+
children: [/*#__PURE__*/jsx(SubHeading2, {
|
|
54539
|
+
title: title
|
|
54540
|
+
}), isCliBackend && sessionActive && /*#__PURE__*/jsx("span", {
|
|
54541
|
+
className: "inline-block w-2 h-2 rounded-full bg-green-400",
|
|
54542
|
+
title: "CLI session active"
|
|
54543
|
+
})]
|
|
54544
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
54545
|
+
className: "flex items-center gap-1",
|
|
54546
|
+
children: [isCliBackend && sessionActive && /*#__PURE__*/jsx("button", {
|
|
54547
|
+
onClick: handleEndSession,
|
|
54548
|
+
className: "px-2 py-1 text-xs rounded bg-red-900/50 hover:bg-red-800/50 text-red-300 transition-colors",
|
|
54549
|
+
children: "End Session"
|
|
54550
|
+
}), /*#__PURE__*/jsx("button", {
|
|
54551
|
+
onClick: handleNewChat,
|
|
54552
|
+
className: "px-2 py-1 text-xs rounded bg-gray-700 hover:bg-gray-600 text-gray-300 transition-colors",
|
|
54553
|
+
children: "New Chat"
|
|
54554
|
+
})]
|
|
54555
|
+
})]
|
|
54556
|
+
}) : /*#__PURE__*/jsxs("div", {
|
|
54557
|
+
className: "flex items-center justify-end px-3 py-1 shrink-0",
|
|
54558
|
+
children: [isCliBackend && sessionActive && /*#__PURE__*/jsx("button", {
|
|
54559
|
+
onClick: handleEndSession,
|
|
54560
|
+
className: "px-2 py-1 text-xs rounded bg-red-900/50 hover:bg-red-800/50 text-red-300 transition-colors mr-1",
|
|
54561
|
+
children: "End Session"
|
|
54562
|
+
}), /*#__PURE__*/jsx("button", {
|
|
54563
|
+
onClick: handleNewChat,
|
|
54564
|
+
className: "px-2 py-1 text-xs rounded bg-gray-700 hover:bg-gray-600 text-gray-300 transition-colors",
|
|
54565
|
+
children: "New Chat"
|
|
54566
|
+
})]
|
|
54567
|
+
}), error && /*#__PURE__*/jsxs("div", {
|
|
54568
|
+
className: "mx-3 mt-2 p-2 bg-red-900/30 border border-red-700 rounded text-red-300 text-xs",
|
|
54569
|
+
children: [error, /*#__PURE__*/jsx("button", {
|
|
54570
|
+
onClick: function onClick() {
|
|
54571
|
+
return setError(null);
|
|
54572
|
+
},
|
|
54573
|
+
className: "ml-2 text-red-400 hover:text-red-300",
|
|
54574
|
+
children: "Dismiss"
|
|
54575
|
+
})]
|
|
54576
|
+
}), isAnthropicBackend && !apiKey && /*#__PURE__*/jsx("div", {
|
|
54577
|
+
className: "mx-3 mt-2 p-2 bg-yellow-900/30 border border-yellow-700 rounded text-yellow-300 text-xs",
|
|
54578
|
+
children: "Add an Anthropic API key in Settings > AI Assistant to start chatting."
|
|
54579
|
+
}), isCliBackend && cliAvailable === null && /*#__PURE__*/jsx("div", {
|
|
54580
|
+
className: "mx-3 mt-2 p-2 bg-gray-800/50 border border-gray-700 rounded text-gray-400 text-xs",
|
|
54581
|
+
children: "Checking for Claude Code CLI..."
|
|
54582
|
+
}), isCliBackend && cliAvailable === false && /*#__PURE__*/jsxs("div", {
|
|
54583
|
+
className: "mx-3 mt-2 p-3 bg-yellow-900/30 border border-yellow-700 rounded text-yellow-300 text-xs",
|
|
54584
|
+
children: [/*#__PURE__*/jsx("p", {
|
|
54585
|
+
className: "font-semibold mb-2",
|
|
54586
|
+
children: "Claude Code CLI not found"
|
|
54587
|
+
}), /*#__PURE__*/jsxs("ol", {
|
|
54588
|
+
className: "list-decimal list-inside space-y-1 mb-3 text-yellow-300/90",
|
|
54589
|
+
children: [/*#__PURE__*/jsxs("li", {
|
|
54590
|
+
children: ["Download Claude Code from", " ", /*#__PURE__*/jsx("button", {
|
|
54591
|
+
onClick: function onClick() {
|
|
54592
|
+
var _mainApi$shell, _mainApi$shell$openEx;
|
|
54593
|
+
return mainApi === null || mainApi === void 0 || (_mainApi$shell = mainApi.shell) === null || _mainApi$shell === void 0 || (_mainApi$shell$openEx = _mainApi$shell.openExternal) === null || _mainApi$shell$openEx === void 0 ? void 0 : _mainApi$shell$openEx.call(_mainApi$shell, "https://claude.ai/download");
|
|
54594
|
+
},
|
|
54595
|
+
className: "underline hover:text-yellow-200 font-mono",
|
|
54596
|
+
children: "claude.ai/download"
|
|
54597
|
+
})]
|
|
54598
|
+
}), /*#__PURE__*/jsxs("li", {
|
|
54599
|
+
children: ["Open your terminal and run", " ", /*#__PURE__*/jsx("span", {
|
|
54600
|
+
className: "font-mono bg-yellow-900/50 px-1 rounded",
|
|
54601
|
+
children: "claude auth login"
|
|
54602
|
+
})]
|
|
54603
|
+
}), /*#__PURE__*/jsx("li", {
|
|
54604
|
+
children: "Complete authentication in your browser"
|
|
54605
|
+
})]
|
|
54606
|
+
}), /*#__PURE__*/jsx("button", {
|
|
54607
|
+
onClick: handleCheckCliAgain,
|
|
54608
|
+
className: "px-3 py-1 text-xs rounded bg-yellow-800/60 hover:bg-yellow-700/60 text-yellow-200 border border-yellow-600/50 transition-colors",
|
|
54609
|
+
children: "Check Again"
|
|
54610
|
+
})]
|
|
54611
|
+
}), isAnthropicBackend && !hasTools && apiKey && messages.length === 0 && /*#__PURE__*/jsx("div", {
|
|
54612
|
+
className: "mx-3 mt-2 p-2 bg-gray-800/50 border border-gray-700 rounded text-gray-400 text-xs",
|
|
54613
|
+
children: "No MCP tools connected. Connect providers (GitHub, Slack, etc.) to enable tool-use."
|
|
54614
|
+
}), isCliBackend && cliAvailable && messages.length === 0 && /*#__PURE__*/jsx("div", {
|
|
54615
|
+
className: "mx-3 mt-2 p-2 bg-gray-800/50 border border-gray-700 rounded text-gray-400 text-xs",
|
|
54616
|
+
children: "Using Claude Code CLI. Your configured MCP tools pass through automatically."
|
|
54617
|
+
}), hasTools && /*#__PURE__*/jsx("div", {
|
|
54618
|
+
className: "px-1 pt-1",
|
|
54619
|
+
children: /*#__PURE__*/jsx(ToolSelector, {
|
|
54620
|
+
servers: servers,
|
|
54621
|
+
enabledTools: enabledTools,
|
|
54622
|
+
onToggle: handleToggleTool
|
|
54623
|
+
})
|
|
54624
|
+
}), /*#__PURE__*/jsx(ChatMessages, {
|
|
54625
|
+
messages: messages,
|
|
54626
|
+
streamingRequestId: isLoading ? activeRequestId.current : null,
|
|
54627
|
+
streamingText: streamingText
|
|
54628
|
+
}), /*#__PURE__*/jsx(ChatInput, {
|
|
54629
|
+
onSend: handleSend,
|
|
54630
|
+
onStop: handleStop,
|
|
54631
|
+
isLoading: isLoading,
|
|
54632
|
+
disabled: !isReady
|
|
54633
|
+
})]
|
|
54634
|
+
});
|
|
54635
|
+
}
|
|
54636
|
+
|
|
53762
54637
|
/**
|
|
53763
54638
|
* @trops/dash-core
|
|
53764
54639
|
*
|
|
@@ -53768,5 +54643,5 @@ var WorkspaceMenu = function WorkspaceMenu(_ref) {
|
|
|
53768
54643
|
|
|
53769
54644
|
ComponentManager.registerContainerTypes(LayoutContainer, LayoutGridContainer);
|
|
53770
54645
|
|
|
53771
|
-
export { ALGOLIA_ANALYTICS_FOR_QUERY, ALGOLIA_ANALYTICS_FOR_QUERY_COMPLETE, ALGOLIA_ANALYTICS_FOR_QUERY_ERROR, ALGOLIA_LIST_INDICES, ALGOLIA_LIST_INDICES_COMPLETE, ALGOLIA_LIST_INDICES_ERROR, AVAILABLE_COLORS, AddMenuItemModal, AdvancedMcpConfig, AppContext, AppSettingsModal, AppThemeScope, AppWrapper, CHOOSE_FILE, CHOOSE_FILE_COMPLETE, CHOOSE_FILE_ERROR, ColorModel, ComponentConfigModel, ComponentManager, ContextModel, DATA_JSON_TO_CSV_FILE, DATA_JSON_TO_CSV_FILE_COMPLETE, DATA_JSON_TO_CSV_FILE_ERROR, DATA_JSON_TO_CSV_STRING, DATA_JSON_TO_CSV_STRING_COMPLETE, DATA_JSON_TO_CSV_STRING_ERROR, DATA_READ_FROM_FILE, DATA_READ_FROM_FILE_COMPLETE, DATA_READ_FROM_FILE_ERROR, DATA_SAVE_TO_FILE, DATA_SAVE_TO_FILE_COMPLETE, DATA_SAVE_TO_FILE_ERROR, DashCommandPalette, DashNavbar, DashSidebar, DashTabBar, DashboardStage as Dashboard, DashboardApi, DashboardContext, DashboardFooter, DashboardHeader, DashboardMenuItem, DashboardModel, DashboardMonitor, DashboardPublisher, DashboardStage, DashboardThemeProvider, DashboardWizardModal, DashboardWrapper, ElectronDashboardApi, ErrorBoundary, ExternalWidget, GRID_CELL_WIDGET_TYPE, HARMONY_STRATEGIES, LAYOUT_LIST, LAYOUT_LIST_COMPLETE, LAYOUT_LIST_ERROR, LAYOUT_SAVE, LAYOUT_SAVE_COMPLETE, LAYOUT_SAVE_ERROR, Layout, LayoutBuilder, LayoutBuilderAddItemModal, LayoutBuilderConfigContainerMenuItem, LayoutBuilderConfigMenuItem, LayoutBuilderConfigModal, LayoutBuilderEditItemModal, LayoutBuilderEventModal, LayoutBuilderGridItem, LayoutContainer, LayoutDragBuilder, LayoutDragBuilderEdit, LayoutGridContainer, LayoutManagerModal, LayoutModel, LayoutQuickAddMenu, MCP_CALL_TOOL_COMPLETE, MCP_CALL_TOOL_ERROR, MCP_GET_CATALOG_COMPLETE, MCP_GET_CATALOG_ERROR, MCP_LIST_RESOURCES_COMPLETE, MCP_LIST_RESOURCES_ERROR, MCP_LIST_TOOLS_COMPLETE, MCP_LIST_TOOLS_ERROR, MCP_READ_RESOURCE_COMPLETE, MCP_READ_RESOURCE_ERROR, MCP_RUN_AUTH_COMPLETE, MCP_RUN_AUTH_ERROR, MCP_SERVER_STATUS_COMPLETE, MCP_SERVER_STATUS_ERROR, MCP_START_SERVER_COMPLETE, MCP_START_SERVER_ERROR, MCP_STOP_SERVER_COMPLETE, MCP_STOP_SERVER_ERROR, MENU_ITEMS_DELETE, MENU_ITEMS_DELETE_COMPLETE, MENU_ITEMS_DELETE_ERROR, MENU_ITEMS_LIST, MENU_ITEMS_LIST_COMPLETE, MENU_ITEMS_LIST_ERROR, MENU_ITEMS_SAVE, MENU_ITEMS_SAVE_COMPLETE, MENU_ITEMS_SAVE_ERROR, MainMenu, MainMenuItem, MainMenuSection, McpServerPicker, MenuItemModel, MenuSlideOverlay, MergeCellsModal, MissingProviderPrompt, MockDashboardApi, PROVIDER_DELETE_COMPLETE, PROVIDER_DELETE_ERROR, PROVIDER_GET_COMPLETE, PROVIDER_GET_ERROR, PROVIDER_LIST_COMPLETE, PROVIDER_LIST_ERROR, PROVIDER_SAVE_COMPLETE, PROVIDER_SAVE_ERROR, PageTabBar, PanelCode, PanelEditItem, PanelEditItemHandlers, PanelEditItemNotifications, PinnedSidebar, ProviderContext, ProviderErrorBoundary, ProviderForm, ProviderSelector, SECURE_STORAGE_ENCRYPT_STRING, SECURE_STORAGE_ENCRYPT_STRING_COMPLETE, SECURE_STORAGE_ENCRYPT_STRING_ERROR, SECURE_STORE_ENCRYPTION_CHECK, SECURE_STORE_ENCRYPTION_CHECK_COMPLETE, SECURE_STORE_ENCRYPTION_CHECK_ERROR, SECURE_STORE_GET_DATA, SECURE_STORE_GET_DATA_COMPLETE, SECURE_STORE_GET_DATA_ERROR, SECURE_STORE_SET_DATA, SECURE_STORE_SET_DATA_COMPLETE, SECURE_STORE_SET_DATA_ERROR, SETTINGS_GET, SETTINGS_GET_COMPLETE, SETTINGS_GET_ERROR, SETTINGS_SAVE, SETTINGS_SAVE_COMPLETE, SETTINGS_SAVE_ERROR, SIDEBAR_WIDGET_TYPE, SettingsModel, SideMenu, SplitCellModal, THEME_DELETE, THEME_DELETE_COMPLETE, THEME_DELETE_ERROR, THEME_EXTRACT_FROM_URL, THEME_EXTRACT_FROM_URL_COMPLETE, THEME_EXTRACT_FROM_URL_ERROR, THEME_LIST, THEME_LIST_COMPLETE, THEME_LIST_ERROR, THEME_MAP_PALETTE, THEME_MAP_PALETTE_COMPLETE, THEME_MAP_PALETTE_ERROR, THEME_SAVE, THEME_SAVE_COMPLETE, THEME_SAVE_ERROR, ThemeApi, ThemeColorDots, ThemeManagerModal, ThemeModel, ThemeWrapper, WELCOME_STORAGE_KEY, WORKSPACE_DELETE, WORKSPACE_DELETE_COMPLETE, WORKSPACE_DELETE_ERROR, WORKSPACE_LIST, WORKSPACE_LIST_COMPLETE, WORKSPACE_LIST_ERROR, WORKSPACE_SAVE, WORKSPACE_SAVE_COMPLETE, WORKSPACE_SAVE_ERROR, WebDashboardApi, WelcomePrompt, Widget, WidgetApi, WidgetConfigPanel, WidgetContext, WidgetFactory, WidgetNotFound, WidgetPopoutStage, WidgetProviderWrapper, WidgetSidebar, WizardCustomizeStep, WizardDiscoverStep, Workspace, WorkspaceContext, WorkspaceFooter, WorkspaceMenu, WorkspaceModel, addChildToLayoutItem, addItemToItemLayout, buildMcpConfigFromOverrides, canHaveChildren, changeDirectionForLayoutItem, createProviderRegistry, deriveFormFields, envMappingToRows, evaluateBundle, extractWidgetConfigs, formStateToMcpJson, formatFieldName, generateCustomTheme, generateHarmonyTheme, generateRandomTheme, generateThemeName, getBorderStyle, getChildrenForLayoutItem, getComponentInLayout, getContainerBorderColor, getContainerColor, getIndexOfLayoutChildrenForItem, getIndexOfLayoutItem, getLayoutItemById, getLayoutItemForWorkspace, getNearestParentWorkspace, getNextHighestId, getNextHighestItemInLayout, getNextHighestOrder, getNextHighestParentId, getNextLowestItemInLayout, getParentForLayoutItem, getParentWorkspaceForItem, getThemePresets, getUserConfigurableProviders, getWidgetsForWorkspace, getWorkspacesForWorkspace, headerTemplateToRows, isContainer, isLikelySecret, isMaxOrderForItem, isMinOrderForItem, isWidget, isWidgetResolvable, isWorkspace, layoutItemHasWorkspaceAsChild, loadWidgetBundle, mcpJsonToFormState, numChildrenForLayout, removeItemFromLayout, renderComponent, renderGridLayout, renderGridLayoutFlow, _renderLayout as renderLayout, renderLayoutMenu, replaceItemInLayout, resolveIcon, setHostModules, traverseParentTree, updateLayoutItem, updateParentForItem, useDashboard, useMcpDashServer, useMcpProvider, useNotifications, useProvider, useProviderClient, useScheduler, useWebSocketProvider, useWidgetEvents, useWidgetProviders, useWidgetSchedulerStatus, useWizardState, validateCellMerge, validateGridCell, validateGridPlacement, validateWidgetPlacement, widgetCountToTemplate, withProviderDetection };
|
|
54646
|
+
export { ALGOLIA_ANALYTICS_FOR_QUERY, ALGOLIA_ANALYTICS_FOR_QUERY_COMPLETE, ALGOLIA_ANALYTICS_FOR_QUERY_ERROR, ALGOLIA_LIST_INDICES, ALGOLIA_LIST_INDICES_COMPLETE, ALGOLIA_LIST_INDICES_ERROR, AVAILABLE_COLORS, AddMenuItemModal, AdvancedMcpConfig, AppContext, AppSettingsModal, AppThemeScope, AppWrapper, CHOOSE_FILE, CHOOSE_FILE_COMPLETE, CHOOSE_FILE_ERROR, ChatCore, ChatInput, ChatMessages, ColorModel, ComponentConfigModel, ComponentManager, ContextModel, DATA_JSON_TO_CSV_FILE, DATA_JSON_TO_CSV_FILE_COMPLETE, DATA_JSON_TO_CSV_FILE_ERROR, DATA_JSON_TO_CSV_STRING, DATA_JSON_TO_CSV_STRING_COMPLETE, DATA_JSON_TO_CSV_STRING_ERROR, DATA_READ_FROM_FILE, DATA_READ_FROM_FILE_COMPLETE, DATA_READ_FROM_FILE_ERROR, DATA_SAVE_TO_FILE, DATA_SAVE_TO_FILE_COMPLETE, DATA_SAVE_TO_FILE_ERROR, DashCommandPalette, DashNavbar, DashSidebar, DashTabBar, DashboardStage as Dashboard, DashboardApi, DashboardContext, DashboardFooter, DashboardHeader, DashboardMenuItem, DashboardModel, DashboardMonitor, DashboardPublisher, DashboardStage, DashboardThemeProvider, DashboardWizardModal, DashboardWrapper, ElectronDashboardApi, ErrorBoundary, ExternalWidget, GRID_CELL_WIDGET_TYPE, HARMONY_STRATEGIES, LAYOUT_LIST, LAYOUT_LIST_COMPLETE, LAYOUT_LIST_ERROR, LAYOUT_SAVE, LAYOUT_SAVE_COMPLETE, LAYOUT_SAVE_ERROR, Layout, LayoutBuilder, LayoutBuilderAddItemModal, LayoutBuilderConfigContainerMenuItem, LayoutBuilderConfigMenuItem, LayoutBuilderConfigModal, LayoutBuilderEditItemModal, LayoutBuilderEventModal, LayoutBuilderGridItem, LayoutContainer, LayoutDragBuilder, LayoutDragBuilderEdit, LayoutGridContainer, LayoutManagerModal, LayoutModel, LayoutQuickAddMenu, MCP_CALL_TOOL_COMPLETE, MCP_CALL_TOOL_ERROR, MCP_GET_CATALOG_COMPLETE, MCP_GET_CATALOG_ERROR, MCP_LIST_RESOURCES_COMPLETE, MCP_LIST_RESOURCES_ERROR, MCP_LIST_TOOLS_COMPLETE, MCP_LIST_TOOLS_ERROR, MCP_READ_RESOURCE_COMPLETE, MCP_READ_RESOURCE_ERROR, MCP_RUN_AUTH_COMPLETE, MCP_RUN_AUTH_ERROR, MCP_SERVER_STATUS_COMPLETE, MCP_SERVER_STATUS_ERROR, MCP_START_SERVER_COMPLETE, MCP_START_SERVER_ERROR, MCP_STOP_SERVER_COMPLETE, MCP_STOP_SERVER_ERROR, MENU_ITEMS_DELETE, MENU_ITEMS_DELETE_COMPLETE, MENU_ITEMS_DELETE_ERROR, MENU_ITEMS_LIST, MENU_ITEMS_LIST_COMPLETE, MENU_ITEMS_LIST_ERROR, MENU_ITEMS_SAVE, MENU_ITEMS_SAVE_COMPLETE, MENU_ITEMS_SAVE_ERROR, MainMenu, MainMenuItem, MainMenuSection, McpServerPicker, MenuItemModel, MenuSlideOverlay, MergeCellsModal, MessageBubble, MissingProviderPrompt, MockDashboardApi, PROVIDER_DELETE_COMPLETE, PROVIDER_DELETE_ERROR, PROVIDER_GET_COMPLETE, PROVIDER_GET_ERROR, PROVIDER_LIST_COMPLETE, PROVIDER_LIST_ERROR, PROVIDER_SAVE_COMPLETE, PROVIDER_SAVE_ERROR, PageTabBar, PanelCode, PanelEditItem, PanelEditItemHandlers, PanelEditItemNotifications, PinnedSidebar, ProviderContext, ProviderErrorBoundary, ProviderForm, ProviderSelector, SECURE_STORAGE_ENCRYPT_STRING, SECURE_STORAGE_ENCRYPT_STRING_COMPLETE, SECURE_STORAGE_ENCRYPT_STRING_ERROR, SECURE_STORE_ENCRYPTION_CHECK, SECURE_STORE_ENCRYPTION_CHECK_COMPLETE, SECURE_STORE_ENCRYPTION_CHECK_ERROR, SECURE_STORE_GET_DATA, SECURE_STORE_GET_DATA_COMPLETE, SECURE_STORE_GET_DATA_ERROR, SECURE_STORE_SET_DATA, SECURE_STORE_SET_DATA_COMPLETE, SECURE_STORE_SET_DATA_ERROR, SETTINGS_GET, SETTINGS_GET_COMPLETE, SETTINGS_GET_ERROR, SETTINGS_SAVE, SETTINGS_SAVE_COMPLETE, SETTINGS_SAVE_ERROR, SIDEBAR_WIDGET_TYPE, SettingsModel, SideMenu, SplitCellModal, StreamingText, THEME_DELETE, THEME_DELETE_COMPLETE, THEME_DELETE_ERROR, THEME_EXTRACT_FROM_URL, THEME_EXTRACT_FROM_URL_COMPLETE, THEME_EXTRACT_FROM_URL_ERROR, THEME_LIST, THEME_LIST_COMPLETE, THEME_LIST_ERROR, THEME_MAP_PALETTE, THEME_MAP_PALETTE_COMPLETE, THEME_MAP_PALETTE_ERROR, THEME_SAVE, THEME_SAVE_COMPLETE, THEME_SAVE_ERROR, ThemeApi, ThemeColorDots, ThemeManagerModal, ThemeModel, ThemeWrapper, ToolCallBlock, ToolSelector, WELCOME_STORAGE_KEY, WORKSPACE_DELETE, WORKSPACE_DELETE_COMPLETE, WORKSPACE_DELETE_ERROR, WORKSPACE_LIST, WORKSPACE_LIST_COMPLETE, WORKSPACE_LIST_ERROR, WORKSPACE_SAVE, WORKSPACE_SAVE_COMPLETE, WORKSPACE_SAVE_ERROR, WebDashboardApi, WelcomePrompt, Widget, WidgetApi, WidgetConfigPanel, WidgetContext, WidgetFactory, WidgetNotFound, WidgetPopoutStage, WidgetProviderWrapper, WidgetSidebar, WizardCustomizeStep, WizardDiscoverStep, Workspace, WorkspaceContext, WorkspaceFooter, WorkspaceMenu, WorkspaceModel, addChildToLayoutItem, addItemToItemLayout, buildMcpConfigFromOverrides, canHaveChildren, changeDirectionForLayoutItem, createProviderRegistry, deriveFormFields, envMappingToRows, evaluateBundle, extractWidgetConfigs, formStateToMcpJson, formatFieldName, generateCustomTheme, generateHarmonyTheme, generateRandomTheme, generateThemeName, getBorderStyle, getChildrenForLayoutItem, getComponentInLayout, getContainerBorderColor, getContainerColor, getIndexOfLayoutChildrenForItem, getIndexOfLayoutItem, getLayoutItemById, getLayoutItemForWorkspace, getNearestParentWorkspace, getNextHighestId, getNextHighestItemInLayout, getNextHighestOrder, getNextHighestParentId, getNextLowestItemInLayout, getParentForLayoutItem, getParentWorkspaceForItem, getThemePresets, getUserConfigurableProviders, getWidgetsForWorkspace, getWorkspacesForWorkspace, headerTemplateToRows, isContainer, isLikelySecret, isMaxOrderForItem, isMinOrderForItem, isWidget, isWidgetResolvable, isWorkspace, layoutItemHasWorkspaceAsChild, loadWidgetBundle, mcpJsonToFormState, numChildrenForLayout, removeItemFromLayout, renderComponent, renderGridLayout, renderGridLayoutFlow, _renderLayout as renderLayout, renderLayoutMenu, replaceItemInLayout, resolveIcon, setHostModules, traverseParentTree, updateLayoutItem, updateParentForItem, useDashboard, useMcpDashServer, useMcpProvider, useNotifications, useProvider, useProviderClient, useScheduler, useWebSocketProvider, useWidgetEvents, useWidgetProviders, useWidgetSchedulerStatus, useWizardState, validateCellMerge, validateGridCell, validateGridPlacement, validateWidgetPlacement, widgetCountToTemplate, withProviderDetection };
|
|
53772
54647
|
//# sourceMappingURL=index.esm.js.map
|