@trops/dash-core 0.1.538 → 0.1.540
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +720 -550
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +720 -550
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -34,8 +34,8 @@ import { InstantSearch, Hits } from 'react-instantsearch-hooks-web';
|
|
|
34
34
|
import { Link } from 'react-router-dom';
|
|
35
35
|
import { marked } from 'marked';
|
|
36
36
|
|
|
37
|
-
function ownKeys$
|
|
38
|
-
function _objectSpread$
|
|
37
|
+
function ownKeys$17(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; }
|
|
38
|
+
function _objectSpread$17(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$17(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$17(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
39
39
|
var event = {
|
|
40
40
|
list: new Map(),
|
|
41
41
|
// Map(1) { '<widget-UUID>' => { 'CustomSearchbar[10].searchQueryChanged': [] } }
|
|
@@ -97,7 +97,7 @@ var event = {
|
|
|
97
97
|
uuid: subscriber["uuid"]
|
|
98
98
|
};
|
|
99
99
|
if ("action" in subscriber && subscriber.action !== undefined) {
|
|
100
|
-
subscriber["action"](_objectSpread$
|
|
100
|
+
subscriber["action"](_objectSpread$17({}, objectToSend));
|
|
101
101
|
}
|
|
102
102
|
});
|
|
103
103
|
}
|
|
@@ -2946,8 +2946,8 @@ var DashboardWrapper = function DashboardWrapper(_ref) {
|
|
|
2946
2946
|
});
|
|
2947
2947
|
};
|
|
2948
2948
|
|
|
2949
|
-
function ownKeys$
|
|
2950
|
-
function _objectSpread$
|
|
2949
|
+
function ownKeys$16(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; }
|
|
2950
|
+
function _objectSpread$16(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$16(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$16(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2951
2951
|
function ThemeBroadcast(_ref) {
|
|
2952
2952
|
var ctx = _ref.ctx;
|
|
2953
2953
|
useEffect(function () {
|
|
@@ -2980,7 +2980,7 @@ var DashboardThemeProvider = function DashboardThemeProvider(_ref2) {
|
|
|
2980
2980
|
var dashboardTheme = themes[themeKey];
|
|
2981
2981
|
var themeValue = dashboardTheme ? dashboardTheme[themeVariant] || null : null;
|
|
2982
2982
|
if (!themeValue) return null;
|
|
2983
|
-
return _objectSpread$
|
|
2983
|
+
return _objectSpread$16(_objectSpread$16({}, parentContext), {}, {
|
|
2984
2984
|
currentTheme: themeValue,
|
|
2985
2985
|
currentThemeKey: themeKey,
|
|
2986
2986
|
theme: themeValue,
|
|
@@ -3007,8 +3007,8 @@ var DashboardThemeProvider = function DashboardThemeProvider(_ref2) {
|
|
|
3007
3007
|
});
|
|
3008
3008
|
};
|
|
3009
3009
|
|
|
3010
|
-
function ownKeys$
|
|
3011
|
-
function _objectSpread$
|
|
3010
|
+
function ownKeys$15(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; }
|
|
3011
|
+
function _objectSpread$15(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$15(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$15(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3012
3012
|
var AppThemeScope = function AppThemeScope(_ref) {
|
|
3013
3013
|
var children = _ref.children;
|
|
3014
3014
|
var ctx = useContext(ThemeContext);
|
|
@@ -3016,7 +3016,7 @@ var AppThemeScope = function AppThemeScope(_ref) {
|
|
|
3016
3016
|
children: children
|
|
3017
3017
|
});
|
|
3018
3018
|
return /*#__PURE__*/jsx(ThemeContext.Provider, {
|
|
3019
|
-
value: _objectSpread$
|
|
3019
|
+
value: _objectSpread$15(_objectSpread$15({}, ctx), {}, {
|
|
3020
3020
|
currentTheme: ctx.appTheme,
|
|
3021
3021
|
currentThemeKey: ctx.appThemeKey,
|
|
3022
3022
|
theme: ctx.appTheme,
|
|
@@ -3128,8 +3128,8 @@ var LayoutContainer = function LayoutContainer(_ref) {
|
|
|
3128
3128
|
});
|
|
3129
3129
|
};
|
|
3130
3130
|
|
|
3131
|
-
function ownKeys$
|
|
3132
|
-
function _objectSpread$
|
|
3131
|
+
function ownKeys$14(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; }
|
|
3132
|
+
function _objectSpread$14(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$14(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$14(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3133
3133
|
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; } } }; }
|
|
3134
3134
|
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; } }
|
|
3135
3135
|
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; }
|
|
@@ -3411,7 +3411,7 @@ function createLayoutFromTemplate(template) {
|
|
|
3411
3411
|
try {
|
|
3412
3412
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3413
3413
|
var cell = _step.value;
|
|
3414
|
-
grid[cell.key] = _objectSpread$
|
|
3414
|
+
grid[cell.key] = _objectSpread$14({
|
|
3415
3415
|
component: null,
|
|
3416
3416
|
hide: cell.hide || false
|
|
3417
3417
|
}, cell.span ? {
|
|
@@ -4590,8 +4590,8 @@ var DashboardInstallOptionsModal = function DashboardInstallOptionsModal(_ref) {
|
|
|
4590
4590
|
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; } } }; }
|
|
4591
4591
|
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; } }
|
|
4592
4592
|
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; }
|
|
4593
|
-
function ownKeys$
|
|
4594
|
-
function _objectSpread$
|
|
4593
|
+
function ownKeys$13(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; }
|
|
4594
|
+
function _objectSpread$13(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$13(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$13(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4595
4595
|
var RegistryDashboardDetail = function RegistryDashboardDetail(_ref) {
|
|
4596
4596
|
var dashboardPackage = _ref.dashboardPackage,
|
|
4597
4597
|
appId = _ref.appId,
|
|
@@ -4824,7 +4824,7 @@ var RegistryDashboardDetail = function RegistryDashboardDetail(_ref) {
|
|
|
4824
4824
|
setProgressWidgets(function (prev) {
|
|
4825
4825
|
var next = _toConsumableArray(prev);
|
|
4826
4826
|
if (data.index >= 0 && data.index < next.length) {
|
|
4827
|
-
next[data.index] = _objectSpread$
|
|
4827
|
+
next[data.index] = _objectSpread$13(_objectSpread$13({}, next[data.index]), {}, {
|
|
4828
4828
|
status: data.status,
|
|
4829
4829
|
error: data.error || null
|
|
4830
4830
|
});
|
|
@@ -4931,7 +4931,7 @@ var RegistryDashboardDetail = function RegistryDashboardDetail(_ref) {
|
|
|
4931
4931
|
var raw = preview === null || preview === void 0 ? void 0 : preview.compatibility;
|
|
4932
4932
|
if (!raw) return raw;
|
|
4933
4933
|
var cMap = ComponentManager.componentMap();
|
|
4934
|
-
var augWidgets = _objectSpread$
|
|
4934
|
+
var augWidgets = _objectSpread$13({}, raw.widgets);
|
|
4935
4935
|
var fixedCount = 0;
|
|
4936
4936
|
var _loop = function _loop() {
|
|
4937
4937
|
var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
|
|
@@ -8422,8 +8422,8 @@ var WizardCustomizeStep = function WizardCustomizeStep(_ref) {
|
|
|
8422
8422
|
});
|
|
8423
8423
|
};
|
|
8424
8424
|
|
|
8425
|
-
function ownKeys$
|
|
8426
|
-
function _objectSpread$
|
|
8425
|
+
function ownKeys$12(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; }
|
|
8426
|
+
function _objectSpread$12(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$12(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$12(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8427
8427
|
var TOTAL_STEPS = 5; // Steps 0-4: Discover, Name, Folder, Theme, Review
|
|
8428
8428
|
|
|
8429
8429
|
var initialState = {
|
|
@@ -8449,20 +8449,20 @@ var initialState = {
|
|
|
8449
8449
|
function wizardReducer(state, action) {
|
|
8450
8450
|
switch (action.type) {
|
|
8451
8451
|
case "SET_STEP":
|
|
8452
|
-
return _objectSpread$
|
|
8452
|
+
return _objectSpread$12(_objectSpread$12({}, state), {}, {
|
|
8453
8453
|
step: action.payload
|
|
8454
8454
|
});
|
|
8455
8455
|
case "SET_FILTERS":
|
|
8456
|
-
return _objectSpread$
|
|
8457
|
-
filters: _objectSpread$
|
|
8456
|
+
return _objectSpread$12(_objectSpread$12({}, state), {}, {
|
|
8457
|
+
filters: _objectSpread$12(_objectSpread$12({}, state.filters), action.payload)
|
|
8458
8458
|
});
|
|
8459
8459
|
case "TOGGLE_FILTER_CATEGORY":
|
|
8460
8460
|
{
|
|
8461
8461
|
var categories = state.filters.categories.includes(action.payload) ? state.filters.categories.filter(function (c) {
|
|
8462
8462
|
return c !== action.payload;
|
|
8463
8463
|
}) : [].concat(_toConsumableArray(state.filters.categories), [action.payload]);
|
|
8464
|
-
return _objectSpread$
|
|
8465
|
-
filters: _objectSpread$
|
|
8464
|
+
return _objectSpread$12(_objectSpread$12({}, state), {}, {
|
|
8465
|
+
filters: _objectSpread$12(_objectSpread$12({}, state.filters), {}, {
|
|
8466
8466
|
categories: categories
|
|
8467
8467
|
})
|
|
8468
8468
|
});
|
|
@@ -8472,15 +8472,15 @@ function wizardReducer(state, action) {
|
|
|
8472
8472
|
var providers = state.filters.providers.includes(action.payload) ? state.filters.providers.filter(function (p) {
|
|
8473
8473
|
return p !== action.payload;
|
|
8474
8474
|
}) : [].concat(_toConsumableArray(state.filters.providers), [action.payload]);
|
|
8475
|
-
return _objectSpread$
|
|
8476
|
-
filters: _objectSpread$
|
|
8475
|
+
return _objectSpread$12(_objectSpread$12({}, state), {}, {
|
|
8476
|
+
filters: _objectSpread$12(_objectSpread$12({}, state.filters), {}, {
|
|
8477
8477
|
providers: providers
|
|
8478
8478
|
})
|
|
8479
8479
|
});
|
|
8480
8480
|
}
|
|
8481
8481
|
case "SET_SEARCH_QUERY":
|
|
8482
|
-
return _objectSpread$
|
|
8483
|
-
filters: _objectSpread$
|
|
8482
|
+
return _objectSpread$12(_objectSpread$12({}, state), {}, {
|
|
8483
|
+
filters: _objectSpread$12(_objectSpread$12({}, state.filters), {}, {
|
|
8484
8484
|
query: action.payload
|
|
8485
8485
|
})
|
|
8486
8486
|
});
|
|
@@ -8490,7 +8490,7 @@ function wizardReducer(state, action) {
|
|
|
8490
8490
|
var widgetOrder = action.payload.map(function (w) {
|
|
8491
8491
|
return w.name || w.key;
|
|
8492
8492
|
});
|
|
8493
|
-
return _objectSpread$
|
|
8493
|
+
return _objectSpread$12(_objectSpread$12({}, state), {}, {
|
|
8494
8494
|
selectedWidgets: action.payload,
|
|
8495
8495
|
layout: {
|
|
8496
8496
|
templateKey: templateKey,
|
|
@@ -8510,7 +8510,7 @@ function wizardReducer(state, action) {
|
|
|
8510
8510
|
var toggleWidgetOrder = selectedWidgets.map(function (w) {
|
|
8511
8511
|
return w.name || w.key;
|
|
8512
8512
|
});
|
|
8513
|
-
return _objectSpread$
|
|
8513
|
+
return _objectSpread$12(_objectSpread$12({}, state), {}, {
|
|
8514
8514
|
selectedWidgets: selectedWidgets,
|
|
8515
8515
|
layout: {
|
|
8516
8516
|
templateKey: toggleTemplateKey,
|
|
@@ -8519,29 +8519,29 @@ function wizardReducer(state, action) {
|
|
|
8519
8519
|
});
|
|
8520
8520
|
}
|
|
8521
8521
|
case "SET_SELECTED_DASHBOARD":
|
|
8522
|
-
return _objectSpread$
|
|
8522
|
+
return _objectSpread$12(_objectSpread$12({}, state), {}, {
|
|
8523
8523
|
selectedDashboard: action.payload
|
|
8524
8524
|
});
|
|
8525
8525
|
case "SET_PATH":
|
|
8526
|
-
return _objectSpread$
|
|
8526
|
+
return _objectSpread$12(_objectSpread$12({}, state), {}, {
|
|
8527
8527
|
path: action.payload
|
|
8528
8528
|
});
|
|
8529
8529
|
case "SET_LAYOUT":
|
|
8530
|
-
return _objectSpread$
|
|
8530
|
+
return _objectSpread$12(_objectSpread$12({}, state), {}, {
|
|
8531
8531
|
layout: action.payload
|
|
8532
8532
|
});
|
|
8533
8533
|
case "REORDER_WIDGETS":
|
|
8534
|
-
return _objectSpread$
|
|
8535
|
-
layout: _objectSpread$
|
|
8534
|
+
return _objectSpread$12(_objectSpread$12({}, state), {}, {
|
|
8535
|
+
layout: _objectSpread$12(_objectSpread$12({}, state.layout), {}, {
|
|
8536
8536
|
widgetOrder: action.payload
|
|
8537
8537
|
})
|
|
8538
8538
|
});
|
|
8539
8539
|
case "SET_CUSTOMIZATION":
|
|
8540
|
-
return _objectSpread$
|
|
8541
|
-
customization: _objectSpread$
|
|
8540
|
+
return _objectSpread$12(_objectSpread$12({}, state), {}, {
|
|
8541
|
+
customization: _objectSpread$12(_objectSpread$12({}, state.customization), action.payload)
|
|
8542
8542
|
});
|
|
8543
8543
|
case "RESET":
|
|
8544
|
-
return _objectSpread$
|
|
8544
|
+
return _objectSpread$12({}, initialState);
|
|
8545
8545
|
default:
|
|
8546
8546
|
return state;
|
|
8547
8547
|
}
|
|
@@ -9317,8 +9317,8 @@ var PanelEditItem = function PanelEditItem(_ref) {
|
|
|
9317
9317
|
});
|
|
9318
9318
|
};
|
|
9319
9319
|
|
|
9320
|
-
function ownKeys$
|
|
9321
|
-
function _objectSpread$
|
|
9320
|
+
function ownKeys$11(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; }
|
|
9321
|
+
function _objectSpread$11(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$11(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$11(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9322
9322
|
/**
|
|
9323
9323
|
* gridMergeOps
|
|
9324
9324
|
*
|
|
@@ -9373,8 +9373,8 @@ function mergeRightOp(grid, row, col) {
|
|
|
9373
9373
|
}
|
|
9374
9374
|
var next = grid[nextKey];
|
|
9375
9375
|
if (!next) return grid;
|
|
9376
|
-
var newGrid = _objectSpread$
|
|
9377
|
-
newGrid[currentKey] = _objectSpread$
|
|
9376
|
+
var newGrid = _objectSpread$11({}, grid);
|
|
9377
|
+
newGrid[currentKey] = _objectSpread$11(_objectSpread$11({}, current), {}, {
|
|
9378
9378
|
colSpan: (current.colSpan || 1) + 1,
|
|
9379
9379
|
// Migrate component (and hide) from absorbed cell when current
|
|
9380
9380
|
// is empty. Without this, mergeRight on (empty, widget) silently
|
|
@@ -9397,8 +9397,8 @@ function mergeDownOp(grid, row, col) {
|
|
|
9397
9397
|
var belowKey = "".concat(row + 1, ".").concat(col);
|
|
9398
9398
|
var below = grid[belowKey];
|
|
9399
9399
|
if (!below) return grid;
|
|
9400
|
-
var newGrid = _objectSpread$
|
|
9401
|
-
newGrid[currentKey] = _objectSpread$
|
|
9400
|
+
var newGrid = _objectSpread$11({}, grid);
|
|
9401
|
+
newGrid[currentKey] = _objectSpread$11(_objectSpread$11({}, current), {}, {
|
|
9402
9402
|
rowSpan: (current.rowSpan || 1) + 1,
|
|
9403
9403
|
component: current.component != null ? current.component : below.component,
|
|
9404
9404
|
hide: current.component != null ? current.hide : below.hide
|
|
@@ -9411,8 +9411,8 @@ var _excluded$6 = ["rows", "cols"];
|
|
|
9411
9411
|
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; } } }; }
|
|
9412
9412
|
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; } }
|
|
9413
9413
|
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; }
|
|
9414
|
-
function ownKeys
|
|
9415
|
-
function _objectSpread
|
|
9414
|
+
function ownKeys$10(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; }
|
|
9415
|
+
function _objectSpread$10(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$10(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$10(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9416
9416
|
var defaultGrid = {
|
|
9417
9417
|
rows: 1,
|
|
9418
9418
|
cols: 1,
|
|
@@ -9433,7 +9433,7 @@ function GridEditor(_ref) {
|
|
|
9433
9433
|
setGrid = _useState2[1];
|
|
9434
9434
|
var addRow = function addRow() {
|
|
9435
9435
|
var newRow = grid.rows;
|
|
9436
|
-
var newGrid = _objectSpread
|
|
9436
|
+
var newGrid = _objectSpread$10(_objectSpread$10({}, grid), {}, {
|
|
9437
9437
|
rows: grid.rows + 1
|
|
9438
9438
|
});
|
|
9439
9439
|
for (var col = 0; col < grid.cols; col++) {
|
|
@@ -9448,7 +9448,7 @@ function GridEditor(_ref) {
|
|
|
9448
9448
|
};
|
|
9449
9449
|
var addColumn = function addColumn() {
|
|
9450
9450
|
var newCol = grid.cols;
|
|
9451
|
-
var newGrid = _objectSpread
|
|
9451
|
+
var newGrid = _objectSpread$10(_objectSpread$10({}, grid), {}, {
|
|
9452
9452
|
cols: grid.cols + 1
|
|
9453
9453
|
});
|
|
9454
9454
|
for (var row = 0; row < grid.rows; row++) {
|
|
@@ -9482,7 +9482,7 @@ function GridEditor(_ref) {
|
|
|
9482
9482
|
var splitCell = function splitCell(row, col) {
|
|
9483
9483
|
var key = "".concat(row, ".").concat(col);
|
|
9484
9484
|
var cell = grid[key];
|
|
9485
|
-
var newGrid = _objectSpread
|
|
9485
|
+
var newGrid = _objectSpread$10({}, grid);
|
|
9486
9486
|
|
|
9487
9487
|
// we have to check the colspan, and since the colspan is greater than 1
|
|
9488
9488
|
// Only handle horizontal split if colSpan > 1
|
|
@@ -9498,13 +9498,13 @@ function GridEditor(_ref) {
|
|
|
9498
9498
|
var oldKey = "".concat(row, ".").concat(c);
|
|
9499
9499
|
var newKey = "".concat(row, ".").concat(c + 1);
|
|
9500
9500
|
if (newGrid[oldKey]) {
|
|
9501
|
-
newGrid[newKey] = _objectSpread
|
|
9501
|
+
newGrid[newKey] = _objectSpread$10({}, newGrid[oldKey]);
|
|
9502
9502
|
delete newGrid[oldKey];
|
|
9503
9503
|
}
|
|
9504
9504
|
}
|
|
9505
9505
|
|
|
9506
9506
|
// Update the original cell's colSpan
|
|
9507
|
-
newGrid[key] = _objectSpread
|
|
9507
|
+
newGrid[key] = _objectSpread$10(_objectSpread$10({}, cell), {}, {
|
|
9508
9508
|
colSpan: cell.colSpan - 1
|
|
9509
9509
|
});
|
|
9510
9510
|
|
|
@@ -9516,7 +9516,7 @@ function GridEditor(_ref) {
|
|
|
9516
9516
|
};
|
|
9517
9517
|
}
|
|
9518
9518
|
if (cell.rowSpan > 1) {
|
|
9519
|
-
newGrid[key] = _objectSpread
|
|
9519
|
+
newGrid[key] = _objectSpread$10(_objectSpread$10({}, newGrid[key]), {}, {
|
|
9520
9520
|
rowSpan: cell.rowSpan - 1
|
|
9521
9521
|
});
|
|
9522
9522
|
newGrid["".concat(row + 1, ".").concat(col)] = {
|
|
@@ -9635,7 +9635,7 @@ function GridEditor(_ref) {
|
|
|
9635
9635
|
var fromKey = "".concat(from.row, ".").concat(from.col);
|
|
9636
9636
|
var toKey = "".concat(to.row, ".").concat(to.col);
|
|
9637
9637
|
if (fromKey === toKey) return;
|
|
9638
|
-
var newGrid = _objectSpread
|
|
9638
|
+
var newGrid = _objectSpread$10({}, grid);
|
|
9639
9639
|
|
|
9640
9640
|
// Swap the cells
|
|
9641
9641
|
var temp = newGrid[fromKey];
|
|
@@ -9661,7 +9661,7 @@ function GridEditor(_ref) {
|
|
|
9661
9661
|
// console.log("Grid updated:", sequencedGrid);
|
|
9662
9662
|
}
|
|
9663
9663
|
function resetGridLayout() {
|
|
9664
|
-
var newGrid = _objectSpread
|
|
9664
|
+
var newGrid = _objectSpread$10({}, defaultGrid);
|
|
9665
9665
|
setGrid(newGrid);
|
|
9666
9666
|
onUpdate(newGrid);
|
|
9667
9667
|
}
|
|
@@ -9939,8 +9939,8 @@ var PanelEditItemGrid = function PanelEditItemGrid(_ref) {
|
|
|
9939
9939
|
});
|
|
9940
9940
|
};
|
|
9941
9941
|
|
|
9942
|
-
function ownKeys
|
|
9943
|
-
function _objectSpread
|
|
9942
|
+
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; }
|
|
9943
|
+
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; }
|
|
9944
9944
|
var PanelEditItemNotifications = function PanelEditItemNotifications(_ref) {
|
|
9945
9945
|
var item = _ref.item;
|
|
9946
9946
|
_ref.workspace;
|
|
@@ -9963,7 +9963,7 @@ var PanelEditItemNotifications = function PanelEditItemNotifications(_ref) {
|
|
|
9963
9963
|
}, [widgetUuid, notificationDefs.length]);
|
|
9964
9964
|
function handleNotifToggle(typeKey, value) {
|
|
9965
9965
|
var _window$mainApi2;
|
|
9966
|
-
var updated = _objectSpread
|
|
9966
|
+
var updated = _objectSpread$$(_objectSpread$$({}, notifPrefs), {}, _defineProperty({}, typeKey, value));
|
|
9967
9967
|
setNotifPrefs(updated);
|
|
9968
9968
|
if ((_window$mainApi2 = window.mainApi) !== null && _window$mainApi2 !== void 0 && (_window$mainApi2 = _window$mainApi2.notifications) !== null && _window$mainApi2 !== void 0 && _window$mainApi2.setPreferences && widgetUuid) {
|
|
9969
9969
|
window.mainApi.notifications.setPreferences(widgetUuid, _defineProperty({}, typeKey, value));
|
|
@@ -10008,8 +10008,8 @@ var PanelEditItemNotifications = function PanelEditItemNotifications(_ref) {
|
|
|
10008
10008
|
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; } } }; }
|
|
10009
10009
|
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; } }
|
|
10010
10010
|
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; }
|
|
10011
|
-
function ownKeys$
|
|
10012
|
-
function _objectSpread$
|
|
10011
|
+
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; }
|
|
10012
|
+
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; }
|
|
10013
10013
|
var DAYS = [{
|
|
10014
10014
|
key: "mon",
|
|
10015
10015
|
label: "Mon"
|
|
@@ -10110,7 +10110,7 @@ function TaskScheduleEditor(_ref) {
|
|
|
10110
10110
|
var _window$mainApi;
|
|
10111
10111
|
var overrides = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
10112
10112
|
if (!((_window$mainApi = window.mainApi) !== null && _window$mainApi !== void 0 && (_window$mainApi = _window$mainApi.scheduler) !== null && _window$mainApi !== void 0 && _window$mainApi.registerTask)) return;
|
|
10113
|
-
var payload = _objectSpread$
|
|
10113
|
+
var payload = _objectSpread$_({
|
|
10114
10114
|
widgetId: widgetId,
|
|
10115
10115
|
widgetName: widgetName,
|
|
10116
10116
|
workspaceId: workspaceId || "",
|
|
@@ -10385,8 +10385,8 @@ var PanelEditItemSchedule = function PanelEditItemSchedule(_ref2) {
|
|
|
10385
10385
|
});
|
|
10386
10386
|
};
|
|
10387
10387
|
|
|
10388
|
-
function ownKeys$
|
|
10389
|
-
function _objectSpread$
|
|
10388
|
+
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; }
|
|
10389
|
+
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; }
|
|
10390
10390
|
var DERIVED_FIELDS = ["widgetConfig",
|
|
10391
10391
|
// biggest offender — full component definition blob
|
|
10392
10392
|
"uuid", "dashboardId", "parentWorkspaceName", "componentName", "siblingCount", "hasChildren", "canHaveChildren", "events",
|
|
@@ -10450,7 +10450,7 @@ var PanelCode = function PanelCode(_ref) {
|
|
|
10450
10450
|
// expects. LayoutModel re-derives these on reload, but losing
|
|
10451
10451
|
// them between render cycles can cause flashes of "unknown
|
|
10452
10452
|
// widget" state.
|
|
10453
|
-
var merged = _objectSpread$
|
|
10453
|
+
var merged = _objectSpread$Z({}, itemSelected);
|
|
10454
10454
|
for (var _i2 = 0, _Object$keys = Object.keys(edited); _i2 < _Object$keys.length; _i2++) {
|
|
10455
10455
|
var k = _Object$keys[_i2];
|
|
10456
10456
|
merged[k] = edited[k];
|
|
@@ -10906,8 +10906,8 @@ function getAllProviderBindings(_ref3) {
|
|
|
10906
10906
|
return bindings;
|
|
10907
10907
|
}
|
|
10908
10908
|
|
|
10909
|
-
function ownKeys$
|
|
10910
|
-
function _objectSpread$
|
|
10909
|
+
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; }
|
|
10910
|
+
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; }
|
|
10911
10911
|
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; } } }; }
|
|
10912
10912
|
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; } }
|
|
10913
10913
|
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; }
|
|
@@ -11156,13 +11156,13 @@ function getOrphanedListeners(workspace, getWidgetConfig) {
|
|
|
11156
11156
|
// missing. Preserves the user's ability to see whether a
|
|
11157
11157
|
// rename happened vs. a delete.
|
|
11158
11158
|
var fallback = byItemId.get(String(w.sourceItemId));
|
|
11159
|
-
orphans.push(_objectSpread$
|
|
11159
|
+
orphans.push(_objectSpread$Y(_objectSpread$Y({}, w), {}, {
|
|
11160
11160
|
reason: fallback ? "source-component-mismatch" : "source-missing"
|
|
11161
11161
|
}));
|
|
11162
11162
|
continue;
|
|
11163
11163
|
}
|
|
11164
11164
|
if (!src.events.includes(w.eventName)) {
|
|
11165
|
-
orphans.push(_objectSpread$
|
|
11165
|
+
orphans.push(_objectSpread$Y(_objectSpread$Y({}, w), {}, {
|
|
11166
11166
|
reason: "event-not-emitted"
|
|
11167
11167
|
}));
|
|
11168
11168
|
continue;
|
|
@@ -11170,7 +11170,7 @@ function getOrphanedListeners(workspace, getWidgetConfig) {
|
|
|
11170
11170
|
var receiverKey = "".concat(w.receiverComponent, "|").concat(w.receiverItemId);
|
|
11171
11171
|
var receiver = byCompositeKey.get(receiverKey);
|
|
11172
11172
|
if (receiver && !receiver.eventHandlers.includes(w.handlerName)) {
|
|
11173
|
-
orphans.push(_objectSpread$
|
|
11173
|
+
orphans.push(_objectSpread$Y(_objectSpread$Y({}, w), {}, {
|
|
11174
11174
|
reason: "handler-not-declared"
|
|
11175
11175
|
}));
|
|
11176
11176
|
}
|
|
@@ -11380,29 +11380,29 @@ function applyWiringChanges(workspace, _ref) {
|
|
|
11380
11380
|
var change = id != null ? byReceiver.get(String(id)) : null;
|
|
11381
11381
|
if (change) {
|
|
11382
11382
|
var newListeners = applyToItem(item.listeners || {}, change);
|
|
11383
|
-
next = _objectSpread$
|
|
11383
|
+
next = _objectSpread$Y(_objectSpread$Y({}, next), {}, {
|
|
11384
11384
|
listeners: newListeners
|
|
11385
11385
|
});
|
|
11386
11386
|
}
|
|
11387
11387
|
if (Array.isArray(next.items)) {
|
|
11388
|
-
next = _objectSpread$
|
|
11388
|
+
next = _objectSpread$Y(_objectSpread$Y({}, next), {}, {
|
|
11389
11389
|
items: cloneList(next.items)
|
|
11390
11390
|
});
|
|
11391
11391
|
}
|
|
11392
11392
|
if (Array.isArray(next.layout)) {
|
|
11393
|
-
next = _objectSpread$
|
|
11393
|
+
next = _objectSpread$Y(_objectSpread$Y({}, next), {}, {
|
|
11394
11394
|
layout: cloneList(next.layout)
|
|
11395
11395
|
});
|
|
11396
11396
|
}
|
|
11397
11397
|
return next;
|
|
11398
11398
|
};
|
|
11399
|
-
var updatedWs = _objectSpread$
|
|
11399
|
+
var updatedWs = _objectSpread$Y({}, workspace);
|
|
11400
11400
|
if (Array.isArray(workspace.layout)) {
|
|
11401
11401
|
updatedWs.layout = cloneList(workspace.layout);
|
|
11402
11402
|
}
|
|
11403
11403
|
if (Array.isArray(workspace.pages)) {
|
|
11404
11404
|
updatedWs.pages = workspace.pages.map(function (page) {
|
|
11405
|
-
return _objectSpread$
|
|
11405
|
+
return _objectSpread$Y(_objectSpread$Y({}, page), {}, {
|
|
11406
11406
|
layout: cloneList(page.layout)
|
|
11407
11407
|
});
|
|
11408
11408
|
});
|
|
@@ -11778,8 +11778,8 @@ var getUserConfigurableProviders = function getUserConfigurableProviders(provide
|
|
|
11778
11778
|
});
|
|
11779
11779
|
};
|
|
11780
11780
|
|
|
11781
|
-
function ownKeys$
|
|
11782
|
-
function _objectSpread$
|
|
11781
|
+
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; }
|
|
11782
|
+
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; }
|
|
11783
11783
|
var PanelEditItemProviders = function PanelEditItemProviders(_ref) {
|
|
11784
11784
|
var workspace = _ref.workspace,
|
|
11785
11785
|
onUpdate = _ref.onUpdate,
|
|
@@ -11811,7 +11811,7 @@ var PanelEditItemProviders = function PanelEditItemProviders(_ref) {
|
|
|
11811
11811
|
var selectedProviders = itemSelected.selectedProviders || {};
|
|
11812
11812
|
function handleProviderChange(providerType, providerName) {
|
|
11813
11813
|
var updatedItem = deepCopy(itemSelected);
|
|
11814
|
-
var nextProviders = _objectSpread$
|
|
11814
|
+
var nextProviders = _objectSpread$X({}, updatedItem.selectedProviders || {});
|
|
11815
11815
|
if (providerName) {
|
|
11816
11816
|
nextProviders[providerType] = providerName;
|
|
11817
11817
|
} else {
|
|
@@ -11832,8 +11832,8 @@ var PanelEditItemProviders = function PanelEditItemProviders(_ref) {
|
|
|
11832
11832
|
var widgetId = updatedItem.uuidString || updatedItem.uuid || updatedItem.id;
|
|
11833
11833
|
if (widgetId != null) {
|
|
11834
11834
|
var wsKey = String(widgetId);
|
|
11835
|
-
var nextSelectedProviders = _objectSpread$
|
|
11836
|
-
var prevForWidget = nextSelectedProviders[wsKey] ? _objectSpread$
|
|
11835
|
+
var nextSelectedProviders = _objectSpread$X({}, updatedWorkspace.selectedProviders || {});
|
|
11836
|
+
var prevForWidget = nextSelectedProviders[wsKey] ? _objectSpread$X({}, nextSelectedProviders[wsKey]) : {};
|
|
11837
11837
|
if (providerName) {
|
|
11838
11838
|
prevForWidget[providerType] = providerName;
|
|
11839
11839
|
} else {
|
|
@@ -11878,7 +11878,7 @@ var PanelEditItemProviders = function PanelEditItemProviders(_ref) {
|
|
|
11878
11878
|
var _ref5 = _slicedToArray(_ref4, 2),
|
|
11879
11879
|
name = _ref5[0],
|
|
11880
11880
|
p = _ref5[1];
|
|
11881
|
-
return _objectSpread$
|
|
11881
|
+
return _objectSpread$X({
|
|
11882
11882
|
name: name
|
|
11883
11883
|
}, p);
|
|
11884
11884
|
});
|
|
@@ -13629,8 +13629,8 @@ var WidgetIcon = function WidgetIcon(_ref) {
|
|
|
13629
13629
|
});
|
|
13630
13630
|
};
|
|
13631
13631
|
|
|
13632
|
-
function ownKeys$
|
|
13633
|
-
function _objectSpread$
|
|
13632
|
+
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; }
|
|
13633
|
+
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; }
|
|
13634
13634
|
var ProviderForm = function ProviderForm(_ref) {
|
|
13635
13635
|
var credentialSchema = _ref.credentialSchema,
|
|
13636
13636
|
_ref$initialValues = _ref.initialValues,
|
|
@@ -13675,14 +13675,14 @@ var ProviderForm = function ProviderForm(_ref) {
|
|
|
13675
13675
|
var oldKey = f.key;
|
|
13676
13676
|
if (oldKey && formData[oldKey] !== undefined) {
|
|
13677
13677
|
setFormData(function (fd) {
|
|
13678
|
-
var updated = _objectSpread$
|
|
13678
|
+
var updated = _objectSpread$W({}, fd);
|
|
13679
13679
|
var val = updated[oldKey];
|
|
13680
13680
|
delete updated[oldKey];
|
|
13681
13681
|
if (newKey.trim()) updated[newKey] = val;
|
|
13682
13682
|
return updated;
|
|
13683
13683
|
});
|
|
13684
13684
|
}
|
|
13685
|
-
return _objectSpread$
|
|
13685
|
+
return _objectSpread$W(_objectSpread$W({}, f), {}, {
|
|
13686
13686
|
key: newKey
|
|
13687
13687
|
});
|
|
13688
13688
|
});
|
|
@@ -13694,14 +13694,14 @@ var ProviderForm = function ProviderForm(_ref) {
|
|
|
13694
13694
|
});
|
|
13695
13695
|
if (field !== null && field !== void 0 && field.key) {
|
|
13696
13696
|
setFormData(function (prev) {
|
|
13697
|
-
return _objectSpread$
|
|
13697
|
+
return _objectSpread$W(_objectSpread$W({}, prev), {}, _defineProperty({}, field.key, value));
|
|
13698
13698
|
});
|
|
13699
13699
|
}
|
|
13700
13700
|
};
|
|
13701
13701
|
var handleDynamicSecretToggle = function handleDynamicSecretToggle(id) {
|
|
13702
13702
|
setDynamicFields(function (prev) {
|
|
13703
13703
|
return prev.map(function (f) {
|
|
13704
|
-
return f.id === id ? _objectSpread$
|
|
13704
|
+
return f.id === id ? _objectSpread$W(_objectSpread$W({}, f), {}, {
|
|
13705
13705
|
secret: !f.secret
|
|
13706
13706
|
}) : f;
|
|
13707
13707
|
});
|
|
@@ -13723,7 +13723,7 @@ var ProviderForm = function ProviderForm(_ref) {
|
|
|
13723
13723
|
});
|
|
13724
13724
|
if (field !== null && field !== void 0 && field.key) {
|
|
13725
13725
|
setFormData(function (prev) {
|
|
13726
|
-
var updated = _objectSpread$
|
|
13726
|
+
var updated = _objectSpread$W({}, prev);
|
|
13727
13727
|
delete updated[field.key];
|
|
13728
13728
|
return updated;
|
|
13729
13729
|
});
|
|
@@ -13765,13 +13765,13 @@ var ProviderForm = function ProviderForm(_ref) {
|
|
|
13765
13765
|
*/
|
|
13766
13766
|
var handleInputChange = function handleInputChange(fieldName, value) {
|
|
13767
13767
|
setFormData(function (prev) {
|
|
13768
|
-
return _objectSpread$
|
|
13768
|
+
return _objectSpread$W(_objectSpread$W({}, prev), {}, _defineProperty({}, fieldName, value));
|
|
13769
13769
|
});
|
|
13770
13770
|
|
|
13771
13771
|
// Clear error for this field if it was filled
|
|
13772
13772
|
if (errors[fieldName] && value !== null && value !== void 0 && value.trim()) {
|
|
13773
13773
|
setErrors(function (prev) {
|
|
13774
|
-
var newErrors = _objectSpread$
|
|
13774
|
+
var newErrors = _objectSpread$W({}, prev);
|
|
13775
13775
|
delete newErrors[fieldName];
|
|
13776
13776
|
return newErrors;
|
|
13777
13777
|
});
|
|
@@ -13809,7 +13809,7 @@ var ProviderForm = function ProviderForm(_ref) {
|
|
|
13809
13809
|
// Clear error if filled
|
|
13810
13810
|
if (errors.providerName && value !== null && value !== void 0 && value.trim()) {
|
|
13811
13811
|
setErrors(function (prev) {
|
|
13812
|
-
var newErrors = _objectSpread$
|
|
13812
|
+
var newErrors = _objectSpread$W({}, prev);
|
|
13813
13813
|
delete newErrors.providerName;
|
|
13814
13814
|
return newErrors;
|
|
13815
13815
|
});
|
|
@@ -14046,8 +14046,8 @@ var ToolSelector$1 = function ToolSelector(_ref) {
|
|
|
14046
14046
|
});
|
|
14047
14047
|
};
|
|
14048
14048
|
|
|
14049
|
-
function ownKeys$
|
|
14050
|
-
function _objectSpread$
|
|
14049
|
+
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; }
|
|
14050
|
+
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; }
|
|
14051
14051
|
/**
|
|
14052
14052
|
* Shared MCP utility functions.
|
|
14053
14053
|
*
|
|
@@ -14175,7 +14175,7 @@ function buildMcpConfigFromOverrides(baseMcpConfig, envMappingRows, headerRows)
|
|
|
14175
14175
|
headerTemplate[name] = value;
|
|
14176
14176
|
}
|
|
14177
14177
|
});
|
|
14178
|
-
var config = _objectSpread$
|
|
14178
|
+
var config = _objectSpread$V({}, baseMcpConfig);
|
|
14179
14179
|
if (Object.keys(headerTemplate).length > 0) {
|
|
14180
14180
|
config.headerTemplate = headerTemplate;
|
|
14181
14181
|
} else {
|
|
@@ -14193,7 +14193,7 @@ function buildMcpConfigFromOverrides(baseMcpConfig, envMappingRows, headerRows)
|
|
|
14193
14193
|
envMapping[env] = cred;
|
|
14194
14194
|
}
|
|
14195
14195
|
});
|
|
14196
|
-
return _objectSpread$
|
|
14196
|
+
return _objectSpread$V(_objectSpread$V({}, baseMcpConfig), {}, {
|
|
14197
14197
|
envMapping: envMapping
|
|
14198
14198
|
});
|
|
14199
14199
|
}
|
|
@@ -14430,8 +14430,8 @@ function mcpJsonToFormState(jsonString, nextRowId) {
|
|
|
14430
14430
|
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; } } }; }
|
|
14431
14431
|
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; } }
|
|
14432
14432
|
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; }
|
|
14433
|
-
function ownKeys$
|
|
14434
|
-
function _objectSpread$
|
|
14433
|
+
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; }
|
|
14434
|
+
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; }
|
|
14435
14435
|
var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
14436
14436
|
var isOpen = _ref.isOpen,
|
|
14437
14437
|
onClose = _ref.onClose,
|
|
@@ -14626,7 +14626,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
14626
14626
|
.map(function (entry) {
|
|
14627
14627
|
var widget = allWidgets[entry.widgetKey];
|
|
14628
14628
|
if (!widget) return null; // Widget no longer exists
|
|
14629
|
-
return _objectSpread$
|
|
14629
|
+
return _objectSpread$U(_objectSpread$U({
|
|
14630
14630
|
key: entry.widgetKey
|
|
14631
14631
|
}, widget), {}, {
|
|
14632
14632
|
savedProviders: entry.providers || {},
|
|
@@ -14777,7 +14777,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
14777
14777
|
// Get widgets from ComponentManager
|
|
14778
14778
|
var allWidgets = ComponentManager.map();
|
|
14779
14779
|
var widgetList = Object.keys(allWidgets).map(function (key) {
|
|
14780
|
-
return _objectSpread$
|
|
14780
|
+
return _objectSpread$U({
|
|
14781
14781
|
key: key
|
|
14782
14782
|
}, allWidgets[key]);
|
|
14783
14783
|
}).filter(function (widget) {
|
|
@@ -15003,7 +15003,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
15003
15003
|
setInlineCreateType(null);
|
|
15004
15004
|
setInlineCreateSchema({});
|
|
15005
15005
|
setInlineCreateError(null);
|
|
15006
|
-
setSelectedProviders(_objectSpread$
|
|
15006
|
+
setSelectedProviders(_objectSpread$U(_objectSpread$U({}, selectedProviders), {}, _defineProperty({}, providerType, providerName)));
|
|
15007
15007
|
}
|
|
15008
15008
|
};
|
|
15009
15009
|
var handleInlineProviderSubmit = function handleInlineProviderSubmit(formData) {
|
|
@@ -15024,7 +15024,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
15024
15024
|
|
|
15025
15025
|
// Auto-select the newly created provider
|
|
15026
15026
|
setSelectedProviders(function (prev) {
|
|
15027
|
-
return _objectSpread$
|
|
15027
|
+
return _objectSpread$U(_objectSpread$U({}, prev), {}, _defineProperty({}, providerType, providerName));
|
|
15028
15028
|
});
|
|
15029
15029
|
|
|
15030
15030
|
// Collapse the inline form
|
|
@@ -15078,11 +15078,11 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
15078
15078
|
};
|
|
15079
15079
|
var inlineHandleCredentialChange = function inlineHandleCredentialChange(fieldName, value) {
|
|
15080
15080
|
setInlineCredentialData(function (prev) {
|
|
15081
|
-
return _objectSpread$
|
|
15081
|
+
return _objectSpread$U(_objectSpread$U({}, prev), {}, _defineProperty({}, fieldName, value));
|
|
15082
15082
|
});
|
|
15083
15083
|
if (inlineFormErrors[fieldName] && value !== null && value !== void 0 && value.trim()) {
|
|
15084
15084
|
setInlineFormErrors(function (prev) {
|
|
15085
|
-
var next = _objectSpread$
|
|
15085
|
+
var next = _objectSpread$U({}, prev);
|
|
15086
15086
|
delete next[fieldName];
|
|
15087
15087
|
return next;
|
|
15088
15088
|
});
|
|
@@ -15175,7 +15175,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
15175
15175
|
refreshProviders();
|
|
15176
15176
|
}
|
|
15177
15177
|
setSelectedProviders(function (prev) {
|
|
15178
|
-
return _objectSpread$
|
|
15178
|
+
return _objectSpread$U(_objectSpread$U({}, prev), {}, _defineProperty({}, providerType, providerName));
|
|
15179
15179
|
});
|
|
15180
15180
|
|
|
15181
15181
|
// Reset stepper state
|
|
@@ -15196,7 +15196,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
15196
15196
|
});
|
|
15197
15197
|
};
|
|
15198
15198
|
var handleConfigChange = function handleConfigChange(key, value) {
|
|
15199
|
-
setUserConfigValues(_objectSpread$
|
|
15199
|
+
setUserConfigValues(_objectSpread$U(_objectSpread$U({}, userConfigValues), {}, _defineProperty({}, key, value)));
|
|
15200
15200
|
};
|
|
15201
15201
|
|
|
15202
15202
|
// Install a package from the registry
|
|
@@ -15262,7 +15262,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
15262
15262
|
// Mark items as installed
|
|
15263
15263
|
setProgressWidgets(function (prev) {
|
|
15264
15264
|
return prev.map(function (w) {
|
|
15265
|
-
return _objectSpread$
|
|
15265
|
+
return _objectSpread$U(_objectSpread$U({}, w), {}, {
|
|
15266
15266
|
status: "installed"
|
|
15267
15267
|
});
|
|
15268
15268
|
});
|
|
@@ -15281,7 +15281,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
15281
15281
|
setInstallError(msg);
|
|
15282
15282
|
setProgressWidgets(function (prev) {
|
|
15283
15283
|
return prev.map(function (w) {
|
|
15284
|
-
return _objectSpread$
|
|
15284
|
+
return _objectSpread$U(_objectSpread$U({}, w), {}, {
|
|
15285
15285
|
status: "failed",
|
|
15286
15286
|
error: msg
|
|
15287
15287
|
});
|
|
@@ -15355,7 +15355,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
15355
15355
|
|
|
15356
15356
|
// Phase 3: Save to recent widgets
|
|
15357
15357
|
saveToRecent(selectedWidget, selectedProviders, userConfigValues);
|
|
15358
|
-
onSelectWidget(_objectSpread$
|
|
15358
|
+
onSelectWidget(_objectSpread$U(_objectSpread$U({}, selectedWidget), {}, {
|
|
15359
15359
|
selectedProviders: selectedProviders,
|
|
15360
15360
|
// Pass to parent
|
|
15361
15361
|
userConfigValues: userConfigValues // Pass to parent
|
|
@@ -15998,7 +15998,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
15998
15998
|
setInlineProviderName(value);
|
|
15999
15999
|
if (inlineFormErrors.providerName && value !== null && value !== void 0 && value.trim()) {
|
|
16000
16000
|
setInlineFormErrors(function (prev) {
|
|
16001
|
-
var next = _objectSpread$
|
|
16001
|
+
var next = _objectSpread$U({}, prev);
|
|
16002
16002
|
delete next.providerName;
|
|
16003
16003
|
return next;
|
|
16004
16004
|
});
|
|
@@ -17184,8 +17184,8 @@ var ProviderSelector = function ProviderSelector(_ref) {
|
|
|
17184
17184
|
});
|
|
17185
17185
|
};
|
|
17186
17186
|
|
|
17187
|
-
function ownKeys$
|
|
17188
|
-
function _objectSpread$
|
|
17187
|
+
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; }
|
|
17188
|
+
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; }
|
|
17189
17189
|
var AdvancedMcpConfig = function AdvancedMcpConfig(_ref) {
|
|
17190
17190
|
var transport = _ref.transport,
|
|
17191
17191
|
envMappingRows = _ref.envMappingRows,
|
|
@@ -17214,7 +17214,7 @@ var AdvancedMcpConfig = function AdvancedMcpConfig(_ref) {
|
|
|
17214
17214
|
var updateEnvRow = function updateEnvRow(id, field, value) {
|
|
17215
17215
|
onEnvMappingRowsChange(function (prev) {
|
|
17216
17216
|
return prev.map(function (row) {
|
|
17217
|
-
return row.id === id ? _objectSpread$
|
|
17217
|
+
return row.id === id ? _objectSpread$T(_objectSpread$T({}, row), {}, _defineProperty({}, field, value)) : row;
|
|
17218
17218
|
});
|
|
17219
17219
|
});
|
|
17220
17220
|
};
|
|
@@ -17239,7 +17239,7 @@ var AdvancedMcpConfig = function AdvancedMcpConfig(_ref) {
|
|
|
17239
17239
|
var updateHeaderRow = function updateHeaderRow(id, field, value) {
|
|
17240
17240
|
onHeaderRowsChange(function (prev) {
|
|
17241
17241
|
return prev.map(function (row) {
|
|
17242
|
-
return row.id === id ? _objectSpread$
|
|
17242
|
+
return row.id === id ? _objectSpread$T(_objectSpread$T({}, row), {}, _defineProperty({}, field, value)) : row;
|
|
17243
17243
|
});
|
|
17244
17244
|
});
|
|
17245
17245
|
};
|
|
@@ -17388,8 +17388,8 @@ var AdvancedMcpConfig = function AdvancedMcpConfig(_ref) {
|
|
|
17388
17388
|
});
|
|
17389
17389
|
};
|
|
17390
17390
|
|
|
17391
|
-
function ownKeys$
|
|
17392
|
-
function _objectSpread$
|
|
17391
|
+
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; }
|
|
17392
|
+
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; }
|
|
17393
17393
|
var McpServerPicker = function McpServerPicker(_ref) {
|
|
17394
17394
|
var _testResult$tools;
|
|
17395
17395
|
var isOpen = _ref.isOpen,
|
|
@@ -17568,11 +17568,11 @@ var McpServerPicker = function McpServerPicker(_ref) {
|
|
|
17568
17568
|
// Handle credential field changes
|
|
17569
17569
|
var handleCredentialChange = function handleCredentialChange(fieldName, value) {
|
|
17570
17570
|
setCredentialData(function (prev) {
|
|
17571
|
-
return _objectSpread$
|
|
17571
|
+
return _objectSpread$S(_objectSpread$S({}, prev), {}, _defineProperty({}, fieldName, value));
|
|
17572
17572
|
});
|
|
17573
17573
|
if (formErrors[fieldName] && value !== null && value !== void 0 && value.trim()) {
|
|
17574
17574
|
setFormErrors(function (prev) {
|
|
17575
|
-
var next = _objectSpread$
|
|
17575
|
+
var next = _objectSpread$S({}, prev);
|
|
17576
17576
|
delete next[fieldName];
|
|
17577
17577
|
return next;
|
|
17578
17578
|
});
|
|
@@ -17910,7 +17910,7 @@ var McpServerPicker = function McpServerPicker(_ref) {
|
|
|
17910
17910
|
setProviderName(value);
|
|
17911
17911
|
if (formErrors.providerName && value !== null && value !== void 0 && value.trim()) {
|
|
17912
17912
|
setFormErrors(function (prev) {
|
|
17913
|
-
var next = _objectSpread$
|
|
17913
|
+
var next = _objectSpread$S({}, prev);
|
|
17914
17914
|
delete next.providerName;
|
|
17915
17915
|
return next;
|
|
17916
17916
|
});
|
|
@@ -18100,8 +18100,8 @@ var McpServerPicker = function McpServerPicker(_ref) {
|
|
|
18100
18100
|
});
|
|
18101
18101
|
};
|
|
18102
18102
|
|
|
18103
|
-
function ownKeys$
|
|
18104
|
-
function _objectSpread$
|
|
18103
|
+
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; }
|
|
18104
|
+
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; }
|
|
18105
18105
|
var USE_ENHANCED_WIDGET_SELECTOR = true; // Set to false to use original modal
|
|
18106
18106
|
|
|
18107
18107
|
/**
|
|
@@ -18147,7 +18147,7 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
18147
18147
|
var _ref3 = _slicedToArray(_ref2, 2),
|
|
18148
18148
|
id = _ref3[0],
|
|
18149
18149
|
p = _ref3[1];
|
|
18150
|
-
return _objectSpread$
|
|
18150
|
+
return _objectSpread$R(_objectSpread$R({}, p), {}, {
|
|
18151
18151
|
id: id,
|
|
18152
18152
|
name: p.name || id
|
|
18153
18153
|
});
|
|
@@ -18234,7 +18234,7 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
18234
18234
|
// so we use its layout to replace any corrupted grid data.
|
|
18235
18235
|
if (workspace && workspace["layout"]) {
|
|
18236
18236
|
var model = new DashboardModel(workspace);
|
|
18237
|
-
setCurrentWorkspace(_objectSpread$
|
|
18237
|
+
setCurrentWorkspace(_objectSpread$R(_objectSpread$R({}, workspace), {}, {
|
|
18238
18238
|
layout: model.layout
|
|
18239
18239
|
}));
|
|
18240
18240
|
} else {
|
|
@@ -18307,7 +18307,7 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
18307
18307
|
}
|
|
18308
18308
|
try {
|
|
18309
18309
|
var hasChildren = config.type === "workspace";
|
|
18310
|
-
var newLayout = addItemToItemLayout(ws.layout, gridItem.id, _objectSpread$
|
|
18310
|
+
var newLayout = addItemToItemLayout(ws.layout, gridItem.id, _objectSpread$R(_objectSpread$R({}, config), {}, {
|
|
18311
18311
|
component: widgetComponentName,
|
|
18312
18312
|
packageId: config._sourcePackage || config.packageId || null
|
|
18313
18313
|
}), hasChildren);
|
|
@@ -18753,7 +18753,7 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
18753
18753
|
var uuid = widget.uuid || widget.uuidString;
|
|
18754
18754
|
if (uuid) {
|
|
18755
18755
|
newWorkspace.selectedProviders = newWorkspace.selectedProviders || {};
|
|
18756
|
-
newWorkspace.selectedProviders[uuid] = _objectSpread$
|
|
18756
|
+
newWorkspace.selectedProviders[uuid] = _objectSpread$R(_objectSpread$R({}, newWorkspace.selectedProviders[uuid] || {}), {}, _defineProperty({}, providerType, providerId));
|
|
18757
18757
|
}
|
|
18758
18758
|
setCurrentWorkspace(newWorkspace);
|
|
18759
18759
|
// Propagate to the parent (DashboardStage) so workspaceSelected
|
|
@@ -18899,7 +18899,7 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
18899
18899
|
var _gridContainer$grid;
|
|
18900
18900
|
var config = ComponentManager.config(widgetKey);
|
|
18901
18901
|
if (!config) return;
|
|
18902
|
-
var widgetItem = _objectSpread$
|
|
18902
|
+
var widgetItem = _objectSpread$R(_objectSpread$R({}, config), {}, {
|
|
18903
18903
|
component: widgetKey,
|
|
18904
18904
|
key: widgetKey,
|
|
18905
18905
|
packageId: config._sourcePackage || config.packageId || null
|
|
@@ -19160,7 +19160,7 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
19160
19160
|
onSelectWidget: function onSelectWidget(widget) {
|
|
19161
19161
|
|
|
19162
19162
|
// Add component property from widget.key
|
|
19163
|
-
var widgetWithComponent = _objectSpread$
|
|
19163
|
+
var widgetWithComponent = _objectSpread$R(_objectSpread$R({}, widget), {}, {
|
|
19164
19164
|
component: widget.key
|
|
19165
19165
|
});
|
|
19166
19166
|
handleClickConfirmAdd(widgetWithComponent, dropdownTarget);
|
|
@@ -20789,8 +20789,8 @@ var MissingProviderPrompt = function MissingProviderPrompt(_ref) {
|
|
|
20789
20789
|
});
|
|
20790
20790
|
};
|
|
20791
20791
|
|
|
20792
|
-
function ownKeys$
|
|
20793
|
-
function _objectSpread$
|
|
20792
|
+
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; }
|
|
20793
|
+
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; }
|
|
20794
20794
|
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)); }
|
|
20795
20795
|
function _isNativeReflectConstruct$4() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$4 = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
20796
20796
|
var ProviderErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
@@ -20845,7 +20845,7 @@ var ProviderErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
|
20845
20845
|
_defineProperty(_this, "handleProviderSelect", function (providerType, providerName, credentials) {
|
|
20846
20846
|
|
|
20847
20847
|
// Update local selected providers state
|
|
20848
|
-
var updatedSelected = _objectSpread$
|
|
20848
|
+
var updatedSelected = _objectSpread$Q(_objectSpread$Q({}, _this.state.selectedProviders), {}, _defineProperty({}, providerType, providerName));
|
|
20849
20849
|
_this.setState({
|
|
20850
20850
|
selectedProviders: updatedSelected
|
|
20851
20851
|
}, function () {
|
|
@@ -20919,8 +20919,8 @@ var ProviderErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
|
20919
20919
|
}(Component);
|
|
20920
20920
|
_defineProperty(ProviderErrorBoundary, "contextType", ProviderContext);
|
|
20921
20921
|
|
|
20922
|
-
function ownKeys$
|
|
20923
|
-
function _objectSpread$
|
|
20922
|
+
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; }
|
|
20923
|
+
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; }
|
|
20924
20924
|
var withProviderDetection = function withProviderDetection(Component) {
|
|
20925
20925
|
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
20926
20926
|
_ref$requiredProvider = _ref.requiredProviders,
|
|
@@ -20945,7 +20945,7 @@ var withProviderDetection = function withProviderDetection(Component) {
|
|
|
20945
20945
|
onProviderSelect: onProviderSelect
|
|
20946
20946
|
});
|
|
20947
20947
|
}
|
|
20948
|
-
return /*#__PURE__*/jsx(Component, _objectSpread$
|
|
20948
|
+
return /*#__PURE__*/jsx(Component, _objectSpread$P({}, props));
|
|
20949
20949
|
};
|
|
20950
20950
|
};
|
|
20951
20951
|
|
|
@@ -21648,8 +21648,8 @@ var WidgetNotFound = function WidgetNotFound(_ref) {
|
|
|
21648
21648
|
});
|
|
21649
21649
|
};
|
|
21650
21650
|
|
|
21651
|
-
function ownKeys$
|
|
21652
|
-
function _objectSpread$
|
|
21651
|
+
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; }
|
|
21652
|
+
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; }
|
|
21653
21653
|
/**
|
|
21654
21654
|
* makeBoundApi.js
|
|
21655
21655
|
*
|
|
@@ -21719,7 +21719,7 @@ function _bindMethod(rawFn, signatureLength, token) {
|
|
|
21719
21719
|
function makeBoundApi(rawApi, token) {
|
|
21720
21720
|
if (!rawApi || _typeof(rawApi) !== "object") return rawApi;
|
|
21721
21721
|
if (!token) return rawApi;
|
|
21722
|
-
var out = _objectSpread$
|
|
21722
|
+
var out = _objectSpread$O({}, rawApi);
|
|
21723
21723
|
// Two-pass: first collect which namespaces need cloning so we
|
|
21724
21724
|
// don't repeatedly clobber sibling bindings within the same
|
|
21725
21725
|
// namespace (e.g. `data.saveData` + `data.readData` both live
|
|
@@ -21735,7 +21735,7 @@ function makeBoundApi(rawApi, token) {
|
|
|
21735
21735
|
method = _path$split2[1];
|
|
21736
21736
|
var subns = rawApi[ns];
|
|
21737
21737
|
if (!subns || typeof subns[method] !== "function") continue;
|
|
21738
|
-
if (!nsToBindings[ns]) nsToBindings[ns] = _objectSpread$
|
|
21738
|
+
if (!nsToBindings[ns]) nsToBindings[ns] = _objectSpread$O({}, subns);
|
|
21739
21739
|
nsToBindings[ns][method] = _bindMethod(subns[method], signatureLength, token);
|
|
21740
21740
|
}
|
|
21741
21741
|
for (var _i2 = 0, _Object$entries2 = Object.entries(nsToBindings); _i2 < _Object$entries2.length; _i2++) {
|
|
@@ -21835,8 +21835,8 @@ var MountTokenWrapper = function MountTokenWrapper(_ref) {
|
|
|
21835
21835
|
});
|
|
21836
21836
|
};
|
|
21837
21837
|
|
|
21838
|
-
function ownKeys$
|
|
21839
|
-
function _objectSpread$
|
|
21838
|
+
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; }
|
|
21839
|
+
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; }
|
|
21840
21840
|
/**
|
|
21841
21841
|
* buildWidgetData
|
|
21842
21842
|
*
|
|
@@ -21856,7 +21856,7 @@ function buildWidgetData(_ref) {
|
|
|
21856
21856
|
component = _ref.component,
|
|
21857
21857
|
config = _ref.config,
|
|
21858
21858
|
uuidString = _ref.uuidString;
|
|
21859
|
-
return _objectSpread$
|
|
21859
|
+
return _objectSpread$N(_objectSpread$N({}, params), {}, {
|
|
21860
21860
|
name: (_params$name = params === null || params === void 0 ? void 0 : params.name) !== null && _params$name !== void 0 ? _params$name : component,
|
|
21861
21861
|
uuidString: uuidString,
|
|
21862
21862
|
providers: (config === null || config === void 0 ? void 0 : config.providers) || [],
|
|
@@ -21864,8 +21864,8 @@ function buildWidgetData(_ref) {
|
|
|
21864
21864
|
});
|
|
21865
21865
|
}
|
|
21866
21866
|
|
|
21867
|
-
function ownKeys$
|
|
21868
|
-
function _objectSpread$
|
|
21867
|
+
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; }
|
|
21868
|
+
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; }
|
|
21869
21869
|
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)); }
|
|
21870
21870
|
function _isNativeReflectConstruct$2() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$2 = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
21871
21871
|
var WidgetErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
@@ -22081,7 +22081,7 @@ var WidgetRenderer = function WidgetRenderer(_ref) {
|
|
|
22081
22081
|
// that delegate to DashboardPublisher), not the raw Electron dashApi
|
|
22082
22082
|
var helpers = new WidgetHelpers(params, w);
|
|
22083
22083
|
var hasScheduledTasks = ((config === null || config === void 0 ? void 0 : config.scheduledTasks) || []).length > 0;
|
|
22084
|
-
var widgetElement = children === null ? /*#__PURE__*/jsx(WidgetComponent, _objectSpread$
|
|
22084
|
+
var widgetElement = children === null ? /*#__PURE__*/jsx(WidgetComponent, _objectSpread$M(_objectSpread$M(_objectSpread$M({
|
|
22085
22085
|
id: "widget-nokids-".concat(widgetKey),
|
|
22086
22086
|
listen: function listen(listeners, handlers) {
|
|
22087
22087
|
return helpers.listen(listeners, handlers);
|
|
@@ -22095,7 +22095,7 @@ var WidgetRenderer = function WidgetRenderer(_ref) {
|
|
|
22095
22095
|
backgroundColor: bgColor,
|
|
22096
22096
|
widgetConfig: helpers.config(),
|
|
22097
22097
|
widgetEventNames: helpers.events()
|
|
22098
|
-
}), "widget-nokids-".concat(widgetKey, "-v").concat(componentVersion)) : /*#__PURE__*/jsx(WidgetComponent, _objectSpread$
|
|
22098
|
+
}), "widget-nokids-".concat(widgetKey, "-v").concat(componentVersion)) : /*#__PURE__*/jsx(WidgetComponent, _objectSpread$M(_objectSpread$M(_objectSpread$M({
|
|
22099
22099
|
listen: function listen(listeners, handlers) {
|
|
22100
22100
|
return helpers.listen(listeners, handlers);
|
|
22101
22101
|
},
|
|
@@ -22305,8 +22305,8 @@ var SIDEBAR_WIDGET_TYPE = "sidebar-widget";
|
|
|
22305
22305
|
function _createForOfIteratorHelper$z(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$z(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; } } }; }
|
|
22306
22306
|
function _unsupportedIterableToArray$z(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$z(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$z(r, a) : void 0; } }
|
|
22307
22307
|
function _arrayLikeToArray$z(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; }
|
|
22308
|
-
function ownKeys$
|
|
22309
|
-
function _objectSpread$
|
|
22308
|
+
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; }
|
|
22309
|
+
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; }
|
|
22310
22310
|
|
|
22311
22311
|
// Identifies which "bucket" of the workspace a LayoutBuilder belongs
|
|
22312
22312
|
// to so drop handlers on grid cells can distinguish a same-container
|
|
@@ -22552,7 +22552,7 @@ var LayoutGridContainer = /*#__PURE__*/memo(function (_ref3) {
|
|
|
22552
22552
|
var _ref5 = _slicedToArray(_ref4, 2),
|
|
22553
22553
|
id = _ref5[0],
|
|
22554
22554
|
provider = _ref5[1];
|
|
22555
|
-
return _objectSpread$
|
|
22555
|
+
return _objectSpread$L({
|
|
22556
22556
|
id: id
|
|
22557
22557
|
}, provider);
|
|
22558
22558
|
}) : [];
|
|
@@ -23601,7 +23601,7 @@ var LayoutGridContainer = /*#__PURE__*/memo(function (_ref3) {
|
|
|
23601
23601
|
var widgetSpecificSelections = (workspace === null || workspace === void 0 || (_workspace$selectedPr = workspace.selectedProviders) === null || _workspace$selectedPr === void 0 ? void 0 : _workspace$selectedPr[id]) || {};
|
|
23602
23602
|
|
|
23603
23603
|
// Add provider-related props from workspace
|
|
23604
|
-
var itemWithProviders = _objectSpread$
|
|
23604
|
+
var itemWithProviders = _objectSpread$L(_objectSpread$L({}, item), {}, {
|
|
23605
23605
|
selectedProviders: widgetSpecificSelections,
|
|
23606
23606
|
onProviderSelect: onProviderSelect
|
|
23607
23607
|
});
|
|
@@ -23819,8 +23819,8 @@ var LayoutGridContainer = /*#__PURE__*/memo(function (_ref3) {
|
|
|
23819
23819
|
}) : renderComponentContainer(children);
|
|
23820
23820
|
});
|
|
23821
23821
|
|
|
23822
|
-
function ownKeys$
|
|
23823
|
-
function _objectSpread$
|
|
23822
|
+
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; }
|
|
23823
|
+
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; }
|
|
23824
23824
|
function compareChildren(a, b) {
|
|
23825
23825
|
if (a.order < b.order) {
|
|
23826
23826
|
return -1;
|
|
@@ -24908,7 +24908,7 @@ function moveWidgetAcrossContainers(workspace, sourceGridId, sourceCell, targetG
|
|
|
24908
24908
|
|
|
24909
24909
|
// Rewire the grid pointers first (swap works for empty target too —
|
|
24910
24910
|
// targetWidgetId is null then and the source cell becomes empty).
|
|
24911
|
-
sourceGrid.grid[sourceCell] = _objectSpread$
|
|
24911
|
+
sourceGrid.grid[sourceCell] = _objectSpread$K(_objectSpread$K({}, sourceCellData), {}, {
|
|
24912
24912
|
component: targetWidgetId
|
|
24913
24913
|
});
|
|
24914
24914
|
if (!targetCellData) {
|
|
@@ -24917,7 +24917,7 @@ function moveWidgetAcrossContainers(workspace, sourceGridId, sourceCell, targetG
|
|
|
24917
24917
|
hide: false
|
|
24918
24918
|
};
|
|
24919
24919
|
} else {
|
|
24920
|
-
targetGrid.grid[targetCell] = _objectSpread$
|
|
24920
|
+
targetGrid.grid[targetCell] = _objectSpread$K(_objectSpread$K({}, targetCellData), {}, {
|
|
24921
24921
|
component: sourceWidgetId
|
|
24922
24922
|
});
|
|
24923
24923
|
}
|
|
@@ -25334,8 +25334,8 @@ function migrateBareComponentName(componentMap, component) {
|
|
|
25334
25334
|
return component;
|
|
25335
25335
|
}
|
|
25336
25336
|
|
|
25337
|
-
function ownKeys$
|
|
25338
|
-
function _objectSpread$
|
|
25337
|
+
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; }
|
|
25338
|
+
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; }
|
|
25339
25339
|
function _createForOfIteratorHelper$y(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$y(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; } } }; }
|
|
25340
25340
|
function _unsupportedIterableToArray$y(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$y(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$y(r, a) : void 0; } }
|
|
25341
25341
|
function _arrayLikeToArray$y(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; }
|
|
@@ -25520,7 +25520,7 @@ var LayoutModel = function LayoutModel(layoutItem, workspaceLayout, dashboardId)
|
|
|
25520
25520
|
|
|
25521
25521
|
// Merge user-entered config values (from EnhancedWidgetDropdown) into userPrefs
|
|
25522
25522
|
if ("userConfigValues" in obj && obj.userConfigValues) {
|
|
25523
|
-
layout.userPrefs = _objectSpread$
|
|
25523
|
+
layout.userPrefs = _objectSpread$J(_objectSpread$J({}, layout.userPrefs), obj.userConfigValues);
|
|
25524
25524
|
}
|
|
25525
25525
|
|
|
25526
25526
|
// Preserve provider selections for this widget
|
|
@@ -26508,8 +26508,8 @@ var MenuItemModel = function MenuItemModel() {
|
|
|
26508
26508
|
function _createForOfIteratorHelper$t(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$t(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; } } }; }
|
|
26509
26509
|
function _unsupportedIterableToArray$t(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$t(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$t(r, a) : void 0; } }
|
|
26510
26510
|
function _arrayLikeToArray$t(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; }
|
|
26511
|
-
function ownKeys$
|
|
26512
|
-
function _objectSpread$
|
|
26511
|
+
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; }
|
|
26512
|
+
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; }
|
|
26513
26513
|
/**
|
|
26514
26514
|
* mergeGridCellsOp
|
|
26515
26515
|
*
|
|
@@ -26560,7 +26560,7 @@ function mergeGridCellsOp(grid, cellNumbers, keepComponentId) {
|
|
|
26560
26560
|
// Deep clone the cells we touch so the input grid is never mutated.
|
|
26561
26561
|
// Other entries pass through by reference (cheap; they aren't
|
|
26562
26562
|
// touched by this op).
|
|
26563
|
-
var out = _objectSpread$
|
|
26563
|
+
var out = _objectSpread$I({}, grid);
|
|
26564
26564
|
|
|
26565
26565
|
// 1. Find bounding box accounting for existing spans.
|
|
26566
26566
|
var minRow = Infinity,
|
|
@@ -26609,17 +26609,17 @@ function mergeGridCellsOp(grid, cellNumbers, keepComponentId) {
|
|
|
26609
26609
|
for (var _c = cc; _c < cc + sc; _c++) {
|
|
26610
26610
|
var coveredKey = "".concat(_r, ".").concat(_c);
|
|
26611
26611
|
if (grid[coveredKey]) {
|
|
26612
|
-
out[coveredKey] = _objectSpread$
|
|
26612
|
+
out[coveredKey] = _objectSpread$I(_objectSpread$I({}, grid[coveredKey]), {}, {
|
|
26613
26613
|
hide: false
|
|
26614
26614
|
});
|
|
26615
26615
|
}
|
|
26616
26616
|
}
|
|
26617
26617
|
}
|
|
26618
|
-
out[_cn] = _objectSpread$
|
|
26618
|
+
out[_cn] = _objectSpread$I({}, out[_cn] || cell);
|
|
26619
26619
|
delete out[_cn].span;
|
|
26620
26620
|
out[_cn].hide = false;
|
|
26621
26621
|
} else {
|
|
26622
|
-
out[_cn] = _objectSpread$
|
|
26622
|
+
out[_cn] = _objectSpread$I(_objectSpread$I({}, cell), {}, {
|
|
26623
26623
|
hide: false
|
|
26624
26624
|
});
|
|
26625
26625
|
}
|
|
@@ -26678,12 +26678,12 @@ function mergeGridCellsOp(grid, cellNumbers, keepComponentId) {
|
|
|
26678
26678
|
var _cn3 = _step4.value;
|
|
26679
26679
|
if (!out[_cn3]) continue;
|
|
26680
26680
|
if (_cn3 === keepCell) {
|
|
26681
|
-
out[_cn3] = _objectSpread$
|
|
26681
|
+
out[_cn3] = _objectSpread$I(_objectSpread$I({}, out[_cn3]), {}, {
|
|
26682
26682
|
component: keptComponent,
|
|
26683
26683
|
hide: false
|
|
26684
26684
|
});
|
|
26685
26685
|
} else {
|
|
26686
|
-
out[_cn3] = _objectSpread$
|
|
26686
|
+
out[_cn3] = _objectSpread$I(_objectSpread$I({}, out[_cn3]), {}, {
|
|
26687
26687
|
component: null,
|
|
26688
26688
|
hide: true
|
|
26689
26689
|
});
|
|
@@ -26696,7 +26696,7 @@ function mergeGridCellsOp(grid, cellNumbers, keepComponentId) {
|
|
|
26696
26696
|
} finally {
|
|
26697
26697
|
_iterator4.f();
|
|
26698
26698
|
}
|
|
26699
|
-
out[keepCell] = _objectSpread$
|
|
26699
|
+
out[keepCell] = _objectSpread$I(_objectSpread$I({}, out[keepCell]), {}, {
|
|
26700
26700
|
span: {
|
|
26701
26701
|
row: maxRow - minRow + 1,
|
|
26702
26702
|
col: maxCol - minCol + 1
|
|
@@ -26708,8 +26708,8 @@ function mergeGridCellsOp(grid, cellNumbers, keepComponentId) {
|
|
|
26708
26708
|
};
|
|
26709
26709
|
}
|
|
26710
26710
|
|
|
26711
|
-
function ownKeys$
|
|
26712
|
-
function _objectSpread$
|
|
26711
|
+
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; }
|
|
26712
|
+
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; }
|
|
26713
26713
|
/**
|
|
26714
26714
|
* splitGridCellOp
|
|
26715
26715
|
*
|
|
@@ -26746,15 +26746,15 @@ function _cloneShallow(grid) {
|
|
|
26746
26746
|
out[k] = grid[k];
|
|
26747
26747
|
} else if (_isCellKey$4(k)) {
|
|
26748
26748
|
var cell = grid[k];
|
|
26749
|
-
out[k] = _objectSpread$
|
|
26750
|
-
if (cell.span) out[k].span = _objectSpread$
|
|
26749
|
+
out[k] = _objectSpread$H({}, cell);
|
|
26750
|
+
if (cell.span) out[k].span = _objectSpread$H({}, cell.span);
|
|
26751
26751
|
}
|
|
26752
26752
|
}
|
|
26753
26753
|
return out;
|
|
26754
26754
|
}
|
|
26755
26755
|
function _stripSpan(span, removeKey) {
|
|
26756
26756
|
if (!span) return undefined;
|
|
26757
|
-
var out = _objectSpread$
|
|
26757
|
+
var out = _objectSpread$H({}, span);
|
|
26758
26758
|
delete out[removeKey];
|
|
26759
26759
|
return Object.keys(out).length > 0 ? out : undefined;
|
|
26760
26760
|
}
|
|
@@ -26775,7 +26775,7 @@ function _splitCaseADivisibleSpan(grid, row, col, direction, count) {
|
|
|
26775
26775
|
for (var sr = row; sr < row + targetSpanRow; sr++) {
|
|
26776
26776
|
for (var sc = col; sc < col + targetSpanCol; sc++) {
|
|
26777
26777
|
var k = "".concat(sr, ".").concat(sc);
|
|
26778
|
-
if (out[k]) out[k] = _objectSpread$
|
|
26778
|
+
if (out[k]) out[k] = _objectSpread$H(_objectSpread$H({}, out[k]), {}, {
|
|
26779
26779
|
hide: false
|
|
26780
26780
|
});
|
|
26781
26781
|
}
|
|
@@ -26828,7 +26828,7 @@ function _splitCaseBResolutionMultiply(grid, row, col, direction, count) {
|
|
|
26828
26828
|
visibleCells.push({
|
|
26829
26829
|
row: r,
|
|
26830
26830
|
col: c,
|
|
26831
|
-
data: _objectSpread$
|
|
26831
|
+
data: _objectSpread$H({}, c0),
|
|
26832
26832
|
spanRow: ((_c0$span = c0.span) === null || _c0$span === void 0 ? void 0 : _c0$span.row) || 1,
|
|
26833
26833
|
spanCol: ((_c0$span2 = c0.span) === null || _c0$span2 === void 0 ? void 0 : _c0$span2.col) || 1
|
|
26834
26834
|
});
|
|
@@ -26857,7 +26857,7 @@ function _splitCaseBResolutionMultiply(grid, row, col, direction, count) {
|
|
|
26857
26857
|
var newRow = isHorizontal ? vc.row : (vc.row - 1) * count + 1;
|
|
26858
26858
|
var newCol = isHorizontal ? (vc.col - 1) * count + 1 : vc.col;
|
|
26859
26859
|
var _key = "".concat(newRow, ".").concat(newCol);
|
|
26860
|
-
var repositioned = _objectSpread$
|
|
26860
|
+
var repositioned = _objectSpread$H(_objectSpread$H({}, vc.data), {}, {
|
|
26861
26861
|
hide: false,
|
|
26862
26862
|
span: {
|
|
26863
26863
|
row: isHorizontal ? vc.spanRow : vc.spanRow * count,
|
|
@@ -29664,8 +29664,8 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
|
29664
29664
|
}]);
|
|
29665
29665
|
}(React__default.Component);
|
|
29666
29666
|
|
|
29667
|
-
function ownKeys$
|
|
29668
|
-
function _objectSpread$
|
|
29667
|
+
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; }
|
|
29668
|
+
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; }
|
|
29669
29669
|
|
|
29670
29670
|
/**
|
|
29671
29671
|
* useDashboard Hook
|
|
@@ -29721,7 +29721,7 @@ var useDashboard = function useDashboard() {
|
|
|
29721
29721
|
}
|
|
29722
29722
|
});
|
|
29723
29723
|
}
|
|
29724
|
-
return _objectSpread$
|
|
29724
|
+
return _objectSpread$G({
|
|
29725
29725
|
app: app,
|
|
29726
29726
|
dashboard: dashboard,
|
|
29727
29727
|
theme: theme
|
|
@@ -31652,8 +31652,8 @@ function useMcpDashServer() {
|
|
|
31652
31652
|
};
|
|
31653
31653
|
}
|
|
31654
31654
|
|
|
31655
|
-
function ownKeys$
|
|
31656
|
-
function _objectSpread$
|
|
31655
|
+
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; }
|
|
31656
|
+
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; }
|
|
31657
31657
|
var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
31658
31658
|
var theme = _ref.theme,
|
|
31659
31659
|
themeVariant = _ref.themeVariant,
|
|
@@ -31702,13 +31702,13 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
31702
31702
|
className: "flex flex-col space-y-4 p-4",
|
|
31703
31703
|
children: [/*#__PURE__*/jsxs("div", {
|
|
31704
31704
|
className: "flex flex-row bg-gray-900 p-4 space-x-4 rounded justify-between",
|
|
31705
|
-
children: [/*#__PURE__*/jsxs(Panel, _objectSpread$
|
|
31705
|
+
children: [/*#__PURE__*/jsxs(Panel, _objectSpread$F(_objectSpread$F({}, styles), {}, {
|
|
31706
31706
|
scrollable: false,
|
|
31707
31707
|
className: "rounded",
|
|
31708
31708
|
children: [/*#__PURE__*/jsx(Panel.Header, {
|
|
31709
31709
|
className: "text-xs uppercase font-bold",
|
|
31710
31710
|
children: "Panel"
|
|
31711
|
-
}), /*#__PURE__*/jsx(Panel.Body, _objectSpread$
|
|
31711
|
+
}), /*#__PURE__*/jsx(Panel.Body, _objectSpread$F(_objectSpread$F({}, styles), {}, {
|
|
31712
31712
|
onClick: function onClick() {
|
|
31713
31713
|
handleClickItem(themeObjects.PANEL, styles);
|
|
31714
31714
|
}
|
|
@@ -31716,14 +31716,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
31716
31716
|
className: "text-xs uppercase font-light",
|
|
31717
31717
|
children: getCSSStyleForClassname("backgroundColor", themeObjects.PANEL)
|
|
31718
31718
|
})]
|
|
31719
|
-
})), /*#__PURE__*/jsxs(Panel2, _objectSpread$
|
|
31719
|
+
})), /*#__PURE__*/jsxs(Panel2, _objectSpread$F(_objectSpread$F({
|
|
31720
31720
|
className: "rounded"
|
|
31721
31721
|
}, styles2), {}, {
|
|
31722
31722
|
scrollable: false,
|
|
31723
31723
|
children: [/*#__PURE__*/jsx(Panel2.Header, {
|
|
31724
31724
|
className: "text-xs uppercase font-bold",
|
|
31725
31725
|
children: "Panel 2"
|
|
31726
|
-
}), /*#__PURE__*/jsx(Panel2.Body, _objectSpread$
|
|
31726
|
+
}), /*#__PURE__*/jsx(Panel2.Body, _objectSpread$F(_objectSpread$F({}, styles2), {}, {
|
|
31727
31727
|
onClick: function onClick() {
|
|
31728
31728
|
handleClickItem(themeObjects.PANEL_2, styles2);
|
|
31729
31729
|
}
|
|
@@ -31731,14 +31731,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
31731
31731
|
className: "text-xs uppercase font-light",
|
|
31732
31732
|
children: getCSSStyleForClassname("backgroundColor", themeObjects.PANEL_2)
|
|
31733
31733
|
})]
|
|
31734
|
-
})), /*#__PURE__*/jsxs(Panel3, _objectSpread$
|
|
31734
|
+
})), /*#__PURE__*/jsxs(Panel3, _objectSpread$F(_objectSpread$F({
|
|
31735
31735
|
className: "rounded"
|
|
31736
31736
|
}, styles3), {}, {
|
|
31737
31737
|
scrollable: false,
|
|
31738
31738
|
children: [/*#__PURE__*/jsx(Panel3.Header, {
|
|
31739
31739
|
className: "text-xs uppercase font-bold",
|
|
31740
31740
|
children: "Panel 3"
|
|
31741
|
-
}), /*#__PURE__*/jsx(Panel3.Body, _objectSpread$
|
|
31741
|
+
}), /*#__PURE__*/jsx(Panel3.Body, _objectSpread$F(_objectSpread$F({}, styles3), {}, {
|
|
31742
31742
|
onClick: function onClick() {
|
|
31743
31743
|
handleClickItem(themeObjects.PANEL_3, styles3);
|
|
31744
31744
|
}
|
|
@@ -31747,68 +31747,68 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
31747
31747
|
children: getCSSStyleForClassname("backgroundColor", themeObjects.PANEL_3)
|
|
31748
31748
|
})]
|
|
31749
31749
|
}))]
|
|
31750
|
-
}), /*#__PURE__*/jsxs(Panel, _objectSpread$
|
|
31750
|
+
}), /*#__PURE__*/jsxs(Panel, _objectSpread$F(_objectSpread$F({
|
|
31751
31751
|
className: "p-6 rounded border-4 space-y-4",
|
|
31752
31752
|
scrollable: false,
|
|
31753
31753
|
height: "h-fit"
|
|
31754
31754
|
}, styles), {}, {
|
|
31755
|
-
children: [/*#__PURE__*/jsx(Heading, _objectSpread$
|
|
31755
|
+
children: [/*#__PURE__*/jsx(Heading, _objectSpread$F(_objectSpread$F({
|
|
31756
31756
|
title: "Heading"
|
|
31757
31757
|
}, headingStyles), {}, {
|
|
31758
31758
|
padding: false,
|
|
31759
31759
|
onClick: function onClick() {
|
|
31760
31760
|
return handleClickItem(themeObjects.HEADING, headingStyles);
|
|
31761
31761
|
}
|
|
31762
|
-
})), /*#__PURE__*/jsx(Heading2, _objectSpread$
|
|
31762
|
+
})), /*#__PURE__*/jsx(Heading2, _objectSpread$F(_objectSpread$F({
|
|
31763
31763
|
title: "Heading 2"
|
|
31764
31764
|
}, heading2Styles), {}, {
|
|
31765
31765
|
padding: false,
|
|
31766
31766
|
onClick: function onClick() {
|
|
31767
31767
|
return handleClickItem(themeObjects.HEADING_2, heading2Styles);
|
|
31768
31768
|
}
|
|
31769
|
-
})), /*#__PURE__*/jsx(Heading3, _objectSpread$
|
|
31769
|
+
})), /*#__PURE__*/jsx(Heading3, _objectSpread$F(_objectSpread$F({
|
|
31770
31770
|
title: "Heading 3"
|
|
31771
31771
|
}, heading3Styles), {}, {
|
|
31772
31772
|
padding: false,
|
|
31773
31773
|
onClick: function onClick() {
|
|
31774
31774
|
return handleClickItem(themeObjects.HEADING_3, heading3Styles);
|
|
31775
31775
|
}
|
|
31776
|
-
})), /*#__PURE__*/jsx(SubHeading, _objectSpread$
|
|
31776
|
+
})), /*#__PURE__*/jsx(SubHeading, _objectSpread$F(_objectSpread$F({
|
|
31777
31777
|
title: "Subheading"
|
|
31778
31778
|
}, subHeadingStyles), {}, {
|
|
31779
31779
|
padding: false,
|
|
31780
31780
|
onClick: function onClick() {
|
|
31781
31781
|
return handleClickItem(themeObjects.SUBHEADING, subHeadingStyles);
|
|
31782
31782
|
}
|
|
31783
|
-
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$
|
|
31783
|
+
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$F(_objectSpread$F({
|
|
31784
31784
|
title: "Subheading 2"
|
|
31785
31785
|
}, subHeading2Styles), {}, {
|
|
31786
31786
|
padding: false,
|
|
31787
31787
|
onClick: function onClick() {
|
|
31788
31788
|
return handleClickItem(themeObjects.SUBHEADING_2, subHeading2Styles);
|
|
31789
31789
|
}
|
|
31790
|
-
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$
|
|
31790
|
+
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$F(_objectSpread$F({
|
|
31791
31791
|
title: "Subheading"
|
|
31792
31792
|
}, subHeading3Styles), {}, {
|
|
31793
31793
|
padding: false,
|
|
31794
31794
|
onClick: function onClick() {
|
|
31795
31795
|
return handleClickItem(themeObjects.SUBHEADING_3, subHeading3Styles);
|
|
31796
31796
|
}
|
|
31797
|
-
})), /*#__PURE__*/jsx(Paragraph, _objectSpread$
|
|
31797
|
+
})), /*#__PURE__*/jsx(Paragraph, _objectSpread$F(_objectSpread$F({
|
|
31798
31798
|
text: "The quick brown fox jumps over the lazy dog."
|
|
31799
31799
|
}, paragraphStyles), {}, {
|
|
31800
31800
|
padding: false,
|
|
31801
31801
|
onClick: function onClick() {
|
|
31802
31802
|
return handleClickItem(themeObjects.PARAGRAPH, paragraphStyles);
|
|
31803
31803
|
}
|
|
31804
|
-
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$
|
|
31804
|
+
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$F(_objectSpread$F({
|
|
31805
31805
|
text: "The quick brown fox jumps over the lazy dog."
|
|
31806
31806
|
}, paragraph2Styles), {}, {
|
|
31807
31807
|
padding: false,
|
|
31808
31808
|
onClick: function onClick() {
|
|
31809
31809
|
return handleClickItem(themeObjects.PARAGRAPH_2, paragraph2Styles);
|
|
31810
31810
|
}
|
|
31811
|
-
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$
|
|
31811
|
+
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$F(_objectSpread$F({
|
|
31812
31812
|
text: "The quick brown fox jumps over the lazy dog."
|
|
31813
31813
|
}, paragraph3Styles), {}, {
|
|
31814
31814
|
padding: false,
|
|
@@ -31817,19 +31817,19 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
31817
31817
|
}
|
|
31818
31818
|
})), /*#__PURE__*/jsxs("div", {
|
|
31819
31819
|
className: "flex flex-row space-x-2 w-full",
|
|
31820
|
-
children: [/*#__PURE__*/jsx(Button, _objectSpread$
|
|
31820
|
+
children: [/*#__PURE__*/jsx(Button, _objectSpread$F(_objectSpread$F({
|
|
31821
31821
|
title: "Button"
|
|
31822
31822
|
}, buttonStyles), {}, {
|
|
31823
31823
|
onClick: function onClick() {
|
|
31824
31824
|
return handleClickItem(themeObjects.BUTTON, buttonStyles);
|
|
31825
31825
|
}
|
|
31826
|
-
})), /*#__PURE__*/jsx(Button2, _objectSpread$
|
|
31826
|
+
})), /*#__PURE__*/jsx(Button2, _objectSpread$F(_objectSpread$F({
|
|
31827
31827
|
title: "Button 2"
|
|
31828
31828
|
}, button2Styles), {}, {
|
|
31829
31829
|
onClick: function onClick() {
|
|
31830
31830
|
return handleClickItem(themeObjects.BUTTON_2, button2Styles);
|
|
31831
31831
|
}
|
|
31832
|
-
})), /*#__PURE__*/jsx(Button3, _objectSpread$
|
|
31832
|
+
})), /*#__PURE__*/jsx(Button3, _objectSpread$F(_objectSpread$F({
|
|
31833
31833
|
title: "Button 3"
|
|
31834
31834
|
}, button3Styles), {}, {
|
|
31835
31835
|
onClick: function onClick() {
|
|
@@ -31840,14 +31840,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
31840
31840
|
className: "flex flex-row space-x-4 w-full h-fit",
|
|
31841
31841
|
children: [/*#__PURE__*/jsxs("div", {
|
|
31842
31842
|
className: "flex flex-row space-x-2",
|
|
31843
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
31843
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$F(_objectSpread$F({
|
|
31844
31844
|
text: "Button Icon",
|
|
31845
31845
|
icon: "pencil"
|
|
31846
31846
|
}, buttonIconStyles), {}, {
|
|
31847
31847
|
onClick: function onClick() {
|
|
31848
31848
|
return handleClickItem(themeObjects.BUTTON_ICON, buttonIconStyles);
|
|
31849
31849
|
}
|
|
31850
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
31850
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$F(_objectSpread$F({
|
|
31851
31851
|
icon: "pencil"
|
|
31852
31852
|
}, buttonIconStyles), {}, {
|
|
31853
31853
|
onClick: function onClick() {
|
|
@@ -31856,14 +31856,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
31856
31856
|
}))]
|
|
31857
31857
|
}), /*#__PURE__*/jsxs("div", {
|
|
31858
31858
|
className: "flex flex-row space-x-2",
|
|
31859
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
31859
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$F(_objectSpread$F({
|
|
31860
31860
|
text: "Button Icon 2",
|
|
31861
31861
|
icon: "pencil"
|
|
31862
31862
|
}, buttonIconStyles), {}, {
|
|
31863
31863
|
onClick: function onClick() {
|
|
31864
31864
|
return handleClickItem(themeObjects.BUTTON_ICON_2, buttonIcon2Styles);
|
|
31865
31865
|
}
|
|
31866
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
31866
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$F(_objectSpread$F({
|
|
31867
31867
|
icon: "pencil"
|
|
31868
31868
|
}, buttonIconStyles), {}, {
|
|
31869
31869
|
onClick: function onClick() {
|
|
@@ -31872,14 +31872,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
31872
31872
|
}))]
|
|
31873
31873
|
}), /*#__PURE__*/jsxs("div", {
|
|
31874
31874
|
className: "flex flex-row space-x-2",
|
|
31875
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
31875
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$F(_objectSpread$F({
|
|
31876
31876
|
text: "Button Icon 3",
|
|
31877
31877
|
icon: "pencil"
|
|
31878
31878
|
}, buttonIcon3Styles), {}, {
|
|
31879
31879
|
onClick: function onClick() {
|
|
31880
31880
|
return handleClickItem(themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
31881
31881
|
}
|
|
31882
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
31882
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$F(_objectSpread$F({
|
|
31883
31883
|
icon: "pencil"
|
|
31884
31884
|
}, buttonIcon3Styles), {}, {
|
|
31885
31885
|
onClick: function onClick() {
|
|
@@ -31889,17 +31889,17 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
31889
31889
|
})]
|
|
31890
31890
|
}), /*#__PURE__*/jsxs("div", {
|
|
31891
31891
|
className: "flex flex-col space-y-2 w-full",
|
|
31892
|
-
children: [/*#__PURE__*/jsx(MenuItem, _objectSpread$
|
|
31892
|
+
children: [/*#__PURE__*/jsx(MenuItem, _objectSpread$F(_objectSpread$F({}, menuItemStyles), {}, {
|
|
31893
31893
|
onClick: function onClick() {
|
|
31894
31894
|
return handleClickItem(themeObjects.MENU_ITEM, menuItemStyles);
|
|
31895
31895
|
},
|
|
31896
31896
|
children: "Menu Item"
|
|
31897
|
-
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$
|
|
31897
|
+
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$F(_objectSpread$F({}, menuItem2Styles), {}, {
|
|
31898
31898
|
onClick: function onClick() {
|
|
31899
31899
|
return handleClickItem(themeObjects.MENU_ITEM_2, menuItem2Styles);
|
|
31900
31900
|
},
|
|
31901
31901
|
children: "Menu Item 2"
|
|
31902
|
-
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$
|
|
31902
|
+
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$F(_objectSpread$F({}, menuItem3Styles), {}, {
|
|
31903
31903
|
onClick: function onClick() {
|
|
31904
31904
|
return handleClickItem(themeObjects.MENU_ITEM_3, menuItem3Styles);
|
|
31905
31905
|
},
|
|
@@ -31907,21 +31907,21 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
31907
31907
|
}))]
|
|
31908
31908
|
}), /*#__PURE__*/jsxs("div", {
|
|
31909
31909
|
className: "flex flex-row space-x-2 w-full",
|
|
31910
|
-
children: [/*#__PURE__*/jsx(Tag, _objectSpread$
|
|
31910
|
+
children: [/*#__PURE__*/jsx(Tag, _objectSpread$F(_objectSpread$F({
|
|
31911
31911
|
text: "Tag",
|
|
31912
31912
|
icon: "pencil"
|
|
31913
31913
|
}, tagStyles), {}, {
|
|
31914
31914
|
onClick: function onClick() {
|
|
31915
31915
|
return handleClickItem(themeObjects.TAG, tagStyles);
|
|
31916
31916
|
}
|
|
31917
|
-
})), /*#__PURE__*/jsx(Tag2, _objectSpread$
|
|
31917
|
+
})), /*#__PURE__*/jsx(Tag2, _objectSpread$F(_objectSpread$F({
|
|
31918
31918
|
text: "Tag 2",
|
|
31919
31919
|
icon: "pencil"
|
|
31920
31920
|
}, tag2Styles), {}, {
|
|
31921
31921
|
onClick: function onClick() {
|
|
31922
31922
|
return handleClickItem(themeObjects.TAG_2, tag2Styles);
|
|
31923
31923
|
}
|
|
31924
|
-
})), /*#__PURE__*/jsx(Tag3, _objectSpread$
|
|
31924
|
+
})), /*#__PURE__*/jsx(Tag3, _objectSpread$F(_objectSpread$F({
|
|
31925
31925
|
text: "Tag 3",
|
|
31926
31926
|
icon: "pencil"
|
|
31927
31927
|
}, tag3Styles), {}, {
|
|
@@ -31930,67 +31930,67 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
31930
31930
|
}
|
|
31931
31931
|
}))]
|
|
31932
31932
|
})]
|
|
31933
|
-
})), /*#__PURE__*/jsxs(Panel2, _objectSpread$
|
|
31933
|
+
})), /*#__PURE__*/jsxs(Panel2, _objectSpread$F(_objectSpread$F({
|
|
31934
31934
|
className: "p-6 rounded border-4 space-y-4",
|
|
31935
31935
|
height: "h-fit"
|
|
31936
31936
|
}, styles2), {}, {
|
|
31937
|
-
children: [/*#__PURE__*/jsx(Heading, _objectSpread$
|
|
31937
|
+
children: [/*#__PURE__*/jsx(Heading, _objectSpread$F(_objectSpread$F({
|
|
31938
31938
|
title: "Heading"
|
|
31939
31939
|
}, headingStyles), {}, {
|
|
31940
31940
|
padding: false,
|
|
31941
31941
|
onClick: function onClick() {
|
|
31942
31942
|
return handleClickItem(themeObjects.HEADING, headingStyles);
|
|
31943
31943
|
}
|
|
31944
|
-
})), /*#__PURE__*/jsx(Heading2, _objectSpread$
|
|
31944
|
+
})), /*#__PURE__*/jsx(Heading2, _objectSpread$F(_objectSpread$F({
|
|
31945
31945
|
title: "Heading 2"
|
|
31946
31946
|
}, heading2Styles), {}, {
|
|
31947
31947
|
padding: false,
|
|
31948
31948
|
onClick: function onClick() {
|
|
31949
31949
|
return handleClickItem(themeObjects.HEADING_2, heading2Styles);
|
|
31950
31950
|
}
|
|
31951
|
-
})), /*#__PURE__*/jsx(Heading3, _objectSpread$
|
|
31951
|
+
})), /*#__PURE__*/jsx(Heading3, _objectSpread$F(_objectSpread$F({
|
|
31952
31952
|
title: "Heading 3"
|
|
31953
31953
|
}, heading3Styles), {}, {
|
|
31954
31954
|
padding: false,
|
|
31955
31955
|
onClick: function onClick() {
|
|
31956
31956
|
return handleClickItem(themeObjects.HEADING_3, heading3Styles);
|
|
31957
31957
|
}
|
|
31958
|
-
})), /*#__PURE__*/jsx(SubHeading, _objectSpread$
|
|
31958
|
+
})), /*#__PURE__*/jsx(SubHeading, _objectSpread$F(_objectSpread$F({
|
|
31959
31959
|
title: "Subheading"
|
|
31960
31960
|
}, subHeadingStyles), {}, {
|
|
31961
31961
|
padding: false,
|
|
31962
31962
|
onClick: function onClick() {
|
|
31963
31963
|
return handleClickItem(themeObjects.SUBHEADING, subHeadingStyles);
|
|
31964
31964
|
}
|
|
31965
|
-
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$
|
|
31965
|
+
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$F(_objectSpread$F({
|
|
31966
31966
|
title: "Subheading 2"
|
|
31967
31967
|
}, subHeading2Styles), {}, {
|
|
31968
31968
|
padding: false,
|
|
31969
31969
|
onClick: function onClick() {
|
|
31970
31970
|
return handleClickItem(themeObjects.SUBHEADING_2, subHeading2Styles);
|
|
31971
31971
|
}
|
|
31972
|
-
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$
|
|
31972
|
+
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$F(_objectSpread$F({
|
|
31973
31973
|
title: "Subheading"
|
|
31974
31974
|
}, subHeading3Styles), {}, {
|
|
31975
31975
|
padding: false,
|
|
31976
31976
|
onClick: function onClick() {
|
|
31977
31977
|
return handleClickItem(themeObjects.SUBHEADING_3, subHeading3Styles);
|
|
31978
31978
|
}
|
|
31979
|
-
})), /*#__PURE__*/jsx(Paragraph, _objectSpread$
|
|
31979
|
+
})), /*#__PURE__*/jsx(Paragraph, _objectSpread$F(_objectSpread$F({
|
|
31980
31980
|
text: "The quick brown fox jumps over the lazy dog."
|
|
31981
31981
|
}, paragraphStyles), {}, {
|
|
31982
31982
|
padding: false,
|
|
31983
31983
|
onClick: function onClick() {
|
|
31984
31984
|
return handleClickItem(themeObjects.PARAGRAPH, paragraphStyles);
|
|
31985
31985
|
}
|
|
31986
|
-
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$
|
|
31986
|
+
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$F(_objectSpread$F({
|
|
31987
31987
|
text: "The quick brown fox jumps over the lazy dog."
|
|
31988
31988
|
}, paragraph2Styles), {}, {
|
|
31989
31989
|
padding: false,
|
|
31990
31990
|
onClick: function onClick() {
|
|
31991
31991
|
return handleClickItem(themeObjects.PARAGRAPH_2, paragraph2Styles);
|
|
31992
31992
|
}
|
|
31993
|
-
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$
|
|
31993
|
+
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$F(_objectSpread$F({
|
|
31994
31994
|
text: "The quick brown fox jumps over the lazy dog."
|
|
31995
31995
|
}, paragraph3Styles), {}, {
|
|
31996
31996
|
padding: false,
|
|
@@ -31999,19 +31999,19 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
31999
31999
|
}
|
|
32000
32000
|
})), /*#__PURE__*/jsxs("div", {
|
|
32001
32001
|
className: "flex flex-row space-x-2 w-full",
|
|
32002
|
-
children: [/*#__PURE__*/jsx(Button, _objectSpread$
|
|
32002
|
+
children: [/*#__PURE__*/jsx(Button, _objectSpread$F(_objectSpread$F({
|
|
32003
32003
|
title: "Button"
|
|
32004
32004
|
}, buttonStyles), {}, {
|
|
32005
32005
|
onClick: function onClick() {
|
|
32006
32006
|
return handleClickItem(themeObjects.BUTTON, buttonStyles);
|
|
32007
32007
|
}
|
|
32008
|
-
})), /*#__PURE__*/jsx(Button2, _objectSpread$
|
|
32008
|
+
})), /*#__PURE__*/jsx(Button2, _objectSpread$F(_objectSpread$F({
|
|
32009
32009
|
title: "Button 2"
|
|
32010
32010
|
}, button2Styles), {}, {
|
|
32011
32011
|
onClick: function onClick() {
|
|
32012
32012
|
return handleClickItem(themeObjects.BUTTON_2, button2Styles);
|
|
32013
32013
|
}
|
|
32014
|
-
})), /*#__PURE__*/jsx(Button3, _objectSpread$
|
|
32014
|
+
})), /*#__PURE__*/jsx(Button3, _objectSpread$F(_objectSpread$F({
|
|
32015
32015
|
title: "Button 3"
|
|
32016
32016
|
}, button3Styles), {}, {
|
|
32017
32017
|
onClick: function onClick() {
|
|
@@ -32022,14 +32022,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32022
32022
|
className: "flex flex-row space-x-4 w-full",
|
|
32023
32023
|
children: [/*#__PURE__*/jsxs("div", {
|
|
32024
32024
|
className: "flex flex-row space-x-2",
|
|
32025
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32025
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$F(_objectSpread$F({
|
|
32026
32026
|
text: "Button Icon",
|
|
32027
32027
|
icon: "pencil"
|
|
32028
32028
|
}, buttonIconStyles), {}, {
|
|
32029
32029
|
onClick: function onClick() {
|
|
32030
32030
|
return handleClickItem(themeObjects.BUTTON_ICON, buttonIconStyles);
|
|
32031
32031
|
}
|
|
32032
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32032
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$F(_objectSpread$F({
|
|
32033
32033
|
icon: "pencil"
|
|
32034
32034
|
}, buttonIconStyles), {}, {
|
|
32035
32035
|
onClick: function onClick() {
|
|
@@ -32038,14 +32038,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32038
32038
|
}))]
|
|
32039
32039
|
}), /*#__PURE__*/jsxs("div", {
|
|
32040
32040
|
className: "flex flex-row space-x-2",
|
|
32041
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32041
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$F(_objectSpread$F({
|
|
32042
32042
|
text: "Button Icon 2",
|
|
32043
32043
|
icon: "pencil"
|
|
32044
32044
|
}, buttonIconStyles), {}, {
|
|
32045
32045
|
onClick: function onClick() {
|
|
32046
32046
|
return handleClickItem(themeObjects.BUTTON_ICON_2, buttonIcon2Styles);
|
|
32047
32047
|
}
|
|
32048
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32048
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$F(_objectSpread$F({
|
|
32049
32049
|
icon: "pencil"
|
|
32050
32050
|
}, buttonIconStyles), {}, {
|
|
32051
32051
|
onClick: function onClick() {
|
|
@@ -32054,14 +32054,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32054
32054
|
}))]
|
|
32055
32055
|
}), /*#__PURE__*/jsxs("div", {
|
|
32056
32056
|
className: "flex flex-row space-x-2",
|
|
32057
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32057
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$F(_objectSpread$F({
|
|
32058
32058
|
text: "Button Icon 3",
|
|
32059
32059
|
icon: "pencil"
|
|
32060
32060
|
}, buttonIcon3Styles), {}, {
|
|
32061
32061
|
onClick: function onClick() {
|
|
32062
32062
|
return handleClickItem(themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
32063
32063
|
}
|
|
32064
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32064
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$F(_objectSpread$F({
|
|
32065
32065
|
icon: "pencil"
|
|
32066
32066
|
}, buttonIcon3Styles), {}, {
|
|
32067
32067
|
onClick: function onClick() {
|
|
@@ -32071,17 +32071,17 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32071
32071
|
})]
|
|
32072
32072
|
}), /*#__PURE__*/jsxs("div", {
|
|
32073
32073
|
className: "flex flex-col space-y-2 w-full",
|
|
32074
|
-
children: [/*#__PURE__*/jsx(MenuItem, _objectSpread$
|
|
32074
|
+
children: [/*#__PURE__*/jsx(MenuItem, _objectSpread$F(_objectSpread$F({}, menuItemStyles), {}, {
|
|
32075
32075
|
onClick: function onClick() {
|
|
32076
32076
|
return handleClickItem(themeObjects.MENU_ITEM, menuItemStyles);
|
|
32077
32077
|
},
|
|
32078
32078
|
children: "Menu Item"
|
|
32079
|
-
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$
|
|
32079
|
+
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$F(_objectSpread$F({}, menuItem2Styles), {}, {
|
|
32080
32080
|
onClick: function onClick() {
|
|
32081
32081
|
return handleClickItem(themeObjects.MENU_ITEM_2, menuItem2Styles);
|
|
32082
32082
|
},
|
|
32083
32083
|
children: "Menu Item 2"
|
|
32084
|
-
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$
|
|
32084
|
+
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$F(_objectSpread$F({}, menuItem3Styles), {}, {
|
|
32085
32085
|
onClick: function onClick() {
|
|
32086
32086
|
return handleClickItem(themeObjects.MENU_ITEM_3, menuItem3Styles);
|
|
32087
32087
|
},
|
|
@@ -32089,21 +32089,21 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32089
32089
|
}))]
|
|
32090
32090
|
}), /*#__PURE__*/jsxs("div", {
|
|
32091
32091
|
className: "flex flex-row space-x-2 w-full",
|
|
32092
|
-
children: [/*#__PURE__*/jsx(Tag, _objectSpread$
|
|
32092
|
+
children: [/*#__PURE__*/jsx(Tag, _objectSpread$F(_objectSpread$F({
|
|
32093
32093
|
text: "Tag",
|
|
32094
32094
|
icon: "pencil"
|
|
32095
32095
|
}, tagStyles), {}, {
|
|
32096
32096
|
onClick: function onClick() {
|
|
32097
32097
|
return handleClickItem(themeObjects.TAG, tagStyles);
|
|
32098
32098
|
}
|
|
32099
|
-
})), /*#__PURE__*/jsx(Tag2, _objectSpread$
|
|
32099
|
+
})), /*#__PURE__*/jsx(Tag2, _objectSpread$F(_objectSpread$F({
|
|
32100
32100
|
text: "Tag 2",
|
|
32101
32101
|
icon: "pencil"
|
|
32102
32102
|
}, tag2Styles), {}, {
|
|
32103
32103
|
onClick: function onClick() {
|
|
32104
32104
|
return handleClickItem(themeObjects.TAG_2, tag2Styles);
|
|
32105
32105
|
}
|
|
32106
|
-
})), /*#__PURE__*/jsx(Tag3, _objectSpread$
|
|
32106
|
+
})), /*#__PURE__*/jsx(Tag3, _objectSpread$F(_objectSpread$F({
|
|
32107
32107
|
text: "Tag 3",
|
|
32108
32108
|
icon: "pencil"
|
|
32109
32109
|
}, tag3Styles), {}, {
|
|
@@ -32112,68 +32112,68 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32112
32112
|
}
|
|
32113
32113
|
}))]
|
|
32114
32114
|
})]
|
|
32115
|
-
})), /*#__PURE__*/jsxs(Panel3, _objectSpread$
|
|
32115
|
+
})), /*#__PURE__*/jsxs(Panel3, _objectSpread$F(_objectSpread$F({
|
|
32116
32116
|
className: "p-6 rounded border-4 space-y-4"
|
|
32117
32117
|
}, styles3), {}, {
|
|
32118
32118
|
padding: false,
|
|
32119
32119
|
height: "h-fit",
|
|
32120
|
-
children: [/*#__PURE__*/jsx(Heading, _objectSpread$
|
|
32120
|
+
children: [/*#__PURE__*/jsx(Heading, _objectSpread$F(_objectSpread$F({
|
|
32121
32121
|
title: "Heading"
|
|
32122
32122
|
}, headingStyles), {}, {
|
|
32123
32123
|
padding: false,
|
|
32124
32124
|
onClick: function onClick() {
|
|
32125
32125
|
return handleClickItem(themeObjects.HEADING, headingStyles);
|
|
32126
32126
|
}
|
|
32127
|
-
})), /*#__PURE__*/jsx(Heading2, _objectSpread$
|
|
32127
|
+
})), /*#__PURE__*/jsx(Heading2, _objectSpread$F(_objectSpread$F({
|
|
32128
32128
|
title: "Heading 2"
|
|
32129
32129
|
}, heading2Styles), {}, {
|
|
32130
32130
|
padding: false,
|
|
32131
32131
|
onClick: function onClick() {
|
|
32132
32132
|
return handleClickItem(themeObjects.HEADING_2, heading2Styles);
|
|
32133
32133
|
}
|
|
32134
|
-
})), /*#__PURE__*/jsx(Heading3, _objectSpread$
|
|
32134
|
+
})), /*#__PURE__*/jsx(Heading3, _objectSpread$F(_objectSpread$F({
|
|
32135
32135
|
title: "Heading 3"
|
|
32136
32136
|
}, heading3Styles), {}, {
|
|
32137
32137
|
padding: false,
|
|
32138
32138
|
onClick: function onClick() {
|
|
32139
32139
|
return handleClickItem(themeObjects.HEADING_3, heading3Styles);
|
|
32140
32140
|
}
|
|
32141
|
-
})), /*#__PURE__*/jsx(SubHeading, _objectSpread$
|
|
32141
|
+
})), /*#__PURE__*/jsx(SubHeading, _objectSpread$F(_objectSpread$F({
|
|
32142
32142
|
title: "Subheading"
|
|
32143
32143
|
}, subHeadingStyles), {}, {
|
|
32144
32144
|
padding: false,
|
|
32145
32145
|
onClick: function onClick() {
|
|
32146
32146
|
return handleClickItem(themeObjects.SUBHEADING, subHeadingStyles);
|
|
32147
32147
|
}
|
|
32148
|
-
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$
|
|
32148
|
+
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$F(_objectSpread$F({
|
|
32149
32149
|
title: "Subheading 2"
|
|
32150
32150
|
}, subHeading2Styles), {}, {
|
|
32151
32151
|
padding: false,
|
|
32152
32152
|
onClick: function onClick() {
|
|
32153
32153
|
return handleClickItem(themeObjects.SUBHEADING_2, subHeading2Styles);
|
|
32154
32154
|
}
|
|
32155
|
-
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$
|
|
32155
|
+
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$F(_objectSpread$F({
|
|
32156
32156
|
title: "Subheading"
|
|
32157
32157
|
}, subHeading3Styles), {}, {
|
|
32158
32158
|
padding: false,
|
|
32159
32159
|
onClick: function onClick() {
|
|
32160
32160
|
return handleClickItem(themeObjects.SUBHEADING_3, subHeading3Styles);
|
|
32161
32161
|
}
|
|
32162
|
-
})), /*#__PURE__*/jsx(Paragraph, _objectSpread$
|
|
32162
|
+
})), /*#__PURE__*/jsx(Paragraph, _objectSpread$F(_objectSpread$F({
|
|
32163
32163
|
text: "The quick brown fox jumps over the lazy dog."
|
|
32164
32164
|
}, paragraphStyles), {}, {
|
|
32165
32165
|
padding: false,
|
|
32166
32166
|
onClick: function onClick() {
|
|
32167
32167
|
return handleClickItem(themeObjects.PARAGRAPH, paragraphStyles);
|
|
32168
32168
|
}
|
|
32169
|
-
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$
|
|
32169
|
+
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$F(_objectSpread$F({
|
|
32170
32170
|
text: "The quick brown fox jumps over the lazy dog."
|
|
32171
32171
|
}, paragraph2Styles), {}, {
|
|
32172
32172
|
padding: false,
|
|
32173
32173
|
onClick: function onClick() {
|
|
32174
32174
|
return handleClickItem(themeObjects.PARAGRAPH, paragraph2Styles);
|
|
32175
32175
|
}
|
|
32176
|
-
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$
|
|
32176
|
+
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$F(_objectSpread$F({
|
|
32177
32177
|
text: "The quick brown fox jumps over the lazy dog."
|
|
32178
32178
|
}, paragraph3Styles), {}, {
|
|
32179
32179
|
padding: false,
|
|
@@ -32182,19 +32182,19 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32182
32182
|
}
|
|
32183
32183
|
})), /*#__PURE__*/jsxs("div", {
|
|
32184
32184
|
className: "flex flex-row space-x-2 w-full",
|
|
32185
|
-
children: [/*#__PURE__*/jsx(Button, _objectSpread$
|
|
32185
|
+
children: [/*#__PURE__*/jsx(Button, _objectSpread$F(_objectSpread$F({
|
|
32186
32186
|
title: "Button"
|
|
32187
32187
|
}, buttonStyles), {}, {
|
|
32188
32188
|
onClick: function onClick() {
|
|
32189
32189
|
return handleClickItem(themeObjects.BUTTON, buttonStyles);
|
|
32190
32190
|
}
|
|
32191
|
-
})), /*#__PURE__*/jsx(Button2, _objectSpread$
|
|
32191
|
+
})), /*#__PURE__*/jsx(Button2, _objectSpread$F(_objectSpread$F({
|
|
32192
32192
|
title: "Button 2"
|
|
32193
32193
|
}, button2Styles), {}, {
|
|
32194
32194
|
onClick: function onClick() {
|
|
32195
32195
|
return handleClickItem(themeObjects.BUTTON_2, button2Styles);
|
|
32196
32196
|
}
|
|
32197
|
-
})), /*#__PURE__*/jsx(Button3, _objectSpread$
|
|
32197
|
+
})), /*#__PURE__*/jsx(Button3, _objectSpread$F(_objectSpread$F({
|
|
32198
32198
|
title: "Button 3"
|
|
32199
32199
|
}, button3Styles), {}, {
|
|
32200
32200
|
onClick: function onClick() {
|
|
@@ -32205,14 +32205,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32205
32205
|
className: "flex flex-row space-x-4 w-full",
|
|
32206
32206
|
children: [/*#__PURE__*/jsxs("div", {
|
|
32207
32207
|
className: "flex flex-row space-x-2",
|
|
32208
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32208
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$F(_objectSpread$F({
|
|
32209
32209
|
text: "Button Icon",
|
|
32210
32210
|
icon: "pencil"
|
|
32211
32211
|
}, buttonIconStyles), {}, {
|
|
32212
32212
|
onClick: function onClick() {
|
|
32213
32213
|
return handleClickItem(themeObjects.BUTTON_ICON, buttonIconStyles);
|
|
32214
32214
|
}
|
|
32215
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32215
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$F(_objectSpread$F({
|
|
32216
32216
|
icon: "pencil"
|
|
32217
32217
|
}, buttonIconStyles), {}, {
|
|
32218
32218
|
onClick: function onClick() {
|
|
@@ -32221,14 +32221,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32221
32221
|
}))]
|
|
32222
32222
|
}), /*#__PURE__*/jsxs("div", {
|
|
32223
32223
|
className: "flex flex-row space-x-2",
|
|
32224
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32224
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$F(_objectSpread$F({
|
|
32225
32225
|
text: "Button Icon 2",
|
|
32226
32226
|
icon: "pencil"
|
|
32227
32227
|
}, buttonIconStyles), {}, {
|
|
32228
32228
|
onClick: function onClick() {
|
|
32229
32229
|
return handleClickItem(themeObjects.BUTTON_ICON_2, buttonIcon2Styles);
|
|
32230
32230
|
}
|
|
32231
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32231
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$F(_objectSpread$F({
|
|
32232
32232
|
icon: "pencil"
|
|
32233
32233
|
}, buttonIconStyles), {}, {
|
|
32234
32234
|
onClick: function onClick() {
|
|
@@ -32237,14 +32237,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32237
32237
|
}))]
|
|
32238
32238
|
}), /*#__PURE__*/jsxs("div", {
|
|
32239
32239
|
className: "flex flex-row space-x-2",
|
|
32240
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32240
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$F(_objectSpread$F({
|
|
32241
32241
|
text: "Button Icon 3",
|
|
32242
32242
|
icon: "pencil"
|
|
32243
32243
|
}, buttonIcon3Styles), {}, {
|
|
32244
32244
|
onClick: function onClick() {
|
|
32245
32245
|
return handleClickItem(themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
32246
32246
|
}
|
|
32247
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32247
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$F(_objectSpread$F({
|
|
32248
32248
|
icon: "pencil"
|
|
32249
32249
|
}, buttonIcon3Styles), {}, {
|
|
32250
32250
|
onClick: function onClick() {
|
|
@@ -32254,17 +32254,17 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32254
32254
|
})]
|
|
32255
32255
|
}), /*#__PURE__*/jsxs("div", {
|
|
32256
32256
|
className: "flex flex-col space-y-2 w-full",
|
|
32257
|
-
children: [/*#__PURE__*/jsx(MenuItem, _objectSpread$
|
|
32257
|
+
children: [/*#__PURE__*/jsx(MenuItem, _objectSpread$F(_objectSpread$F({}, menuItemStyles), {}, {
|
|
32258
32258
|
onClick: function onClick() {
|
|
32259
32259
|
return handleClickItem(themeObjects.MENU_ITEM, menuItemStyles);
|
|
32260
32260
|
},
|
|
32261
32261
|
children: "Menu Item"
|
|
32262
|
-
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$
|
|
32262
|
+
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$F(_objectSpread$F({}, menuItem2Styles), {}, {
|
|
32263
32263
|
onClick: function onClick() {
|
|
32264
32264
|
return handleClickItem(themeObjects.MENU_ITEM_2, menuItem2Styles);
|
|
32265
32265
|
},
|
|
32266
32266
|
children: "Menu Item 2"
|
|
32267
|
-
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$
|
|
32267
|
+
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$F(_objectSpread$F({}, menuItem3Styles), {}, {
|
|
32268
32268
|
onClick: function onClick() {
|
|
32269
32269
|
return handleClickItem(themeObjects.MENU_ITEM_3, menuItem3Styles);
|
|
32270
32270
|
},
|
|
@@ -32272,21 +32272,21 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32272
32272
|
}))]
|
|
32273
32273
|
}), /*#__PURE__*/jsxs("div", {
|
|
32274
32274
|
className: "flex flex-row space-x-2 w-full",
|
|
32275
|
-
children: [/*#__PURE__*/jsx(Tag, _objectSpread$
|
|
32275
|
+
children: [/*#__PURE__*/jsx(Tag, _objectSpread$F(_objectSpread$F({
|
|
32276
32276
|
text: "Tag",
|
|
32277
32277
|
icon: "pencil"
|
|
32278
32278
|
}, tagStyles), {}, {
|
|
32279
32279
|
onClick: function onClick() {
|
|
32280
32280
|
return handleClickItem(themeObjects.TAG, tagStyles);
|
|
32281
32281
|
}
|
|
32282
|
-
})), /*#__PURE__*/jsx(Tag2, _objectSpread$
|
|
32282
|
+
})), /*#__PURE__*/jsx(Tag2, _objectSpread$F(_objectSpread$F({
|
|
32283
32283
|
text: "Tag 2",
|
|
32284
32284
|
icon: "pencil"
|
|
32285
32285
|
}, tag2Styles), {}, {
|
|
32286
32286
|
onClick: function onClick() {
|
|
32287
32287
|
return handleClickItem(themeObjects.TAG_2, tag2Styles);
|
|
32288
32288
|
}
|
|
32289
|
-
})), /*#__PURE__*/jsx(Tag3, _objectSpread$
|
|
32289
|
+
})), /*#__PURE__*/jsx(Tag3, _objectSpread$F(_objectSpread$F({
|
|
32290
32290
|
text: "Tag 3",
|
|
32291
32291
|
icon: "pencil"
|
|
32292
32292
|
}, tag3Styles), {}, {
|
|
@@ -32295,57 +32295,57 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32295
32295
|
}
|
|
32296
32296
|
}))]
|
|
32297
32297
|
})]
|
|
32298
|
-
})), /*#__PURE__*/jsxs(Panel2, _objectSpread$
|
|
32298
|
+
})), /*#__PURE__*/jsxs(Panel2, _objectSpread$F(_objectSpread$F({
|
|
32299
32299
|
className: "p-6 rounded border-4 space-y-4"
|
|
32300
32300
|
}, styles2), {}, {
|
|
32301
32301
|
height: "h-fit",
|
|
32302
32302
|
padding: false,
|
|
32303
|
-
children: [/*#__PURE__*/jsx(Heading2, _objectSpread$
|
|
32303
|
+
children: [/*#__PURE__*/jsx(Heading2, _objectSpread$F(_objectSpread$F({
|
|
32304
32304
|
title: "Heading 2"
|
|
32305
32305
|
}, heading2Styles), {}, {
|
|
32306
32306
|
padding: false,
|
|
32307
32307
|
onClick: function onClick() {
|
|
32308
32308
|
return handleClickItem(themeObjects.HEADING_2, heading2Styles);
|
|
32309
32309
|
}
|
|
32310
|
-
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$
|
|
32310
|
+
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$F(_objectSpread$F({
|
|
32311
32311
|
title: "Subheading 2"
|
|
32312
32312
|
}, subHeading2Styles), {}, {
|
|
32313
32313
|
padding: false,
|
|
32314
32314
|
onClick: function onClick() {
|
|
32315
32315
|
return handleClickItem(themeObjects.SUBHEADING_2, subHeading2Styles);
|
|
32316
32316
|
}
|
|
32317
|
-
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$
|
|
32317
|
+
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$F(_objectSpread$F({
|
|
32318
32318
|
text: "Paragraph 2 - The quick brown fox jumps over the lazy dog."
|
|
32319
32319
|
}, paragraph2Styles), {}, {
|
|
32320
32320
|
padding: false,
|
|
32321
32321
|
onClick: function onClick() {
|
|
32322
32322
|
return handleClickItem(themeObjects.PARAGRAPH_2, paragraph2Styles);
|
|
32323
32323
|
}
|
|
32324
|
-
})), /*#__PURE__*/jsx(Button2, _objectSpread$
|
|
32324
|
+
})), /*#__PURE__*/jsx(Button2, _objectSpread$F(_objectSpread$F({
|
|
32325
32325
|
title: "Button"
|
|
32326
32326
|
}, button2Styles), {}, {
|
|
32327
32327
|
onClick: function onClick() {
|
|
32328
32328
|
return handleClickItem(themeObjects.BUTTON_2, button2Styles);
|
|
32329
32329
|
}
|
|
32330
|
-
})), /*#__PURE__*/jsx(ButtonIcon2, _objectSpread$
|
|
32330
|
+
})), /*#__PURE__*/jsx(ButtonIcon2, _objectSpread$F(_objectSpread$F({
|
|
32331
32331
|
text: "Button Icon",
|
|
32332
32332
|
icon: "pencil"
|
|
32333
32333
|
}, buttonIcon2Styles), {}, {
|
|
32334
32334
|
onClick: function onClick() {
|
|
32335
32335
|
return handleClickItem(themeObjects.BUTTON_ICON_2, buttonIcon2Styles);
|
|
32336
32336
|
}
|
|
32337
|
-
})), /*#__PURE__*/jsx(ButtonIcon2, _objectSpread$
|
|
32337
|
+
})), /*#__PURE__*/jsx(ButtonIcon2, _objectSpread$F(_objectSpread$F({
|
|
32338
32338
|
icon: "pencil"
|
|
32339
32339
|
}, buttonIcon2Styles), {}, {
|
|
32340
32340
|
onClick: function onClick() {
|
|
32341
32341
|
return handleClickItem(themeObjects.BUTTON_ICON_2, buttonIconStyles);
|
|
32342
32342
|
}
|
|
32343
|
-
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$
|
|
32343
|
+
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$F(_objectSpread$F({}, menuItem2Styles), {}, {
|
|
32344
32344
|
onClick: function onClick() {
|
|
32345
32345
|
return handleClickItem(themeObjects.MENU_ITEM_2, menuItem2Styles);
|
|
32346
32346
|
},
|
|
32347
32347
|
children: "Menu Item"
|
|
32348
|
-
})), /*#__PURE__*/jsx(Tag2, _objectSpread$
|
|
32348
|
+
})), /*#__PURE__*/jsx(Tag2, _objectSpread$F(_objectSpread$F({
|
|
32349
32349
|
text: "Tag 2",
|
|
32350
32350
|
icon: "pencil"
|
|
32351
32351
|
}, tag2Styles), {}, {
|
|
@@ -32353,57 +32353,57 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32353
32353
|
return handleClickItem(themeObjects.TAG_2, tag2Styles);
|
|
32354
32354
|
}
|
|
32355
32355
|
}))]
|
|
32356
|
-
})), /*#__PURE__*/jsxs(Panel3, _objectSpread$
|
|
32356
|
+
})), /*#__PURE__*/jsxs(Panel3, _objectSpread$F(_objectSpread$F({
|
|
32357
32357
|
className: "p-6 rounded border-4 space-y-4"
|
|
32358
32358
|
}, styles3), {}, {
|
|
32359
32359
|
height: "h-fit",
|
|
32360
32360
|
padding: false,
|
|
32361
|
-
children: [/*#__PURE__*/jsx(Heading3, _objectSpread$
|
|
32361
|
+
children: [/*#__PURE__*/jsx(Heading3, _objectSpread$F(_objectSpread$F({
|
|
32362
32362
|
title: "Heading 3"
|
|
32363
32363
|
}, heading3Styles), {}, {
|
|
32364
32364
|
padding: false,
|
|
32365
32365
|
onClick: function onClick() {
|
|
32366
32366
|
return handleClickItem(themeObjects.HEADING_3, heading3Styles);
|
|
32367
32367
|
}
|
|
32368
|
-
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$
|
|
32368
|
+
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$F(_objectSpread$F({
|
|
32369
32369
|
title: "Subheading"
|
|
32370
32370
|
}, subHeading3Styles), {}, {
|
|
32371
32371
|
padding: false,
|
|
32372
32372
|
onClick: function onClick() {
|
|
32373
32373
|
return handleClickItem(themeObjects.SUBHEADING_3, subHeading3Styles);
|
|
32374
32374
|
}
|
|
32375
|
-
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$
|
|
32375
|
+
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$F(_objectSpread$F({
|
|
32376
32376
|
text: "Paragraph 3 - The quick brown fox jumps over the lazy dog."
|
|
32377
32377
|
}, paragraph3Styles), {}, {
|
|
32378
32378
|
padding: false,
|
|
32379
32379
|
onClick: function onClick() {
|
|
32380
32380
|
return handleClickItem(themeObjects.PARAGRAPH_3, paragraph3Styles);
|
|
32381
32381
|
}
|
|
32382
|
-
})), /*#__PURE__*/jsx(Button3, _objectSpread$
|
|
32382
|
+
})), /*#__PURE__*/jsx(Button3, _objectSpread$F(_objectSpread$F({
|
|
32383
32383
|
title: "Button"
|
|
32384
32384
|
}, button3Styles), {}, {
|
|
32385
32385
|
onClick: function onClick() {
|
|
32386
32386
|
return handleClickItem(themeObjects.BUTTON_3, button3Styles);
|
|
32387
32387
|
}
|
|
32388
|
-
})), /*#__PURE__*/jsx(ButtonIcon3, _objectSpread$
|
|
32388
|
+
})), /*#__PURE__*/jsx(ButtonIcon3, _objectSpread$F(_objectSpread$F({
|
|
32389
32389
|
text: "Button Icon 3",
|
|
32390
32390
|
icon: "pencil"
|
|
32391
32391
|
}, buttonIcon3Styles), {}, {
|
|
32392
32392
|
onClick: function onClick() {
|
|
32393
32393
|
return handleClickItem(themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
32394
32394
|
}
|
|
32395
|
-
})), /*#__PURE__*/jsx(ButtonIcon3, _objectSpread$
|
|
32395
|
+
})), /*#__PURE__*/jsx(ButtonIcon3, _objectSpread$F(_objectSpread$F({
|
|
32396
32396
|
icon: "pencil"
|
|
32397
32397
|
}, buttonIcon3Styles), {}, {
|
|
32398
32398
|
onClick: function onClick() {
|
|
32399
32399
|
return handleClickItem(themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
32400
32400
|
}
|
|
32401
|
-
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$
|
|
32401
|
+
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$F(_objectSpread$F({}, menuItem3Styles), {}, {
|
|
32402
32402
|
onClick: function onClick() {
|
|
32403
32403
|
return handleClickItem(themeObjects.MENU_ITEM_3, menuItem3Styles);
|
|
32404
32404
|
},
|
|
32405
32405
|
children: "Menu Item"
|
|
32406
|
-
})), /*#__PURE__*/jsx(Tag3, _objectSpread$
|
|
32406
|
+
})), /*#__PURE__*/jsx(Tag3, _objectSpread$F(_objectSpread$F({
|
|
32407
32407
|
text: "Tag",
|
|
32408
32408
|
icon: "pencil"
|
|
32409
32409
|
}, tag3Styles), {}, {
|
|
@@ -32452,8 +32452,8 @@ var ThemePane = function ThemePane(_ref) {
|
|
|
32452
32452
|
};
|
|
32453
32453
|
|
|
32454
32454
|
var _excluded$3 = ["colorFromTheme", "colorName", "shade", "variant", "colorType", "colorLevelName", "selected", "onClick", "onMouseOver", "width", "height"];
|
|
32455
|
-
function ownKeys$
|
|
32456
|
-
function _objectSpread$
|
|
32455
|
+
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; }
|
|
32456
|
+
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; }
|
|
32457
32457
|
var ColorTile = function ColorTile(_ref) {
|
|
32458
32458
|
var _ref$colorFromTheme = _ref.colorFromTheme,
|
|
32459
32459
|
colorFromTheme = _ref$colorFromTheme === void 0 ? null : _ref$colorFromTheme,
|
|
@@ -32478,7 +32478,7 @@ var ColorTile = function ColorTile(_ref) {
|
|
|
32478
32478
|
_ref$height = _ref.height,
|
|
32479
32479
|
height = _ref$height === void 0 ? "h-10" : _ref$height,
|
|
32480
32480
|
rest = _objectWithoutProperties(_ref, _excluded$3);
|
|
32481
|
-
var c = ColorModel(_objectSpread$
|
|
32481
|
+
var c = ColorModel(_objectSpread$E({
|
|
32482
32482
|
colorFromTheme: colorFromTheme,
|
|
32483
32483
|
colorName: colorName,
|
|
32484
32484
|
colorType: colorType,
|
|
@@ -32506,17 +32506,17 @@ var ColorTile = function ColorTile(_ref) {
|
|
|
32506
32506
|
return /*#__PURE__*/jsx("div", {
|
|
32507
32507
|
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),
|
|
32508
32508
|
onClick: function onClick() {
|
|
32509
|
-
return _onClick !== null ? _onClick(_objectSpread$
|
|
32509
|
+
return _onClick !== null ? _onClick(_objectSpread$E(_objectSpread$E({}, c), rest)) : null;
|
|
32510
32510
|
},
|
|
32511
32511
|
onMouseOver: function onMouseOver() {
|
|
32512
|
-
return _onMouseOver !== null ? _onMouseOver(_objectSpread$
|
|
32512
|
+
return _onMouseOver !== null ? _onMouseOver(_objectSpread$E(_objectSpread$E({}, c), rest)) : null;
|
|
32513
32513
|
},
|
|
32514
32514
|
children: "\xA0"
|
|
32515
32515
|
});
|
|
32516
32516
|
};
|
|
32517
32517
|
|
|
32518
|
-
function ownKeys$
|
|
32519
|
-
function _objectSpread$
|
|
32518
|
+
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; }
|
|
32519
|
+
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; }
|
|
32520
32520
|
|
|
32521
32521
|
// Host-injected module references (e.g., "@trops/dash-core").
|
|
32522
32522
|
// Set by the host app via setHostModules() after all modules are fully loaded,
|
|
@@ -32552,7 +32552,7 @@ var BASE_MODULE_MAP = {
|
|
|
32552
32552
|
function evaluateBundle(source, widgetName) {
|
|
32553
32553
|
// Merge base modules with host-provided modules (e.g., "@trops/dash-core")
|
|
32554
32554
|
// at call time so _hostModules is populated by the time widgets load.
|
|
32555
|
-
var moduleMap = _objectSpread$
|
|
32555
|
+
var moduleMap = _objectSpread$D(_objectSpread$D({}, BASE_MODULE_MAP), _hostModules);
|
|
32556
32556
|
var module = {
|
|
32557
32557
|
exports: {}
|
|
32558
32558
|
};
|
|
@@ -32565,7 +32565,7 @@ function evaluateBundle(source, widgetName) {
|
|
|
32565
32565
|
// CJS bundles expect `require("pkg").Widget` to work, so merge
|
|
32566
32566
|
// `.default` properties onto the returned object.
|
|
32567
32567
|
if (mod["default"] && _typeof(mod["default"]) === "object") {
|
|
32568
|
-
return _objectSpread$
|
|
32568
|
+
return _objectSpread$D(_objectSpread$D(_objectSpread$D({}, mod["default"]), mod), {}, {
|
|
32569
32569
|
"default": mod["default"]
|
|
32570
32570
|
});
|
|
32571
32571
|
}
|
|
@@ -33873,8 +33873,8 @@ function computeDashboardPreflight(_ref) {
|
|
|
33873
33873
|
};
|
|
33874
33874
|
}
|
|
33875
33875
|
|
|
33876
|
-
function ownKeys$
|
|
33877
|
-
function _objectSpread$
|
|
33876
|
+
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; }
|
|
33877
|
+
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; }
|
|
33878
33878
|
var COLOR_PROPERTIES$1 = new Set(["backgroundColor", "textColor", "borderColor", "hoverBackgroundColor", "hoverTextColor", "hoverBorderColor", "focusRingColor", "focusBorderColor", "activeBackgroundColor", "activeTextColor", "placeholderTextColor"]);
|
|
33879
33879
|
var PreviewColorsPane = function PreviewColorsPane(_ref) {
|
|
33880
33880
|
var _ref$styles = _ref.styles,
|
|
@@ -33891,7 +33891,7 @@ var PreviewColorsPane = function PreviewColorsPane(_ref) {
|
|
|
33891
33891
|
function handleClickItem(data, styleNameCss, itemType, objectType) {
|
|
33892
33892
|
// override the object type
|
|
33893
33893
|
data["objectType"] = objectType;
|
|
33894
|
-
onClickItem(_objectSpread$
|
|
33894
|
+
onClickItem(_objectSpread$C(_objectSpread$C({}, data), {}, {
|
|
33895
33895
|
itemType: itemType,
|
|
33896
33896
|
styleName: styleNameCss
|
|
33897
33897
|
}));
|
|
@@ -34301,8 +34301,8 @@ var ThemeMenuPane = function ThemeMenuPane(_ref) {
|
|
|
34301
34301
|
});
|
|
34302
34302
|
};
|
|
34303
34303
|
|
|
34304
|
-
function ownKeys$
|
|
34305
|
-
function _objectSpread$
|
|
34304
|
+
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; }
|
|
34305
|
+
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; }
|
|
34306
34306
|
var COMPONENT_GROUPS$1 = {
|
|
34307
34307
|
Typography: [themeObjects.HEADING, themeObjects.HEADING_2, themeObjects.HEADING_3, themeObjects.SUBHEADING, themeObjects.SUBHEADING_2, themeObjects.SUBHEADING_3, themeObjects.PARAGRAPH, themeObjects.PARAGRAPH_2, themeObjects.PARAGRAPH_3],
|
|
34308
34308
|
Buttons: [themeObjects.BUTTON, themeObjects.BUTTON_2, themeObjects.BUTTON_3, themeObjects.BUTTON_ICON, themeObjects.BUTTON_ICON_2, themeObjects.BUTTON_ICON_3],
|
|
@@ -34333,7 +34333,7 @@ var ComponentSelectorPane = function ComponentSelectorPane(_ref) {
|
|
|
34333
34333
|
setCollapsedGroups = _useState2[1];
|
|
34334
34334
|
function toggleGroup(groupName) {
|
|
34335
34335
|
setCollapsedGroups(function (prev) {
|
|
34336
|
-
return _objectSpread$
|
|
34336
|
+
return _objectSpread$B(_objectSpread$B({}, prev), {}, _defineProperty({}, groupName, !prev[groupName]));
|
|
34337
34337
|
});
|
|
34338
34338
|
}
|
|
34339
34339
|
function hasOverrides(itemKey) {
|
|
@@ -34570,8 +34570,8 @@ var NonColorPickerPane = function NonColorPickerPane(_ref) {
|
|
|
34570
34570
|
};
|
|
34571
34571
|
|
|
34572
34572
|
var _excluded$2 = ["children"];
|
|
34573
|
-
function ownKeys$
|
|
34574
|
-
function _objectSpread$
|
|
34573
|
+
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; }
|
|
34574
|
+
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; }
|
|
34575
34575
|
var COLOR_PROPERTIES = new Set(["backgroundColor", "textColor", "borderColor", "hoverBackgroundColor", "hoverTextColor", "hoverBorderColor", "focusRingColor", "focusBorderColor", "activeBackgroundColor", "activeTextColor", "placeholderTextColor"]);
|
|
34576
34576
|
var isColorProperty = function isColorProperty(name) {
|
|
34577
34577
|
return COLOR_PROPERTIES.has(name);
|
|
@@ -35131,7 +35131,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
35131
35131
|
if (itemSelected && themeSelected && themeVariant) {
|
|
35132
35132
|
var updatedStyles = getStylesForItem(itemSelected.item, themeSelected[themeVariant]);
|
|
35133
35133
|
setItemSelected(function (prev) {
|
|
35134
|
-
return _objectSpread$
|
|
35134
|
+
return _objectSpread$A(_objectSpread$A({}, prev), {}, {
|
|
35135
35135
|
styles: updatedStyles
|
|
35136
35136
|
});
|
|
35137
35137
|
});
|
|
@@ -35302,7 +35302,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
35302
35302
|
styles: clickStyles
|
|
35303
35303
|
});
|
|
35304
35304
|
},
|
|
35305
|
-
children: /*#__PURE__*/jsx(PanelComponent, _objectSpread$
|
|
35305
|
+
children: /*#__PURE__*/jsx(PanelComponent, _objectSpread$A(_objectSpread$A({}, panelStyles), {}, {
|
|
35306
35306
|
scrollable: false,
|
|
35307
35307
|
className: "rounded",
|
|
35308
35308
|
height: "",
|
|
@@ -35316,9 +35316,9 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
35316
35316
|
var _comp$props = comp.props,
|
|
35317
35317
|
childContent = _comp$props.children,
|
|
35318
35318
|
restProps = _objectWithoutProperties(_comp$props, _excluded$2);
|
|
35319
|
-
var renderedComponent = childContent !== undefined ? /*#__PURE__*/jsx(comp.Component, _objectSpread$
|
|
35319
|
+
var renderedComponent = childContent !== undefined ? /*#__PURE__*/jsx(comp.Component, _objectSpread$A(_objectSpread$A({}, restProps), {}, {
|
|
35320
35320
|
children: childContent
|
|
35321
|
-
})) : /*#__PURE__*/jsx(comp.Component, _objectSpread$
|
|
35321
|
+
})) : /*#__PURE__*/jsx(comp.Component, _objectSpread$A({}, restProps));
|
|
35322
35322
|
return renderComponentRow(comp.key, renderedComponent);
|
|
35323
35323
|
})
|
|
35324
35324
|
})
|
|
@@ -35334,7 +35334,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
35334
35334
|
children: [/*#__PURE__*/jsx("div", {
|
|
35335
35335
|
className: "text-xs uppercase font-bold text-gray-500 tracking-wider",
|
|
35336
35336
|
children: "Forms & Inputs"
|
|
35337
|
-
}), /*#__PURE__*/jsx(Panel, _objectSpread$
|
|
35337
|
+
}), /*#__PURE__*/jsx(Panel, _objectSpread$A(_objectSpread$A({}, getStylesForItem("panel", themeData)), {}, {
|
|
35338
35338
|
scrollable: false,
|
|
35339
35339
|
className: "rounded",
|
|
35340
35340
|
height: "",
|
|
@@ -35362,7 +35362,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
35362
35362
|
children: [/*#__PURE__*/jsx("div", {
|
|
35363
35363
|
className: "text-xs uppercase font-bold text-gray-500 tracking-wider",
|
|
35364
35364
|
children: "Data & Stats"
|
|
35365
|
-
}), /*#__PURE__*/jsx(Panel, _objectSpread$
|
|
35365
|
+
}), /*#__PURE__*/jsx(Panel, _objectSpread$A(_objectSpread$A({}, getStylesForItem("panel", themeData)), {}, {
|
|
35366
35366
|
scrollable: false,
|
|
35367
35367
|
className: "rounded",
|
|
35368
35368
|
height: "",
|
|
@@ -35467,7 +35467,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
35467
35467
|
}), themeSelected && /*#__PURE__*/jsx("div", {
|
|
35468
35468
|
className: "flex flex-col flex-1 min-w-0",
|
|
35469
35469
|
children: /*#__PURE__*/jsx(ThemeContext.Provider, {
|
|
35470
|
-
value: _objectSpread$
|
|
35470
|
+
value: _objectSpread$A(_objectSpread$A({}, themeContextValue), {}, {
|
|
35471
35471
|
currentTheme: (themeSelected === null || themeSelected === void 0 ? void 0 : themeSelected[themeVariant]) || themeContextValue.currentTheme
|
|
35472
35472
|
}),
|
|
35473
35473
|
children: showPreview ? /*#__PURE__*/jsx(PreviewComponentsPane, {
|
|
@@ -36949,8 +36949,8 @@ var DiscoverThemesDetail = function DiscoverThemesDetail(_ref) {
|
|
|
36949
36949
|
});
|
|
36950
36950
|
};
|
|
36951
36951
|
|
|
36952
|
-
function ownKeys$
|
|
36953
|
-
function _objectSpread$
|
|
36952
|
+
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; }
|
|
36953
|
+
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; }
|
|
36954
36954
|
var ThemeManagerModal = function ThemeManagerModal(_ref) {
|
|
36955
36955
|
var open = _ref.open,
|
|
36956
36956
|
setIsOpen = _ref.setIsOpen;
|
|
@@ -37142,7 +37142,7 @@ var ThemeManagerModal = function ThemeManagerModal(_ref) {
|
|
|
37142
37142
|
function handleWizardComplete() {
|
|
37143
37143
|
if (!wizardTheme || !wizardName.trim()) return;
|
|
37144
37144
|
var key = wizardTheme.id || "theme-".concat(Date.now());
|
|
37145
|
-
var finalTheme = _objectSpread$
|
|
37145
|
+
var finalTheme = _objectSpread$z(_objectSpread$z({}, wizardTheme), {}, {
|
|
37146
37146
|
id: key,
|
|
37147
37147
|
name: wizardName.trim()
|
|
37148
37148
|
});
|
|
@@ -37334,8 +37334,8 @@ var ThemeManagerModal = function ThemeManagerModal(_ref) {
|
|
|
37334
37334
|
});
|
|
37335
37335
|
};
|
|
37336
37336
|
|
|
37337
|
-
function ownKeys$
|
|
37338
|
-
function _objectSpread$
|
|
37337
|
+
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; }
|
|
37338
|
+
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; }
|
|
37339
37339
|
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; } } }; }
|
|
37340
37340
|
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; } }
|
|
37341
37341
|
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; }
|
|
@@ -37789,7 +37789,7 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
|
|
|
37789
37789
|
});
|
|
37790
37790
|
})).then(function (results) {
|
|
37791
37791
|
setDefaultsByPackage(function (prev) {
|
|
37792
|
-
var next = _objectSpread$
|
|
37792
|
+
var next = _objectSpread$y({}, prev);
|
|
37793
37793
|
var _iterator3 = _createForOfIteratorHelper$l(results),
|
|
37794
37794
|
_step3;
|
|
37795
37795
|
try {
|
|
@@ -37812,9 +37812,9 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
|
|
|
37812
37812
|
}, [step, isOpen, plan, depSelections]);
|
|
37813
37813
|
function setDefaultOverride(packageId, widgetName, field, newValue) {
|
|
37814
37814
|
setDefaultsOverrides(function (prev) {
|
|
37815
|
-
var next = _objectSpread$
|
|
37816
|
-
var forPkg = _objectSpread$
|
|
37817
|
-
var forWidget = _objectSpread$
|
|
37815
|
+
var next = _objectSpread$y({}, prev);
|
|
37816
|
+
var forPkg = _objectSpread$y({}, next[packageId] || {});
|
|
37817
|
+
var forWidget = _objectSpread$y({}, forPkg[widgetName] || {});
|
|
37818
37818
|
if (newValue === undefined) {
|
|
37819
37819
|
delete forWidget[field];
|
|
37820
37820
|
} else {
|
|
@@ -37835,7 +37835,7 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
|
|
|
37835
37835
|
}
|
|
37836
37836
|
function updateDepSelection(key, patch) {
|
|
37837
37837
|
setDepSelections(function (prev) {
|
|
37838
|
-
return _objectSpread$
|
|
37838
|
+
return _objectSpread$y(_objectSpread$y({}, prev), {}, _defineProperty({}, key, _objectSpread$y(_objectSpread$y({}, prev[key]), patch)));
|
|
37839
37839
|
});
|
|
37840
37840
|
}
|
|
37841
37841
|
function toggleTag(tag) {
|
|
@@ -37946,7 +37946,7 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
|
|
|
37946
37946
|
|
|
37947
37947
|
// Initialize progress state (pending for all)
|
|
37948
37948
|
setPublishSteps(steps.map(function (s) {
|
|
37949
|
-
return _objectSpread$
|
|
37949
|
+
return _objectSpread$y(_objectSpread$y({}, s), {}, {
|
|
37950
37950
|
status: "pending",
|
|
37951
37951
|
message: null
|
|
37952
37952
|
});
|
|
@@ -37954,7 +37954,7 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
|
|
|
37954
37954
|
updateStep = function updateStep(idx, patch) {
|
|
37955
37955
|
setPublishSteps(function (prev) {
|
|
37956
37956
|
var next = _toConsumableArray(prev);
|
|
37957
|
-
next[idx] = _objectSpread$
|
|
37957
|
+
next[idx] = _objectSpread$y(_objectSpread$y({}, next[idx]), patch);
|
|
37958
37958
|
return next;
|
|
37959
37959
|
});
|
|
37960
37960
|
};
|
|
@@ -37974,7 +37974,7 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
|
|
|
37974
37974
|
break;
|
|
37975
37975
|
}
|
|
37976
37976
|
bump = _step5.selection.bump;
|
|
37977
|
-
options = _objectSpread$
|
|
37977
|
+
options = _objectSpread$y(_objectSpread$y({}, bump && bump !== "none" ? {
|
|
37978
37978
|
bump: bump
|
|
37979
37979
|
} : {}), {}, {
|
|
37980
37980
|
visibility: _step5.selection.visibility,
|
|
@@ -38049,7 +38049,7 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
|
|
|
38049
38049
|
_context2.next = 23;
|
|
38050
38050
|
break;
|
|
38051
38051
|
}
|
|
38052
|
-
_options = _objectSpread$
|
|
38052
|
+
_options = _objectSpread$y({
|
|
38053
38053
|
authorName: authorName.trim(),
|
|
38054
38054
|
description: description.trim() || undefined,
|
|
38055
38055
|
tags: selectedTags,
|
|
@@ -38806,7 +38806,7 @@ function DependencyTable(_ref4) {
|
|
|
38806
38806
|
_iterator5.f();
|
|
38807
38807
|
}
|
|
38808
38808
|
var rows = Array.from(byKey.values()).map(function (e) {
|
|
38809
|
-
return _objectSpread$
|
|
38809
|
+
return _objectSpread$y(_objectSpread$y({}, e), {}, {
|
|
38810
38810
|
widgetNames: Array.from(e.widgetNames).sort()
|
|
38811
38811
|
});
|
|
38812
38812
|
});
|
|
@@ -39065,8 +39065,8 @@ function DefaultsReviewList(_ref6) {
|
|
|
39065
39065
|
});
|
|
39066
39066
|
}
|
|
39067
39067
|
|
|
39068
|
-
function ownKeys$
|
|
39069
|
-
function _objectSpread$
|
|
39068
|
+
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; }
|
|
39069
|
+
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; }
|
|
39070
39070
|
var LayoutPreview = function LayoutPreview(_ref) {
|
|
39071
39071
|
var layout = _ref.layout;
|
|
39072
39072
|
var gridRoot = (layout || []).find(function (item) {
|
|
@@ -39248,7 +39248,7 @@ var DashboardDetail = function DashboardDetail(_ref2) {
|
|
|
39248
39248
|
updated.menuId = val ? Number(val) : null;
|
|
39249
39249
|
// Strip widgetConfig from layout before saving
|
|
39250
39250
|
updated.layout = (updated.layout || []).map(function (layoutItem) {
|
|
39251
|
-
var cleaned = _objectSpread$
|
|
39251
|
+
var cleaned = _objectSpread$x({}, layoutItem);
|
|
39252
39252
|
delete cleaned.widgetConfig;
|
|
39253
39253
|
return cleaned;
|
|
39254
39254
|
});
|
|
@@ -39263,7 +39263,7 @@ var DashboardDetail = function DashboardDetail(_ref2) {
|
|
|
39263
39263
|
var updated = deepCopy(ws);
|
|
39264
39264
|
updated.themeKey = val || null;
|
|
39265
39265
|
updated.layout = (updated.layout || []).map(function (layoutItem) {
|
|
39266
|
-
var cleaned = _objectSpread$
|
|
39266
|
+
var cleaned = _objectSpread$x({}, layoutItem);
|
|
39267
39267
|
delete cleaned.widgetConfig;
|
|
39268
39268
|
return cleaned;
|
|
39269
39269
|
});
|
|
@@ -39416,8 +39416,8 @@ var DashboardDetail = function DashboardDetail(_ref2) {
|
|
|
39416
39416
|
});
|
|
39417
39417
|
};
|
|
39418
39418
|
|
|
39419
|
-
function ownKeys$
|
|
39420
|
-
function _objectSpread$
|
|
39419
|
+
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; }
|
|
39420
|
+
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; }
|
|
39421
39421
|
var DashboardsSection = function DashboardsSection(_ref) {
|
|
39422
39422
|
var _ref$workspaces = _ref.workspaces,
|
|
39423
39423
|
workspaces = _ref$workspaces === void 0 ? [] : _ref$workspaces,
|
|
@@ -39506,7 +39506,7 @@ var DashboardsSection = function DashboardsSection(_ref) {
|
|
|
39506
39506
|
updated.name = editName.trim();
|
|
39507
39507
|
// Strip widgetConfig from layout before saving
|
|
39508
39508
|
updated.layout = (updated.layout || []).map(function (layoutItem) {
|
|
39509
|
-
var cleaned = _objectSpread$
|
|
39509
|
+
var cleaned = _objectSpread$w({}, layoutItem);
|
|
39510
39510
|
delete cleaned.widgetConfig;
|
|
39511
39511
|
return cleaned;
|
|
39512
39512
|
});
|
|
@@ -39526,7 +39526,7 @@ var DashboardsSection = function DashboardsSection(_ref) {
|
|
|
39526
39526
|
copy.version = Date.now();
|
|
39527
39527
|
// Strip widgetConfig from layout before saving
|
|
39528
39528
|
copy.layout = (copy.layout || []).map(function (layoutItem) {
|
|
39529
|
-
var cleaned = _objectSpread$
|
|
39529
|
+
var cleaned = _objectSpread$w({}, layoutItem);
|
|
39530
39530
|
delete cleaned.widgetConfig;
|
|
39531
39531
|
return cleaned;
|
|
39532
39532
|
});
|
|
@@ -39926,8 +39926,8 @@ var FoldersSection = function FoldersSection(_ref) {
|
|
|
39926
39926
|
});
|
|
39927
39927
|
};
|
|
39928
39928
|
|
|
39929
|
-
function ownKeys$
|
|
39930
|
-
function _objectSpread$
|
|
39929
|
+
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; }
|
|
39930
|
+
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; }
|
|
39931
39931
|
var ProviderDetail = function ProviderDetail(_ref) {
|
|
39932
39932
|
var _provider$mcpConfig, _testResult$tools;
|
|
39933
39933
|
var _ref$providerName = _ref.providerName,
|
|
@@ -40021,14 +40021,14 @@ var ProviderDetail = function ProviderDetail(_ref) {
|
|
|
40021
40021
|
var oldKey = f.key;
|
|
40022
40022
|
if (oldKey && formCredentials[oldKey] !== undefined) {
|
|
40023
40023
|
setFormCredentials(function (creds) {
|
|
40024
|
-
var updated = _objectSpread$
|
|
40024
|
+
var updated = _objectSpread$v({}, creds);
|
|
40025
40025
|
var val = updated[oldKey];
|
|
40026
40026
|
delete updated[oldKey];
|
|
40027
40027
|
if (newKey.trim()) updated[newKey] = val;
|
|
40028
40028
|
return updated;
|
|
40029
40029
|
});
|
|
40030
40030
|
}
|
|
40031
|
-
return _objectSpread$
|
|
40031
|
+
return _objectSpread$v(_objectSpread$v({}, f), {}, {
|
|
40032
40032
|
key: newKey
|
|
40033
40033
|
});
|
|
40034
40034
|
});
|
|
@@ -40040,14 +40040,14 @@ var ProviderDetail = function ProviderDetail(_ref) {
|
|
|
40040
40040
|
});
|
|
40041
40041
|
if (field !== null && field !== void 0 && field.key) {
|
|
40042
40042
|
setFormCredentials(function (prev) {
|
|
40043
|
-
return _objectSpread$
|
|
40043
|
+
return _objectSpread$v(_objectSpread$v({}, prev), {}, _defineProperty({}, field.key, value));
|
|
40044
40044
|
});
|
|
40045
40045
|
}
|
|
40046
40046
|
};
|
|
40047
40047
|
var handleFieldSecretToggle = function handleFieldSecretToggle(id) {
|
|
40048
40048
|
setCredentialFields(function (prev) {
|
|
40049
40049
|
return prev.map(function (f) {
|
|
40050
|
-
return f.id === id ? _objectSpread$
|
|
40050
|
+
return f.id === id ? _objectSpread$v(_objectSpread$v({}, f), {}, {
|
|
40051
40051
|
secret: !f.secret
|
|
40052
40052
|
}) : f;
|
|
40053
40053
|
});
|
|
@@ -40069,7 +40069,7 @@ var ProviderDetail = function ProviderDetail(_ref) {
|
|
|
40069
40069
|
});
|
|
40070
40070
|
if (field !== null && field !== void 0 && field.key) {
|
|
40071
40071
|
setFormCredentials(function (prev) {
|
|
40072
|
-
var updated = _objectSpread$
|
|
40072
|
+
var updated = _objectSpread$v({}, prev);
|
|
40073
40073
|
delete updated[field.key];
|
|
40074
40074
|
return updated;
|
|
40075
40075
|
});
|
|
@@ -40082,7 +40082,7 @@ var ProviderDetail = function ProviderDetail(_ref) {
|
|
|
40082
40082
|
};
|
|
40083
40083
|
var handleCredentialChange = function handleCredentialChange(key, value) {
|
|
40084
40084
|
setFormCredentials(function (prev) {
|
|
40085
|
-
return _objectSpread$
|
|
40085
|
+
return _objectSpread$v(_objectSpread$v({}, prev), {}, _defineProperty({}, key, value));
|
|
40086
40086
|
});
|
|
40087
40087
|
};
|
|
40088
40088
|
var handleTestConnection = function handleTestConnection() {
|
|
@@ -40713,8 +40713,8 @@ var ProviderDetail = function ProviderDetail(_ref) {
|
|
|
40713
40713
|
};
|
|
40714
40714
|
|
|
40715
40715
|
var _excluded$1 = ["transport", "command", "args", "envMapping", "url", "headerTemplate", "headers"];
|
|
40716
|
-
function ownKeys$
|
|
40717
|
-
function _objectSpread$
|
|
40716
|
+
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; }
|
|
40717
|
+
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; }
|
|
40718
40718
|
var DirectoryListField = function DirectoryListField(_ref) {
|
|
40719
40719
|
var field = _ref.field,
|
|
40720
40720
|
value = _ref.value,
|
|
@@ -40860,7 +40860,7 @@ function buildMcpConfig(transport, _ref3) {
|
|
|
40860
40860
|
envMapping[env] = cred;
|
|
40861
40861
|
}
|
|
40862
40862
|
});
|
|
40863
|
-
return _objectSpread$
|
|
40863
|
+
return _objectSpread$u(_objectSpread$u({}, passThrough), {}, {
|
|
40864
40864
|
transport: "stdio",
|
|
40865
40865
|
command: command.trim(),
|
|
40866
40866
|
args: args.trim().split(/\s+/).filter(Boolean),
|
|
@@ -40877,7 +40877,7 @@ function buildMcpConfig(transport, _ref3) {
|
|
|
40877
40877
|
headerTemplate[name] = value;
|
|
40878
40878
|
}
|
|
40879
40879
|
});
|
|
40880
|
-
var config = _objectSpread$
|
|
40880
|
+
var config = _objectSpread$u(_objectSpread$u({}, passThrough), {}, {
|
|
40881
40881
|
transport: "streamable_http",
|
|
40882
40882
|
url: url.trim()
|
|
40883
40883
|
});
|
|
@@ -41104,7 +41104,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref4) {
|
|
|
41104
41104
|
var updateEnvRow = function updateEnvRow(id, field, value) {
|
|
41105
41105
|
setEnvMappingRows(function (prev) {
|
|
41106
41106
|
return prev.map(function (row) {
|
|
41107
|
-
return row.id === id ? _objectSpread$
|
|
41107
|
+
return row.id === id ? _objectSpread$u(_objectSpread$u({}, row), {}, _defineProperty({}, field, value)) : row;
|
|
41108
41108
|
});
|
|
41109
41109
|
});
|
|
41110
41110
|
};
|
|
@@ -41129,7 +41129,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref4) {
|
|
|
41129
41129
|
var updateHeaderRow = function updateHeaderRow(id, field, value) {
|
|
41130
41130
|
setHeaderRows(function (prev) {
|
|
41131
41131
|
return prev.map(function (row) {
|
|
41132
|
-
return row.id === id ? _objectSpread$
|
|
41132
|
+
return row.id === id ? _objectSpread$u(_objectSpread$u({}, row), {}, _defineProperty({}, field, value)) : row;
|
|
41133
41133
|
});
|
|
41134
41134
|
});
|
|
41135
41135
|
};
|
|
@@ -41144,11 +41144,11 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref4) {
|
|
|
41144
41144
|
// --- credential field change ---
|
|
41145
41145
|
var handleCredentialChange = function handleCredentialChange(fieldName, value) {
|
|
41146
41146
|
setCredentialData(function (prev) {
|
|
41147
|
-
return _objectSpread$
|
|
41147
|
+
return _objectSpread$u(_objectSpread$u({}, prev), {}, _defineProperty({}, fieldName, value));
|
|
41148
41148
|
});
|
|
41149
41149
|
if (formErrors[fieldName] && value !== null && value !== void 0 && value.trim()) {
|
|
41150
41150
|
setFormErrors(function (prev) {
|
|
41151
|
-
var next = _objectSpread$
|
|
41151
|
+
var next = _objectSpread$u({}, prev);
|
|
41152
41152
|
delete next[fieldName];
|
|
41153
41153
|
return next;
|
|
41154
41154
|
});
|
|
@@ -41370,7 +41370,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref4) {
|
|
|
41370
41370
|
setProviderName(value);
|
|
41371
41371
|
if (formErrors.providerName && value !== null && value !== void 0 && value.trim()) {
|
|
41372
41372
|
setFormErrors(function (prev) {
|
|
41373
|
-
var next = _objectSpread$
|
|
41373
|
+
var next = _objectSpread$u({}, prev);
|
|
41374
41374
|
delete next.providerName;
|
|
41375
41375
|
return next;
|
|
41376
41376
|
});
|
|
@@ -41486,7 +41486,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref4) {
|
|
|
41486
41486
|
setCommand(value);
|
|
41487
41487
|
if (formErrors.command && value !== null && value !== void 0 && value.trim()) {
|
|
41488
41488
|
setFormErrors(function (prev) {
|
|
41489
|
-
var next = _objectSpread$
|
|
41489
|
+
var next = _objectSpread$u({}, prev);
|
|
41490
41490
|
delete next.command;
|
|
41491
41491
|
return next;
|
|
41492
41492
|
});
|
|
@@ -41592,7 +41592,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref4) {
|
|
|
41592
41592
|
setUrl(value);
|
|
41593
41593
|
if (formErrors.url && value !== null && value !== void 0 && value.trim()) {
|
|
41594
41594
|
setFormErrors(function (prev) {
|
|
41595
|
-
var next = _objectSpread$
|
|
41595
|
+
var next = _objectSpread$u({}, prev);
|
|
41596
41596
|
delete next.url;
|
|
41597
41597
|
return next;
|
|
41598
41598
|
});
|
|
@@ -41854,8 +41854,8 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref4) {
|
|
|
41854
41854
|
});
|
|
41855
41855
|
};
|
|
41856
41856
|
|
|
41857
|
-
function ownKeys$
|
|
41858
|
-
function _objectSpread$
|
|
41857
|
+
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; }
|
|
41858
|
+
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; }
|
|
41859
41859
|
var getIconForServer = function getIconForServer(server) {
|
|
41860
41860
|
var iconMap = {
|
|
41861
41861
|
github: "code-branch",
|
|
@@ -42001,7 +42001,7 @@ var McpCatalogDetail = function McpCatalogDetail(_ref) {
|
|
|
42001
42001
|
};
|
|
42002
42002
|
dashApi.mcpGetCatalog(function (_event, result) {
|
|
42003
42003
|
var builtIn = (result.catalog || []).map(function (s) {
|
|
42004
|
-
return _objectSpread$
|
|
42004
|
+
return _objectSpread$t(_objectSpread$t({}, s), {}, {
|
|
42005
42005
|
_external: false
|
|
42006
42006
|
});
|
|
42007
42007
|
});
|
|
@@ -42013,7 +42013,7 @@ var McpCatalogDetail = function McpCatalogDetail(_ref) {
|
|
|
42013
42013
|
if (typeof dashApi.mcpGetKnownExternalCatalog === "function") {
|
|
42014
42014
|
dashApi.mcpGetKnownExternalCatalog(function (_event, result) {
|
|
42015
42015
|
var external = (result.servers || []).map(function (s) {
|
|
42016
|
-
return _objectSpread$
|
|
42016
|
+
return _objectSpread$t(_objectSpread$t({}, s), {}, {
|
|
42017
42017
|
_external: true
|
|
42018
42018
|
});
|
|
42019
42019
|
});
|
|
@@ -42100,11 +42100,11 @@ var McpCatalogDetail = function McpCatalogDetail(_ref) {
|
|
|
42100
42100
|
// Handle credential field changes
|
|
42101
42101
|
var handleCredentialChange = function handleCredentialChange(fieldName, value) {
|
|
42102
42102
|
setCredentialData(function (prev) {
|
|
42103
|
-
return _objectSpread$
|
|
42103
|
+
return _objectSpread$t(_objectSpread$t({}, prev), {}, _defineProperty({}, fieldName, value));
|
|
42104
42104
|
});
|
|
42105
42105
|
if (formErrors[fieldName] && value !== null && value !== void 0 && value.trim()) {
|
|
42106
42106
|
setFormErrors(function (prev) {
|
|
42107
|
-
var next = _objectSpread$
|
|
42107
|
+
var next = _objectSpread$t({}, prev);
|
|
42108
42108
|
delete next[fieldName];
|
|
42109
42109
|
return next;
|
|
42110
42110
|
});
|
|
@@ -42352,7 +42352,7 @@ var McpCatalogDetail = function McpCatalogDetail(_ref) {
|
|
|
42352
42352
|
setProviderName(value);
|
|
42353
42353
|
if (formErrors.providerName && value !== null && value !== void 0 && value.trim()) {
|
|
42354
42354
|
setFormErrors(function (prev) {
|
|
42355
|
-
var next = _objectSpread$
|
|
42355
|
+
var next = _objectSpread$t({}, prev);
|
|
42356
42356
|
delete next.providerName;
|
|
42357
42357
|
return next;
|
|
42358
42358
|
});
|
|
@@ -42626,8 +42626,8 @@ var McpCatalogDetail = function McpCatalogDetail(_ref) {
|
|
|
42626
42626
|
});
|
|
42627
42627
|
};
|
|
42628
42628
|
|
|
42629
|
-
function ownKeys$
|
|
42630
|
-
function _objectSpread$
|
|
42629
|
+
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; }
|
|
42630
|
+
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; }
|
|
42631
42631
|
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; } } }; }
|
|
42632
42632
|
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; } }
|
|
42633
42633
|
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; }
|
|
@@ -42850,7 +42850,7 @@ var WebSocketProviderForm = function WebSocketProviderForm(_ref) {
|
|
|
42850
42850
|
function handleHeaderChange(id, field, value) {
|
|
42851
42851
|
setHeaderRows(function (prev) {
|
|
42852
42852
|
return prev.map(function (r) {
|
|
42853
|
-
return r.id === id ? _objectSpread$
|
|
42853
|
+
return r.id === id ? _objectSpread$s(_objectSpread$s({}, r), {}, _defineProperty({}, field, value)) : r;
|
|
42854
42854
|
});
|
|
42855
42855
|
});
|
|
42856
42856
|
}
|
|
@@ -43086,7 +43086,7 @@ var WebSocketProviderForm = function WebSocketProviderForm(_ref) {
|
|
|
43086
43086
|
value: credentials[field] || "",
|
|
43087
43087
|
onChange: function onChange(value) {
|
|
43088
43088
|
return setCredentials(function (prev) {
|
|
43089
|
-
return _objectSpread$
|
|
43089
|
+
return _objectSpread$s(_objectSpread$s({}, prev), {}, _defineProperty({}, field, value));
|
|
43090
43090
|
});
|
|
43091
43091
|
},
|
|
43092
43092
|
placeholder: "Enter ".concat(field),
|
|
@@ -44962,8 +44962,8 @@ var ThemeDetail = function ThemeDetail(_ref6) {
|
|
|
44962
44962
|
});
|
|
44963
44963
|
};
|
|
44964
44964
|
|
|
44965
|
-
function ownKeys$
|
|
44966
|
-
function _objectSpread$
|
|
44965
|
+
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; }
|
|
44966
|
+
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; }
|
|
44967
44967
|
var BackToChooser = function BackToChooser(_ref) {
|
|
44968
44968
|
var onClick = _ref.onClick,
|
|
44969
44969
|
children = _ref.children;
|
|
@@ -45083,7 +45083,7 @@ var ThemesSection = function ThemesSection(_ref2) {
|
|
|
45083
45083
|
if (!wizardTheme || !wizardName.trim()) return;
|
|
45084
45084
|
if (!dashApi || !appId) return;
|
|
45085
45085
|
var key = wizardTheme.id || "theme-".concat(Date.now());
|
|
45086
|
-
var finalTheme = _objectSpread$
|
|
45086
|
+
var finalTheme = _objectSpread$r(_objectSpread$r({}, wizardTheme), {}, {
|
|
45087
45087
|
id: key,
|
|
45088
45088
|
name: wizardName.trim()
|
|
45089
45089
|
});
|
|
@@ -45190,7 +45190,7 @@ var ThemesSection = function ThemesSection(_ref2) {
|
|
|
45190
45190
|
function handleUrlThemeGenerated(theme) {
|
|
45191
45191
|
if (!dashApi || !appId) return;
|
|
45192
45192
|
var key = theme.id || "theme-".concat(Date.now());
|
|
45193
|
-
var finalTheme = _objectSpread$
|
|
45193
|
+
var finalTheme = _objectSpread$r(_objectSpread$r({}, theme), {}, {
|
|
45194
45194
|
id: key
|
|
45195
45195
|
});
|
|
45196
45196
|
saveAndSelectTheme(key, finalTheme);
|
|
@@ -45459,8 +45459,8 @@ var GeneralSection = function GeneralSection() {
|
|
|
45459
45459
|
});
|
|
45460
45460
|
};
|
|
45461
45461
|
|
|
45462
|
-
function ownKeys$
|
|
45463
|
-
function _objectSpread$
|
|
45462
|
+
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; }
|
|
45463
|
+
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; }
|
|
45464
45464
|
var BUMP_OPTIONS = [{
|
|
45465
45465
|
value: "none",
|
|
45466
45466
|
label: "Keep current version"
|
|
@@ -45756,7 +45756,7 @@ var PublishWidgetModal = function PublishWidgetModal(_ref) {
|
|
|
45756
45756
|
setResult(null);
|
|
45757
45757
|
if (!confirmPersonalPaths) setPersonalPathFindings(null);
|
|
45758
45758
|
_context4.prev = 2;
|
|
45759
|
-
options = _objectSpread$
|
|
45759
|
+
options = _objectSpread$q(_objectSpread$q({
|
|
45760
45760
|
visibility: visibility
|
|
45761
45761
|
}, bump && bump !== "none" ? {
|
|
45762
45762
|
bump: bump
|
|
@@ -46331,8 +46331,8 @@ var InstallWidgetPicker = function InstallWidgetPicker(_ref2) {
|
|
|
46331
46331
|
});
|
|
46332
46332
|
};
|
|
46333
46333
|
|
|
46334
|
-
function ownKeys$
|
|
46335
|
-
function _objectSpread$
|
|
46334
|
+
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; }
|
|
46335
|
+
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; }
|
|
46336
46336
|
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; } } }; }
|
|
46337
46337
|
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; } }
|
|
46338
46338
|
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; }
|
|
@@ -46500,7 +46500,7 @@ var DiscoverWidgetsDetail = function DiscoverWidgetsDetail(_ref) {
|
|
|
46500
46500
|
if (installError) {
|
|
46501
46501
|
setProgressWidgets(function (prev) {
|
|
46502
46502
|
return prev.map(function (w) {
|
|
46503
|
-
return _objectSpread$
|
|
46503
|
+
return _objectSpread$p(_objectSpread$p({}, w), {}, {
|
|
46504
46504
|
status: "failed",
|
|
46505
46505
|
error: installError
|
|
46506
46506
|
});
|
|
@@ -46509,7 +46509,7 @@ var DiscoverWidgetsDetail = function DiscoverWidgetsDetail(_ref) {
|
|
|
46509
46509
|
} else {
|
|
46510
46510
|
setProgressWidgets(function (prev) {
|
|
46511
46511
|
return prev.map(function (w) {
|
|
46512
|
-
return _objectSpread$
|
|
46512
|
+
return _objectSpread$p(_objectSpread$p({}, w), {}, {
|
|
46513
46513
|
status: "installed"
|
|
46514
46514
|
});
|
|
46515
46515
|
});
|
|
@@ -46636,7 +46636,7 @@ var DiscoverWidgetsDetail = function DiscoverWidgetsDetail(_ref) {
|
|
|
46636
46636
|
// Transition to downloading
|
|
46637
46637
|
setProgressWidgets(function (prev) {
|
|
46638
46638
|
return prev.map(function (w) {
|
|
46639
|
-
return _objectSpread$
|
|
46639
|
+
return _objectSpread$p(_objectSpread$p({}, w), {}, {
|
|
46640
46640
|
status: "downloading"
|
|
46641
46641
|
});
|
|
46642
46642
|
});
|
|
@@ -47370,8 +47370,8 @@ function useWidgetUpdates() {
|
|
|
47370
47370
|
};
|
|
47371
47371
|
}
|
|
47372
47372
|
|
|
47373
|
-
function ownKeys$
|
|
47374
|
-
function _objectSpread$
|
|
47373
|
+
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; }
|
|
47374
|
+
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; }
|
|
47375
47375
|
var WidgetsSection = function WidgetsSection(_ref) {
|
|
47376
47376
|
var _ref$workspaces = _ref.workspaces,
|
|
47377
47377
|
workspaces = _ref$workspaces === void 0 ? [] : _ref$workspaces,
|
|
@@ -47550,7 +47550,7 @@ var WidgetsSection = function WidgetsSection(_ref) {
|
|
|
47550
47550
|
})));
|
|
47551
47551
|
var usage = findWidgetUsage(allComponentNames, workspaces);
|
|
47552
47552
|
setDeleteUsage(usage);
|
|
47553
|
-
setDeleteTarget(_objectSpread$
|
|
47553
|
+
setDeleteTarget(_objectSpread$o(_objectSpread$o({}, widget), {}, {
|
|
47554
47554
|
_siblings: siblings
|
|
47555
47555
|
}));
|
|
47556
47556
|
}
|
|
@@ -47659,7 +47659,7 @@ var WidgetsSection = function WidgetsSection(_ref) {
|
|
|
47659
47659
|
_t2 = _context2["catch"](1);
|
|
47660
47660
|
setProgressWidgets(function (prev) {
|
|
47661
47661
|
return prev.map(function (w) {
|
|
47662
|
-
return _objectSpread$
|
|
47662
|
+
return _objectSpread$o(_objectSpread$o({}, w), {}, {
|
|
47663
47663
|
status: "failed",
|
|
47664
47664
|
error: _t2.message
|
|
47665
47665
|
});
|
|
@@ -47764,7 +47764,7 @@ var WidgetsSection = function WidgetsSection(_ref) {
|
|
|
47764
47764
|
_t3 = _context3["catch"](1);
|
|
47765
47765
|
setProgressWidgets(function (prev) {
|
|
47766
47766
|
return prev.map(function (w) {
|
|
47767
|
-
return _objectSpread$
|
|
47767
|
+
return _objectSpread$o(_objectSpread$o({}, w), {}, {
|
|
47768
47768
|
status: "failed",
|
|
47769
47769
|
error: _t3.message
|
|
47770
47770
|
});
|
|
@@ -48071,7 +48071,7 @@ var WidgetsSection = function WidgetsSection(_ref) {
|
|
|
48071
48071
|
widgets: progressWidgets,
|
|
48072
48072
|
isComplete: progressComplete,
|
|
48073
48073
|
onDone: handleProgressDone
|
|
48074
|
-
}), /*#__PURE__*/jsx(ConfirmationModal, _objectSpread$
|
|
48074
|
+
}), /*#__PURE__*/jsx(ConfirmationModal, _objectSpread$o(_objectSpread$o({
|
|
48075
48075
|
isOpen: !!deleteTarget,
|
|
48076
48076
|
setIsOpen: function setIsOpen() {
|
|
48077
48077
|
setDeleteTarget(null);
|
|
@@ -48146,8 +48146,8 @@ var WidgetsSection = function WidgetsSection(_ref) {
|
|
|
48146
48146
|
});
|
|
48147
48147
|
};
|
|
48148
48148
|
|
|
48149
|
-
function ownKeys$
|
|
48150
|
-
function _objectSpread$
|
|
48149
|
+
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; }
|
|
48150
|
+
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; }
|
|
48151
48151
|
var AccountSection = function AccountSection(_ref) {
|
|
48152
48152
|
var authStatus = _ref.authStatus,
|
|
48153
48153
|
authProfile = _ref.authProfile,
|
|
@@ -48252,7 +48252,7 @@ var AuthenticatedView = function AuthenticatedView(_ref3) {
|
|
|
48252
48252
|
onPackageUpdated: function onPackageUpdated(updatedPkg) {
|
|
48253
48253
|
setPackages(function (prev) {
|
|
48254
48254
|
return prev.map(function (p) {
|
|
48255
|
-
return p.name === updatedPkg.name && p.scope === updatedPkg.scope ? _objectSpread$
|
|
48255
|
+
return p.name === updatedPkg.name && p.scope === updatedPkg.scope ? _objectSpread$n(_objectSpread$n({}, p), updatedPkg) : p;
|
|
48256
48256
|
});
|
|
48257
48257
|
});
|
|
48258
48258
|
},
|
|
@@ -48514,7 +48514,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
48514
48514
|
case 2:
|
|
48515
48515
|
result = _context3.sent;
|
|
48516
48516
|
if (result) {
|
|
48517
|
-
onSaved(_objectSpread$
|
|
48517
|
+
onSaved(_objectSpread$n(_objectSpread$n({}, pkg), updates));
|
|
48518
48518
|
}
|
|
48519
48519
|
_context3.next = 4;
|
|
48520
48520
|
break;
|
|
@@ -48589,7 +48589,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
48589
48589
|
label: "Display Name",
|
|
48590
48590
|
value: form.displayName,
|
|
48591
48591
|
onChange: function onChange(v) {
|
|
48592
|
-
return setForm(_objectSpread$
|
|
48592
|
+
return setForm(_objectSpread$n(_objectSpread$n({}, form), {}, {
|
|
48593
48593
|
displayName: v
|
|
48594
48594
|
}));
|
|
48595
48595
|
}
|
|
@@ -48597,7 +48597,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
48597
48597
|
label: "Description",
|
|
48598
48598
|
value: form.description,
|
|
48599
48599
|
onChange: function onChange(v) {
|
|
48600
|
-
return setForm(_objectSpread$
|
|
48600
|
+
return setForm(_objectSpread$n(_objectSpread$n({}, form), {}, {
|
|
48601
48601
|
description: v
|
|
48602
48602
|
}));
|
|
48603
48603
|
}
|
|
@@ -48605,7 +48605,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
48605
48605
|
label: "Category",
|
|
48606
48606
|
value: form.category,
|
|
48607
48607
|
onChange: function onChange(v) {
|
|
48608
|
-
return setForm(_objectSpread$
|
|
48608
|
+
return setForm(_objectSpread$n(_objectSpread$n({}, form), {}, {
|
|
48609
48609
|
category: v
|
|
48610
48610
|
}));
|
|
48611
48611
|
}
|
|
@@ -48613,7 +48613,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
48613
48613
|
label: "Tags (comma-separated)",
|
|
48614
48614
|
value: form.tags,
|
|
48615
48615
|
onChange: function onChange(v) {
|
|
48616
|
-
return setForm(_objectSpread$
|
|
48616
|
+
return setForm(_objectSpread$n(_objectSpread$n({}, form), {}, {
|
|
48617
48617
|
tags: v
|
|
48618
48618
|
}));
|
|
48619
48619
|
}
|
|
@@ -48625,7 +48625,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
48625
48625
|
}), /*#__PURE__*/jsxs("select", {
|
|
48626
48626
|
value: form.visibility,
|
|
48627
48627
|
onChange: function onChange(e) {
|
|
48628
|
-
return setForm(_objectSpread$
|
|
48628
|
+
return setForm(_objectSpread$n(_objectSpread$n({}, form), {}, {
|
|
48629
48629
|
visibility: e.target.value
|
|
48630
48630
|
}));
|
|
48631
48631
|
},
|
|
@@ -48752,8 +48752,8 @@ var EditField = function EditField(_ref7) {
|
|
|
48752
48752
|
});
|
|
48753
48753
|
};
|
|
48754
48754
|
|
|
48755
|
-
function ownKeys$
|
|
48756
|
-
function _objectSpread$
|
|
48755
|
+
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; }
|
|
48756
|
+
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; }
|
|
48757
48757
|
var GLOBAL_KEY = "__global__";
|
|
48758
48758
|
var NotificationsSection = function NotificationsSection(_ref) {
|
|
48759
48759
|
var _ref$workspaces = _ref.workspaces,
|
|
@@ -48897,7 +48897,7 @@ var NotificationsSection = function NotificationsSection(_ref) {
|
|
|
48897
48897
|
}
|
|
48898
48898
|
function handleTypeToggle(widgetUuid, typeKey, value) {
|
|
48899
48899
|
var _window$mainApi4;
|
|
48900
|
-
var updated = _objectSpread$
|
|
48900
|
+
var updated = _objectSpread$m(_objectSpread$m({}, instances), {}, _defineProperty({}, widgetUuid, _objectSpread$m(_objectSpread$m({}, instances[widgetUuid] || {}), {}, _defineProperty({}, typeKey, value))));
|
|
48901
48901
|
setInstances(updated);
|
|
48902
48902
|
(_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));
|
|
48903
48903
|
}
|
|
@@ -49413,8 +49413,8 @@ var McpServerSection = function McpServerSection() {
|
|
|
49413
49413
|
});
|
|
49414
49414
|
};
|
|
49415
49415
|
|
|
49416
|
-
function ownKeys$
|
|
49417
|
-
function _objectSpread$
|
|
49416
|
+
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; }
|
|
49417
|
+
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; }
|
|
49418
49418
|
var MODELS = [{
|
|
49419
49419
|
value: "claude-sonnet-4-20250514",
|
|
49420
49420
|
label: "Claude Sonnet 4"
|
|
@@ -49500,8 +49500,8 @@ var AiAssistantSection = function AiAssistantSection() {
|
|
|
49500
49500
|
var saveAiSettings = useCallback(function (updates) {
|
|
49501
49501
|
if (appContext !== null && appContext !== void 0 && appContext.changeSettings) {
|
|
49502
49502
|
var current = appContext.settings || {};
|
|
49503
|
-
var newAiSettings = _objectSpread$
|
|
49504
|
-
appContext.changeSettings(_objectSpread$
|
|
49503
|
+
var newAiSettings = _objectSpread$l(_objectSpread$l({}, current.aiAssistant || {}), updates);
|
|
49504
|
+
appContext.changeSettings(_objectSpread$l(_objectSpread$l({}, current), {}, {
|
|
49505
49505
|
aiAssistant: newAiSettings
|
|
49506
49506
|
}));
|
|
49507
49507
|
}
|
|
@@ -50359,7 +50359,7 @@ var ToolToggleList = function ToolToggleList(_ref2) {
|
|
|
50359
50359
|
// always allowed when the tool IS granted.
|
|
50360
50360
|
var disabled = !isGranted && !hasAnyGrantOnServer;
|
|
50361
50361
|
return /*#__PURE__*/jsxs("div", {
|
|
50362
|
-
className: "flex flex-row items-center justify-between gap-2",
|
|
50362
|
+
className: "flex flex-row items-center justify-between gap-2 py-1 px-2 -mx-2 rounded hover:bg-white/5 transition-colors",
|
|
50363
50363
|
children: [/*#__PURE__*/jsxs("span", {
|
|
50364
50364
|
className: "text-xs font-mono break-all ".concat(isStale ? "text-amber-400" : isGranted ? "opacity-100" : "opacity-50"),
|
|
50365
50365
|
children: [tool, isStale && /*#__PURE__*/jsx("span", {
|
|
@@ -50397,7 +50397,7 @@ var PermsList = function PermsList(_ref3) {
|
|
|
50397
50397
|
var isStale = staleSet.has(item);
|
|
50398
50398
|
var showTrash = isGranted && typeof onDeleteItem === "function";
|
|
50399
50399
|
return /*#__PURE__*/jsxs("div", {
|
|
50400
|
-
className: "flex flex-row items-start justify-between gap-2",
|
|
50400
|
+
className: "flex flex-row items-start justify-between gap-2 py-1 px-2 -mx-2 rounded hover:bg-white/5 transition-colors",
|
|
50401
50401
|
children: [/*#__PURE__*/jsxs("span", {
|
|
50402
50402
|
className: "text-xs font-mono break-all ".concat(isStale ? "text-amber-400" : isGranted ? "opacity-100" : "opacity-50 line-through"),
|
|
50403
50403
|
children: [item, isStale && /*#__PURE__*/jsx("span", {
|
|
@@ -50473,7 +50473,8 @@ var WidgetGrantRow = function WidgetGrantRow(_ref5) {
|
|
|
50473
50473
|
onGrantManually = _ref5.onGrantManually,
|
|
50474
50474
|
_onToggleTool = _ref5.onToggleTool,
|
|
50475
50475
|
onToggleAllForServer = _ref5.onToggleAllForServer,
|
|
50476
|
-
onDeletePath = _ref5.onDeletePath
|
|
50476
|
+
onDeletePath = _ref5.onDeletePath,
|
|
50477
|
+
onDeleteDomainItem = _ref5.onDeleteDomainItem;
|
|
50477
50478
|
var declaredServers = declared && declared.servers || {};
|
|
50478
50479
|
var grantedServers = granted && granted.servers || {};
|
|
50479
50480
|
var allServerNames = Array.from(new Set([].concat(_toConsumableArray(Object.keys(declaredServers)), _toConsumableArray(Object.keys(grantedServers)))));
|
|
@@ -50616,17 +50617,26 @@ var WidgetGrantRow = function WidgetGrantRow(_ref5) {
|
|
|
50616
50617
|
label: "Actions",
|
|
50617
50618
|
declaredItems: [],
|
|
50618
50619
|
grantedItems: granted.domains.fs.actions,
|
|
50619
|
-
validatesStale: false
|
|
50620
|
+
validatesStale: false,
|
|
50621
|
+
onDeleteItem: onDeleteDomainItem ? function (a) {
|
|
50622
|
+
return onDeleteDomainItem(widgetId, "fs", "actions", a);
|
|
50623
|
+
} : undefined
|
|
50620
50624
|
}), /*#__PURE__*/jsx(PermsList, {
|
|
50621
50625
|
label: "Read filenames",
|
|
50622
50626
|
declaredItems: [],
|
|
50623
50627
|
grantedItems: granted.domains.fs.readPaths || [],
|
|
50624
|
-
validatesStale: false
|
|
50628
|
+
validatesStale: false,
|
|
50629
|
+
onDeleteItem: onDeleteDomainItem ? function (p) {
|
|
50630
|
+
return onDeleteDomainItem(widgetId, "fs", "readPaths", p);
|
|
50631
|
+
} : undefined
|
|
50625
50632
|
}), /*#__PURE__*/jsx(PermsList, {
|
|
50626
50633
|
label: "Write filenames",
|
|
50627
50634
|
declaredItems: [],
|
|
50628
50635
|
grantedItems: granted.domains.fs.writePaths || [],
|
|
50629
|
-
validatesStale: false
|
|
50636
|
+
validatesStale: false,
|
|
50637
|
+
onDeleteItem: onDeleteDomainItem ? function (p) {
|
|
50638
|
+
return onDeleteDomainItem(widgetId, "fs", "writePaths", p);
|
|
50639
|
+
} : undefined
|
|
50630
50640
|
})]
|
|
50631
50641
|
}), (granted === null || granted === void 0 || (_granted$domains2 = granted.domains) === null || _granted$domains2 === void 0 ? void 0 : _granted$domains2.network) && (granted.domains.network.hosts || []).length > 0 && /*#__PURE__*/jsxs("div", {
|
|
50632
50642
|
className: "flex flex-col space-y-2 border-t border-gray-800 pt-2",
|
|
@@ -50637,12 +50647,18 @@ var WidgetGrantRow = function WidgetGrantRow(_ref5) {
|
|
|
50637
50647
|
label: "Actions",
|
|
50638
50648
|
declaredItems: [],
|
|
50639
50649
|
grantedItems: granted.domains.network.actions,
|
|
50640
|
-
validatesStale: false
|
|
50650
|
+
validatesStale: false,
|
|
50651
|
+
onDeleteItem: onDeleteDomainItem ? function (a) {
|
|
50652
|
+
return onDeleteDomainItem(widgetId, "network", "actions", a);
|
|
50653
|
+
} : undefined
|
|
50641
50654
|
}), /*#__PURE__*/jsx(PermsList, {
|
|
50642
50655
|
label: "Allowed hosts",
|
|
50643
50656
|
declaredItems: [],
|
|
50644
50657
|
grantedItems: granted.domains.network.hosts || [],
|
|
50645
|
-
validatesStale: false
|
|
50658
|
+
validatesStale: false,
|
|
50659
|
+
onDeleteItem: onDeleteDomainItem ? function (h) {
|
|
50660
|
+
return onDeleteDomainItem(widgetId, "network", "hosts", h);
|
|
50661
|
+
} : undefined
|
|
50646
50662
|
})]
|
|
50647
50663
|
})]
|
|
50648
50664
|
});
|
|
@@ -50656,7 +50672,8 @@ var WidgetPackageDetail = function WidgetPackageDetail(_ref) {
|
|
|
50656
50672
|
onRevokePackage = _ref.onRevokePackage,
|
|
50657
50673
|
onToggleTool = _ref.onToggleTool,
|
|
50658
50674
|
onToggleAllForServer = _ref.onToggleAllForServer,
|
|
50659
|
-
onDeletePath = _ref.onDeletePath
|
|
50675
|
+
onDeletePath = _ref.onDeletePath,
|
|
50676
|
+
onDeleteDomainItem = _ref.onDeleteDomainItem;
|
|
50660
50677
|
var _useState = useState(false),
|
|
50661
50678
|
_useState2 = _slicedToArray(_useState, 2),
|
|
50662
50679
|
confirmRevokeAll = _useState2[0],
|
|
@@ -50746,7 +50763,8 @@ var WidgetPackageDetail = function WidgetPackageDetail(_ref) {
|
|
|
50746
50763
|
},
|
|
50747
50764
|
onToggleTool: onToggleTool,
|
|
50748
50765
|
onToggleAllForServer: onToggleAllForServer,
|
|
50749
|
-
onDeletePath: onDeletePath
|
|
50766
|
+
onDeletePath: onDeletePath,
|
|
50767
|
+
onDeleteDomainItem: onDeleteDomainItem
|
|
50750
50768
|
}, row.widgetId);
|
|
50751
50769
|
})
|
|
50752
50770
|
})]
|
|
@@ -50757,8 +50775,8 @@ var WidgetPackageDetail = function WidgetPackageDetail(_ref) {
|
|
|
50757
50775
|
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; } } }; }
|
|
50758
50776
|
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; } }
|
|
50759
50777
|
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; }
|
|
50760
|
-
function ownKeys$
|
|
50761
|
-
function _objectSpread$
|
|
50778
|
+
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; }
|
|
50779
|
+
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; }
|
|
50762
50780
|
/**
|
|
50763
50781
|
* normalizeGrantsByProviderType
|
|
50764
50782
|
*
|
|
@@ -50843,8 +50861,8 @@ function normalizeRow(row, labelToType) {
|
|
|
50843
50861
|
if (type && !existing._labels.includes(label)) existing._labels.push(label);
|
|
50844
50862
|
}
|
|
50845
50863
|
}
|
|
50846
|
-
return _objectSpread$
|
|
50847
|
-
granted: _objectSpread$
|
|
50864
|
+
return _objectSpread$k(_objectSpread$k({}, row), {}, {
|
|
50865
|
+
granted: _objectSpread$k(_objectSpread$k({}, row.granted), {}, {
|
|
50848
50866
|
servers: newServers
|
|
50849
50867
|
})
|
|
50850
50868
|
});
|
|
@@ -50887,8 +50905,8 @@ function unionDedupe(a, b) {
|
|
|
50887
50905
|
*
|
|
50888
50906
|
* Does NOT mutate the input grant.
|
|
50889
50907
|
*/
|
|
50890
|
-
function ownKeys$
|
|
50891
|
-
function _objectSpread$
|
|
50908
|
+
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; }
|
|
50909
|
+
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; }
|
|
50892
50910
|
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; } } }; }
|
|
50893
50911
|
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; } }
|
|
50894
50912
|
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; }
|
|
@@ -50928,7 +50946,7 @@ function applyToolToggle(grant, labels, tool, on) {
|
|
|
50928
50946
|
}
|
|
50929
50947
|
var tools = new Set(newServers[label].tools);
|
|
50930
50948
|
if (on) tools.add(tool);else tools["delete"](tool);
|
|
50931
|
-
newServers[label] = _objectSpread$
|
|
50949
|
+
newServers[label] = _objectSpread$j(_objectSpread$j({}, newServers[label]), {}, {
|
|
50932
50950
|
tools: Array.from(tools)
|
|
50933
50951
|
});
|
|
50934
50952
|
}
|
|
@@ -50951,7 +50969,7 @@ function applyToolToggle(grant, labels, tool, on) {
|
|
|
50951
50969
|
var hasServers = Object.keys(newServers).length > 0;
|
|
50952
50970
|
var hasDomains = grant.domains && Object.keys(grant.domains).length > 0;
|
|
50953
50971
|
if (!hasServers && !hasDomains) return null;
|
|
50954
|
-
return _objectSpread$
|
|
50972
|
+
return _objectSpread$j(_objectSpread$j({}, grant), {}, {
|
|
50955
50973
|
servers: newServers
|
|
50956
50974
|
});
|
|
50957
50975
|
}
|
|
@@ -50970,12 +50988,12 @@ function applyToolToggle(grant, labels, tool, on) {
|
|
|
50970
50988
|
*
|
|
50971
50989
|
* Pure. Does not mutate the input grant.
|
|
50972
50990
|
*/
|
|
50973
|
-
function ownKeys$
|
|
50974
|
-
function _objectSpread$
|
|
50991
|
+
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; }
|
|
50992
|
+
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; }
|
|
50975
50993
|
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; } } }; }
|
|
50976
50994
|
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; } }
|
|
50977
50995
|
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; }
|
|
50978
|
-
var VALID_KINDS = new Set(["readPaths", "writePaths"]);
|
|
50996
|
+
var VALID_KINDS$1 = new Set(["readPaths", "writePaths"]);
|
|
50979
50997
|
function applyPathRemoval(grant, labels, kind, path) {
|
|
50980
50998
|
if (!grant || _typeof(grant) !== "object") return null;
|
|
50981
50999
|
if (!Array.isArray(labels) || labels.length === 0) return null;
|
|
@@ -50992,7 +51010,7 @@ function applyPathRemoval(grant, labels, kind, path) {
|
|
|
50992
51010
|
writePaths: Array.isArray(v.writePaths) ? _toConsumableArray(v.writePaths) : []
|
|
50993
51011
|
};
|
|
50994
51012
|
}
|
|
50995
|
-
if (VALID_KINDS.has(kind)) {
|
|
51013
|
+
if (VALID_KINDS$1.has(kind)) {
|
|
50996
51014
|
var _iterator = _createForOfIteratorHelper$c(labels),
|
|
50997
51015
|
_step;
|
|
50998
51016
|
try {
|
|
@@ -51023,11 +51041,82 @@ function applyPathRemoval(grant, labels, kind, path) {
|
|
|
51023
51041
|
var hasServers = Object.keys(newServers).length > 0;
|
|
51024
51042
|
var hasDomains = grant.domains && Object.keys(grant.domains).length > 0;
|
|
51025
51043
|
if (!hasServers && !hasDomains) return null;
|
|
51026
|
-
return _objectSpread$
|
|
51044
|
+
return _objectSpread$i(_objectSpread$i({}, grant), {}, {
|
|
51027
51045
|
servers: newServers
|
|
51028
51046
|
});
|
|
51029
51047
|
}
|
|
51030
51048
|
|
|
51049
|
+
/**
|
|
51050
|
+
* applyDomainItemRemoval
|
|
51051
|
+
*
|
|
51052
|
+
* Per-item delete helper for the parallel `granted.domains.{fs,network}`
|
|
51053
|
+
* grant shape used by Slice 2 (fs gate) and Slice 3 (network gate).
|
|
51054
|
+
* Sister to applyPathRemoval, which handles the MCP-server-shaped
|
|
51055
|
+
* `granted.servers[name]` block.
|
|
51056
|
+
*
|
|
51057
|
+
* domain: "fs" | "network"
|
|
51058
|
+
* kind:
|
|
51059
|
+
* fs → "readPaths" | "writePaths" | "actions"
|
|
51060
|
+
* network → "hosts" | "actions"
|
|
51061
|
+
* value: the string to remove
|
|
51062
|
+
*
|
|
51063
|
+
* If the resulting domain block is structurally empty (every array
|
|
51064
|
+
* gone), the entire domain entry is pruned. If the entire grant has
|
|
51065
|
+
* no surviving servers AND no surviving domains, returns null so the
|
|
51066
|
+
* caller knows to call `revoke(widgetId)` instead of writing an
|
|
51067
|
+
* empty-shape grant the gate's sanitizePerms would reject.
|
|
51068
|
+
*
|
|
51069
|
+
* Pure. Does not mutate the input grant.
|
|
51070
|
+
*/
|
|
51071
|
+
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; }
|
|
51072
|
+
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; }
|
|
51073
|
+
var VALID_KINDS = {
|
|
51074
|
+
fs: new Set(["readPaths", "writePaths", "actions"]),
|
|
51075
|
+
network: new Set(["hosts", "actions"])
|
|
51076
|
+
};
|
|
51077
|
+
function applyDomainItemRemoval(grant, domain, kind, value) {
|
|
51078
|
+
if (!grant || _typeof(grant) !== "object") return null;
|
|
51079
|
+
if (typeof value !== "string" || !value) return null;
|
|
51080
|
+
|
|
51081
|
+
// Carry domains forward, deep-copying only the touched domain.
|
|
51082
|
+
var inDomains = grant.domains && _typeof(grant.domains) === "object" ? grant.domains : {};
|
|
51083
|
+
var newDomains = {};
|
|
51084
|
+
for (var _i = 0, _Object$entries = Object.entries(inDomains); _i < _Object$entries.length; _i++) {
|
|
51085
|
+
var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
|
|
51086
|
+
k = _Object$entries$_i[0],
|
|
51087
|
+
v = _Object$entries$_i[1];
|
|
51088
|
+
newDomains[k] = v;
|
|
51089
|
+
}
|
|
51090
|
+
if (VALID_KINDS[domain] && VALID_KINDS[domain].has(kind) && inDomains[domain] && _typeof(inDomains[domain]) === "object") {
|
|
51091
|
+
var block = inDomains[domain];
|
|
51092
|
+
var arr = Array.isArray(block[kind]) ? block[kind] : [];
|
|
51093
|
+
var next = arr.filter(function (s) {
|
|
51094
|
+
return s !== value;
|
|
51095
|
+
});
|
|
51096
|
+
var nextBlock = _objectSpread$h(_objectSpread$h({}, block), {}, _defineProperty({}, kind, next));
|
|
51097
|
+
|
|
51098
|
+
// If the entire domain block has nothing left, drop it.
|
|
51099
|
+
var nonEmpty = function nonEmpty(a) {
|
|
51100
|
+
return Array.isArray(a) && a.length > 0;
|
|
51101
|
+
};
|
|
51102
|
+
if (!nonEmpty(nextBlock.readPaths) && !nonEmpty(nextBlock.writePaths) && !nonEmpty(nextBlock.actions) && !nonEmpty(nextBlock.hosts)) {
|
|
51103
|
+
delete newDomains[domain];
|
|
51104
|
+
} else {
|
|
51105
|
+
newDomains[domain] = nextBlock;
|
|
51106
|
+
}
|
|
51107
|
+
}
|
|
51108
|
+
|
|
51109
|
+
// Carry servers untouched.
|
|
51110
|
+
var inServers = grant.servers && _typeof(grant.servers) === "object" ? grant.servers : {};
|
|
51111
|
+
var hasServers = Object.keys(inServers).length > 0;
|
|
51112
|
+
var hasDomains = Object.keys(newDomains).length > 0;
|
|
51113
|
+
if (!hasServers && !hasDomains) return null;
|
|
51114
|
+
return _objectSpread$h(_objectSpread$h({}, grant), {}, {
|
|
51115
|
+
servers: inServers,
|
|
51116
|
+
domains: newDomains
|
|
51117
|
+
});
|
|
51118
|
+
}
|
|
51119
|
+
|
|
51031
51120
|
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; }
|
|
51032
51121
|
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; }
|
|
51033
51122
|
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; } } }; }
|
|
@@ -51416,43 +51505,85 @@ var PrivacySecuritySection = function PrivacySecuritySection() {
|
|
|
51416
51505
|
};
|
|
51417
51506
|
}();
|
|
51418
51507
|
|
|
51508
|
+
// Remove a single item from a domain-shaped grant block (fs read
|
|
51509
|
+
// filenames, fs write filenames, fs actions, network hosts, network
|
|
51510
|
+
// actions). Sister to deletePath, which targets the MCP-server
|
|
51511
|
+
// shape. No label resolution needed — domains aren't per-instance.
|
|
51512
|
+
var deleteDomainItem = /*#__PURE__*/function () {
|
|
51513
|
+
var _ref8 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8(widgetId, domain, kind, value) {
|
|
51514
|
+
var row, next, _t8;
|
|
51515
|
+
return _regeneratorRuntime.wrap(function (_context8) {
|
|
51516
|
+
while (1) switch (_context8.prev = _context8.next) {
|
|
51517
|
+
case 0:
|
|
51518
|
+
_context8.prev = 0;
|
|
51519
|
+
row = rows.find(function (r) {
|
|
51520
|
+
return r.widgetId === widgetId;
|
|
51521
|
+
});
|
|
51522
|
+
if (!(!row || !row.granted)) {
|
|
51523
|
+
_context8.next = 1;
|
|
51524
|
+
break;
|
|
51525
|
+
}
|
|
51526
|
+
return _context8.abrupt("return");
|
|
51527
|
+
case 1:
|
|
51528
|
+
next = applyDomainItemRemoval(row.granted, domain, kind, value);
|
|
51529
|
+
_context8.next = 2;
|
|
51530
|
+
return writeGrantOrRevoke(widgetId, next);
|
|
51531
|
+
case 2:
|
|
51532
|
+
reload();
|
|
51533
|
+
_context8.next = 4;
|
|
51534
|
+
break;
|
|
51535
|
+
case 3:
|
|
51536
|
+
_context8.prev = 3;
|
|
51537
|
+
_t8 = _context8["catch"](0);
|
|
51538
|
+
setError((_t8 === null || _t8 === void 0 ? void 0 : _t8.message) || String(_t8));
|
|
51539
|
+
case 4:
|
|
51540
|
+
case "end":
|
|
51541
|
+
return _context8.stop();
|
|
51542
|
+
}
|
|
51543
|
+
}, _callee8, null, [[0, 3]]);
|
|
51544
|
+
}));
|
|
51545
|
+
return function deleteDomainItem(_x12, _x13, _x14, _x15) {
|
|
51546
|
+
return _ref8.apply(this, arguments);
|
|
51547
|
+
};
|
|
51548
|
+
}();
|
|
51549
|
+
|
|
51419
51550
|
// Per-server toggle-all: flip every declared tool on this server to
|
|
51420
51551
|
// the target state in one shot. Reaches into the row's normalized
|
|
51421
51552
|
// `declared.servers[serverName].tools` for the canonical tool list
|
|
51422
51553
|
// (the manifest is the source of truth for "what tools could be
|
|
51423
51554
|
// granted") and chains applyToolToggle calls.
|
|
51424
51555
|
var toggleAllForServer = /*#__PURE__*/function () {
|
|
51425
|
-
var
|
|
51426
|
-
var _row$declared, row, declaredTools, currentGrant, labels, next, _iterator2, _step2, tool,
|
|
51427
|
-
return _regeneratorRuntime.wrap(function (
|
|
51428
|
-
while (1) switch (
|
|
51556
|
+
var _ref9 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee9(widgetId, serverName, on) {
|
|
51557
|
+
var _row$declared, row, declaredTools, currentGrant, labels, next, _iterator2, _step2, tool, _t9;
|
|
51558
|
+
return _regeneratorRuntime.wrap(function (_context9) {
|
|
51559
|
+
while (1) switch (_context9.prev = _context9.next) {
|
|
51429
51560
|
case 0:
|
|
51430
|
-
|
|
51561
|
+
_context9.prev = 0;
|
|
51431
51562
|
row = rows.find(function (r) {
|
|
51432
51563
|
return r.widgetId === widgetId;
|
|
51433
51564
|
});
|
|
51434
51565
|
if (row) {
|
|
51435
|
-
|
|
51566
|
+
_context9.next = 1;
|
|
51436
51567
|
break;
|
|
51437
51568
|
}
|
|
51438
|
-
return
|
|
51569
|
+
return _context9.abrupt("return");
|
|
51439
51570
|
case 1:
|
|
51440
51571
|
declaredTools = ((_row$declared = row.declared) === null || _row$declared === void 0 || (_row$declared = _row$declared.servers) === null || _row$declared === void 0 || (_row$declared = _row$declared[serverName]) === null || _row$declared === void 0 ? void 0 : _row$declared.tools) || [];
|
|
51441
51572
|
if (!(declaredTools.length === 0)) {
|
|
51442
|
-
|
|
51573
|
+
_context9.next = 2;
|
|
51443
51574
|
break;
|
|
51444
51575
|
}
|
|
51445
|
-
return
|
|
51576
|
+
return _context9.abrupt("return");
|
|
51446
51577
|
case 2:
|
|
51447
51578
|
currentGrant = row.granted || {
|
|
51448
51579
|
servers: {}
|
|
51449
51580
|
};
|
|
51450
51581
|
labels = resolveLabels(currentGrant, serverName, on);
|
|
51451
51582
|
if (!(labels.length === 0)) {
|
|
51452
|
-
|
|
51583
|
+
_context9.next = 3;
|
|
51453
51584
|
break;
|
|
51454
51585
|
}
|
|
51455
|
-
return
|
|
51586
|
+
return _context9.abrupt("return");
|
|
51456
51587
|
case 3:
|
|
51457
51588
|
next = currentGrant;
|
|
51458
51589
|
_iterator2 = _createForOfIteratorHelper$b(declaredTools);
|
|
@@ -51468,81 +51599,81 @@ var PrivacySecuritySection = function PrivacySecuritySection() {
|
|
|
51468
51599
|
} finally {
|
|
51469
51600
|
_iterator2.f();
|
|
51470
51601
|
}
|
|
51471
|
-
|
|
51602
|
+
_context9.next = 4;
|
|
51472
51603
|
return writeGrantOrRevoke(widgetId, next);
|
|
51473
51604
|
case 4:
|
|
51474
51605
|
reload();
|
|
51475
|
-
|
|
51606
|
+
_context9.next = 6;
|
|
51476
51607
|
break;
|
|
51477
51608
|
case 5:
|
|
51478
|
-
|
|
51479
|
-
|
|
51480
|
-
setError((
|
|
51609
|
+
_context9.prev = 5;
|
|
51610
|
+
_t9 = _context9["catch"](0);
|
|
51611
|
+
setError((_t9 === null || _t9 === void 0 ? void 0 : _t9.message) || String(_t9));
|
|
51481
51612
|
case 6:
|
|
51482
51613
|
case "end":
|
|
51483
|
-
return
|
|
51614
|
+
return _context9.stop();
|
|
51484
51615
|
}
|
|
51485
|
-
},
|
|
51616
|
+
}, _callee9, null, [[0, 5]]);
|
|
51486
51617
|
}));
|
|
51487
|
-
return function toggleAllForServer(
|
|
51488
|
-
return
|
|
51618
|
+
return function toggleAllForServer(_x16, _x17, _x18) {
|
|
51619
|
+
return _ref9.apply(this, arguments);
|
|
51489
51620
|
};
|
|
51490
51621
|
}();
|
|
51491
51622
|
var revokePackage = /*#__PURE__*/function () {
|
|
51492
|
-
var
|
|
51493
|
-
var _iterator3, _step3, _window$mainApi5, _window$mainApi5$revo, w,
|
|
51494
|
-
return _regeneratorRuntime.wrap(function (
|
|
51495
|
-
while (1) switch (
|
|
51623
|
+
var _ref0 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee0(packageGroup) {
|
|
51624
|
+
var _iterator3, _step3, _window$mainApi5, _window$mainApi5$revo, w, _t0, _t1;
|
|
51625
|
+
return _regeneratorRuntime.wrap(function (_context0) {
|
|
51626
|
+
while (1) switch (_context0.prev = _context0.next) {
|
|
51496
51627
|
case 0:
|
|
51497
|
-
|
|
51628
|
+
_context0.prev = 0;
|
|
51498
51629
|
_iterator3 = _createForOfIteratorHelper$b(packageGroup.widgets);
|
|
51499
|
-
|
|
51630
|
+
_context0.prev = 1;
|
|
51500
51631
|
_iterator3.s();
|
|
51501
51632
|
case 2:
|
|
51502
51633
|
if ((_step3 = _iterator3.n()).done) {
|
|
51503
|
-
|
|
51634
|
+
_context0.next = 5;
|
|
51504
51635
|
break;
|
|
51505
51636
|
}
|
|
51506
51637
|
w = _step3.value;
|
|
51507
51638
|
if (w.granted) {
|
|
51508
|
-
|
|
51639
|
+
_context0.next = 3;
|
|
51509
51640
|
break;
|
|
51510
51641
|
}
|
|
51511
|
-
return
|
|
51642
|
+
return _context0.abrupt("continue", 4);
|
|
51512
51643
|
case 3:
|
|
51513
|
-
|
|
51644
|
+
_context0.next = 4;
|
|
51514
51645
|
return (_window$mainApi5 = window.mainApi) === null || _window$mainApi5 === void 0 || (_window$mainApi5 = _window$mainApi5.widgetMcp) === null || _window$mainApi5 === void 0 || (_window$mainApi5$revo = _window$mainApi5.revoke) === null || _window$mainApi5$revo === void 0 ? void 0 : _window$mainApi5$revo.call(_window$mainApi5, w.widgetId);
|
|
51515
51646
|
case 4:
|
|
51516
|
-
|
|
51647
|
+
_context0.next = 2;
|
|
51517
51648
|
break;
|
|
51518
51649
|
case 5:
|
|
51519
|
-
|
|
51650
|
+
_context0.next = 7;
|
|
51520
51651
|
break;
|
|
51521
51652
|
case 6:
|
|
51522
|
-
|
|
51523
|
-
|
|
51524
|
-
_iterator3.e(
|
|
51653
|
+
_context0.prev = 6;
|
|
51654
|
+
_t0 = _context0["catch"](1);
|
|
51655
|
+
_iterator3.e(_t0);
|
|
51525
51656
|
case 7:
|
|
51526
|
-
|
|
51657
|
+
_context0.prev = 7;
|
|
51527
51658
|
_iterator3.f();
|
|
51528
|
-
return
|
|
51659
|
+
return _context0.finish(7);
|
|
51529
51660
|
case 8:
|
|
51530
51661
|
reload();
|
|
51531
|
-
|
|
51662
|
+
_context0.next = 10;
|
|
51532
51663
|
break;
|
|
51533
51664
|
case 9:
|
|
51534
|
-
|
|
51535
|
-
|
|
51536
|
-
setError((
|
|
51665
|
+
_context0.prev = 9;
|
|
51666
|
+
_t1 = _context0["catch"](0);
|
|
51667
|
+
setError((_t1 === null || _t1 === void 0 ? void 0 : _t1.message) || String(_t1));
|
|
51537
51668
|
reload();
|
|
51538
51669
|
case 10:
|
|
51539
51670
|
case "end":
|
|
51540
|
-
return
|
|
51671
|
+
return _context0.stop();
|
|
51541
51672
|
}
|
|
51542
|
-
},
|
|
51673
|
+
}, _callee0, null, [[0, 9], [1, 6, 7, 8]]);
|
|
51543
51674
|
}));
|
|
51544
|
-
return function revokePackage(
|
|
51545
|
-
return
|
|
51675
|
+
return function revokePackage(_x19) {
|
|
51676
|
+
return _ref0.apply(this, arguments);
|
|
51546
51677
|
};
|
|
51547
51678
|
}();
|
|
51548
51679
|
if (loading) {
|
|
@@ -51608,7 +51739,8 @@ var PrivacySecuritySection = function PrivacySecuritySection() {
|
|
|
51608
51739
|
onRevokePackage: revokePackage,
|
|
51609
51740
|
onToggleTool: toggleTool,
|
|
51610
51741
|
onToggleAllForServer: toggleAllForServer,
|
|
51611
|
-
onDeletePath: deletePath
|
|
51742
|
+
onDeletePath: deletePath,
|
|
51743
|
+
onDeleteDomainItem: deleteDomainItem
|
|
51612
51744
|
});
|
|
51613
51745
|
}
|
|
51614
51746
|
return /*#__PURE__*/jsxs("div", {
|
|
@@ -51747,22 +51879,22 @@ var EnforcementToggles = function EnforcementToggles() {
|
|
|
51747
51879
|
// message includes "JIT consent timed out" → timeout
|
|
51748
51880
|
// anything else → unknown error
|
|
51749
51881
|
var triggerTestJitPrompt = /*#__PURE__*/function () {
|
|
51750
|
-
var
|
|
51751
|
-
var _window$mainApi6, _window$mainApi6$call, result, msg,
|
|
51752
|
-
return _regeneratorRuntime.wrap(function (
|
|
51753
|
-
while (1) switch (
|
|
51882
|
+
var _ref1 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee1() {
|
|
51883
|
+
var _window$mainApi6, _window$mainApi6$call, result, msg, _t10;
|
|
51884
|
+
return _regeneratorRuntime.wrap(function (_context1) {
|
|
51885
|
+
while (1) switch (_context1.prev = _context1.next) {
|
|
51754
51886
|
case 0:
|
|
51755
51887
|
setLastTestResult({
|
|
51756
51888
|
status: "pending",
|
|
51757
51889
|
message: "Waiting for response…"
|
|
51758
51890
|
});
|
|
51759
|
-
|
|
51760
|
-
|
|
51891
|
+
_context1.prev = 1;
|
|
51892
|
+
_context1.next = 2;
|
|
51761
51893
|
return (_window$mainApi6 = window.mainApi) === null || _window$mainApi6 === void 0 || (_window$mainApi6 = _window$mainApi6.mcp) === null || _window$mainApi6 === void 0 || (_window$mainApi6$call = _window$mainApi6.callTool) === null || _window$mainApi6$call === void 0 ? void 0 : _window$mainApi6$call.call(_window$mainApi6, "test-server", "test_tool", {
|
|
51762
51894
|
path: "/tmp/jit-probe.txt"
|
|
51763
51895
|
}, null, "@test/jit-probe");
|
|
51764
51896
|
case 2:
|
|
51765
|
-
result =
|
|
51897
|
+
result = _context1.sent;
|
|
51766
51898
|
// callTool resolves to { error, message } on the main side; classify.
|
|
51767
51899
|
msg = (result === null || result === void 0 ? void 0 : result.message) || JSON.stringify(result || {});
|
|
51768
51900
|
if (/server not connected/i.test(msg)) {
|
|
@@ -51786,23 +51918,23 @@ var EnforcementToggles = function EnforcementToggles() {
|
|
|
51786
51918
|
message: "Unexpected: " + msg
|
|
51787
51919
|
});
|
|
51788
51920
|
}
|
|
51789
|
-
|
|
51921
|
+
_context1.next = 4;
|
|
51790
51922
|
break;
|
|
51791
51923
|
case 3:
|
|
51792
|
-
|
|
51793
|
-
|
|
51924
|
+
_context1.prev = 3;
|
|
51925
|
+
_t10 = _context1["catch"](1);
|
|
51794
51926
|
setLastTestResult({
|
|
51795
51927
|
status: "error",
|
|
51796
|
-
message: "Test threw: " + ((
|
|
51928
|
+
message: "Test threw: " + ((_t10 === null || _t10 === void 0 ? void 0 : _t10.message) || String(_t10))
|
|
51797
51929
|
});
|
|
51798
51930
|
case 4:
|
|
51799
51931
|
case "end":
|
|
51800
|
-
return
|
|
51932
|
+
return _context1.stop();
|
|
51801
51933
|
}
|
|
51802
|
-
},
|
|
51934
|
+
}, _callee1, null, [[1, 3]]);
|
|
51803
51935
|
}));
|
|
51804
51936
|
return function triggerTestJitPrompt() {
|
|
51805
|
-
return
|
|
51937
|
+
return _ref1.apply(this, arguments);
|
|
51806
51938
|
};
|
|
51807
51939
|
}();
|
|
51808
51940
|
var TEST_RESULT_STYLE = {
|
|
@@ -51903,10 +52035,10 @@ var DISABLE_COPY = {
|
|
|
51903
52035
|
* nesting entirely; the user keeps context and the warning is
|
|
51904
52036
|
* impossible to miss right where the toggle lives.
|
|
51905
52037
|
*/
|
|
51906
|
-
var ConfirmDisableInline = function ConfirmDisableInline(
|
|
51907
|
-
var pending =
|
|
51908
|
-
onCancel =
|
|
51909
|
-
onConfirm =
|
|
52038
|
+
var ConfirmDisableInline = function ConfirmDisableInline(_ref10) {
|
|
52039
|
+
var pending = _ref10.pending,
|
|
52040
|
+
onCancel = _ref10.onCancel,
|
|
52041
|
+
onConfirm = _ref10.onConfirm;
|
|
51910
52042
|
if (!pending) return null;
|
|
51911
52043
|
var copy = DISABLE_COPY[pending.flag];
|
|
51912
52044
|
if (!copy) return null;
|
|
@@ -55685,40 +55817,77 @@ var PermissionsTab = function PermissionsTab(_ref) {
|
|
|
55685
55817
|
return _ref6.apply(this, arguments);
|
|
55686
55818
|
};
|
|
55687
55819
|
}();
|
|
55688
|
-
var
|
|
55689
|
-
var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(widgetId) {
|
|
55690
|
-
var
|
|
55820
|
+
var deleteDomainItem = /*#__PURE__*/function () {
|
|
55821
|
+
var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(widgetId, domain, kind, value) {
|
|
55822
|
+
var row, next, _t5;
|
|
55691
55823
|
return _regeneratorRuntime.wrap(function (_context6) {
|
|
55692
55824
|
while (1) switch (_context6.prev = _context6.next) {
|
|
55693
55825
|
case 0:
|
|
55694
55826
|
_context6.prev = 0;
|
|
55695
|
-
|
|
55696
|
-
|
|
55827
|
+
row = rows.find(function (r) {
|
|
55828
|
+
return r.widgetId === widgetId;
|
|
55829
|
+
});
|
|
55830
|
+
if (!(!row || !row.granted)) {
|
|
55831
|
+
_context6.next = 1;
|
|
55832
|
+
break;
|
|
55833
|
+
}
|
|
55834
|
+
return _context6.abrupt("return");
|
|
55697
55835
|
case 1:
|
|
55836
|
+
next = applyDomainItemRemoval(row.granted, domain, kind, value);
|
|
55837
|
+
_context6.next = 2;
|
|
55838
|
+
return writeGrantOrRevoke(widgetId, next);
|
|
55839
|
+
case 2:
|
|
55698
55840
|
reload();
|
|
55699
|
-
_context6.next =
|
|
55841
|
+
_context6.next = 4;
|
|
55700
55842
|
break;
|
|
55701
|
-
case
|
|
55702
|
-
_context6.prev =
|
|
55843
|
+
case 3:
|
|
55844
|
+
_context6.prev = 3;
|
|
55703
55845
|
_t5 = _context6["catch"](0);
|
|
55704
55846
|
setError((_t5 === null || _t5 === void 0 ? void 0 : _t5.message) || String(_t5));
|
|
55705
|
-
case
|
|
55847
|
+
case 4:
|
|
55706
55848
|
case "end":
|
|
55707
55849
|
return _context6.stop();
|
|
55708
55850
|
}
|
|
55709
|
-
}, _callee6, null, [[0,
|
|
55851
|
+
}, _callee6, null, [[0, 3]]);
|
|
55710
55852
|
}));
|
|
55711
|
-
return function
|
|
55853
|
+
return function deleteDomainItem(_x12, _x13, _x14, _x15) {
|
|
55712
55854
|
return _ref7.apply(this, arguments);
|
|
55713
55855
|
};
|
|
55714
55856
|
}();
|
|
55715
|
-
var
|
|
55716
|
-
var _ref8 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(widgetId
|
|
55717
|
-
var
|
|
55857
|
+
var revokeWidget = /*#__PURE__*/function () {
|
|
55858
|
+
var _ref8 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(widgetId) {
|
|
55859
|
+
var _window$mainApi3, _window$mainApi3$revo, _t6;
|
|
55718
55860
|
return _regeneratorRuntime.wrap(function (_context7) {
|
|
55719
55861
|
while (1) switch (_context7.prev = _context7.next) {
|
|
55720
55862
|
case 0:
|
|
55721
55863
|
_context7.prev = 0;
|
|
55864
|
+
_context7.next = 1;
|
|
55865
|
+
return (_window$mainApi3 = window.mainApi) === null || _window$mainApi3 === void 0 || (_window$mainApi3 = _window$mainApi3.widgetMcp) === null || _window$mainApi3 === void 0 || (_window$mainApi3$revo = _window$mainApi3.revoke) === null || _window$mainApi3$revo === void 0 ? void 0 : _window$mainApi3$revo.call(_window$mainApi3, widgetId);
|
|
55866
|
+
case 1:
|
|
55867
|
+
reload();
|
|
55868
|
+
_context7.next = 3;
|
|
55869
|
+
break;
|
|
55870
|
+
case 2:
|
|
55871
|
+
_context7.prev = 2;
|
|
55872
|
+
_t6 = _context7["catch"](0);
|
|
55873
|
+
setError((_t6 === null || _t6 === void 0 ? void 0 : _t6.message) || String(_t6));
|
|
55874
|
+
case 3:
|
|
55875
|
+
case "end":
|
|
55876
|
+
return _context7.stop();
|
|
55877
|
+
}
|
|
55878
|
+
}, _callee7, null, [[0, 2]]);
|
|
55879
|
+
}));
|
|
55880
|
+
return function revokeWidget(_x16) {
|
|
55881
|
+
return _ref8.apply(this, arguments);
|
|
55882
|
+
};
|
|
55883
|
+
}();
|
|
55884
|
+
var revokeServer = /*#__PURE__*/function () {
|
|
55885
|
+
var _ref9 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8(widgetId, serverName) {
|
|
55886
|
+
var _row$granted, row, labels, _i3, _Object$keys2, _providers$label2, label, t, targets, _iterator2, _step2, _window$mainApi4, _window$mainApi4$revo, _label2, _t7, _t8;
|
|
55887
|
+
return _regeneratorRuntime.wrap(function (_context8) {
|
|
55888
|
+
while (1) switch (_context8.prev = _context8.next) {
|
|
55889
|
+
case 0:
|
|
55890
|
+
_context8.prev = 0;
|
|
55722
55891
|
row = rows.find(function (r) {
|
|
55723
55892
|
return r.widgetId === widgetId;
|
|
55724
55893
|
});
|
|
@@ -55732,46 +55901,46 @@ var PermissionsTab = function PermissionsTab(_ref) {
|
|
|
55732
55901
|
}
|
|
55733
55902
|
targets = labels.length > 0 ? labels : [serverName];
|
|
55734
55903
|
_iterator2 = _createForOfIteratorHelper$7(targets);
|
|
55735
|
-
|
|
55904
|
+
_context8.prev = 1;
|
|
55736
55905
|
_iterator2.s();
|
|
55737
55906
|
case 2:
|
|
55738
55907
|
if ((_step2 = _iterator2.n()).done) {
|
|
55739
|
-
|
|
55908
|
+
_context8.next = 4;
|
|
55740
55909
|
break;
|
|
55741
55910
|
}
|
|
55742
55911
|
_label2 = _step2.value;
|
|
55743
|
-
|
|
55912
|
+
_context8.next = 3;
|
|
55744
55913
|
return (_window$mainApi4 = window.mainApi) === null || _window$mainApi4 === void 0 || (_window$mainApi4 = _window$mainApi4.widgetMcp) === null || _window$mainApi4 === void 0 || (_window$mainApi4$revo = _window$mainApi4.revokeServer) === null || _window$mainApi4$revo === void 0 ? void 0 : _window$mainApi4$revo.call(_window$mainApi4, widgetId, _label2);
|
|
55745
55914
|
case 3:
|
|
55746
|
-
|
|
55915
|
+
_context8.next = 2;
|
|
55747
55916
|
break;
|
|
55748
55917
|
case 4:
|
|
55749
|
-
|
|
55918
|
+
_context8.next = 6;
|
|
55750
55919
|
break;
|
|
55751
55920
|
case 5:
|
|
55752
|
-
|
|
55753
|
-
|
|
55754
|
-
_iterator2.e(
|
|
55921
|
+
_context8.prev = 5;
|
|
55922
|
+
_t7 = _context8["catch"](1);
|
|
55923
|
+
_iterator2.e(_t7);
|
|
55755
55924
|
case 6:
|
|
55756
|
-
|
|
55925
|
+
_context8.prev = 6;
|
|
55757
55926
|
_iterator2.f();
|
|
55758
|
-
return
|
|
55927
|
+
return _context8.finish(6);
|
|
55759
55928
|
case 7:
|
|
55760
55929
|
reload();
|
|
55761
|
-
|
|
55930
|
+
_context8.next = 9;
|
|
55762
55931
|
break;
|
|
55763
55932
|
case 8:
|
|
55764
|
-
|
|
55765
|
-
|
|
55766
|
-
setError((
|
|
55933
|
+
_context8.prev = 8;
|
|
55934
|
+
_t8 = _context8["catch"](0);
|
|
55935
|
+
setError((_t8 === null || _t8 === void 0 ? void 0 : _t8.message) || String(_t8));
|
|
55767
55936
|
case 9:
|
|
55768
55937
|
case "end":
|
|
55769
|
-
return
|
|
55938
|
+
return _context8.stop();
|
|
55770
55939
|
}
|
|
55771
|
-
},
|
|
55940
|
+
}, _callee8, null, [[0, 8], [1, 5, 6, 7]]);
|
|
55772
55941
|
}));
|
|
55773
|
-
return function revokeServer(
|
|
55774
|
-
return
|
|
55942
|
+
return function revokeServer(_x17, _x18) {
|
|
55943
|
+
return _ref9.apply(this, arguments);
|
|
55775
55944
|
};
|
|
55776
55945
|
}();
|
|
55777
55946
|
|
|
@@ -55780,19 +55949,19 @@ var PermissionsTab = function PermissionsTab(_ref) {
|
|
|
55780
55949
|
// so a mid-loop failure surfaces clearly and the next reload picks up
|
|
55781
55950
|
// whatever did succeed.
|
|
55782
55951
|
var approveAllInDashboard = /*#__PURE__*/function () {
|
|
55783
|
-
var
|
|
55784
|
-
var _iterator3, _step3, _row$declared2, row, declared, _i4, _Object$keys3, serverName,
|
|
55785
|
-
return _regeneratorRuntime.wrap(function (
|
|
55786
|
-
while (1) switch (
|
|
55952
|
+
var _ref0 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee9() {
|
|
55953
|
+
var _iterator3, _step3, _row$declared2, row, declared, _i4, _Object$keys3, serverName, _t9;
|
|
55954
|
+
return _regeneratorRuntime.wrap(function (_context9) {
|
|
55955
|
+
while (1) switch (_context9.prev = _context9.next) {
|
|
55787
55956
|
case 0:
|
|
55788
55957
|
setBusy(true);
|
|
55789
|
-
|
|
55958
|
+
_context9.prev = 1;
|
|
55790
55959
|
_iterator3 = _createForOfIteratorHelper$7(filteredRows);
|
|
55791
|
-
|
|
55960
|
+
_context9.prev = 2;
|
|
55792
55961
|
_iterator3.s();
|
|
55793
55962
|
case 3:
|
|
55794
55963
|
if ((_step3 = _iterator3.n()).done) {
|
|
55795
|
-
|
|
55964
|
+
_context9.next = 7;
|
|
55796
55965
|
break;
|
|
55797
55966
|
}
|
|
55798
55967
|
row = _step3.value;
|
|
@@ -55800,95 +55969,95 @@ var PermissionsTab = function PermissionsTab(_ref) {
|
|
|
55800
55969
|
_i4 = 0, _Object$keys3 = Object.keys(declared);
|
|
55801
55970
|
case 4:
|
|
55802
55971
|
if (!(_i4 < _Object$keys3.length)) {
|
|
55803
|
-
|
|
55972
|
+
_context9.next = 6;
|
|
55804
55973
|
break;
|
|
55805
55974
|
}
|
|
55806
55975
|
serverName = _Object$keys3[_i4];
|
|
55807
|
-
|
|
55976
|
+
_context9.next = 5;
|
|
55808
55977
|
return toggleAllForServer(row.widgetId, serverName, true);
|
|
55809
55978
|
case 5:
|
|
55810
55979
|
_i4++;
|
|
55811
|
-
|
|
55980
|
+
_context9.next = 4;
|
|
55812
55981
|
break;
|
|
55813
55982
|
case 6:
|
|
55814
|
-
|
|
55983
|
+
_context9.next = 3;
|
|
55815
55984
|
break;
|
|
55816
55985
|
case 7:
|
|
55817
|
-
|
|
55986
|
+
_context9.next = 9;
|
|
55818
55987
|
break;
|
|
55819
55988
|
case 8:
|
|
55820
|
-
|
|
55821
|
-
|
|
55822
|
-
_iterator3.e(
|
|
55989
|
+
_context9.prev = 8;
|
|
55990
|
+
_t9 = _context9["catch"](2);
|
|
55991
|
+
_iterator3.e(_t9);
|
|
55823
55992
|
case 9:
|
|
55824
|
-
|
|
55993
|
+
_context9.prev = 9;
|
|
55825
55994
|
_iterator3.f();
|
|
55826
|
-
return
|
|
55995
|
+
return _context9.finish(9);
|
|
55827
55996
|
case 10:
|
|
55828
|
-
|
|
55997
|
+
_context9.prev = 10;
|
|
55829
55998
|
setBusy(false);
|
|
55830
|
-
return
|
|
55999
|
+
return _context9.finish(10);
|
|
55831
56000
|
case 11:
|
|
55832
56001
|
case "end":
|
|
55833
|
-
return
|
|
56002
|
+
return _context9.stop();
|
|
55834
56003
|
}
|
|
55835
|
-
},
|
|
56004
|
+
}, _callee9, null, [[1,, 10, 11], [2, 8, 9, 10]]);
|
|
55836
56005
|
}));
|
|
55837
56006
|
return function approveAllInDashboard() {
|
|
55838
|
-
return
|
|
56007
|
+
return _ref0.apply(this, arguments);
|
|
55839
56008
|
};
|
|
55840
56009
|
}();
|
|
55841
56010
|
var revokeAllInDashboard = /*#__PURE__*/function () {
|
|
55842
|
-
var
|
|
55843
|
-
var _iterator4, _step4, row, _window$mainApi5, _window$mainApi5$revo,
|
|
55844
|
-
return _regeneratorRuntime.wrap(function (
|
|
55845
|
-
while (1) switch (
|
|
56011
|
+
var _ref1 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee0() {
|
|
56012
|
+
var _iterator4, _step4, row, _window$mainApi5, _window$mainApi5$revo, _t0;
|
|
56013
|
+
return _regeneratorRuntime.wrap(function (_context0) {
|
|
56014
|
+
while (1) switch (_context0.prev = _context0.next) {
|
|
55846
56015
|
case 0:
|
|
55847
56016
|
setBusy(true);
|
|
55848
|
-
|
|
56017
|
+
_context0.prev = 1;
|
|
55849
56018
|
_iterator4 = _createForOfIteratorHelper$7(filteredRows);
|
|
55850
|
-
|
|
56019
|
+
_context0.prev = 2;
|
|
55851
56020
|
_iterator4.s();
|
|
55852
56021
|
case 3:
|
|
55853
56022
|
if ((_step4 = _iterator4.n()).done) {
|
|
55854
|
-
|
|
56023
|
+
_context0.next = 5;
|
|
55855
56024
|
break;
|
|
55856
56025
|
}
|
|
55857
56026
|
row = _step4.value;
|
|
55858
56027
|
if (!row.granted) {
|
|
55859
|
-
|
|
56028
|
+
_context0.next = 4;
|
|
55860
56029
|
break;
|
|
55861
56030
|
}
|
|
55862
|
-
|
|
56031
|
+
_context0.next = 4;
|
|
55863
56032
|
return (_window$mainApi5 = window.mainApi) === null || _window$mainApi5 === void 0 || (_window$mainApi5 = _window$mainApi5.widgetMcp) === null || _window$mainApi5 === void 0 || (_window$mainApi5$revo = _window$mainApi5.revoke) === null || _window$mainApi5$revo === void 0 ? void 0 : _window$mainApi5$revo.call(_window$mainApi5, row.widgetId);
|
|
55864
56033
|
case 4:
|
|
55865
|
-
|
|
56034
|
+
_context0.next = 3;
|
|
55866
56035
|
break;
|
|
55867
56036
|
case 5:
|
|
55868
|
-
|
|
56037
|
+
_context0.next = 7;
|
|
55869
56038
|
break;
|
|
55870
56039
|
case 6:
|
|
55871
|
-
|
|
55872
|
-
|
|
55873
|
-
_iterator4.e(
|
|
56040
|
+
_context0.prev = 6;
|
|
56041
|
+
_t0 = _context0["catch"](2);
|
|
56042
|
+
_iterator4.e(_t0);
|
|
55874
56043
|
case 7:
|
|
55875
|
-
|
|
56044
|
+
_context0.prev = 7;
|
|
55876
56045
|
_iterator4.f();
|
|
55877
|
-
return
|
|
56046
|
+
return _context0.finish(7);
|
|
55878
56047
|
case 8:
|
|
55879
56048
|
reload();
|
|
55880
56049
|
case 9:
|
|
55881
|
-
|
|
56050
|
+
_context0.prev = 9;
|
|
55882
56051
|
setBusy(false);
|
|
55883
|
-
return
|
|
56052
|
+
return _context0.finish(9);
|
|
55884
56053
|
case 10:
|
|
55885
56054
|
case "end":
|
|
55886
|
-
return
|
|
56055
|
+
return _context0.stop();
|
|
55887
56056
|
}
|
|
55888
|
-
},
|
|
56057
|
+
}, _callee0, null, [[1,, 9, 10], [2, 6, 7, 8]]);
|
|
55889
56058
|
}));
|
|
55890
56059
|
return function revokeAllInDashboard() {
|
|
55891
|
-
return
|
|
56060
|
+
return _ref1.apply(this, arguments);
|
|
55892
56061
|
};
|
|
55893
56062
|
}();
|
|
55894
56063
|
var totalDeclared = filteredRows.reduce(function (sum, r) {
|
|
@@ -55964,7 +56133,8 @@ var PermissionsTab = function PermissionsTab(_ref) {
|
|
|
55964
56133
|
onGrantManually: function onGrantManually() {},
|
|
55965
56134
|
onToggleTool: toggleTool,
|
|
55966
56135
|
onToggleAllForServer: toggleAllForServer,
|
|
55967
|
-
onDeletePath: deletePath
|
|
56136
|
+
onDeletePath: deletePath,
|
|
56137
|
+
onDeleteDomainItem: deleteDomainItem
|
|
55968
56138
|
}, row.widgetId);
|
|
55969
56139
|
})
|
|
55970
56140
|
})]
|
|
@@ -56509,7 +56679,7 @@ var DashboardConfigModal = function DashboardConfigModal(_ref) {
|
|
|
56509
56679
|
return /*#__PURE__*/jsx(Modal, {
|
|
56510
56680
|
isOpen: isOpen,
|
|
56511
56681
|
setIsOpen: handleCancel,
|
|
56512
|
-
width: "w-11/12
|
|
56682
|
+
width: "w-11/12 max-w-5xl",
|
|
56513
56683
|
height: "h-5/6",
|
|
56514
56684
|
children: /*#__PURE__*/jsxs("div", {
|
|
56515
56685
|
className: "flex flex-col h-full w-full rounded-lg overflow-clip border ".concat(panelStyles.backgroundColor || "", " ").concat(panelStyles.borderColor || "", " ").concat(panelStyles.textColor || ""),
|
|
@@ -56848,10 +57018,10 @@ function NotificationsTab(_ref4) {
|
|
|
56848
57018
|
children: wi["package"]
|
|
56849
57019
|
})]
|
|
56850
57020
|
}), /*#__PURE__*/jsx("div", {
|
|
56851
|
-
className: "flex flex-col
|
|
57021
|
+
className: "flex flex-col pl-2 border-l border-white/10 divide-y divide-white/5",
|
|
56852
57022
|
children: wi.notifications.map(function (notif) {
|
|
56853
57023
|
return /*#__PURE__*/jsxs("div", {
|
|
56854
|
-
className: "flex flex-row items-center justify-between py-
|
|
57024
|
+
className: "flex flex-row items-center justify-between gap-3 py-2 px-2 -mx-2 rounded hover:bg-white/5 transition-colors",
|
|
56855
57025
|
children: [/*#__PURE__*/jsxs("div", {
|
|
56856
57026
|
className: "flex flex-col",
|
|
56857
57027
|
children: [/*#__PURE__*/jsx("span", {
|
|
@@ -57007,7 +57177,7 @@ function ProvidersTab(_ref5) {
|
|
|
57007
57177
|
var isMissing = !row.resolvedProviderName;
|
|
57008
57178
|
var needsAttention = isRequired && isMissing;
|
|
57009
57179
|
return /*#__PURE__*/jsxs("div", {
|
|
57010
|
-
className: "flex flex-row items-center gap-3 py-2 px-2 rounded border-l-2 ".concat(needsAttention ? "bg-red-900 border-red-500" : "border-transparent"),
|
|
57180
|
+
className: "flex flex-row items-center gap-3 py-2 px-2 rounded border-l-2 transition-colors ".concat(needsAttention ? "bg-red-900 border-red-500" : "border-transparent hover:bg-white/5"),
|
|
57011
57181
|
children: [/*#__PURE__*/jsxs("div", {
|
|
57012
57182
|
className: "flex-1 min-w-0",
|
|
57013
57183
|
children: [/*#__PURE__*/jsxs("div", {
|