@trops/dash-core 0.1.315 → 0.1.317
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 +1395 -490
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1433 -530
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -26,6 +26,7 @@ var ReactDOM = require('react-dom');
|
|
|
26
26
|
var algoliasearch = require('algoliasearch');
|
|
27
27
|
var reactInstantsearchHooksWeb = require('react-instantsearch-hooks-web');
|
|
28
28
|
var reactRouterDom = require('react-router-dom');
|
|
29
|
+
var marked = require('marked');
|
|
29
30
|
|
|
30
31
|
function _interopNamespaceDefault(e) {
|
|
31
32
|
var n = Object.create(null);
|
|
@@ -49,8 +50,8 @@ var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
|
49
50
|
var jsxRuntime__namespace = /*#__PURE__*/_interopNamespaceDefault(jsxRuntime);
|
|
50
51
|
var ReactDOM__namespace = /*#__PURE__*/_interopNamespaceDefault(ReactDOM);
|
|
51
52
|
|
|
52
|
-
function ownKeys$
|
|
53
|
-
function _objectSpread$
|
|
53
|
+
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; }
|
|
54
|
+
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; }
|
|
54
55
|
var event = {
|
|
55
56
|
list: new Map(),
|
|
56
57
|
// Map(1) { '<widget-UUID>' => { 'CustomSearchbar[10].searchQueryChanged': [] } }
|
|
@@ -112,7 +113,7 @@ var event = {
|
|
|
112
113
|
uuid: subscriber["uuid"]
|
|
113
114
|
};
|
|
114
115
|
if ("action" in subscriber && subscriber.action !== undefined) {
|
|
115
|
-
subscriber["action"](_objectSpread$
|
|
116
|
+
subscriber["action"](_objectSpread$Q({}, objectToSend));
|
|
116
117
|
}
|
|
117
118
|
});
|
|
118
119
|
}
|
|
@@ -2646,8 +2647,8 @@ var DashboardWrapper = function DashboardWrapper(_ref) {
|
|
|
2646
2647
|
});
|
|
2647
2648
|
};
|
|
2648
2649
|
|
|
2649
|
-
function ownKeys$
|
|
2650
|
-
function _objectSpread$
|
|
2650
|
+
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; }
|
|
2651
|
+
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; }
|
|
2651
2652
|
var DashboardThemeProvider = function DashboardThemeProvider(_ref) {
|
|
2652
2653
|
var themeKey = _ref.themeKey,
|
|
2653
2654
|
children = _ref.children;
|
|
@@ -2659,7 +2660,7 @@ var DashboardThemeProvider = function DashboardThemeProvider(_ref) {
|
|
|
2659
2660
|
var dashboardTheme = themes[themeKey];
|
|
2660
2661
|
var themeValue = dashboardTheme ? dashboardTheme[themeVariant] || null : null;
|
|
2661
2662
|
if (!themeValue) return null;
|
|
2662
|
-
return _objectSpread$
|
|
2663
|
+
return _objectSpread$P(_objectSpread$P({}, parentContext), {}, {
|
|
2663
2664
|
currentTheme: themeValue,
|
|
2664
2665
|
currentThemeKey: themeKey,
|
|
2665
2666
|
theme: themeValue,
|
|
@@ -2677,8 +2678,8 @@ var DashboardThemeProvider = function DashboardThemeProvider(_ref) {
|
|
|
2677
2678
|
});
|
|
2678
2679
|
};
|
|
2679
2680
|
|
|
2680
|
-
function ownKeys$
|
|
2681
|
-
function _objectSpread$
|
|
2681
|
+
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; }
|
|
2682
|
+
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; }
|
|
2682
2683
|
var AppThemeScope = function AppThemeScope(_ref) {
|
|
2683
2684
|
var children = _ref.children;
|
|
2684
2685
|
var ctx = React.useContext(DashReact.ThemeContext);
|
|
@@ -2686,7 +2687,7 @@ var AppThemeScope = function AppThemeScope(_ref) {
|
|
|
2686
2687
|
children: children
|
|
2687
2688
|
});
|
|
2688
2689
|
return /*#__PURE__*/jsxRuntime.jsx(DashReact.ThemeContext.Provider, {
|
|
2689
|
-
value: _objectSpread$
|
|
2690
|
+
value: _objectSpread$O(_objectSpread$O({}, ctx), {}, {
|
|
2690
2691
|
currentTheme: ctx.appTheme,
|
|
2691
2692
|
currentThemeKey: ctx.appThemeKey,
|
|
2692
2693
|
theme: ctx.appTheme,
|
|
@@ -2798,11 +2799,11 @@ var LayoutContainer = function LayoutContainer(_ref) {
|
|
|
2798
2799
|
});
|
|
2799
2800
|
};
|
|
2800
2801
|
|
|
2801
|
-
function ownKeys$
|
|
2802
|
-
function _objectSpread$
|
|
2803
|
-
function _createForOfIteratorHelper$
|
|
2804
|
-
function _unsupportedIterableToArray$
|
|
2805
|
-
function _arrayLikeToArray$
|
|
2802
|
+
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; }
|
|
2803
|
+
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; }
|
|
2804
|
+
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; } } }; }
|
|
2805
|
+
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; } }
|
|
2806
|
+
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; }
|
|
2806
2807
|
/**
|
|
2807
2808
|
* Layout template definitions for the dashboard template picker.
|
|
2808
2809
|
*
|
|
@@ -3076,12 +3077,12 @@ function createLayoutFromTemplate(template) {
|
|
|
3076
3077
|
cols: template.cols,
|
|
3077
3078
|
gap: "gap-2"
|
|
3078
3079
|
};
|
|
3079
|
-
var _iterator = _createForOfIteratorHelper$
|
|
3080
|
+
var _iterator = _createForOfIteratorHelper$n(template.cells),
|
|
3080
3081
|
_step;
|
|
3081
3082
|
try {
|
|
3082
3083
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3083
3084
|
var cell = _step.value;
|
|
3084
|
-
grid[cell.key] = _objectSpread$
|
|
3085
|
+
grid[cell.key] = _objectSpread$N({
|
|
3085
3086
|
component: null,
|
|
3086
3087
|
hide: cell.hide || false
|
|
3087
3088
|
}, cell.span ? {
|
|
@@ -4007,11 +4008,11 @@ var RegistryAuthModal = function RegistryAuthModal(_ref) {
|
|
|
4007
4008
|
});
|
|
4008
4009
|
};
|
|
4009
4010
|
|
|
4010
|
-
function _createForOfIteratorHelper$
|
|
4011
|
-
function _unsupportedIterableToArray$
|
|
4012
|
-
function _arrayLikeToArray$
|
|
4013
|
-
function ownKeys$
|
|
4014
|
-
function _objectSpread$
|
|
4011
|
+
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; } } }; }
|
|
4012
|
+
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; } }
|
|
4013
|
+
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; }
|
|
4014
|
+
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; }
|
|
4015
|
+
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; }
|
|
4015
4016
|
var RegistryDashboardDetail = function RegistryDashboardDetail(_ref) {
|
|
4016
4017
|
var dashboardPackage = _ref.dashboardPackage,
|
|
4017
4018
|
appId = _ref.appId,
|
|
@@ -4127,7 +4128,7 @@ var RegistryDashboardDetail = function RegistryDashboardDetail(_ref) {
|
|
|
4127
4128
|
setProgressWidgets(function (prev) {
|
|
4128
4129
|
var next = _toConsumableArray(prev);
|
|
4129
4130
|
if (data.index >= 0 && data.index < next.length) {
|
|
4130
|
-
next[data.index] = _objectSpread$
|
|
4131
|
+
next[data.index] = _objectSpread$M(_objectSpread$M({}, next[data.index]), {}, {
|
|
4131
4132
|
status: data.status,
|
|
4132
4133
|
error: data.error || null
|
|
4133
4134
|
});
|
|
@@ -4223,7 +4224,7 @@ var RegistryDashboardDetail = function RegistryDashboardDetail(_ref) {
|
|
|
4223
4224
|
var raw = preview === null || preview === void 0 ? void 0 : preview.compatibility;
|
|
4224
4225
|
if (!raw) return raw;
|
|
4225
4226
|
var cMap = ComponentManager.componentMap();
|
|
4226
|
-
var augWidgets = _objectSpread$
|
|
4227
|
+
var augWidgets = _objectSpread$M({}, raw.widgets);
|
|
4227
4228
|
var fixedCount = 0;
|
|
4228
4229
|
var _loop = function _loop() {
|
|
4229
4230
|
var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
|
|
@@ -4250,7 +4251,7 @@ var RegistryDashboardDetail = function RegistryDashboardDetail(_ref) {
|
|
|
4250
4251
|
toInstall = 0,
|
|
4251
4252
|
unavailable = 0,
|
|
4252
4253
|
hasUnavailableRequired = false;
|
|
4253
|
-
var _iterator = _createForOfIteratorHelper$
|
|
4254
|
+
var _iterator = _createForOfIteratorHelper$m(widgetDeps),
|
|
4254
4255
|
_step;
|
|
4255
4256
|
try {
|
|
4256
4257
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -4699,8 +4700,8 @@ var DiscoverDashboardsDetail = function DiscoverDashboardsDetail(_ref) {
|
|
|
4699
4700
|
});
|
|
4700
4701
|
};
|
|
4701
4702
|
|
|
4702
|
-
function ownKeys$
|
|
4703
|
-
function _objectSpread$
|
|
4703
|
+
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; }
|
|
4704
|
+
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; }
|
|
4704
4705
|
var LayoutManagerModal = function LayoutManagerModal(_ref) {
|
|
4705
4706
|
var open = _ref.open,
|
|
4706
4707
|
setIsOpen = _ref.setIsOpen,
|
|
@@ -4945,7 +4946,7 @@ var LayoutManagerModal = function LayoutManagerModal(_ref) {
|
|
|
4945
4946
|
}
|
|
4946
4947
|
return _context2.abrupt("return");
|
|
4947
4948
|
case 6:
|
|
4948
|
-
updatedWorkspace = _objectSpread$
|
|
4949
|
+
updatedWorkspace = _objectSpread$L(_objectSpread$L({}, importedWorkspace), {}, {
|
|
4949
4950
|
name: dashboardName.trim(),
|
|
4950
4951
|
menuId: menuId,
|
|
4951
4952
|
themeKey: selectedThemeKey
|
|
@@ -5918,9 +5919,9 @@ function cleanIpcError(message) {
|
|
|
5918
5919
|
return match ? match[1] : message;
|
|
5919
5920
|
}
|
|
5920
5921
|
|
|
5921
|
-
function _createForOfIteratorHelper$
|
|
5922
|
-
function _unsupportedIterableToArray$
|
|
5923
|
-
function _arrayLikeToArray$
|
|
5922
|
+
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; } } }; }
|
|
5923
|
+
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; } }
|
|
5924
|
+
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; }
|
|
5924
5925
|
|
|
5925
5926
|
/**
|
|
5926
5927
|
* useRegistrySearch — shared hook for browsing and installing registry packages.
|
|
@@ -6031,13 +6032,13 @@ var useRegistrySearch = function useRegistrySearch() {
|
|
|
6031
6032
|
return c.toLowerCase();
|
|
6032
6033
|
}));
|
|
6033
6034
|
widgets = [];
|
|
6034
|
-
_iterator = _createForOfIteratorHelper$
|
|
6035
|
+
_iterator = _createForOfIteratorHelper$l(pkgs);
|
|
6035
6036
|
try {
|
|
6036
6037
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6037
6038
|
pkg = _step.value;
|
|
6038
6039
|
// Compute missing APIs for the entire package
|
|
6039
6040
|
allApiProviders = [];
|
|
6040
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
6041
|
+
_iterator2 = _createForOfIteratorHelper$l(pkg.providers || []);
|
|
6041
6042
|
try {
|
|
6042
6043
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
6043
6044
|
p = _step2.value;
|
|
@@ -6050,11 +6051,11 @@ var useRegistrySearch = function useRegistrySearch() {
|
|
|
6050
6051
|
} finally {
|
|
6051
6052
|
_iterator2.f();
|
|
6052
6053
|
}
|
|
6053
|
-
_iterator3 = _createForOfIteratorHelper$
|
|
6054
|
+
_iterator3 = _createForOfIteratorHelper$l(pkg.widgets || []);
|
|
6054
6055
|
try {
|
|
6055
6056
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
6056
6057
|
w = _step3.value;
|
|
6057
|
-
_iterator5 = _createForOfIteratorHelper$
|
|
6058
|
+
_iterator5 = _createForOfIteratorHelper$l(w.providers || []);
|
|
6058
6059
|
try {
|
|
6059
6060
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
6060
6061
|
_p = _step5.value;
|
|
@@ -6076,7 +6077,7 @@ var useRegistrySearch = function useRegistrySearch() {
|
|
|
6076
6077
|
missingApis = _toConsumableArray(new Set(allApiProviders)).filter(function (api) {
|
|
6077
6078
|
return !capSet.has(api.toLowerCase());
|
|
6078
6079
|
});
|
|
6079
|
-
_iterator4 = _createForOfIteratorHelper$
|
|
6080
|
+
_iterator4 = _createForOfIteratorHelper$l(pkg.widgets || []);
|
|
6080
6081
|
try {
|
|
6081
6082
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
6082
6083
|
widget = _step4.value;
|
|
@@ -6697,11 +6698,11 @@ function applyFilters(items, filters, mode) {
|
|
|
6697
6698
|
});
|
|
6698
6699
|
}
|
|
6699
6700
|
|
|
6700
|
-
function _createForOfIteratorHelper$
|
|
6701
|
-
function _unsupportedIterableToArray$
|
|
6702
|
-
function _arrayLikeToArray$
|
|
6703
|
-
function ownKeys$
|
|
6704
|
-
function _objectSpread$
|
|
6701
|
+
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; } } }; }
|
|
6702
|
+
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; } }
|
|
6703
|
+
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; }
|
|
6704
|
+
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; }
|
|
6705
|
+
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; }
|
|
6705
6706
|
var WizardCustomizeStep = function WizardCustomizeStep(_ref) {
|
|
6706
6707
|
var _state$selectedDashbo, _state$selectedDashbo2;
|
|
6707
6708
|
var state = _ref.state,
|
|
@@ -6871,7 +6872,7 @@ var WizardCustomizeStep = function WizardCustomizeStep(_ref) {
|
|
|
6871
6872
|
_context2.next = 7;
|
|
6872
6873
|
break;
|
|
6873
6874
|
}
|
|
6874
|
-
updatedWorkspace = _objectSpread$
|
|
6875
|
+
updatedWorkspace = _objectSpread$K(_objectSpread$K({}, installResult.workspace), {}, {
|
|
6875
6876
|
name: name.trim(),
|
|
6876
6877
|
menuId: menuId || 1,
|
|
6877
6878
|
themeKey: theme
|
|
@@ -6923,7 +6924,7 @@ var WizardCustomizeStep = function WizardCustomizeStep(_ref) {
|
|
|
6923
6924
|
installedNames = new Set(installedList.map(function (w) {
|
|
6924
6925
|
return w.name;
|
|
6925
6926
|
}));
|
|
6926
|
-
_iterator = _createForOfIteratorHelper$
|
|
6927
|
+
_iterator = _createForOfIteratorHelper$k(state.selectedWidgets);
|
|
6927
6928
|
_context2.prev = 13;
|
|
6928
6929
|
_iterator.s();
|
|
6929
6930
|
case 14:
|
|
@@ -7626,8 +7627,8 @@ var WizardCustomizeStep = function WizardCustomizeStep(_ref) {
|
|
|
7626
7627
|
});
|
|
7627
7628
|
};
|
|
7628
7629
|
|
|
7629
|
-
function ownKeys$
|
|
7630
|
-
function _objectSpread$
|
|
7630
|
+
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; }
|
|
7631
|
+
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; }
|
|
7631
7632
|
var TOTAL_STEPS = 2; // Steps 0-1: Discover, Customize
|
|
7632
7633
|
|
|
7633
7634
|
var initialState = {
|
|
@@ -7653,20 +7654,20 @@ var initialState = {
|
|
|
7653
7654
|
function wizardReducer(state, action) {
|
|
7654
7655
|
switch (action.type) {
|
|
7655
7656
|
case "SET_STEP":
|
|
7656
|
-
return _objectSpread$
|
|
7657
|
+
return _objectSpread$J(_objectSpread$J({}, state), {}, {
|
|
7657
7658
|
step: action.payload
|
|
7658
7659
|
});
|
|
7659
7660
|
case "SET_FILTERS":
|
|
7660
|
-
return _objectSpread$
|
|
7661
|
-
filters: _objectSpread$
|
|
7661
|
+
return _objectSpread$J(_objectSpread$J({}, state), {}, {
|
|
7662
|
+
filters: _objectSpread$J(_objectSpread$J({}, state.filters), action.payload)
|
|
7662
7663
|
});
|
|
7663
7664
|
case "TOGGLE_FILTER_CATEGORY":
|
|
7664
7665
|
{
|
|
7665
7666
|
var categories = state.filters.categories.includes(action.payload) ? state.filters.categories.filter(function (c) {
|
|
7666
7667
|
return c !== action.payload;
|
|
7667
7668
|
}) : [].concat(_toConsumableArray(state.filters.categories), [action.payload]);
|
|
7668
|
-
return _objectSpread$
|
|
7669
|
-
filters: _objectSpread$
|
|
7669
|
+
return _objectSpread$J(_objectSpread$J({}, state), {}, {
|
|
7670
|
+
filters: _objectSpread$J(_objectSpread$J({}, state.filters), {}, {
|
|
7670
7671
|
categories: categories
|
|
7671
7672
|
})
|
|
7672
7673
|
});
|
|
@@ -7676,15 +7677,15 @@ function wizardReducer(state, action) {
|
|
|
7676
7677
|
var providers = state.filters.providers.includes(action.payload) ? state.filters.providers.filter(function (p) {
|
|
7677
7678
|
return p !== action.payload;
|
|
7678
7679
|
}) : [].concat(_toConsumableArray(state.filters.providers), [action.payload]);
|
|
7679
|
-
return _objectSpread$
|
|
7680
|
-
filters: _objectSpread$
|
|
7680
|
+
return _objectSpread$J(_objectSpread$J({}, state), {}, {
|
|
7681
|
+
filters: _objectSpread$J(_objectSpread$J({}, state.filters), {}, {
|
|
7681
7682
|
providers: providers
|
|
7682
7683
|
})
|
|
7683
7684
|
});
|
|
7684
7685
|
}
|
|
7685
7686
|
case "SET_SEARCH_QUERY":
|
|
7686
|
-
return _objectSpread$
|
|
7687
|
-
filters: _objectSpread$
|
|
7687
|
+
return _objectSpread$J(_objectSpread$J({}, state), {}, {
|
|
7688
|
+
filters: _objectSpread$J(_objectSpread$J({}, state.filters), {}, {
|
|
7688
7689
|
query: action.payload
|
|
7689
7690
|
})
|
|
7690
7691
|
});
|
|
@@ -7694,7 +7695,7 @@ function wizardReducer(state, action) {
|
|
|
7694
7695
|
var widgetOrder = action.payload.map(function (w) {
|
|
7695
7696
|
return w.name || w.key;
|
|
7696
7697
|
});
|
|
7697
|
-
return _objectSpread$
|
|
7698
|
+
return _objectSpread$J(_objectSpread$J({}, state), {}, {
|
|
7698
7699
|
selectedWidgets: action.payload,
|
|
7699
7700
|
layout: {
|
|
7700
7701
|
templateKey: templateKey,
|
|
@@ -7714,7 +7715,7 @@ function wizardReducer(state, action) {
|
|
|
7714
7715
|
var toggleWidgetOrder = selectedWidgets.map(function (w) {
|
|
7715
7716
|
return w.name || w.key;
|
|
7716
7717
|
});
|
|
7717
|
-
return _objectSpread$
|
|
7718
|
+
return _objectSpread$J(_objectSpread$J({}, state), {}, {
|
|
7718
7719
|
selectedWidgets: selectedWidgets,
|
|
7719
7720
|
layout: {
|
|
7720
7721
|
templateKey: toggleTemplateKey,
|
|
@@ -7723,29 +7724,29 @@ function wizardReducer(state, action) {
|
|
|
7723
7724
|
});
|
|
7724
7725
|
}
|
|
7725
7726
|
case "SET_SELECTED_DASHBOARD":
|
|
7726
|
-
return _objectSpread$
|
|
7727
|
+
return _objectSpread$J(_objectSpread$J({}, state), {}, {
|
|
7727
7728
|
selectedDashboard: action.payload
|
|
7728
7729
|
});
|
|
7729
7730
|
case "SET_PATH":
|
|
7730
|
-
return _objectSpread$
|
|
7731
|
+
return _objectSpread$J(_objectSpread$J({}, state), {}, {
|
|
7731
7732
|
path: action.payload
|
|
7732
7733
|
});
|
|
7733
7734
|
case "SET_LAYOUT":
|
|
7734
|
-
return _objectSpread$
|
|
7735
|
+
return _objectSpread$J(_objectSpread$J({}, state), {}, {
|
|
7735
7736
|
layout: action.payload
|
|
7736
7737
|
});
|
|
7737
7738
|
case "REORDER_WIDGETS":
|
|
7738
|
-
return _objectSpread$
|
|
7739
|
-
layout: _objectSpread$
|
|
7739
|
+
return _objectSpread$J(_objectSpread$J({}, state), {}, {
|
|
7740
|
+
layout: _objectSpread$J(_objectSpread$J({}, state.layout), {}, {
|
|
7740
7741
|
widgetOrder: action.payload
|
|
7741
7742
|
})
|
|
7742
7743
|
});
|
|
7743
7744
|
case "SET_CUSTOMIZATION":
|
|
7744
|
-
return _objectSpread$
|
|
7745
|
-
customization: _objectSpread$
|
|
7745
|
+
return _objectSpread$J(_objectSpread$J({}, state), {}, {
|
|
7746
|
+
customization: _objectSpread$J(_objectSpread$J({}, state.customization), action.payload)
|
|
7746
7747
|
});
|
|
7747
7748
|
case "RESET":
|
|
7748
|
-
return _objectSpread$
|
|
7749
|
+
return _objectSpread$J({}, initialState);
|
|
7749
7750
|
default:
|
|
7750
7751
|
return state;
|
|
7751
7752
|
}
|
|
@@ -8600,7 +8601,7 @@ hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBu
|
|
|
8600
8601
|
var hasPropertyDescriptors_1 = hasPropertyDescriptors;
|
|
8601
8602
|
|
|
8602
8603
|
var keys = objectKeys$2;
|
|
8603
|
-
var hasSymbols$
|
|
8604
|
+
var hasSymbols$5 = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
|
|
8604
8605
|
|
|
8605
8606
|
var toStr$4 = Object.prototype.toString;
|
|
8606
8607
|
var concat = Array.prototype.concat;
|
|
@@ -8633,7 +8634,7 @@ var defineProperty$1 = function (object, name, value, predicate) {
|
|
|
8633
8634
|
var defineProperties$1 = function (object, map) {
|
|
8634
8635
|
var predicates = arguments.length > 2 ? arguments[2] : {};
|
|
8635
8636
|
var props = keys(map);
|
|
8636
|
-
if (hasSymbols$
|
|
8637
|
+
if (hasSymbols$5) {
|
|
8637
8638
|
props = concat.call(props, Object.getOwnPropertySymbols(map));
|
|
8638
8639
|
}
|
|
8639
8640
|
for (var i = 0; i < props.length; i += 1) {
|
|
@@ -8699,11 +8700,11 @@ var sign$1 = function sign(number) {
|
|
|
8699
8700
|
};
|
|
8700
8701
|
|
|
8701
8702
|
var shams$1;
|
|
8702
|
-
var hasRequiredShams
|
|
8703
|
+
var hasRequiredShams;
|
|
8703
8704
|
|
|
8704
|
-
function requireShams
|
|
8705
|
-
if (hasRequiredShams
|
|
8706
|
-
hasRequiredShams
|
|
8705
|
+
function requireShams () {
|
|
8706
|
+
if (hasRequiredShams) return shams$1;
|
|
8707
|
+
hasRequiredShams = 1;
|
|
8707
8708
|
|
|
8708
8709
|
/** @type {import('./shams')} */
|
|
8709
8710
|
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
@@ -8752,10 +8753,10 @@ function requireShams$1 () {
|
|
|
8752
8753
|
}
|
|
8753
8754
|
|
|
8754
8755
|
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
8755
|
-
var hasSymbolSham = requireShams
|
|
8756
|
+
var hasSymbolSham = requireShams();
|
|
8756
8757
|
|
|
8757
8758
|
/** @type {import('.')} */
|
|
8758
|
-
var hasSymbols$
|
|
8759
|
+
var hasSymbols$4 = function hasNativeSymbols() {
|
|
8759
8760
|
if (typeof origSymbol !== 'function') { return false; }
|
|
8760
8761
|
if (typeof Symbol !== 'function') { return false; }
|
|
8761
8762
|
if (typeof origSymbol('foo') !== 'symbol') { return false; }
|
|
@@ -9059,7 +9060,7 @@ var ThrowTypeError = $gOPD$1
|
|
|
9059
9060
|
}())
|
|
9060
9061
|
: throwTypeError;
|
|
9061
9062
|
|
|
9062
|
-
var hasSymbols$
|
|
9063
|
+
var hasSymbols$3 = hasSymbols$4();
|
|
9063
9064
|
|
|
9064
9065
|
var getProto$2 = getProto$3;
|
|
9065
9066
|
var $ObjectGPO = requireObject_getPrototypeOf();
|
|
@@ -9077,7 +9078,7 @@ var INTRINSICS = {
|
|
|
9077
9078
|
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
|
|
9078
9079
|
'%Array%': Array,
|
|
9079
9080
|
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
|
|
9080
|
-
'%ArrayIteratorPrototype%': hasSymbols$
|
|
9081
|
+
'%ArrayIteratorPrototype%': hasSymbols$3 && getProto$2 ? getProto$2([][Symbol.iterator]()) : undefined$1,
|
|
9081
9082
|
'%AsyncFromSyncIteratorPrototype%': undefined$1,
|
|
9082
9083
|
'%AsyncFunction%': needsEval,
|
|
9083
9084
|
'%AsyncGenerator%': needsEval,
|
|
@@ -9108,10 +9109,10 @@ var INTRINSICS = {
|
|
|
9108
9109
|
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
|
|
9109
9110
|
'%isFinite%': isFinite,
|
|
9110
9111
|
'%isNaN%': isNaN,
|
|
9111
|
-
'%IteratorPrototype%': hasSymbols$
|
|
9112
|
+
'%IteratorPrototype%': hasSymbols$3 && getProto$2 ? getProto$2(getProto$2([][Symbol.iterator]())) : undefined$1,
|
|
9112
9113
|
'%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
|
|
9113
9114
|
'%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
|
|
9114
|
-
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$
|
|
9115
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$3 || !getProto$2 ? undefined$1 : getProto$2(new Map()[Symbol.iterator]()),
|
|
9115
9116
|
'%Math%': Math,
|
|
9116
9117
|
'%Number%': Number,
|
|
9117
9118
|
'%Object%': $Object$2,
|
|
@@ -9125,11 +9126,11 @@ var INTRINSICS = {
|
|
|
9125
9126
|
'%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
|
|
9126
9127
|
'%RegExp%': RegExp,
|
|
9127
9128
|
'%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
|
|
9128
|
-
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$
|
|
9129
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$3 || !getProto$2 ? undefined$1 : getProto$2(new Set()[Symbol.iterator]()),
|
|
9129
9130
|
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
|
|
9130
9131
|
'%String%': String,
|
|
9131
|
-
'%StringIteratorPrototype%': hasSymbols$
|
|
9132
|
-
'%Symbol%': hasSymbols$
|
|
9132
|
+
'%StringIteratorPrototype%': hasSymbols$3 && getProto$2 ? getProto$2(''[Symbol.iterator]()) : undefined$1,
|
|
9133
|
+
'%Symbol%': hasSymbols$3 ? Symbol : undefined$1,
|
|
9133
9134
|
'%SyntaxError%': $SyntaxError$1,
|
|
9134
9135
|
'%ThrowTypeError%': ThrowTypeError,
|
|
9135
9136
|
'%TypedArray%': TypedArray,
|
|
@@ -9482,12 +9483,12 @@ var callBound$i = function callBoundIntrinsic(name, allowMissing) {
|
|
|
9482
9483
|
|
|
9483
9484
|
// modified from https://github.com/es-shims/es6-shim
|
|
9484
9485
|
var objectKeys$1 = objectKeys$2;
|
|
9485
|
-
var hasSymbols$
|
|
9486
|
+
var hasSymbols$2 = requireShams()();
|
|
9486
9487
|
var callBound$h = callBound$i;
|
|
9487
9488
|
var $Object$1 = esObjectAtoms;
|
|
9488
9489
|
var $push = callBound$h('Array.prototype.push');
|
|
9489
9490
|
var $propIsEnumerable = callBound$h('Object.prototype.propertyIsEnumerable');
|
|
9490
|
-
var originalGetSymbols = hasSymbols$
|
|
9491
|
+
var originalGetSymbols = hasSymbols$2 ? $Object$1.getOwnPropertySymbols : null;
|
|
9491
9492
|
|
|
9492
9493
|
// eslint-disable-next-line no-unused-vars
|
|
9493
9494
|
var implementation$8 = function assign(target, source1) {
|
|
@@ -9501,7 +9502,7 @@ var implementation$8 = function assign(target, source1) {
|
|
|
9501
9502
|
|
|
9502
9503
|
// step 3.a.ii:
|
|
9503
9504
|
var keys = objectKeys$1(from);
|
|
9504
|
-
var getSymbols = hasSymbols$
|
|
9505
|
+
var getSymbols = hasSymbols$2 && ($Object$1.getOwnPropertySymbols || originalGetSymbols);
|
|
9505
9506
|
if (getSymbols) {
|
|
9506
9507
|
var syms = getSymbols(from);
|
|
9507
9508
|
for (var j = 0; j < syms.length; ++j) {
|
|
@@ -9798,23 +9799,14 @@ var regexp_prototype_flags = flagsBound;
|
|
|
9798
9799
|
|
|
9799
9800
|
var esGetIterator = {exports: {}};
|
|
9800
9801
|
|
|
9801
|
-
var
|
|
9802
|
-
var hasRequiredShams;
|
|
9803
|
-
|
|
9804
|
-
function requireShams () {
|
|
9805
|
-
if (hasRequiredShams) return shams;
|
|
9806
|
-
hasRequiredShams = 1;
|
|
9802
|
+
var hasSymbols$1 = requireShams();
|
|
9807
9803
|
|
|
9808
|
-
|
|
9809
|
-
|
|
9810
|
-
|
|
9811
|
-
|
|
9812
|
-
return hasSymbols() && !!Symbol.toStringTag;
|
|
9813
|
-
};
|
|
9814
|
-
return shams;
|
|
9815
|
-
}
|
|
9804
|
+
/** @type {import('.')} */
|
|
9805
|
+
var shams = function hasToStringTagShams() {
|
|
9806
|
+
return hasSymbols$1() && !!Symbol.toStringTag;
|
|
9807
|
+
};
|
|
9816
9808
|
|
|
9817
|
-
var hasToStringTag$7 =
|
|
9809
|
+
var hasToStringTag$7 = shams();
|
|
9818
9810
|
var callBound$f = callBound$i;
|
|
9819
9811
|
|
|
9820
9812
|
var $toString$7 = callBound$f('Object.prototype.toString');
|
|
@@ -10851,7 +10843,7 @@ var tryStringObject = function tryStringObject(value) {
|
|
|
10851
10843
|
/** @type {(receiver: ThisParameterType<typeof Object.prototype.toString>, ...args: Parameters<typeof Object.prototype.toString>) => ReturnType<typeof Object.prototype.toString>} */
|
|
10852
10844
|
var $toString$6 = callBound$c('Object.prototype.toString');
|
|
10853
10845
|
var strClass = '[object String]';
|
|
10854
|
-
var hasToStringTag$6 =
|
|
10846
|
+
var hasToStringTag$6 = shams();
|
|
10855
10847
|
|
|
10856
10848
|
/** @type {import('.')} */
|
|
10857
10849
|
var isString$2 = function isString(value) {
|
|
@@ -10967,7 +10959,7 @@ var isSet$2 = exported$1 || function isSet(x) {
|
|
|
10967
10959
|
var isArguments$1 = isArguments$2;
|
|
10968
10960
|
var getStopIterationIterator = stopIterationIterator;
|
|
10969
10961
|
|
|
10970
|
-
if (hasSymbols$
|
|
10962
|
+
if (hasSymbols$4() || requireShams()()) {
|
|
10971
10963
|
var $iterator = Symbol.iterator;
|
|
10972
10964
|
// Symbol is available natively or shammed
|
|
10973
10965
|
// natively:
|
|
@@ -11256,7 +11248,7 @@ var tryDateObject = function tryDateGetDayCall(value) {
|
|
|
11256
11248
|
/** @type {(value: unknown) => string} */
|
|
11257
11249
|
var toStr$2 = callBound$9('Object.prototype.toString');
|
|
11258
11250
|
var dateClass = '[object Date]';
|
|
11259
|
-
var hasToStringTag$5 =
|
|
11251
|
+
var hasToStringTag$5 = shams();
|
|
11260
11252
|
|
|
11261
11253
|
/** @type {import('.')} */
|
|
11262
11254
|
var isDateObject = function isDateObject(value) {
|
|
@@ -11267,7 +11259,7 @@ var isDateObject = function isDateObject(value) {
|
|
|
11267
11259
|
};
|
|
11268
11260
|
|
|
11269
11261
|
var callBound$8 = callBound$i;
|
|
11270
|
-
var hasToStringTag$4 =
|
|
11262
|
+
var hasToStringTag$4 = shams();
|
|
11271
11263
|
var hasOwn = hasown;
|
|
11272
11264
|
var gOPD$1 = gopd$1;
|
|
11273
11265
|
|
|
@@ -11372,7 +11364,7 @@ var tryNumberObject = function tryNumberObject(value) {
|
|
|
11372
11364
|
};
|
|
11373
11365
|
var $toString$3 = callBound$6('Object.prototype.toString');
|
|
11374
11366
|
var numClass = '[object Number]';
|
|
11375
|
-
var hasToStringTag$3 =
|
|
11367
|
+
var hasToStringTag$3 = shams();
|
|
11376
11368
|
|
|
11377
11369
|
/** @type {import('.')} */
|
|
11378
11370
|
var isNumberObject = function isNumberObject(value) {
|
|
@@ -11399,7 +11391,7 @@ var tryBooleanObject = function booleanBrandCheck(value) {
|
|
|
11399
11391
|
}
|
|
11400
11392
|
};
|
|
11401
11393
|
var boolClass = '[object Boolean]';
|
|
11402
|
-
var hasToStringTag$2 =
|
|
11394
|
+
var hasToStringTag$2 = shams();
|
|
11403
11395
|
|
|
11404
11396
|
/** @type {import('.')} */
|
|
11405
11397
|
var isBooleanObject = function isBoolean(value) {
|
|
@@ -11441,7 +11433,7 @@ function requireSafeRegexTest () {
|
|
|
11441
11433
|
|
|
11442
11434
|
var callBound$4 = callBound$i;
|
|
11443
11435
|
var $toString$1 = callBound$4('Object.prototype.toString');
|
|
11444
|
-
var hasSymbols = hasSymbols$
|
|
11436
|
+
var hasSymbols = hasSymbols$4();
|
|
11445
11437
|
var safeRegexTest = requireSafeRegexTest();
|
|
11446
11438
|
|
|
11447
11439
|
if (hasSymbols) {
|
|
@@ -11887,7 +11879,7 @@ var gOPD = gopd$1;
|
|
|
11887
11879
|
var getProto = getProto$3;
|
|
11888
11880
|
|
|
11889
11881
|
var $toString = callBound$2('Object.prototype.toString');
|
|
11890
|
-
var hasToStringTag =
|
|
11882
|
+
var hasToStringTag = shams();
|
|
11891
11883
|
|
|
11892
11884
|
var g = typeof globalThis === 'undefined' ? commonjsGlobal : globalThis;
|
|
11893
11885
|
var typedArrays = availableTypedArrays();
|
|
@@ -12406,8 +12398,8 @@ var deepEqual = function deepEqual(a, b, opts) {
|
|
|
12406
12398
|
|
|
12407
12399
|
var deepEqual$1 = /*@__PURE__*/getDefaultExportFromCjs(deepEqual);
|
|
12408
12400
|
|
|
12409
|
-
function ownKeys$
|
|
12410
|
-
function _objectSpread$
|
|
12401
|
+
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; }
|
|
12402
|
+
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; }
|
|
12411
12403
|
var PanelEditItem = function PanelEditItem(_ref) {
|
|
12412
12404
|
var _ComponentManager$get;
|
|
12413
12405
|
var workspace = _ref.workspace,
|
|
@@ -12467,7 +12459,7 @@ var PanelEditItem = function PanelEditItem(_ref) {
|
|
|
12467
12459
|
var uuid = newItem.uuid || newItem.uuidString;
|
|
12468
12460
|
if (uuid) {
|
|
12469
12461
|
workspaceTemp.selectedProviders = workspaceTemp.selectedProviders || {};
|
|
12470
|
-
workspaceTemp.selectedProviders[uuid] = _objectSpread$
|
|
12462
|
+
workspaceTemp.selectedProviders[uuid] = _objectSpread$I(_objectSpread$I({}, workspaceTemp.selectedProviders[uuid] || {}), {}, _defineProperty({}, providerType, providerId));
|
|
12471
12463
|
}
|
|
12472
12464
|
onUpdate(newItem, workspaceTemp);
|
|
12473
12465
|
forceUpdate();
|
|
@@ -12596,7 +12588,7 @@ var PanelEditItem = function PanelEditItem(_ref) {
|
|
|
12596
12588
|
var _ref5 = _slicedToArray(_ref4, 2),
|
|
12597
12589
|
name = _ref5[0],
|
|
12598
12590
|
p = _ref5[1];
|
|
12599
|
-
return _objectSpread$
|
|
12591
|
+
return _objectSpread$I({
|
|
12600
12592
|
name: name
|
|
12601
12593
|
}, p);
|
|
12602
12594
|
});
|
|
@@ -12638,11 +12630,11 @@ var PanelEditItem = function PanelEditItem(_ref) {
|
|
|
12638
12630
|
};
|
|
12639
12631
|
|
|
12640
12632
|
var _excluded$5 = ["rows", "cols"];
|
|
12641
|
-
function _createForOfIteratorHelper$
|
|
12642
|
-
function _unsupportedIterableToArray$
|
|
12643
|
-
function _arrayLikeToArray$
|
|
12644
|
-
function ownKeys$
|
|
12645
|
-
function _objectSpread$
|
|
12633
|
+
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; } } }; }
|
|
12634
|
+
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; } }
|
|
12635
|
+
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; }
|
|
12636
|
+
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; }
|
|
12637
|
+
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; }
|
|
12646
12638
|
var defaultGrid = {
|
|
12647
12639
|
rows: 1,
|
|
12648
12640
|
cols: 1,
|
|
@@ -12663,7 +12655,7 @@ function GridEditor(_ref) {
|
|
|
12663
12655
|
setGrid = _useState2[1];
|
|
12664
12656
|
var addRow = function addRow() {
|
|
12665
12657
|
var newRow = grid.rows;
|
|
12666
|
-
var newGrid = _objectSpread$
|
|
12658
|
+
var newGrid = _objectSpread$H(_objectSpread$H({}, grid), {}, {
|
|
12667
12659
|
rows: grid.rows + 1
|
|
12668
12660
|
});
|
|
12669
12661
|
for (var col = 0; col < grid.cols; col++) {
|
|
@@ -12678,7 +12670,7 @@ function GridEditor(_ref) {
|
|
|
12678
12670
|
};
|
|
12679
12671
|
var addColumn = function addColumn() {
|
|
12680
12672
|
var newCol = grid.cols;
|
|
12681
|
-
var newGrid = _objectSpread$
|
|
12673
|
+
var newGrid = _objectSpread$H(_objectSpread$H({}, grid), {}, {
|
|
12682
12674
|
cols: grid.cols + 1
|
|
12683
12675
|
});
|
|
12684
12676
|
for (var row = 0; row < grid.rows; row++) {
|
|
@@ -12711,8 +12703,8 @@ function GridEditor(_ref) {
|
|
|
12711
12703
|
});
|
|
12712
12704
|
}
|
|
12713
12705
|
if (grid[nextKey]) {
|
|
12714
|
-
var newGrid = _objectSpread$
|
|
12715
|
-
newGrid[currentKey] = _objectSpread$
|
|
12706
|
+
var newGrid = _objectSpread$H({}, grid);
|
|
12707
|
+
newGrid[currentKey] = _objectSpread$H(_objectSpread$H({}, newGrid[currentKey]), {}, {
|
|
12716
12708
|
colSpan: newGrid[currentKey].colSpan + 1
|
|
12717
12709
|
});
|
|
12718
12710
|
delete newGrid[nextKey];
|
|
@@ -12725,8 +12717,8 @@ function GridEditor(_ref) {
|
|
|
12725
12717
|
var currentKey = "".concat(row, ".").concat(col);
|
|
12726
12718
|
var belowKey = "".concat(row + 1, ".").concat(col);
|
|
12727
12719
|
if (grid[belowKey]) {
|
|
12728
|
-
var newGrid = _objectSpread$
|
|
12729
|
-
newGrid[currentKey] = _objectSpread$
|
|
12720
|
+
var newGrid = _objectSpread$H({}, grid);
|
|
12721
|
+
newGrid[currentKey] = _objectSpread$H(_objectSpread$H({}, newGrid[currentKey]), {}, {
|
|
12730
12722
|
rowSpan: newGrid[currentKey].rowSpan + 1
|
|
12731
12723
|
});
|
|
12732
12724
|
delete newGrid[belowKey];
|
|
@@ -12743,7 +12735,7 @@ function GridEditor(_ref) {
|
|
|
12743
12735
|
var splitCell = function splitCell(row, col) {
|
|
12744
12736
|
var key = "".concat(row, ".").concat(col);
|
|
12745
12737
|
var cell = grid[key];
|
|
12746
|
-
var newGrid = _objectSpread$
|
|
12738
|
+
var newGrid = _objectSpread$H({}, grid);
|
|
12747
12739
|
|
|
12748
12740
|
// we have to check the colspan, and since the colspan is greater than 1
|
|
12749
12741
|
// Only handle horizontal split if colSpan > 1
|
|
@@ -12759,13 +12751,13 @@ function GridEditor(_ref) {
|
|
|
12759
12751
|
var oldKey = "".concat(row, ".").concat(c);
|
|
12760
12752
|
var newKey = "".concat(row, ".").concat(c + 1);
|
|
12761
12753
|
if (newGrid[oldKey]) {
|
|
12762
|
-
newGrid[newKey] = _objectSpread$
|
|
12754
|
+
newGrid[newKey] = _objectSpread$H({}, newGrid[oldKey]);
|
|
12763
12755
|
delete newGrid[oldKey];
|
|
12764
12756
|
}
|
|
12765
12757
|
}
|
|
12766
12758
|
|
|
12767
12759
|
// Update the original cell's colSpan
|
|
12768
|
-
newGrid[key] = _objectSpread$
|
|
12760
|
+
newGrid[key] = _objectSpread$H(_objectSpread$H({}, cell), {}, {
|
|
12769
12761
|
colSpan: cell.colSpan - 1
|
|
12770
12762
|
});
|
|
12771
12763
|
|
|
@@ -12777,7 +12769,7 @@ function GridEditor(_ref) {
|
|
|
12777
12769
|
};
|
|
12778
12770
|
}
|
|
12779
12771
|
if (cell.rowSpan > 1) {
|
|
12780
|
-
newGrid[key] = _objectSpread$
|
|
12772
|
+
newGrid[key] = _objectSpread$H(_objectSpread$H({}, newGrid[key]), {}, {
|
|
12781
12773
|
rowSpan: cell.rowSpan - 1
|
|
12782
12774
|
});
|
|
12783
12775
|
newGrid["".concat(row + 1, ".").concat(col)] = {
|
|
@@ -12793,7 +12785,7 @@ function GridEditor(_ref) {
|
|
|
12793
12785
|
function sortObjectByKeys(obj) {
|
|
12794
12786
|
var sortedKeys = Object.keys(obj).sort();
|
|
12795
12787
|
var sortedObj = {};
|
|
12796
|
-
var _iterator = _createForOfIteratorHelper$
|
|
12788
|
+
var _iterator = _createForOfIteratorHelper$j(sortedKeys),
|
|
12797
12789
|
_step;
|
|
12798
12790
|
try {
|
|
12799
12791
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -12896,7 +12888,7 @@ function GridEditor(_ref) {
|
|
|
12896
12888
|
var fromKey = "".concat(from.row, ".").concat(from.col);
|
|
12897
12889
|
var toKey = "".concat(to.row, ".").concat(to.col);
|
|
12898
12890
|
if (fromKey === toKey) return;
|
|
12899
|
-
var newGrid = _objectSpread$
|
|
12891
|
+
var newGrid = _objectSpread$H({}, grid);
|
|
12900
12892
|
|
|
12901
12893
|
// Swap the cells
|
|
12902
12894
|
var temp = newGrid[fromKey];
|
|
@@ -12922,7 +12914,7 @@ function GridEditor(_ref) {
|
|
|
12922
12914
|
// console.log("Grid updated:", sequencedGrid);
|
|
12923
12915
|
}
|
|
12924
12916
|
function resetGridLayout() {
|
|
12925
|
-
var newGrid = _objectSpread$
|
|
12917
|
+
var newGrid = _objectSpread$H({}, defaultGrid);
|
|
12926
12918
|
setGrid(newGrid);
|
|
12927
12919
|
onUpdate(newGrid);
|
|
12928
12920
|
}
|
|
@@ -13200,8 +13192,8 @@ var PanelEditItemGrid = function PanelEditItemGrid(_ref) {
|
|
|
13200
13192
|
});
|
|
13201
13193
|
};
|
|
13202
13194
|
|
|
13203
|
-
function ownKeys$
|
|
13204
|
-
function _objectSpread$
|
|
13195
|
+
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; }
|
|
13196
|
+
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; }
|
|
13205
13197
|
var PanelEditItemNotifications = function PanelEditItemNotifications(_ref) {
|
|
13206
13198
|
var item = _ref.item;
|
|
13207
13199
|
_ref.workspace;
|
|
@@ -13224,7 +13216,7 @@ var PanelEditItemNotifications = function PanelEditItemNotifications(_ref) {
|
|
|
13224
13216
|
}, [widgetUuid, notificationDefs.length]);
|
|
13225
13217
|
function handleNotifToggle(typeKey, value) {
|
|
13226
13218
|
var _window$mainApi2;
|
|
13227
|
-
var updated = _objectSpread$
|
|
13219
|
+
var updated = _objectSpread$G(_objectSpread$G({}, notifPrefs), {}, _defineProperty({}, typeKey, value));
|
|
13228
13220
|
setNotifPrefs(updated);
|
|
13229
13221
|
if ((_window$mainApi2 = window.mainApi) !== null && _window$mainApi2 !== void 0 && (_window$mainApi2 = _window$mainApi2.notifications) !== null && _window$mainApi2 !== void 0 && _window$mainApi2.setPreferences && widgetUuid) {
|
|
13230
13222
|
window.mainApi.notifications.setPreferences(widgetUuid, _defineProperty({}, typeKey, value));
|
|
@@ -13266,11 +13258,11 @@ var PanelEditItemNotifications = function PanelEditItemNotifications(_ref) {
|
|
|
13266
13258
|
});
|
|
13267
13259
|
};
|
|
13268
13260
|
|
|
13269
|
-
function _createForOfIteratorHelper$
|
|
13270
|
-
function _unsupportedIterableToArray$
|
|
13271
|
-
function _arrayLikeToArray$
|
|
13272
|
-
function ownKeys$
|
|
13273
|
-
function _objectSpread$
|
|
13261
|
+
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; } } }; }
|
|
13262
|
+
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; } }
|
|
13263
|
+
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; }
|
|
13264
|
+
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; }
|
|
13265
|
+
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; }
|
|
13274
13266
|
var DAYS = [{
|
|
13275
13267
|
key: "mon",
|
|
13276
13268
|
label: "Mon"
|
|
@@ -13371,7 +13363,7 @@ function TaskScheduleEditor(_ref) {
|
|
|
13371
13363
|
var _window$mainApi;
|
|
13372
13364
|
var overrides = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
13373
13365
|
if (!((_window$mainApi = window.mainApi) !== null && _window$mainApi !== void 0 && (_window$mainApi = _window$mainApi.scheduler) !== null && _window$mainApi !== void 0 && _window$mainApi.registerTask)) return;
|
|
13374
|
-
var payload = _objectSpread$
|
|
13366
|
+
var payload = _objectSpread$F({
|
|
13375
13367
|
widgetId: widgetId,
|
|
13376
13368
|
widgetName: widgetName,
|
|
13377
13369
|
workspaceId: workspaceId || "",
|
|
@@ -13597,7 +13589,7 @@ var PanelEditItemSchedule = function PanelEditItemSchedule(_ref2) {
|
|
|
13597
13589
|
setIsLoading(true);
|
|
13598
13590
|
window.mainApi.scheduler.getTasks(widgetUuid).then(function (tasks) {
|
|
13599
13591
|
var stateMap = {};
|
|
13600
|
-
var _iterator = _createForOfIteratorHelper$
|
|
13592
|
+
var _iterator = _createForOfIteratorHelper$i(tasks || []),
|
|
13601
13593
|
_step;
|
|
13602
13594
|
try {
|
|
13603
13595
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -15656,8 +15648,8 @@ var WidgetIcon = function WidgetIcon(_ref) {
|
|
|
15656
15648
|
});
|
|
15657
15649
|
};
|
|
15658
15650
|
|
|
15659
|
-
function ownKeys$
|
|
15660
|
-
function _objectSpread$
|
|
15651
|
+
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; }
|
|
15652
|
+
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; }
|
|
15661
15653
|
var ProviderForm = function ProviderForm(_ref) {
|
|
15662
15654
|
var credentialSchema = _ref.credentialSchema,
|
|
15663
15655
|
_ref$initialValues = _ref.initialValues,
|
|
@@ -15702,14 +15694,14 @@ var ProviderForm = function ProviderForm(_ref) {
|
|
|
15702
15694
|
var oldKey = f.key;
|
|
15703
15695
|
if (oldKey && formData[oldKey] !== undefined) {
|
|
15704
15696
|
setFormData(function (fd) {
|
|
15705
|
-
var updated = _objectSpread$
|
|
15697
|
+
var updated = _objectSpread$E({}, fd);
|
|
15706
15698
|
var val = updated[oldKey];
|
|
15707
15699
|
delete updated[oldKey];
|
|
15708
15700
|
if (newKey.trim()) updated[newKey] = val;
|
|
15709
15701
|
return updated;
|
|
15710
15702
|
});
|
|
15711
15703
|
}
|
|
15712
|
-
return _objectSpread$
|
|
15704
|
+
return _objectSpread$E(_objectSpread$E({}, f), {}, {
|
|
15713
15705
|
key: newKey
|
|
15714
15706
|
});
|
|
15715
15707
|
});
|
|
@@ -15721,14 +15713,14 @@ var ProviderForm = function ProviderForm(_ref) {
|
|
|
15721
15713
|
});
|
|
15722
15714
|
if (field !== null && field !== void 0 && field.key) {
|
|
15723
15715
|
setFormData(function (prev) {
|
|
15724
|
-
return _objectSpread$
|
|
15716
|
+
return _objectSpread$E(_objectSpread$E({}, prev), {}, _defineProperty({}, field.key, value));
|
|
15725
15717
|
});
|
|
15726
15718
|
}
|
|
15727
15719
|
};
|
|
15728
15720
|
var handleDynamicSecretToggle = function handleDynamicSecretToggle(id) {
|
|
15729
15721
|
setDynamicFields(function (prev) {
|
|
15730
15722
|
return prev.map(function (f) {
|
|
15731
|
-
return f.id === id ? _objectSpread$
|
|
15723
|
+
return f.id === id ? _objectSpread$E(_objectSpread$E({}, f), {}, {
|
|
15732
15724
|
secret: !f.secret
|
|
15733
15725
|
}) : f;
|
|
15734
15726
|
});
|
|
@@ -15750,7 +15742,7 @@ var ProviderForm = function ProviderForm(_ref) {
|
|
|
15750
15742
|
});
|
|
15751
15743
|
if (field !== null && field !== void 0 && field.key) {
|
|
15752
15744
|
setFormData(function (prev) {
|
|
15753
|
-
var updated = _objectSpread$
|
|
15745
|
+
var updated = _objectSpread$E({}, prev);
|
|
15754
15746
|
delete updated[field.key];
|
|
15755
15747
|
return updated;
|
|
15756
15748
|
});
|
|
@@ -15792,13 +15784,13 @@ var ProviderForm = function ProviderForm(_ref) {
|
|
|
15792
15784
|
*/
|
|
15793
15785
|
var handleInputChange = function handleInputChange(fieldName, value) {
|
|
15794
15786
|
setFormData(function (prev) {
|
|
15795
|
-
return _objectSpread$
|
|
15787
|
+
return _objectSpread$E(_objectSpread$E({}, prev), {}, _defineProperty({}, fieldName, value));
|
|
15796
15788
|
});
|
|
15797
15789
|
|
|
15798
15790
|
// Clear error for this field if it was filled
|
|
15799
15791
|
if (errors[fieldName] && value !== null && value !== void 0 && value.trim()) {
|
|
15800
15792
|
setErrors(function (prev) {
|
|
15801
|
-
var newErrors = _objectSpread$
|
|
15793
|
+
var newErrors = _objectSpread$E({}, prev);
|
|
15802
15794
|
delete newErrors[fieldName];
|
|
15803
15795
|
return newErrors;
|
|
15804
15796
|
});
|
|
@@ -15836,7 +15828,7 @@ var ProviderForm = function ProviderForm(_ref) {
|
|
|
15836
15828
|
// Clear error if filled
|
|
15837
15829
|
if (errors.providerName && value !== null && value !== void 0 && value.trim()) {
|
|
15838
15830
|
setErrors(function (prev) {
|
|
15839
|
-
var newErrors = _objectSpread$
|
|
15831
|
+
var newErrors = _objectSpread$E({}, prev);
|
|
15840
15832
|
delete newErrors.providerName;
|
|
15841
15833
|
return newErrors;
|
|
15842
15834
|
});
|
|
@@ -15997,7 +15989,7 @@ var ProviderForm = function ProviderForm(_ref) {
|
|
|
15997
15989
|
});
|
|
15998
15990
|
};
|
|
15999
15991
|
|
|
16000
|
-
var ToolSelector = function ToolSelector(_ref) {
|
|
15992
|
+
var ToolSelector$1 = function ToolSelector(_ref) {
|
|
16001
15993
|
var _ref$tools = _ref.tools,
|
|
16002
15994
|
tools = _ref$tools === void 0 ? [] : _ref$tools,
|
|
16003
15995
|
_ref$selectedTools = _ref.selectedTools,
|
|
@@ -16073,8 +16065,8 @@ var ToolSelector = function ToolSelector(_ref) {
|
|
|
16073
16065
|
});
|
|
16074
16066
|
};
|
|
16075
16067
|
|
|
16076
|
-
function ownKeys$
|
|
16077
|
-
function _objectSpread$
|
|
16068
|
+
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; }
|
|
16069
|
+
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; }
|
|
16078
16070
|
/**
|
|
16079
16071
|
* Shared MCP utility functions.
|
|
16080
16072
|
*
|
|
@@ -16202,7 +16194,7 @@ function buildMcpConfigFromOverrides(baseMcpConfig, envMappingRows, headerRows)
|
|
|
16202
16194
|
headerTemplate[name] = value;
|
|
16203
16195
|
}
|
|
16204
16196
|
});
|
|
16205
|
-
var config = _objectSpread$
|
|
16197
|
+
var config = _objectSpread$D({}, baseMcpConfig);
|
|
16206
16198
|
if (Object.keys(headerTemplate).length > 0) {
|
|
16207
16199
|
config.headerTemplate = headerTemplate;
|
|
16208
16200
|
} else {
|
|
@@ -16220,7 +16212,7 @@ function buildMcpConfigFromOverrides(baseMcpConfig, envMappingRows, headerRows)
|
|
|
16220
16212
|
envMapping[env] = cred;
|
|
16221
16213
|
}
|
|
16222
16214
|
});
|
|
16223
|
-
return _objectSpread$
|
|
16215
|
+
return _objectSpread$D(_objectSpread$D({}, baseMcpConfig), {}, {
|
|
16224
16216
|
envMapping: envMapping
|
|
16225
16217
|
});
|
|
16226
16218
|
}
|
|
@@ -16461,11 +16453,11 @@ var getUserConfigurableProviders = function getUserConfigurableProviders(provide
|
|
|
16461
16453
|
});
|
|
16462
16454
|
};
|
|
16463
16455
|
|
|
16464
|
-
function _createForOfIteratorHelper$
|
|
16465
|
-
function _unsupportedIterableToArray$
|
|
16466
|
-
function _arrayLikeToArray$
|
|
16467
|
-
function ownKeys$
|
|
16468
|
-
function _objectSpread$
|
|
16456
|
+
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; } } }; }
|
|
16457
|
+
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; } }
|
|
16458
|
+
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; }
|
|
16459
|
+
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; }
|
|
16460
|
+
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; }
|
|
16469
16461
|
var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
16470
16462
|
var isOpen = _ref.isOpen,
|
|
16471
16463
|
onClose = _ref.onClose,
|
|
@@ -16660,7 +16652,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
16660
16652
|
.map(function (entry) {
|
|
16661
16653
|
var widget = allWidgets[entry.widgetKey];
|
|
16662
16654
|
if (!widget) return null; // Widget no longer exists
|
|
16663
|
-
return _objectSpread$
|
|
16655
|
+
return _objectSpread$C(_objectSpread$C({
|
|
16664
16656
|
key: entry.widgetKey
|
|
16665
16657
|
}, widget), {}, {
|
|
16666
16658
|
savedProviders: entry.providers || {},
|
|
@@ -16748,11 +16740,11 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
16748
16740
|
|
|
16749
16741
|
// Flatten all widgets from all packages for the widget list
|
|
16750
16742
|
flatWidgets = [];
|
|
16751
|
-
_iterator = _createForOfIteratorHelper$
|
|
16743
|
+
_iterator = _createForOfIteratorHelper$h(result.packages || []);
|
|
16752
16744
|
try {
|
|
16753
16745
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
16754
16746
|
pkg = _step.value;
|
|
16755
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
16747
|
+
_iterator2 = _createForOfIteratorHelper$h(pkg.widgets || []);
|
|
16756
16748
|
try {
|
|
16757
16749
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
16758
16750
|
widget = _step2.value;
|
|
@@ -16811,7 +16803,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
16811
16803
|
// Get widgets from ComponentManager
|
|
16812
16804
|
var allWidgets = ComponentManager.map();
|
|
16813
16805
|
var widgetList = Object.keys(allWidgets).map(function (key) {
|
|
16814
|
-
return _objectSpread$
|
|
16806
|
+
return _objectSpread$C({
|
|
16815
16807
|
key: key
|
|
16816
16808
|
}, allWidgets[key]);
|
|
16817
16809
|
}).filter(function (widget) {
|
|
@@ -17042,7 +17034,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
17042
17034
|
setInlineCreateType(null);
|
|
17043
17035
|
setInlineCreateSchema({});
|
|
17044
17036
|
setInlineCreateError(null);
|
|
17045
|
-
setSelectedProviders(_objectSpread$
|
|
17037
|
+
setSelectedProviders(_objectSpread$C(_objectSpread$C({}, selectedProviders), {}, _defineProperty({}, providerType, providerName)));
|
|
17046
17038
|
}
|
|
17047
17039
|
};
|
|
17048
17040
|
var handleInlineProviderSubmit = function handleInlineProviderSubmit(formData) {
|
|
@@ -17063,7 +17055,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
17063
17055
|
|
|
17064
17056
|
// Auto-select the newly created provider
|
|
17065
17057
|
setSelectedProviders(function (prev) {
|
|
17066
|
-
return _objectSpread$
|
|
17058
|
+
return _objectSpread$C(_objectSpread$C({}, prev), {}, _defineProperty({}, providerType, providerName));
|
|
17067
17059
|
});
|
|
17068
17060
|
|
|
17069
17061
|
// Collapse the inline form
|
|
@@ -17117,11 +17109,11 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
17117
17109
|
};
|
|
17118
17110
|
var inlineHandleCredentialChange = function inlineHandleCredentialChange(fieldName, value) {
|
|
17119
17111
|
setInlineCredentialData(function (prev) {
|
|
17120
|
-
return _objectSpread$
|
|
17112
|
+
return _objectSpread$C(_objectSpread$C({}, prev), {}, _defineProperty({}, fieldName, value));
|
|
17121
17113
|
});
|
|
17122
17114
|
if (inlineFormErrors[fieldName] && value !== null && value !== void 0 && value.trim()) {
|
|
17123
17115
|
setInlineFormErrors(function (prev) {
|
|
17124
|
-
var next = _objectSpread$
|
|
17116
|
+
var next = _objectSpread$C({}, prev);
|
|
17125
17117
|
delete next[fieldName];
|
|
17126
17118
|
return next;
|
|
17127
17119
|
});
|
|
@@ -17214,7 +17206,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
17214
17206
|
refreshProviders();
|
|
17215
17207
|
}
|
|
17216
17208
|
setSelectedProviders(function (prev) {
|
|
17217
|
-
return _objectSpread$
|
|
17209
|
+
return _objectSpread$C(_objectSpread$C({}, prev), {}, _defineProperty({}, providerType, providerName));
|
|
17218
17210
|
});
|
|
17219
17211
|
|
|
17220
17212
|
// Reset stepper state
|
|
@@ -17235,7 +17227,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
17235
17227
|
});
|
|
17236
17228
|
};
|
|
17237
17229
|
var handleConfigChange = function handleConfigChange(key, value) {
|
|
17238
|
-
setUserConfigValues(_objectSpread$
|
|
17230
|
+
setUserConfigValues(_objectSpread$C(_objectSpread$C({}, userConfigValues), {}, _defineProperty({}, key, value)));
|
|
17239
17231
|
};
|
|
17240
17232
|
|
|
17241
17233
|
// Install a package from the registry
|
|
@@ -17301,7 +17293,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
17301
17293
|
// Mark items as installed
|
|
17302
17294
|
setProgressWidgets(function (prev) {
|
|
17303
17295
|
return prev.map(function (w) {
|
|
17304
|
-
return _objectSpread$
|
|
17296
|
+
return _objectSpread$C(_objectSpread$C({}, w), {}, {
|
|
17305
17297
|
status: "installed"
|
|
17306
17298
|
});
|
|
17307
17299
|
});
|
|
@@ -17320,7 +17312,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
17320
17312
|
setInstallError(msg);
|
|
17321
17313
|
setProgressWidgets(function (prev) {
|
|
17322
17314
|
return prev.map(function (w) {
|
|
17323
|
-
return _objectSpread$
|
|
17315
|
+
return _objectSpread$C(_objectSpread$C({}, w), {}, {
|
|
17324
17316
|
status: "failed",
|
|
17325
17317
|
error: msg
|
|
17326
17318
|
});
|
|
@@ -17394,7 +17386,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
17394
17386
|
|
|
17395
17387
|
// Phase 3: Save to recent widgets
|
|
17396
17388
|
saveToRecent(selectedWidget, selectedProviders, userConfigValues);
|
|
17397
|
-
onSelectWidget(_objectSpread$
|
|
17389
|
+
onSelectWidget(_objectSpread$C(_objectSpread$C({}, selectedWidget), {}, {
|
|
17398
17390
|
selectedProviders: selectedProviders,
|
|
17399
17391
|
// Pass to parent
|
|
17400
17392
|
userConfigValues: userConfigValues // Pass to parent
|
|
@@ -18031,7 +18023,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
18031
18023
|
setInlineProviderName(value);
|
|
18032
18024
|
if (inlineFormErrors.providerName && value !== null && value !== void 0 && value.trim()) {
|
|
18033
18025
|
setInlineFormErrors(function (prev) {
|
|
18034
|
-
var next = _objectSpread$
|
|
18026
|
+
var next = _objectSpread$C({}, prev);
|
|
18035
18027
|
delete next.providerName;
|
|
18036
18028
|
return next;
|
|
18037
18029
|
});
|
|
@@ -18143,7 +18135,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
18143
18135
|
className: "mr-1"
|
|
18144
18136
|
}), inlineTestResult.message]
|
|
18145
18137
|
})]
|
|
18146
|
-
}), (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__*/jsxRuntime.jsx(ToolSelector, {
|
|
18138
|
+
}), (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__*/jsxRuntime.jsx(ToolSelector$1, {
|
|
18147
18139
|
tools: inlineTestResult.tools,
|
|
18148
18140
|
selectedTools: inlineSelectedTools,
|
|
18149
18141
|
onSelectionChange: setInlineSelectedTools
|
|
@@ -18390,9 +18382,9 @@ var ProviderBadge = function ProviderBadge(_ref) {
|
|
|
18390
18382
|
});
|
|
18391
18383
|
};
|
|
18392
18384
|
|
|
18393
|
-
function _createForOfIteratorHelper$
|
|
18394
|
-
function _unsupportedIterableToArray$
|
|
18395
|
-
function _arrayLikeToArray$
|
|
18385
|
+
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; } } }; }
|
|
18386
|
+
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; } }
|
|
18387
|
+
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; }
|
|
18396
18388
|
var WidgetCardHeader = function WidgetCardHeader(_ref) {
|
|
18397
18389
|
var item = _ref.item,
|
|
18398
18390
|
widget = _ref.widget,
|
|
@@ -18436,7 +18428,7 @@ var WidgetCardHeader = function WidgetCardHeader(_ref) {
|
|
|
18436
18428
|
var el = headerRef.current;
|
|
18437
18429
|
if (!el) return;
|
|
18438
18430
|
var observer = new ResizeObserver(function (entries) {
|
|
18439
|
-
var _iterator = _createForOfIteratorHelper$
|
|
18431
|
+
var _iterator = _createForOfIteratorHelper$g(entries),
|
|
18440
18432
|
_step;
|
|
18441
18433
|
try {
|
|
18442
18434
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -18801,9 +18793,9 @@ var useWidgetSchedulerStatus = function useWidgetSchedulerStatus(widgetId) {
|
|
|
18801
18793
|
};
|
|
18802
18794
|
};
|
|
18803
18795
|
|
|
18804
|
-
function _createForOfIteratorHelper$
|
|
18805
|
-
function _unsupportedIterableToArray$
|
|
18806
|
-
function _arrayLikeToArray$
|
|
18796
|
+
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; } } }; }
|
|
18797
|
+
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; } }
|
|
18798
|
+
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; }
|
|
18807
18799
|
function formatCountdown(ms) {
|
|
18808
18800
|
if (ms == null || ms < 0) return "--";
|
|
18809
18801
|
if (ms < 1000) return "< 1s";
|
|
@@ -18920,7 +18912,7 @@ var WidgetCardStatusBar = function WidgetCardStatusBar(_ref) {
|
|
|
18920
18912
|
|
|
18921
18913
|
// Find soonest countdown among enabled tasks
|
|
18922
18914
|
var soonestMs = null;
|
|
18923
|
-
var _iterator = _createForOfIteratorHelper$
|
|
18915
|
+
var _iterator = _createForOfIteratorHelper$f(enabledTasks),
|
|
18924
18916
|
_step;
|
|
18925
18917
|
try {
|
|
18926
18918
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -19371,8 +19363,8 @@ var ProviderSelector = function ProviderSelector(_ref) {
|
|
|
19371
19363
|
});
|
|
19372
19364
|
};
|
|
19373
19365
|
|
|
19374
|
-
function ownKeys$
|
|
19375
|
-
function _objectSpread$
|
|
19366
|
+
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; }
|
|
19367
|
+
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; }
|
|
19376
19368
|
var AdvancedMcpConfig = function AdvancedMcpConfig(_ref) {
|
|
19377
19369
|
var transport = _ref.transport,
|
|
19378
19370
|
envMappingRows = _ref.envMappingRows,
|
|
@@ -19401,7 +19393,7 @@ var AdvancedMcpConfig = function AdvancedMcpConfig(_ref) {
|
|
|
19401
19393
|
var updateEnvRow = function updateEnvRow(id, field, value) {
|
|
19402
19394
|
onEnvMappingRowsChange(function (prev) {
|
|
19403
19395
|
return prev.map(function (row) {
|
|
19404
|
-
return row.id === id ? _objectSpread$
|
|
19396
|
+
return row.id === id ? _objectSpread$B(_objectSpread$B({}, row), {}, _defineProperty({}, field, value)) : row;
|
|
19405
19397
|
});
|
|
19406
19398
|
});
|
|
19407
19399
|
};
|
|
@@ -19426,7 +19418,7 @@ var AdvancedMcpConfig = function AdvancedMcpConfig(_ref) {
|
|
|
19426
19418
|
var updateHeaderRow = function updateHeaderRow(id, field, value) {
|
|
19427
19419
|
onHeaderRowsChange(function (prev) {
|
|
19428
19420
|
return prev.map(function (row) {
|
|
19429
|
-
return row.id === id ? _objectSpread$
|
|
19421
|
+
return row.id === id ? _objectSpread$B(_objectSpread$B({}, row), {}, _defineProperty({}, field, value)) : row;
|
|
19430
19422
|
});
|
|
19431
19423
|
});
|
|
19432
19424
|
};
|
|
@@ -19575,8 +19567,8 @@ var AdvancedMcpConfig = function AdvancedMcpConfig(_ref) {
|
|
|
19575
19567
|
});
|
|
19576
19568
|
};
|
|
19577
19569
|
|
|
19578
|
-
function ownKeys$
|
|
19579
|
-
function _objectSpread$
|
|
19570
|
+
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; }
|
|
19571
|
+
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; }
|
|
19580
19572
|
var McpServerPicker = function McpServerPicker(_ref) {
|
|
19581
19573
|
var _testResult$tools;
|
|
19582
19574
|
var isOpen = _ref.isOpen,
|
|
@@ -19755,11 +19747,11 @@ var McpServerPicker = function McpServerPicker(_ref) {
|
|
|
19755
19747
|
// Handle credential field changes
|
|
19756
19748
|
var handleCredentialChange = function handleCredentialChange(fieldName, value) {
|
|
19757
19749
|
setCredentialData(function (prev) {
|
|
19758
|
-
return _objectSpread$
|
|
19750
|
+
return _objectSpread$A(_objectSpread$A({}, prev), {}, _defineProperty({}, fieldName, value));
|
|
19759
19751
|
});
|
|
19760
19752
|
if (formErrors[fieldName] && value !== null && value !== void 0 && value.trim()) {
|
|
19761
19753
|
setFormErrors(function (prev) {
|
|
19762
|
-
var next = _objectSpread$
|
|
19754
|
+
var next = _objectSpread$A({}, prev);
|
|
19763
19755
|
delete next[fieldName];
|
|
19764
19756
|
return next;
|
|
19765
19757
|
});
|
|
@@ -20097,7 +20089,7 @@ var McpServerPicker = function McpServerPicker(_ref) {
|
|
|
20097
20089
|
setProviderName(value);
|
|
20098
20090
|
if (formErrors.providerName && value !== null && value !== void 0 && value.trim()) {
|
|
20099
20091
|
setFormErrors(function (prev) {
|
|
20100
|
-
var next = _objectSpread$
|
|
20092
|
+
var next = _objectSpread$A({}, prev);
|
|
20101
20093
|
delete next.providerName;
|
|
20102
20094
|
return next;
|
|
20103
20095
|
});
|
|
@@ -20226,7 +20218,7 @@ var McpServerPicker = function McpServerPicker(_ref) {
|
|
|
20226
20218
|
className: "mr-1"
|
|
20227
20219
|
}), testResult.message]
|
|
20228
20220
|
})]
|
|
20229
|
-
}), (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__*/jsxRuntime.jsx(ToolSelector, {
|
|
20221
|
+
}), (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__*/jsxRuntime.jsx(ToolSelector$1, {
|
|
20230
20222
|
tools: testResult.tools,
|
|
20231
20223
|
selectedTools: selectedTools,
|
|
20232
20224
|
onSelectionChange: setSelectedTools
|
|
@@ -20287,8 +20279,8 @@ var McpServerPicker = function McpServerPicker(_ref) {
|
|
|
20287
20279
|
});
|
|
20288
20280
|
};
|
|
20289
20281
|
|
|
20290
|
-
function ownKeys$
|
|
20291
|
-
function _objectSpread$
|
|
20282
|
+
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; }
|
|
20283
|
+
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; }
|
|
20292
20284
|
var USE_ENHANCED_WIDGET_SELECTOR = true; // Set to false to use original modal
|
|
20293
20285
|
|
|
20294
20286
|
/**
|
|
@@ -20334,7 +20326,7 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
20334
20326
|
var _ref3 = _slicedToArray(_ref2, 2),
|
|
20335
20327
|
id = _ref3[0],
|
|
20336
20328
|
p = _ref3[1];
|
|
20337
|
-
return _objectSpread$
|
|
20329
|
+
return _objectSpread$z(_objectSpread$z({}, p), {}, {
|
|
20338
20330
|
id: id,
|
|
20339
20331
|
name: p.name || id
|
|
20340
20332
|
});
|
|
@@ -20421,7 +20413,7 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
20421
20413
|
// so we use its layout to replace any corrupted grid data.
|
|
20422
20414
|
if (workspace && workspace["layout"]) {
|
|
20423
20415
|
var model = new DashboardModel(workspace);
|
|
20424
|
-
setCurrentWorkspace(_objectSpread$
|
|
20416
|
+
setCurrentWorkspace(_objectSpread$z(_objectSpread$z({}, workspace), {}, {
|
|
20425
20417
|
layout: model.layout
|
|
20426
20418
|
}));
|
|
20427
20419
|
} else {
|
|
@@ -20812,7 +20804,7 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
20812
20804
|
var uuid = widget.uuid || widget.uuidString;
|
|
20813
20805
|
if (uuid) {
|
|
20814
20806
|
newWorkspace.selectedProviders = newWorkspace.selectedProviders || {};
|
|
20815
|
-
newWorkspace.selectedProviders[uuid] = _objectSpread$
|
|
20807
|
+
newWorkspace.selectedProviders[uuid] = _objectSpread$z(_objectSpread$z({}, newWorkspace.selectedProviders[uuid] || {}), {}, _defineProperty({}, providerType, providerId));
|
|
20816
20808
|
}
|
|
20817
20809
|
setCurrentWorkspace(newWorkspace);
|
|
20818
20810
|
}
|
|
@@ -20948,7 +20940,7 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
20948
20940
|
var _gridContainer$grid;
|
|
20949
20941
|
var config = ComponentManager.config(widgetKey);
|
|
20950
20942
|
if (!config) return;
|
|
20951
|
-
var widgetItem = _objectSpread$
|
|
20943
|
+
var widgetItem = _objectSpread$z(_objectSpread$z({}, config), {}, {
|
|
20952
20944
|
component: widgetKey,
|
|
20953
20945
|
key: widgetKey
|
|
20954
20946
|
});
|
|
@@ -21202,7 +21194,7 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
21202
21194
|
onSelectWidget: function onSelectWidget(widget) {
|
|
21203
21195
|
|
|
21204
21196
|
// Add component property from widget.key
|
|
21205
|
-
var widgetWithComponent = _objectSpread$
|
|
21197
|
+
var widgetWithComponent = _objectSpread$z(_objectSpread$z({}, widget), {}, {
|
|
21206
21198
|
component: widget.key
|
|
21207
21199
|
});
|
|
21208
21200
|
handleClickConfirmAdd(widgetWithComponent, dropdownTarget);
|
|
@@ -22831,8 +22823,8 @@ var MissingProviderPrompt = function MissingProviderPrompt(_ref) {
|
|
|
22831
22823
|
});
|
|
22832
22824
|
};
|
|
22833
22825
|
|
|
22834
|
-
function ownKeys$
|
|
22835
|
-
function _objectSpread$
|
|
22826
|
+
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; }
|
|
22827
|
+
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; }
|
|
22836
22828
|
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)); }
|
|
22837
22829
|
function _isNativeReflectConstruct$4() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$4 = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
22838
22830
|
var ProviderErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
@@ -22887,7 +22879,7 @@ var ProviderErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
|
22887
22879
|
_defineProperty(_this, "handleProviderSelect", function (providerType, providerName, credentials) {
|
|
22888
22880
|
|
|
22889
22881
|
// Update local selected providers state
|
|
22890
|
-
var updatedSelected = _objectSpread$
|
|
22882
|
+
var updatedSelected = _objectSpread$y(_objectSpread$y({}, _this.state.selectedProviders), {}, _defineProperty({}, providerType, providerName));
|
|
22891
22883
|
_this.setState({
|
|
22892
22884
|
selectedProviders: updatedSelected
|
|
22893
22885
|
}, function () {
|
|
@@ -22961,8 +22953,8 @@ var ProviderErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
|
22961
22953
|
}(React.Component);
|
|
22962
22954
|
_defineProperty(ProviderErrorBoundary, "contextType", ProviderContext);
|
|
22963
22955
|
|
|
22964
|
-
function ownKeys$
|
|
22965
|
-
function _objectSpread$
|
|
22956
|
+
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; }
|
|
22957
|
+
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; }
|
|
22966
22958
|
var withProviderDetection = function withProviderDetection(Component) {
|
|
22967
22959
|
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
22968
22960
|
_ref$requiredProvider = _ref.requiredProviders,
|
|
@@ -22987,7 +22979,7 @@ var withProviderDetection = function withProviderDetection(Component) {
|
|
|
22987
22979
|
onProviderSelect: onProviderSelect
|
|
22988
22980
|
});
|
|
22989
22981
|
}
|
|
22990
|
-
return /*#__PURE__*/jsxRuntime.jsx(Component, _objectSpread$
|
|
22982
|
+
return /*#__PURE__*/jsxRuntime.jsx(Component, _objectSpread$x({}, props));
|
|
22991
22983
|
};
|
|
22992
22984
|
};
|
|
22993
22985
|
|
|
@@ -23663,8 +23655,8 @@ var WidgetNotFound = function WidgetNotFound(_ref) {
|
|
|
23663
23655
|
});
|
|
23664
23656
|
};
|
|
23665
23657
|
|
|
23666
|
-
function ownKeys$
|
|
23667
|
-
function _objectSpread$
|
|
23658
|
+
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; }
|
|
23659
|
+
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; }
|
|
23668
23660
|
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)); }
|
|
23669
23661
|
function _isNativeReflectConstruct$2() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$2 = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
23670
23662
|
var WidgetErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
@@ -23795,7 +23787,7 @@ var WidgetRenderer = function WidgetRenderer(_ref) {
|
|
|
23795
23787
|
|
|
23796
23788
|
// Build widgetData for WidgetContext — hooks read from this
|
|
23797
23789
|
var uuidString = DashReact.getUUID(params.uuid);
|
|
23798
|
-
var widgetData = _objectSpread$
|
|
23790
|
+
var widgetData = _objectSpread$w(_objectSpread$w({}, params), {}, {
|
|
23799
23791
|
uuidString: uuidString,
|
|
23800
23792
|
providers: (config === null || config === void 0 ? void 0 : config.providers) || [],
|
|
23801
23793
|
notifications: (config === null || config === void 0 ? void 0 : config.notifications) || []
|
|
@@ -23819,7 +23811,7 @@ var WidgetRenderer = function WidgetRenderer(_ref) {
|
|
|
23819
23811
|
widgetData: widgetData
|
|
23820
23812
|
};
|
|
23821
23813
|
var hasScheduledTasks = ((config === null || config === void 0 ? void 0 : config.scheduledTasks) || []).length > 0;
|
|
23822
|
-
var widgetElement = children === null ? /*#__PURE__*/jsxRuntime.jsx(WidgetComponent, _objectSpread$
|
|
23814
|
+
var widgetElement = children === null ? /*#__PURE__*/jsxRuntime.jsx(WidgetComponent, _objectSpread$w(_objectSpread$w(_objectSpread$w({
|
|
23823
23815
|
id: "widget-nokids-".concat(widgetKey),
|
|
23824
23816
|
listen: function listen(listeners, handlers) {
|
|
23825
23817
|
return helpers.listen(listeners, handlers);
|
|
@@ -23832,7 +23824,7 @@ var WidgetRenderer = function WidgetRenderer(_ref) {
|
|
|
23832
23824
|
backgroundColor: bgColor,
|
|
23833
23825
|
widgetConfig: helpers.config(),
|
|
23834
23826
|
widgetEventNames: helpers.events()
|
|
23835
|
-
}), "widget-nokids-".concat(widgetKey)) : /*#__PURE__*/jsxRuntime.jsx(WidgetComponent, _objectSpread$
|
|
23827
|
+
}), "widget-nokids-".concat(widgetKey)) : /*#__PURE__*/jsxRuntime.jsx(WidgetComponent, _objectSpread$w(_objectSpread$w(_objectSpread$w({
|
|
23836
23828
|
listen: function listen(listeners, handlers) {
|
|
23837
23829
|
return helpers.listen(listeners, handlers);
|
|
23838
23830
|
},
|
|
@@ -24031,11 +24023,11 @@ var ExternalWidget = function ExternalWidget(_ref) {
|
|
|
24031
24023
|
var GRID_CELL_WIDGET_TYPE = "grid-cell-widget";
|
|
24032
24024
|
var SIDEBAR_WIDGET_TYPE = "sidebar-widget";
|
|
24033
24025
|
|
|
24034
|
-
function _createForOfIteratorHelper$
|
|
24035
|
-
function _unsupportedIterableToArray$
|
|
24036
|
-
function _arrayLikeToArray$
|
|
24037
|
-
function ownKeys$
|
|
24038
|
-
function _objectSpread$
|
|
24026
|
+
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; } } }; }
|
|
24027
|
+
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; } }
|
|
24028
|
+
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; }
|
|
24029
|
+
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; }
|
|
24030
|
+
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; }
|
|
24039
24031
|
var DraggableDroppableCellBody = function DraggableDroppableCellBody(_ref) {
|
|
24040
24032
|
var cellNumber = _ref.cellNumber,
|
|
24041
24033
|
gridContainerId = _ref.gridContainerId,
|
|
@@ -24233,7 +24225,7 @@ var LayoutGridContainer = /*#__PURE__*/React.memo(function (_ref3) {
|
|
|
24233
24225
|
var _ref5 = _slicedToArray(_ref4, 2),
|
|
24234
24226
|
id = _ref5[0],
|
|
24235
24227
|
provider = _ref5[1];
|
|
24236
|
-
return _objectSpread$
|
|
24228
|
+
return _objectSpread$v({
|
|
24237
24229
|
id: id
|
|
24238
24230
|
}, provider);
|
|
24239
24231
|
}) : [];
|
|
@@ -24608,7 +24600,7 @@ var LayoutGridContainer = /*#__PURE__*/React.memo(function (_ref3) {
|
|
|
24608
24600
|
return selectable["delete"](cn);
|
|
24609
24601
|
});
|
|
24610
24602
|
var resolved = new Set();
|
|
24611
|
-
var _iterator = _createForOfIteratorHelper$
|
|
24603
|
+
var _iterator = _createForOfIteratorHelper$e(selectable),
|
|
24612
24604
|
_step;
|
|
24613
24605
|
try {
|
|
24614
24606
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -25239,7 +25231,7 @@ var LayoutGridContainer = /*#__PURE__*/React.memo(function (_ref3) {
|
|
|
25239
25231
|
var widgetSpecificSelections = (workspace === null || workspace === void 0 || (_workspace$selectedPr = workspace.selectedProviders) === null || _workspace$selectedPr === void 0 ? void 0 : _workspace$selectedPr[id]) || {};
|
|
25240
25232
|
|
|
25241
25233
|
// Add provider-related props from workspace
|
|
25242
|
-
var itemWithProviders = _objectSpread$
|
|
25234
|
+
var itemWithProviders = _objectSpread$v(_objectSpread$v({}, item), {}, {
|
|
25243
25235
|
selectedProviders: widgetSpecificSelections,
|
|
25244
25236
|
onProviderSelect: onProviderSelect
|
|
25245
25237
|
});
|
|
@@ -26744,11 +26736,11 @@ function isWidgetResolvable(componentKey) {
|
|
|
26744
26736
|
// isMinOrderForItem
|
|
26745
26737
|
// }
|
|
26746
26738
|
|
|
26747
|
-
function ownKeys$
|
|
26748
|
-
function _objectSpread$
|
|
26749
|
-
function _createForOfIteratorHelper$
|
|
26750
|
-
function _unsupportedIterableToArray$
|
|
26751
|
-
function _arrayLikeToArray$
|
|
26739
|
+
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; }
|
|
26740
|
+
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; }
|
|
26741
|
+
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; } } }; }
|
|
26742
|
+
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; } }
|
|
26743
|
+
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; }
|
|
26752
26744
|
/**
|
|
26753
26745
|
* The model for all layout components used primarily in the renderLayout method
|
|
26754
26746
|
* @param {Object} layoutItem an object containing various attributes of the layout item
|
|
@@ -26760,7 +26752,7 @@ function _arrayLikeToArray$b(r, a) { (null == a || a > r.length) && (a = r.lengt
|
|
|
26760
26752
|
function sortObjectByKeys(obj) {
|
|
26761
26753
|
var sortedKeys = Object.keys(obj).sort();
|
|
26762
26754
|
var sortedObj = {};
|
|
26763
|
-
var _iterator = _createForOfIteratorHelper$
|
|
26755
|
+
var _iterator = _createForOfIteratorHelper$d(sortedKeys),
|
|
26764
26756
|
_step;
|
|
26765
26757
|
try {
|
|
26766
26758
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -26901,7 +26893,7 @@ var LayoutModel = function LayoutModel(layoutItem, workspaceLayout, dashboardId)
|
|
|
26901
26893
|
|
|
26902
26894
|
// Merge user-entered config values (from EnhancedWidgetDropdown) into userPrefs
|
|
26903
26895
|
if ("userConfigValues" in obj && obj.userConfigValues) {
|
|
26904
|
-
layout.userPrefs = _objectSpread$
|
|
26896
|
+
layout.userPrefs = _objectSpread$u(_objectSpread$u({}, layout.userPrefs), obj.userConfigValues);
|
|
26905
26897
|
}
|
|
26906
26898
|
|
|
26907
26899
|
// Preserve provider selections for this widget
|
|
@@ -27434,11 +27426,11 @@ var MenuItemModel = function MenuItemModel() {
|
|
|
27434
27426
|
return m;
|
|
27435
27427
|
};
|
|
27436
27428
|
|
|
27437
|
-
function ownKeys$
|
|
27438
|
-
function _objectSpread$
|
|
27439
|
-
function _createForOfIteratorHelper$
|
|
27440
|
-
function _unsupportedIterableToArray$
|
|
27441
|
-
function _arrayLikeToArray$
|
|
27429
|
+
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; }
|
|
27430
|
+
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; }
|
|
27431
|
+
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; } } }; }
|
|
27432
|
+
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; } }
|
|
27433
|
+
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; }
|
|
27442
27434
|
/**
|
|
27443
27435
|
* A Model for a Workspace (Dashboard)
|
|
27444
27436
|
* The Dashboard in this instance is the entire Layout inclusive of the workspaces and widgets
|
|
@@ -27495,7 +27487,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
27495
27487
|
|
|
27496
27488
|
// Also normalize grids within pages
|
|
27497
27489
|
if (this.pages.length > 0) {
|
|
27498
|
-
var _iterator = _createForOfIteratorHelper$
|
|
27490
|
+
var _iterator = _createForOfIteratorHelper$c(this.pages),
|
|
27499
27491
|
_step;
|
|
27500
27492
|
try {
|
|
27501
27493
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -28755,7 +28747,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
28755
28747
|
visibleCells.push({
|
|
28756
28748
|
row: r,
|
|
28757
28749
|
col: c,
|
|
28758
|
-
data: _objectSpread$
|
|
28750
|
+
data: _objectSpread$t({}, cell),
|
|
28759
28751
|
spanCol: ((_cell$span = cell.span) === null || _cell$span === void 0 ? void 0 : _cell$span.col) || 1,
|
|
28760
28752
|
spanRow: ((_cell$span2 = cell.span) === null || _cell$span2 === void 0 ? void 0 : _cell$span2.row) || 1
|
|
28761
28753
|
});
|
|
@@ -28777,7 +28769,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
28777
28769
|
var vc = _visibleCells[_i5];
|
|
28778
28770
|
var newCol = (vc.col - 1) * count + 1;
|
|
28779
28771
|
var _key7 = "".concat(vc.row, ".").concat(newCol);
|
|
28780
|
-
grid[_key7] = _objectSpread$
|
|
28772
|
+
grid[_key7] = _objectSpread$t(_objectSpread$t({}, vc.data), {}, {
|
|
28781
28773
|
hide: false,
|
|
28782
28774
|
span: {
|
|
28783
28775
|
row: vc.spanRow,
|
|
@@ -28852,7 +28844,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
28852
28844
|
_visibleCells2.push({
|
|
28853
28845
|
row: _r1,
|
|
28854
28846
|
col: _c10,
|
|
28855
|
-
data: _objectSpread$
|
|
28847
|
+
data: _objectSpread$t({}, _cell6),
|
|
28856
28848
|
spanRow: ((_cell6$span = _cell6.span) === null || _cell6$span === void 0 ? void 0 : _cell6$span.row) || 1,
|
|
28857
28849
|
spanCol: ((_cell6$span2 = _cell6.span) === null || _cell6$span2 === void 0 ? void 0 : _cell6$span2.col) || 1
|
|
28858
28850
|
});
|
|
@@ -28874,7 +28866,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
28874
28866
|
var _vc = _visibleCells3[_i9];
|
|
28875
28867
|
var newRow = (_vc.row - 1) * count + 1;
|
|
28876
28868
|
var _key10 = "".concat(newRow, ".").concat(_vc.col);
|
|
28877
|
-
grid[_key10] = _objectSpread$
|
|
28869
|
+
grid[_key10] = _objectSpread$t(_objectSpread$t({}, _vc.data), {}, {
|
|
28878
28870
|
hide: false,
|
|
28879
28871
|
span: {
|
|
28880
28872
|
row: _vc.spanRow * count,
|
|
@@ -29471,7 +29463,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
29471
29463
|
try {
|
|
29472
29464
|
// Collect all item IDs actively referenced by grid cells
|
|
29473
29465
|
var activeItemIds = new Set();
|
|
29474
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
29466
|
+
var _iterator2 = _createForOfIteratorHelper$c(this.layout),
|
|
29475
29467
|
_step2;
|
|
29476
29468
|
try {
|
|
29477
29469
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -29511,7 +29503,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
29511
29503
|
});
|
|
29512
29504
|
|
|
29513
29505
|
// Clean listener references on remaining items for each removed orphan
|
|
29514
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
29506
|
+
var _iterator3 = _createForOfIteratorHelper$c(orphanedIds),
|
|
29515
29507
|
_step3;
|
|
29516
29508
|
try {
|
|
29517
29509
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -30104,8 +30096,8 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
|
30104
30096
|
}]);
|
|
30105
30097
|
}(React.Component);
|
|
30106
30098
|
|
|
30107
|
-
function ownKeys$
|
|
30108
|
-
function _objectSpread$
|
|
30099
|
+
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; }
|
|
30100
|
+
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; }
|
|
30109
30101
|
|
|
30110
30102
|
/**
|
|
30111
30103
|
* useDashboard Hook
|
|
@@ -30161,7 +30153,7 @@ var useDashboard = function useDashboard() {
|
|
|
30161
30153
|
}
|
|
30162
30154
|
});
|
|
30163
30155
|
}
|
|
30164
|
-
return _objectSpread$
|
|
30156
|
+
return _objectSpread$s({
|
|
30165
30157
|
app: app,
|
|
30166
30158
|
dashboard: dashboard,
|
|
30167
30159
|
theme: theme
|
|
@@ -30170,9 +30162,9 @@ var useDashboard = function useDashboard() {
|
|
|
30170
30162
|
});
|
|
30171
30163
|
};
|
|
30172
30164
|
|
|
30173
|
-
function _createForOfIteratorHelper$
|
|
30174
|
-
function _unsupportedIterableToArray$
|
|
30175
|
-
function _arrayLikeToArray$
|
|
30165
|
+
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; } } }; }
|
|
30166
|
+
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; } }
|
|
30167
|
+
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; }
|
|
30176
30168
|
|
|
30177
30169
|
/**
|
|
30178
30170
|
* useWidgetProviders Hook
|
|
@@ -30223,7 +30215,7 @@ var useWidgetProviders = function useWidgetProviders() {
|
|
|
30223
30215
|
// 1. Widget-level: stored directly on the layout item by handleSelectProvider
|
|
30224
30216
|
// 2. Workspace-level: stored as workspace.selectedProviders[widgetId][providerType]
|
|
30225
30217
|
var providers = {};
|
|
30226
|
-
var _iterator = _createForOfIteratorHelper$
|
|
30218
|
+
var _iterator = _createForOfIteratorHelper$b(providerDeclarations),
|
|
30227
30219
|
_step;
|
|
30228
30220
|
try {
|
|
30229
30221
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -30958,9 +30950,9 @@ var useNotifications = function useNotifications() {
|
|
|
30958
30950
|
};
|
|
30959
30951
|
};
|
|
30960
30952
|
|
|
30961
|
-
function _createForOfIteratorHelper$
|
|
30962
|
-
function _unsupportedIterableToArray$
|
|
30963
|
-
function _arrayLikeToArray$
|
|
30953
|
+
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; } } }; }
|
|
30954
|
+
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; } }
|
|
30955
|
+
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; }
|
|
30964
30956
|
|
|
30965
30957
|
/**
|
|
30966
30958
|
* useScheduler Hook
|
|
@@ -31033,7 +31025,7 @@ var useScheduler = function useScheduler() {
|
|
|
31033
31025
|
if (pending && pending.length > 0) {
|
|
31034
31026
|
setPendingResults(pending);
|
|
31035
31027
|
// Call handlers for each pending result
|
|
31036
|
-
var _iterator = _createForOfIteratorHelper$
|
|
31028
|
+
var _iterator = _createForOfIteratorHelper$a(pending),
|
|
31037
31029
|
_step;
|
|
31038
31030
|
try {
|
|
31039
31031
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -31874,8 +31866,8 @@ function useMcpDashServer() {
|
|
|
31874
31866
|
};
|
|
31875
31867
|
}
|
|
31876
31868
|
|
|
31877
|
-
function ownKeys$
|
|
31878
|
-
function _objectSpread$
|
|
31869
|
+
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; }
|
|
31870
|
+
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; }
|
|
31879
31871
|
var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
31880
31872
|
var theme = _ref.theme,
|
|
31881
31873
|
themeVariant = _ref.themeVariant,
|
|
@@ -31924,13 +31916,13 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
31924
31916
|
className: "flex flex-col space-y-4 p-4",
|
|
31925
31917
|
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
31926
31918
|
className: "flex flex-row bg-gray-900 p-4 space-x-4 rounded justify-between",
|
|
31927
|
-
children: [/*#__PURE__*/jsxRuntime.jsxs(DashReact.Panel, _objectSpread$
|
|
31919
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs(DashReact.Panel, _objectSpread$r(_objectSpread$r({}, styles), {}, {
|
|
31928
31920
|
scrollable: false,
|
|
31929
31921
|
className: "rounded",
|
|
31930
31922
|
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Panel.Header, {
|
|
31931
31923
|
className: "text-xs uppercase font-bold",
|
|
31932
31924
|
children: "Panel"
|
|
31933
|
-
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Panel.Body, _objectSpread$
|
|
31925
|
+
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Panel.Body, _objectSpread$r(_objectSpread$r({}, styles), {}, {
|
|
31934
31926
|
onClick: function onClick() {
|
|
31935
31927
|
handleClickItem(DashReact.themeObjects.PANEL, styles);
|
|
31936
31928
|
}
|
|
@@ -31938,14 +31930,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
31938
31930
|
className: "text-xs uppercase font-light",
|
|
31939
31931
|
children: DashReact.getCSSStyleForClassname("backgroundColor", DashReact.themeObjects.PANEL)
|
|
31940
31932
|
})]
|
|
31941
|
-
})), /*#__PURE__*/jsxRuntime.jsxs(DashReact.Panel2, _objectSpread$
|
|
31933
|
+
})), /*#__PURE__*/jsxRuntime.jsxs(DashReact.Panel2, _objectSpread$r(_objectSpread$r({
|
|
31942
31934
|
className: "rounded"
|
|
31943
31935
|
}, styles2), {}, {
|
|
31944
31936
|
scrollable: false,
|
|
31945
31937
|
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Panel2.Header, {
|
|
31946
31938
|
className: "text-xs uppercase font-bold",
|
|
31947
31939
|
children: "Panel 2"
|
|
31948
|
-
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Panel2.Body, _objectSpread$
|
|
31940
|
+
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Panel2.Body, _objectSpread$r(_objectSpread$r({}, styles2), {}, {
|
|
31949
31941
|
onClick: function onClick() {
|
|
31950
31942
|
handleClickItem(DashReact.themeObjects.PANEL_2, styles2);
|
|
31951
31943
|
}
|
|
@@ -31953,14 +31945,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
31953
31945
|
className: "text-xs uppercase font-light",
|
|
31954
31946
|
children: DashReact.getCSSStyleForClassname("backgroundColor", DashReact.themeObjects.PANEL_2)
|
|
31955
31947
|
})]
|
|
31956
|
-
})), /*#__PURE__*/jsxRuntime.jsxs(DashReact.Panel3, _objectSpread$
|
|
31948
|
+
})), /*#__PURE__*/jsxRuntime.jsxs(DashReact.Panel3, _objectSpread$r(_objectSpread$r({
|
|
31957
31949
|
className: "rounded"
|
|
31958
31950
|
}, styles3), {}, {
|
|
31959
31951
|
scrollable: false,
|
|
31960
31952
|
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Panel3.Header, {
|
|
31961
31953
|
className: "text-xs uppercase font-bold",
|
|
31962
31954
|
children: "Panel 3"
|
|
31963
|
-
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Panel3.Body, _objectSpread$
|
|
31955
|
+
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Panel3.Body, _objectSpread$r(_objectSpread$r({}, styles3), {}, {
|
|
31964
31956
|
onClick: function onClick() {
|
|
31965
31957
|
handleClickItem(DashReact.themeObjects.PANEL_3, styles3);
|
|
31966
31958
|
}
|
|
@@ -31969,68 +31961,68 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
31969
31961
|
children: DashReact.getCSSStyleForClassname("backgroundColor", DashReact.themeObjects.PANEL_3)
|
|
31970
31962
|
})]
|
|
31971
31963
|
}))]
|
|
31972
|
-
}), /*#__PURE__*/jsxRuntime.jsxs(DashReact.Panel, _objectSpread$
|
|
31964
|
+
}), /*#__PURE__*/jsxRuntime.jsxs(DashReact.Panel, _objectSpread$r(_objectSpread$r({
|
|
31973
31965
|
className: "p-6 rounded border-4 space-y-4",
|
|
31974
31966
|
scrollable: false,
|
|
31975
31967
|
height: "h-fit"
|
|
31976
31968
|
}, styles), {}, {
|
|
31977
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Heading, _objectSpread$
|
|
31969
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Heading, _objectSpread$r(_objectSpread$r({
|
|
31978
31970
|
title: "Heading"
|
|
31979
31971
|
}, headingStyles), {}, {
|
|
31980
31972
|
padding: false,
|
|
31981
31973
|
onClick: function onClick() {
|
|
31982
31974
|
return handleClickItem(DashReact.themeObjects.HEADING, headingStyles);
|
|
31983
31975
|
}
|
|
31984
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Heading2, _objectSpread$
|
|
31976
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Heading2, _objectSpread$r(_objectSpread$r({
|
|
31985
31977
|
title: "Heading 2"
|
|
31986
31978
|
}, heading2Styles), {}, {
|
|
31987
31979
|
padding: false,
|
|
31988
31980
|
onClick: function onClick() {
|
|
31989
31981
|
return handleClickItem(DashReact.themeObjects.HEADING_2, heading2Styles);
|
|
31990
31982
|
}
|
|
31991
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Heading3, _objectSpread$
|
|
31983
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Heading3, _objectSpread$r(_objectSpread$r({
|
|
31992
31984
|
title: "Heading 3"
|
|
31993
31985
|
}, heading3Styles), {}, {
|
|
31994
31986
|
padding: false,
|
|
31995
31987
|
onClick: function onClick() {
|
|
31996
31988
|
return handleClickItem(DashReact.themeObjects.HEADING_3, heading3Styles);
|
|
31997
31989
|
}
|
|
31998
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading, _objectSpread$
|
|
31990
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading, _objectSpread$r(_objectSpread$r({
|
|
31999
31991
|
title: "Subheading"
|
|
32000
31992
|
}, subHeadingStyles), {}, {
|
|
32001
31993
|
padding: false,
|
|
32002
31994
|
onClick: function onClick() {
|
|
32003
31995
|
return handleClickItem(DashReact.themeObjects.SUBHEADING, subHeadingStyles);
|
|
32004
31996
|
}
|
|
32005
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading2, _objectSpread$
|
|
31997
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading2, _objectSpread$r(_objectSpread$r({
|
|
32006
31998
|
title: "Subheading 2"
|
|
32007
31999
|
}, subHeading2Styles), {}, {
|
|
32008
32000
|
padding: false,
|
|
32009
32001
|
onClick: function onClick() {
|
|
32010
32002
|
return handleClickItem(DashReact.themeObjects.SUBHEADING_2, subHeading2Styles);
|
|
32011
32003
|
}
|
|
32012
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading3, _objectSpread$
|
|
32004
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading3, _objectSpread$r(_objectSpread$r({
|
|
32013
32005
|
title: "Subheading"
|
|
32014
32006
|
}, subHeading3Styles), {}, {
|
|
32015
32007
|
padding: false,
|
|
32016
32008
|
onClick: function onClick() {
|
|
32017
32009
|
return handleClickItem(DashReact.themeObjects.SUBHEADING_3, subHeading3Styles);
|
|
32018
32010
|
}
|
|
32019
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph, _objectSpread$
|
|
32011
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph, _objectSpread$r(_objectSpread$r({
|
|
32020
32012
|
text: "The quick brown fox jumps over the lazy dog."
|
|
32021
32013
|
}, paragraphStyles), {}, {
|
|
32022
32014
|
padding: false,
|
|
32023
32015
|
onClick: function onClick() {
|
|
32024
32016
|
return handleClickItem(DashReact.themeObjects.PARAGRAPH, paragraphStyles);
|
|
32025
32017
|
}
|
|
32026
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph2, _objectSpread$
|
|
32018
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph2, _objectSpread$r(_objectSpread$r({
|
|
32027
32019
|
text: "The quick brown fox jumps over the lazy dog."
|
|
32028
32020
|
}, paragraph2Styles), {}, {
|
|
32029
32021
|
padding: false,
|
|
32030
32022
|
onClick: function onClick() {
|
|
32031
32023
|
return handleClickItem(DashReact.themeObjects.PARAGRAPH_2, paragraph2Styles);
|
|
32032
32024
|
}
|
|
32033
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph3, _objectSpread$
|
|
32025
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph3, _objectSpread$r(_objectSpread$r({
|
|
32034
32026
|
text: "The quick brown fox jumps over the lazy dog."
|
|
32035
32027
|
}, paragraph3Styles), {}, {
|
|
32036
32028
|
padding: false,
|
|
@@ -32039,19 +32031,19 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32039
32031
|
}
|
|
32040
32032
|
})), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
32041
32033
|
className: "flex flex-row space-x-2 w-full",
|
|
32042
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Button, _objectSpread$
|
|
32034
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Button, _objectSpread$r(_objectSpread$r({
|
|
32043
32035
|
title: "Button"
|
|
32044
32036
|
}, buttonStyles), {}, {
|
|
32045
32037
|
onClick: function onClick() {
|
|
32046
32038
|
return handleClickItem(DashReact.themeObjects.BUTTON, buttonStyles);
|
|
32047
32039
|
}
|
|
32048
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button2, _objectSpread$
|
|
32040
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button2, _objectSpread$r(_objectSpread$r({
|
|
32049
32041
|
title: "Button 2"
|
|
32050
32042
|
}, button2Styles), {}, {
|
|
32051
32043
|
onClick: function onClick() {
|
|
32052
32044
|
return handleClickItem(DashReact.themeObjects.BUTTON_2, button2Styles);
|
|
32053
32045
|
}
|
|
32054
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button3, _objectSpread$
|
|
32046
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button3, _objectSpread$r(_objectSpread$r({
|
|
32055
32047
|
title: "Button 3"
|
|
32056
32048
|
}, button3Styles), {}, {
|
|
32057
32049
|
onClick: function onClick() {
|
|
@@ -32062,14 +32054,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32062
32054
|
className: "flex flex-row space-x-4 w-full h-fit",
|
|
32063
32055
|
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
32064
32056
|
className: "flex flex-row space-x-2",
|
|
32065
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$
|
|
32057
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$r(_objectSpread$r({
|
|
32066
32058
|
text: "Button Icon",
|
|
32067
32059
|
icon: "pencil"
|
|
32068
32060
|
}, buttonIconStyles), {}, {
|
|
32069
32061
|
onClick: function onClick() {
|
|
32070
32062
|
return handleClickItem(DashReact.themeObjects.BUTTON_ICON, buttonIconStyles);
|
|
32071
32063
|
}
|
|
32072
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$
|
|
32064
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$r(_objectSpread$r({
|
|
32073
32065
|
icon: "pencil"
|
|
32074
32066
|
}, buttonIconStyles), {}, {
|
|
32075
32067
|
onClick: function onClick() {
|
|
@@ -32078,14 +32070,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32078
32070
|
}))]
|
|
32079
32071
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
32080
32072
|
className: "flex flex-row space-x-2",
|
|
32081
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$
|
|
32073
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$r(_objectSpread$r({
|
|
32082
32074
|
text: "Button Icon 2",
|
|
32083
32075
|
icon: "pencil"
|
|
32084
32076
|
}, buttonIconStyles), {}, {
|
|
32085
32077
|
onClick: function onClick() {
|
|
32086
32078
|
return handleClickItem(DashReact.themeObjects.BUTTON_ICON_2, buttonIcon2Styles);
|
|
32087
32079
|
}
|
|
32088
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$
|
|
32080
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$r(_objectSpread$r({
|
|
32089
32081
|
icon: "pencil"
|
|
32090
32082
|
}, buttonIconStyles), {}, {
|
|
32091
32083
|
onClick: function onClick() {
|
|
@@ -32094,14 +32086,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32094
32086
|
}))]
|
|
32095
32087
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
32096
32088
|
className: "flex flex-row space-x-2",
|
|
32097
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$
|
|
32089
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$r(_objectSpread$r({
|
|
32098
32090
|
text: "Button Icon 3",
|
|
32099
32091
|
icon: "pencil"
|
|
32100
32092
|
}, buttonIcon3Styles), {}, {
|
|
32101
32093
|
onClick: function onClick() {
|
|
32102
32094
|
return handleClickItem(DashReact.themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
32103
32095
|
}
|
|
32104
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$
|
|
32096
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$r(_objectSpread$r({
|
|
32105
32097
|
icon: "pencil"
|
|
32106
32098
|
}, buttonIcon3Styles), {}, {
|
|
32107
32099
|
onClick: function onClick() {
|
|
@@ -32111,17 +32103,17 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32111
32103
|
})]
|
|
32112
32104
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
32113
32105
|
className: "flex flex-col space-y-2 w-full",
|
|
32114
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem, _objectSpread$
|
|
32106
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem, _objectSpread$r(_objectSpread$r({}, menuItemStyles), {}, {
|
|
32115
32107
|
onClick: function onClick() {
|
|
32116
32108
|
return handleClickItem(DashReact.themeObjects.MENU_ITEM, menuItemStyles);
|
|
32117
32109
|
},
|
|
32118
32110
|
children: "Menu Item"
|
|
32119
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem2, _objectSpread$
|
|
32111
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem2, _objectSpread$r(_objectSpread$r({}, menuItem2Styles), {}, {
|
|
32120
32112
|
onClick: function onClick() {
|
|
32121
32113
|
return handleClickItem(DashReact.themeObjects.MENU_ITEM_2, menuItem2Styles);
|
|
32122
32114
|
},
|
|
32123
32115
|
children: "Menu Item 2"
|
|
32124
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem3, _objectSpread$
|
|
32116
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem3, _objectSpread$r(_objectSpread$r({}, menuItem3Styles), {}, {
|
|
32125
32117
|
onClick: function onClick() {
|
|
32126
32118
|
return handleClickItem(DashReact.themeObjects.MENU_ITEM_3, menuItem3Styles);
|
|
32127
32119
|
},
|
|
@@ -32129,21 +32121,21 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32129
32121
|
}))]
|
|
32130
32122
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
32131
32123
|
className: "flex flex-row space-x-2 w-full",
|
|
32132
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Tag, _objectSpread$
|
|
32124
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Tag, _objectSpread$r(_objectSpread$r({
|
|
32133
32125
|
text: "Tag",
|
|
32134
32126
|
icon: "pencil"
|
|
32135
32127
|
}, tagStyles), {}, {
|
|
32136
32128
|
onClick: function onClick() {
|
|
32137
32129
|
return handleClickItem(DashReact.themeObjects.TAG, tagStyles);
|
|
32138
32130
|
}
|
|
32139
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Tag2, _objectSpread$
|
|
32131
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Tag2, _objectSpread$r(_objectSpread$r({
|
|
32140
32132
|
text: "Tag 2",
|
|
32141
32133
|
icon: "pencil"
|
|
32142
32134
|
}, tag2Styles), {}, {
|
|
32143
32135
|
onClick: function onClick() {
|
|
32144
32136
|
return handleClickItem(DashReact.themeObjects.TAG_2, tag2Styles);
|
|
32145
32137
|
}
|
|
32146
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Tag3, _objectSpread$
|
|
32138
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Tag3, _objectSpread$r(_objectSpread$r({
|
|
32147
32139
|
text: "Tag 3",
|
|
32148
32140
|
icon: "pencil"
|
|
32149
32141
|
}, tag3Styles), {}, {
|
|
@@ -32152,67 +32144,67 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32152
32144
|
}
|
|
32153
32145
|
}))]
|
|
32154
32146
|
})]
|
|
32155
|
-
})), /*#__PURE__*/jsxRuntime.jsxs(DashReact.Panel2, _objectSpread$
|
|
32147
|
+
})), /*#__PURE__*/jsxRuntime.jsxs(DashReact.Panel2, _objectSpread$r(_objectSpread$r({
|
|
32156
32148
|
className: "p-6 rounded border-4 space-y-4",
|
|
32157
32149
|
height: "h-fit"
|
|
32158
32150
|
}, styles2), {}, {
|
|
32159
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Heading, _objectSpread$
|
|
32151
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Heading, _objectSpread$r(_objectSpread$r({
|
|
32160
32152
|
title: "Heading"
|
|
32161
32153
|
}, headingStyles), {}, {
|
|
32162
32154
|
padding: false,
|
|
32163
32155
|
onClick: function onClick() {
|
|
32164
32156
|
return handleClickItem(DashReact.themeObjects.HEADING, headingStyles);
|
|
32165
32157
|
}
|
|
32166
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Heading2, _objectSpread$
|
|
32158
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Heading2, _objectSpread$r(_objectSpread$r({
|
|
32167
32159
|
title: "Heading 2"
|
|
32168
32160
|
}, heading2Styles), {}, {
|
|
32169
32161
|
padding: false,
|
|
32170
32162
|
onClick: function onClick() {
|
|
32171
32163
|
return handleClickItem(DashReact.themeObjects.HEADING_2, heading2Styles);
|
|
32172
32164
|
}
|
|
32173
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Heading3, _objectSpread$
|
|
32165
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Heading3, _objectSpread$r(_objectSpread$r({
|
|
32174
32166
|
title: "Heading 3"
|
|
32175
32167
|
}, heading3Styles), {}, {
|
|
32176
32168
|
padding: false,
|
|
32177
32169
|
onClick: function onClick() {
|
|
32178
32170
|
return handleClickItem(DashReact.themeObjects.HEADING_3, heading3Styles);
|
|
32179
32171
|
}
|
|
32180
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading, _objectSpread$
|
|
32172
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading, _objectSpread$r(_objectSpread$r({
|
|
32181
32173
|
title: "Subheading"
|
|
32182
32174
|
}, subHeadingStyles), {}, {
|
|
32183
32175
|
padding: false,
|
|
32184
32176
|
onClick: function onClick() {
|
|
32185
32177
|
return handleClickItem(DashReact.themeObjects.SUBHEADING, subHeadingStyles);
|
|
32186
32178
|
}
|
|
32187
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading2, _objectSpread$
|
|
32179
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading2, _objectSpread$r(_objectSpread$r({
|
|
32188
32180
|
title: "Subheading 2"
|
|
32189
32181
|
}, subHeading2Styles), {}, {
|
|
32190
32182
|
padding: false,
|
|
32191
32183
|
onClick: function onClick() {
|
|
32192
32184
|
return handleClickItem(DashReact.themeObjects.SUBHEADING_2, subHeading2Styles);
|
|
32193
32185
|
}
|
|
32194
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading3, _objectSpread$
|
|
32186
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading3, _objectSpread$r(_objectSpread$r({
|
|
32195
32187
|
title: "Subheading"
|
|
32196
32188
|
}, subHeading3Styles), {}, {
|
|
32197
32189
|
padding: false,
|
|
32198
32190
|
onClick: function onClick() {
|
|
32199
32191
|
return handleClickItem(DashReact.themeObjects.SUBHEADING_3, subHeading3Styles);
|
|
32200
32192
|
}
|
|
32201
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph, _objectSpread$
|
|
32193
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph, _objectSpread$r(_objectSpread$r({
|
|
32202
32194
|
text: "The quick brown fox jumps over the lazy dog."
|
|
32203
32195
|
}, paragraphStyles), {}, {
|
|
32204
32196
|
padding: false,
|
|
32205
32197
|
onClick: function onClick() {
|
|
32206
32198
|
return handleClickItem(DashReact.themeObjects.PARAGRAPH, paragraphStyles);
|
|
32207
32199
|
}
|
|
32208
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph2, _objectSpread$
|
|
32200
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph2, _objectSpread$r(_objectSpread$r({
|
|
32209
32201
|
text: "The quick brown fox jumps over the lazy dog."
|
|
32210
32202
|
}, paragraph2Styles), {}, {
|
|
32211
32203
|
padding: false,
|
|
32212
32204
|
onClick: function onClick() {
|
|
32213
32205
|
return handleClickItem(DashReact.themeObjects.PARAGRAPH_2, paragraph2Styles);
|
|
32214
32206
|
}
|
|
32215
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph3, _objectSpread$
|
|
32207
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph3, _objectSpread$r(_objectSpread$r({
|
|
32216
32208
|
text: "The quick brown fox jumps over the lazy dog."
|
|
32217
32209
|
}, paragraph3Styles), {}, {
|
|
32218
32210
|
padding: false,
|
|
@@ -32221,19 +32213,19 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32221
32213
|
}
|
|
32222
32214
|
})), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
32223
32215
|
className: "flex flex-row space-x-2 w-full",
|
|
32224
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Button, _objectSpread$
|
|
32216
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Button, _objectSpread$r(_objectSpread$r({
|
|
32225
32217
|
title: "Button"
|
|
32226
32218
|
}, buttonStyles), {}, {
|
|
32227
32219
|
onClick: function onClick() {
|
|
32228
32220
|
return handleClickItem(DashReact.themeObjects.BUTTON, buttonStyles);
|
|
32229
32221
|
}
|
|
32230
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button2, _objectSpread$
|
|
32222
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button2, _objectSpread$r(_objectSpread$r({
|
|
32231
32223
|
title: "Button 2"
|
|
32232
32224
|
}, button2Styles), {}, {
|
|
32233
32225
|
onClick: function onClick() {
|
|
32234
32226
|
return handleClickItem(DashReact.themeObjects.BUTTON_2, button2Styles);
|
|
32235
32227
|
}
|
|
32236
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button3, _objectSpread$
|
|
32228
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button3, _objectSpread$r(_objectSpread$r({
|
|
32237
32229
|
title: "Button 3"
|
|
32238
32230
|
}, button3Styles), {}, {
|
|
32239
32231
|
onClick: function onClick() {
|
|
@@ -32244,14 +32236,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32244
32236
|
className: "flex flex-row space-x-4 w-full",
|
|
32245
32237
|
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
32246
32238
|
className: "flex flex-row space-x-2",
|
|
32247
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$
|
|
32239
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$r(_objectSpread$r({
|
|
32248
32240
|
text: "Button Icon",
|
|
32249
32241
|
icon: "pencil"
|
|
32250
32242
|
}, buttonIconStyles), {}, {
|
|
32251
32243
|
onClick: function onClick() {
|
|
32252
32244
|
return handleClickItem(DashReact.themeObjects.BUTTON_ICON, buttonIconStyles);
|
|
32253
32245
|
}
|
|
32254
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$
|
|
32246
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$r(_objectSpread$r({
|
|
32255
32247
|
icon: "pencil"
|
|
32256
32248
|
}, buttonIconStyles), {}, {
|
|
32257
32249
|
onClick: function onClick() {
|
|
@@ -32260,14 +32252,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32260
32252
|
}))]
|
|
32261
32253
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
32262
32254
|
className: "flex flex-row space-x-2",
|
|
32263
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$
|
|
32255
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$r(_objectSpread$r({
|
|
32264
32256
|
text: "Button Icon 2",
|
|
32265
32257
|
icon: "pencil"
|
|
32266
32258
|
}, buttonIconStyles), {}, {
|
|
32267
32259
|
onClick: function onClick() {
|
|
32268
32260
|
return handleClickItem(DashReact.themeObjects.BUTTON_ICON_2, buttonIcon2Styles);
|
|
32269
32261
|
}
|
|
32270
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$
|
|
32262
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$r(_objectSpread$r({
|
|
32271
32263
|
icon: "pencil"
|
|
32272
32264
|
}, buttonIconStyles), {}, {
|
|
32273
32265
|
onClick: function onClick() {
|
|
@@ -32276,14 +32268,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32276
32268
|
}))]
|
|
32277
32269
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
32278
32270
|
className: "flex flex-row space-x-2",
|
|
32279
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$
|
|
32271
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$r(_objectSpread$r({
|
|
32280
32272
|
text: "Button Icon 3",
|
|
32281
32273
|
icon: "pencil"
|
|
32282
32274
|
}, buttonIcon3Styles), {}, {
|
|
32283
32275
|
onClick: function onClick() {
|
|
32284
32276
|
return handleClickItem(DashReact.themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
32285
32277
|
}
|
|
32286
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$
|
|
32278
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$r(_objectSpread$r({
|
|
32287
32279
|
icon: "pencil"
|
|
32288
32280
|
}, buttonIcon3Styles), {}, {
|
|
32289
32281
|
onClick: function onClick() {
|
|
@@ -32293,17 +32285,17 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32293
32285
|
})]
|
|
32294
32286
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
32295
32287
|
className: "flex flex-col space-y-2 w-full",
|
|
32296
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem, _objectSpread$
|
|
32288
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem, _objectSpread$r(_objectSpread$r({}, menuItemStyles), {}, {
|
|
32297
32289
|
onClick: function onClick() {
|
|
32298
32290
|
return handleClickItem(DashReact.themeObjects.MENU_ITEM, menuItemStyles);
|
|
32299
32291
|
},
|
|
32300
32292
|
children: "Menu Item"
|
|
32301
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem2, _objectSpread$
|
|
32293
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem2, _objectSpread$r(_objectSpread$r({}, menuItem2Styles), {}, {
|
|
32302
32294
|
onClick: function onClick() {
|
|
32303
32295
|
return handleClickItem(DashReact.themeObjects.MENU_ITEM_2, menuItem2Styles);
|
|
32304
32296
|
},
|
|
32305
32297
|
children: "Menu Item 2"
|
|
32306
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem3, _objectSpread$
|
|
32298
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem3, _objectSpread$r(_objectSpread$r({}, menuItem3Styles), {}, {
|
|
32307
32299
|
onClick: function onClick() {
|
|
32308
32300
|
return handleClickItem(DashReact.themeObjects.MENU_ITEM_3, menuItem3Styles);
|
|
32309
32301
|
},
|
|
@@ -32311,21 +32303,21 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32311
32303
|
}))]
|
|
32312
32304
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
32313
32305
|
className: "flex flex-row space-x-2 w-full",
|
|
32314
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Tag, _objectSpread$
|
|
32306
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Tag, _objectSpread$r(_objectSpread$r({
|
|
32315
32307
|
text: "Tag",
|
|
32316
32308
|
icon: "pencil"
|
|
32317
32309
|
}, tagStyles), {}, {
|
|
32318
32310
|
onClick: function onClick() {
|
|
32319
32311
|
return handleClickItem(DashReact.themeObjects.TAG, tagStyles);
|
|
32320
32312
|
}
|
|
32321
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Tag2, _objectSpread$
|
|
32313
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Tag2, _objectSpread$r(_objectSpread$r({
|
|
32322
32314
|
text: "Tag 2",
|
|
32323
32315
|
icon: "pencil"
|
|
32324
32316
|
}, tag2Styles), {}, {
|
|
32325
32317
|
onClick: function onClick() {
|
|
32326
32318
|
return handleClickItem(DashReact.themeObjects.TAG_2, tag2Styles);
|
|
32327
32319
|
}
|
|
32328
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Tag3, _objectSpread$
|
|
32320
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Tag3, _objectSpread$r(_objectSpread$r({
|
|
32329
32321
|
text: "Tag 3",
|
|
32330
32322
|
icon: "pencil"
|
|
32331
32323
|
}, tag3Styles), {}, {
|
|
@@ -32334,68 +32326,68 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32334
32326
|
}
|
|
32335
32327
|
}))]
|
|
32336
32328
|
})]
|
|
32337
|
-
})), /*#__PURE__*/jsxRuntime.jsxs(DashReact.Panel3, _objectSpread$
|
|
32329
|
+
})), /*#__PURE__*/jsxRuntime.jsxs(DashReact.Panel3, _objectSpread$r(_objectSpread$r({
|
|
32338
32330
|
className: "p-6 rounded border-4 space-y-4"
|
|
32339
32331
|
}, styles3), {}, {
|
|
32340
32332
|
padding: false,
|
|
32341
32333
|
height: "h-fit",
|
|
32342
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Heading, _objectSpread$
|
|
32334
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Heading, _objectSpread$r(_objectSpread$r({
|
|
32343
32335
|
title: "Heading"
|
|
32344
32336
|
}, headingStyles), {}, {
|
|
32345
32337
|
padding: false,
|
|
32346
32338
|
onClick: function onClick() {
|
|
32347
32339
|
return handleClickItem(DashReact.themeObjects.HEADING, headingStyles);
|
|
32348
32340
|
}
|
|
32349
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Heading2, _objectSpread$
|
|
32341
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Heading2, _objectSpread$r(_objectSpread$r({
|
|
32350
32342
|
title: "Heading 2"
|
|
32351
32343
|
}, heading2Styles), {}, {
|
|
32352
32344
|
padding: false,
|
|
32353
32345
|
onClick: function onClick() {
|
|
32354
32346
|
return handleClickItem(DashReact.themeObjects.HEADING_2, heading2Styles);
|
|
32355
32347
|
}
|
|
32356
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Heading3, _objectSpread$
|
|
32348
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Heading3, _objectSpread$r(_objectSpread$r({
|
|
32357
32349
|
title: "Heading 3"
|
|
32358
32350
|
}, heading3Styles), {}, {
|
|
32359
32351
|
padding: false,
|
|
32360
32352
|
onClick: function onClick() {
|
|
32361
32353
|
return handleClickItem(DashReact.themeObjects.HEADING_3, heading3Styles);
|
|
32362
32354
|
}
|
|
32363
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading, _objectSpread$
|
|
32355
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading, _objectSpread$r(_objectSpread$r({
|
|
32364
32356
|
title: "Subheading"
|
|
32365
32357
|
}, subHeadingStyles), {}, {
|
|
32366
32358
|
padding: false,
|
|
32367
32359
|
onClick: function onClick() {
|
|
32368
32360
|
return handleClickItem(DashReact.themeObjects.SUBHEADING, subHeadingStyles);
|
|
32369
32361
|
}
|
|
32370
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading2, _objectSpread$
|
|
32362
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading2, _objectSpread$r(_objectSpread$r({
|
|
32371
32363
|
title: "Subheading 2"
|
|
32372
32364
|
}, subHeading2Styles), {}, {
|
|
32373
32365
|
padding: false,
|
|
32374
32366
|
onClick: function onClick() {
|
|
32375
32367
|
return handleClickItem(DashReact.themeObjects.SUBHEADING_2, subHeading2Styles);
|
|
32376
32368
|
}
|
|
32377
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading3, _objectSpread$
|
|
32369
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading3, _objectSpread$r(_objectSpread$r({
|
|
32378
32370
|
title: "Subheading"
|
|
32379
32371
|
}, subHeading3Styles), {}, {
|
|
32380
32372
|
padding: false,
|
|
32381
32373
|
onClick: function onClick() {
|
|
32382
32374
|
return handleClickItem(DashReact.themeObjects.SUBHEADING_3, subHeading3Styles);
|
|
32383
32375
|
}
|
|
32384
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph, _objectSpread$
|
|
32376
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph, _objectSpread$r(_objectSpread$r({
|
|
32385
32377
|
text: "The quick brown fox jumps over the lazy dog."
|
|
32386
32378
|
}, paragraphStyles), {}, {
|
|
32387
32379
|
padding: false,
|
|
32388
32380
|
onClick: function onClick() {
|
|
32389
32381
|
return handleClickItem(DashReact.themeObjects.PARAGRAPH, paragraphStyles);
|
|
32390
32382
|
}
|
|
32391
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph2, _objectSpread$
|
|
32383
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph2, _objectSpread$r(_objectSpread$r({
|
|
32392
32384
|
text: "The quick brown fox jumps over the lazy dog."
|
|
32393
32385
|
}, paragraph2Styles), {}, {
|
|
32394
32386
|
padding: false,
|
|
32395
32387
|
onClick: function onClick() {
|
|
32396
32388
|
return handleClickItem(DashReact.themeObjects.PARAGRAPH, paragraph2Styles);
|
|
32397
32389
|
}
|
|
32398
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph3, _objectSpread$
|
|
32390
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph3, _objectSpread$r(_objectSpread$r({
|
|
32399
32391
|
text: "The quick brown fox jumps over the lazy dog."
|
|
32400
32392
|
}, paragraph3Styles), {}, {
|
|
32401
32393
|
padding: false,
|
|
@@ -32404,19 +32396,19 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32404
32396
|
}
|
|
32405
32397
|
})), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
32406
32398
|
className: "flex flex-row space-x-2 w-full",
|
|
32407
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Button, _objectSpread$
|
|
32399
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Button, _objectSpread$r(_objectSpread$r({
|
|
32408
32400
|
title: "Button"
|
|
32409
32401
|
}, buttonStyles), {}, {
|
|
32410
32402
|
onClick: function onClick() {
|
|
32411
32403
|
return handleClickItem(DashReact.themeObjects.BUTTON, buttonStyles);
|
|
32412
32404
|
}
|
|
32413
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button2, _objectSpread$
|
|
32405
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button2, _objectSpread$r(_objectSpread$r({
|
|
32414
32406
|
title: "Button 2"
|
|
32415
32407
|
}, button2Styles), {}, {
|
|
32416
32408
|
onClick: function onClick() {
|
|
32417
32409
|
return handleClickItem(DashReact.themeObjects.BUTTON_2, button2Styles);
|
|
32418
32410
|
}
|
|
32419
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button3, _objectSpread$
|
|
32411
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button3, _objectSpread$r(_objectSpread$r({
|
|
32420
32412
|
title: "Button 3"
|
|
32421
32413
|
}, button3Styles), {}, {
|
|
32422
32414
|
onClick: function onClick() {
|
|
@@ -32427,14 +32419,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32427
32419
|
className: "flex flex-row space-x-4 w-full",
|
|
32428
32420
|
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
32429
32421
|
className: "flex flex-row space-x-2",
|
|
32430
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$
|
|
32422
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$r(_objectSpread$r({
|
|
32431
32423
|
text: "Button Icon",
|
|
32432
32424
|
icon: "pencil"
|
|
32433
32425
|
}, buttonIconStyles), {}, {
|
|
32434
32426
|
onClick: function onClick() {
|
|
32435
32427
|
return handleClickItem(DashReact.themeObjects.BUTTON_ICON, buttonIconStyles);
|
|
32436
32428
|
}
|
|
32437
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$
|
|
32429
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$r(_objectSpread$r({
|
|
32438
32430
|
icon: "pencil"
|
|
32439
32431
|
}, buttonIconStyles), {}, {
|
|
32440
32432
|
onClick: function onClick() {
|
|
@@ -32443,14 +32435,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32443
32435
|
}))]
|
|
32444
32436
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
32445
32437
|
className: "flex flex-row space-x-2",
|
|
32446
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$
|
|
32438
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$r(_objectSpread$r({
|
|
32447
32439
|
text: "Button Icon 2",
|
|
32448
32440
|
icon: "pencil"
|
|
32449
32441
|
}, buttonIconStyles), {}, {
|
|
32450
32442
|
onClick: function onClick() {
|
|
32451
32443
|
return handleClickItem(DashReact.themeObjects.BUTTON_ICON_2, buttonIcon2Styles);
|
|
32452
32444
|
}
|
|
32453
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$
|
|
32445
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$r(_objectSpread$r({
|
|
32454
32446
|
icon: "pencil"
|
|
32455
32447
|
}, buttonIconStyles), {}, {
|
|
32456
32448
|
onClick: function onClick() {
|
|
@@ -32459,14 +32451,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32459
32451
|
}))]
|
|
32460
32452
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
32461
32453
|
className: "flex flex-row space-x-2",
|
|
32462
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$
|
|
32454
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$r(_objectSpread$r({
|
|
32463
32455
|
text: "Button Icon 3",
|
|
32464
32456
|
icon: "pencil"
|
|
32465
32457
|
}, buttonIcon3Styles), {}, {
|
|
32466
32458
|
onClick: function onClick() {
|
|
32467
32459
|
return handleClickItem(DashReact.themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
32468
32460
|
}
|
|
32469
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$
|
|
32461
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$r(_objectSpread$r({
|
|
32470
32462
|
icon: "pencil"
|
|
32471
32463
|
}, buttonIcon3Styles), {}, {
|
|
32472
32464
|
onClick: function onClick() {
|
|
@@ -32476,17 +32468,17 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32476
32468
|
})]
|
|
32477
32469
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
32478
32470
|
className: "flex flex-col space-y-2 w-full",
|
|
32479
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem, _objectSpread$
|
|
32471
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem, _objectSpread$r(_objectSpread$r({}, menuItemStyles), {}, {
|
|
32480
32472
|
onClick: function onClick() {
|
|
32481
32473
|
return handleClickItem(DashReact.themeObjects.MENU_ITEM, menuItemStyles);
|
|
32482
32474
|
},
|
|
32483
32475
|
children: "Menu Item"
|
|
32484
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem2, _objectSpread$
|
|
32476
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem2, _objectSpread$r(_objectSpread$r({}, menuItem2Styles), {}, {
|
|
32485
32477
|
onClick: function onClick() {
|
|
32486
32478
|
return handleClickItem(DashReact.themeObjects.MENU_ITEM_2, menuItem2Styles);
|
|
32487
32479
|
},
|
|
32488
32480
|
children: "Menu Item 2"
|
|
32489
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem3, _objectSpread$
|
|
32481
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem3, _objectSpread$r(_objectSpread$r({}, menuItem3Styles), {}, {
|
|
32490
32482
|
onClick: function onClick() {
|
|
32491
32483
|
return handleClickItem(DashReact.themeObjects.MENU_ITEM_3, menuItem3Styles);
|
|
32492
32484
|
},
|
|
@@ -32494,21 +32486,21 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32494
32486
|
}))]
|
|
32495
32487
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
32496
32488
|
className: "flex flex-row space-x-2 w-full",
|
|
32497
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Tag, _objectSpread$
|
|
32489
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Tag, _objectSpread$r(_objectSpread$r({
|
|
32498
32490
|
text: "Tag",
|
|
32499
32491
|
icon: "pencil"
|
|
32500
32492
|
}, tagStyles), {}, {
|
|
32501
32493
|
onClick: function onClick() {
|
|
32502
32494
|
return handleClickItem(DashReact.themeObjects.TAG, tagStyles);
|
|
32503
32495
|
}
|
|
32504
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Tag2, _objectSpread$
|
|
32496
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Tag2, _objectSpread$r(_objectSpread$r({
|
|
32505
32497
|
text: "Tag 2",
|
|
32506
32498
|
icon: "pencil"
|
|
32507
32499
|
}, tag2Styles), {}, {
|
|
32508
32500
|
onClick: function onClick() {
|
|
32509
32501
|
return handleClickItem(DashReact.themeObjects.TAG_2, tag2Styles);
|
|
32510
32502
|
}
|
|
32511
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Tag3, _objectSpread$
|
|
32503
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Tag3, _objectSpread$r(_objectSpread$r({
|
|
32512
32504
|
text: "Tag 3",
|
|
32513
32505
|
icon: "pencil"
|
|
32514
32506
|
}, tag3Styles), {}, {
|
|
@@ -32517,57 +32509,57 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32517
32509
|
}
|
|
32518
32510
|
}))]
|
|
32519
32511
|
})]
|
|
32520
|
-
})), /*#__PURE__*/jsxRuntime.jsxs(DashReact.Panel2, _objectSpread$
|
|
32512
|
+
})), /*#__PURE__*/jsxRuntime.jsxs(DashReact.Panel2, _objectSpread$r(_objectSpread$r({
|
|
32521
32513
|
className: "p-6 rounded border-4 space-y-4"
|
|
32522
32514
|
}, styles2), {}, {
|
|
32523
32515
|
height: "h-fit",
|
|
32524
32516
|
padding: false,
|
|
32525
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Heading2, _objectSpread$
|
|
32517
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Heading2, _objectSpread$r(_objectSpread$r({
|
|
32526
32518
|
title: "Heading 2"
|
|
32527
32519
|
}, heading2Styles), {}, {
|
|
32528
32520
|
padding: false,
|
|
32529
32521
|
onClick: function onClick() {
|
|
32530
32522
|
return handleClickItem(DashReact.themeObjects.HEADING_2, heading2Styles);
|
|
32531
32523
|
}
|
|
32532
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading2, _objectSpread$
|
|
32524
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading2, _objectSpread$r(_objectSpread$r({
|
|
32533
32525
|
title: "Subheading 2"
|
|
32534
32526
|
}, subHeading2Styles), {}, {
|
|
32535
32527
|
padding: false,
|
|
32536
32528
|
onClick: function onClick() {
|
|
32537
32529
|
return handleClickItem(DashReact.themeObjects.SUBHEADING_2, subHeading2Styles);
|
|
32538
32530
|
}
|
|
32539
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph2, _objectSpread$
|
|
32531
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph2, _objectSpread$r(_objectSpread$r({
|
|
32540
32532
|
text: "Paragraph 2 - The quick brown fox jumps over the lazy dog."
|
|
32541
32533
|
}, paragraph2Styles), {}, {
|
|
32542
32534
|
padding: false,
|
|
32543
32535
|
onClick: function onClick() {
|
|
32544
32536
|
return handleClickItem(DashReact.themeObjects.PARAGRAPH_2, paragraph2Styles);
|
|
32545
32537
|
}
|
|
32546
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button2, _objectSpread$
|
|
32538
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button2, _objectSpread$r(_objectSpread$r({
|
|
32547
32539
|
title: "Button"
|
|
32548
32540
|
}, button2Styles), {}, {
|
|
32549
32541
|
onClick: function onClick() {
|
|
32550
32542
|
return handleClickItem(DashReact.themeObjects.BUTTON_2, button2Styles);
|
|
32551
32543
|
}
|
|
32552
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon2, _objectSpread$
|
|
32544
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon2, _objectSpread$r(_objectSpread$r({
|
|
32553
32545
|
text: "Button Icon",
|
|
32554
32546
|
icon: "pencil"
|
|
32555
32547
|
}, buttonIcon2Styles), {}, {
|
|
32556
32548
|
onClick: function onClick() {
|
|
32557
32549
|
return handleClickItem(DashReact.themeObjects.BUTTON_ICON_2, buttonIcon2Styles);
|
|
32558
32550
|
}
|
|
32559
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon2, _objectSpread$
|
|
32551
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon2, _objectSpread$r(_objectSpread$r({
|
|
32560
32552
|
icon: "pencil"
|
|
32561
32553
|
}, buttonIcon2Styles), {}, {
|
|
32562
32554
|
onClick: function onClick() {
|
|
32563
32555
|
return handleClickItem(DashReact.themeObjects.BUTTON_ICON_2, buttonIconStyles);
|
|
32564
32556
|
}
|
|
32565
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem2, _objectSpread$
|
|
32557
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem2, _objectSpread$r(_objectSpread$r({}, menuItem2Styles), {}, {
|
|
32566
32558
|
onClick: function onClick() {
|
|
32567
32559
|
return handleClickItem(DashReact.themeObjects.MENU_ITEM_2, menuItem2Styles);
|
|
32568
32560
|
},
|
|
32569
32561
|
children: "Menu Item"
|
|
32570
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Tag2, _objectSpread$
|
|
32562
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Tag2, _objectSpread$r(_objectSpread$r({
|
|
32571
32563
|
text: "Tag 2",
|
|
32572
32564
|
icon: "pencil"
|
|
32573
32565
|
}, tag2Styles), {}, {
|
|
@@ -32575,57 +32567,57 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32575
32567
|
return handleClickItem(DashReact.themeObjects.TAG_2, tag2Styles);
|
|
32576
32568
|
}
|
|
32577
32569
|
}))]
|
|
32578
|
-
})), /*#__PURE__*/jsxRuntime.jsxs(DashReact.Panel3, _objectSpread$
|
|
32570
|
+
})), /*#__PURE__*/jsxRuntime.jsxs(DashReact.Panel3, _objectSpread$r(_objectSpread$r({
|
|
32579
32571
|
className: "p-6 rounded border-4 space-y-4"
|
|
32580
32572
|
}, styles3), {}, {
|
|
32581
32573
|
height: "h-fit",
|
|
32582
32574
|
padding: false,
|
|
32583
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Heading3, _objectSpread$
|
|
32575
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Heading3, _objectSpread$r(_objectSpread$r({
|
|
32584
32576
|
title: "Heading 3"
|
|
32585
32577
|
}, heading3Styles), {}, {
|
|
32586
32578
|
padding: false,
|
|
32587
32579
|
onClick: function onClick() {
|
|
32588
32580
|
return handleClickItem(DashReact.themeObjects.HEADING_3, heading3Styles);
|
|
32589
32581
|
}
|
|
32590
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading3, _objectSpread$
|
|
32582
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading3, _objectSpread$r(_objectSpread$r({
|
|
32591
32583
|
title: "Subheading"
|
|
32592
32584
|
}, subHeading3Styles), {}, {
|
|
32593
32585
|
padding: false,
|
|
32594
32586
|
onClick: function onClick() {
|
|
32595
32587
|
return handleClickItem(DashReact.themeObjects.SUBHEADING_3, subHeading3Styles);
|
|
32596
32588
|
}
|
|
32597
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph3, _objectSpread$
|
|
32589
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph3, _objectSpread$r(_objectSpread$r({
|
|
32598
32590
|
text: "Paragraph 3 - The quick brown fox jumps over the lazy dog."
|
|
32599
32591
|
}, paragraph3Styles), {}, {
|
|
32600
32592
|
padding: false,
|
|
32601
32593
|
onClick: function onClick() {
|
|
32602
32594
|
return handleClickItem(DashReact.themeObjects.PARAGRAPH_3, paragraph3Styles);
|
|
32603
32595
|
}
|
|
32604
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button3, _objectSpread$
|
|
32596
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button3, _objectSpread$r(_objectSpread$r({
|
|
32605
32597
|
title: "Button"
|
|
32606
32598
|
}, button3Styles), {}, {
|
|
32607
32599
|
onClick: function onClick() {
|
|
32608
32600
|
return handleClickItem(DashReact.themeObjects.BUTTON_3, button3Styles);
|
|
32609
32601
|
}
|
|
32610
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon3, _objectSpread$
|
|
32602
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon3, _objectSpread$r(_objectSpread$r({
|
|
32611
32603
|
text: "Button Icon 3",
|
|
32612
32604
|
icon: "pencil"
|
|
32613
32605
|
}, buttonIcon3Styles), {}, {
|
|
32614
32606
|
onClick: function onClick() {
|
|
32615
32607
|
return handleClickItem(DashReact.themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
32616
32608
|
}
|
|
32617
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon3, _objectSpread$
|
|
32609
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon3, _objectSpread$r(_objectSpread$r({
|
|
32618
32610
|
icon: "pencil"
|
|
32619
32611
|
}, buttonIcon3Styles), {}, {
|
|
32620
32612
|
onClick: function onClick() {
|
|
32621
32613
|
return handleClickItem(DashReact.themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
32622
32614
|
}
|
|
32623
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem3, _objectSpread$
|
|
32615
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem3, _objectSpread$r(_objectSpread$r({}, menuItem3Styles), {}, {
|
|
32624
32616
|
onClick: function onClick() {
|
|
32625
32617
|
return handleClickItem(DashReact.themeObjects.MENU_ITEM_3, menuItem3Styles);
|
|
32626
32618
|
},
|
|
32627
32619
|
children: "Menu Item"
|
|
32628
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Tag3, _objectSpread$
|
|
32620
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Tag3, _objectSpread$r(_objectSpread$r({
|
|
32629
32621
|
text: "Tag",
|
|
32630
32622
|
icon: "pencil"
|
|
32631
32623
|
}, tag3Styles), {}, {
|
|
@@ -32674,8 +32666,8 @@ var ThemePane = function ThemePane(_ref) {
|
|
|
32674
32666
|
};
|
|
32675
32667
|
|
|
32676
32668
|
var _excluded$2 = ["colorFromTheme", "colorName", "shade", "variant", "colorType", "colorLevelName", "selected", "onClick", "onMouseOver", "width", "height"];
|
|
32677
|
-
function ownKeys$
|
|
32678
|
-
function _objectSpread$
|
|
32669
|
+
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; }
|
|
32670
|
+
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; }
|
|
32679
32671
|
var ColorTile = function ColorTile(_ref) {
|
|
32680
32672
|
var _ref$colorFromTheme = _ref.colorFromTheme,
|
|
32681
32673
|
colorFromTheme = _ref$colorFromTheme === void 0 ? null : _ref$colorFromTheme,
|
|
@@ -32700,7 +32692,7 @@ var ColorTile = function ColorTile(_ref) {
|
|
|
32700
32692
|
_ref$height = _ref.height,
|
|
32701
32693
|
height = _ref$height === void 0 ? "h-10" : _ref$height,
|
|
32702
32694
|
rest = _objectWithoutProperties(_ref, _excluded$2);
|
|
32703
|
-
var c = ColorModel(_objectSpread$
|
|
32695
|
+
var c = ColorModel(_objectSpread$q({
|
|
32704
32696
|
colorFromTheme: colorFromTheme,
|
|
32705
32697
|
colorName: colorName,
|
|
32706
32698
|
colorType: colorType,
|
|
@@ -32728,10 +32720,10 @@ var ColorTile = function ColorTile(_ref) {
|
|
|
32728
32720
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
32729
32721
|
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),
|
|
32730
32722
|
onClick: function onClick() {
|
|
32731
|
-
return _onClick !== null ? _onClick(_objectSpread$
|
|
32723
|
+
return _onClick !== null ? _onClick(_objectSpread$q(_objectSpread$q({}, c), rest)) : null;
|
|
32732
32724
|
},
|
|
32733
32725
|
onMouseOver: function onMouseOver() {
|
|
32734
|
-
return _onMouseOver !== null ? _onMouseOver(_objectSpread$
|
|
32726
|
+
return _onMouseOver !== null ? _onMouseOver(_objectSpread$q(_objectSpread$q({}, c), rest)) : null;
|
|
32735
32727
|
},
|
|
32736
32728
|
children: "\xA0"
|
|
32737
32729
|
});
|
|
@@ -33914,8 +33906,8 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
33914
33906
|
var propTypesExports = propTypes.exports;
|
|
33915
33907
|
var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
|
|
33916
33908
|
|
|
33917
|
-
function ownKeys$
|
|
33918
|
-
function _objectSpread$
|
|
33909
|
+
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; }
|
|
33910
|
+
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; }
|
|
33919
33911
|
|
|
33920
33912
|
// Host-injected module references (e.g., "@trops/dash-core").
|
|
33921
33913
|
// Set by the host app via setHostModules() after all modules are fully loaded,
|
|
@@ -33951,7 +33943,7 @@ var BASE_MODULE_MAP = {
|
|
|
33951
33943
|
function evaluateBundle(source, widgetName) {
|
|
33952
33944
|
// Merge base modules with host-provided modules (e.g., "@trops/dash-core")
|
|
33953
33945
|
// at call time so _hostModules is populated by the time widgets load.
|
|
33954
|
-
var moduleMap = _objectSpread$
|
|
33946
|
+
var moduleMap = _objectSpread$p(_objectSpread$p({}, BASE_MODULE_MAP), _hostModules);
|
|
33955
33947
|
var module = {
|
|
33956
33948
|
exports: {}
|
|
33957
33949
|
};
|
|
@@ -33964,7 +33956,7 @@ function evaluateBundle(source, widgetName) {
|
|
|
33964
33956
|
// CJS bundles expect `require("pkg").Widget` to work, so merge
|
|
33965
33957
|
// `.default` properties onto the returned object.
|
|
33966
33958
|
if (mod["default"] && _typeof(mod["default"]) === "object") {
|
|
33967
|
-
return _objectSpread$
|
|
33959
|
+
return _objectSpread$p(_objectSpread$p(_objectSpread$p({}, mod["default"]), mod), {}, {
|
|
33968
33960
|
"default": mod["default"]
|
|
33969
33961
|
});
|
|
33970
33962
|
}
|
|
@@ -34046,9 +34038,9 @@ function loadWidgetBundle(source, widgetName) {
|
|
|
34046
34038
|
};
|
|
34047
34039
|
}
|
|
34048
34040
|
|
|
34049
|
-
function _createForOfIteratorHelper$
|
|
34050
|
-
function _unsupportedIterableToArray$
|
|
34051
|
-
function _arrayLikeToArray$
|
|
34041
|
+
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; } } }; }
|
|
34042
|
+
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; } }
|
|
34043
|
+
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; }
|
|
34052
34044
|
/**
|
|
34053
34045
|
* Validation utilities for grid-first dashboard architecture
|
|
34054
34046
|
*
|
|
@@ -34287,7 +34279,7 @@ var validateCellMerge = function validateCellMerge(cellNumbers, grid) {
|
|
|
34287
34279
|
|
|
34288
34280
|
// Validate each cell
|
|
34289
34281
|
var cells = [];
|
|
34290
|
-
var _iterator = _createForOfIteratorHelper$
|
|
34282
|
+
var _iterator = _createForOfIteratorHelper$9(cellNumbers),
|
|
34291
34283
|
_step;
|
|
34292
34284
|
try {
|
|
34293
34285
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -34635,8 +34627,8 @@ var HARMONY_STRATEGIES = [{
|
|
|
34635
34627
|
label: "Custom"
|
|
34636
34628
|
}];
|
|
34637
34629
|
|
|
34638
|
-
function ownKeys$
|
|
34639
|
-
function _objectSpread$
|
|
34630
|
+
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; }
|
|
34631
|
+
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; }
|
|
34640
34632
|
var COLOR_PROPERTIES$1 = new Set(["backgroundColor", "textColor", "borderColor", "hoverBackgroundColor", "hoverTextColor", "hoverBorderColor", "focusRingColor", "focusBorderColor", "activeBackgroundColor", "activeTextColor", "placeholderTextColor"]);
|
|
34641
34633
|
var PreviewColorsPane = function PreviewColorsPane(_ref) {
|
|
34642
34634
|
var _ref$styles = _ref.styles,
|
|
@@ -34653,7 +34645,7 @@ var PreviewColorsPane = function PreviewColorsPane(_ref) {
|
|
|
34653
34645
|
function handleClickItem(data, styleNameCss, itemType, objectType) {
|
|
34654
34646
|
// override the object type
|
|
34655
34647
|
data["objectType"] = objectType;
|
|
34656
|
-
onClickItem(_objectSpread$
|
|
34648
|
+
onClickItem(_objectSpread$o(_objectSpread$o({}, data), {}, {
|
|
34657
34649
|
itemType: itemType,
|
|
34658
34650
|
styleName: styleNameCss
|
|
34659
34651
|
}));
|
|
@@ -35063,8 +35055,8 @@ var ThemeMenuPane = function ThemeMenuPane(_ref) {
|
|
|
35063
35055
|
});
|
|
35064
35056
|
};
|
|
35065
35057
|
|
|
35066
|
-
function ownKeys$
|
|
35067
|
-
function _objectSpread$
|
|
35058
|
+
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; }
|
|
35059
|
+
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; }
|
|
35068
35060
|
var COMPONENT_GROUPS$1 = {
|
|
35069
35061
|
Typography: [DashReact.themeObjects.HEADING, DashReact.themeObjects.HEADING_2, DashReact.themeObjects.HEADING_3, DashReact.themeObjects.SUBHEADING, DashReact.themeObjects.SUBHEADING_2, DashReact.themeObjects.SUBHEADING_3, DashReact.themeObjects.PARAGRAPH, DashReact.themeObjects.PARAGRAPH_2, DashReact.themeObjects.PARAGRAPH_3],
|
|
35070
35062
|
Buttons: [DashReact.themeObjects.BUTTON, DashReact.themeObjects.BUTTON_2, DashReact.themeObjects.BUTTON_3, DashReact.themeObjects.BUTTON_ICON, DashReact.themeObjects.BUTTON_ICON_2, DashReact.themeObjects.BUTTON_ICON_3],
|
|
@@ -35095,7 +35087,7 @@ var ComponentSelectorPane = function ComponentSelectorPane(_ref) {
|
|
|
35095
35087
|
setCollapsedGroups = _useState2[1];
|
|
35096
35088
|
function toggleGroup(groupName) {
|
|
35097
35089
|
setCollapsedGroups(function (prev) {
|
|
35098
|
-
return _objectSpread$
|
|
35090
|
+
return _objectSpread$n(_objectSpread$n({}, prev), {}, _defineProperty({}, groupName, !prev[groupName]));
|
|
35099
35091
|
});
|
|
35100
35092
|
}
|
|
35101
35093
|
function hasOverrides(itemKey) {
|
|
@@ -35332,8 +35324,8 @@ var NonColorPickerPane = function NonColorPickerPane(_ref) {
|
|
|
35332
35324
|
};
|
|
35333
35325
|
|
|
35334
35326
|
var _excluded$1 = ["children"];
|
|
35335
|
-
function ownKeys$
|
|
35336
|
-
function _objectSpread$
|
|
35327
|
+
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; }
|
|
35328
|
+
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; }
|
|
35337
35329
|
var COLOR_PROPERTIES = new Set(["backgroundColor", "textColor", "borderColor", "hoverBackgroundColor", "hoverTextColor", "hoverBorderColor", "focusRingColor", "focusBorderColor", "activeBackgroundColor", "activeTextColor", "placeholderTextColor"]);
|
|
35338
35330
|
var isColorProperty = function isColorProperty(name) {
|
|
35339
35331
|
return COLOR_PROPERTIES.has(name);
|
|
@@ -35893,7 +35885,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
35893
35885
|
if (itemSelected && themeSelected && themeVariant) {
|
|
35894
35886
|
var updatedStyles = DashReact.getStylesForItem(itemSelected.item, themeSelected[themeVariant]);
|
|
35895
35887
|
setItemSelected(function (prev) {
|
|
35896
|
-
return _objectSpread$
|
|
35888
|
+
return _objectSpread$m(_objectSpread$m({}, prev), {}, {
|
|
35897
35889
|
styles: updatedStyles
|
|
35898
35890
|
});
|
|
35899
35891
|
});
|
|
@@ -36064,7 +36056,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
36064
36056
|
styles: clickStyles
|
|
36065
36057
|
});
|
|
36066
36058
|
},
|
|
36067
|
-
children: /*#__PURE__*/jsxRuntime.jsx(PanelComponent, _objectSpread$
|
|
36059
|
+
children: /*#__PURE__*/jsxRuntime.jsx(PanelComponent, _objectSpread$m(_objectSpread$m({}, panelStyles), {}, {
|
|
36068
36060
|
scrollable: false,
|
|
36069
36061
|
className: "rounded",
|
|
36070
36062
|
height: "",
|
|
@@ -36078,9 +36070,9 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
36078
36070
|
var _comp$props = comp.props,
|
|
36079
36071
|
childContent = _comp$props.children,
|
|
36080
36072
|
restProps = _objectWithoutProperties(_comp$props, _excluded$1);
|
|
36081
|
-
var renderedComponent = childContent !== undefined ? /*#__PURE__*/jsxRuntime.jsx(comp.Component, _objectSpread$
|
|
36073
|
+
var renderedComponent = childContent !== undefined ? /*#__PURE__*/jsxRuntime.jsx(comp.Component, _objectSpread$m(_objectSpread$m({}, restProps), {}, {
|
|
36082
36074
|
children: childContent
|
|
36083
|
-
})) : /*#__PURE__*/jsxRuntime.jsx(comp.Component, _objectSpread$
|
|
36075
|
+
})) : /*#__PURE__*/jsxRuntime.jsx(comp.Component, _objectSpread$m({}, restProps));
|
|
36084
36076
|
return renderComponentRow(comp.key, renderedComponent);
|
|
36085
36077
|
})
|
|
36086
36078
|
})
|
|
@@ -36096,7 +36088,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
36096
36088
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
36097
36089
|
className: "text-xs uppercase font-bold text-gray-500 tracking-wider",
|
|
36098
36090
|
children: "Forms & Inputs"
|
|
36099
|
-
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Panel, _objectSpread$
|
|
36091
|
+
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Panel, _objectSpread$m(_objectSpread$m({}, DashReact.getStylesForItem("panel", themeData)), {}, {
|
|
36100
36092
|
scrollable: false,
|
|
36101
36093
|
className: "rounded",
|
|
36102
36094
|
height: "",
|
|
@@ -36124,7 +36116,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
36124
36116
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
36125
36117
|
className: "text-xs uppercase font-bold text-gray-500 tracking-wider",
|
|
36126
36118
|
children: "Data & Stats"
|
|
36127
|
-
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Panel, _objectSpread$
|
|
36119
|
+
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Panel, _objectSpread$m(_objectSpread$m({}, DashReact.getStylesForItem("panel", themeData)), {}, {
|
|
36128
36120
|
scrollable: false,
|
|
36129
36121
|
className: "rounded",
|
|
36130
36122
|
height: "",
|
|
@@ -36229,7 +36221,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
36229
36221
|
}), themeSelected && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
36230
36222
|
className: "flex flex-col flex-1 min-w-0",
|
|
36231
36223
|
children: /*#__PURE__*/jsxRuntime.jsx(DashReact.ThemeContext.Provider, {
|
|
36232
|
-
value: _objectSpread$
|
|
36224
|
+
value: _objectSpread$m(_objectSpread$m({}, themeContextValue), {}, {
|
|
36233
36225
|
currentTheme: (themeSelected === null || themeSelected === void 0 ? void 0 : themeSelected[themeVariant]) || themeContextValue.currentTheme
|
|
36234
36226
|
}),
|
|
36235
36227
|
children: showPreview ? /*#__PURE__*/jsxRuntime.jsx(PreviewComponentsPane, {
|
|
@@ -37633,8 +37625,8 @@ var DiscoverThemesDetail = function DiscoverThemesDetail(_ref) {
|
|
|
37633
37625
|
});
|
|
37634
37626
|
};
|
|
37635
37627
|
|
|
37636
|
-
function ownKeys$
|
|
37637
|
-
function _objectSpread$
|
|
37628
|
+
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; }
|
|
37629
|
+
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; }
|
|
37638
37630
|
var ThemeManagerModal = function ThemeManagerModal(_ref) {
|
|
37639
37631
|
var open = _ref.open,
|
|
37640
37632
|
setIsOpen = _ref.setIsOpen;
|
|
@@ -37826,7 +37818,7 @@ var ThemeManagerModal = function ThemeManagerModal(_ref) {
|
|
|
37826
37818
|
function handleWizardComplete() {
|
|
37827
37819
|
if (!wizardTheme || !wizardName.trim()) return;
|
|
37828
37820
|
var key = wizardTheme.id || "theme-".concat(Date.now());
|
|
37829
|
-
var finalTheme = _objectSpread$
|
|
37821
|
+
var finalTheme = _objectSpread$l(_objectSpread$l({}, wizardTheme), {}, {
|
|
37830
37822
|
id: key,
|
|
37831
37823
|
name: wizardName.trim()
|
|
37832
37824
|
});
|
|
@@ -38789,8 +38781,8 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
|
|
|
38789
38781
|
});
|
|
38790
38782
|
};
|
|
38791
38783
|
|
|
38792
|
-
function ownKeys$
|
|
38793
|
-
function _objectSpread$
|
|
38784
|
+
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; }
|
|
38785
|
+
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; }
|
|
38794
38786
|
var LayoutPreview = function LayoutPreview(_ref) {
|
|
38795
38787
|
var layout = _ref.layout;
|
|
38796
38788
|
var gridRoot = (layout || []).find(function (item) {
|
|
@@ -38972,7 +38964,7 @@ var DashboardDetail = function DashboardDetail(_ref2) {
|
|
|
38972
38964
|
updated.menuId = val ? Number(val) : null;
|
|
38973
38965
|
// Strip widgetConfig from layout before saving
|
|
38974
38966
|
updated.layout = (updated.layout || []).map(function (layoutItem) {
|
|
38975
|
-
var cleaned = _objectSpread$
|
|
38967
|
+
var cleaned = _objectSpread$k({}, layoutItem);
|
|
38976
38968
|
delete cleaned.widgetConfig;
|
|
38977
38969
|
return cleaned;
|
|
38978
38970
|
});
|
|
@@ -38987,7 +38979,7 @@ var DashboardDetail = function DashboardDetail(_ref2) {
|
|
|
38987
38979
|
var updated = DashReact.deepCopy(ws);
|
|
38988
38980
|
updated.themeKey = val || null;
|
|
38989
38981
|
updated.layout = (updated.layout || []).map(function (layoutItem) {
|
|
38990
|
-
var cleaned = _objectSpread$
|
|
38982
|
+
var cleaned = _objectSpread$k({}, layoutItem);
|
|
38991
38983
|
delete cleaned.widgetConfig;
|
|
38992
38984
|
return cleaned;
|
|
38993
38985
|
});
|
|
@@ -39140,8 +39132,8 @@ var DashboardDetail = function DashboardDetail(_ref2) {
|
|
|
39140
39132
|
});
|
|
39141
39133
|
};
|
|
39142
39134
|
|
|
39143
|
-
function ownKeys$
|
|
39144
|
-
function _objectSpread$
|
|
39135
|
+
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; }
|
|
39136
|
+
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; }
|
|
39145
39137
|
var DashboardsSection = function DashboardsSection(_ref) {
|
|
39146
39138
|
var _ref$workspaces = _ref.workspaces,
|
|
39147
39139
|
workspaces = _ref$workspaces === void 0 ? [] : _ref$workspaces,
|
|
@@ -39230,7 +39222,7 @@ var DashboardsSection = function DashboardsSection(_ref) {
|
|
|
39230
39222
|
updated.name = editName.trim();
|
|
39231
39223
|
// Strip widgetConfig from layout before saving
|
|
39232
39224
|
updated.layout = (updated.layout || []).map(function (layoutItem) {
|
|
39233
|
-
var cleaned = _objectSpread$
|
|
39225
|
+
var cleaned = _objectSpread$j({}, layoutItem);
|
|
39234
39226
|
delete cleaned.widgetConfig;
|
|
39235
39227
|
return cleaned;
|
|
39236
39228
|
});
|
|
@@ -39250,7 +39242,7 @@ var DashboardsSection = function DashboardsSection(_ref) {
|
|
|
39250
39242
|
copy.version = Date.now();
|
|
39251
39243
|
// Strip widgetConfig from layout before saving
|
|
39252
39244
|
copy.layout = (copy.layout || []).map(function (layoutItem) {
|
|
39253
|
-
var cleaned = _objectSpread$
|
|
39245
|
+
var cleaned = _objectSpread$j({}, layoutItem);
|
|
39254
39246
|
delete cleaned.widgetConfig;
|
|
39255
39247
|
return cleaned;
|
|
39256
39248
|
});
|
|
@@ -39650,8 +39642,8 @@ var FoldersSection = function FoldersSection(_ref) {
|
|
|
39650
39642
|
});
|
|
39651
39643
|
};
|
|
39652
39644
|
|
|
39653
|
-
function ownKeys$
|
|
39654
|
-
function _objectSpread$
|
|
39645
|
+
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; }
|
|
39646
|
+
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; }
|
|
39655
39647
|
var ProviderDetail = function ProviderDetail(_ref) {
|
|
39656
39648
|
var _provider$mcpConfig, _testResult$tools;
|
|
39657
39649
|
var _ref$providerName = _ref.providerName,
|
|
@@ -39742,14 +39734,14 @@ var ProviderDetail = function ProviderDetail(_ref) {
|
|
|
39742
39734
|
var oldKey = f.key;
|
|
39743
39735
|
if (oldKey && formCredentials[oldKey] !== undefined) {
|
|
39744
39736
|
setFormCredentials(function (creds) {
|
|
39745
|
-
var updated = _objectSpread$
|
|
39737
|
+
var updated = _objectSpread$i({}, creds);
|
|
39746
39738
|
var val = updated[oldKey];
|
|
39747
39739
|
delete updated[oldKey];
|
|
39748
39740
|
if (newKey.trim()) updated[newKey] = val;
|
|
39749
39741
|
return updated;
|
|
39750
39742
|
});
|
|
39751
39743
|
}
|
|
39752
|
-
return _objectSpread$
|
|
39744
|
+
return _objectSpread$i(_objectSpread$i({}, f), {}, {
|
|
39753
39745
|
key: newKey
|
|
39754
39746
|
});
|
|
39755
39747
|
});
|
|
@@ -39761,14 +39753,14 @@ var ProviderDetail = function ProviderDetail(_ref) {
|
|
|
39761
39753
|
});
|
|
39762
39754
|
if (field !== null && field !== void 0 && field.key) {
|
|
39763
39755
|
setFormCredentials(function (prev) {
|
|
39764
|
-
return _objectSpread$
|
|
39756
|
+
return _objectSpread$i(_objectSpread$i({}, prev), {}, _defineProperty({}, field.key, value));
|
|
39765
39757
|
});
|
|
39766
39758
|
}
|
|
39767
39759
|
};
|
|
39768
39760
|
var handleFieldSecretToggle = function handleFieldSecretToggle(id) {
|
|
39769
39761
|
setCredentialFields(function (prev) {
|
|
39770
39762
|
return prev.map(function (f) {
|
|
39771
|
-
return f.id === id ? _objectSpread$
|
|
39763
|
+
return f.id === id ? _objectSpread$i(_objectSpread$i({}, f), {}, {
|
|
39772
39764
|
secret: !f.secret
|
|
39773
39765
|
}) : f;
|
|
39774
39766
|
});
|
|
@@ -39790,7 +39782,7 @@ var ProviderDetail = function ProviderDetail(_ref) {
|
|
|
39790
39782
|
});
|
|
39791
39783
|
if (field !== null && field !== void 0 && field.key) {
|
|
39792
39784
|
setFormCredentials(function (prev) {
|
|
39793
|
-
var updated = _objectSpread$
|
|
39785
|
+
var updated = _objectSpread$i({}, prev);
|
|
39794
39786
|
delete updated[field.key];
|
|
39795
39787
|
return updated;
|
|
39796
39788
|
});
|
|
@@ -39803,7 +39795,7 @@ var ProviderDetail = function ProviderDetail(_ref) {
|
|
|
39803
39795
|
};
|
|
39804
39796
|
var handleCredentialChange = function handleCredentialChange(key, value) {
|
|
39805
39797
|
setFormCredentials(function (prev) {
|
|
39806
|
-
return _objectSpread$
|
|
39798
|
+
return _objectSpread$i(_objectSpread$i({}, prev), {}, _defineProperty({}, key, value));
|
|
39807
39799
|
});
|
|
39808
39800
|
};
|
|
39809
39801
|
var handleTestConnection = function handleTestConnection() {
|
|
@@ -40293,7 +40285,7 @@ var ProviderDetail = function ProviderDetail(_ref) {
|
|
|
40293
40285
|
children: testResult.message
|
|
40294
40286
|
})]
|
|
40295
40287
|
})
|
|
40296
|
-
}), (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__*/jsxRuntime.jsx(ToolSelector, {
|
|
40288
|
+
}), (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__*/jsxRuntime.jsx(ToolSelector$1, {
|
|
40297
40289
|
tools: testResult.tools,
|
|
40298
40290
|
selectedTools: selectedTools,
|
|
40299
40291
|
onSelectionChange: setSelectedTools
|
|
@@ -40405,8 +40397,8 @@ var ProviderDetail = function ProviderDetail(_ref) {
|
|
|
40405
40397
|
});
|
|
40406
40398
|
};
|
|
40407
40399
|
|
|
40408
|
-
function ownKeys$
|
|
40409
|
-
function _objectSpread$
|
|
40400
|
+
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; }
|
|
40401
|
+
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; }
|
|
40410
40402
|
var rowIdCounter = 0;
|
|
40411
40403
|
var nextRowId = function nextRowId() {
|
|
40412
40404
|
return "row_".concat(++rowIdCounter);
|
|
@@ -40667,7 +40659,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
40667
40659
|
var updateEnvRow = function updateEnvRow(id, field, value) {
|
|
40668
40660
|
setEnvMappingRows(function (prev) {
|
|
40669
40661
|
return prev.map(function (row) {
|
|
40670
|
-
return row.id === id ? _objectSpread$
|
|
40662
|
+
return row.id === id ? _objectSpread$h(_objectSpread$h({}, row), {}, _defineProperty({}, field, value)) : row;
|
|
40671
40663
|
});
|
|
40672
40664
|
});
|
|
40673
40665
|
};
|
|
@@ -40692,7 +40684,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
40692
40684
|
var updateHeaderRow = function updateHeaderRow(id, field, value) {
|
|
40693
40685
|
setHeaderRows(function (prev) {
|
|
40694
40686
|
return prev.map(function (row) {
|
|
40695
|
-
return row.id === id ? _objectSpread$
|
|
40687
|
+
return row.id === id ? _objectSpread$h(_objectSpread$h({}, row), {}, _defineProperty({}, field, value)) : row;
|
|
40696
40688
|
});
|
|
40697
40689
|
});
|
|
40698
40690
|
};
|
|
@@ -40707,11 +40699,11 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
40707
40699
|
// --- credential field change ---
|
|
40708
40700
|
var handleCredentialChange = function handleCredentialChange(fieldName, value) {
|
|
40709
40701
|
setCredentialData(function (prev) {
|
|
40710
|
-
return _objectSpread$
|
|
40702
|
+
return _objectSpread$h(_objectSpread$h({}, prev), {}, _defineProperty({}, fieldName, value));
|
|
40711
40703
|
});
|
|
40712
40704
|
if (formErrors[fieldName] && value !== null && value !== void 0 && value.trim()) {
|
|
40713
40705
|
setFormErrors(function (prev) {
|
|
40714
|
-
var next = _objectSpread$
|
|
40706
|
+
var next = _objectSpread$h({}, prev);
|
|
40715
40707
|
delete next[fieldName];
|
|
40716
40708
|
return next;
|
|
40717
40709
|
});
|
|
@@ -40919,7 +40911,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
40919
40911
|
setProviderName(value);
|
|
40920
40912
|
if (formErrors.providerName && value !== null && value !== void 0 && value.trim()) {
|
|
40921
40913
|
setFormErrors(function (prev) {
|
|
40922
|
-
var next = _objectSpread$
|
|
40914
|
+
var next = _objectSpread$h({}, prev);
|
|
40923
40915
|
delete next.providerName;
|
|
40924
40916
|
return next;
|
|
40925
40917
|
});
|
|
@@ -41035,7 +41027,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
41035
41027
|
setCommand(value);
|
|
41036
41028
|
if (formErrors.command && value !== null && value !== void 0 && value.trim()) {
|
|
41037
41029
|
setFormErrors(function (prev) {
|
|
41038
|
-
var next = _objectSpread$
|
|
41030
|
+
var next = _objectSpread$h({}, prev);
|
|
41039
41031
|
delete next.command;
|
|
41040
41032
|
return next;
|
|
41041
41033
|
});
|
|
@@ -41141,7 +41133,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
41141
41133
|
setUrl(value);
|
|
41142
41134
|
if (formErrors.url && value !== null && value !== void 0 && value.trim()) {
|
|
41143
41135
|
setFormErrors(function (prev) {
|
|
41144
|
-
var next = _objectSpread$
|
|
41136
|
+
var next = _objectSpread$h({}, prev);
|
|
41145
41137
|
delete next.url;
|
|
41146
41138
|
return next;
|
|
41147
41139
|
});
|
|
@@ -41329,7 +41321,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
41329
41321
|
className: "mr-1"
|
|
41330
41322
|
}), testResult.message]
|
|
41331
41323
|
})]
|
|
41332
|
-
}), (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__*/jsxRuntime.jsx(ToolSelector, {
|
|
41324
|
+
}), (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__*/jsxRuntime.jsx(ToolSelector$1, {
|
|
41333
41325
|
tools: testResult.tools,
|
|
41334
41326
|
selectedTools: selectedTools,
|
|
41335
41327
|
onSelectionChange: setSelectedTools
|
|
@@ -41386,8 +41378,8 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
41386
41378
|
});
|
|
41387
41379
|
};
|
|
41388
41380
|
|
|
41389
|
-
function ownKeys$
|
|
41390
|
-
function _objectSpread$
|
|
41381
|
+
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; }
|
|
41382
|
+
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; }
|
|
41391
41383
|
var getIconForServer = function getIconForServer(server) {
|
|
41392
41384
|
var iconMap = {
|
|
41393
41385
|
github: "code-branch",
|
|
@@ -41574,11 +41566,11 @@ var McpCatalogDetail = function McpCatalogDetail(_ref) {
|
|
|
41574
41566
|
// Handle credential field changes
|
|
41575
41567
|
var handleCredentialChange = function handleCredentialChange(fieldName, value) {
|
|
41576
41568
|
setCredentialData(function (prev) {
|
|
41577
|
-
return _objectSpread$
|
|
41569
|
+
return _objectSpread$g(_objectSpread$g({}, prev), {}, _defineProperty({}, fieldName, value));
|
|
41578
41570
|
});
|
|
41579
41571
|
if (formErrors[fieldName] && value !== null && value !== void 0 && value.trim()) {
|
|
41580
41572
|
setFormErrors(function (prev) {
|
|
41581
|
-
var next = _objectSpread$
|
|
41573
|
+
var next = _objectSpread$g({}, prev);
|
|
41582
41574
|
delete next[fieldName];
|
|
41583
41575
|
return next;
|
|
41584
41576
|
});
|
|
@@ -41826,7 +41818,7 @@ var McpCatalogDetail = function McpCatalogDetail(_ref) {
|
|
|
41826
41818
|
setProviderName(value);
|
|
41827
41819
|
if (formErrors.providerName && value !== null && value !== void 0 && value.trim()) {
|
|
41828
41820
|
setFormErrors(function (prev) {
|
|
41829
|
-
var next = _objectSpread$
|
|
41821
|
+
var next = _objectSpread$g({}, prev);
|
|
41830
41822
|
delete next.providerName;
|
|
41831
41823
|
return next;
|
|
41832
41824
|
});
|
|
@@ -41955,7 +41947,7 @@ var McpCatalogDetail = function McpCatalogDetail(_ref) {
|
|
|
41955
41947
|
className: "mr-1"
|
|
41956
41948
|
}), testResult.message]
|
|
41957
41949
|
})]
|
|
41958
|
-
}), (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__*/jsxRuntime.jsx(ToolSelector, {
|
|
41950
|
+
}), (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__*/jsxRuntime.jsx(ToolSelector$1, {
|
|
41959
41951
|
tools: testResult.tools,
|
|
41960
41952
|
selectedTools: selectedTools,
|
|
41961
41953
|
onSelectionChange: setSelectedTools
|
|
@@ -42088,11 +42080,11 @@ var McpCatalogDetail = function McpCatalogDetail(_ref) {
|
|
|
42088
42080
|
});
|
|
42089
42081
|
};
|
|
42090
42082
|
|
|
42091
|
-
function ownKeys$
|
|
42092
|
-
function _objectSpread$
|
|
42093
|
-
function _createForOfIteratorHelper$
|
|
42094
|
-
function _unsupportedIterableToArray$
|
|
42095
|
-
function _arrayLikeToArray$
|
|
42083
|
+
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; }
|
|
42084
|
+
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; }
|
|
42085
|
+
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; } } }; }
|
|
42086
|
+
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; } }
|
|
42087
|
+
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; }
|
|
42096
42088
|
function isValidWsUrl(url) {
|
|
42097
42089
|
if (!url) return false;
|
|
42098
42090
|
try {
|
|
@@ -42139,7 +42131,7 @@ function extractCredentialFields(url, headerRows) {
|
|
|
42139
42131
|
fields.add(match[1]);
|
|
42140
42132
|
}
|
|
42141
42133
|
}
|
|
42142
|
-
var _iterator = _createForOfIteratorHelper$
|
|
42134
|
+
var _iterator = _createForOfIteratorHelper$8(headerRows),
|
|
42143
42135
|
_step;
|
|
42144
42136
|
try {
|
|
42145
42137
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -42242,7 +42234,7 @@ var WebSocketProviderForm = function WebSocketProviderForm(_ref) {
|
|
|
42242
42234
|
if (!url.trim()) errs.url = "WebSocket URL is required";else if (!isValidWsUrl(url)) errs.url = "URL must start with ws:// or wss://";
|
|
42243
42235
|
|
|
42244
42236
|
// Check required credential fields are filled
|
|
42245
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
42237
|
+
var _iterator2 = _createForOfIteratorHelper$8(credentialFields),
|
|
42246
42238
|
_step2;
|
|
42247
42239
|
try {
|
|
42248
42240
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -42265,7 +42257,7 @@ var WebSocketProviderForm = function WebSocketProviderForm(_ref) {
|
|
|
42265
42257
|
|
|
42266
42258
|
// Build headers object from rows
|
|
42267
42259
|
var headers = {};
|
|
42268
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
42260
|
+
var _iterator3 = _createForOfIteratorHelper$8(headerRows),
|
|
42269
42261
|
_step3;
|
|
42270
42262
|
try {
|
|
42271
42263
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -42310,7 +42302,7 @@ var WebSocketProviderForm = function WebSocketProviderForm(_ref) {
|
|
|
42310
42302
|
function handleHeaderChange(id, field, value) {
|
|
42311
42303
|
setHeaderRows(function (prev) {
|
|
42312
42304
|
return prev.map(function (r) {
|
|
42313
|
-
return r.id === id ? _objectSpread$
|
|
42305
|
+
return r.id === id ? _objectSpread$f(_objectSpread$f({}, r), {}, _defineProperty({}, field, value)) : r;
|
|
42314
42306
|
});
|
|
42315
42307
|
});
|
|
42316
42308
|
}
|
|
@@ -42334,7 +42326,7 @@ var WebSocketProviderForm = function WebSocketProviderForm(_ref) {
|
|
|
42334
42326
|
|
|
42335
42327
|
// Build config from current form state (same as handleSave)
|
|
42336
42328
|
headers = {};
|
|
42337
|
-
_iterator4 = _createForOfIteratorHelper$
|
|
42329
|
+
_iterator4 = _createForOfIteratorHelper$8(headerRows);
|
|
42338
42330
|
try {
|
|
42339
42331
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
42340
42332
|
row = _step4.value;
|
|
@@ -42538,7 +42530,7 @@ var WebSocketProviderForm = function WebSocketProviderForm(_ref) {
|
|
|
42538
42530
|
value: credentials[field] || "",
|
|
42539
42531
|
onChange: function onChange(value) {
|
|
42540
42532
|
return setCredentials(function (prev) {
|
|
42541
|
-
return _objectSpread$
|
|
42533
|
+
return _objectSpread$f(_objectSpread$f({}, prev), {}, _defineProperty({}, field, value));
|
|
42542
42534
|
});
|
|
42543
42535
|
},
|
|
42544
42536
|
placeholder: "Enter ".concat(field),
|
|
@@ -44118,8 +44110,8 @@ var ThemeDetail = function ThemeDetail(_ref6) {
|
|
|
44118
44110
|
});
|
|
44119
44111
|
};
|
|
44120
44112
|
|
|
44121
|
-
function ownKeys$
|
|
44122
|
-
function _objectSpread$
|
|
44113
|
+
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; }
|
|
44114
|
+
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; }
|
|
44123
44115
|
var BackToChooser = function BackToChooser(_ref) {
|
|
44124
44116
|
var onClick = _ref.onClick,
|
|
44125
44117
|
children = _ref.children;
|
|
@@ -44239,7 +44231,7 @@ var ThemesSection = function ThemesSection(_ref2) {
|
|
|
44239
44231
|
if (!wizardTheme || !wizardName.trim()) return;
|
|
44240
44232
|
if (!dashApi || !appId) return;
|
|
44241
44233
|
var key = wizardTheme.id || "theme-".concat(Date.now());
|
|
44242
|
-
var finalTheme = _objectSpread$
|
|
44234
|
+
var finalTheme = _objectSpread$e(_objectSpread$e({}, wizardTheme), {}, {
|
|
44243
44235
|
id: key,
|
|
44244
44236
|
name: wizardName.trim()
|
|
44245
44237
|
});
|
|
@@ -44346,7 +44338,7 @@ var ThemesSection = function ThemesSection(_ref2) {
|
|
|
44346
44338
|
function handleUrlThemeGenerated(theme) {
|
|
44347
44339
|
if (!dashApi || !appId) return;
|
|
44348
44340
|
var key = theme.id || "theme-".concat(Date.now());
|
|
44349
|
-
var finalTheme = _objectSpread$
|
|
44341
|
+
var finalTheme = _objectSpread$e(_objectSpread$e({}, theme), {}, {
|
|
44350
44342
|
id: key
|
|
44351
44343
|
});
|
|
44352
44344
|
saveAndSelectTheme(key, finalTheme);
|
|
@@ -44851,11 +44843,11 @@ var InstallWidgetPicker = function InstallWidgetPicker(_ref2) {
|
|
|
44851
44843
|
});
|
|
44852
44844
|
};
|
|
44853
44845
|
|
|
44854
|
-
function ownKeys$
|
|
44855
|
-
function _objectSpread$
|
|
44856
|
-
function _createForOfIteratorHelper$
|
|
44857
|
-
function _unsupportedIterableToArray$
|
|
44858
|
-
function _arrayLikeToArray$
|
|
44846
|
+
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; }
|
|
44847
|
+
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; }
|
|
44848
|
+
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; } } }; }
|
|
44849
|
+
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; } }
|
|
44850
|
+
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; }
|
|
44859
44851
|
var DiscoverWidgetsDetail = function DiscoverWidgetsDetail(_ref) {
|
|
44860
44852
|
var onBack = _ref.onBack;
|
|
44861
44853
|
var _useContext = React.useContext(DashReact.ThemeContext),
|
|
@@ -44921,7 +44913,7 @@ var DiscoverWidgetsDetail = function DiscoverWidgetsDetail(_ref) {
|
|
|
44921
44913
|
case 1:
|
|
44922
44914
|
widgets = _context.sent;
|
|
44923
44915
|
names = new Set();
|
|
44924
|
-
_iterator = _createForOfIteratorHelper$
|
|
44916
|
+
_iterator = _createForOfIteratorHelper$7(widgets);
|
|
44925
44917
|
try {
|
|
44926
44918
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
44927
44919
|
w = _step.value;
|
|
@@ -44980,7 +44972,7 @@ var DiscoverWidgetsDetail = function DiscoverWidgetsDetail(_ref) {
|
|
|
44980
44972
|
if (installError) {
|
|
44981
44973
|
setProgressWidgets(function (prev) {
|
|
44982
44974
|
return prev.map(function (w) {
|
|
44983
|
-
return _objectSpread$
|
|
44975
|
+
return _objectSpread$d(_objectSpread$d({}, w), {}, {
|
|
44984
44976
|
status: "failed",
|
|
44985
44977
|
error: installError
|
|
44986
44978
|
});
|
|
@@ -44989,7 +44981,7 @@ var DiscoverWidgetsDetail = function DiscoverWidgetsDetail(_ref) {
|
|
|
44989
44981
|
} else {
|
|
44990
44982
|
setProgressWidgets(function (prev) {
|
|
44991
44983
|
return prev.map(function (w) {
|
|
44992
|
-
return _objectSpread$
|
|
44984
|
+
return _objectSpread$d(_objectSpread$d({}, w), {}, {
|
|
44993
44985
|
status: "installed"
|
|
44994
44986
|
});
|
|
44995
44987
|
});
|
|
@@ -45027,12 +45019,12 @@ var DiscoverWidgetsDetail = function DiscoverWidgetsDetail(_ref) {
|
|
|
45027
45019
|
var checkToolConflicts = function checkToolConflicts(widget) {
|
|
45028
45020
|
var conflicts = [];
|
|
45029
45021
|
var packageWidgets = widget.packageWidgets || [];
|
|
45030
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
45022
|
+
var _iterator2 = _createForOfIteratorHelper$7(packageWidgets),
|
|
45031
45023
|
_step2;
|
|
45032
45024
|
try {
|
|
45033
45025
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
45034
45026
|
var w = _step2.value;
|
|
45035
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
45027
|
+
var _iterator3 = _createForOfIteratorHelper$7(w.providers || []),
|
|
45036
45028
|
_step3;
|
|
45037
45029
|
try {
|
|
45038
45030
|
var _loop = function _loop() {
|
|
@@ -45045,7 +45037,7 @@ var DiscoverWidgetsDetail = function DiscoverWidgetsDetail(_ref) {
|
|
|
45045
45037
|
prov = _ref4[1];
|
|
45046
45038
|
return prov.type === p.type && prov.providerClass === "mcp" && prov.allowedTools;
|
|
45047
45039
|
});
|
|
45048
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
45040
|
+
var _iterator4 = _createForOfIteratorHelper$7(matchingProviders),
|
|
45049
45041
|
_step4;
|
|
45050
45042
|
try {
|
|
45051
45043
|
var _loop2 = function _loop2() {
|
|
@@ -45116,7 +45108,7 @@ var DiscoverWidgetsDetail = function DiscoverWidgetsDetail(_ref) {
|
|
|
45116
45108
|
// Transition to downloading
|
|
45117
45109
|
setProgressWidgets(function (prev) {
|
|
45118
45110
|
return prev.map(function (w) {
|
|
45119
|
-
return _objectSpread$
|
|
45111
|
+
return _objectSpread$d(_objectSpread$d({}, w), {}, {
|
|
45120
45112
|
status: "downloading"
|
|
45121
45113
|
});
|
|
45122
45114
|
});
|
|
@@ -45314,9 +45306,9 @@ var DiscoverWidgetsDetail = function DiscoverWidgetsDetail(_ref) {
|
|
|
45314
45306
|
});
|
|
45315
45307
|
};
|
|
45316
45308
|
|
|
45317
|
-
function _createForOfIteratorHelper$
|
|
45318
|
-
function _unsupportedIterableToArray$
|
|
45319
|
-
function _arrayLikeToArray$
|
|
45309
|
+
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; } } }; }
|
|
45310
|
+
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; } }
|
|
45311
|
+
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; }
|
|
45320
45312
|
|
|
45321
45313
|
/**
|
|
45322
45314
|
* Walk a workspace layout and collect widget component keys that are
|
|
@@ -45330,7 +45322,7 @@ function collectComponentsFromLayout(layout) {
|
|
|
45330
45322
|
|
|
45331
45323
|
// Collect IDs of layout items that are actively referenced by grid cells
|
|
45332
45324
|
var activeItemIds = new Set();
|
|
45333
|
-
var _iterator = _createForOfIteratorHelper$
|
|
45325
|
+
var _iterator = _createForOfIteratorHelper$6(layout),
|
|
45334
45326
|
_step;
|
|
45335
45327
|
try {
|
|
45336
45328
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -45350,7 +45342,7 @@ function collectComponentsFromLayout(layout) {
|
|
|
45350
45342
|
} finally {
|
|
45351
45343
|
_iterator.f();
|
|
45352
45344
|
}
|
|
45353
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
45345
|
+
var _iterator2 = _createForOfIteratorHelper$6(layout),
|
|
45354
45346
|
_step2;
|
|
45355
45347
|
try {
|
|
45356
45348
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -45384,7 +45376,7 @@ function findWidgetUsage(componentNames, workspaces) {
|
|
|
45384
45376
|
if (!(componentNames !== null && componentNames !== void 0 && componentNames.length) || !(workspaces !== null && workspaces !== void 0 && workspaces.length)) return [];
|
|
45385
45377
|
var nameSet = new Set(componentNames);
|
|
45386
45378
|
var results = [];
|
|
45387
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
45379
|
+
var _iterator3 = _createForOfIteratorHelper$6(workspaces),
|
|
45388
45380
|
_step3;
|
|
45389
45381
|
try {
|
|
45390
45382
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -45619,9 +45611,9 @@ var useInstalledWidgets = function useInstalledWidgets() {
|
|
|
45619
45611
|
};
|
|
45620
45612
|
};
|
|
45621
45613
|
|
|
45622
|
-
function _createForOfIteratorHelper$
|
|
45623
|
-
function _unsupportedIterableToArray$
|
|
45624
|
-
function _arrayLikeToArray$
|
|
45614
|
+
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; } } }; }
|
|
45615
|
+
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; } }
|
|
45616
|
+
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; }
|
|
45625
45617
|
|
|
45626
45618
|
/**
|
|
45627
45619
|
* useWidgetUpdates — checks the registry for newer versions of installed widgets
|
|
@@ -45751,7 +45743,7 @@ function useWidgetUpdates() {
|
|
|
45751
45743
|
// (install replaces the entire package, not just one widget)
|
|
45752
45744
|
setUpdates(function (prev) {
|
|
45753
45745
|
var next = new Map(prev);
|
|
45754
|
-
var _iterator = _createForOfIteratorHelper$
|
|
45746
|
+
var _iterator = _createForOfIteratorHelper$5(next),
|
|
45755
45747
|
_step;
|
|
45756
45748
|
try {
|
|
45757
45749
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -45802,8 +45794,8 @@ function useWidgetUpdates() {
|
|
|
45802
45794
|
};
|
|
45803
45795
|
}
|
|
45804
45796
|
|
|
45805
|
-
function ownKeys$
|
|
45806
|
-
function _objectSpread$
|
|
45797
|
+
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; }
|
|
45798
|
+
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; }
|
|
45807
45799
|
var WidgetsSection = function WidgetsSection(_ref) {
|
|
45808
45800
|
var _ref$workspaces = _ref.workspaces,
|
|
45809
45801
|
workspaces = _ref$workspaces === void 0 ? [] : _ref$workspaces;
|
|
@@ -45981,7 +45973,7 @@ var WidgetsSection = function WidgetsSection(_ref) {
|
|
|
45981
45973
|
})));
|
|
45982
45974
|
var usage = findWidgetUsage(allComponentNames, workspaces);
|
|
45983
45975
|
setDeleteUsage(usage);
|
|
45984
|
-
setDeleteTarget(_objectSpread$
|
|
45976
|
+
setDeleteTarget(_objectSpread$c(_objectSpread$c({}, widget), {}, {
|
|
45985
45977
|
_siblings: siblings
|
|
45986
45978
|
}));
|
|
45987
45979
|
}
|
|
@@ -46090,7 +46082,7 @@ var WidgetsSection = function WidgetsSection(_ref) {
|
|
|
46090
46082
|
_t2 = _context2["catch"](1);
|
|
46091
46083
|
setProgressWidgets(function (prev) {
|
|
46092
46084
|
return prev.map(function (w) {
|
|
46093
|
-
return _objectSpread$
|
|
46085
|
+
return _objectSpread$c(_objectSpread$c({}, w), {}, {
|
|
46094
46086
|
status: "failed",
|
|
46095
46087
|
error: _t2.message
|
|
46096
46088
|
});
|
|
@@ -46195,7 +46187,7 @@ var WidgetsSection = function WidgetsSection(_ref) {
|
|
|
46195
46187
|
_t3 = _context3["catch"](1);
|
|
46196
46188
|
setProgressWidgets(function (prev) {
|
|
46197
46189
|
return prev.map(function (w) {
|
|
46198
|
-
return _objectSpread$
|
|
46190
|
+
return _objectSpread$c(_objectSpread$c({}, w), {}, {
|
|
46199
46191
|
status: "failed",
|
|
46200
46192
|
error: _t3.message
|
|
46201
46193
|
});
|
|
@@ -46501,7 +46493,7 @@ var WidgetsSection = function WidgetsSection(_ref) {
|
|
|
46501
46493
|
widgets: progressWidgets,
|
|
46502
46494
|
isComplete: progressComplete,
|
|
46503
46495
|
onDone: handleProgressDone
|
|
46504
|
-
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.ConfirmationModal, _objectSpread$
|
|
46496
|
+
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.ConfirmationModal, _objectSpread$c(_objectSpread$c({
|
|
46505
46497
|
isOpen: !!deleteTarget,
|
|
46506
46498
|
setIsOpen: function setIsOpen() {
|
|
46507
46499
|
setDeleteTarget(null);
|
|
@@ -46576,8 +46568,8 @@ var WidgetsSection = function WidgetsSection(_ref) {
|
|
|
46576
46568
|
});
|
|
46577
46569
|
};
|
|
46578
46570
|
|
|
46579
|
-
function ownKeys$
|
|
46580
|
-
function _objectSpread$
|
|
46571
|
+
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; }
|
|
46572
|
+
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; }
|
|
46581
46573
|
var AccountSection = function AccountSection(_ref) {
|
|
46582
46574
|
var authStatus = _ref.authStatus,
|
|
46583
46575
|
authProfile = _ref.authProfile,
|
|
@@ -46682,7 +46674,7 @@ var AuthenticatedView = function AuthenticatedView(_ref3) {
|
|
|
46682
46674
|
onPackageUpdated: function onPackageUpdated(updatedPkg) {
|
|
46683
46675
|
setPackages(function (prev) {
|
|
46684
46676
|
return prev.map(function (p) {
|
|
46685
|
-
return p.name === updatedPkg.name && p.scope === updatedPkg.scope ? _objectSpread$
|
|
46677
|
+
return p.name === updatedPkg.name && p.scope === updatedPkg.scope ? _objectSpread$b(_objectSpread$b({}, p), updatedPkg) : p;
|
|
46686
46678
|
});
|
|
46687
46679
|
});
|
|
46688
46680
|
},
|
|
@@ -46937,7 +46929,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
46937
46929
|
case 2:
|
|
46938
46930
|
result = _context3.sent;
|
|
46939
46931
|
if (result) {
|
|
46940
|
-
onSaved(_objectSpread$
|
|
46932
|
+
onSaved(_objectSpread$b(_objectSpread$b({}, pkg), updates));
|
|
46941
46933
|
}
|
|
46942
46934
|
_context3.next = 4;
|
|
46943
46935
|
break;
|
|
@@ -47002,7 +46994,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
47002
46994
|
label: "Display Name",
|
|
47003
46995
|
value: form.displayName,
|
|
47004
46996
|
onChange: function onChange(v) {
|
|
47005
|
-
return setForm(_objectSpread$
|
|
46997
|
+
return setForm(_objectSpread$b(_objectSpread$b({}, form), {}, {
|
|
47006
46998
|
displayName: v
|
|
47007
46999
|
}));
|
|
47008
47000
|
}
|
|
@@ -47010,7 +47002,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
47010
47002
|
label: "Description",
|
|
47011
47003
|
value: form.description,
|
|
47012
47004
|
onChange: function onChange(v) {
|
|
47013
|
-
return setForm(_objectSpread$
|
|
47005
|
+
return setForm(_objectSpread$b(_objectSpread$b({}, form), {}, {
|
|
47014
47006
|
description: v
|
|
47015
47007
|
}));
|
|
47016
47008
|
}
|
|
@@ -47018,7 +47010,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
47018
47010
|
label: "Category",
|
|
47019
47011
|
value: form.category,
|
|
47020
47012
|
onChange: function onChange(v) {
|
|
47021
|
-
return setForm(_objectSpread$
|
|
47013
|
+
return setForm(_objectSpread$b(_objectSpread$b({}, form), {}, {
|
|
47022
47014
|
category: v
|
|
47023
47015
|
}));
|
|
47024
47016
|
}
|
|
@@ -47026,7 +47018,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
47026
47018
|
label: "Tags (comma-separated)",
|
|
47027
47019
|
value: form.tags,
|
|
47028
47020
|
onChange: function onChange(v) {
|
|
47029
|
-
return setForm(_objectSpread$
|
|
47021
|
+
return setForm(_objectSpread$b(_objectSpread$b({}, form), {}, {
|
|
47030
47022
|
tags: v
|
|
47031
47023
|
}));
|
|
47032
47024
|
}
|
|
@@ -47038,7 +47030,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
47038
47030
|
}), /*#__PURE__*/jsxRuntime.jsxs("select", {
|
|
47039
47031
|
value: form.visibility,
|
|
47040
47032
|
onChange: function onChange(e) {
|
|
47041
|
-
return setForm(_objectSpread$
|
|
47033
|
+
return setForm(_objectSpread$b(_objectSpread$b({}, form), {}, {
|
|
47042
47034
|
visibility: e.target.value
|
|
47043
47035
|
}));
|
|
47044
47036
|
},
|
|
@@ -47142,8 +47134,8 @@ var EditField = function EditField(_ref7) {
|
|
|
47142
47134
|
});
|
|
47143
47135
|
};
|
|
47144
47136
|
|
|
47145
|
-
function ownKeys$
|
|
47146
|
-
function _objectSpread$
|
|
47137
|
+
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; }
|
|
47138
|
+
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; }
|
|
47147
47139
|
var NotificationsSection = function NotificationsSection(_ref) {
|
|
47148
47140
|
var _ref$workspaces = _ref.workspaces,
|
|
47149
47141
|
workspaces = _ref$workspaces === void 0 ? [] : _ref$workspaces;
|
|
@@ -47226,7 +47218,7 @@ var NotificationsSection = function NotificationsSection(_ref) {
|
|
|
47226
47218
|
}
|
|
47227
47219
|
function handleTypeToggle(widgetUuid, typeKey, value) {
|
|
47228
47220
|
var _window$mainApi4;
|
|
47229
|
-
var updated = _objectSpread$
|
|
47221
|
+
var updated = _objectSpread$a(_objectSpread$a({}, instances), {}, _defineProperty({}, widgetUuid, _objectSpread$a(_objectSpread$a({}, instances[widgetUuid] || {}), {}, _defineProperty({}, typeKey, value))));
|
|
47230
47222
|
setInstances(updated);
|
|
47231
47223
|
(_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));
|
|
47232
47224
|
}
|
|
@@ -47622,8 +47614,8 @@ var McpServerSection = function McpServerSection() {
|
|
|
47622
47614
|
});
|
|
47623
47615
|
};
|
|
47624
47616
|
|
|
47625
|
-
function ownKeys$
|
|
47626
|
-
function _objectSpread$
|
|
47617
|
+
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; }
|
|
47618
|
+
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; }
|
|
47627
47619
|
var MODELS = [{
|
|
47628
47620
|
value: "claude-sonnet-4-20250514",
|
|
47629
47621
|
label: "Claude Sonnet 4"
|
|
@@ -47709,8 +47701,8 @@ var AiAssistantSection = function AiAssistantSection() {
|
|
|
47709
47701
|
var saveAiSettings = React.useCallback(function (updates) {
|
|
47710
47702
|
if (appContext !== null && appContext !== void 0 && appContext.changeSettings) {
|
|
47711
47703
|
var current = appContext.settings || {};
|
|
47712
|
-
var newAiSettings = _objectSpread$
|
|
47713
|
-
appContext.changeSettings(_objectSpread$
|
|
47704
|
+
var newAiSettings = _objectSpread$9(_objectSpread$9({}, current.aiAssistant || {}), updates);
|
|
47705
|
+
appContext.changeSettings(_objectSpread$9(_objectSpread$9({}, current), {}, {
|
|
47714
47706
|
aiAssistant: newAiSettings
|
|
47715
47707
|
}));
|
|
47716
47708
|
}
|
|
@@ -48653,8 +48645,8 @@ var DashTabBar = function DashTabBar(_ref) {
|
|
|
48653
48645
|
});
|
|
48654
48646
|
};
|
|
48655
48647
|
|
|
48656
|
-
function ownKeys$
|
|
48657
|
-
function _objectSpread$
|
|
48648
|
+
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; }
|
|
48649
|
+
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; }
|
|
48658
48650
|
var PageTabBar = function PageTabBar(_ref) {
|
|
48659
48651
|
var _ref$pages = _ref.pages,
|
|
48660
48652
|
pages = _ref$pages === void 0 ? [] : _ref$pages,
|
|
@@ -48738,7 +48730,7 @@ var PageTabBar = function PageTabBar(_ref) {
|
|
|
48738
48730
|
|
|
48739
48731
|
// Update order values
|
|
48740
48732
|
var updated = reordered.map(function (p, i) {
|
|
48741
|
-
return _objectSpread$
|
|
48733
|
+
return _objectSpread$8(_objectSpread$8({}, p), {}, {
|
|
48742
48734
|
order: i
|
|
48743
48735
|
});
|
|
48744
48736
|
});
|
|
@@ -48828,8 +48820,8 @@ var PageTabBar = function PageTabBar(_ref) {
|
|
|
48828
48820
|
});
|
|
48829
48821
|
};
|
|
48830
48822
|
|
|
48831
|
-
function ownKeys$
|
|
48832
|
-
function _objectSpread$
|
|
48823
|
+
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; }
|
|
48824
|
+
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; }
|
|
48833
48825
|
function createEmptySidebarLayout() {
|
|
48834
48826
|
return [LayoutModel({
|
|
48835
48827
|
id: 90001,
|
|
@@ -48921,11 +48913,11 @@ var PinnedSidebar = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
48921
48913
|
// Ensure sidebar grid uses grow mode for full-height rendering
|
|
48922
48914
|
layout = layout.map(function (item) {
|
|
48923
48915
|
if (item.grid && item.parent === 0) {
|
|
48924
|
-
return _objectSpread$
|
|
48916
|
+
return _objectSpread$7(_objectSpread$7({}, item), {}, {
|
|
48925
48917
|
scrollable: false,
|
|
48926
48918
|
height: "h-full",
|
|
48927
|
-
grid: _objectSpread$
|
|
48928
|
-
rowModes: _objectSpread$
|
|
48919
|
+
grid: _objectSpread$7(_objectSpread$7({}, item.grid), {}, {
|
|
48920
|
+
rowModes: _objectSpread$7(_objectSpread$7({}, item.grid.rowModes), {}, {
|
|
48929
48921
|
1: "grow"
|
|
48930
48922
|
})
|
|
48931
48923
|
})
|
|
@@ -48933,14 +48925,14 @@ var PinnedSidebar = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
48933
48925
|
}
|
|
48934
48926
|
return item;
|
|
48935
48927
|
});
|
|
48936
|
-
return _objectSpread$
|
|
48928
|
+
return _objectSpread$7(_objectSpread$7({}, workspaceRefInternal.current), {}, {
|
|
48937
48929
|
layout: layout
|
|
48938
48930
|
});
|
|
48939
48931
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
48940
48932
|
}, [workspace === null || workspace === void 0 ? void 0 : workspace.id, sidebarLayout, hasWidget]);
|
|
48941
48933
|
var handleSidebarChange = React.useCallback(function (updatedWs) {
|
|
48942
48934
|
if (onWorkspaceChange && workspaceRefInternal.current) {
|
|
48943
|
-
onWorkspaceChange(_objectSpread$
|
|
48935
|
+
onWorkspaceChange(_objectSpread$7(_objectSpread$7({}, workspaceRefInternal.current), {}, {
|
|
48944
48936
|
sidebarLayout: updatedWs.layout || []
|
|
48945
48937
|
}));
|
|
48946
48938
|
}
|
|
@@ -49361,11 +49353,11 @@ var PopoverItem = function PopoverItem(_ref5) {
|
|
|
49361
49353
|
});
|
|
49362
49354
|
};
|
|
49363
49355
|
|
|
49364
|
-
function _createForOfIteratorHelper$
|
|
49365
|
-
function _unsupportedIterableToArray$
|
|
49366
|
-
function _arrayLikeToArray$
|
|
49367
|
-
function ownKeys$
|
|
49368
|
-
function _objectSpread$
|
|
49356
|
+
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; } } }; }
|
|
49357
|
+
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; } }
|
|
49358
|
+
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; }
|
|
49359
|
+
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; }
|
|
49360
|
+
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; }
|
|
49369
49361
|
var DraggableWidgetItem = function DraggableWidgetItem(_ref) {
|
|
49370
49362
|
var widgetKey = _ref.widgetKey,
|
|
49371
49363
|
widget = _ref.widget;
|
|
@@ -49491,7 +49483,7 @@ var SidebarDiscoverContent = function SidebarDiscoverContent(_ref2) {
|
|
|
49491
49483
|
if (registry.installError) {
|
|
49492
49484
|
setProgressWidgets(function (prev) {
|
|
49493
49485
|
return prev.map(function (w) {
|
|
49494
|
-
return _objectSpread$
|
|
49486
|
+
return _objectSpread$6(_objectSpread$6({}, w), {}, {
|
|
49495
49487
|
status: "failed",
|
|
49496
49488
|
error: registry.installError
|
|
49497
49489
|
});
|
|
@@ -49500,7 +49492,7 @@ var SidebarDiscoverContent = function SidebarDiscoverContent(_ref2) {
|
|
|
49500
49492
|
} else {
|
|
49501
49493
|
setProgressWidgets(function (prev) {
|
|
49502
49494
|
return prev.map(function (w) {
|
|
49503
|
-
return _objectSpread$
|
|
49495
|
+
return _objectSpread$6(_objectSpread$6({}, w), {}, {
|
|
49504
49496
|
status: "installed"
|
|
49505
49497
|
});
|
|
49506
49498
|
});
|
|
@@ -49545,7 +49537,7 @@ var SidebarDiscoverContent = function SidebarDiscoverContent(_ref2) {
|
|
|
49545
49537
|
// Transition to downloading
|
|
49546
49538
|
setProgressWidgets(function (prev) {
|
|
49547
49539
|
return prev.map(function (w) {
|
|
49548
|
-
return _objectSpread$
|
|
49540
|
+
return _objectSpread$6(_objectSpread$6({}, w), {}, {
|
|
49549
49541
|
status: "downloading"
|
|
49550
49542
|
});
|
|
49551
49543
|
});
|
|
@@ -49905,7 +49897,7 @@ var WidgetSidebar = function WidgetSidebar(_ref4) {
|
|
|
49905
49897
|
return _context2.abrupt("return");
|
|
49906
49898
|
case 2:
|
|
49907
49899
|
names = new Set();
|
|
49908
|
-
_iterator = _createForOfIteratorHelper$
|
|
49900
|
+
_iterator = _createForOfIteratorHelper$4(widgets);
|
|
49909
49901
|
try {
|
|
49910
49902
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
49911
49903
|
w = _step.value;
|
|
@@ -50291,11 +50283,11 @@ var useMissingWidgets = function useMissingWidgets(workspace) {
|
|
|
50291
50283
|
};
|
|
50292
50284
|
};
|
|
50293
50285
|
|
|
50294
|
-
function ownKeys$
|
|
50295
|
-
function _objectSpread$
|
|
50296
|
-
function _createForOfIteratorHelper$
|
|
50297
|
-
function _unsupportedIterableToArray$
|
|
50298
|
-
function _arrayLikeToArray$
|
|
50286
|
+
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; }
|
|
50287
|
+
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; }
|
|
50288
|
+
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; } } }; }
|
|
50289
|
+
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; } }
|
|
50290
|
+
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; }
|
|
50299
50291
|
var MissingWidgetsModal = function MissingWidgetsModal(_ref) {
|
|
50300
50292
|
var _ref$missingComponent = _ref.missingComponents,
|
|
50301
50293
|
missingComponents = _ref$missingComponent === void 0 ? [] : _ref$missingComponent,
|
|
@@ -50346,7 +50338,7 @@ var MissingWidgetsModal = function MissingWidgetsModal(_ref) {
|
|
|
50346
50338
|
case 0:
|
|
50347
50339
|
results = [];
|
|
50348
50340
|
seen = new Set();
|
|
50349
|
-
_iterator = _createForOfIteratorHelper$
|
|
50341
|
+
_iterator = _createForOfIteratorHelper$3(missingComponents);
|
|
50350
50342
|
_context2.prev = 1;
|
|
50351
50343
|
_loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
|
|
50352
50344
|
var componentKey, _getWidgetSearchQuery, packageName, widgetName, pkg, result;
|
|
@@ -50517,7 +50509,7 @@ var MissingWidgetsModal = function MissingWidgetsModal(_ref) {
|
|
|
50517
50509
|
case 2:
|
|
50518
50510
|
setProgressWidgets(function (prev) {
|
|
50519
50511
|
var next = _toConsumableArray(prev);
|
|
50520
|
-
next[i] = _objectSpread$
|
|
50512
|
+
next[i] = _objectSpread$5(_objectSpread$5({}, next[i]), {}, {
|
|
50521
50513
|
status: "installed"
|
|
50522
50514
|
});
|
|
50523
50515
|
return next;
|
|
@@ -50529,7 +50521,7 @@ var MissingWidgetsModal = function MissingWidgetsModal(_ref) {
|
|
|
50529
50521
|
_t3 = _context3["catch"](1);
|
|
50530
50522
|
setProgressWidgets(function (prev) {
|
|
50531
50523
|
var next = _toConsumableArray(prev);
|
|
50532
|
-
next[i] = _objectSpread$
|
|
50524
|
+
next[i] = _objectSpread$5(_objectSpread$5({}, next[i]), {}, {
|
|
50533
50525
|
status: "failed",
|
|
50534
50526
|
error: _t3.message || "Install failed"
|
|
50535
50527
|
});
|
|
@@ -50667,8 +50659,8 @@ var MissingWidgetsModal = function MissingWidgetsModal(_ref) {
|
|
|
50667
50659
|
});
|
|
50668
50660
|
};
|
|
50669
50661
|
|
|
50670
|
-
function ownKeys$
|
|
50671
|
-
function _objectSpread$
|
|
50662
|
+
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; }
|
|
50663
|
+
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; }
|
|
50672
50664
|
var DashboardStage = function DashboardStage(_ref) {
|
|
50673
50665
|
var dashApi = _ref.dashApi,
|
|
50674
50666
|
credentials = _ref.credentials,
|
|
@@ -50685,6 +50677,8 @@ var DashboardStage = function DashboardStage(_ref) {
|
|
|
50685
50677
|
_ref.showWelcomePrompt;
|
|
50686
50678
|
_ref.onAcceptWelcome;
|
|
50687
50679
|
_ref.onDismissWelcome;
|
|
50680
|
+
var _ref$renderAiAssistan = _ref.renderAiAssistant,
|
|
50681
|
+
renderAiAssistant = _ref$renderAiAssistan === void 0 ? null : _ref$renderAiAssistan;
|
|
50688
50682
|
return /*#__PURE__*/jsxRuntime.jsx(React.Profiler, {
|
|
50689
50683
|
id: "myapp",
|
|
50690
50684
|
onRender: function onRender() {},
|
|
@@ -50699,7 +50693,8 @@ var DashboardStage = function DashboardStage(_ref) {
|
|
|
50699
50693
|
preview: preview,
|
|
50700
50694
|
backgroundColor: backgroundColor,
|
|
50701
50695
|
popout: popout,
|
|
50702
|
-
popoutWorkspaceId: popoutWorkspaceId
|
|
50696
|
+
popoutWorkspaceId: popoutWorkspaceId,
|
|
50697
|
+
renderAiAssistant: renderAiAssistant
|
|
50703
50698
|
})
|
|
50704
50699
|
})
|
|
50705
50700
|
});
|
|
@@ -50721,7 +50716,7 @@ var PageLayoutBuilder = /*#__PURE__*/React.memo(function PageLayoutBuilder(_ref2
|
|
|
50721
50716
|
workspaceRef = _ref2.workspaceRef,
|
|
50722
50717
|
onWidgetPopout = _ref2.onWidgetPopout;
|
|
50723
50718
|
var pageWorkspace = React.useMemo(function () {
|
|
50724
|
-
return _objectSpread$
|
|
50719
|
+
return _objectSpread$4(_objectSpread$4({}, workspaceItem), {}, {
|
|
50725
50720
|
layout: page.layout || []
|
|
50726
50721
|
});
|
|
50727
50722
|
},
|
|
@@ -50755,7 +50750,9 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
50755
50750
|
var _ref3$popout = _ref3.popout,
|
|
50756
50751
|
popout = _ref3$popout === void 0 ? false : _ref3$popout,
|
|
50757
50752
|
_ref3$popoutWorkspace = _ref3.popoutWorkspaceId,
|
|
50758
|
-
popoutWorkspaceId = _ref3$popoutWorkspace === void 0 ? null : _ref3$popoutWorkspace
|
|
50753
|
+
popoutWorkspaceId = _ref3$popoutWorkspace === void 0 ? null : _ref3$popoutWorkspace,
|
|
50754
|
+
_ref3$renderAiAssista = _ref3.renderAiAssistant,
|
|
50755
|
+
renderAiAssistant = _ref3$renderAiAssista === void 0 ? null : _ref3$renderAiAssista;
|
|
50759
50756
|
var _useContext = React.useContext(DashboardContext),
|
|
50760
50757
|
pub = _useContext.pub;
|
|
50761
50758
|
var appContext = React.useContext(AppContext);
|
|
@@ -51123,7 +51120,7 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51123
51120
|
// Sync fresh workspace data to existing tab
|
|
51124
51121
|
setOpenTabs(function (prev) {
|
|
51125
51122
|
return prev.map(function (tab) {
|
|
51126
|
-
return tab.id === existingTab.id ? _objectSpread$
|
|
51123
|
+
return tab.id === existingTab.id ? _objectSpread$4(_objectSpread$4({}, tab), {}, {
|
|
51127
51124
|
name: workspaceItem.name || "Untitled",
|
|
51128
51125
|
workspace: workspaceItem
|
|
51129
51126
|
}) : tab;
|
|
@@ -51176,7 +51173,7 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51176
51173
|
if (!ws) return;
|
|
51177
51174
|
setOpenTabs(function (prev) {
|
|
51178
51175
|
return prev.map(function (tab) {
|
|
51179
|
-
return tab.id === ws.id ? _objectSpread$
|
|
51176
|
+
return tab.id === ws.id ? _objectSpread$4(_objectSpread$4({}, tab), {}, {
|
|
51180
51177
|
name: ws.name || "Untitled",
|
|
51181
51178
|
workspace: ws
|
|
51182
51179
|
}) : tab;
|
|
@@ -51273,7 +51270,7 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51273
51270
|
if (activeTabId) {
|
|
51274
51271
|
setOpenTabs(function (prev) {
|
|
51275
51272
|
return prev.map(function (tab) {
|
|
51276
|
-
return tab.id === activeTabId ? _objectSpread$
|
|
51273
|
+
return tab.id === activeTabId ? _objectSpread$4(_objectSpread$4({}, tab), {}, {
|
|
51277
51274
|
name: wsModel.name || "Untitled",
|
|
51278
51275
|
workspace: wsModel
|
|
51279
51276
|
}) : tab;
|
|
@@ -51298,8 +51295,8 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51298
51295
|
if (workspaceSelected && widgetId) {
|
|
51299
51296
|
// Build widget-specific provider selections
|
|
51300
51297
|
var currentSelections = workspaceSelected.selectedProviders || {};
|
|
51301
|
-
var updatedWorkspace = _objectSpread$
|
|
51302
|
-
selectedProviders: _objectSpread$
|
|
51298
|
+
var updatedWorkspace = _objectSpread$4(_objectSpread$4({}, workspaceSelected), {}, {
|
|
51299
|
+
selectedProviders: _objectSpread$4(_objectSpread$4({}, currentSelections), {}, _defineProperty({}, widgetId, updatedProviders))
|
|
51303
51300
|
});
|
|
51304
51301
|
|
|
51305
51302
|
// Update the tab's workspace reference
|
|
@@ -51322,7 +51319,7 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51322
51319
|
var sidebarWorkspaceRef = React.useRef(null);
|
|
51323
51320
|
function handleSidebarToggle(enabled) {
|
|
51324
51321
|
if (!workspaceSelected) return;
|
|
51325
|
-
handleWorkspaceChange(_objectSpread$
|
|
51322
|
+
handleWorkspaceChange(_objectSpread$4(_objectSpread$4({}, workspaceSelected), {}, {
|
|
51326
51323
|
sidebarEnabled: enabled
|
|
51327
51324
|
}));
|
|
51328
51325
|
}
|
|
@@ -51366,7 +51363,7 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51366
51363
|
}
|
|
51367
51364
|
var newPage = DashboardModel.createPage("Page ".concat(existingPages.length + 1));
|
|
51368
51365
|
newPage.order = existingPages.length;
|
|
51369
|
-
var updatedWorkspace = _objectSpread$
|
|
51366
|
+
var updatedWorkspace = _objectSpread$4(_objectSpread$4({}, workspaceSelected), {}, {
|
|
51370
51367
|
pages: [].concat(_toConsumableArray(existingPages), [newPage]),
|
|
51371
51368
|
activePageId: newPage.id
|
|
51372
51369
|
});
|
|
@@ -51379,11 +51376,11 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51379
51376
|
function handleRenamePage(pageId, newName) {
|
|
51380
51377
|
if (!workspaceSelected) return;
|
|
51381
51378
|
var updatedPages = workspacePages.map(function (p) {
|
|
51382
|
-
return p.id === pageId ? _objectSpread$
|
|
51379
|
+
return p.id === pageId ? _objectSpread$4(_objectSpread$4({}, p), {}, {
|
|
51383
51380
|
name: newName
|
|
51384
51381
|
}) : p;
|
|
51385
51382
|
});
|
|
51386
|
-
handleWorkspaceChange(_objectSpread$
|
|
51383
|
+
handleWorkspaceChange(_objectSpread$4(_objectSpread$4({}, workspaceSelected), {}, {
|
|
51387
51384
|
pages: updatedPages
|
|
51388
51385
|
}));
|
|
51389
51386
|
}
|
|
@@ -51398,7 +51395,7 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51398
51395
|
|
|
51399
51396
|
// If only one page remains, convert back to single-page mode
|
|
51400
51397
|
if (updatedPages.length === 1) {
|
|
51401
|
-
handleWorkspaceChange(_objectSpread$
|
|
51398
|
+
handleWorkspaceChange(_objectSpread$4(_objectSpread$4({}, workspaceSelected), {}, {
|
|
51402
51399
|
layout: updatedPages[0].layout,
|
|
51403
51400
|
pages: [],
|
|
51404
51401
|
activePageId: null
|
|
@@ -51406,14 +51403,14 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51406
51403
|
setActivePageId(null);
|
|
51407
51404
|
return;
|
|
51408
51405
|
}
|
|
51409
|
-
handleWorkspaceChange(_objectSpread$
|
|
51406
|
+
handleWorkspaceChange(_objectSpread$4(_objectSpread$4({}, workspaceSelected), {}, {
|
|
51410
51407
|
pages: updatedPages,
|
|
51411
51408
|
activePageId: newActiveId
|
|
51412
51409
|
}));
|
|
51413
51410
|
}
|
|
51414
51411
|
function handleReorderPages(reorderedPages) {
|
|
51415
51412
|
if (!workspaceSelected) return;
|
|
51416
|
-
handleWorkspaceChange(_objectSpread$
|
|
51413
|
+
handleWorkspaceChange(_objectSpread$4(_objectSpread$4({}, workspaceSelected), {}, {
|
|
51417
51414
|
pages: reorderedPages
|
|
51418
51415
|
}));
|
|
51419
51416
|
}
|
|
@@ -51627,9 +51624,9 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51627
51624
|
var _pageRef$current;
|
|
51628
51625
|
var pageRef = pageRefsMap.current[page.id];
|
|
51629
51626
|
var latestLayout = (pageRef === null || pageRef === void 0 || (_pageRef$current = pageRef.current) === null || _pageRef$current === void 0 ? void 0 : _pageRef$current.layout) || page.layout || [];
|
|
51630
|
-
return _objectSpread$
|
|
51627
|
+
return _objectSpread$4(_objectSpread$4({}, page), {}, {
|
|
51631
51628
|
layout: latestLayout.map(function (item) {
|
|
51632
|
-
var copy = _objectSpread$
|
|
51629
|
+
var copy = _objectSpread$4({}, item);
|
|
51633
51630
|
delete copy.widgetConfig;
|
|
51634
51631
|
return copy;
|
|
51635
51632
|
})
|
|
@@ -51638,7 +51635,7 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51638
51635
|
workspaceToSave.activePageId = currentActivePageId;
|
|
51639
51636
|
// Also sanitize the root layout (may be stale from pre-pages era)
|
|
51640
51637
|
workspaceToSave.layout = (workspaceToSave.layout || []).map(function (item) {
|
|
51641
|
-
var copy = _objectSpread$
|
|
51638
|
+
var copy = _objectSpread$4({}, item);
|
|
51642
51639
|
delete copy.widgetConfig;
|
|
51643
51640
|
return copy;
|
|
51644
51641
|
});
|
|
@@ -51655,7 +51652,7 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51655
51652
|
// Gather sidebar layout from its LayoutBuilder ref
|
|
51656
51653
|
if ((_sidebarWorkspaceRef$ = sidebarWorkspaceRef.current) !== null && _sidebarWorkspaceRef$ !== void 0 && _sidebarWorkspaceRef$.layout) {
|
|
51657
51654
|
workspaceToSave.sidebarLayout = sidebarWorkspaceRef.current.layout.map(function (item) {
|
|
51658
|
-
var copy = _objectSpread$
|
|
51655
|
+
var copy = _objectSpread$4({}, item);
|
|
51659
51656
|
delete copy.widgetConfig;
|
|
51660
51657
|
return copy;
|
|
51661
51658
|
});
|
|
@@ -51701,7 +51698,7 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51701
51698
|
if (savedWs) {
|
|
51702
51699
|
setOpenTabs(function (prev) {
|
|
51703
51700
|
return prev.map(function (tab) {
|
|
51704
|
-
return tab.id === activeTabId ? _objectSpread$
|
|
51701
|
+
return tab.id === activeTabId ? _objectSpread$4(_objectSpread$4({}, tab), {}, {
|
|
51705
51702
|
name: savedWs.name || "Untitled",
|
|
51706
51703
|
workspace: savedWs
|
|
51707
51704
|
}) : tab;
|
|
@@ -52005,7 +52002,7 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
52005
52002
|
}), !popout && !previewMode && workspaceSelected && /*#__PURE__*/jsxRuntime.jsx(WidgetSidebar, {
|
|
52006
52003
|
collapsed: widgetSidebarCollapsed,
|
|
52007
52004
|
onCollapsedChange: setWidgetSidebarCollapsed
|
|
52008
|
-
})]
|
|
52005
|
+
}), !popout && renderAiAssistant]
|
|
52009
52006
|
}), !popout && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
52010
52007
|
children: [/*#__PURE__*/jsxRuntime.jsx(AppSettingsModal, {
|
|
52011
52008
|
isOpen: isAppSettingsOpen,
|
|
@@ -52424,8 +52421,8 @@ var DashboardHeader = function DashboardHeader(_ref) {
|
|
|
52424
52421
|
});
|
|
52425
52422
|
};
|
|
52426
52423
|
|
|
52427
|
-
function ownKeys$
|
|
52428
|
-
function _objectSpread$
|
|
52424
|
+
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; }
|
|
52425
|
+
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; }
|
|
52429
52426
|
var MAX_LOG_ENTRIES = 200;
|
|
52430
52427
|
function truncateJson(obj) {
|
|
52431
52428
|
var maxLen = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 120;
|
|
@@ -52490,7 +52487,7 @@ var DashboardMonitor = function DashboardMonitor() {
|
|
|
52490
52487
|
React.useEffect(function () {
|
|
52491
52488
|
var unsub = DashboardPublisher.onMonitor(function (data) {
|
|
52492
52489
|
setEventLog(function (prev) {
|
|
52493
|
-
var next = [].concat(_toConsumableArray(prev), [_objectSpread$
|
|
52490
|
+
var next = [].concat(_toConsumableArray(prev), [_objectSpread$3(_objectSpread$3({}, data), {}, {
|
|
52494
52491
|
parsed: parseEventType(data.eventType)
|
|
52495
52492
|
})]);
|
|
52496
52493
|
return next.length > MAX_LOG_ENTRIES ? next.slice(-MAX_LOG_ENTRIES) : next;
|
|
@@ -52606,11 +52603,11 @@ var DashboardMonitor = function DashboardMonitor() {
|
|
|
52606
52603
|
});
|
|
52607
52604
|
};
|
|
52608
52605
|
|
|
52609
|
-
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; }
|
|
52610
|
-
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; }
|
|
52611
|
-
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; } } }; }
|
|
52612
|
-
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; } }
|
|
52613
|
-
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; }
|
|
52606
|
+
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; }
|
|
52607
|
+
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; }
|
|
52608
|
+
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; } } }; }
|
|
52609
|
+
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; } }
|
|
52610
|
+
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; }
|
|
52614
52611
|
var WidgetPopoutStage = function WidgetPopoutStage(_ref) {
|
|
52615
52612
|
var dashApi = _ref.dashApi,
|
|
52616
52613
|
credentials = _ref.credentials,
|
|
@@ -52692,7 +52689,7 @@ var WidgetPopoutInner = function WidgetPopoutInner(_ref2) {
|
|
|
52692
52689
|
return item.id === widgetId;
|
|
52693
52690
|
});
|
|
52694
52691
|
if (!widget && target.pages && Array.isArray(target.pages)) {
|
|
52695
|
-
var _iterator = _createForOfIteratorHelper(target.pages),
|
|
52692
|
+
var _iterator = _createForOfIteratorHelper$2(target.pages),
|
|
52696
52693
|
_step;
|
|
52697
52694
|
try {
|
|
52698
52695
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -52722,8 +52719,8 @@ var WidgetPopoutInner = function WidgetPopoutInner(_ref2) {
|
|
|
52722
52719
|
|
|
52723
52720
|
// Merge provider selections: widget-level (persisted on layout item)
|
|
52724
52721
|
// takes priority, workspace-level (keyed by uuid) is the fallback
|
|
52725
|
-
var widgetWithProviders = _objectSpread(_objectSpread({}, widget), {}, {
|
|
52726
|
-
selectedProviders: _objectSpread(_objectSpread({}, ((_target$selectedProvi = target.selectedProviders) === null || _target$selectedProvi === void 0 ? void 0 : _target$selectedProvi[widget.uuid]) || {}), widget.selectedProviders || {})
|
|
52722
|
+
var widgetWithProviders = _objectSpread$2(_objectSpread$2({}, widget), {}, {
|
|
52723
|
+
selectedProviders: _objectSpread$2(_objectSpread$2({}, ((_target$selectedProvi = target.selectedProviders) === null || _target$selectedProvi === void 0 ? void 0 : _target$selectedProvi[widget.uuid]) || {}), widget.selectedProviders || {})
|
|
52727
52724
|
});
|
|
52728
52725
|
setWidgetItem(widgetWithProviders);
|
|
52729
52726
|
|
|
@@ -53786,6 +53783,905 @@ var WorkspaceMenu = function WorkspaceMenu(_ref) {
|
|
|
53786
53783
|
});
|
|
53787
53784
|
};
|
|
53788
53785
|
|
|
53786
|
+
/**
|
|
53787
|
+
* StreamingText
|
|
53788
|
+
*
|
|
53789
|
+
* Renders partial text with a blinking cursor while streaming is active.
|
|
53790
|
+
* Shows "Thinking..." when streaming has started but no text has arrived yet.
|
|
53791
|
+
*/
|
|
53792
|
+
var StreamingText = function StreamingText(_ref) {
|
|
53793
|
+
var text = _ref.text,
|
|
53794
|
+
isStreaming = _ref.isStreaming;
|
|
53795
|
+
if (!text && !isStreaming) return null;
|
|
53796
|
+
if (isStreaming && !text) {
|
|
53797
|
+
return /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
53798
|
+
className: "flex items-center gap-2 text-gray-400 text-sm",
|
|
53799
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
53800
|
+
className: "inline-flex gap-1",
|
|
53801
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
53802
|
+
className: "w-1.5 h-1.5 rounded-full bg-indigo-400 animate-bounce",
|
|
53803
|
+
style: {
|
|
53804
|
+
animationDelay: "0ms"
|
|
53805
|
+
}
|
|
53806
|
+
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
53807
|
+
className: "w-1.5 h-1.5 rounded-full bg-indigo-400 animate-bounce",
|
|
53808
|
+
style: {
|
|
53809
|
+
animationDelay: "150ms"
|
|
53810
|
+
}
|
|
53811
|
+
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
53812
|
+
className: "w-1.5 h-1.5 rounded-full bg-indigo-400 animate-bounce",
|
|
53813
|
+
style: {
|
|
53814
|
+
animationDelay: "300ms"
|
|
53815
|
+
}
|
|
53816
|
+
})]
|
|
53817
|
+
}), "Thinking..."]
|
|
53818
|
+
});
|
|
53819
|
+
}
|
|
53820
|
+
return /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
53821
|
+
className: "whitespace-pre-wrap break-words",
|
|
53822
|
+
children: [text, isStreaming && /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
53823
|
+
className: "inline-block w-2 h-4 ml-0.5 bg-indigo-400 animate-pulse align-text-bottom"
|
|
53824
|
+
})]
|
|
53825
|
+
});
|
|
53826
|
+
};
|
|
53827
|
+
|
|
53828
|
+
var ToolCallBlock = function ToolCallBlock(_ref) {
|
|
53829
|
+
var toolName = _ref.toolName,
|
|
53830
|
+
serverName = _ref.serverName,
|
|
53831
|
+
input = _ref.input,
|
|
53832
|
+
result = _ref.result,
|
|
53833
|
+
isError = _ref.isError,
|
|
53834
|
+
isLoading = _ref.isLoading;
|
|
53835
|
+
var _useState = React.useState(false),
|
|
53836
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
53837
|
+
expanded = _useState2[0],
|
|
53838
|
+
setExpanded = _useState2[1];
|
|
53839
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
53840
|
+
className: "my-1.5 border border-gray-700 rounded-md overflow-hidden text-xs",
|
|
53841
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("button", {
|
|
53842
|
+
onClick: function onClick() {
|
|
53843
|
+
return setExpanded(!expanded);
|
|
53844
|
+
},
|
|
53845
|
+
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",
|
|
53846
|
+
children: [isLoading ? /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
53847
|
+
className: "inline-block w-2 h-2 rounded-full bg-yellow-500 animate-pulse"
|
|
53848
|
+
}) : isError ? /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
53849
|
+
className: "inline-block w-2 h-2 rounded-full bg-red-500"
|
|
53850
|
+
}) : /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
53851
|
+
className: "inline-block w-2 h-2 rounded-full bg-green-500"
|
|
53852
|
+
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
53853
|
+
className: "font-mono text-indigo-300",
|
|
53854
|
+
children: toolName
|
|
53855
|
+
}), serverName && /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
53856
|
+
className: "text-gray-600",
|
|
53857
|
+
children: ["via ", serverName]
|
|
53858
|
+
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
53859
|
+
className: "ml-auto text-gray-600",
|
|
53860
|
+
children: expanded ? "\u25B2" : "\u25BC"
|
|
53861
|
+
})]
|
|
53862
|
+
}), expanded && /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
53863
|
+
className: "px-2.5 py-2 space-y-2 bg-gray-900/50",
|
|
53864
|
+
children: [input && /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
53865
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
53866
|
+
className: "text-gray-500 mb-0.5",
|
|
53867
|
+
children: "Input:"
|
|
53868
|
+
}), /*#__PURE__*/jsxRuntime.jsx("pre", {
|
|
53869
|
+
className: "text-gray-400 bg-black/30 p-1.5 rounded overflow-x-auto max-h-32 overflow-y-auto",
|
|
53870
|
+
children: typeof input === "string" ? input : JSON.stringify(input, null, 2)
|
|
53871
|
+
})]
|
|
53872
|
+
}), result !== undefined && /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
53873
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
53874
|
+
className: "text-gray-500 mb-0.5",
|
|
53875
|
+
children: "Result:"
|
|
53876
|
+
}), /*#__PURE__*/jsxRuntime.jsx("pre", {
|
|
53877
|
+
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"),
|
|
53878
|
+
children: typeof result === "string" ? result : JSON.stringify(result, null, 2)
|
|
53879
|
+
})]
|
|
53880
|
+
}), isLoading && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
53881
|
+
className: "text-yellow-400 italic",
|
|
53882
|
+
children: "Running..."
|
|
53883
|
+
})]
|
|
53884
|
+
})]
|
|
53885
|
+
});
|
|
53886
|
+
};
|
|
53887
|
+
|
|
53888
|
+
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; }
|
|
53889
|
+
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; }
|
|
53890
|
+
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; } } }; }
|
|
53891
|
+
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; } }
|
|
53892
|
+
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; }
|
|
53893
|
+
function AssistantTextContent(_ref) {
|
|
53894
|
+
var text = _ref.text;
|
|
53895
|
+
if (!text) return null;
|
|
53896
|
+
var html = marked.marked(text, {
|
|
53897
|
+
breaks: true
|
|
53898
|
+
});
|
|
53899
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
53900
|
+
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",
|
|
53901
|
+
dangerouslySetInnerHTML: {
|
|
53902
|
+
__html: html
|
|
53903
|
+
}
|
|
53904
|
+
});
|
|
53905
|
+
}
|
|
53906
|
+
var MessageBubble = function MessageBubble(_ref2) {
|
|
53907
|
+
var message = _ref2.message,
|
|
53908
|
+
isStreaming = _ref2.isStreaming,
|
|
53909
|
+
streamingText = _ref2.streamingText;
|
|
53910
|
+
var role = message.role,
|
|
53911
|
+
content = message.content,
|
|
53912
|
+
toolCalls = message.toolCalls;
|
|
53913
|
+
if (role === "user") {
|
|
53914
|
+
var text = typeof content === "string" ? content : Array.isArray(content) ? content.filter(function (c) {
|
|
53915
|
+
return c.type === "text";
|
|
53916
|
+
}).map(function (c) {
|
|
53917
|
+
return c.text;
|
|
53918
|
+
}).join("") : "";
|
|
53919
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
53920
|
+
className: "flex justify-end mb-4",
|
|
53921
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
53922
|
+
className: "max-w-[85%]",
|
|
53923
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
53924
|
+
className: "text-[10px] font-semibold uppercase tracking-wider text-indigo-400 mb-1 text-right",
|
|
53925
|
+
children: "You"
|
|
53926
|
+
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
53927
|
+
className: "px-3 py-2 rounded-lg bg-indigo-700/40 text-sm text-gray-100 whitespace-pre-wrap break-words leading-relaxed",
|
|
53928
|
+
children: text
|
|
53929
|
+
})]
|
|
53930
|
+
})
|
|
53931
|
+
});
|
|
53932
|
+
}
|
|
53933
|
+
if (role === "assistant") {
|
|
53934
|
+
var textParts = [];
|
|
53935
|
+
var toolBlocks = [];
|
|
53936
|
+
if (Array.isArray(content)) {
|
|
53937
|
+
var _iterator = _createForOfIteratorHelper$1(content),
|
|
53938
|
+
_step;
|
|
53939
|
+
try {
|
|
53940
|
+
var _loop = function _loop() {
|
|
53941
|
+
var block = _step.value;
|
|
53942
|
+
if (block.type === "text") {
|
|
53943
|
+
textParts.push(block.text);
|
|
53944
|
+
} else if (block.type === "tool_use") {
|
|
53945
|
+
var callInfo = toolCalls === null || toolCalls === void 0 ? void 0 : toolCalls.find(function (tc) {
|
|
53946
|
+
return tc.toolUseId === block.id;
|
|
53947
|
+
});
|
|
53948
|
+
toolBlocks.push(_objectSpread$1(_objectSpread$1({}, block), {}, {
|
|
53949
|
+
serverName: callInfo === null || callInfo === void 0 ? void 0 : callInfo.serverName,
|
|
53950
|
+
result: callInfo === null || callInfo === void 0 ? void 0 : callInfo.result,
|
|
53951
|
+
isError: callInfo === null || callInfo === void 0 ? void 0 : callInfo.isError,
|
|
53952
|
+
isLoading: callInfo === null || callInfo === void 0 ? void 0 : callInfo.isLoading
|
|
53953
|
+
}));
|
|
53954
|
+
}
|
|
53955
|
+
};
|
|
53956
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
53957
|
+
_loop();
|
|
53958
|
+
}
|
|
53959
|
+
} catch (err) {
|
|
53960
|
+
_iterator.e(err);
|
|
53961
|
+
} finally {
|
|
53962
|
+
_iterator.f();
|
|
53963
|
+
}
|
|
53964
|
+
} else if (typeof content === "string") {
|
|
53965
|
+
textParts.push(content);
|
|
53966
|
+
}
|
|
53967
|
+
var _text = textParts.join("");
|
|
53968
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
53969
|
+
className: "mb-4",
|
|
53970
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
53971
|
+
className: "text-[10px] font-semibold uppercase tracking-wider text-gray-500 mb-1",
|
|
53972
|
+
children: "Assistant"
|
|
53973
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
53974
|
+
className: "text-sm leading-relaxed px-3 py-2 rounded-lg bg-gray-800/40",
|
|
53975
|
+
children: [isStreaming && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
53976
|
+
className: "text-gray-200",
|
|
53977
|
+
children: /*#__PURE__*/jsxRuntime.jsx(StreamingText, {
|
|
53978
|
+
text: streamingText,
|
|
53979
|
+
isStreaming: true
|
|
53980
|
+
})
|
|
53981
|
+
}), !isStreaming && _text && /*#__PURE__*/jsxRuntime.jsx(AssistantTextContent, {
|
|
53982
|
+
text: _text
|
|
53983
|
+
}), toolBlocks.map(function (block) {
|
|
53984
|
+
return /*#__PURE__*/jsxRuntime.jsx(ToolCallBlock, {
|
|
53985
|
+
toolName: block.name,
|
|
53986
|
+
serverName: block.serverName,
|
|
53987
|
+
input: block.input,
|
|
53988
|
+
result: block.result,
|
|
53989
|
+
isError: block.isError,
|
|
53990
|
+
isLoading: block.isLoading
|
|
53991
|
+
}, block.id);
|
|
53992
|
+
})]
|
|
53993
|
+
})]
|
|
53994
|
+
});
|
|
53995
|
+
}
|
|
53996
|
+
return null;
|
|
53997
|
+
};
|
|
53998
|
+
|
|
53999
|
+
/**
|
|
54000
|
+
* ChatMessages
|
|
54001
|
+
*
|
|
54002
|
+
* Scrollable message list that auto-scrolls to the bottom on new messages.
|
|
54003
|
+
*/
|
|
54004
|
+
var ChatMessages = function ChatMessages(_ref) {
|
|
54005
|
+
var messages = _ref.messages,
|
|
54006
|
+
streamingRequestId = _ref.streamingRequestId,
|
|
54007
|
+
streamingText = _ref.streamingText;
|
|
54008
|
+
var scrollRef = React.useRef(null);
|
|
54009
|
+
React.useEffect(function () {
|
|
54010
|
+
if (scrollRef.current) {
|
|
54011
|
+
scrollRef.current.scrollTop = scrollRef.current.scrollHeight;
|
|
54012
|
+
}
|
|
54013
|
+
}, [messages, streamingText]);
|
|
54014
|
+
if (messages.length === 0) {
|
|
54015
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
54016
|
+
className: "flex-1 flex items-center justify-center text-gray-600 text-sm",
|
|
54017
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
54018
|
+
className: "text-center space-y-1",
|
|
54019
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
54020
|
+
className: "text-2xl",
|
|
54021
|
+
children: "\uD83D\uDCAC"
|
|
54022
|
+
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
54023
|
+
children: "Send a message to start chatting"
|
|
54024
|
+
})]
|
|
54025
|
+
})
|
|
54026
|
+
});
|
|
54027
|
+
}
|
|
54028
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
54029
|
+
ref: scrollRef,
|
|
54030
|
+
className: "flex-1 overflow-y-auto px-4 py-3 scroll-smooth",
|
|
54031
|
+
children: messages.map(function (message, index) {
|
|
54032
|
+
var isLastAssistant = message.role === "assistant" && index === messages.length - 1;
|
|
54033
|
+
var isStreaming = isLastAssistant && streamingRequestId !== null;
|
|
54034
|
+
return /*#__PURE__*/jsxRuntime.jsx(MessageBubble, {
|
|
54035
|
+
message: message,
|
|
54036
|
+
isStreaming: isStreaming,
|
|
54037
|
+
streamingText: isStreaming ? streamingText : ""
|
|
54038
|
+
}, message.id || index);
|
|
54039
|
+
})
|
|
54040
|
+
});
|
|
54041
|
+
};
|
|
54042
|
+
|
|
54043
|
+
var ChatInput = function ChatInput(_ref) {
|
|
54044
|
+
var onSend = _ref.onSend,
|
|
54045
|
+
onStop = _ref.onStop,
|
|
54046
|
+
isLoading = _ref.isLoading,
|
|
54047
|
+
disabled = _ref.disabled;
|
|
54048
|
+
var _useState = React.useState(""),
|
|
54049
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
54050
|
+
input = _useState2[0],
|
|
54051
|
+
setInput = _useState2[1];
|
|
54052
|
+
var textareaRef = React.useRef(null);
|
|
54053
|
+
React.useEffect(function () {
|
|
54054
|
+
var el = textareaRef.current;
|
|
54055
|
+
if (el) {
|
|
54056
|
+
el.style.height = "auto";
|
|
54057
|
+
el.style.height = Math.min(el.scrollHeight, 120) + "px";
|
|
54058
|
+
}
|
|
54059
|
+
}, [input]);
|
|
54060
|
+
var handleSend = function handleSend() {
|
|
54061
|
+
var trimmed = input.trim();
|
|
54062
|
+
if (!trimmed || isLoading) return;
|
|
54063
|
+
onSend(trimmed);
|
|
54064
|
+
setInput("");
|
|
54065
|
+
};
|
|
54066
|
+
var handleKeyDown = function handleKeyDown(e) {
|
|
54067
|
+
if (e.key === "Enter" && !e.shiftKey) {
|
|
54068
|
+
e.preventDefault();
|
|
54069
|
+
handleSend();
|
|
54070
|
+
}
|
|
54071
|
+
};
|
|
54072
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
54073
|
+
className: "flex items-end gap-2 px-3 py-2 border-t border-gray-700/50",
|
|
54074
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("textarea", {
|
|
54075
|
+
ref: textareaRef,
|
|
54076
|
+
value: input,
|
|
54077
|
+
onChange: function onChange(e) {
|
|
54078
|
+
return setInput(e.target.value);
|
|
54079
|
+
},
|
|
54080
|
+
onKeyDown: handleKeyDown,
|
|
54081
|
+
placeholder: "Type a message...",
|
|
54082
|
+
disabled: disabled,
|
|
54083
|
+
rows: 1,
|
|
54084
|
+
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"
|
|
54085
|
+
}), isLoading ? /*#__PURE__*/jsxRuntime.jsx("button", {
|
|
54086
|
+
onClick: onStop,
|
|
54087
|
+
className: "px-3 py-2 rounded-lg bg-red-700 hover:bg-red-600 text-white text-sm font-medium transition-colors shrink-0",
|
|
54088
|
+
children: "Stop"
|
|
54089
|
+
}) : /*#__PURE__*/jsxRuntime.jsx("button", {
|
|
54090
|
+
onClick: handleSend,
|
|
54091
|
+
disabled: !input.trim() || disabled,
|
|
54092
|
+
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",
|
|
54093
|
+
children: "Send"
|
|
54094
|
+
})]
|
|
54095
|
+
});
|
|
54096
|
+
};
|
|
54097
|
+
|
|
54098
|
+
var ToolSelector = function ToolSelector(_ref) {
|
|
54099
|
+
var servers = _ref.servers,
|
|
54100
|
+
enabledTools = _ref.enabledTools,
|
|
54101
|
+
onToggle = _ref.onToggle;
|
|
54102
|
+
var _useState = React.useState(false),
|
|
54103
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
54104
|
+
expanded = _useState2[0],
|
|
54105
|
+
setExpanded = _useState2[1];
|
|
54106
|
+
var totalTools = servers.reduce(function (sum, s) {
|
|
54107
|
+
var _s$tools;
|
|
54108
|
+
return sum + (((_s$tools = s.tools) === null || _s$tools === void 0 ? void 0 : _s$tools.length) || 0);
|
|
54109
|
+
}, 0);
|
|
54110
|
+
var enabledCount = Object.values(enabledTools).filter(Boolean).length;
|
|
54111
|
+
if (totalTools === 0) return null;
|
|
54112
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
54113
|
+
className: "text-xs",
|
|
54114
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("button", {
|
|
54115
|
+
onClick: function onClick() {
|
|
54116
|
+
return setExpanded(!expanded);
|
|
54117
|
+
},
|
|
54118
|
+
className: "flex items-center gap-1.5 px-2 py-1 rounded hover:bg-white/5 transition-colors text-gray-400",
|
|
54119
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("svg", {
|
|
54120
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
54121
|
+
viewBox: "0 0 20 20",
|
|
54122
|
+
fill: "currentColor",
|
|
54123
|
+
className: "w-3.5 h-3.5",
|
|
54124
|
+
children: /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
54125
|
+
fillRule: "evenodd",
|
|
54126
|
+
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",
|
|
54127
|
+
clipRule: "evenodd"
|
|
54128
|
+
})
|
|
54129
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
54130
|
+
children: ["Tools (", enabledCount, "/", totalTools, ")"]
|
|
54131
|
+
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
54132
|
+
className: "text-gray-600",
|
|
54133
|
+
children: expanded ? "\u25B2" : "\u25BC"
|
|
54134
|
+
})]
|
|
54135
|
+
}), expanded && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
54136
|
+
className: "mt-1 p-2 bg-gray-800/50 rounded-md border border-gray-700 max-h-48 overflow-y-auto space-y-2",
|
|
54137
|
+
children: servers.map(function (server) {
|
|
54138
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
54139
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
54140
|
+
className: "text-gray-500 font-medium mb-1",
|
|
54141
|
+
children: server.serverName
|
|
54142
|
+
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
54143
|
+
className: "space-y-0.5 ml-2",
|
|
54144
|
+
children: server.tools.map(function (tool) {
|
|
54145
|
+
return /*#__PURE__*/jsxRuntime.jsxs("label", {
|
|
54146
|
+
className: "flex items-center gap-2 py-0.5 cursor-pointer hover:bg-white/5 rounded px-1",
|
|
54147
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("input", {
|
|
54148
|
+
type: "checkbox",
|
|
54149
|
+
checked: enabledTools[tool.name] !== false,
|
|
54150
|
+
onChange: function onChange() {
|
|
54151
|
+
return onToggle(tool.name);
|
|
54152
|
+
},
|
|
54153
|
+
className: "rounded border-gray-600 bg-gray-700 text-indigo-500 focus:ring-indigo-500 focus:ring-offset-0 w-3 h-3"
|
|
54154
|
+
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
54155
|
+
className: "text-gray-300 font-mono",
|
|
54156
|
+
children: tool.name
|
|
54157
|
+
})]
|
|
54158
|
+
}, tool.name);
|
|
54159
|
+
})
|
|
54160
|
+
})]
|
|
54161
|
+
}, server.serverName);
|
|
54162
|
+
})
|
|
54163
|
+
})]
|
|
54164
|
+
});
|
|
54165
|
+
};
|
|
54166
|
+
|
|
54167
|
+
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; }
|
|
54168
|
+
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; }
|
|
54169
|
+
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; } } }; }
|
|
54170
|
+
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; } }
|
|
54171
|
+
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; }
|
|
54172
|
+
var requestCounter = 0;
|
|
54173
|
+
function generateRequestId(uuid) {
|
|
54174
|
+
return "".concat(uuid || "chat", "-").concat(Date.now(), "-").concat(++requestCounter);
|
|
54175
|
+
}
|
|
54176
|
+
function ChatCore(_ref) {
|
|
54177
|
+
var title = _ref.title,
|
|
54178
|
+
model = _ref.model,
|
|
54179
|
+
systemPrompt = _ref.systemPrompt,
|
|
54180
|
+
maxToolRounds = _ref.maxToolRounds,
|
|
54181
|
+
_ref$apiKey = _ref.apiKey,
|
|
54182
|
+
apiKey = _ref$apiKey === void 0 ? null : _ref$apiKey,
|
|
54183
|
+
_ref$api = _ref.api,
|
|
54184
|
+
api = _ref$api === void 0 ? null : _ref$api,
|
|
54185
|
+
_ref$uuid = _ref.uuid,
|
|
54186
|
+
uuid = _ref$uuid === void 0 ? null : _ref$uuid,
|
|
54187
|
+
_ref$persistKey = _ref.persistKey,
|
|
54188
|
+
persistKey = _ref$persistKey === void 0 ? null : _ref$persistKey,
|
|
54189
|
+
_ref$backend = _ref.backend,
|
|
54190
|
+
backend = _ref$backend === void 0 ? "anthropic" : _ref$backend,
|
|
54191
|
+
_ref$onPublishEvent = _ref.onPublishEvent,
|
|
54192
|
+
onPublishEvent = _ref$onPublishEvent === void 0 ? null : _ref$onPublishEvent,
|
|
54193
|
+
_ref$hideToolsBanner = _ref.hideToolsBanner,
|
|
54194
|
+
hideToolsBanner = _ref$hideToolsBanner === void 0 ? false : _ref$hideToolsBanner;
|
|
54195
|
+
var mainApi = window.mainApi;
|
|
54196
|
+
|
|
54197
|
+
// Conversation state
|
|
54198
|
+
var _useState = React.useState([]),
|
|
54199
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
54200
|
+
messages = _useState2[0],
|
|
54201
|
+
setMessages = _useState2[1];
|
|
54202
|
+
var _useState3 = React.useState(false),
|
|
54203
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
54204
|
+
isLoading = _useState4[0],
|
|
54205
|
+
setIsLoading = _useState4[1];
|
|
54206
|
+
var _useState5 = React.useState(null),
|
|
54207
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
54208
|
+
error = _useState6[0],
|
|
54209
|
+
setError = _useState6[1];
|
|
54210
|
+
var _useState7 = React.useState(""),
|
|
54211
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
54212
|
+
streamingText = _useState8[0],
|
|
54213
|
+
setStreamingText = _useState8[1];
|
|
54214
|
+
var activeRequestId = React.useRef(null);
|
|
54215
|
+
|
|
54216
|
+
// MCP tool state (only used for anthropic backend)
|
|
54217
|
+
var _useState9 = React.useState([]),
|
|
54218
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
54219
|
+
servers = _useState0[0],
|
|
54220
|
+
setServers = _useState0[1];
|
|
54221
|
+
var _useState1 = React.useState({}),
|
|
54222
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
54223
|
+
enabledTools = _useState10[0],
|
|
54224
|
+
setEnabledTools = _useState10[1];
|
|
54225
|
+
|
|
54226
|
+
// Tool calls for current streaming response
|
|
54227
|
+
var toolCallsRef = React.useRef([]);
|
|
54228
|
+
|
|
54229
|
+
// Scoped listener references for cleanup
|
|
54230
|
+
var listenersRef = React.useRef([]);
|
|
54231
|
+
|
|
54232
|
+
// CLI session state
|
|
54233
|
+
var _useState11 = React.useState(false),
|
|
54234
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
54235
|
+
sessionActive = _useState12[0],
|
|
54236
|
+
setSessionActive = _useState12[1];
|
|
54237
|
+
|
|
54238
|
+
// Backend readiness
|
|
54239
|
+
var isAnthropicBackend = backend === "anthropic";
|
|
54240
|
+
var isCliBackend = backend === "claude-code";
|
|
54241
|
+
|
|
54242
|
+
// CLI availability state
|
|
54243
|
+
var _useState13 = React.useState(null),
|
|
54244
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
54245
|
+
cliAvailable = _useState14[0],
|
|
54246
|
+
setCliAvailable = _useState14[1];
|
|
54247
|
+
React.useEffect(function () {
|
|
54248
|
+
var _mainApi$llm;
|
|
54249
|
+
if (!isCliBackend || !(mainApi !== null && mainApi !== void 0 && (_mainApi$llm = mainApi.llm) !== null && _mainApi$llm !== void 0 && _mainApi$llm.checkCliAvailable)) return;
|
|
54250
|
+
mainApi.llm.checkCliAvailable().then(function (result) {
|
|
54251
|
+
setCliAvailable((result === null || result === void 0 ? void 0 : result.available) || false);
|
|
54252
|
+
});
|
|
54253
|
+
}, [isCliBackend, mainApi]);
|
|
54254
|
+
var handleCheckCliAgain = React.useCallback(function () {
|
|
54255
|
+
var _mainApi$llm2;
|
|
54256
|
+
if (!(mainApi !== null && mainApi !== void 0 && (_mainApi$llm2 = mainApi.llm) !== null && _mainApi$llm2 !== void 0 && _mainApi$llm2.checkCliAvailable)) return;
|
|
54257
|
+
setCliAvailable(null);
|
|
54258
|
+
mainApi.llm.checkCliAvailable().then(function (result) {
|
|
54259
|
+
setCliAvailable((result === null || result === void 0 ? void 0 : result.available) || false);
|
|
54260
|
+
});
|
|
54261
|
+
}, [mainApi]);
|
|
54262
|
+
|
|
54263
|
+
// Determine readiness
|
|
54264
|
+
var isReady = isAnthropicBackend ? !!apiKey : cliAvailable === true;
|
|
54265
|
+
|
|
54266
|
+
// Persistence helpers
|
|
54267
|
+
var saveConversation = React.useCallback(function (msgs, tools) {
|
|
54268
|
+
var data = {
|
|
54269
|
+
messages: msgs,
|
|
54270
|
+
enabledTools: tools || enabledTools
|
|
54271
|
+
};
|
|
54272
|
+
if (api && uuid) {
|
|
54273
|
+
api.storeData({
|
|
54274
|
+
data: data,
|
|
54275
|
+
uuid: uuid,
|
|
54276
|
+
append: false,
|
|
54277
|
+
callbackComplete: function callbackComplete() {},
|
|
54278
|
+
callbackError: function callbackError() {}
|
|
54279
|
+
});
|
|
54280
|
+
} else if (persistKey) {
|
|
54281
|
+
try {
|
|
54282
|
+
localStorage.setItem(persistKey, JSON.stringify(data));
|
|
54283
|
+
} catch (e) {
|
|
54284
|
+
/* ignore quota errors */
|
|
54285
|
+
}
|
|
54286
|
+
}
|
|
54287
|
+
}, [api, uuid, persistKey, enabledTools]);
|
|
54288
|
+
|
|
54289
|
+
// Load saved conversation on mount
|
|
54290
|
+
React.useEffect(function () {
|
|
54291
|
+
if (api && uuid) {
|
|
54292
|
+
api.readData({
|
|
54293
|
+
uuid: uuid,
|
|
54294
|
+
callbackComplete: function callbackComplete(data) {
|
|
54295
|
+
if (data !== null && data !== void 0 && data.messages && Array.isArray(data.messages)) {
|
|
54296
|
+
setMessages(data.messages);
|
|
54297
|
+
}
|
|
54298
|
+
if (data !== null && data !== void 0 && data.enabledTools) {
|
|
54299
|
+
setEnabledTools(data.enabledTools);
|
|
54300
|
+
}
|
|
54301
|
+
},
|
|
54302
|
+
callbackError: function callbackError() {}
|
|
54303
|
+
});
|
|
54304
|
+
} else if (persistKey) {
|
|
54305
|
+
try {
|
|
54306
|
+
var raw = localStorage.getItem(persistKey);
|
|
54307
|
+
if (raw) {
|
|
54308
|
+
var data = JSON.parse(raw);
|
|
54309
|
+
if (data !== null && data !== void 0 && data.messages && Array.isArray(data.messages)) {
|
|
54310
|
+
setMessages(data.messages);
|
|
54311
|
+
}
|
|
54312
|
+
if (data !== null && data !== void 0 && data.enabledTools) {
|
|
54313
|
+
setEnabledTools(data.enabledTools);
|
|
54314
|
+
}
|
|
54315
|
+
}
|
|
54316
|
+
} catch (e) {
|
|
54317
|
+
/* ignore */
|
|
54318
|
+
}
|
|
54319
|
+
}
|
|
54320
|
+
}, [api, uuid, persistKey]);
|
|
54321
|
+
|
|
54322
|
+
// Discover connected MCP tools (only for anthropic backend)
|
|
54323
|
+
var refreshTools = React.useCallback(function () {
|
|
54324
|
+
if (!isAnthropicBackend || !(mainApi !== null && mainApi !== void 0 && mainApi.llm)) return;
|
|
54325
|
+
mainApi.llm.listConnectedTools().then(function (result) {
|
|
54326
|
+
if (Array.isArray(result)) {
|
|
54327
|
+
setServers(result);
|
|
54328
|
+
}
|
|
54329
|
+
});
|
|
54330
|
+
}, [mainApi, isAnthropicBackend]);
|
|
54331
|
+
React.useEffect(function () {
|
|
54332
|
+
refreshTools();
|
|
54333
|
+
var interval = setInterval(refreshTools, 30000);
|
|
54334
|
+
return function () {
|
|
54335
|
+
return clearInterval(interval);
|
|
54336
|
+
};
|
|
54337
|
+
}, [refreshTools]);
|
|
54338
|
+
|
|
54339
|
+
// Set up stream listeners
|
|
54340
|
+
React.useEffect(function () {
|
|
54341
|
+
if (!(mainApi !== null && mainApi !== void 0 && mainApi.llm)) return;
|
|
54342
|
+
var deltaId = mainApi.llm.onStreamDelta(function (data) {
|
|
54343
|
+
if (data.requestId !== activeRequestId.current) return;
|
|
54344
|
+
setStreamingText(function (prev) {
|
|
54345
|
+
return prev + data.text;
|
|
54346
|
+
});
|
|
54347
|
+
});
|
|
54348
|
+
var toolCallId = mainApi.llm.onStreamToolCall(function (data) {
|
|
54349
|
+
if (data.requestId !== activeRequestId.current) return;
|
|
54350
|
+
toolCallsRef.current.push({
|
|
54351
|
+
toolUseId: data.toolUseId,
|
|
54352
|
+
toolName: data.toolName,
|
|
54353
|
+
serverName: data.serverName,
|
|
54354
|
+
input: data.input,
|
|
54355
|
+
isLoading: true
|
|
54356
|
+
});
|
|
54357
|
+
setMessages(function (prev) {
|
|
54358
|
+
return _toConsumableArray(prev);
|
|
54359
|
+
});
|
|
54360
|
+
});
|
|
54361
|
+
var toolResultId = mainApi.llm.onStreamToolResult(function (data) {
|
|
54362
|
+
if (data.requestId !== activeRequestId.current) return;
|
|
54363
|
+
var tc = toolCallsRef.current.find(function (t) {
|
|
54364
|
+
return t.toolUseId === data.toolUseId;
|
|
54365
|
+
});
|
|
54366
|
+
if (tc) {
|
|
54367
|
+
tc.result = data.result;
|
|
54368
|
+
tc.isError = data.isError;
|
|
54369
|
+
tc.isLoading = false;
|
|
54370
|
+
}
|
|
54371
|
+
setStreamingText("");
|
|
54372
|
+
if (onPublishEvent) {
|
|
54373
|
+
onPublishEvent("toolUsed", {
|
|
54374
|
+
toolName: data.toolName,
|
|
54375
|
+
isError: data.isError
|
|
54376
|
+
});
|
|
54377
|
+
}
|
|
54378
|
+
});
|
|
54379
|
+
var completeId = mainApi.llm.onStreamComplete(function (data) {
|
|
54380
|
+
if (data.requestId !== activeRequestId.current) return;
|
|
54381
|
+
var assistantMessage = {
|
|
54382
|
+
id: "msg-".concat(Date.now()),
|
|
54383
|
+
role: "assistant",
|
|
54384
|
+
content: data.content,
|
|
54385
|
+
toolCalls: _toConsumableArray(toolCallsRef.current),
|
|
54386
|
+
usage: data.usage
|
|
54387
|
+
};
|
|
54388
|
+
setMessages(function (prev) {
|
|
54389
|
+
var updated = [].concat(_toConsumableArray(prev), [assistantMessage]);
|
|
54390
|
+
saveConversation(updated);
|
|
54391
|
+
return updated;
|
|
54392
|
+
});
|
|
54393
|
+
setStreamingText("");
|
|
54394
|
+
setIsLoading(false);
|
|
54395
|
+
setSessionActive(true);
|
|
54396
|
+
activeRequestId.current = null;
|
|
54397
|
+
toolCallsRef.current = [];
|
|
54398
|
+
});
|
|
54399
|
+
var errorId = mainApi.llm.onStreamError(function (data) {
|
|
54400
|
+
if (data.requestId !== activeRequestId.current) return;
|
|
54401
|
+
var errorMessage = data.error;
|
|
54402
|
+
if (data.code === "RATE_LIMITED" && data.retryAfter) {
|
|
54403
|
+
errorMessage = "Rate limited. Try again in ".concat(data.retryAfter, " seconds.");
|
|
54404
|
+
}
|
|
54405
|
+
setError(errorMessage);
|
|
54406
|
+
setIsLoading(false);
|
|
54407
|
+
setStreamingText("");
|
|
54408
|
+
activeRequestId.current = null;
|
|
54409
|
+
toolCallsRef.current = [];
|
|
54410
|
+
});
|
|
54411
|
+
listenersRef.current = [deltaId, toolCallId, toolResultId, completeId, errorId];
|
|
54412
|
+
return function () {
|
|
54413
|
+
var _iterator = _createForOfIteratorHelper(listenersRef.current),
|
|
54414
|
+
_step;
|
|
54415
|
+
try {
|
|
54416
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
54417
|
+
var id = _step.value;
|
|
54418
|
+
mainApi.llm.removeStreamListener(id);
|
|
54419
|
+
}
|
|
54420
|
+
} catch (err) {
|
|
54421
|
+
_iterator.e(err);
|
|
54422
|
+
} finally {
|
|
54423
|
+
_iterator.f();
|
|
54424
|
+
}
|
|
54425
|
+
listenersRef.current = [];
|
|
54426
|
+
};
|
|
54427
|
+
}, [mainApi, onPublishEvent, saveConversation]);
|
|
54428
|
+
|
|
54429
|
+
// Send message
|
|
54430
|
+
var handleSend = React.useCallback(function (text) {
|
|
54431
|
+
if (!(mainApi !== null && mainApi !== void 0 && mainApi.llm) || isLoading) return;
|
|
54432
|
+
setError(null);
|
|
54433
|
+
var userMessage = {
|
|
54434
|
+
id: "msg-".concat(Date.now()),
|
|
54435
|
+
role: "user",
|
|
54436
|
+
content: text
|
|
54437
|
+
};
|
|
54438
|
+
var updatedMessages = [].concat(_toConsumableArray(messages), [userMessage]);
|
|
54439
|
+
setMessages(updatedMessages);
|
|
54440
|
+
if (onPublishEvent) {
|
|
54441
|
+
onPublishEvent("messageSent", {
|
|
54442
|
+
text: text
|
|
54443
|
+
});
|
|
54444
|
+
}
|
|
54445
|
+
var apiMessages = updatedMessages.map(function (msg) {
|
|
54446
|
+
return {
|
|
54447
|
+
role: msg.role,
|
|
54448
|
+
content: msg.content
|
|
54449
|
+
};
|
|
54450
|
+
});
|
|
54451
|
+
var allTools = [];
|
|
54452
|
+
var toolServerMap = {};
|
|
54453
|
+
if (isAnthropicBackend) {
|
|
54454
|
+
var _iterator2 = _createForOfIteratorHelper(servers),
|
|
54455
|
+
_step2;
|
|
54456
|
+
try {
|
|
54457
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
54458
|
+
var server = _step2.value;
|
|
54459
|
+
var _iterator3 = _createForOfIteratorHelper(server.tools || []),
|
|
54460
|
+
_step3;
|
|
54461
|
+
try {
|
|
54462
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
54463
|
+
var tool = _step3.value;
|
|
54464
|
+
if (enabledTools[tool.name] !== false) {
|
|
54465
|
+
allTools.push(tool);
|
|
54466
|
+
toolServerMap[tool.name] = server.serverName;
|
|
54467
|
+
}
|
|
54468
|
+
}
|
|
54469
|
+
} catch (err) {
|
|
54470
|
+
_iterator3.e(err);
|
|
54471
|
+
} finally {
|
|
54472
|
+
_iterator3.f();
|
|
54473
|
+
}
|
|
54474
|
+
}
|
|
54475
|
+
} catch (err) {
|
|
54476
|
+
_iterator2.e(err);
|
|
54477
|
+
} finally {
|
|
54478
|
+
_iterator2.f();
|
|
54479
|
+
}
|
|
54480
|
+
}
|
|
54481
|
+
var requestId = generateRequestId(uuid || persistKey);
|
|
54482
|
+
activeRequestId.current = requestId;
|
|
54483
|
+
toolCallsRef.current = [];
|
|
54484
|
+
setIsLoading(true);
|
|
54485
|
+
setStreamingText("");
|
|
54486
|
+
setMessages(function (prev) {
|
|
54487
|
+
return [].concat(_toConsumableArray(prev), [{
|
|
54488
|
+
id: "msg-streaming",
|
|
54489
|
+
role: "assistant",
|
|
54490
|
+
content: [],
|
|
54491
|
+
toolCalls: toolCallsRef.current
|
|
54492
|
+
}]);
|
|
54493
|
+
});
|
|
54494
|
+
mainApi.llm.sendMessage(requestId, {
|
|
54495
|
+
backend: backend,
|
|
54496
|
+
apiKey: isAnthropicBackend ? apiKey : undefined,
|
|
54497
|
+
model: model,
|
|
54498
|
+
messages: apiMessages,
|
|
54499
|
+
tools: allTools,
|
|
54500
|
+
toolServerMap: toolServerMap,
|
|
54501
|
+
systemPrompt: systemPrompt,
|
|
54502
|
+
maxToolRounds: parseInt(maxToolRounds, 10) || 10,
|
|
54503
|
+
widgetUuid: uuid || persistKey
|
|
54504
|
+
});
|
|
54505
|
+
}, [mainApi, isLoading, messages, servers, enabledTools, apiKey, model, systemPrompt, maxToolRounds, uuid, persistKey, onPublishEvent, backend, isAnthropicBackend]);
|
|
54506
|
+
|
|
54507
|
+
// Stop streaming
|
|
54508
|
+
var handleStop = React.useCallback(function () {
|
|
54509
|
+
if (activeRequestId.current && mainApi !== null && mainApi !== void 0 && mainApi.llm) {
|
|
54510
|
+
mainApi.llm.abortRequest(activeRequestId.current);
|
|
54511
|
+
if (streamingText) {
|
|
54512
|
+
setMessages(function (prev) {
|
|
54513
|
+
var updated = prev.map(function (msg) {
|
|
54514
|
+
if (msg.id === "msg-streaming") {
|
|
54515
|
+
return _objectSpread(_objectSpread({}, msg), {}, {
|
|
54516
|
+
id: "msg-".concat(Date.now()),
|
|
54517
|
+
content: [{
|
|
54518
|
+
type: "text",
|
|
54519
|
+
text: streamingText
|
|
54520
|
+
}],
|
|
54521
|
+
toolCalls: _toConsumableArray(toolCallsRef.current)
|
|
54522
|
+
});
|
|
54523
|
+
}
|
|
54524
|
+
return msg;
|
|
54525
|
+
});
|
|
54526
|
+
saveConversation(updated);
|
|
54527
|
+
return updated;
|
|
54528
|
+
});
|
|
54529
|
+
} else {
|
|
54530
|
+
setMessages(function (prev) {
|
|
54531
|
+
var updated = prev.filter(function (msg) {
|
|
54532
|
+
return msg.id !== "msg-streaming";
|
|
54533
|
+
});
|
|
54534
|
+
saveConversation(updated);
|
|
54535
|
+
return updated;
|
|
54536
|
+
});
|
|
54537
|
+
}
|
|
54538
|
+
setIsLoading(false);
|
|
54539
|
+
setStreamingText("");
|
|
54540
|
+
activeRequestId.current = null;
|
|
54541
|
+
toolCallsRef.current = [];
|
|
54542
|
+
}
|
|
54543
|
+
}, [mainApi, streamingText, saveConversation]);
|
|
54544
|
+
|
|
54545
|
+
// New chat
|
|
54546
|
+
var handleNewChat = function handleNewChat() {
|
|
54547
|
+
var _mainApi$llm3;
|
|
54548
|
+
if (isLoading) handleStop();
|
|
54549
|
+
setMessages([]);
|
|
54550
|
+
setError(null);
|
|
54551
|
+
setStreamingText("");
|
|
54552
|
+
setSessionActive(false);
|
|
54553
|
+
saveConversation([]);
|
|
54554
|
+
if (isCliBackend && mainApi !== null && mainApi !== void 0 && (_mainApi$llm3 = mainApi.llm) !== null && _mainApi$llm3 !== void 0 && _mainApi$llm3.clearCliSession) {
|
|
54555
|
+
mainApi.llm.clearCliSession(uuid || persistKey);
|
|
54556
|
+
}
|
|
54557
|
+
};
|
|
54558
|
+
|
|
54559
|
+
// End CLI session
|
|
54560
|
+
var handleEndSession = function handleEndSession() {
|
|
54561
|
+
var _mainApi$llm4;
|
|
54562
|
+
if (!isCliBackend || !(mainApi !== null && mainApi !== void 0 && (_mainApi$llm4 = mainApi.llm) !== null && _mainApi$llm4 !== void 0 && _mainApi$llm4.endCliSession)) return;
|
|
54563
|
+
if (isLoading) handleStop();
|
|
54564
|
+
mainApi.llm.endCliSession(uuid || persistKey);
|
|
54565
|
+
setSessionActive(false);
|
|
54566
|
+
};
|
|
54567
|
+
|
|
54568
|
+
// Toggle tool
|
|
54569
|
+
var handleToggleTool = function handleToggleTool(toolName) {
|
|
54570
|
+
setEnabledTools(function (prev) {
|
|
54571
|
+
var updated = _objectSpread(_objectSpread({}, prev), {}, _defineProperty({}, toolName, prev[toolName] === false ? true : false));
|
|
54572
|
+
saveConversation(messages, updated);
|
|
54573
|
+
return updated;
|
|
54574
|
+
});
|
|
54575
|
+
};
|
|
54576
|
+
var hasTools = isAnthropicBackend && servers.some(function (s) {
|
|
54577
|
+
var _s$tools;
|
|
54578
|
+
return ((_s$tools = s.tools) === null || _s$tools === void 0 ? void 0 : _s$tools.length) > 0;
|
|
54579
|
+
});
|
|
54580
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
54581
|
+
className: "flex flex-col flex-1 overflow-hidden bg-gray-900 text-gray-200",
|
|
54582
|
+
children: [title ? /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
54583
|
+
className: "flex items-center justify-between px-3 py-2 border-b border-gray-700/50 shrink-0",
|
|
54584
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
54585
|
+
className: "flex items-center gap-2",
|
|
54586
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading2, {
|
|
54587
|
+
title: title
|
|
54588
|
+
}), isCliBackend && sessionActive && /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
54589
|
+
className: "inline-block w-2 h-2 rounded-full bg-green-400",
|
|
54590
|
+
title: "CLI session active"
|
|
54591
|
+
})]
|
|
54592
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
54593
|
+
className: "flex items-center gap-1",
|
|
54594
|
+
children: [isCliBackend && sessionActive && /*#__PURE__*/jsxRuntime.jsx("button", {
|
|
54595
|
+
onClick: handleEndSession,
|
|
54596
|
+
className: "px-2 py-1 text-xs rounded bg-red-900/50 hover:bg-red-800/50 text-red-300 transition-colors",
|
|
54597
|
+
children: "End Session"
|
|
54598
|
+
}), /*#__PURE__*/jsxRuntime.jsx("button", {
|
|
54599
|
+
onClick: handleNewChat,
|
|
54600
|
+
className: "px-2 py-1 text-xs rounded bg-gray-700 hover:bg-gray-600 text-gray-300 transition-colors",
|
|
54601
|
+
children: "New Chat"
|
|
54602
|
+
})]
|
|
54603
|
+
})]
|
|
54604
|
+
}) : /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
54605
|
+
className: "flex items-center justify-end px-3 py-1 shrink-0",
|
|
54606
|
+
children: [isCliBackend && sessionActive && /*#__PURE__*/jsxRuntime.jsx("button", {
|
|
54607
|
+
onClick: handleEndSession,
|
|
54608
|
+
className: "px-2 py-1 text-xs rounded bg-red-900/50 hover:bg-red-800/50 text-red-300 transition-colors mr-1",
|
|
54609
|
+
children: "End Session"
|
|
54610
|
+
}), /*#__PURE__*/jsxRuntime.jsx("button", {
|
|
54611
|
+
onClick: handleNewChat,
|
|
54612
|
+
className: "px-2 py-1 text-xs rounded bg-gray-700 hover:bg-gray-600 text-gray-300 transition-colors",
|
|
54613
|
+
children: "New Chat"
|
|
54614
|
+
})]
|
|
54615
|
+
}), error && /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
54616
|
+
className: "mx-3 mt-2 p-2 bg-red-900/30 border border-red-700 rounded text-red-300 text-xs",
|
|
54617
|
+
children: [error, /*#__PURE__*/jsxRuntime.jsx("button", {
|
|
54618
|
+
onClick: function onClick() {
|
|
54619
|
+
return setError(null);
|
|
54620
|
+
},
|
|
54621
|
+
className: "ml-2 text-red-400 hover:text-red-300",
|
|
54622
|
+
children: "Dismiss"
|
|
54623
|
+
})]
|
|
54624
|
+
}), isAnthropicBackend && !apiKey && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
54625
|
+
className: "mx-3 mt-2 p-2 bg-yellow-900/30 border border-yellow-700 rounded text-yellow-300 text-xs",
|
|
54626
|
+
children: "Add an Anthropic API key in Settings > AI Assistant to start chatting."
|
|
54627
|
+
}), isCliBackend && cliAvailable === null && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
54628
|
+
className: "mx-3 mt-2 p-2 bg-gray-800/50 border border-gray-700 rounded text-gray-400 text-xs",
|
|
54629
|
+
children: "Checking for Claude Code CLI..."
|
|
54630
|
+
}), isCliBackend && cliAvailable === false && /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
54631
|
+
className: "mx-3 mt-2 p-3 bg-yellow-900/30 border border-yellow-700 rounded text-yellow-300 text-xs",
|
|
54632
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("p", {
|
|
54633
|
+
className: "font-semibold mb-2",
|
|
54634
|
+
children: "Claude Code CLI not found"
|
|
54635
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("ol", {
|
|
54636
|
+
className: "list-decimal list-inside space-y-1 mb-3 text-yellow-300/90",
|
|
54637
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("li", {
|
|
54638
|
+
children: ["Download Claude Code from", " ", /*#__PURE__*/jsxRuntime.jsx("button", {
|
|
54639
|
+
onClick: function onClick() {
|
|
54640
|
+
var _mainApi$shell, _mainApi$shell$openEx;
|
|
54641
|
+
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");
|
|
54642
|
+
},
|
|
54643
|
+
className: "underline hover:text-yellow-200 font-mono",
|
|
54644
|
+
children: "claude.ai/download"
|
|
54645
|
+
})]
|
|
54646
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("li", {
|
|
54647
|
+
children: ["Open your terminal and run", " ", /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
54648
|
+
className: "font-mono bg-yellow-900/50 px-1 rounded",
|
|
54649
|
+
children: "claude auth login"
|
|
54650
|
+
})]
|
|
54651
|
+
}), /*#__PURE__*/jsxRuntime.jsx("li", {
|
|
54652
|
+
children: "Complete authentication in your browser"
|
|
54653
|
+
})]
|
|
54654
|
+
}), /*#__PURE__*/jsxRuntime.jsx("button", {
|
|
54655
|
+
onClick: handleCheckCliAgain,
|
|
54656
|
+
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",
|
|
54657
|
+
children: "Check Again"
|
|
54658
|
+
})]
|
|
54659
|
+
}), !hideToolsBanner && isAnthropicBackend && !hasTools && apiKey && messages.length === 0 && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
54660
|
+
className: "mx-3 mt-2 p-2 bg-gray-800/50 border border-gray-700 rounded text-gray-400 text-xs",
|
|
54661
|
+
children: "No MCP tools connected. Connect providers (GitHub, Slack, etc.) to enable tool-use."
|
|
54662
|
+
}), isCliBackend && cliAvailable && messages.length === 0 && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
54663
|
+
className: "mx-3 mt-2 p-2 bg-gray-800/50 border border-gray-700 rounded text-gray-400 text-xs",
|
|
54664
|
+
children: "Using Claude Code CLI. Your configured MCP tools pass through automatically."
|
|
54665
|
+
}), hasTools && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
54666
|
+
className: "px-1 pt-1",
|
|
54667
|
+
children: /*#__PURE__*/jsxRuntime.jsx(ToolSelector, {
|
|
54668
|
+
servers: servers,
|
|
54669
|
+
enabledTools: enabledTools,
|
|
54670
|
+
onToggle: handleToggleTool
|
|
54671
|
+
})
|
|
54672
|
+
}), /*#__PURE__*/jsxRuntime.jsx(ChatMessages, {
|
|
54673
|
+
messages: messages,
|
|
54674
|
+
streamingRequestId: isLoading ? activeRequestId.current : null,
|
|
54675
|
+
streamingText: streamingText
|
|
54676
|
+
}), /*#__PURE__*/jsxRuntime.jsx(ChatInput, {
|
|
54677
|
+
onSend: handleSend,
|
|
54678
|
+
onStop: handleStop,
|
|
54679
|
+
isLoading: isLoading,
|
|
54680
|
+
disabled: !isReady
|
|
54681
|
+
})]
|
|
54682
|
+
});
|
|
54683
|
+
}
|
|
54684
|
+
|
|
53789
54685
|
/**
|
|
53790
54686
|
* @trops/dash-core
|
|
53791
54687
|
*
|
|
@@ -53815,6 +54711,9 @@ exports.AppWrapper = AppWrapper;
|
|
|
53815
54711
|
exports.CHOOSE_FILE = CHOOSE_FILE;
|
|
53816
54712
|
exports.CHOOSE_FILE_COMPLETE = CHOOSE_FILE_COMPLETE;
|
|
53817
54713
|
exports.CHOOSE_FILE_ERROR = CHOOSE_FILE_ERROR;
|
|
54714
|
+
exports.ChatCore = ChatCore;
|
|
54715
|
+
exports.ChatInput = ChatInput;
|
|
54716
|
+
exports.ChatMessages = ChatMessages;
|
|
53818
54717
|
exports.ColorModel = ColorModel;
|
|
53819
54718
|
exports.ComponentConfigModel = ComponentConfigModel;
|
|
53820
54719
|
exports.ComponentManager = ComponentManager;
|
|
@@ -53909,6 +54808,7 @@ exports.McpServerPicker = McpServerPicker;
|
|
|
53909
54808
|
exports.MenuItemModel = MenuItemModel;
|
|
53910
54809
|
exports.MenuSlideOverlay = MenuSlideOverlay;
|
|
53911
54810
|
exports.MergeCellsModal = MergeCellsModal;
|
|
54811
|
+
exports.MessageBubble = MessageBubble;
|
|
53912
54812
|
exports.MissingProviderPrompt = MissingProviderPrompt;
|
|
53913
54813
|
exports.MockDashboardApi = MockDashboardApi;
|
|
53914
54814
|
exports.PROVIDER_DELETE_COMPLETE = PROVIDER_DELETE_COMPLETE;
|
|
@@ -53951,6 +54851,7 @@ exports.SIDEBAR_WIDGET_TYPE = SIDEBAR_WIDGET_TYPE;
|
|
|
53951
54851
|
exports.SettingsModel = SettingsModel;
|
|
53952
54852
|
exports.SideMenu = SideMenu;
|
|
53953
54853
|
exports.SplitCellModal = SplitCellModal;
|
|
54854
|
+
exports.StreamingText = StreamingText;
|
|
53954
54855
|
exports.THEME_DELETE = THEME_DELETE;
|
|
53955
54856
|
exports.THEME_DELETE_COMPLETE = THEME_DELETE_COMPLETE;
|
|
53956
54857
|
exports.THEME_DELETE_ERROR = THEME_DELETE_ERROR;
|
|
@@ -53971,6 +54872,8 @@ exports.ThemeColorDots = ThemeColorDots;
|
|
|
53971
54872
|
exports.ThemeManagerModal = ThemeManagerModal;
|
|
53972
54873
|
exports.ThemeModel = ThemeModel;
|
|
53973
54874
|
exports.ThemeWrapper = ThemeWrapper;
|
|
54875
|
+
exports.ToolCallBlock = ToolCallBlock;
|
|
54876
|
+
exports.ToolSelector = ToolSelector;
|
|
53974
54877
|
exports.WELCOME_STORAGE_KEY = WELCOME_STORAGE_KEY;
|
|
53975
54878
|
exports.WORKSPACE_DELETE = WORKSPACE_DELETE;
|
|
53976
54879
|
exports.WORKSPACE_DELETE_COMPLETE = WORKSPACE_DELETE_COMPLETE;
|