@trops/dash-core 0.1.114 → 0.1.115
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/electron/index.js +513 -151
- package/dist/electron/index.js.map +1 -1
- package/dist/index.esm.js +624 -275
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +623 -273
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
2
|
import * as DashReact from '@trops/dash-react';
|
|
3
|
-
import { isObject, ThemeContext, deepCopy, MainSection, getUUID, getStylesForItem, themeObjects, Heading, SearchInput, ButtonIcon, SubHeading3, InputText, Button, FontAwesomeIcon, Tag, Modal, Panel, Stepper, Paragraph, Heading3, MenuItem3, FormLabel, SelectMenu, CodeEditorInline, Sidebar, SettingsModal, SubHeading2, tailwindHeightFractions, Menu3, Panel3, DropdownPanel, MenuItem2, ButtonIcon2, DragComponent, ConfirmationModal, DropComponent, getStyleName, capitalizeFirstLetter, colorTypes, getCSSStyleForClassname, Panel2, Heading2, SubHeading, Paragraph2, Paragraph3, Button2, Button3, MenuItem, Tag2, Tag3, ButtonIcon3, DashPanel, colorNames, shades, themeVariants, Tabs3, DataList, Checkbox,
|
|
3
|
+
import { isObject, ThemeContext, deepCopy, MainSection, getUUID, getStylesForItem, themeObjects, Heading, SearchInput, ButtonIcon, SubHeading3, InputText, Button, FontAwesomeIcon, Tag, Modal, Panel, Stepper, Paragraph, Heading3, MenuItem3, FormLabel, SelectMenu, Switch, CodeEditorInline, Sidebar, SettingsModal, SubHeading2, tailwindHeightFractions, Menu3, Panel3, DropdownPanel, MenuItem2, ButtonIcon2, DragComponent, ConfirmationModal, DropComponent, getStyleName, capitalizeFirstLetter, colorTypes, getCSSStyleForClassname, Panel2, Heading2, SubHeading, Paragraph2, Paragraph3, Button2, Button3, MenuItem, Tag2, Tag3, ButtonIcon3, DashPanel, colorNames, shades, themeVariants, Tabs3, DataList, Checkbox, StatCard, Card, Tabs, Accordion, Alert, Toast, ProgressBar, Toggle, Breadcrumbs, Card2, Tabs2, Accordion2, Alert2, Toast2, ProgressBar2, Toggle2, Breadcrumbs2, Card3, Accordion3, Alert3, Toast3, ProgressBar3, Toggle3, Breadcrumbs3, TextArea, SelectInput, Icon2, AlgoliaSearchBox, CommandPalette, EmptyState, Navbar, withRouter, Menu as Menu$1 } from '@trops/dash-react';
|
|
4
4
|
export * from '@trops/dash-react';
|
|
5
5
|
export { ThemeContext } from '@trops/dash-react';
|
|
6
6
|
import _typeof from '@babel/runtime/helpers/typeof';
|
|
@@ -30,8 +30,8 @@ import algoliasearch from 'algoliasearch';
|
|
|
30
30
|
import { InstantSearch, Hits } from 'react-instantsearch-hooks-web';
|
|
31
31
|
import { Link } from 'react-router-dom';
|
|
32
32
|
|
|
33
|
-
function ownKeys$
|
|
34
|
-
function _objectSpread$
|
|
33
|
+
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; }
|
|
34
|
+
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; }
|
|
35
35
|
var event = {
|
|
36
36
|
list: new Map(),
|
|
37
37
|
// Map(1) { '<widget-UUID>' => { 'CustomSearchbar[10].searchQueryChanged': [] } }
|
|
@@ -93,7 +93,7 @@ var event = {
|
|
|
93
93
|
uuid: subscriber["uuid"]
|
|
94
94
|
};
|
|
95
95
|
if ("action" in subscriber && subscriber.action !== undefined) {
|
|
96
|
-
subscriber["action"](_objectSpread$
|
|
96
|
+
subscriber["action"](_objectSpread$A({}, objectToSend));
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
99
|
}
|
|
@@ -2533,8 +2533,8 @@ var DashboardWrapper = function DashboardWrapper(_ref) {
|
|
|
2533
2533
|
});
|
|
2534
2534
|
};
|
|
2535
2535
|
|
|
2536
|
-
function ownKeys$
|
|
2537
|
-
function _objectSpread$
|
|
2536
|
+
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; }
|
|
2537
|
+
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; }
|
|
2538
2538
|
var DashboardThemeProvider = function DashboardThemeProvider(_ref) {
|
|
2539
2539
|
var themeKey = _ref.themeKey,
|
|
2540
2540
|
children = _ref.children;
|
|
@@ -2546,7 +2546,7 @@ var DashboardThemeProvider = function DashboardThemeProvider(_ref) {
|
|
|
2546
2546
|
var dashboardTheme = themes[themeKey];
|
|
2547
2547
|
var themeValue = dashboardTheme ? dashboardTheme[themeVariant] || null : null;
|
|
2548
2548
|
if (!themeValue) return null;
|
|
2549
|
-
return _objectSpread$
|
|
2549
|
+
return _objectSpread$z(_objectSpread$z({}, parentContext), {}, {
|
|
2550
2550
|
currentTheme: themeValue,
|
|
2551
2551
|
currentThemeKey: themeKey,
|
|
2552
2552
|
theme: themeValue,
|
|
@@ -2564,8 +2564,8 @@ var DashboardThemeProvider = function DashboardThemeProvider(_ref) {
|
|
|
2564
2564
|
});
|
|
2565
2565
|
};
|
|
2566
2566
|
|
|
2567
|
-
function ownKeys$
|
|
2568
|
-
function _objectSpread$
|
|
2567
|
+
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; }
|
|
2568
|
+
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; }
|
|
2569
2569
|
var AppThemeScope = function AppThemeScope(_ref) {
|
|
2570
2570
|
var children = _ref.children;
|
|
2571
2571
|
var ctx = useContext(ThemeContext);
|
|
@@ -2573,7 +2573,7 @@ var AppThemeScope = function AppThemeScope(_ref) {
|
|
|
2573
2573
|
children: children
|
|
2574
2574
|
});
|
|
2575
2575
|
return /*#__PURE__*/jsx(ThemeContext.Provider, {
|
|
2576
|
-
value: _objectSpread$
|
|
2576
|
+
value: _objectSpread$y(_objectSpread$y({}, ctx), {}, {
|
|
2577
2577
|
currentTheme: ctx.appTheme,
|
|
2578
2578
|
currentThemeKey: ctx.appThemeKey,
|
|
2579
2579
|
theme: ctx.appTheme,
|
|
@@ -2685,8 +2685,8 @@ var LayoutContainer = function LayoutContainer(_ref) {
|
|
|
2685
2685
|
});
|
|
2686
2686
|
};
|
|
2687
2687
|
|
|
2688
|
-
function ownKeys$
|
|
2689
|
-
function _objectSpread$
|
|
2688
|
+
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; }
|
|
2689
|
+
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; }
|
|
2690
2690
|
function _createForOfIteratorHelper$a(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$a(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
2691
2691
|
function _unsupportedIterableToArray$a(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$a(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$a(r, a) : void 0; } }
|
|
2692
2692
|
function _arrayLikeToArray$a(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -2930,7 +2930,7 @@ function createLayoutFromTemplate(template) {
|
|
|
2930
2930
|
try {
|
|
2931
2931
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
2932
2932
|
var cell = _step.value;
|
|
2933
|
-
grid[cell.key] = _objectSpread$
|
|
2933
|
+
grid[cell.key] = _objectSpread$x({
|
|
2934
2934
|
component: null,
|
|
2935
2935
|
hide: cell.hide || false
|
|
2936
2936
|
}, cell.span ? {
|
|
@@ -8324,8 +8324,8 @@ var deepEqual = function deepEqual(a, b, opts) {
|
|
|
8324
8324
|
|
|
8325
8325
|
var deepEqual$1 = /*@__PURE__*/getDefaultExportFromCjs(deepEqual);
|
|
8326
8326
|
|
|
8327
|
-
function ownKeys$
|
|
8328
|
-
function _objectSpread$
|
|
8327
|
+
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; }
|
|
8328
|
+
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; }
|
|
8329
8329
|
var PanelEditItem = function PanelEditItem(_ref) {
|
|
8330
8330
|
var _ComponentManager$get;
|
|
8331
8331
|
var workspace = _ref.workspace,
|
|
@@ -8351,6 +8351,35 @@ var PanelEditItem = function PanelEditItem(_ref) {
|
|
|
8351
8351
|
var widgetConfig = itemSelected ? ComponentManager.config(itemSelected.component, itemSelected) : null;
|
|
8352
8352
|
var providerRequirements = (widgetConfig === null || widgetConfig === void 0 ? void 0 : widgetConfig.providers) || [];
|
|
8353
8353
|
var selectedProviders = (itemSelected === null || itemSelected === void 0 ? void 0 : itemSelected.selectedProviders) || {};
|
|
8354
|
+
var notificationDefs = (widgetConfig === null || widgetConfig === void 0 ? void 0 : widgetConfig.notifications) || [];
|
|
8355
|
+
|
|
8356
|
+
// Notification preferences for this widget instance
|
|
8357
|
+
var _useState7 = useState({}),
|
|
8358
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
8359
|
+
notifPrefs = _useState8[0],
|
|
8360
|
+
setNotifPrefs = _useState8[1];
|
|
8361
|
+
var widgetUuid = (itemSelected === null || itemSelected === void 0 ? void 0 : itemSelected.uuid) || (itemSelected === null || itemSelected === void 0 ? void 0 : itemSelected.uuidString);
|
|
8362
|
+
useEffect(function () {
|
|
8363
|
+
var _window$mainApi;
|
|
8364
|
+
if (notificationDefs.length > 0 && widgetUuid && (_window$mainApi = window.mainApi) !== null && _window$mainApi !== void 0 && (_window$mainApi = _window$mainApi.notifications) !== null && _window$mainApi !== void 0 && _window$mainApi.getPreferences) {
|
|
8365
|
+
window.mainApi.notifications.getPreferences().then(function (result) {
|
|
8366
|
+
var _result$instances;
|
|
8367
|
+
setNotifPrefs(((_result$instances = result.instances) === null || _result$instances === void 0 ? void 0 : _result$instances[widgetUuid]) || {});
|
|
8368
|
+
});
|
|
8369
|
+
}
|
|
8370
|
+
}, [widgetUuid, notificationDefs.length]);
|
|
8371
|
+
function handleNotifToggle(typeKey, value) {
|
|
8372
|
+
var _window$mainApi2;
|
|
8373
|
+
var updated = _objectSpread$w(_objectSpread$w({}, notifPrefs), {}, _defineProperty({}, typeKey, value));
|
|
8374
|
+
setNotifPrefs(updated);
|
|
8375
|
+
if ((_window$mainApi2 = window.mainApi) !== null && _window$mainApi2 !== void 0 && (_window$mainApi2 = _window$mainApi2.notifications) !== null && _window$mainApi2 !== void 0 && _window$mainApi2.setPreferences && widgetUuid) {
|
|
8376
|
+
window.mainApi.notifications.setPreferences(widgetUuid, _defineProperty({}, typeKey, value));
|
|
8377
|
+
}
|
|
8378
|
+
}
|
|
8379
|
+
function getNotifEnabled(typeKey, defaultEnabled) {
|
|
8380
|
+
if (typeof notifPrefs[typeKey] === "boolean") return notifPrefs[typeKey];
|
|
8381
|
+
return defaultEnabled;
|
|
8382
|
+
}
|
|
8354
8383
|
useEffect(function () {
|
|
8355
8384
|
if (deepEqual$1(item, itemSelected) === false) {
|
|
8356
8385
|
setItemSelected(function () {
|
|
@@ -8385,7 +8414,7 @@ var PanelEditItem = function PanelEditItem(_ref) {
|
|
|
8385
8414
|
var uuid = newItem.uuid || newItem.uuidString;
|
|
8386
8415
|
if (uuid) {
|
|
8387
8416
|
workspaceTemp.selectedProviders = workspaceTemp.selectedProviders || {};
|
|
8388
|
-
workspaceTemp.selectedProviders[uuid] = _objectSpread$
|
|
8417
|
+
workspaceTemp.selectedProviders[uuid] = _objectSpread$w(_objectSpread$w({}, workspaceTemp.selectedProviders[uuid] || {}), {}, _defineProperty({}, providerType, providerId));
|
|
8389
8418
|
}
|
|
8390
8419
|
onUpdate(newItem, workspaceTemp);
|
|
8391
8420
|
forceUpdate();
|
|
@@ -8514,7 +8543,7 @@ var PanelEditItem = function PanelEditItem(_ref) {
|
|
|
8514
8543
|
var _ref5 = _slicedToArray(_ref4, 2),
|
|
8515
8544
|
name = _ref5[0],
|
|
8516
8545
|
p = _ref5[1];
|
|
8517
|
-
return _objectSpread$
|
|
8546
|
+
return _objectSpread$w({
|
|
8518
8547
|
name: name
|
|
8519
8548
|
}, p);
|
|
8520
8549
|
});
|
|
@@ -8551,6 +8580,31 @@ var PanelEditItem = function PanelEditItem(_ref) {
|
|
|
8551
8580
|
})]
|
|
8552
8581
|
}, providerType);
|
|
8553
8582
|
})]
|
|
8583
|
+
}), notificationDefs.length > 0 && /*#__PURE__*/jsxs("div", {
|
|
8584
|
+
className: "flex flex-col space-y-3",
|
|
8585
|
+
children: [/*#__PURE__*/jsx(SubHeading3, {
|
|
8586
|
+
title: "Notifications",
|
|
8587
|
+
padding: false
|
|
8588
|
+
}), notificationDefs.map(function (notif) {
|
|
8589
|
+
return /*#__PURE__*/jsxs("div", {
|
|
8590
|
+
className: "flex flex-row items-center justify-between py-1",
|
|
8591
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
8592
|
+
className: "flex flex-col",
|
|
8593
|
+
children: [/*#__PURE__*/jsx("span", {
|
|
8594
|
+
className: "text-sm",
|
|
8595
|
+
children: notif.displayName
|
|
8596
|
+
}), notif.description && /*#__PURE__*/jsx("span", {
|
|
8597
|
+
className: "text-xs opacity-50",
|
|
8598
|
+
children: notif.description
|
|
8599
|
+
})]
|
|
8600
|
+
}), /*#__PURE__*/jsx(Switch, {
|
|
8601
|
+
checked: getNotifEnabled(notif.key, notif.defaultEnabled),
|
|
8602
|
+
onChange: function onChange(value) {
|
|
8603
|
+
return handleNotifToggle(notif.key, value);
|
|
8604
|
+
}
|
|
8605
|
+
})]
|
|
8606
|
+
}, notif.key);
|
|
8607
|
+
})]
|
|
8554
8608
|
})]
|
|
8555
8609
|
});
|
|
8556
8610
|
};
|
|
@@ -8559,8 +8613,8 @@ var _excluded$5 = ["rows", "cols"];
|
|
|
8559
8613
|
function _createForOfIteratorHelper$9(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$9(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
8560
8614
|
function _unsupportedIterableToArray$9(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$9(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$9(r, a) : void 0; } }
|
|
8561
8615
|
function _arrayLikeToArray$9(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
8562
|
-
function ownKeys$
|
|
8563
|
-
function _objectSpread$
|
|
8616
|
+
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; }
|
|
8617
|
+
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; }
|
|
8564
8618
|
var defaultGrid = {
|
|
8565
8619
|
rows: 1,
|
|
8566
8620
|
cols: 1,
|
|
@@ -8581,7 +8635,7 @@ function GridEditor(_ref) {
|
|
|
8581
8635
|
setGrid = _useState2[1];
|
|
8582
8636
|
var addRow = function addRow() {
|
|
8583
8637
|
var newRow = grid.rows;
|
|
8584
|
-
var newGrid = _objectSpread$
|
|
8638
|
+
var newGrid = _objectSpread$v(_objectSpread$v({}, grid), {}, {
|
|
8585
8639
|
rows: grid.rows + 1
|
|
8586
8640
|
});
|
|
8587
8641
|
for (var col = 0; col < grid.cols; col++) {
|
|
@@ -8596,7 +8650,7 @@ function GridEditor(_ref) {
|
|
|
8596
8650
|
};
|
|
8597
8651
|
var addColumn = function addColumn() {
|
|
8598
8652
|
var newCol = grid.cols;
|
|
8599
|
-
var newGrid = _objectSpread$
|
|
8653
|
+
var newGrid = _objectSpread$v(_objectSpread$v({}, grid), {}, {
|
|
8600
8654
|
cols: grid.cols + 1
|
|
8601
8655
|
});
|
|
8602
8656
|
for (var row = 0; row < grid.rows; row++) {
|
|
@@ -8629,8 +8683,8 @@ function GridEditor(_ref) {
|
|
|
8629
8683
|
});
|
|
8630
8684
|
}
|
|
8631
8685
|
if (grid[nextKey]) {
|
|
8632
|
-
var newGrid = _objectSpread$
|
|
8633
|
-
newGrid[currentKey] = _objectSpread$
|
|
8686
|
+
var newGrid = _objectSpread$v({}, grid);
|
|
8687
|
+
newGrid[currentKey] = _objectSpread$v(_objectSpread$v({}, newGrid[currentKey]), {}, {
|
|
8634
8688
|
colSpan: newGrid[currentKey].colSpan + 1
|
|
8635
8689
|
});
|
|
8636
8690
|
delete newGrid[nextKey];
|
|
@@ -8643,8 +8697,8 @@ function GridEditor(_ref) {
|
|
|
8643
8697
|
var currentKey = "".concat(row, ".").concat(col);
|
|
8644
8698
|
var belowKey = "".concat(row + 1, ".").concat(col);
|
|
8645
8699
|
if (grid[belowKey]) {
|
|
8646
|
-
var newGrid = _objectSpread$
|
|
8647
|
-
newGrid[currentKey] = _objectSpread$
|
|
8700
|
+
var newGrid = _objectSpread$v({}, grid);
|
|
8701
|
+
newGrid[currentKey] = _objectSpread$v(_objectSpread$v({}, newGrid[currentKey]), {}, {
|
|
8648
8702
|
rowSpan: newGrid[currentKey].rowSpan + 1
|
|
8649
8703
|
});
|
|
8650
8704
|
delete newGrid[belowKey];
|
|
@@ -8661,7 +8715,7 @@ function GridEditor(_ref) {
|
|
|
8661
8715
|
var splitCell = function splitCell(row, col) {
|
|
8662
8716
|
var key = "".concat(row, ".").concat(col);
|
|
8663
8717
|
var cell = grid[key];
|
|
8664
|
-
var newGrid = _objectSpread$
|
|
8718
|
+
var newGrid = _objectSpread$v({}, grid);
|
|
8665
8719
|
|
|
8666
8720
|
// we have to check the colspan, and since the colspan is greater than 1
|
|
8667
8721
|
// Only handle horizontal split if colSpan > 1
|
|
@@ -8677,13 +8731,13 @@ function GridEditor(_ref) {
|
|
|
8677
8731
|
var oldKey = "".concat(row, ".").concat(c);
|
|
8678
8732
|
var newKey = "".concat(row, ".").concat(c + 1);
|
|
8679
8733
|
if (newGrid[oldKey]) {
|
|
8680
|
-
newGrid[newKey] = _objectSpread$
|
|
8734
|
+
newGrid[newKey] = _objectSpread$v({}, newGrid[oldKey]);
|
|
8681
8735
|
delete newGrid[oldKey];
|
|
8682
8736
|
}
|
|
8683
8737
|
}
|
|
8684
8738
|
|
|
8685
8739
|
// Update the original cell's colSpan
|
|
8686
|
-
newGrid[key] = _objectSpread$
|
|
8740
|
+
newGrid[key] = _objectSpread$v(_objectSpread$v({}, cell), {}, {
|
|
8687
8741
|
colSpan: cell.colSpan - 1
|
|
8688
8742
|
});
|
|
8689
8743
|
|
|
@@ -8695,7 +8749,7 @@ function GridEditor(_ref) {
|
|
|
8695
8749
|
};
|
|
8696
8750
|
}
|
|
8697
8751
|
if (cell.rowSpan > 1) {
|
|
8698
|
-
newGrid[key] = _objectSpread$
|
|
8752
|
+
newGrid[key] = _objectSpread$v(_objectSpread$v({}, newGrid[key]), {}, {
|
|
8699
8753
|
rowSpan: cell.rowSpan - 1
|
|
8700
8754
|
});
|
|
8701
8755
|
newGrid["".concat(row + 1, ".").concat(col)] = {
|
|
@@ -8814,7 +8868,7 @@ function GridEditor(_ref) {
|
|
|
8814
8868
|
var fromKey = "".concat(from.row, ".").concat(from.col);
|
|
8815
8869
|
var toKey = "".concat(to.row, ".").concat(to.col);
|
|
8816
8870
|
if (fromKey === toKey) return;
|
|
8817
|
-
var newGrid = _objectSpread$
|
|
8871
|
+
var newGrid = _objectSpread$v({}, grid);
|
|
8818
8872
|
|
|
8819
8873
|
// Swap the cells
|
|
8820
8874
|
var temp = newGrid[fromKey];
|
|
@@ -8840,7 +8894,7 @@ function GridEditor(_ref) {
|
|
|
8840
8894
|
// console.log("Grid updated:", sequencedGrid);
|
|
8841
8895
|
}
|
|
8842
8896
|
function resetGridLayout() {
|
|
8843
|
-
var newGrid = _objectSpread$
|
|
8897
|
+
var newGrid = _objectSpread$v({}, defaultGrid);
|
|
8844
8898
|
setGrid(newGrid);
|
|
8845
8899
|
onUpdate(newGrid);
|
|
8846
8900
|
}
|
|
@@ -11094,8 +11148,8 @@ var WidgetIcon = function WidgetIcon(_ref) {
|
|
|
11094
11148
|
});
|
|
11095
11149
|
};
|
|
11096
11150
|
|
|
11097
|
-
function ownKeys$
|
|
11098
|
-
function _objectSpread$
|
|
11151
|
+
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; }
|
|
11152
|
+
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; }
|
|
11099
11153
|
var ProviderForm = function ProviderForm(_ref) {
|
|
11100
11154
|
var credentialSchema = _ref.credentialSchema,
|
|
11101
11155
|
_ref$initialValues = _ref.initialValues,
|
|
@@ -11140,14 +11194,14 @@ var ProviderForm = function ProviderForm(_ref) {
|
|
|
11140
11194
|
var oldKey = f.key;
|
|
11141
11195
|
if (oldKey && formData[oldKey] !== undefined) {
|
|
11142
11196
|
setFormData(function (fd) {
|
|
11143
|
-
var updated = _objectSpread$
|
|
11197
|
+
var updated = _objectSpread$u({}, fd);
|
|
11144
11198
|
var val = updated[oldKey];
|
|
11145
11199
|
delete updated[oldKey];
|
|
11146
11200
|
if (newKey.trim()) updated[newKey] = val;
|
|
11147
11201
|
return updated;
|
|
11148
11202
|
});
|
|
11149
11203
|
}
|
|
11150
|
-
return _objectSpread$
|
|
11204
|
+
return _objectSpread$u(_objectSpread$u({}, f), {}, {
|
|
11151
11205
|
key: newKey
|
|
11152
11206
|
});
|
|
11153
11207
|
});
|
|
@@ -11159,14 +11213,14 @@ var ProviderForm = function ProviderForm(_ref) {
|
|
|
11159
11213
|
});
|
|
11160
11214
|
if (field !== null && field !== void 0 && field.key) {
|
|
11161
11215
|
setFormData(function (prev) {
|
|
11162
|
-
return _objectSpread$
|
|
11216
|
+
return _objectSpread$u(_objectSpread$u({}, prev), {}, _defineProperty({}, field.key, value));
|
|
11163
11217
|
});
|
|
11164
11218
|
}
|
|
11165
11219
|
};
|
|
11166
11220
|
var handleDynamicSecretToggle = function handleDynamicSecretToggle(id) {
|
|
11167
11221
|
setDynamicFields(function (prev) {
|
|
11168
11222
|
return prev.map(function (f) {
|
|
11169
|
-
return f.id === id ? _objectSpread$
|
|
11223
|
+
return f.id === id ? _objectSpread$u(_objectSpread$u({}, f), {}, {
|
|
11170
11224
|
secret: !f.secret
|
|
11171
11225
|
}) : f;
|
|
11172
11226
|
});
|
|
@@ -11188,7 +11242,7 @@ var ProviderForm = function ProviderForm(_ref) {
|
|
|
11188
11242
|
});
|
|
11189
11243
|
if (field !== null && field !== void 0 && field.key) {
|
|
11190
11244
|
setFormData(function (prev) {
|
|
11191
|
-
var updated = _objectSpread$
|
|
11245
|
+
var updated = _objectSpread$u({}, prev);
|
|
11192
11246
|
delete updated[field.key];
|
|
11193
11247
|
return updated;
|
|
11194
11248
|
});
|
|
@@ -11230,13 +11284,13 @@ var ProviderForm = function ProviderForm(_ref) {
|
|
|
11230
11284
|
*/
|
|
11231
11285
|
var handleInputChange = function handleInputChange(fieldName, value) {
|
|
11232
11286
|
setFormData(function (prev) {
|
|
11233
|
-
return _objectSpread$
|
|
11287
|
+
return _objectSpread$u(_objectSpread$u({}, prev), {}, _defineProperty({}, fieldName, value));
|
|
11234
11288
|
});
|
|
11235
11289
|
|
|
11236
11290
|
// Clear error for this field if it was filled
|
|
11237
11291
|
if (errors[fieldName] && value !== null && value !== void 0 && value.trim()) {
|
|
11238
11292
|
setErrors(function (prev) {
|
|
11239
|
-
var newErrors = _objectSpread$
|
|
11293
|
+
var newErrors = _objectSpread$u({}, prev);
|
|
11240
11294
|
delete newErrors[fieldName];
|
|
11241
11295
|
return newErrors;
|
|
11242
11296
|
});
|
|
@@ -11274,7 +11328,7 @@ var ProviderForm = function ProviderForm(_ref) {
|
|
|
11274
11328
|
// Clear error if filled
|
|
11275
11329
|
if (errors.providerName && value !== null && value !== void 0 && value.trim()) {
|
|
11276
11330
|
setErrors(function (prev) {
|
|
11277
|
-
var newErrors = _objectSpread$
|
|
11331
|
+
var newErrors = _objectSpread$u({}, prev);
|
|
11278
11332
|
delete newErrors.providerName;
|
|
11279
11333
|
return newErrors;
|
|
11280
11334
|
});
|
|
@@ -11511,8 +11565,8 @@ var ToolSelector = function ToolSelector(_ref) {
|
|
|
11511
11565
|
});
|
|
11512
11566
|
};
|
|
11513
11567
|
|
|
11514
|
-
function ownKeys$
|
|
11515
|
-
function _objectSpread$
|
|
11568
|
+
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; }
|
|
11569
|
+
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; }
|
|
11516
11570
|
/**
|
|
11517
11571
|
* Shared MCP utility functions.
|
|
11518
11572
|
*
|
|
@@ -11640,7 +11694,7 @@ function buildMcpConfigFromOverrides(baseMcpConfig, envMappingRows, headerRows)
|
|
|
11640
11694
|
headerTemplate[name] = value;
|
|
11641
11695
|
}
|
|
11642
11696
|
});
|
|
11643
|
-
var config = _objectSpread$
|
|
11697
|
+
var config = _objectSpread$t({}, baseMcpConfig);
|
|
11644
11698
|
if (Object.keys(headerTemplate).length > 0) {
|
|
11645
11699
|
config.headerTemplate = headerTemplate;
|
|
11646
11700
|
} else {
|
|
@@ -11658,7 +11712,7 @@ function buildMcpConfigFromOverrides(baseMcpConfig, envMappingRows, headerRows)
|
|
|
11658
11712
|
envMapping[env] = cred;
|
|
11659
11713
|
}
|
|
11660
11714
|
});
|
|
11661
|
-
return _objectSpread$
|
|
11715
|
+
return _objectSpread$t(_objectSpread$t({}, baseMcpConfig), {}, {
|
|
11662
11716
|
envMapping: envMapping
|
|
11663
11717
|
});
|
|
11664
11718
|
}
|
|
@@ -11895,8 +11949,8 @@ function mcpJsonToFormState(jsonString, nextRowId) {
|
|
|
11895
11949
|
function _createForOfIteratorHelper$8(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$8(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
11896
11950
|
function _unsupportedIterableToArray$8(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$8(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$8(r, a) : void 0; } }
|
|
11897
11951
|
function _arrayLikeToArray$8(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
11898
|
-
function ownKeys$
|
|
11899
|
-
function _objectSpread$
|
|
11952
|
+
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; }
|
|
11953
|
+
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; }
|
|
11900
11954
|
var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
11901
11955
|
var isOpen = _ref.isOpen,
|
|
11902
11956
|
onClose = _ref.onClose,
|
|
@@ -12073,7 +12127,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
12073
12127
|
.map(function (entry) {
|
|
12074
12128
|
var widget = allWidgets[entry.widgetKey];
|
|
12075
12129
|
if (!widget) return null; // Widget no longer exists
|
|
12076
|
-
return _objectSpread$
|
|
12130
|
+
return _objectSpread$s(_objectSpread$s({
|
|
12077
12131
|
key: entry.widgetKey
|
|
12078
12132
|
}, widget), {}, {
|
|
12079
12133
|
savedProviders: entry.providers || {},
|
|
@@ -12224,7 +12278,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
12224
12278
|
// Get widgets from ComponentManager
|
|
12225
12279
|
var allWidgets = ComponentManager.map();
|
|
12226
12280
|
var widgetList = Object.keys(allWidgets).map(function (key) {
|
|
12227
|
-
return _objectSpread$
|
|
12281
|
+
return _objectSpread$s({
|
|
12228
12282
|
key: key
|
|
12229
12283
|
}, allWidgets[key]);
|
|
12230
12284
|
}).filter(function (widget) {
|
|
@@ -12454,7 +12508,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
12454
12508
|
setInlineCreateType(null);
|
|
12455
12509
|
setInlineCreateSchema({});
|
|
12456
12510
|
setInlineCreateError(null);
|
|
12457
|
-
setSelectedProviders(_objectSpread$
|
|
12511
|
+
setSelectedProviders(_objectSpread$s(_objectSpread$s({}, selectedProviders), {}, _defineProperty({}, providerType, providerName)));
|
|
12458
12512
|
}
|
|
12459
12513
|
};
|
|
12460
12514
|
var handleInlineProviderSubmit = function handleInlineProviderSubmit(formData) {
|
|
@@ -12475,7 +12529,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
12475
12529
|
|
|
12476
12530
|
// Auto-select the newly created provider
|
|
12477
12531
|
setSelectedProviders(function (prev) {
|
|
12478
|
-
return _objectSpread$
|
|
12532
|
+
return _objectSpread$s(_objectSpread$s({}, prev), {}, _defineProperty({}, providerType, providerName));
|
|
12479
12533
|
});
|
|
12480
12534
|
|
|
12481
12535
|
// Collapse the inline form
|
|
@@ -12529,11 +12583,11 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
12529
12583
|
};
|
|
12530
12584
|
var inlineHandleCredentialChange = function inlineHandleCredentialChange(fieldName, value) {
|
|
12531
12585
|
setInlineCredentialData(function (prev) {
|
|
12532
|
-
return _objectSpread$
|
|
12586
|
+
return _objectSpread$s(_objectSpread$s({}, prev), {}, _defineProperty({}, fieldName, value));
|
|
12533
12587
|
});
|
|
12534
12588
|
if (inlineFormErrors[fieldName] && value !== null && value !== void 0 && value.trim()) {
|
|
12535
12589
|
setInlineFormErrors(function (prev) {
|
|
12536
|
-
var next = _objectSpread$
|
|
12590
|
+
var next = _objectSpread$s({}, prev);
|
|
12537
12591
|
delete next[fieldName];
|
|
12538
12592
|
return next;
|
|
12539
12593
|
});
|
|
@@ -12626,7 +12680,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
12626
12680
|
refreshProviders();
|
|
12627
12681
|
}
|
|
12628
12682
|
setSelectedProviders(function (prev) {
|
|
12629
|
-
return _objectSpread$
|
|
12683
|
+
return _objectSpread$s(_objectSpread$s({}, prev), {}, _defineProperty({}, providerType, providerName));
|
|
12630
12684
|
});
|
|
12631
12685
|
|
|
12632
12686
|
// Reset stepper state
|
|
@@ -12647,7 +12701,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
12647
12701
|
});
|
|
12648
12702
|
};
|
|
12649
12703
|
var handleConfigChange = function handleConfigChange(key, value) {
|
|
12650
|
-
setUserConfigValues(_objectSpread$
|
|
12704
|
+
setUserConfigValues(_objectSpread$s(_objectSpread$s({}, userConfigValues), {}, _defineProperty({}, key, value)));
|
|
12651
12705
|
};
|
|
12652
12706
|
|
|
12653
12707
|
// Install a package from the registry
|
|
@@ -12737,7 +12791,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
12737
12791
|
|
|
12738
12792
|
// Phase 3: Save to recent widgets
|
|
12739
12793
|
saveToRecent(selectedWidget, selectedProviders, userConfigValues);
|
|
12740
|
-
onSelectWidget(_objectSpread$
|
|
12794
|
+
onSelectWidget(_objectSpread$s(_objectSpread$s({}, selectedWidget), {}, {
|
|
12741
12795
|
selectedProviders: selectedProviders,
|
|
12742
12796
|
// Pass to parent
|
|
12743
12797
|
userConfigValues: userConfigValues // Pass to parent
|
|
@@ -13375,7 +13429,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
13375
13429
|
setInlineProviderName(value);
|
|
13376
13430
|
if (inlineFormErrors.providerName && value !== null && value !== void 0 && value.trim()) {
|
|
13377
13431
|
setInlineFormErrors(function (prev) {
|
|
13378
|
-
var next = _objectSpread$
|
|
13432
|
+
var next = _objectSpread$s({}, prev);
|
|
13379
13433
|
delete next.providerName;
|
|
13380
13434
|
return next;
|
|
13381
13435
|
});
|
|
@@ -14412,8 +14466,8 @@ var ProviderSelector = function ProviderSelector(_ref) {
|
|
|
14412
14466
|
});
|
|
14413
14467
|
};
|
|
14414
14468
|
|
|
14415
|
-
function ownKeys$
|
|
14416
|
-
function _objectSpread$
|
|
14469
|
+
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; }
|
|
14470
|
+
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; }
|
|
14417
14471
|
var AdvancedMcpConfig = function AdvancedMcpConfig(_ref) {
|
|
14418
14472
|
var transport = _ref.transport,
|
|
14419
14473
|
envMappingRows = _ref.envMappingRows,
|
|
@@ -14442,7 +14496,7 @@ var AdvancedMcpConfig = function AdvancedMcpConfig(_ref) {
|
|
|
14442
14496
|
var updateEnvRow = function updateEnvRow(id, field, value) {
|
|
14443
14497
|
onEnvMappingRowsChange(function (prev) {
|
|
14444
14498
|
return prev.map(function (row) {
|
|
14445
|
-
return row.id === id ? _objectSpread$
|
|
14499
|
+
return row.id === id ? _objectSpread$r(_objectSpread$r({}, row), {}, _defineProperty({}, field, value)) : row;
|
|
14446
14500
|
});
|
|
14447
14501
|
});
|
|
14448
14502
|
};
|
|
@@ -14467,7 +14521,7 @@ var AdvancedMcpConfig = function AdvancedMcpConfig(_ref) {
|
|
|
14467
14521
|
var updateHeaderRow = function updateHeaderRow(id, field, value) {
|
|
14468
14522
|
onHeaderRowsChange(function (prev) {
|
|
14469
14523
|
return prev.map(function (row) {
|
|
14470
|
-
return row.id === id ? _objectSpread$
|
|
14524
|
+
return row.id === id ? _objectSpread$r(_objectSpread$r({}, row), {}, _defineProperty({}, field, value)) : row;
|
|
14471
14525
|
});
|
|
14472
14526
|
});
|
|
14473
14527
|
};
|
|
@@ -14616,8 +14670,8 @@ var AdvancedMcpConfig = function AdvancedMcpConfig(_ref) {
|
|
|
14616
14670
|
});
|
|
14617
14671
|
};
|
|
14618
14672
|
|
|
14619
|
-
function ownKeys$
|
|
14620
|
-
function _objectSpread$
|
|
14673
|
+
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; }
|
|
14674
|
+
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; }
|
|
14621
14675
|
var McpServerPicker = function McpServerPicker(_ref) {
|
|
14622
14676
|
var _testResult$tools;
|
|
14623
14677
|
var isOpen = _ref.isOpen,
|
|
@@ -14796,11 +14850,11 @@ var McpServerPicker = function McpServerPicker(_ref) {
|
|
|
14796
14850
|
// Handle credential field changes
|
|
14797
14851
|
var handleCredentialChange = function handleCredentialChange(fieldName, value) {
|
|
14798
14852
|
setCredentialData(function (prev) {
|
|
14799
|
-
return _objectSpread$
|
|
14853
|
+
return _objectSpread$q(_objectSpread$q({}, prev), {}, _defineProperty({}, fieldName, value));
|
|
14800
14854
|
});
|
|
14801
14855
|
if (formErrors[fieldName] && value !== null && value !== void 0 && value.trim()) {
|
|
14802
14856
|
setFormErrors(function (prev) {
|
|
14803
|
-
var next = _objectSpread$
|
|
14857
|
+
var next = _objectSpread$q({}, prev);
|
|
14804
14858
|
delete next[fieldName];
|
|
14805
14859
|
return next;
|
|
14806
14860
|
});
|
|
@@ -15138,7 +15192,7 @@ var McpServerPicker = function McpServerPicker(_ref) {
|
|
|
15138
15192
|
setProviderName(value);
|
|
15139
15193
|
if (formErrors.providerName && value !== null && value !== void 0 && value.trim()) {
|
|
15140
15194
|
setFormErrors(function (prev) {
|
|
15141
|
-
var next = _objectSpread$
|
|
15195
|
+
var next = _objectSpread$q({}, prev);
|
|
15142
15196
|
delete next.providerName;
|
|
15143
15197
|
return next;
|
|
15144
15198
|
});
|
|
@@ -15328,8 +15382,8 @@ var McpServerPicker = function McpServerPicker(_ref) {
|
|
|
15328
15382
|
});
|
|
15329
15383
|
};
|
|
15330
15384
|
|
|
15331
|
-
function ownKeys$
|
|
15332
|
-
function _objectSpread$
|
|
15385
|
+
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; }
|
|
15386
|
+
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; }
|
|
15333
15387
|
var USE_ENHANCED_WIDGET_SELECTOR = true; // Set to false to use original modal
|
|
15334
15388
|
|
|
15335
15389
|
/**
|
|
@@ -15375,7 +15429,7 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
15375
15429
|
var _ref3 = _slicedToArray(_ref2, 2),
|
|
15376
15430
|
id = _ref3[0],
|
|
15377
15431
|
p = _ref3[1];
|
|
15378
|
-
return _objectSpread$
|
|
15432
|
+
return _objectSpread$p(_objectSpread$p({}, p), {}, {
|
|
15379
15433
|
id: id,
|
|
15380
15434
|
name: p.name || id
|
|
15381
15435
|
});
|
|
@@ -15462,7 +15516,7 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
15462
15516
|
// so we use its layout to replace any corrupted grid data.
|
|
15463
15517
|
if (workspace && workspace["layout"]) {
|
|
15464
15518
|
var model = new DashboardModel(workspace);
|
|
15465
|
-
setCurrentWorkspace(_objectSpread$
|
|
15519
|
+
setCurrentWorkspace(_objectSpread$p(_objectSpread$p({}, workspace), {}, {
|
|
15466
15520
|
layout: model.layout
|
|
15467
15521
|
}));
|
|
15468
15522
|
} else {
|
|
@@ -15853,7 +15907,7 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
15853
15907
|
var uuid = widget.uuid || widget.uuidString;
|
|
15854
15908
|
if (uuid) {
|
|
15855
15909
|
newWorkspace.selectedProviders = newWorkspace.selectedProviders || {};
|
|
15856
|
-
newWorkspace.selectedProviders[uuid] = _objectSpread$
|
|
15910
|
+
newWorkspace.selectedProviders[uuid] = _objectSpread$p(_objectSpread$p({}, newWorkspace.selectedProviders[uuid] || {}), {}, _defineProperty({}, providerType, providerId));
|
|
15857
15911
|
}
|
|
15858
15912
|
setCurrentWorkspace(newWorkspace);
|
|
15859
15913
|
}
|
|
@@ -15988,7 +16042,7 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
15988
16042
|
try {
|
|
15989
16043
|
var config = ComponentManager.config(widgetKey);
|
|
15990
16044
|
if (!config) return;
|
|
15991
|
-
var widgetItem = _objectSpread$
|
|
16045
|
+
var widgetItem = _objectSpread$p(_objectSpread$p({}, config), {}, {
|
|
15992
16046
|
component: widgetKey,
|
|
15993
16047
|
key: widgetKey
|
|
15994
16048
|
});
|
|
@@ -16217,7 +16271,7 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
16217
16271
|
onSelectWidget: function onSelectWidget(widget) {
|
|
16218
16272
|
|
|
16219
16273
|
// Add component property from widget.key
|
|
16220
|
-
var widgetWithComponent = _objectSpread$
|
|
16274
|
+
var widgetWithComponent = _objectSpread$p(_objectSpread$p({}, widget), {}, {
|
|
16221
16275
|
component: widget.key
|
|
16222
16276
|
});
|
|
16223
16277
|
handleClickConfirmAdd(widgetWithComponent, dropdownTarget);
|
|
@@ -17841,8 +17895,8 @@ var MissingProviderPrompt = function MissingProviderPrompt(_ref) {
|
|
|
17841
17895
|
});
|
|
17842
17896
|
};
|
|
17843
17897
|
|
|
17844
|
-
function ownKeys$
|
|
17845
|
-
function _objectSpread$
|
|
17898
|
+
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; }
|
|
17899
|
+
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; }
|
|
17846
17900
|
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)); }
|
|
17847
17901
|
function _isNativeReflectConstruct$4() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$4 = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
17848
17902
|
var ProviderErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
@@ -17897,7 +17951,7 @@ var ProviderErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
|
17897
17951
|
_defineProperty(_this, "handleProviderSelect", function (providerType, providerName, credentials) {
|
|
17898
17952
|
|
|
17899
17953
|
// Update local selected providers state
|
|
17900
|
-
var updatedSelected = _objectSpread$
|
|
17954
|
+
var updatedSelected = _objectSpread$o(_objectSpread$o({}, _this.state.selectedProviders), {}, _defineProperty({}, providerType, providerName));
|
|
17901
17955
|
_this.setState({
|
|
17902
17956
|
selectedProviders: updatedSelected
|
|
17903
17957
|
}, function () {
|
|
@@ -17971,8 +18025,8 @@ var ProviderErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
|
17971
18025
|
}(Component);
|
|
17972
18026
|
_defineProperty(ProviderErrorBoundary, "contextType", ProviderContext);
|
|
17973
18027
|
|
|
17974
|
-
function ownKeys$
|
|
17975
|
-
function _objectSpread$
|
|
18028
|
+
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; }
|
|
18029
|
+
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; }
|
|
17976
18030
|
var withProviderDetection = function withProviderDetection(Component) {
|
|
17977
18031
|
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
17978
18032
|
_ref$requiredProvider = _ref.requiredProviders,
|
|
@@ -17997,7 +18051,7 @@ var withProviderDetection = function withProviderDetection(Component) {
|
|
|
17997
18051
|
onProviderSelect: onProviderSelect
|
|
17998
18052
|
});
|
|
17999
18053
|
}
|
|
18000
|
-
return /*#__PURE__*/jsx(Component, _objectSpread$
|
|
18054
|
+
return /*#__PURE__*/jsx(Component, _objectSpread$n({}, props));
|
|
18001
18055
|
};
|
|
18002
18056
|
};
|
|
18003
18057
|
|
|
@@ -18211,8 +18265,8 @@ var WidgetHelpers = /*#__PURE__*/function () {
|
|
|
18211
18265
|
}]);
|
|
18212
18266
|
}();
|
|
18213
18267
|
|
|
18214
|
-
function ownKeys$
|
|
18215
|
-
function _objectSpread$
|
|
18268
|
+
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; }
|
|
18269
|
+
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; }
|
|
18216
18270
|
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)); }
|
|
18217
18271
|
function _isNativeReflectConstruct$2() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$2 = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
18218
18272
|
var WidgetErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
@@ -18339,7 +18393,7 @@ var WidgetRenderer = function WidgetRenderer(_ref) {
|
|
|
18339
18393
|
|
|
18340
18394
|
// Build widgetData for WidgetContext — hooks read from this
|
|
18341
18395
|
var uuidString = getUUID(params.uuid);
|
|
18342
|
-
var widgetData = _objectSpread$
|
|
18396
|
+
var widgetData = _objectSpread$m(_objectSpread$m({}, params), {}, {
|
|
18343
18397
|
uuidString: uuidString,
|
|
18344
18398
|
providers: (config === null || config === void 0 ? void 0 : config.providers) || []
|
|
18345
18399
|
});
|
|
@@ -18367,7 +18421,7 @@ var WidgetRenderer = function WidgetRenderer(_ref) {
|
|
|
18367
18421
|
value: widgetContextValue,
|
|
18368
18422
|
children: /*#__PURE__*/jsx(WidgetErrorBoundary, {
|
|
18369
18423
|
widgetName: component,
|
|
18370
|
-
children: children === null ? /*#__PURE__*/jsx(WidgetComponent, _objectSpread$
|
|
18424
|
+
children: children === null ? /*#__PURE__*/jsx(WidgetComponent, _objectSpread$m(_objectSpread$m(_objectSpread$m({
|
|
18371
18425
|
id: "widget-nokids-".concat(widgetKey),
|
|
18372
18426
|
listen: function listen(listeners, handlers) {
|
|
18373
18427
|
return helpers.listen(listeners, handlers);
|
|
@@ -18380,7 +18434,7 @@ var WidgetRenderer = function WidgetRenderer(_ref) {
|
|
|
18380
18434
|
backgroundColor: bgColor,
|
|
18381
18435
|
widgetConfig: helpers.config(),
|
|
18382
18436
|
widgetEventNames: helpers.events()
|
|
18383
|
-
}), "widget-nokids-".concat(widgetKey)) : /*#__PURE__*/jsx(WidgetComponent, _objectSpread$
|
|
18437
|
+
}), "widget-nokids-".concat(widgetKey)) : /*#__PURE__*/jsx(WidgetComponent, _objectSpread$m(_objectSpread$m(_objectSpread$m({
|
|
18384
18438
|
listen: function listen(listeners, handlers) {
|
|
18385
18439
|
return helpers.listen(listeners, handlers);
|
|
18386
18440
|
},
|
|
@@ -18562,8 +18616,8 @@ var SIDEBAR_WIDGET_TYPE = "sidebar-widget";
|
|
|
18562
18616
|
function _createForOfIteratorHelper$6(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$6(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
18563
18617
|
function _unsupportedIterableToArray$6(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$6(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$6(r, a) : void 0; } }
|
|
18564
18618
|
function _arrayLikeToArray$6(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
18565
|
-
function ownKeys$
|
|
18566
|
-
function _objectSpread$
|
|
18619
|
+
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; }
|
|
18620
|
+
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; }
|
|
18567
18621
|
var DraggableCellBody = function DraggableCellBody(_ref) {
|
|
18568
18622
|
var cellNumber = _ref.cellNumber,
|
|
18569
18623
|
gridContainerId = _ref.gridContainerId,
|
|
@@ -18714,7 +18768,7 @@ var LayoutGridContainer = /*#__PURE__*/memo(function (_ref3) {
|
|
|
18714
18768
|
var _ref5 = _slicedToArray(_ref4, 2),
|
|
18715
18769
|
id = _ref5[0],
|
|
18716
18770
|
provider = _ref5[1];
|
|
18717
|
-
return _objectSpread$
|
|
18771
|
+
return _objectSpread$l({
|
|
18718
18772
|
id: id
|
|
18719
18773
|
}, provider);
|
|
18720
18774
|
}) : [];
|
|
@@ -19712,7 +19766,7 @@ var LayoutGridContainer = /*#__PURE__*/memo(function (_ref3) {
|
|
|
19712
19766
|
var widgetSpecificSelections = (workspace === null || workspace === void 0 || (_workspace$selectedPr = workspace.selectedProviders) === null || _workspace$selectedPr === void 0 ? void 0 : _workspace$selectedPr[id]) || {};
|
|
19713
19767
|
|
|
19714
19768
|
// Add provider-related props from workspace
|
|
19715
|
-
var itemWithProviders = _objectSpread$
|
|
19769
|
+
var itemWithProviders = _objectSpread$l(_objectSpread$l({}, item), {}, {
|
|
19716
19770
|
selectedProviders: widgetSpecificSelections,
|
|
19717
19771
|
onProviderSelect: onProviderSelect
|
|
19718
19772
|
});
|
|
@@ -21225,8 +21279,8 @@ function isWidgetResolvable(componentKey) {
|
|
|
21225
21279
|
// isMinOrderForItem
|
|
21226
21280
|
// }
|
|
21227
21281
|
|
|
21228
|
-
function ownKeys$
|
|
21229
|
-
function _objectSpread$
|
|
21282
|
+
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; }
|
|
21283
|
+
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; }
|
|
21230
21284
|
function _createForOfIteratorHelper$5(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$5(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
21231
21285
|
function _unsupportedIterableToArray$5(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$5(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$5(r, a) : void 0; } }
|
|
21232
21286
|
function _arrayLikeToArray$5(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -21382,7 +21436,7 @@ var LayoutModel = function LayoutModel(layoutItem, workspaceLayout, dashboardId)
|
|
|
21382
21436
|
|
|
21383
21437
|
// Merge user-entered config values (from EnhancedWidgetDropdown) into userPrefs
|
|
21384
21438
|
if ("userConfigValues" in obj && obj.userConfigValues) {
|
|
21385
|
-
layout.userPrefs = _objectSpread$
|
|
21439
|
+
layout.userPrefs = _objectSpread$k(_objectSpread$k({}, layout.userPrefs), obj.userConfigValues);
|
|
21386
21440
|
}
|
|
21387
21441
|
|
|
21388
21442
|
// Preserve provider selections for this widget
|
|
@@ -21883,6 +21937,13 @@ var ComponentConfigModel = function ComponentConfigModel() {
|
|
|
21883
21937
|
obj.icon = "icon" in obj ? obj["icon"] : null;
|
|
21884
21938
|
obj["package"] = "package" in obj ? obj["package"] : null;
|
|
21885
21939
|
obj.providers = "providers" in obj ? obj["providers"] : [];
|
|
21940
|
+
|
|
21941
|
+
/**
|
|
21942
|
+
* notifications
|
|
21943
|
+
* Notification types this widget can emit.
|
|
21944
|
+
* Each entry: { key, displayName, description, defaultEnabled }
|
|
21945
|
+
*/
|
|
21946
|
+
obj.notifications = "notifications" in obj ? obj["notifications"] : [];
|
|
21886
21947
|
return obj;
|
|
21887
21948
|
};
|
|
21888
21949
|
|
|
@@ -21896,8 +21957,8 @@ var MenuItemModel = function MenuItemModel() {
|
|
|
21896
21957
|
return m;
|
|
21897
21958
|
};
|
|
21898
21959
|
|
|
21899
|
-
function ownKeys$
|
|
21900
|
-
function _objectSpread$
|
|
21960
|
+
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; }
|
|
21961
|
+
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; }
|
|
21901
21962
|
/**
|
|
21902
21963
|
* A Model for a Workspace (Dashboard)
|
|
21903
21964
|
* The Dashboard in this instance is the entire Layout inclusive of the workspaces and widgets
|
|
@@ -23161,7 +23222,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
23161
23222
|
visibleCells.push({
|
|
23162
23223
|
row: r,
|
|
23163
23224
|
col: c,
|
|
23164
|
-
data: _objectSpread$
|
|
23225
|
+
data: _objectSpread$j({}, cell),
|
|
23165
23226
|
spanCol: ((_cell$span = cell.span) === null || _cell$span === void 0 ? void 0 : _cell$span.col) || 1,
|
|
23166
23227
|
spanRow: ((_cell$span2 = cell.span) === null || _cell$span2 === void 0 ? void 0 : _cell$span2.row) || 1
|
|
23167
23228
|
});
|
|
@@ -23183,7 +23244,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
23183
23244
|
var vc = _visibleCells[_i5];
|
|
23184
23245
|
var newCol = (vc.col - 1) * count + 1;
|
|
23185
23246
|
var _key7 = "".concat(vc.row, ".").concat(newCol);
|
|
23186
|
-
grid[_key7] = _objectSpread$
|
|
23247
|
+
grid[_key7] = _objectSpread$j(_objectSpread$j({}, vc.data), {}, {
|
|
23187
23248
|
hide: false,
|
|
23188
23249
|
span: {
|
|
23189
23250
|
row: vc.spanRow,
|
|
@@ -23258,7 +23319,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
23258
23319
|
_visibleCells2.push({
|
|
23259
23320
|
row: _r1,
|
|
23260
23321
|
col: _c10,
|
|
23261
|
-
data: _objectSpread$
|
|
23322
|
+
data: _objectSpread$j({}, _cell6),
|
|
23262
23323
|
spanRow: ((_cell6$span = _cell6.span) === null || _cell6$span === void 0 ? void 0 : _cell6$span.row) || 1,
|
|
23263
23324
|
spanCol: ((_cell6$span2 = _cell6.span) === null || _cell6$span2 === void 0 ? void 0 : _cell6$span2.col) || 1
|
|
23264
23325
|
});
|
|
@@ -23280,7 +23341,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
23280
23341
|
var _vc = _visibleCells3[_i9];
|
|
23281
23342
|
var newRow = (_vc.row - 1) * count + 1;
|
|
23282
23343
|
var _key10 = "".concat(newRow, ".").concat(_vc.col);
|
|
23283
|
-
grid[_key10] = _objectSpread$
|
|
23344
|
+
grid[_key10] = _objectSpread$j(_objectSpread$j({}, _vc.data), {}, {
|
|
23284
23345
|
hide: false,
|
|
23285
23346
|
span: {
|
|
23286
23347
|
row: _vc.spanRow * count,
|
|
@@ -24424,8 +24485,8 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
|
24424
24485
|
}]);
|
|
24425
24486
|
}(React__default.Component);
|
|
24426
24487
|
|
|
24427
|
-
function ownKeys$
|
|
24428
|
-
function _objectSpread$
|
|
24488
|
+
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; }
|
|
24489
|
+
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; }
|
|
24429
24490
|
|
|
24430
24491
|
/**
|
|
24431
24492
|
* useDashboard Hook
|
|
@@ -24481,7 +24542,7 @@ var useDashboard = function useDashboard() {
|
|
|
24481
24542
|
}
|
|
24482
24543
|
});
|
|
24483
24544
|
}
|
|
24484
|
-
return _objectSpread$
|
|
24545
|
+
return _objectSpread$i({
|
|
24485
24546
|
app: app,
|
|
24486
24547
|
dashboard: dashboard,
|
|
24487
24548
|
theme: theme
|
|
@@ -25212,8 +25273,74 @@ function useProviderClient(provider) {
|
|
|
25212
25273
|
};
|
|
25213
25274
|
}
|
|
25214
25275
|
|
|
25215
|
-
|
|
25216
|
-
|
|
25276
|
+
/**
|
|
25277
|
+
* useNotifications Hook
|
|
25278
|
+
*
|
|
25279
|
+
* Provides notification methods for widgets.
|
|
25280
|
+
* Validates that the notification type matches the widget's
|
|
25281
|
+
* declared notifications[] config before sending.
|
|
25282
|
+
*
|
|
25283
|
+
* @returns {Object}
|
|
25284
|
+
* - notify({ type, title, body, data?, silent?, urgency? }) — send a notification
|
|
25285
|
+
* - notificationTypes — array of notification configs from .dash.js
|
|
25286
|
+
*/
|
|
25287
|
+
var useNotifications = function useNotifications() {
|
|
25288
|
+
var _workspaceContext$wor;
|
|
25289
|
+
var widgetContext = useContext(WidgetContext);
|
|
25290
|
+
var workspaceContext = useContext(WorkspaceContext);
|
|
25291
|
+
if (!widgetContext) {
|
|
25292
|
+
throw new Error("useNotifications must be used within a Widget component. " + "Make sure your component is rendered inside <Widget> and within a DashboardWrapper.");
|
|
25293
|
+
}
|
|
25294
|
+
var _ref = widgetContext.widgetData || {},
|
|
25295
|
+
componentName = _ref.componentName,
|
|
25296
|
+
uuid = _ref.uuid,
|
|
25297
|
+
notifications = _ref.notifications;
|
|
25298
|
+
var workspaceId = workspaceContext === null || workspaceContext === void 0 || (_workspaceContext$wor = workspaceContext.workspaceData) === null || _workspaceContext$wor === void 0 ? void 0 : _workspaceContext$wor.id;
|
|
25299
|
+
var notify = useCallback(function (_ref2) {
|
|
25300
|
+
var type = _ref2.type,
|
|
25301
|
+
title = _ref2.title,
|
|
25302
|
+
body = _ref2.body,
|
|
25303
|
+
data = _ref2.data,
|
|
25304
|
+
silent = _ref2.silent,
|
|
25305
|
+
urgency = _ref2.urgency;
|
|
25306
|
+
if (!window.mainApi || !window.mainApi.notifications) {
|
|
25307
|
+
return Promise.resolve({
|
|
25308
|
+
success: false,
|
|
25309
|
+
reason: "no_api"
|
|
25310
|
+
});
|
|
25311
|
+
}
|
|
25312
|
+
|
|
25313
|
+
// Validate type against widget's declared notifications
|
|
25314
|
+
var declaredTypes = notifications || [];
|
|
25315
|
+
var isValid = declaredTypes.some(function (n) {
|
|
25316
|
+
return n.key === type;
|
|
25317
|
+
});
|
|
25318
|
+
if (!isValid) {
|
|
25319
|
+
return Promise.resolve({
|
|
25320
|
+
success: false,
|
|
25321
|
+
reason: "invalid_type"
|
|
25322
|
+
});
|
|
25323
|
+
}
|
|
25324
|
+
return window.mainApi.notifications.send({
|
|
25325
|
+
widgetName: componentName,
|
|
25326
|
+
widgetId: uuid,
|
|
25327
|
+
workspaceId: workspaceId,
|
|
25328
|
+
type: type,
|
|
25329
|
+
title: title,
|
|
25330
|
+
body: body,
|
|
25331
|
+
data: data,
|
|
25332
|
+
silent: silent,
|
|
25333
|
+
urgency: urgency
|
|
25334
|
+
});
|
|
25335
|
+
}, [componentName, uuid, workspaceId, notifications]);
|
|
25336
|
+
return {
|
|
25337
|
+
notify: notify,
|
|
25338
|
+
notificationTypes: notifications || []
|
|
25339
|
+
};
|
|
25340
|
+
};
|
|
25341
|
+
|
|
25342
|
+
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; }
|
|
25343
|
+
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; }
|
|
25217
25344
|
var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
25218
25345
|
var theme = _ref.theme,
|
|
25219
25346
|
themeVariant = _ref.themeVariant,
|
|
@@ -25262,13 +25389,13 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25262
25389
|
className: "flex flex-col space-y-4 p-4",
|
|
25263
25390
|
children: [/*#__PURE__*/jsxs("div", {
|
|
25264
25391
|
className: "flex flex-row bg-gray-900 p-4 space-x-4 rounded justify-between",
|
|
25265
|
-
children: [/*#__PURE__*/jsxs(Panel, _objectSpread$
|
|
25392
|
+
children: [/*#__PURE__*/jsxs(Panel, _objectSpread$h(_objectSpread$h({}, styles), {}, {
|
|
25266
25393
|
scrollable: false,
|
|
25267
25394
|
className: "rounded",
|
|
25268
25395
|
children: [/*#__PURE__*/jsx(Panel.Header, {
|
|
25269
25396
|
className: "text-xs uppercase font-bold",
|
|
25270
25397
|
children: "Panel"
|
|
25271
|
-
}), /*#__PURE__*/jsx(Panel.Body, _objectSpread$
|
|
25398
|
+
}), /*#__PURE__*/jsx(Panel.Body, _objectSpread$h(_objectSpread$h({}, styles), {}, {
|
|
25272
25399
|
onClick: function onClick() {
|
|
25273
25400
|
handleClickItem(themeObjects.PANEL, styles);
|
|
25274
25401
|
}
|
|
@@ -25276,14 +25403,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25276
25403
|
className: "text-xs uppercase font-light",
|
|
25277
25404
|
children: getCSSStyleForClassname("backgroundColor", themeObjects.PANEL)
|
|
25278
25405
|
})]
|
|
25279
|
-
})), /*#__PURE__*/jsxs(Panel2, _objectSpread$
|
|
25406
|
+
})), /*#__PURE__*/jsxs(Panel2, _objectSpread$h(_objectSpread$h({
|
|
25280
25407
|
className: "rounded"
|
|
25281
25408
|
}, styles2), {}, {
|
|
25282
25409
|
scrollable: false,
|
|
25283
25410
|
children: [/*#__PURE__*/jsx(Panel2.Header, {
|
|
25284
25411
|
className: "text-xs uppercase font-bold",
|
|
25285
25412
|
children: "Panel 2"
|
|
25286
|
-
}), /*#__PURE__*/jsx(Panel2.Body, _objectSpread$
|
|
25413
|
+
}), /*#__PURE__*/jsx(Panel2.Body, _objectSpread$h(_objectSpread$h({}, styles2), {}, {
|
|
25287
25414
|
onClick: function onClick() {
|
|
25288
25415
|
handleClickItem(themeObjects.PANEL_2, styles2);
|
|
25289
25416
|
}
|
|
@@ -25291,14 +25418,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25291
25418
|
className: "text-xs uppercase font-light",
|
|
25292
25419
|
children: getCSSStyleForClassname("backgroundColor", themeObjects.PANEL_2)
|
|
25293
25420
|
})]
|
|
25294
|
-
})), /*#__PURE__*/jsxs(Panel3, _objectSpread$
|
|
25421
|
+
})), /*#__PURE__*/jsxs(Panel3, _objectSpread$h(_objectSpread$h({
|
|
25295
25422
|
className: "rounded"
|
|
25296
25423
|
}, styles3), {}, {
|
|
25297
25424
|
scrollable: false,
|
|
25298
25425
|
children: [/*#__PURE__*/jsx(Panel3.Header, {
|
|
25299
25426
|
className: "text-xs uppercase font-bold",
|
|
25300
25427
|
children: "Panel 3"
|
|
25301
|
-
}), /*#__PURE__*/jsx(Panel3.Body, _objectSpread$
|
|
25428
|
+
}), /*#__PURE__*/jsx(Panel3.Body, _objectSpread$h(_objectSpread$h({}, styles3), {}, {
|
|
25302
25429
|
onClick: function onClick() {
|
|
25303
25430
|
handleClickItem(themeObjects.PANEL_3, styles3);
|
|
25304
25431
|
}
|
|
@@ -25307,68 +25434,68 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25307
25434
|
children: getCSSStyleForClassname("backgroundColor", themeObjects.PANEL_3)
|
|
25308
25435
|
})]
|
|
25309
25436
|
}))]
|
|
25310
|
-
}), /*#__PURE__*/jsxs(Panel, _objectSpread$
|
|
25437
|
+
}), /*#__PURE__*/jsxs(Panel, _objectSpread$h(_objectSpread$h({
|
|
25311
25438
|
className: "p-6 rounded border-4 space-y-4",
|
|
25312
25439
|
scrollable: false,
|
|
25313
25440
|
height: "h-fit"
|
|
25314
25441
|
}, styles), {}, {
|
|
25315
|
-
children: [/*#__PURE__*/jsx(Heading, _objectSpread$
|
|
25442
|
+
children: [/*#__PURE__*/jsx(Heading, _objectSpread$h(_objectSpread$h({
|
|
25316
25443
|
title: "Heading"
|
|
25317
25444
|
}, headingStyles), {}, {
|
|
25318
25445
|
padding: false,
|
|
25319
25446
|
onClick: function onClick() {
|
|
25320
25447
|
return handleClickItem(themeObjects.HEADING, headingStyles);
|
|
25321
25448
|
}
|
|
25322
|
-
})), /*#__PURE__*/jsx(Heading2, _objectSpread$
|
|
25449
|
+
})), /*#__PURE__*/jsx(Heading2, _objectSpread$h(_objectSpread$h({
|
|
25323
25450
|
title: "Heading 2"
|
|
25324
25451
|
}, heading2Styles), {}, {
|
|
25325
25452
|
padding: false,
|
|
25326
25453
|
onClick: function onClick() {
|
|
25327
25454
|
return handleClickItem(themeObjects.HEADING_2, heading2Styles);
|
|
25328
25455
|
}
|
|
25329
|
-
})), /*#__PURE__*/jsx(Heading3, _objectSpread$
|
|
25456
|
+
})), /*#__PURE__*/jsx(Heading3, _objectSpread$h(_objectSpread$h({
|
|
25330
25457
|
title: "Heading 3"
|
|
25331
25458
|
}, heading3Styles), {}, {
|
|
25332
25459
|
padding: false,
|
|
25333
25460
|
onClick: function onClick() {
|
|
25334
25461
|
return handleClickItem(themeObjects.HEADING_3, heading3Styles);
|
|
25335
25462
|
}
|
|
25336
|
-
})), /*#__PURE__*/jsx(SubHeading, _objectSpread$
|
|
25463
|
+
})), /*#__PURE__*/jsx(SubHeading, _objectSpread$h(_objectSpread$h({
|
|
25337
25464
|
title: "Subheading"
|
|
25338
25465
|
}, subHeadingStyles), {}, {
|
|
25339
25466
|
padding: false,
|
|
25340
25467
|
onClick: function onClick() {
|
|
25341
25468
|
return handleClickItem(themeObjects.SUBHEADING, subHeadingStyles);
|
|
25342
25469
|
}
|
|
25343
|
-
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$
|
|
25470
|
+
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$h(_objectSpread$h({
|
|
25344
25471
|
title: "Subheading 2"
|
|
25345
25472
|
}, subHeading2Styles), {}, {
|
|
25346
25473
|
padding: false,
|
|
25347
25474
|
onClick: function onClick() {
|
|
25348
25475
|
return handleClickItem(themeObjects.SUBHEADING_2, subHeading2Styles);
|
|
25349
25476
|
}
|
|
25350
|
-
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$
|
|
25477
|
+
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$h(_objectSpread$h({
|
|
25351
25478
|
title: "Subheading"
|
|
25352
25479
|
}, subHeading3Styles), {}, {
|
|
25353
25480
|
padding: false,
|
|
25354
25481
|
onClick: function onClick() {
|
|
25355
25482
|
return handleClickItem(themeObjects.SUBHEADING_3, subHeading3Styles);
|
|
25356
25483
|
}
|
|
25357
|
-
})), /*#__PURE__*/jsx(Paragraph, _objectSpread$
|
|
25484
|
+
})), /*#__PURE__*/jsx(Paragraph, _objectSpread$h(_objectSpread$h({
|
|
25358
25485
|
text: "The quick brown fox jumps over the lazy dog."
|
|
25359
25486
|
}, paragraphStyles), {}, {
|
|
25360
25487
|
padding: false,
|
|
25361
25488
|
onClick: function onClick() {
|
|
25362
25489
|
return handleClickItem(themeObjects.PARAGRAPH, paragraphStyles);
|
|
25363
25490
|
}
|
|
25364
|
-
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$
|
|
25491
|
+
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$h(_objectSpread$h({
|
|
25365
25492
|
text: "The quick brown fox jumps over the lazy dog."
|
|
25366
25493
|
}, paragraph2Styles), {}, {
|
|
25367
25494
|
padding: false,
|
|
25368
25495
|
onClick: function onClick() {
|
|
25369
25496
|
return handleClickItem(themeObjects.PARAGRAPH_2, paragraph2Styles);
|
|
25370
25497
|
}
|
|
25371
|
-
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$
|
|
25498
|
+
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$h(_objectSpread$h({
|
|
25372
25499
|
text: "The quick brown fox jumps over the lazy dog."
|
|
25373
25500
|
}, paragraph3Styles), {}, {
|
|
25374
25501
|
padding: false,
|
|
@@ -25377,19 +25504,19 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25377
25504
|
}
|
|
25378
25505
|
})), /*#__PURE__*/jsxs("div", {
|
|
25379
25506
|
className: "flex flex-row space-x-2 w-full",
|
|
25380
|
-
children: [/*#__PURE__*/jsx(Button, _objectSpread$
|
|
25507
|
+
children: [/*#__PURE__*/jsx(Button, _objectSpread$h(_objectSpread$h({
|
|
25381
25508
|
title: "Button"
|
|
25382
25509
|
}, buttonStyles), {}, {
|
|
25383
25510
|
onClick: function onClick() {
|
|
25384
25511
|
return handleClickItem(themeObjects.BUTTON, buttonStyles);
|
|
25385
25512
|
}
|
|
25386
|
-
})), /*#__PURE__*/jsx(Button2, _objectSpread$
|
|
25513
|
+
})), /*#__PURE__*/jsx(Button2, _objectSpread$h(_objectSpread$h({
|
|
25387
25514
|
title: "Button 2"
|
|
25388
25515
|
}, button2Styles), {}, {
|
|
25389
25516
|
onClick: function onClick() {
|
|
25390
25517
|
return handleClickItem(themeObjects.BUTTON_2, button2Styles);
|
|
25391
25518
|
}
|
|
25392
|
-
})), /*#__PURE__*/jsx(Button3, _objectSpread$
|
|
25519
|
+
})), /*#__PURE__*/jsx(Button3, _objectSpread$h(_objectSpread$h({
|
|
25393
25520
|
title: "Button 3"
|
|
25394
25521
|
}, button3Styles), {}, {
|
|
25395
25522
|
onClick: function onClick() {
|
|
@@ -25400,14 +25527,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25400
25527
|
className: "flex flex-row space-x-4 w-full h-fit",
|
|
25401
25528
|
children: [/*#__PURE__*/jsxs("div", {
|
|
25402
25529
|
className: "flex flex-row space-x-2",
|
|
25403
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25530
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25404
25531
|
text: "Button Icon",
|
|
25405
25532
|
icon: "pencil"
|
|
25406
25533
|
}, buttonIconStyles), {}, {
|
|
25407
25534
|
onClick: function onClick() {
|
|
25408
25535
|
return handleClickItem(themeObjects.BUTTON_ICON, buttonIconStyles);
|
|
25409
25536
|
}
|
|
25410
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25537
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25411
25538
|
icon: "pencil"
|
|
25412
25539
|
}, buttonIconStyles), {}, {
|
|
25413
25540
|
onClick: function onClick() {
|
|
@@ -25416,14 +25543,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25416
25543
|
}))]
|
|
25417
25544
|
}), /*#__PURE__*/jsxs("div", {
|
|
25418
25545
|
className: "flex flex-row space-x-2",
|
|
25419
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25546
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25420
25547
|
text: "Button Icon 2",
|
|
25421
25548
|
icon: "pencil"
|
|
25422
25549
|
}, buttonIconStyles), {}, {
|
|
25423
25550
|
onClick: function onClick() {
|
|
25424
25551
|
return handleClickItem(themeObjects.BUTTON_ICON_2, buttonIcon2Styles);
|
|
25425
25552
|
}
|
|
25426
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25553
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25427
25554
|
icon: "pencil"
|
|
25428
25555
|
}, buttonIconStyles), {}, {
|
|
25429
25556
|
onClick: function onClick() {
|
|
@@ -25432,14 +25559,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25432
25559
|
}))]
|
|
25433
25560
|
}), /*#__PURE__*/jsxs("div", {
|
|
25434
25561
|
className: "flex flex-row space-x-2",
|
|
25435
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25562
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25436
25563
|
text: "Button Icon 3",
|
|
25437
25564
|
icon: "pencil"
|
|
25438
25565
|
}, buttonIcon3Styles), {}, {
|
|
25439
25566
|
onClick: function onClick() {
|
|
25440
25567
|
return handleClickItem(themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
25441
25568
|
}
|
|
25442
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25569
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25443
25570
|
icon: "pencil"
|
|
25444
25571
|
}, buttonIcon3Styles), {}, {
|
|
25445
25572
|
onClick: function onClick() {
|
|
@@ -25449,17 +25576,17 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25449
25576
|
})]
|
|
25450
25577
|
}), /*#__PURE__*/jsxs("div", {
|
|
25451
25578
|
className: "flex flex-col space-y-2 w-full",
|
|
25452
|
-
children: [/*#__PURE__*/jsx(MenuItem, _objectSpread$
|
|
25579
|
+
children: [/*#__PURE__*/jsx(MenuItem, _objectSpread$h(_objectSpread$h({}, menuItemStyles), {}, {
|
|
25453
25580
|
onClick: function onClick() {
|
|
25454
25581
|
return handleClickItem(themeObjects.MENU_ITEM, menuItemStyles);
|
|
25455
25582
|
},
|
|
25456
25583
|
children: "Menu Item"
|
|
25457
|
-
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$
|
|
25584
|
+
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$h(_objectSpread$h({}, menuItem2Styles), {}, {
|
|
25458
25585
|
onClick: function onClick() {
|
|
25459
25586
|
return handleClickItem(themeObjects.MENU_ITEM_2, menuItem2Styles);
|
|
25460
25587
|
},
|
|
25461
25588
|
children: "Menu Item 2"
|
|
25462
|
-
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$
|
|
25589
|
+
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$h(_objectSpread$h({}, menuItem3Styles), {}, {
|
|
25463
25590
|
onClick: function onClick() {
|
|
25464
25591
|
return handleClickItem(themeObjects.MENU_ITEM_3, menuItem3Styles);
|
|
25465
25592
|
},
|
|
@@ -25467,21 +25594,21 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25467
25594
|
}))]
|
|
25468
25595
|
}), /*#__PURE__*/jsxs("div", {
|
|
25469
25596
|
className: "flex flex-row space-x-2 w-full",
|
|
25470
|
-
children: [/*#__PURE__*/jsx(Tag, _objectSpread$
|
|
25597
|
+
children: [/*#__PURE__*/jsx(Tag, _objectSpread$h(_objectSpread$h({
|
|
25471
25598
|
text: "Tag",
|
|
25472
25599
|
icon: "pencil"
|
|
25473
25600
|
}, tagStyles), {}, {
|
|
25474
25601
|
onClick: function onClick() {
|
|
25475
25602
|
return handleClickItem(themeObjects.TAG, tagStyles);
|
|
25476
25603
|
}
|
|
25477
|
-
})), /*#__PURE__*/jsx(Tag2, _objectSpread$
|
|
25604
|
+
})), /*#__PURE__*/jsx(Tag2, _objectSpread$h(_objectSpread$h({
|
|
25478
25605
|
text: "Tag 2",
|
|
25479
25606
|
icon: "pencil"
|
|
25480
25607
|
}, tag2Styles), {}, {
|
|
25481
25608
|
onClick: function onClick() {
|
|
25482
25609
|
return handleClickItem(themeObjects.TAG_2, tag2Styles);
|
|
25483
25610
|
}
|
|
25484
|
-
})), /*#__PURE__*/jsx(Tag3, _objectSpread$
|
|
25611
|
+
})), /*#__PURE__*/jsx(Tag3, _objectSpread$h(_objectSpread$h({
|
|
25485
25612
|
text: "Tag 3",
|
|
25486
25613
|
icon: "pencil"
|
|
25487
25614
|
}, tag3Styles), {}, {
|
|
@@ -25490,67 +25617,67 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25490
25617
|
}
|
|
25491
25618
|
}))]
|
|
25492
25619
|
})]
|
|
25493
|
-
})), /*#__PURE__*/jsxs(Panel2, _objectSpread$
|
|
25620
|
+
})), /*#__PURE__*/jsxs(Panel2, _objectSpread$h(_objectSpread$h({
|
|
25494
25621
|
className: "p-6 rounded border-4 space-y-4",
|
|
25495
25622
|
height: "h-fit"
|
|
25496
25623
|
}, styles2), {}, {
|
|
25497
|
-
children: [/*#__PURE__*/jsx(Heading, _objectSpread$
|
|
25624
|
+
children: [/*#__PURE__*/jsx(Heading, _objectSpread$h(_objectSpread$h({
|
|
25498
25625
|
title: "Heading"
|
|
25499
25626
|
}, headingStyles), {}, {
|
|
25500
25627
|
padding: false,
|
|
25501
25628
|
onClick: function onClick() {
|
|
25502
25629
|
return handleClickItem(themeObjects.HEADING, headingStyles);
|
|
25503
25630
|
}
|
|
25504
|
-
})), /*#__PURE__*/jsx(Heading2, _objectSpread$
|
|
25631
|
+
})), /*#__PURE__*/jsx(Heading2, _objectSpread$h(_objectSpread$h({
|
|
25505
25632
|
title: "Heading 2"
|
|
25506
25633
|
}, heading2Styles), {}, {
|
|
25507
25634
|
padding: false,
|
|
25508
25635
|
onClick: function onClick() {
|
|
25509
25636
|
return handleClickItem(themeObjects.HEADING_2, heading2Styles);
|
|
25510
25637
|
}
|
|
25511
|
-
})), /*#__PURE__*/jsx(Heading3, _objectSpread$
|
|
25638
|
+
})), /*#__PURE__*/jsx(Heading3, _objectSpread$h(_objectSpread$h({
|
|
25512
25639
|
title: "Heading 3"
|
|
25513
25640
|
}, heading3Styles), {}, {
|
|
25514
25641
|
padding: false,
|
|
25515
25642
|
onClick: function onClick() {
|
|
25516
25643
|
return handleClickItem(themeObjects.HEADING_3, heading3Styles);
|
|
25517
25644
|
}
|
|
25518
|
-
})), /*#__PURE__*/jsx(SubHeading, _objectSpread$
|
|
25645
|
+
})), /*#__PURE__*/jsx(SubHeading, _objectSpread$h(_objectSpread$h({
|
|
25519
25646
|
title: "Subheading"
|
|
25520
25647
|
}, subHeadingStyles), {}, {
|
|
25521
25648
|
padding: false,
|
|
25522
25649
|
onClick: function onClick() {
|
|
25523
25650
|
return handleClickItem(themeObjects.SUBHEADING, subHeadingStyles);
|
|
25524
25651
|
}
|
|
25525
|
-
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$
|
|
25652
|
+
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$h(_objectSpread$h({
|
|
25526
25653
|
title: "Subheading 2"
|
|
25527
25654
|
}, subHeading2Styles), {}, {
|
|
25528
25655
|
padding: false,
|
|
25529
25656
|
onClick: function onClick() {
|
|
25530
25657
|
return handleClickItem(themeObjects.SUBHEADING_2, subHeading2Styles);
|
|
25531
25658
|
}
|
|
25532
|
-
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$
|
|
25659
|
+
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$h(_objectSpread$h({
|
|
25533
25660
|
title: "Subheading"
|
|
25534
25661
|
}, subHeading3Styles), {}, {
|
|
25535
25662
|
padding: false,
|
|
25536
25663
|
onClick: function onClick() {
|
|
25537
25664
|
return handleClickItem(themeObjects.SUBHEADING_3, subHeading3Styles);
|
|
25538
25665
|
}
|
|
25539
|
-
})), /*#__PURE__*/jsx(Paragraph, _objectSpread$
|
|
25666
|
+
})), /*#__PURE__*/jsx(Paragraph, _objectSpread$h(_objectSpread$h({
|
|
25540
25667
|
text: "The quick brown fox jumps over the lazy dog."
|
|
25541
25668
|
}, paragraphStyles), {}, {
|
|
25542
25669
|
padding: false,
|
|
25543
25670
|
onClick: function onClick() {
|
|
25544
25671
|
return handleClickItem(themeObjects.PARAGRAPH, paragraphStyles);
|
|
25545
25672
|
}
|
|
25546
|
-
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$
|
|
25673
|
+
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$h(_objectSpread$h({
|
|
25547
25674
|
text: "The quick brown fox jumps over the lazy dog."
|
|
25548
25675
|
}, paragraph2Styles), {}, {
|
|
25549
25676
|
padding: false,
|
|
25550
25677
|
onClick: function onClick() {
|
|
25551
25678
|
return handleClickItem(themeObjects.PARAGRAPH_2, paragraph2Styles);
|
|
25552
25679
|
}
|
|
25553
|
-
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$
|
|
25680
|
+
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$h(_objectSpread$h({
|
|
25554
25681
|
text: "The quick brown fox jumps over the lazy dog."
|
|
25555
25682
|
}, paragraph3Styles), {}, {
|
|
25556
25683
|
padding: false,
|
|
@@ -25559,19 +25686,19 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25559
25686
|
}
|
|
25560
25687
|
})), /*#__PURE__*/jsxs("div", {
|
|
25561
25688
|
className: "flex flex-row space-x-2 w-full",
|
|
25562
|
-
children: [/*#__PURE__*/jsx(Button, _objectSpread$
|
|
25689
|
+
children: [/*#__PURE__*/jsx(Button, _objectSpread$h(_objectSpread$h({
|
|
25563
25690
|
title: "Button"
|
|
25564
25691
|
}, buttonStyles), {}, {
|
|
25565
25692
|
onClick: function onClick() {
|
|
25566
25693
|
return handleClickItem(themeObjects.BUTTON, buttonStyles);
|
|
25567
25694
|
}
|
|
25568
|
-
})), /*#__PURE__*/jsx(Button2, _objectSpread$
|
|
25695
|
+
})), /*#__PURE__*/jsx(Button2, _objectSpread$h(_objectSpread$h({
|
|
25569
25696
|
title: "Button 2"
|
|
25570
25697
|
}, button2Styles), {}, {
|
|
25571
25698
|
onClick: function onClick() {
|
|
25572
25699
|
return handleClickItem(themeObjects.BUTTON_2, button2Styles);
|
|
25573
25700
|
}
|
|
25574
|
-
})), /*#__PURE__*/jsx(Button3, _objectSpread$
|
|
25701
|
+
})), /*#__PURE__*/jsx(Button3, _objectSpread$h(_objectSpread$h({
|
|
25575
25702
|
title: "Button 3"
|
|
25576
25703
|
}, button3Styles), {}, {
|
|
25577
25704
|
onClick: function onClick() {
|
|
@@ -25582,14 +25709,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25582
25709
|
className: "flex flex-row space-x-4 w-full",
|
|
25583
25710
|
children: [/*#__PURE__*/jsxs("div", {
|
|
25584
25711
|
className: "flex flex-row space-x-2",
|
|
25585
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25712
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25586
25713
|
text: "Button Icon",
|
|
25587
25714
|
icon: "pencil"
|
|
25588
25715
|
}, buttonIconStyles), {}, {
|
|
25589
25716
|
onClick: function onClick() {
|
|
25590
25717
|
return handleClickItem(themeObjects.BUTTON_ICON, buttonIconStyles);
|
|
25591
25718
|
}
|
|
25592
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25719
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25593
25720
|
icon: "pencil"
|
|
25594
25721
|
}, buttonIconStyles), {}, {
|
|
25595
25722
|
onClick: function onClick() {
|
|
@@ -25598,14 +25725,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25598
25725
|
}))]
|
|
25599
25726
|
}), /*#__PURE__*/jsxs("div", {
|
|
25600
25727
|
className: "flex flex-row space-x-2",
|
|
25601
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25728
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25602
25729
|
text: "Button Icon 2",
|
|
25603
25730
|
icon: "pencil"
|
|
25604
25731
|
}, buttonIconStyles), {}, {
|
|
25605
25732
|
onClick: function onClick() {
|
|
25606
25733
|
return handleClickItem(themeObjects.BUTTON_ICON_2, buttonIcon2Styles);
|
|
25607
25734
|
}
|
|
25608
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25735
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25609
25736
|
icon: "pencil"
|
|
25610
25737
|
}, buttonIconStyles), {}, {
|
|
25611
25738
|
onClick: function onClick() {
|
|
@@ -25614,14 +25741,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25614
25741
|
}))]
|
|
25615
25742
|
}), /*#__PURE__*/jsxs("div", {
|
|
25616
25743
|
className: "flex flex-row space-x-2",
|
|
25617
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25744
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25618
25745
|
text: "Button Icon 3",
|
|
25619
25746
|
icon: "pencil"
|
|
25620
25747
|
}, buttonIcon3Styles), {}, {
|
|
25621
25748
|
onClick: function onClick() {
|
|
25622
25749
|
return handleClickItem(themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
25623
25750
|
}
|
|
25624
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25751
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25625
25752
|
icon: "pencil"
|
|
25626
25753
|
}, buttonIcon3Styles), {}, {
|
|
25627
25754
|
onClick: function onClick() {
|
|
@@ -25631,17 +25758,17 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25631
25758
|
})]
|
|
25632
25759
|
}), /*#__PURE__*/jsxs("div", {
|
|
25633
25760
|
className: "flex flex-col space-y-2 w-full",
|
|
25634
|
-
children: [/*#__PURE__*/jsx(MenuItem, _objectSpread$
|
|
25761
|
+
children: [/*#__PURE__*/jsx(MenuItem, _objectSpread$h(_objectSpread$h({}, menuItemStyles), {}, {
|
|
25635
25762
|
onClick: function onClick() {
|
|
25636
25763
|
return handleClickItem(themeObjects.MENU_ITEM, menuItemStyles);
|
|
25637
25764
|
},
|
|
25638
25765
|
children: "Menu Item"
|
|
25639
|
-
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$
|
|
25766
|
+
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$h(_objectSpread$h({}, menuItem2Styles), {}, {
|
|
25640
25767
|
onClick: function onClick() {
|
|
25641
25768
|
return handleClickItem(themeObjects.MENU_ITEM_2, menuItem2Styles);
|
|
25642
25769
|
},
|
|
25643
25770
|
children: "Menu Item 2"
|
|
25644
|
-
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$
|
|
25771
|
+
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$h(_objectSpread$h({}, menuItem3Styles), {}, {
|
|
25645
25772
|
onClick: function onClick() {
|
|
25646
25773
|
return handleClickItem(themeObjects.MENU_ITEM_3, menuItem3Styles);
|
|
25647
25774
|
},
|
|
@@ -25649,21 +25776,21 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25649
25776
|
}))]
|
|
25650
25777
|
}), /*#__PURE__*/jsxs("div", {
|
|
25651
25778
|
className: "flex flex-row space-x-2 w-full",
|
|
25652
|
-
children: [/*#__PURE__*/jsx(Tag, _objectSpread$
|
|
25779
|
+
children: [/*#__PURE__*/jsx(Tag, _objectSpread$h(_objectSpread$h({
|
|
25653
25780
|
text: "Tag",
|
|
25654
25781
|
icon: "pencil"
|
|
25655
25782
|
}, tagStyles), {}, {
|
|
25656
25783
|
onClick: function onClick() {
|
|
25657
25784
|
return handleClickItem(themeObjects.TAG, tagStyles);
|
|
25658
25785
|
}
|
|
25659
|
-
})), /*#__PURE__*/jsx(Tag2, _objectSpread$
|
|
25786
|
+
})), /*#__PURE__*/jsx(Tag2, _objectSpread$h(_objectSpread$h({
|
|
25660
25787
|
text: "Tag 2",
|
|
25661
25788
|
icon: "pencil"
|
|
25662
25789
|
}, tag2Styles), {}, {
|
|
25663
25790
|
onClick: function onClick() {
|
|
25664
25791
|
return handleClickItem(themeObjects.TAG_2, tag2Styles);
|
|
25665
25792
|
}
|
|
25666
|
-
})), /*#__PURE__*/jsx(Tag3, _objectSpread$
|
|
25793
|
+
})), /*#__PURE__*/jsx(Tag3, _objectSpread$h(_objectSpread$h({
|
|
25667
25794
|
text: "Tag 3",
|
|
25668
25795
|
icon: "pencil"
|
|
25669
25796
|
}, tag3Styles), {}, {
|
|
@@ -25672,68 +25799,68 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25672
25799
|
}
|
|
25673
25800
|
}))]
|
|
25674
25801
|
})]
|
|
25675
|
-
})), /*#__PURE__*/jsxs(Panel3, _objectSpread$
|
|
25802
|
+
})), /*#__PURE__*/jsxs(Panel3, _objectSpread$h(_objectSpread$h({
|
|
25676
25803
|
className: "p-6 rounded border-4 space-y-4"
|
|
25677
25804
|
}, styles3), {}, {
|
|
25678
25805
|
padding: false,
|
|
25679
25806
|
height: "h-fit",
|
|
25680
|
-
children: [/*#__PURE__*/jsx(Heading, _objectSpread$
|
|
25807
|
+
children: [/*#__PURE__*/jsx(Heading, _objectSpread$h(_objectSpread$h({
|
|
25681
25808
|
title: "Heading"
|
|
25682
25809
|
}, headingStyles), {}, {
|
|
25683
25810
|
padding: false,
|
|
25684
25811
|
onClick: function onClick() {
|
|
25685
25812
|
return handleClickItem(themeObjects.HEADING, headingStyles);
|
|
25686
25813
|
}
|
|
25687
|
-
})), /*#__PURE__*/jsx(Heading2, _objectSpread$
|
|
25814
|
+
})), /*#__PURE__*/jsx(Heading2, _objectSpread$h(_objectSpread$h({
|
|
25688
25815
|
title: "Heading 2"
|
|
25689
25816
|
}, heading2Styles), {}, {
|
|
25690
25817
|
padding: false,
|
|
25691
25818
|
onClick: function onClick() {
|
|
25692
25819
|
return handleClickItem(themeObjects.HEADING_2, heading2Styles);
|
|
25693
25820
|
}
|
|
25694
|
-
})), /*#__PURE__*/jsx(Heading3, _objectSpread$
|
|
25821
|
+
})), /*#__PURE__*/jsx(Heading3, _objectSpread$h(_objectSpread$h({
|
|
25695
25822
|
title: "Heading 3"
|
|
25696
25823
|
}, heading3Styles), {}, {
|
|
25697
25824
|
padding: false,
|
|
25698
25825
|
onClick: function onClick() {
|
|
25699
25826
|
return handleClickItem(themeObjects.HEADING_3, heading3Styles);
|
|
25700
25827
|
}
|
|
25701
|
-
})), /*#__PURE__*/jsx(SubHeading, _objectSpread$
|
|
25828
|
+
})), /*#__PURE__*/jsx(SubHeading, _objectSpread$h(_objectSpread$h({
|
|
25702
25829
|
title: "Subheading"
|
|
25703
25830
|
}, subHeadingStyles), {}, {
|
|
25704
25831
|
padding: false,
|
|
25705
25832
|
onClick: function onClick() {
|
|
25706
25833
|
return handleClickItem(themeObjects.SUBHEADING, subHeadingStyles);
|
|
25707
25834
|
}
|
|
25708
|
-
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$
|
|
25835
|
+
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$h(_objectSpread$h({
|
|
25709
25836
|
title: "Subheading 2"
|
|
25710
25837
|
}, subHeading2Styles), {}, {
|
|
25711
25838
|
padding: false,
|
|
25712
25839
|
onClick: function onClick() {
|
|
25713
25840
|
return handleClickItem(themeObjects.SUBHEADING_2, subHeading2Styles);
|
|
25714
25841
|
}
|
|
25715
|
-
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$
|
|
25842
|
+
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$h(_objectSpread$h({
|
|
25716
25843
|
title: "Subheading"
|
|
25717
25844
|
}, subHeading3Styles), {}, {
|
|
25718
25845
|
padding: false,
|
|
25719
25846
|
onClick: function onClick() {
|
|
25720
25847
|
return handleClickItem(themeObjects.SUBHEADING_3, subHeading3Styles);
|
|
25721
25848
|
}
|
|
25722
|
-
})), /*#__PURE__*/jsx(Paragraph, _objectSpread$
|
|
25849
|
+
})), /*#__PURE__*/jsx(Paragraph, _objectSpread$h(_objectSpread$h({
|
|
25723
25850
|
text: "The quick brown fox jumps over the lazy dog."
|
|
25724
25851
|
}, paragraphStyles), {}, {
|
|
25725
25852
|
padding: false,
|
|
25726
25853
|
onClick: function onClick() {
|
|
25727
25854
|
return handleClickItem(themeObjects.PARAGRAPH, paragraphStyles);
|
|
25728
25855
|
}
|
|
25729
|
-
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$
|
|
25856
|
+
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$h(_objectSpread$h({
|
|
25730
25857
|
text: "The quick brown fox jumps over the lazy dog."
|
|
25731
25858
|
}, paragraph2Styles), {}, {
|
|
25732
25859
|
padding: false,
|
|
25733
25860
|
onClick: function onClick() {
|
|
25734
25861
|
return handleClickItem(themeObjects.PARAGRAPH, paragraph2Styles);
|
|
25735
25862
|
}
|
|
25736
|
-
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$
|
|
25863
|
+
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$h(_objectSpread$h({
|
|
25737
25864
|
text: "The quick brown fox jumps over the lazy dog."
|
|
25738
25865
|
}, paragraph3Styles), {}, {
|
|
25739
25866
|
padding: false,
|
|
@@ -25742,19 +25869,19 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25742
25869
|
}
|
|
25743
25870
|
})), /*#__PURE__*/jsxs("div", {
|
|
25744
25871
|
className: "flex flex-row space-x-2 w-full",
|
|
25745
|
-
children: [/*#__PURE__*/jsx(Button, _objectSpread$
|
|
25872
|
+
children: [/*#__PURE__*/jsx(Button, _objectSpread$h(_objectSpread$h({
|
|
25746
25873
|
title: "Button"
|
|
25747
25874
|
}, buttonStyles), {}, {
|
|
25748
25875
|
onClick: function onClick() {
|
|
25749
25876
|
return handleClickItem(themeObjects.BUTTON, buttonStyles);
|
|
25750
25877
|
}
|
|
25751
|
-
})), /*#__PURE__*/jsx(Button2, _objectSpread$
|
|
25878
|
+
})), /*#__PURE__*/jsx(Button2, _objectSpread$h(_objectSpread$h({
|
|
25752
25879
|
title: "Button 2"
|
|
25753
25880
|
}, button2Styles), {}, {
|
|
25754
25881
|
onClick: function onClick() {
|
|
25755
25882
|
return handleClickItem(themeObjects.BUTTON_2, button2Styles);
|
|
25756
25883
|
}
|
|
25757
|
-
})), /*#__PURE__*/jsx(Button3, _objectSpread$
|
|
25884
|
+
})), /*#__PURE__*/jsx(Button3, _objectSpread$h(_objectSpread$h({
|
|
25758
25885
|
title: "Button 3"
|
|
25759
25886
|
}, button3Styles), {}, {
|
|
25760
25887
|
onClick: function onClick() {
|
|
@@ -25765,14 +25892,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25765
25892
|
className: "flex flex-row space-x-4 w-full",
|
|
25766
25893
|
children: [/*#__PURE__*/jsxs("div", {
|
|
25767
25894
|
className: "flex flex-row space-x-2",
|
|
25768
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25895
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25769
25896
|
text: "Button Icon",
|
|
25770
25897
|
icon: "pencil"
|
|
25771
25898
|
}, buttonIconStyles), {}, {
|
|
25772
25899
|
onClick: function onClick() {
|
|
25773
25900
|
return handleClickItem(themeObjects.BUTTON_ICON, buttonIconStyles);
|
|
25774
25901
|
}
|
|
25775
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25902
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25776
25903
|
icon: "pencil"
|
|
25777
25904
|
}, buttonIconStyles), {}, {
|
|
25778
25905
|
onClick: function onClick() {
|
|
@@ -25781,14 +25908,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25781
25908
|
}))]
|
|
25782
25909
|
}), /*#__PURE__*/jsxs("div", {
|
|
25783
25910
|
className: "flex flex-row space-x-2",
|
|
25784
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25911
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25785
25912
|
text: "Button Icon 2",
|
|
25786
25913
|
icon: "pencil"
|
|
25787
25914
|
}, buttonIconStyles), {}, {
|
|
25788
25915
|
onClick: function onClick() {
|
|
25789
25916
|
return handleClickItem(themeObjects.BUTTON_ICON_2, buttonIcon2Styles);
|
|
25790
25917
|
}
|
|
25791
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25918
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25792
25919
|
icon: "pencil"
|
|
25793
25920
|
}, buttonIconStyles), {}, {
|
|
25794
25921
|
onClick: function onClick() {
|
|
@@ -25797,14 +25924,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25797
25924
|
}))]
|
|
25798
25925
|
}), /*#__PURE__*/jsxs("div", {
|
|
25799
25926
|
className: "flex flex-row space-x-2",
|
|
25800
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25927
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25801
25928
|
text: "Button Icon 3",
|
|
25802
25929
|
icon: "pencil"
|
|
25803
25930
|
}, buttonIcon3Styles), {}, {
|
|
25804
25931
|
onClick: function onClick() {
|
|
25805
25932
|
return handleClickItem(themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
25806
25933
|
}
|
|
25807
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25934
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25808
25935
|
icon: "pencil"
|
|
25809
25936
|
}, buttonIcon3Styles), {}, {
|
|
25810
25937
|
onClick: function onClick() {
|
|
@@ -25814,17 +25941,17 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25814
25941
|
})]
|
|
25815
25942
|
}), /*#__PURE__*/jsxs("div", {
|
|
25816
25943
|
className: "flex flex-col space-y-2 w-full",
|
|
25817
|
-
children: [/*#__PURE__*/jsx(MenuItem, _objectSpread$
|
|
25944
|
+
children: [/*#__PURE__*/jsx(MenuItem, _objectSpread$h(_objectSpread$h({}, menuItemStyles), {}, {
|
|
25818
25945
|
onClick: function onClick() {
|
|
25819
25946
|
return handleClickItem(themeObjects.MENU_ITEM, menuItemStyles);
|
|
25820
25947
|
},
|
|
25821
25948
|
children: "Menu Item"
|
|
25822
|
-
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$
|
|
25949
|
+
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$h(_objectSpread$h({}, menuItem2Styles), {}, {
|
|
25823
25950
|
onClick: function onClick() {
|
|
25824
25951
|
return handleClickItem(themeObjects.MENU_ITEM_2, menuItem2Styles);
|
|
25825
25952
|
},
|
|
25826
25953
|
children: "Menu Item 2"
|
|
25827
|
-
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$
|
|
25954
|
+
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$h(_objectSpread$h({}, menuItem3Styles), {}, {
|
|
25828
25955
|
onClick: function onClick() {
|
|
25829
25956
|
return handleClickItem(themeObjects.MENU_ITEM_3, menuItem3Styles);
|
|
25830
25957
|
},
|
|
@@ -25832,21 +25959,21 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25832
25959
|
}))]
|
|
25833
25960
|
}), /*#__PURE__*/jsxs("div", {
|
|
25834
25961
|
className: "flex flex-row space-x-2 w-full",
|
|
25835
|
-
children: [/*#__PURE__*/jsx(Tag, _objectSpread$
|
|
25962
|
+
children: [/*#__PURE__*/jsx(Tag, _objectSpread$h(_objectSpread$h({
|
|
25836
25963
|
text: "Tag",
|
|
25837
25964
|
icon: "pencil"
|
|
25838
25965
|
}, tagStyles), {}, {
|
|
25839
25966
|
onClick: function onClick() {
|
|
25840
25967
|
return handleClickItem(themeObjects.TAG, tagStyles);
|
|
25841
25968
|
}
|
|
25842
|
-
})), /*#__PURE__*/jsx(Tag2, _objectSpread$
|
|
25969
|
+
})), /*#__PURE__*/jsx(Tag2, _objectSpread$h(_objectSpread$h({
|
|
25843
25970
|
text: "Tag 2",
|
|
25844
25971
|
icon: "pencil"
|
|
25845
25972
|
}, tag2Styles), {}, {
|
|
25846
25973
|
onClick: function onClick() {
|
|
25847
25974
|
return handleClickItem(themeObjects.TAG_2, tag2Styles);
|
|
25848
25975
|
}
|
|
25849
|
-
})), /*#__PURE__*/jsx(Tag3, _objectSpread$
|
|
25976
|
+
})), /*#__PURE__*/jsx(Tag3, _objectSpread$h(_objectSpread$h({
|
|
25850
25977
|
text: "Tag 3",
|
|
25851
25978
|
icon: "pencil"
|
|
25852
25979
|
}, tag3Styles), {}, {
|
|
@@ -25855,57 +25982,57 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25855
25982
|
}
|
|
25856
25983
|
}))]
|
|
25857
25984
|
})]
|
|
25858
|
-
})), /*#__PURE__*/jsxs(Panel2, _objectSpread$
|
|
25985
|
+
})), /*#__PURE__*/jsxs(Panel2, _objectSpread$h(_objectSpread$h({
|
|
25859
25986
|
className: "p-6 rounded border-4 space-y-4"
|
|
25860
25987
|
}, styles2), {}, {
|
|
25861
25988
|
height: "h-fit",
|
|
25862
25989
|
padding: false,
|
|
25863
|
-
children: [/*#__PURE__*/jsx(Heading2, _objectSpread$
|
|
25990
|
+
children: [/*#__PURE__*/jsx(Heading2, _objectSpread$h(_objectSpread$h({
|
|
25864
25991
|
title: "Heading 2"
|
|
25865
25992
|
}, heading2Styles), {}, {
|
|
25866
25993
|
padding: false,
|
|
25867
25994
|
onClick: function onClick() {
|
|
25868
25995
|
return handleClickItem(themeObjects.HEADING_2, heading2Styles);
|
|
25869
25996
|
}
|
|
25870
|
-
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$
|
|
25997
|
+
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$h(_objectSpread$h({
|
|
25871
25998
|
title: "Subheading 2"
|
|
25872
25999
|
}, subHeading2Styles), {}, {
|
|
25873
26000
|
padding: false,
|
|
25874
26001
|
onClick: function onClick() {
|
|
25875
26002
|
return handleClickItem(themeObjects.SUBHEADING_2, subHeading2Styles);
|
|
25876
26003
|
}
|
|
25877
|
-
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$
|
|
26004
|
+
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$h(_objectSpread$h({
|
|
25878
26005
|
text: "Paragraph 2 - The quick brown fox jumps over the lazy dog."
|
|
25879
26006
|
}, paragraph2Styles), {}, {
|
|
25880
26007
|
padding: false,
|
|
25881
26008
|
onClick: function onClick() {
|
|
25882
26009
|
return handleClickItem(themeObjects.PARAGRAPH_2, paragraph2Styles);
|
|
25883
26010
|
}
|
|
25884
|
-
})), /*#__PURE__*/jsx(Button2, _objectSpread$
|
|
26011
|
+
})), /*#__PURE__*/jsx(Button2, _objectSpread$h(_objectSpread$h({
|
|
25885
26012
|
title: "Button"
|
|
25886
26013
|
}, button2Styles), {}, {
|
|
25887
26014
|
onClick: function onClick() {
|
|
25888
26015
|
return handleClickItem(themeObjects.BUTTON_2, button2Styles);
|
|
25889
26016
|
}
|
|
25890
|
-
})), /*#__PURE__*/jsx(ButtonIcon2, _objectSpread$
|
|
26017
|
+
})), /*#__PURE__*/jsx(ButtonIcon2, _objectSpread$h(_objectSpread$h({
|
|
25891
26018
|
text: "Button Icon",
|
|
25892
26019
|
icon: "pencil"
|
|
25893
26020
|
}, buttonIcon2Styles), {}, {
|
|
25894
26021
|
onClick: function onClick() {
|
|
25895
26022
|
return handleClickItem(themeObjects.BUTTON_ICON_2, buttonIcon2Styles);
|
|
25896
26023
|
}
|
|
25897
|
-
})), /*#__PURE__*/jsx(ButtonIcon2, _objectSpread$
|
|
26024
|
+
})), /*#__PURE__*/jsx(ButtonIcon2, _objectSpread$h(_objectSpread$h({
|
|
25898
26025
|
icon: "pencil"
|
|
25899
26026
|
}, buttonIcon2Styles), {}, {
|
|
25900
26027
|
onClick: function onClick() {
|
|
25901
26028
|
return handleClickItem(themeObjects.BUTTON_ICON_2, buttonIconStyles);
|
|
25902
26029
|
}
|
|
25903
|
-
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$
|
|
26030
|
+
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$h(_objectSpread$h({}, menuItem2Styles), {}, {
|
|
25904
26031
|
onClick: function onClick() {
|
|
25905
26032
|
return handleClickItem(themeObjects.MENU_ITEM_2, menuItem2Styles);
|
|
25906
26033
|
},
|
|
25907
26034
|
children: "Menu Item"
|
|
25908
|
-
})), /*#__PURE__*/jsx(Tag2, _objectSpread$
|
|
26035
|
+
})), /*#__PURE__*/jsx(Tag2, _objectSpread$h(_objectSpread$h({
|
|
25909
26036
|
text: "Tag 2",
|
|
25910
26037
|
icon: "pencil"
|
|
25911
26038
|
}, tag2Styles), {}, {
|
|
@@ -25913,57 +26040,57 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25913
26040
|
return handleClickItem(themeObjects.TAG_2, tag2Styles);
|
|
25914
26041
|
}
|
|
25915
26042
|
}))]
|
|
25916
|
-
})), /*#__PURE__*/jsxs(Panel3, _objectSpread$
|
|
26043
|
+
})), /*#__PURE__*/jsxs(Panel3, _objectSpread$h(_objectSpread$h({
|
|
25917
26044
|
className: "p-6 rounded border-4 space-y-4"
|
|
25918
26045
|
}, styles3), {}, {
|
|
25919
26046
|
height: "h-fit",
|
|
25920
26047
|
padding: false,
|
|
25921
|
-
children: [/*#__PURE__*/jsx(Heading3, _objectSpread$
|
|
26048
|
+
children: [/*#__PURE__*/jsx(Heading3, _objectSpread$h(_objectSpread$h({
|
|
25922
26049
|
title: "Heading 3"
|
|
25923
26050
|
}, heading3Styles), {}, {
|
|
25924
26051
|
padding: false,
|
|
25925
26052
|
onClick: function onClick() {
|
|
25926
26053
|
return handleClickItem(themeObjects.HEADING_3, heading3Styles);
|
|
25927
26054
|
}
|
|
25928
|
-
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$
|
|
26055
|
+
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$h(_objectSpread$h({
|
|
25929
26056
|
title: "Subheading"
|
|
25930
26057
|
}, subHeading3Styles), {}, {
|
|
25931
26058
|
padding: false,
|
|
25932
26059
|
onClick: function onClick() {
|
|
25933
26060
|
return handleClickItem(themeObjects.SUBHEADING_3, subHeading3Styles);
|
|
25934
26061
|
}
|
|
25935
|
-
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$
|
|
26062
|
+
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$h(_objectSpread$h({
|
|
25936
26063
|
text: "Paragraph 3 - The quick brown fox jumps over the lazy dog."
|
|
25937
26064
|
}, paragraph3Styles), {}, {
|
|
25938
26065
|
padding: false,
|
|
25939
26066
|
onClick: function onClick() {
|
|
25940
26067
|
return handleClickItem(themeObjects.PARAGRAPH_3, paragraph3Styles);
|
|
25941
26068
|
}
|
|
25942
|
-
})), /*#__PURE__*/jsx(Button3, _objectSpread$
|
|
26069
|
+
})), /*#__PURE__*/jsx(Button3, _objectSpread$h(_objectSpread$h({
|
|
25943
26070
|
title: "Button"
|
|
25944
26071
|
}, button3Styles), {}, {
|
|
25945
26072
|
onClick: function onClick() {
|
|
25946
26073
|
return handleClickItem(themeObjects.BUTTON_3, button3Styles);
|
|
25947
26074
|
}
|
|
25948
|
-
})), /*#__PURE__*/jsx(ButtonIcon3, _objectSpread$
|
|
26075
|
+
})), /*#__PURE__*/jsx(ButtonIcon3, _objectSpread$h(_objectSpread$h({
|
|
25949
26076
|
text: "Button Icon 3",
|
|
25950
26077
|
icon: "pencil"
|
|
25951
26078
|
}, buttonIcon3Styles), {}, {
|
|
25952
26079
|
onClick: function onClick() {
|
|
25953
26080
|
return handleClickItem(themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
25954
26081
|
}
|
|
25955
|
-
})), /*#__PURE__*/jsx(ButtonIcon3, _objectSpread$
|
|
26082
|
+
})), /*#__PURE__*/jsx(ButtonIcon3, _objectSpread$h(_objectSpread$h({
|
|
25956
26083
|
icon: "pencil"
|
|
25957
26084
|
}, buttonIcon3Styles), {}, {
|
|
25958
26085
|
onClick: function onClick() {
|
|
25959
26086
|
return handleClickItem(themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
25960
26087
|
}
|
|
25961
|
-
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$
|
|
26088
|
+
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$h(_objectSpread$h({}, menuItem3Styles), {}, {
|
|
25962
26089
|
onClick: function onClick() {
|
|
25963
26090
|
return handleClickItem(themeObjects.MENU_ITEM_3, menuItem3Styles);
|
|
25964
26091
|
},
|
|
25965
26092
|
children: "Menu Item"
|
|
25966
|
-
})), /*#__PURE__*/jsx(Tag3, _objectSpread$
|
|
26093
|
+
})), /*#__PURE__*/jsx(Tag3, _objectSpread$h(_objectSpread$h({
|
|
25967
26094
|
text: "Tag",
|
|
25968
26095
|
icon: "pencil"
|
|
25969
26096
|
}, tag3Styles), {}, {
|
|
@@ -26012,8 +26139,8 @@ var ThemePane = function ThemePane(_ref) {
|
|
|
26012
26139
|
};
|
|
26013
26140
|
|
|
26014
26141
|
var _excluded$2 = ["colorFromTheme", "colorName", "shade", "variant", "colorType", "colorLevelName", "selected", "onClick", "onMouseOver", "width", "height"];
|
|
26015
|
-
function ownKeys$
|
|
26016
|
-
function _objectSpread$
|
|
26142
|
+
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; }
|
|
26143
|
+
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; }
|
|
26017
26144
|
var ColorTile = function ColorTile(_ref) {
|
|
26018
26145
|
var _ref$colorFromTheme = _ref.colorFromTheme,
|
|
26019
26146
|
colorFromTheme = _ref$colorFromTheme === void 0 ? null : _ref$colorFromTheme,
|
|
@@ -26038,7 +26165,7 @@ var ColorTile = function ColorTile(_ref) {
|
|
|
26038
26165
|
_ref$height = _ref.height,
|
|
26039
26166
|
height = _ref$height === void 0 ? "h-10" : _ref$height,
|
|
26040
26167
|
rest = _objectWithoutProperties(_ref, _excluded$2);
|
|
26041
|
-
var c = ColorModel(_objectSpread$
|
|
26168
|
+
var c = ColorModel(_objectSpread$g({
|
|
26042
26169
|
colorFromTheme: colorFromTheme,
|
|
26043
26170
|
colorName: colorName,
|
|
26044
26171
|
colorType: colorType,
|
|
@@ -26066,10 +26193,10 @@ var ColorTile = function ColorTile(_ref) {
|
|
|
26066
26193
|
return /*#__PURE__*/jsx("div", {
|
|
26067
26194
|
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),
|
|
26068
26195
|
onClick: function onClick() {
|
|
26069
|
-
return _onClick !== null ? _onClick(_objectSpread$
|
|
26196
|
+
return _onClick !== null ? _onClick(_objectSpread$g(_objectSpread$g({}, c), rest)) : null;
|
|
26070
26197
|
},
|
|
26071
26198
|
onMouseOver: function onMouseOver() {
|
|
26072
|
-
return _onMouseOver !== null ? _onMouseOver(_objectSpread$
|
|
26199
|
+
return _onMouseOver !== null ? _onMouseOver(_objectSpread$g(_objectSpread$g({}, c), rest)) : null;
|
|
26073
26200
|
},
|
|
26074
26201
|
children: "\xA0"
|
|
26075
26202
|
});
|
|
@@ -27252,8 +27379,8 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
27252
27379
|
var propTypesExports = propTypes.exports;
|
|
27253
27380
|
var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
|
|
27254
27381
|
|
|
27255
|
-
function ownKeys$
|
|
27256
|
-
function _objectSpread$
|
|
27382
|
+
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; }
|
|
27383
|
+
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; }
|
|
27257
27384
|
|
|
27258
27385
|
// Host-injected module references (e.g., "@trops/dash-core").
|
|
27259
27386
|
// Set by the host app via setHostModules() after all modules are fully loaded,
|
|
@@ -27289,7 +27416,7 @@ var BASE_MODULE_MAP = {
|
|
|
27289
27416
|
function evaluateBundle(source, widgetName) {
|
|
27290
27417
|
// Merge base modules with host-provided modules (e.g., "@trops/dash-core")
|
|
27291
27418
|
// at call time so _hostModules is populated by the time widgets load.
|
|
27292
|
-
var moduleMap = _objectSpread$
|
|
27419
|
+
var moduleMap = _objectSpread$f(_objectSpread$f({}, BASE_MODULE_MAP), _hostModules);
|
|
27293
27420
|
var module = {
|
|
27294
27421
|
exports: {}
|
|
27295
27422
|
};
|
|
@@ -27302,7 +27429,7 @@ function evaluateBundle(source, widgetName) {
|
|
|
27302
27429
|
// CJS bundles expect `require("pkg").Widget` to work, so merge
|
|
27303
27430
|
// `.default` properties onto the returned object.
|
|
27304
27431
|
if (mod["default"] && _typeof(mod["default"]) === "object") {
|
|
27305
|
-
return _objectSpread$
|
|
27432
|
+
return _objectSpread$f(_objectSpread$f(_objectSpread$f({}, mod["default"]), mod), {}, {
|
|
27306
27433
|
"default": mod["default"]
|
|
27307
27434
|
});
|
|
27308
27435
|
}
|
|
@@ -27990,8 +28117,8 @@ var HARMONY_STRATEGIES = [{
|
|
|
27990
28117
|
label: "Custom"
|
|
27991
28118
|
}];
|
|
27992
28119
|
|
|
27993
|
-
function ownKeys$
|
|
27994
|
-
function _objectSpread$
|
|
28120
|
+
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; }
|
|
28121
|
+
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; }
|
|
27995
28122
|
var COLOR_PROPERTIES$1 = new Set(["backgroundColor", "textColor", "borderColor", "hoverBackgroundColor", "hoverTextColor", "hoverBorderColor", "focusRingColor", "focusBorderColor", "activeBackgroundColor", "activeTextColor", "placeholderTextColor"]);
|
|
27996
28123
|
var PreviewColorsPane = function PreviewColorsPane(_ref) {
|
|
27997
28124
|
var _ref$styles = _ref.styles,
|
|
@@ -28008,7 +28135,7 @@ var PreviewColorsPane = function PreviewColorsPane(_ref) {
|
|
|
28008
28135
|
function handleClickItem(data, styleNameCss, itemType, objectType) {
|
|
28009
28136
|
// override the object type
|
|
28010
28137
|
data["objectType"] = objectType;
|
|
28011
|
-
onClickItem(_objectSpread$
|
|
28138
|
+
onClickItem(_objectSpread$e(_objectSpread$e({}, data), {}, {
|
|
28012
28139
|
itemType: itemType,
|
|
28013
28140
|
styleName: styleNameCss
|
|
28014
28141
|
}));
|
|
@@ -28418,8 +28545,8 @@ var ThemeMenuPane = function ThemeMenuPane(_ref) {
|
|
|
28418
28545
|
});
|
|
28419
28546
|
};
|
|
28420
28547
|
|
|
28421
|
-
function ownKeys$
|
|
28422
|
-
function _objectSpread$
|
|
28548
|
+
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; }
|
|
28549
|
+
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; }
|
|
28423
28550
|
var COMPONENT_GROUPS$1 = {
|
|
28424
28551
|
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],
|
|
28425
28552
|
Buttons: [themeObjects.BUTTON, themeObjects.BUTTON_2, themeObjects.BUTTON_3, themeObjects.BUTTON_ICON, themeObjects.BUTTON_ICON_2, themeObjects.BUTTON_ICON_3],
|
|
@@ -28450,7 +28577,7 @@ var ComponentSelectorPane = function ComponentSelectorPane(_ref) {
|
|
|
28450
28577
|
setCollapsedGroups = _useState2[1];
|
|
28451
28578
|
function toggleGroup(groupName) {
|
|
28452
28579
|
setCollapsedGroups(function (prev) {
|
|
28453
|
-
return _objectSpread$
|
|
28580
|
+
return _objectSpread$d(_objectSpread$d({}, prev), {}, _defineProperty({}, groupName, !prev[groupName]));
|
|
28454
28581
|
});
|
|
28455
28582
|
}
|
|
28456
28583
|
function hasOverrides(itemKey) {
|
|
@@ -28686,8 +28813,8 @@ var NonColorPickerPane = function NonColorPickerPane(_ref) {
|
|
|
28686
28813
|
};
|
|
28687
28814
|
|
|
28688
28815
|
var _excluded$1 = ["children"];
|
|
28689
|
-
function ownKeys$
|
|
28690
|
-
function _objectSpread$
|
|
28816
|
+
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; }
|
|
28817
|
+
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; }
|
|
28691
28818
|
var COLOR_PROPERTIES = new Set(["backgroundColor", "textColor", "borderColor", "hoverBackgroundColor", "hoverTextColor", "hoverBorderColor", "focusRingColor", "focusBorderColor", "activeBackgroundColor", "activeTextColor", "placeholderTextColor"]);
|
|
28692
28819
|
var isColorProperty = function isColorProperty(name) {
|
|
28693
28820
|
return COLOR_PROPERTIES.has(name);
|
|
@@ -29247,7 +29374,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
29247
29374
|
if (itemSelected && themeSelected && themeVariant) {
|
|
29248
29375
|
var updatedStyles = getStylesForItem(itemSelected.item, themeSelected[themeVariant]);
|
|
29249
29376
|
setItemSelected(function (prev) {
|
|
29250
|
-
return _objectSpread$
|
|
29377
|
+
return _objectSpread$c(_objectSpread$c({}, prev), {}, {
|
|
29251
29378
|
styles: updatedStyles
|
|
29252
29379
|
});
|
|
29253
29380
|
});
|
|
@@ -29418,7 +29545,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
29418
29545
|
styles: clickStyles
|
|
29419
29546
|
});
|
|
29420
29547
|
},
|
|
29421
|
-
children: /*#__PURE__*/jsx(PanelComponent, _objectSpread$
|
|
29548
|
+
children: /*#__PURE__*/jsx(PanelComponent, _objectSpread$c(_objectSpread$c({}, panelStyles), {}, {
|
|
29422
29549
|
scrollable: false,
|
|
29423
29550
|
className: "rounded",
|
|
29424
29551
|
height: "",
|
|
@@ -29432,9 +29559,9 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
29432
29559
|
var _comp$props = comp.props,
|
|
29433
29560
|
childContent = _comp$props.children,
|
|
29434
29561
|
restProps = _objectWithoutProperties(_comp$props, _excluded$1);
|
|
29435
|
-
var renderedComponent = childContent !== undefined ? /*#__PURE__*/jsx(comp.Component, _objectSpread$
|
|
29562
|
+
var renderedComponent = childContent !== undefined ? /*#__PURE__*/jsx(comp.Component, _objectSpread$c(_objectSpread$c({}, restProps), {}, {
|
|
29436
29563
|
children: childContent
|
|
29437
|
-
})) : /*#__PURE__*/jsx(comp.Component, _objectSpread$
|
|
29564
|
+
})) : /*#__PURE__*/jsx(comp.Component, _objectSpread$c({}, restProps));
|
|
29438
29565
|
return renderComponentRow(comp.key, renderedComponent);
|
|
29439
29566
|
})
|
|
29440
29567
|
})
|
|
@@ -29450,7 +29577,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
29450
29577
|
children: [/*#__PURE__*/jsx("div", {
|
|
29451
29578
|
className: "text-xs uppercase font-bold text-gray-500 tracking-wider",
|
|
29452
29579
|
children: "Forms & Inputs"
|
|
29453
|
-
}), /*#__PURE__*/jsx(Panel, _objectSpread$
|
|
29580
|
+
}), /*#__PURE__*/jsx(Panel, _objectSpread$c(_objectSpread$c({}, getStylesForItem("panel", themeData)), {}, {
|
|
29454
29581
|
scrollable: false,
|
|
29455
29582
|
className: "rounded",
|
|
29456
29583
|
height: "",
|
|
@@ -29478,7 +29605,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
29478
29605
|
children: [/*#__PURE__*/jsx("div", {
|
|
29479
29606
|
className: "text-xs uppercase font-bold text-gray-500 tracking-wider",
|
|
29480
29607
|
children: "Data & Stats"
|
|
29481
|
-
}), /*#__PURE__*/jsx(Panel, _objectSpread$
|
|
29608
|
+
}), /*#__PURE__*/jsx(Panel, _objectSpread$c(_objectSpread$c({}, getStylesForItem("panel", themeData)), {}, {
|
|
29482
29609
|
scrollable: false,
|
|
29483
29610
|
className: "rounded",
|
|
29484
29611
|
height: "",
|
|
@@ -29583,7 +29710,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
29583
29710
|
}), themeSelected && /*#__PURE__*/jsx("div", {
|
|
29584
29711
|
className: "flex flex-col flex-1 min-w-0",
|
|
29585
29712
|
children: /*#__PURE__*/jsx(ThemeContext.Provider, {
|
|
29586
|
-
value: _objectSpread$
|
|
29713
|
+
value: _objectSpread$c(_objectSpread$c({}, themeContextValue), {}, {
|
|
29587
29714
|
currentTheme: (themeSelected === null || themeSelected === void 0 ? void 0 : themeSelected[themeVariant]) || themeContextValue.currentTheme
|
|
29588
29715
|
}),
|
|
29589
29716
|
children: showPreview ? /*#__PURE__*/jsx(PreviewComponentsPane, {
|
|
@@ -30214,8 +30341,8 @@ var ThemeQuickCreate = function ThemeQuickCreate(_ref8) {
|
|
|
30214
30341
|
});
|
|
30215
30342
|
};
|
|
30216
30343
|
|
|
30217
|
-
function ownKeys$
|
|
30218
|
-
function _objectSpread$
|
|
30344
|
+
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; }
|
|
30345
|
+
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; }
|
|
30219
30346
|
var ThemeManagerModal = function ThemeManagerModal(_ref) {
|
|
30220
30347
|
var open = _ref.open,
|
|
30221
30348
|
setIsOpen = _ref.setIsOpen;
|
|
@@ -30322,7 +30449,7 @@ var ThemeManagerModal = function ThemeManagerModal(_ref) {
|
|
|
30322
30449
|
function handleWizardComplete() {
|
|
30323
30450
|
if (!wizardTheme || !wizardName.trim()) return;
|
|
30324
30451
|
var key = wizardTheme.id || "theme-".concat(Date.now());
|
|
30325
|
-
var finalTheme = _objectSpread$
|
|
30452
|
+
var finalTheme = _objectSpread$b(_objectSpread$b({}, wizardTheme), {}, {
|
|
30326
30453
|
id: key,
|
|
30327
30454
|
name: wizardName.trim()
|
|
30328
30455
|
});
|
|
@@ -31344,8 +31471,8 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
|
|
|
31344
31471
|
});
|
|
31345
31472
|
};
|
|
31346
31473
|
|
|
31347
|
-
function ownKeys$
|
|
31348
|
-
function _objectSpread$
|
|
31474
|
+
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; }
|
|
31475
|
+
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; }
|
|
31349
31476
|
var LayoutPreview = function LayoutPreview(_ref) {
|
|
31350
31477
|
var layout = _ref.layout;
|
|
31351
31478
|
var gridRoot = (layout || []).find(function (item) {
|
|
@@ -31516,7 +31643,7 @@ var DashboardDetail = function DashboardDetail(_ref2) {
|
|
|
31516
31643
|
updated.menuId = val ? Number(val) : null;
|
|
31517
31644
|
// Strip widgetConfig from layout before saving
|
|
31518
31645
|
updated.layout = (updated.layout || []).map(function (layoutItem) {
|
|
31519
|
-
var cleaned = _objectSpread$
|
|
31646
|
+
var cleaned = _objectSpread$a({}, layoutItem);
|
|
31520
31647
|
delete cleaned.widgetConfig;
|
|
31521
31648
|
return cleaned;
|
|
31522
31649
|
});
|
|
@@ -31531,7 +31658,7 @@ var DashboardDetail = function DashboardDetail(_ref2) {
|
|
|
31531
31658
|
var updated = deepCopy(ws);
|
|
31532
31659
|
updated.themeKey = val || null;
|
|
31533
31660
|
updated.layout = (updated.layout || []).map(function (layoutItem) {
|
|
31534
|
-
var cleaned = _objectSpread$
|
|
31661
|
+
var cleaned = _objectSpread$a({}, layoutItem);
|
|
31535
31662
|
delete cleaned.widgetConfig;
|
|
31536
31663
|
return cleaned;
|
|
31537
31664
|
});
|
|
@@ -32141,8 +32268,8 @@ var DiscoverDashboardsDetail = function DiscoverDashboardsDetail(_ref) {
|
|
|
32141
32268
|
});
|
|
32142
32269
|
};
|
|
32143
32270
|
|
|
32144
|
-
function ownKeys$
|
|
32145
|
-
function _objectSpread$
|
|
32271
|
+
function ownKeys$9(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
32272
|
+
function _objectSpread$9(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$9(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$9(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
32146
32273
|
var DashboardsSection = function DashboardsSection(_ref) {
|
|
32147
32274
|
var _ref$workspaces = _ref.workspaces,
|
|
32148
32275
|
workspaces = _ref$workspaces === void 0 ? [] : _ref$workspaces,
|
|
@@ -32230,7 +32357,7 @@ var DashboardsSection = function DashboardsSection(_ref) {
|
|
|
32230
32357
|
updated.name = editName.trim();
|
|
32231
32358
|
// Strip widgetConfig from layout before saving
|
|
32232
32359
|
updated.layout = (updated.layout || []).map(function (layoutItem) {
|
|
32233
|
-
var cleaned = _objectSpread$
|
|
32360
|
+
var cleaned = _objectSpread$9({}, layoutItem);
|
|
32234
32361
|
delete cleaned.widgetConfig;
|
|
32235
32362
|
return cleaned;
|
|
32236
32363
|
});
|
|
@@ -32250,7 +32377,7 @@ var DashboardsSection = function DashboardsSection(_ref) {
|
|
|
32250
32377
|
copy.version = Date.now();
|
|
32251
32378
|
// Strip widgetConfig from layout before saving
|
|
32252
32379
|
copy.layout = (copy.layout || []).map(function (layoutItem) {
|
|
32253
|
-
var cleaned = _objectSpread$
|
|
32380
|
+
var cleaned = _objectSpread$9({}, layoutItem);
|
|
32254
32381
|
delete cleaned.widgetConfig;
|
|
32255
32382
|
return cleaned;
|
|
32256
32383
|
});
|
|
@@ -32736,8 +32863,8 @@ var FoldersSection = function FoldersSection(_ref) {
|
|
|
32736
32863
|
});
|
|
32737
32864
|
};
|
|
32738
32865
|
|
|
32739
|
-
function ownKeys$
|
|
32740
|
-
function _objectSpread$
|
|
32866
|
+
function ownKeys$8(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
32867
|
+
function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$8(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$8(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
32741
32868
|
var ProviderDetail = function ProviderDetail(_ref) {
|
|
32742
32869
|
var _provider$mcpConfig, _testResult$tools;
|
|
32743
32870
|
var _ref$providerName = _ref.providerName,
|
|
@@ -32827,14 +32954,14 @@ var ProviderDetail = function ProviderDetail(_ref) {
|
|
|
32827
32954
|
var oldKey = f.key;
|
|
32828
32955
|
if (oldKey && formCredentials[oldKey] !== undefined) {
|
|
32829
32956
|
setFormCredentials(function (creds) {
|
|
32830
|
-
var updated = _objectSpread$
|
|
32957
|
+
var updated = _objectSpread$8({}, creds);
|
|
32831
32958
|
var val = updated[oldKey];
|
|
32832
32959
|
delete updated[oldKey];
|
|
32833
32960
|
if (newKey.trim()) updated[newKey] = val;
|
|
32834
32961
|
return updated;
|
|
32835
32962
|
});
|
|
32836
32963
|
}
|
|
32837
|
-
return _objectSpread$
|
|
32964
|
+
return _objectSpread$8(_objectSpread$8({}, f), {}, {
|
|
32838
32965
|
key: newKey
|
|
32839
32966
|
});
|
|
32840
32967
|
});
|
|
@@ -32846,14 +32973,14 @@ var ProviderDetail = function ProviderDetail(_ref) {
|
|
|
32846
32973
|
});
|
|
32847
32974
|
if (field !== null && field !== void 0 && field.key) {
|
|
32848
32975
|
setFormCredentials(function (prev) {
|
|
32849
|
-
return _objectSpread$
|
|
32976
|
+
return _objectSpread$8(_objectSpread$8({}, prev), {}, _defineProperty({}, field.key, value));
|
|
32850
32977
|
});
|
|
32851
32978
|
}
|
|
32852
32979
|
};
|
|
32853
32980
|
var handleFieldSecretToggle = function handleFieldSecretToggle(id) {
|
|
32854
32981
|
setCredentialFields(function (prev) {
|
|
32855
32982
|
return prev.map(function (f) {
|
|
32856
|
-
return f.id === id ? _objectSpread$
|
|
32983
|
+
return f.id === id ? _objectSpread$8(_objectSpread$8({}, f), {}, {
|
|
32857
32984
|
secret: !f.secret
|
|
32858
32985
|
}) : f;
|
|
32859
32986
|
});
|
|
@@ -32875,7 +33002,7 @@ var ProviderDetail = function ProviderDetail(_ref) {
|
|
|
32875
33002
|
});
|
|
32876
33003
|
if (field !== null && field !== void 0 && field.key) {
|
|
32877
33004
|
setFormCredentials(function (prev) {
|
|
32878
|
-
var updated = _objectSpread$
|
|
33005
|
+
var updated = _objectSpread$8({}, prev);
|
|
32879
33006
|
delete updated[field.key];
|
|
32880
33007
|
return updated;
|
|
32881
33008
|
});
|
|
@@ -32888,7 +33015,7 @@ var ProviderDetail = function ProviderDetail(_ref) {
|
|
|
32888
33015
|
};
|
|
32889
33016
|
var handleCredentialChange = function handleCredentialChange(key, value) {
|
|
32890
33017
|
setFormCredentials(function (prev) {
|
|
32891
|
-
return _objectSpread$
|
|
33018
|
+
return _objectSpread$8(_objectSpread$8({}, prev), {}, _defineProperty({}, key, value));
|
|
32892
33019
|
});
|
|
32893
33020
|
};
|
|
32894
33021
|
var handleTestConnection = function handleTestConnection() {
|
|
@@ -33357,8 +33484,8 @@ var ProviderDetail = function ProviderDetail(_ref) {
|
|
|
33357
33484
|
});
|
|
33358
33485
|
};
|
|
33359
33486
|
|
|
33360
|
-
function ownKeys$
|
|
33361
|
-
function _objectSpread$
|
|
33487
|
+
function ownKeys$7(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
33488
|
+
function _objectSpread$7(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$7(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$7(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
33362
33489
|
var rowIdCounter = 0;
|
|
33363
33490
|
var nextRowId = function nextRowId() {
|
|
33364
33491
|
return "row_".concat(++rowIdCounter);
|
|
@@ -33619,7 +33746,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
33619
33746
|
var updateEnvRow = function updateEnvRow(id, field, value) {
|
|
33620
33747
|
setEnvMappingRows(function (prev) {
|
|
33621
33748
|
return prev.map(function (row) {
|
|
33622
|
-
return row.id === id ? _objectSpread$
|
|
33749
|
+
return row.id === id ? _objectSpread$7(_objectSpread$7({}, row), {}, _defineProperty({}, field, value)) : row;
|
|
33623
33750
|
});
|
|
33624
33751
|
});
|
|
33625
33752
|
};
|
|
@@ -33644,7 +33771,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
33644
33771
|
var updateHeaderRow = function updateHeaderRow(id, field, value) {
|
|
33645
33772
|
setHeaderRows(function (prev) {
|
|
33646
33773
|
return prev.map(function (row) {
|
|
33647
|
-
return row.id === id ? _objectSpread$
|
|
33774
|
+
return row.id === id ? _objectSpread$7(_objectSpread$7({}, row), {}, _defineProperty({}, field, value)) : row;
|
|
33648
33775
|
});
|
|
33649
33776
|
});
|
|
33650
33777
|
};
|
|
@@ -33659,11 +33786,11 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
33659
33786
|
// --- credential field change ---
|
|
33660
33787
|
var handleCredentialChange = function handleCredentialChange(fieldName, value) {
|
|
33661
33788
|
setCredentialData(function (prev) {
|
|
33662
|
-
return _objectSpread$
|
|
33789
|
+
return _objectSpread$7(_objectSpread$7({}, prev), {}, _defineProperty({}, fieldName, value));
|
|
33663
33790
|
});
|
|
33664
33791
|
if (formErrors[fieldName] && value !== null && value !== void 0 && value.trim()) {
|
|
33665
33792
|
setFormErrors(function (prev) {
|
|
33666
|
-
var next = _objectSpread$
|
|
33793
|
+
var next = _objectSpread$7({}, prev);
|
|
33667
33794
|
delete next[fieldName];
|
|
33668
33795
|
return next;
|
|
33669
33796
|
});
|
|
@@ -33871,7 +33998,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
33871
33998
|
setProviderName(value);
|
|
33872
33999
|
if (formErrors.providerName && value !== null && value !== void 0 && value.trim()) {
|
|
33873
34000
|
setFormErrors(function (prev) {
|
|
33874
|
-
var next = _objectSpread$
|
|
34001
|
+
var next = _objectSpread$7({}, prev);
|
|
33875
34002
|
delete next.providerName;
|
|
33876
34003
|
return next;
|
|
33877
34004
|
});
|
|
@@ -33987,7 +34114,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
33987
34114
|
setCommand(value);
|
|
33988
34115
|
if (formErrors.command && value !== null && value !== void 0 && value.trim()) {
|
|
33989
34116
|
setFormErrors(function (prev) {
|
|
33990
|
-
var next = _objectSpread$
|
|
34117
|
+
var next = _objectSpread$7({}, prev);
|
|
33991
34118
|
delete next.command;
|
|
33992
34119
|
return next;
|
|
33993
34120
|
});
|
|
@@ -34093,7 +34220,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
34093
34220
|
setUrl(value);
|
|
34094
34221
|
if (formErrors.url && value !== null && value !== void 0 && value.trim()) {
|
|
34095
34222
|
setFormErrors(function (prev) {
|
|
34096
|
-
var next = _objectSpread$
|
|
34223
|
+
var next = _objectSpread$7({}, prev);
|
|
34097
34224
|
delete next.url;
|
|
34098
34225
|
return next;
|
|
34099
34226
|
});
|
|
@@ -34338,8 +34465,8 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
34338
34465
|
});
|
|
34339
34466
|
};
|
|
34340
34467
|
|
|
34341
|
-
function ownKeys$
|
|
34342
|
-
function _objectSpread$
|
|
34468
|
+
function ownKeys$6(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
34469
|
+
function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$6(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$6(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
34343
34470
|
var getIconForServer = function getIconForServer(server) {
|
|
34344
34471
|
var iconMap = {
|
|
34345
34472
|
github: "code-branch",
|
|
@@ -34526,11 +34653,11 @@ var McpCatalogDetail = function McpCatalogDetail(_ref) {
|
|
|
34526
34653
|
// Handle credential field changes
|
|
34527
34654
|
var handleCredentialChange = function handleCredentialChange(fieldName, value) {
|
|
34528
34655
|
setCredentialData(function (prev) {
|
|
34529
|
-
return _objectSpread$
|
|
34656
|
+
return _objectSpread$6(_objectSpread$6({}, prev), {}, _defineProperty({}, fieldName, value));
|
|
34530
34657
|
});
|
|
34531
34658
|
if (formErrors[fieldName] && value !== null && value !== void 0 && value.trim()) {
|
|
34532
34659
|
setFormErrors(function (prev) {
|
|
34533
|
-
var next = _objectSpread$
|
|
34660
|
+
var next = _objectSpread$6({}, prev);
|
|
34534
34661
|
delete next[fieldName];
|
|
34535
34662
|
return next;
|
|
34536
34663
|
});
|
|
@@ -34778,7 +34905,7 @@ var McpCatalogDetail = function McpCatalogDetail(_ref) {
|
|
|
34778
34905
|
setProviderName(value);
|
|
34779
34906
|
if (formErrors.providerName && value !== null && value !== void 0 && value.trim()) {
|
|
34780
34907
|
setFormErrors(function (prev) {
|
|
34781
|
-
var next = _objectSpread$
|
|
34908
|
+
var next = _objectSpread$6({}, prev);
|
|
34782
34909
|
delete next.providerName;
|
|
34783
34910
|
return next;
|
|
34784
34911
|
});
|
|
@@ -35726,8 +35853,8 @@ var ThemeDetail = function ThemeDetail(_ref6) {
|
|
|
35726
35853
|
});
|
|
35727
35854
|
};
|
|
35728
35855
|
|
|
35729
|
-
function ownKeys$
|
|
35730
|
-
function _objectSpread$
|
|
35856
|
+
function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
35857
|
+
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
35731
35858
|
var ThemesSection = function ThemesSection(_ref) {
|
|
35732
35859
|
var _ref$onOpenThemeEdito = _ref.onOpenThemeEditor,
|
|
35733
35860
|
onOpenThemeEditor = _ref$onOpenThemeEdito === void 0 ? null : _ref$onOpenThemeEdito,
|
|
@@ -35799,7 +35926,7 @@ var ThemesSection = function ThemesSection(_ref) {
|
|
|
35799
35926
|
if (!wizardTheme || !wizardName.trim()) return;
|
|
35800
35927
|
if (!dashApi || !appId) return;
|
|
35801
35928
|
var key = wizardTheme.id || "theme-".concat(Date.now());
|
|
35802
|
-
var finalTheme = _objectSpread$
|
|
35929
|
+
var finalTheme = _objectSpread$5(_objectSpread$5({}, wizardTheme), {}, {
|
|
35803
35930
|
id: key,
|
|
35804
35931
|
name: wizardName.trim()
|
|
35805
35932
|
});
|
|
@@ -37197,8 +37324,8 @@ var useInstalledWidgets = function useInstalledWidgets() {
|
|
|
37197
37324
|
};
|
|
37198
37325
|
};
|
|
37199
37326
|
|
|
37200
|
-
function ownKeys$
|
|
37201
|
-
function _objectSpread$
|
|
37327
|
+
function ownKeys$4(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
37328
|
+
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
37202
37329
|
var WidgetsSection = function WidgetsSection(_ref) {
|
|
37203
37330
|
var _ref$workspaces = _ref.workspaces,
|
|
37204
37331
|
workspaces = _ref$workspaces === void 0 ? [] : _ref$workspaces;
|
|
@@ -37770,7 +37897,7 @@ var WidgetsSection = function WidgetsSection(_ref) {
|
|
|
37770
37897
|
listContent: listContent,
|
|
37771
37898
|
detailContent: detailContent,
|
|
37772
37899
|
emptyDetailMessage: "Select a widget to view details"
|
|
37773
|
-
}), /*#__PURE__*/jsx(ConfirmationModal, _objectSpread$
|
|
37900
|
+
}), /*#__PURE__*/jsx(ConfirmationModal, _objectSpread$4(_objectSpread$4({
|
|
37774
37901
|
isOpen: !!deleteTarget,
|
|
37775
37902
|
setIsOpen: function setIsOpen() {
|
|
37776
37903
|
setDeleteTarget(null);
|
|
@@ -37815,8 +37942,8 @@ var WidgetsSection = function WidgetsSection(_ref) {
|
|
|
37815
37942
|
});
|
|
37816
37943
|
};
|
|
37817
37944
|
|
|
37818
|
-
function ownKeys$
|
|
37819
|
-
function _objectSpread$
|
|
37945
|
+
function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
37946
|
+
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
37820
37947
|
var AccountSection = function AccountSection(_ref) {
|
|
37821
37948
|
var authStatus = _ref.authStatus,
|
|
37822
37949
|
authProfile = _ref.authProfile,
|
|
@@ -37921,7 +38048,7 @@ var AuthenticatedView = function AuthenticatedView(_ref3) {
|
|
|
37921
38048
|
onPackageUpdated: function onPackageUpdated(updatedPkg) {
|
|
37922
38049
|
setPackages(function (prev) {
|
|
37923
38050
|
return prev.map(function (p) {
|
|
37924
|
-
return p.name === updatedPkg.name && p.scope === updatedPkg.scope ? _objectSpread$
|
|
38051
|
+
return p.name === updatedPkg.name && p.scope === updatedPkg.scope ? _objectSpread$3(_objectSpread$3({}, p), updatedPkg) : p;
|
|
37925
38052
|
});
|
|
37926
38053
|
});
|
|
37927
38054
|
},
|
|
@@ -38176,7 +38303,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
38176
38303
|
case 2:
|
|
38177
38304
|
result = _context3.sent;
|
|
38178
38305
|
if (result) {
|
|
38179
|
-
onSaved(_objectSpread$
|
|
38306
|
+
onSaved(_objectSpread$3(_objectSpread$3({}, pkg), updates));
|
|
38180
38307
|
}
|
|
38181
38308
|
_context3.next = 4;
|
|
38182
38309
|
break;
|
|
@@ -38241,7 +38368,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
38241
38368
|
label: "Display Name",
|
|
38242
38369
|
value: form.displayName,
|
|
38243
38370
|
onChange: function onChange(v) {
|
|
38244
|
-
return setForm(_objectSpread$
|
|
38371
|
+
return setForm(_objectSpread$3(_objectSpread$3({}, form), {}, {
|
|
38245
38372
|
displayName: v
|
|
38246
38373
|
}));
|
|
38247
38374
|
}
|
|
@@ -38249,7 +38376,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
38249
38376
|
label: "Description",
|
|
38250
38377
|
value: form.description,
|
|
38251
38378
|
onChange: function onChange(v) {
|
|
38252
|
-
return setForm(_objectSpread$
|
|
38379
|
+
return setForm(_objectSpread$3(_objectSpread$3({}, form), {}, {
|
|
38253
38380
|
description: v
|
|
38254
38381
|
}));
|
|
38255
38382
|
}
|
|
@@ -38257,7 +38384,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
38257
38384
|
label: "Category",
|
|
38258
38385
|
value: form.category,
|
|
38259
38386
|
onChange: function onChange(v) {
|
|
38260
|
-
return setForm(_objectSpread$
|
|
38387
|
+
return setForm(_objectSpread$3(_objectSpread$3({}, form), {}, {
|
|
38261
38388
|
category: v
|
|
38262
38389
|
}));
|
|
38263
38390
|
}
|
|
@@ -38265,7 +38392,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
38265
38392
|
label: "Tags (comma-separated)",
|
|
38266
38393
|
value: form.tags,
|
|
38267
38394
|
onChange: function onChange(v) {
|
|
38268
|
-
return setForm(_objectSpread$
|
|
38395
|
+
return setForm(_objectSpread$3(_objectSpread$3({}, form), {}, {
|
|
38269
38396
|
tags: v
|
|
38270
38397
|
}));
|
|
38271
38398
|
}
|
|
@@ -38277,7 +38404,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
38277
38404
|
}), /*#__PURE__*/jsxs("select", {
|
|
38278
38405
|
value: form.visibility,
|
|
38279
38406
|
onChange: function onChange(e) {
|
|
38280
|
-
return setForm(_objectSpread$
|
|
38407
|
+
return setForm(_objectSpread$3(_objectSpread$3({}, form), {}, {
|
|
38281
38408
|
visibility: e.target.value
|
|
38282
38409
|
}));
|
|
38283
38410
|
},
|
|
@@ -38381,6 +38508,216 @@ var EditField = function EditField(_ref7) {
|
|
|
38381
38508
|
});
|
|
38382
38509
|
};
|
|
38383
38510
|
|
|
38511
|
+
function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
38512
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
38513
|
+
var NotificationsSection = function NotificationsSection(_ref) {
|
|
38514
|
+
var _ref$workspaces = _ref.workspaces,
|
|
38515
|
+
workspaces = _ref$workspaces === void 0 ? [] : _ref$workspaces;
|
|
38516
|
+
var appContext = useContext(AppContext);
|
|
38517
|
+
appContext === null || appContext === void 0 ? void 0 : appContext.dashApi;
|
|
38518
|
+
var _useState = useState(true),
|
|
38519
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
38520
|
+
globalEnabled = _useState2[0],
|
|
38521
|
+
setGlobalEnabled = _useState2[1];
|
|
38522
|
+
var _useState3 = useState(false),
|
|
38523
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
38524
|
+
doNotDisturb = _useState4[0],
|
|
38525
|
+
setDoNotDisturb = _useState4[1];
|
|
38526
|
+
var _useState5 = useState({}),
|
|
38527
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
38528
|
+
instances = _useState6[0],
|
|
38529
|
+
setInstances = _useState6[1];
|
|
38530
|
+
var _useState7 = useState(true),
|
|
38531
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
38532
|
+
loading = _useState8[0],
|
|
38533
|
+
setLoading = _useState8[1];
|
|
38534
|
+
|
|
38535
|
+
// Load preferences on mount
|
|
38536
|
+
useEffect(function () {
|
|
38537
|
+
var _window$mainApi;
|
|
38538
|
+
if (!((_window$mainApi = window.mainApi) !== null && _window$mainApi !== void 0 && (_window$mainApi = _window$mainApi.notifications) !== null && _window$mainApi !== void 0 && _window$mainApi.getPreferences)) {
|
|
38539
|
+
setLoading(false);
|
|
38540
|
+
return;
|
|
38541
|
+
}
|
|
38542
|
+
window.mainApi.notifications.getPreferences().then(function (prefs) {
|
|
38543
|
+
setGlobalEnabled(prefs.globalEnabled);
|
|
38544
|
+
setDoNotDisturb(prefs.doNotDisturb);
|
|
38545
|
+
setInstances(prefs.instances || {});
|
|
38546
|
+
setLoading(false);
|
|
38547
|
+
});
|
|
38548
|
+
}, []);
|
|
38549
|
+
|
|
38550
|
+
// Collect all widget instances with notifications from workspaces
|
|
38551
|
+
var widgetInstances = [];
|
|
38552
|
+
var componentMap = ComponentManager.componentMap() || {};
|
|
38553
|
+
workspaces.forEach(function (ws) {
|
|
38554
|
+
var items = flattenLayout(ws.layout);
|
|
38555
|
+
items.forEach(function (item) {
|
|
38556
|
+
var _config$notifications;
|
|
38557
|
+
var config = componentMap[item.component];
|
|
38558
|
+
if ((config === null || config === void 0 || (_config$notifications = config.notifications) === null || _config$notifications === void 0 ? void 0 : _config$notifications.length) > 0) {
|
|
38559
|
+
var _item$userPrefs;
|
|
38560
|
+
widgetInstances.push({
|
|
38561
|
+
uuid: item.uuid || item.uuidString,
|
|
38562
|
+
componentName: item.component,
|
|
38563
|
+
title: ((_item$userPrefs = item.userPrefs) === null || _item$userPrefs === void 0 ? void 0 : _item$userPrefs.title) || config.displayName || item.component,
|
|
38564
|
+
workspaceName: ws.name || ws.id,
|
|
38565
|
+
notifications: config.notifications,
|
|
38566
|
+
"package": config["package"]
|
|
38567
|
+
});
|
|
38568
|
+
}
|
|
38569
|
+
});
|
|
38570
|
+
});
|
|
38571
|
+
|
|
38572
|
+
// Group by package
|
|
38573
|
+
var grouped = {};
|
|
38574
|
+
widgetInstances.forEach(function (wi) {
|
|
38575
|
+
var pkg = wi["package"] || "Other";
|
|
38576
|
+
if (!grouped[pkg]) grouped[pkg] = [];
|
|
38577
|
+
grouped[pkg].push(wi);
|
|
38578
|
+
});
|
|
38579
|
+
function handleGlobalToggle(value) {
|
|
38580
|
+
var _window$mainApi2;
|
|
38581
|
+
setGlobalEnabled(value);
|
|
38582
|
+
(_window$mainApi2 = window.mainApi) === null || _window$mainApi2 === void 0 || (_window$mainApi2 = _window$mainApi2.notifications) === null || _window$mainApi2 === void 0 || _window$mainApi2.setGlobal({
|
|
38583
|
+
globalEnabled: value
|
|
38584
|
+
});
|
|
38585
|
+
}
|
|
38586
|
+
function handleDndToggle(value) {
|
|
38587
|
+
var _window$mainApi3;
|
|
38588
|
+
setDoNotDisturb(value);
|
|
38589
|
+
(_window$mainApi3 = window.mainApi) === null || _window$mainApi3 === void 0 || (_window$mainApi3 = _window$mainApi3.notifications) === null || _window$mainApi3 === void 0 || _window$mainApi3.setGlobal({
|
|
38590
|
+
doNotDisturb: value
|
|
38591
|
+
});
|
|
38592
|
+
}
|
|
38593
|
+
function handleTypeToggle(widgetUuid, typeKey, value) {
|
|
38594
|
+
var _window$mainApi4;
|
|
38595
|
+
var updated = _objectSpread$2(_objectSpread$2({}, instances), {}, _defineProperty({}, widgetUuid, _objectSpread$2(_objectSpread$2({}, instances[widgetUuid] || {}), {}, _defineProperty({}, typeKey, value))));
|
|
38596
|
+
setInstances(updated);
|
|
38597
|
+
(_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));
|
|
38598
|
+
}
|
|
38599
|
+
function getTypeEnabled(widgetUuid, typeKey, defaultEnabled) {
|
|
38600
|
+
var prefs = instances[widgetUuid];
|
|
38601
|
+
if (prefs && typeof prefs[typeKey] === "boolean") {
|
|
38602
|
+
return prefs[typeKey];
|
|
38603
|
+
}
|
|
38604
|
+
return defaultEnabled;
|
|
38605
|
+
}
|
|
38606
|
+
if (loading) {
|
|
38607
|
+
return /*#__PURE__*/jsx("div", {
|
|
38608
|
+
className: "flex-1 p-6 opacity-50 text-sm",
|
|
38609
|
+
children: "Loading notification preferences..."
|
|
38610
|
+
});
|
|
38611
|
+
}
|
|
38612
|
+
return /*#__PURE__*/jsx("div", {
|
|
38613
|
+
className: "flex-1 overflow-y-auto p-6",
|
|
38614
|
+
children: /*#__PURE__*/jsxs("div", {
|
|
38615
|
+
className: "flex flex-col space-y-6",
|
|
38616
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
38617
|
+
className: "flex flex-col space-y-3",
|
|
38618
|
+
children: [/*#__PURE__*/jsx(SubHeading3, {
|
|
38619
|
+
title: "Global",
|
|
38620
|
+
padding: false
|
|
38621
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
38622
|
+
className: "flex flex-row items-center justify-between py-2",
|
|
38623
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
38624
|
+
className: "flex flex-col",
|
|
38625
|
+
children: [/*#__PURE__*/jsx("span", {
|
|
38626
|
+
className: "text-sm font-medium",
|
|
38627
|
+
children: "Notifications Enabled"
|
|
38628
|
+
}), /*#__PURE__*/jsx("span", {
|
|
38629
|
+
className: "text-xs opacity-50",
|
|
38630
|
+
children: "Master switch for all notifications"
|
|
38631
|
+
})]
|
|
38632
|
+
}), /*#__PURE__*/jsx(Switch, {
|
|
38633
|
+
checked: globalEnabled,
|
|
38634
|
+
onChange: handleGlobalToggle
|
|
38635
|
+
})]
|
|
38636
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
38637
|
+
className: "flex flex-row items-center justify-between py-2",
|
|
38638
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
38639
|
+
className: "flex flex-col",
|
|
38640
|
+
children: [/*#__PURE__*/jsx("span", {
|
|
38641
|
+
className: "text-sm font-medium",
|
|
38642
|
+
children: "Do Not Disturb"
|
|
38643
|
+
}), /*#__PURE__*/jsx("span", {
|
|
38644
|
+
className: "text-xs opacity-50",
|
|
38645
|
+
children: "Temporarily silence all notifications"
|
|
38646
|
+
})]
|
|
38647
|
+
}), /*#__PURE__*/jsx(Switch, {
|
|
38648
|
+
checked: doNotDisturb,
|
|
38649
|
+
onChange: handleDndToggle
|
|
38650
|
+
})]
|
|
38651
|
+
})]
|
|
38652
|
+
}), Object.keys(grouped).length > 0 ? Object.entries(grouped).map(function (_ref2) {
|
|
38653
|
+
var _ref3 = _slicedToArray(_ref2, 2),
|
|
38654
|
+
pkg = _ref3[0],
|
|
38655
|
+
widgets = _ref3[1];
|
|
38656
|
+
return /*#__PURE__*/jsxs("div", {
|
|
38657
|
+
className: "flex flex-col space-y-3",
|
|
38658
|
+
children: [/*#__PURE__*/jsx(SubHeading3, {
|
|
38659
|
+
title: pkg,
|
|
38660
|
+
padding: false
|
|
38661
|
+
}), widgets.map(function (wi) {
|
|
38662
|
+
return /*#__PURE__*/jsxs("div", {
|
|
38663
|
+
className: "flex flex-col space-y-2 pl-2 border-l-2 border-white/10",
|
|
38664
|
+
children: [/*#__PURE__*/jsx("span", {
|
|
38665
|
+
className: "text-sm font-medium opacity-80",
|
|
38666
|
+
children: wi.title
|
|
38667
|
+
}), wi.notifications.map(function (notif) {
|
|
38668
|
+
return /*#__PURE__*/jsxs("div", {
|
|
38669
|
+
className: "flex flex-row items-center justify-between py-1 pl-2",
|
|
38670
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
38671
|
+
className: "flex flex-col",
|
|
38672
|
+
children: [/*#__PURE__*/jsx("span", {
|
|
38673
|
+
className: "text-sm",
|
|
38674
|
+
children: notif.displayName
|
|
38675
|
+
}), notif.description && /*#__PURE__*/jsx("span", {
|
|
38676
|
+
className: "text-xs opacity-50",
|
|
38677
|
+
children: notif.description
|
|
38678
|
+
})]
|
|
38679
|
+
}), /*#__PURE__*/jsx(Switch, {
|
|
38680
|
+
checked: getTypeEnabled(wi.uuid, notif.key, notif.defaultEnabled),
|
|
38681
|
+
onChange: function onChange(value) {
|
|
38682
|
+
return handleTypeToggle(wi.uuid, notif.key, value);
|
|
38683
|
+
}
|
|
38684
|
+
})]
|
|
38685
|
+
}, notif.key);
|
|
38686
|
+
})]
|
|
38687
|
+
}, wi.uuid);
|
|
38688
|
+
})]
|
|
38689
|
+
}, pkg);
|
|
38690
|
+
}) : /*#__PURE__*/jsx("div", {
|
|
38691
|
+
className: "text-sm opacity-50",
|
|
38692
|
+
children: "No widgets with notification support found. Add widgets that declare notifications to see per-type controls here."
|
|
38693
|
+
})]
|
|
38694
|
+
})
|
|
38695
|
+
});
|
|
38696
|
+
};
|
|
38697
|
+
|
|
38698
|
+
/**
|
|
38699
|
+
* Recursively flatten a layout tree into a list of leaf items.
|
|
38700
|
+
*/
|
|
38701
|
+
function flattenLayout(layout) {
|
|
38702
|
+
if (!layout) return [];
|
|
38703
|
+
var items = [];
|
|
38704
|
+
if (Array.isArray(layout)) {
|
|
38705
|
+
layout.forEach(function (item) {
|
|
38706
|
+
return items.push.apply(items, _toConsumableArray(flattenLayout(item)));
|
|
38707
|
+
});
|
|
38708
|
+
} else if (_typeof(layout) === "object") {
|
|
38709
|
+
if (layout.children) {
|
|
38710
|
+
layout.children.forEach(function (child) {
|
|
38711
|
+
return items.push.apply(items, _toConsumableArray(flattenLayout(child)));
|
|
38712
|
+
});
|
|
38713
|
+
}
|
|
38714
|
+
if (layout.component) {
|
|
38715
|
+
items.push(layout);
|
|
38716
|
+
}
|
|
38717
|
+
}
|
|
38718
|
+
return items;
|
|
38719
|
+
}
|
|
38720
|
+
|
|
38384
38721
|
var SECTIONS = [{
|
|
38385
38722
|
key: "general",
|
|
38386
38723
|
label: "General",
|
|
@@ -38409,12 +38746,20 @@ var SECTIONS = [{
|
|
|
38409
38746
|
key: "themes",
|
|
38410
38747
|
label: "Themes",
|
|
38411
38748
|
icon: "palette"
|
|
38749
|
+
}, {
|
|
38750
|
+
key: "notifications",
|
|
38751
|
+
label: "Notifications",
|
|
38752
|
+
icon: "bell"
|
|
38412
38753
|
}];
|
|
38413
38754
|
var AppSettingsModal = function AppSettingsModal(_ref) {
|
|
38414
38755
|
var isOpen = _ref.isOpen,
|
|
38415
38756
|
setIsOpen = _ref.setIsOpen,
|
|
38416
38757
|
_ref$initialSection = _ref.initialSection,
|
|
38417
38758
|
initialSection = _ref$initialSection === void 0 ? "general" : _ref$initialSection,
|
|
38759
|
+
_ref$initialProviderN = _ref.initialProviderName,
|
|
38760
|
+
initialProviderName = _ref$initialProviderN === void 0 ? null : _ref$initialProviderN,
|
|
38761
|
+
_ref$initialCreatePro = _ref.initialCreateProvider,
|
|
38762
|
+
initialCreateProvider = _ref$initialCreatePro === void 0 ? false : _ref$initialCreatePro,
|
|
38418
38763
|
_ref$workspaces = _ref.workspaces,
|
|
38419
38764
|
workspaces = _ref$workspaces === void 0 ? [] : _ref$workspaces,
|
|
38420
38765
|
_ref$menuItems = _ref.menuItems,
|
|
@@ -38539,7 +38884,9 @@ var AppSettingsModal = function AppSettingsModal(_ref) {
|
|
|
38539
38884
|
createRequested: createRequested,
|
|
38540
38885
|
onCreateAcknowledged: function onCreateAcknowledged() {
|
|
38541
38886
|
return setCreateRequested(false);
|
|
38542
|
-
}
|
|
38887
|
+
},
|
|
38888
|
+
initialProviderName: initialProviderName,
|
|
38889
|
+
initialCreateRequested: initialCreateProvider
|
|
38543
38890
|
}), activeSection === "themes" && /*#__PURE__*/jsx(ThemesSection, {
|
|
38544
38891
|
onOpenThemeEditor: onOpenThemeEditor,
|
|
38545
38892
|
dashApi: dashApi,
|
|
@@ -38567,6 +38914,8 @@ var AppSettingsModal = function AppSettingsModal(_ref) {
|
|
|
38567
38914
|
}), activeSection === "general" && /*#__PURE__*/jsx("div", {
|
|
38568
38915
|
className: "flex-1 overflow-y-auto p-6 ".concat(panelStyles.textColor || "text-gray-200"),
|
|
38569
38916
|
children: /*#__PURE__*/jsx(GeneralSection, {})
|
|
38917
|
+
}), activeSection === "notifications" && /*#__PURE__*/jsx(NotificationsSection, {
|
|
38918
|
+
workspaces: workspaces
|
|
38570
38919
|
})]
|
|
38571
38920
|
}), /*#__PURE__*/jsx(SettingsModal.Footer, {
|
|
38572
38921
|
children: /*#__PURE__*/jsx("div", {
|
|
@@ -42356,5 +42705,5 @@ var WorkspaceMenu = function WorkspaceMenu(_ref) {
|
|
|
42356
42705
|
|
|
42357
42706
|
ComponentManager.registerContainerTypes(LayoutContainer, LayoutGridContainer);
|
|
42358
42707
|
|
|
42359
|
-
export { ALGOLIA_ANALYTICS_FOR_QUERY, ALGOLIA_ANALYTICS_FOR_QUERY_COMPLETE, ALGOLIA_ANALYTICS_FOR_QUERY_ERROR, ALGOLIA_LIST_INDICES, ALGOLIA_LIST_INDICES_COMPLETE, ALGOLIA_LIST_INDICES_ERROR, AVAILABLE_COLORS, AddMenuItemModal, AdvancedMcpConfig, AppContext, AppSettingsModal, AppThemeScope, AppWrapper, CHOOSE_FILE, CHOOSE_FILE_COMPLETE, CHOOSE_FILE_ERROR, ColorModel, ComponentConfigModel, ComponentManager, ContextModel, DATA_JSON_TO_CSV_FILE, DATA_JSON_TO_CSV_FILE_COMPLETE, DATA_JSON_TO_CSV_FILE_ERROR, DATA_JSON_TO_CSV_STRING, DATA_JSON_TO_CSV_STRING_COMPLETE, DATA_JSON_TO_CSV_STRING_ERROR, DATA_READ_FROM_FILE, DATA_READ_FROM_FILE_COMPLETE, DATA_READ_FROM_FILE_ERROR, DATA_SAVE_TO_FILE, DATA_SAVE_TO_FILE_COMPLETE, DATA_SAVE_TO_FILE_ERROR, DashCommandPalette, DashNavbar, DashSidebar, DashTabBar, DashboardStage as Dashboard, DashboardApi, DashboardContext, DashboardFooter, DashboardHeader, DashboardMenuItem, DashboardModel, DashboardMonitor, DashboardPublisher, DashboardStage, DashboardThemeProvider, DashboardWrapper, ElectronDashboardApi, ErrorBoundary, ExternalWidget, GRID_CELL_WIDGET_TYPE, HARMONY_STRATEGIES, LAYOUT_LIST, LAYOUT_LIST_COMPLETE, LAYOUT_LIST_ERROR, LAYOUT_SAVE, LAYOUT_SAVE_COMPLETE, LAYOUT_SAVE_ERROR, Layout, LayoutBuilder, LayoutBuilderAddItemModal, LayoutBuilderConfigContainerMenuItem, LayoutBuilderConfigMenuItem, LayoutBuilderConfigModal, LayoutBuilderEditItemModal, LayoutBuilderEventModal, LayoutBuilderGridItem, LayoutContainer, LayoutDragBuilder, LayoutDragBuilderEdit, LayoutGridContainer, LayoutManagerModal, LayoutModel, LayoutQuickAddMenu, MCP_CALL_TOOL_COMPLETE, MCP_CALL_TOOL_ERROR, MCP_GET_CATALOG_COMPLETE, MCP_GET_CATALOG_ERROR, MCP_LIST_RESOURCES_COMPLETE, MCP_LIST_RESOURCES_ERROR, MCP_LIST_TOOLS_COMPLETE, MCP_LIST_TOOLS_ERROR, MCP_READ_RESOURCE_COMPLETE, MCP_READ_RESOURCE_ERROR, MCP_RUN_AUTH_COMPLETE, MCP_RUN_AUTH_ERROR, MCP_SERVER_STATUS_COMPLETE, MCP_SERVER_STATUS_ERROR, MCP_START_SERVER_COMPLETE, MCP_START_SERVER_ERROR, MCP_STOP_SERVER_COMPLETE, MCP_STOP_SERVER_ERROR, MENU_ITEMS_DELETE, MENU_ITEMS_DELETE_COMPLETE, MENU_ITEMS_DELETE_ERROR, MENU_ITEMS_LIST, MENU_ITEMS_LIST_COMPLETE, MENU_ITEMS_LIST_ERROR, MENU_ITEMS_SAVE, MENU_ITEMS_SAVE_COMPLETE, MENU_ITEMS_SAVE_ERROR, MainMenu, MainMenuItem, MainMenuSection, McpServerPicker, MenuItemModel, MenuSlideOverlay, MergeCellsModal, MissingProviderPrompt, MockDashboardApi, PROVIDER_DELETE_COMPLETE, PROVIDER_DELETE_ERROR, PROVIDER_GET_COMPLETE, PROVIDER_GET_ERROR, PROVIDER_LIST_COMPLETE, PROVIDER_LIST_ERROR, PROVIDER_SAVE_COMPLETE, PROVIDER_SAVE_ERROR, PanelCode, PanelEditItem, PanelEditItemHandlers, ProviderContext, ProviderErrorBoundary, ProviderForm, ProviderSelector, SECURE_STORAGE_ENCRYPT_STRING, SECURE_STORAGE_ENCRYPT_STRING_COMPLETE, SECURE_STORAGE_ENCRYPT_STRING_ERROR, SECURE_STORE_ENCRYPTION_CHECK, SECURE_STORE_ENCRYPTION_CHECK_COMPLETE, SECURE_STORE_ENCRYPTION_CHECK_ERROR, SECURE_STORE_GET_DATA, SECURE_STORE_GET_DATA_COMPLETE, SECURE_STORE_GET_DATA_ERROR, SECURE_STORE_SET_DATA, SECURE_STORE_SET_DATA_COMPLETE, SECURE_STORE_SET_DATA_ERROR, SETTINGS_GET, SETTINGS_GET_COMPLETE, SETTINGS_GET_ERROR, SETTINGS_SAVE, SETTINGS_SAVE_COMPLETE, SETTINGS_SAVE_ERROR, SIDEBAR_WIDGET_TYPE, SettingsModel, SideMenu, SplitCellModal, THEME_DELETE, THEME_DELETE_COMPLETE, THEME_DELETE_ERROR, THEME_LIST, THEME_LIST_COMPLETE, THEME_LIST_ERROR, THEME_SAVE, THEME_SAVE_COMPLETE, THEME_SAVE_ERROR, ThemeApi, ThemeManagerModal, ThemeModel, ThemeWrapper, WORKSPACE_DELETE, WORKSPACE_DELETE_COMPLETE, WORKSPACE_DELETE_ERROR, WORKSPACE_LIST, WORKSPACE_LIST_COMPLETE, WORKSPACE_LIST_ERROR, WORKSPACE_SAVE, WORKSPACE_SAVE_COMPLETE, WORKSPACE_SAVE_ERROR, WebDashboardApi, Widget, WidgetApi, WidgetConfigPanel, WidgetContext, WidgetFactory, WidgetPopoutStage, WidgetProviderWrapper, WidgetSidebar, Workspace, WorkspaceContext, WorkspaceFooter, WorkspaceMenu, WorkspaceModel, addChildToLayoutItem, addItemToItemLayout, buildMcpConfigFromOverrides, canHaveChildren, changeDirectionForLayoutItem, createProviderRegistry, deriveFormFields, envMappingToRows, evaluateBundle, extractWidgetConfigs, formStateToMcpJson, formatFieldName, generateCustomTheme, generateHarmonyTheme, generateRandomTheme, generateThemeName, getBorderStyle, getChildrenForLayoutItem, getComponentInLayout, getContainerBorderColor, getContainerColor, getIndexOfLayoutChildrenForItem, getIndexOfLayoutItem, getLayoutItemById, getLayoutItemForWorkspace, getNearestParentWorkspace, getNextHighestId, getNextHighestItemInLayout, getNextHighestOrder, getNextHighestParentId, getNextLowestItemInLayout, getParentForLayoutItem, getParentWorkspaceForItem, getThemePresets, getWidgetsForWorkspace, getWorkspacesForWorkspace, headerTemplateToRows, isContainer, isLikelySecret, isMaxOrderForItem, isMinOrderForItem, isWidget, isWidgetResolvable, isWorkspace, layoutItemHasWorkspaceAsChild, loadWidgetBundle, mcpJsonToFormState, numChildrenForLayout, removeItemFromLayout, renderComponent, renderGridLayout, renderGridLayoutFlow, _renderLayout as renderLayout, renderLayoutMenu, replaceItemInLayout, resolveIcon, setHostModules, traverseParentTree, updateLayoutItem, updateParentForItem, useDashboard, useMcpProvider, useProvider, useProviderClient, useWidgetEvents, useWidgetProviders, validateCellMerge, validateGridCell, validateGridPlacement, validateWidgetPlacement, withProviderDetection };
|
|
42708
|
+
export { ALGOLIA_ANALYTICS_FOR_QUERY, ALGOLIA_ANALYTICS_FOR_QUERY_COMPLETE, ALGOLIA_ANALYTICS_FOR_QUERY_ERROR, ALGOLIA_LIST_INDICES, ALGOLIA_LIST_INDICES_COMPLETE, ALGOLIA_LIST_INDICES_ERROR, AVAILABLE_COLORS, AddMenuItemModal, AdvancedMcpConfig, AppContext, AppSettingsModal, AppThemeScope, AppWrapper, CHOOSE_FILE, CHOOSE_FILE_COMPLETE, CHOOSE_FILE_ERROR, ColorModel, ComponentConfigModel, ComponentManager, ContextModel, DATA_JSON_TO_CSV_FILE, DATA_JSON_TO_CSV_FILE_COMPLETE, DATA_JSON_TO_CSV_FILE_ERROR, DATA_JSON_TO_CSV_STRING, DATA_JSON_TO_CSV_STRING_COMPLETE, DATA_JSON_TO_CSV_STRING_ERROR, DATA_READ_FROM_FILE, DATA_READ_FROM_FILE_COMPLETE, DATA_READ_FROM_FILE_ERROR, DATA_SAVE_TO_FILE, DATA_SAVE_TO_FILE_COMPLETE, DATA_SAVE_TO_FILE_ERROR, DashCommandPalette, DashNavbar, DashSidebar, DashTabBar, DashboardStage as Dashboard, DashboardApi, DashboardContext, DashboardFooter, DashboardHeader, DashboardMenuItem, DashboardModel, DashboardMonitor, DashboardPublisher, DashboardStage, DashboardThemeProvider, DashboardWrapper, ElectronDashboardApi, ErrorBoundary, ExternalWidget, GRID_CELL_WIDGET_TYPE, HARMONY_STRATEGIES, LAYOUT_LIST, LAYOUT_LIST_COMPLETE, LAYOUT_LIST_ERROR, LAYOUT_SAVE, LAYOUT_SAVE_COMPLETE, LAYOUT_SAVE_ERROR, Layout, LayoutBuilder, LayoutBuilderAddItemModal, LayoutBuilderConfigContainerMenuItem, LayoutBuilderConfigMenuItem, LayoutBuilderConfigModal, LayoutBuilderEditItemModal, LayoutBuilderEventModal, LayoutBuilderGridItem, LayoutContainer, LayoutDragBuilder, LayoutDragBuilderEdit, LayoutGridContainer, LayoutManagerModal, LayoutModel, LayoutQuickAddMenu, MCP_CALL_TOOL_COMPLETE, MCP_CALL_TOOL_ERROR, MCP_GET_CATALOG_COMPLETE, MCP_GET_CATALOG_ERROR, MCP_LIST_RESOURCES_COMPLETE, MCP_LIST_RESOURCES_ERROR, MCP_LIST_TOOLS_COMPLETE, MCP_LIST_TOOLS_ERROR, MCP_READ_RESOURCE_COMPLETE, MCP_READ_RESOURCE_ERROR, MCP_RUN_AUTH_COMPLETE, MCP_RUN_AUTH_ERROR, MCP_SERVER_STATUS_COMPLETE, MCP_SERVER_STATUS_ERROR, MCP_START_SERVER_COMPLETE, MCP_START_SERVER_ERROR, MCP_STOP_SERVER_COMPLETE, MCP_STOP_SERVER_ERROR, MENU_ITEMS_DELETE, MENU_ITEMS_DELETE_COMPLETE, MENU_ITEMS_DELETE_ERROR, MENU_ITEMS_LIST, MENU_ITEMS_LIST_COMPLETE, MENU_ITEMS_LIST_ERROR, MENU_ITEMS_SAVE, MENU_ITEMS_SAVE_COMPLETE, MENU_ITEMS_SAVE_ERROR, MainMenu, MainMenuItem, MainMenuSection, McpServerPicker, MenuItemModel, MenuSlideOverlay, MergeCellsModal, MissingProviderPrompt, MockDashboardApi, PROVIDER_DELETE_COMPLETE, PROVIDER_DELETE_ERROR, PROVIDER_GET_COMPLETE, PROVIDER_GET_ERROR, PROVIDER_LIST_COMPLETE, PROVIDER_LIST_ERROR, PROVIDER_SAVE_COMPLETE, PROVIDER_SAVE_ERROR, PanelCode, PanelEditItem, PanelEditItemHandlers, ProviderContext, ProviderErrorBoundary, ProviderForm, ProviderSelector, SECURE_STORAGE_ENCRYPT_STRING, SECURE_STORAGE_ENCRYPT_STRING_COMPLETE, SECURE_STORAGE_ENCRYPT_STRING_ERROR, SECURE_STORE_ENCRYPTION_CHECK, SECURE_STORE_ENCRYPTION_CHECK_COMPLETE, SECURE_STORE_ENCRYPTION_CHECK_ERROR, SECURE_STORE_GET_DATA, SECURE_STORE_GET_DATA_COMPLETE, SECURE_STORE_GET_DATA_ERROR, SECURE_STORE_SET_DATA, SECURE_STORE_SET_DATA_COMPLETE, SECURE_STORE_SET_DATA_ERROR, SETTINGS_GET, SETTINGS_GET_COMPLETE, SETTINGS_GET_ERROR, SETTINGS_SAVE, SETTINGS_SAVE_COMPLETE, SETTINGS_SAVE_ERROR, SIDEBAR_WIDGET_TYPE, SettingsModel, SideMenu, SplitCellModal, THEME_DELETE, THEME_DELETE_COMPLETE, THEME_DELETE_ERROR, THEME_LIST, THEME_LIST_COMPLETE, THEME_LIST_ERROR, THEME_SAVE, THEME_SAVE_COMPLETE, THEME_SAVE_ERROR, ThemeApi, ThemeManagerModal, ThemeModel, ThemeWrapper, WORKSPACE_DELETE, WORKSPACE_DELETE_COMPLETE, WORKSPACE_DELETE_ERROR, WORKSPACE_LIST, WORKSPACE_LIST_COMPLETE, WORKSPACE_LIST_ERROR, WORKSPACE_SAVE, WORKSPACE_SAVE_COMPLETE, WORKSPACE_SAVE_ERROR, WebDashboardApi, Widget, WidgetApi, WidgetConfigPanel, WidgetContext, WidgetFactory, WidgetPopoutStage, WidgetProviderWrapper, WidgetSidebar, Workspace, WorkspaceContext, WorkspaceFooter, WorkspaceMenu, WorkspaceModel, addChildToLayoutItem, addItemToItemLayout, buildMcpConfigFromOverrides, canHaveChildren, changeDirectionForLayoutItem, createProviderRegistry, deriveFormFields, envMappingToRows, evaluateBundle, extractWidgetConfigs, formStateToMcpJson, formatFieldName, generateCustomTheme, generateHarmonyTheme, generateRandomTheme, generateThemeName, getBorderStyle, getChildrenForLayoutItem, getComponentInLayout, getContainerBorderColor, getContainerColor, getIndexOfLayoutChildrenForItem, getIndexOfLayoutItem, getLayoutItemById, getLayoutItemForWorkspace, getNearestParentWorkspace, getNextHighestId, getNextHighestItemInLayout, getNextHighestOrder, getNextHighestParentId, getNextLowestItemInLayout, getParentForLayoutItem, getParentWorkspaceForItem, getThemePresets, getWidgetsForWorkspace, getWorkspacesForWorkspace, headerTemplateToRows, isContainer, isLikelySecret, isMaxOrderForItem, isMinOrderForItem, isWidget, isWidgetResolvable, isWorkspace, layoutItemHasWorkspaceAsChild, loadWidgetBundle, mcpJsonToFormState, numChildrenForLayout, removeItemFromLayout, renderComponent, renderGridLayout, renderGridLayoutFlow, _renderLayout as renderLayout, renderLayoutMenu, replaceItemInLayout, resolveIcon, setHostModules, traverseParentTree, updateLayoutItem, updateParentForItem, useDashboard, useMcpProvider, useNotifications, useProvider, useProviderClient, useWidgetEvents, useWidgetProviders, validateCellMerge, validateGridCell, validateGridPlacement, validateWidgetPlacement, withProviderDetection };
|
|
42360
42709
|
//# sourceMappingURL=index.esm.js.map
|