@trops/dash-core 0.1.113 → 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 +640 -283
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +639 -281
- 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
|
|
@@ -21751,6 +21805,14 @@ var ThemeModel = function ThemeModel() {
|
|
|
21751
21805
|
});
|
|
21752
21806
|
theme["dark"]["name"] = theme.name;
|
|
21753
21807
|
|
|
21808
|
+
// Darkest shade (950 dark / 50 light) for stage backgrounds.
|
|
21809
|
+
// Added outside the variant loop to avoid generating invalid text/border
|
|
21810
|
+
// classes (invert(950) would be negative).
|
|
21811
|
+
colorTypes.forEach(function (type) {
|
|
21812
|
+
theme["dark"]["bg-".concat(type, "-darkest")] = "bg-".concat(theme[type], "-950");
|
|
21813
|
+
theme["light"]["bg-".concat(type, "-darkest")] = "bg-".concat(theme[type], "-50");
|
|
21814
|
+
});
|
|
21815
|
+
|
|
21754
21816
|
// transparent colors
|
|
21755
21817
|
theme["dark"]["bg-none"] = "bg-transparent";
|
|
21756
21818
|
theme["dark"]["border-none"] = "border-transparent";
|
|
@@ -21875,6 +21937,13 @@ var ComponentConfigModel = function ComponentConfigModel() {
|
|
|
21875
21937
|
obj.icon = "icon" in obj ? obj["icon"] : null;
|
|
21876
21938
|
obj["package"] = "package" in obj ? obj["package"] : null;
|
|
21877
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"] : [];
|
|
21878
21947
|
return obj;
|
|
21879
21948
|
};
|
|
21880
21949
|
|
|
@@ -21888,8 +21957,8 @@ var MenuItemModel = function MenuItemModel() {
|
|
|
21888
21957
|
return m;
|
|
21889
21958
|
};
|
|
21890
21959
|
|
|
21891
|
-
function ownKeys$
|
|
21892
|
-
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; }
|
|
21893
21962
|
/**
|
|
21894
21963
|
* A Model for a Workspace (Dashboard)
|
|
21895
21964
|
* The Dashboard in this instance is the entire Layout inclusive of the workspaces and widgets
|
|
@@ -23153,7 +23222,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
23153
23222
|
visibleCells.push({
|
|
23154
23223
|
row: r,
|
|
23155
23224
|
col: c,
|
|
23156
|
-
data: _objectSpread$
|
|
23225
|
+
data: _objectSpread$j({}, cell),
|
|
23157
23226
|
spanCol: ((_cell$span = cell.span) === null || _cell$span === void 0 ? void 0 : _cell$span.col) || 1,
|
|
23158
23227
|
spanRow: ((_cell$span2 = cell.span) === null || _cell$span2 === void 0 ? void 0 : _cell$span2.row) || 1
|
|
23159
23228
|
});
|
|
@@ -23175,7 +23244,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
23175
23244
|
var vc = _visibleCells[_i5];
|
|
23176
23245
|
var newCol = (vc.col - 1) * count + 1;
|
|
23177
23246
|
var _key7 = "".concat(vc.row, ".").concat(newCol);
|
|
23178
|
-
grid[_key7] = _objectSpread$
|
|
23247
|
+
grid[_key7] = _objectSpread$j(_objectSpread$j({}, vc.data), {}, {
|
|
23179
23248
|
hide: false,
|
|
23180
23249
|
span: {
|
|
23181
23250
|
row: vc.spanRow,
|
|
@@ -23250,7 +23319,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
23250
23319
|
_visibleCells2.push({
|
|
23251
23320
|
row: _r1,
|
|
23252
23321
|
col: _c10,
|
|
23253
|
-
data: _objectSpread$
|
|
23322
|
+
data: _objectSpread$j({}, _cell6),
|
|
23254
23323
|
spanRow: ((_cell6$span = _cell6.span) === null || _cell6$span === void 0 ? void 0 : _cell6$span.row) || 1,
|
|
23255
23324
|
spanCol: ((_cell6$span2 = _cell6.span) === null || _cell6$span2 === void 0 ? void 0 : _cell6$span2.col) || 1
|
|
23256
23325
|
});
|
|
@@ -23272,7 +23341,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
23272
23341
|
var _vc = _visibleCells3[_i9];
|
|
23273
23342
|
var newRow = (_vc.row - 1) * count + 1;
|
|
23274
23343
|
var _key10 = "".concat(newRow, ".").concat(_vc.col);
|
|
23275
|
-
grid[_key10] = _objectSpread$
|
|
23344
|
+
grid[_key10] = _objectSpread$j(_objectSpread$j({}, _vc.data), {}, {
|
|
23276
23345
|
hide: false,
|
|
23277
23346
|
span: {
|
|
23278
23347
|
row: _vc.spanRow * count,
|
|
@@ -24416,8 +24485,8 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
|
24416
24485
|
}]);
|
|
24417
24486
|
}(React__default.Component);
|
|
24418
24487
|
|
|
24419
|
-
function ownKeys$
|
|
24420
|
-
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; }
|
|
24421
24490
|
|
|
24422
24491
|
/**
|
|
24423
24492
|
* useDashboard Hook
|
|
@@ -24473,7 +24542,7 @@ var useDashboard = function useDashboard() {
|
|
|
24473
24542
|
}
|
|
24474
24543
|
});
|
|
24475
24544
|
}
|
|
24476
|
-
return _objectSpread$
|
|
24545
|
+
return _objectSpread$i({
|
|
24477
24546
|
app: app,
|
|
24478
24547
|
dashboard: dashboard,
|
|
24479
24548
|
theme: theme
|
|
@@ -25204,8 +25273,74 @@ function useProviderClient(provider) {
|
|
|
25204
25273
|
};
|
|
25205
25274
|
}
|
|
25206
25275
|
|
|
25207
|
-
|
|
25208
|
-
|
|
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; }
|
|
25209
25344
|
var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
25210
25345
|
var theme = _ref.theme,
|
|
25211
25346
|
themeVariant = _ref.themeVariant,
|
|
@@ -25254,13 +25389,13 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25254
25389
|
className: "flex flex-col space-y-4 p-4",
|
|
25255
25390
|
children: [/*#__PURE__*/jsxs("div", {
|
|
25256
25391
|
className: "flex flex-row bg-gray-900 p-4 space-x-4 rounded justify-between",
|
|
25257
|
-
children: [/*#__PURE__*/jsxs(Panel, _objectSpread$
|
|
25392
|
+
children: [/*#__PURE__*/jsxs(Panel, _objectSpread$h(_objectSpread$h({}, styles), {}, {
|
|
25258
25393
|
scrollable: false,
|
|
25259
25394
|
className: "rounded",
|
|
25260
25395
|
children: [/*#__PURE__*/jsx(Panel.Header, {
|
|
25261
25396
|
className: "text-xs uppercase font-bold",
|
|
25262
25397
|
children: "Panel"
|
|
25263
|
-
}), /*#__PURE__*/jsx(Panel.Body, _objectSpread$
|
|
25398
|
+
}), /*#__PURE__*/jsx(Panel.Body, _objectSpread$h(_objectSpread$h({}, styles), {}, {
|
|
25264
25399
|
onClick: function onClick() {
|
|
25265
25400
|
handleClickItem(themeObjects.PANEL, styles);
|
|
25266
25401
|
}
|
|
@@ -25268,14 +25403,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25268
25403
|
className: "text-xs uppercase font-light",
|
|
25269
25404
|
children: getCSSStyleForClassname("backgroundColor", themeObjects.PANEL)
|
|
25270
25405
|
})]
|
|
25271
|
-
})), /*#__PURE__*/jsxs(Panel2, _objectSpread$
|
|
25406
|
+
})), /*#__PURE__*/jsxs(Panel2, _objectSpread$h(_objectSpread$h({
|
|
25272
25407
|
className: "rounded"
|
|
25273
25408
|
}, styles2), {}, {
|
|
25274
25409
|
scrollable: false,
|
|
25275
25410
|
children: [/*#__PURE__*/jsx(Panel2.Header, {
|
|
25276
25411
|
className: "text-xs uppercase font-bold",
|
|
25277
25412
|
children: "Panel 2"
|
|
25278
|
-
}), /*#__PURE__*/jsx(Panel2.Body, _objectSpread$
|
|
25413
|
+
}), /*#__PURE__*/jsx(Panel2.Body, _objectSpread$h(_objectSpread$h({}, styles2), {}, {
|
|
25279
25414
|
onClick: function onClick() {
|
|
25280
25415
|
handleClickItem(themeObjects.PANEL_2, styles2);
|
|
25281
25416
|
}
|
|
@@ -25283,14 +25418,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25283
25418
|
className: "text-xs uppercase font-light",
|
|
25284
25419
|
children: getCSSStyleForClassname("backgroundColor", themeObjects.PANEL_2)
|
|
25285
25420
|
})]
|
|
25286
|
-
})), /*#__PURE__*/jsxs(Panel3, _objectSpread$
|
|
25421
|
+
})), /*#__PURE__*/jsxs(Panel3, _objectSpread$h(_objectSpread$h({
|
|
25287
25422
|
className: "rounded"
|
|
25288
25423
|
}, styles3), {}, {
|
|
25289
25424
|
scrollable: false,
|
|
25290
25425
|
children: [/*#__PURE__*/jsx(Panel3.Header, {
|
|
25291
25426
|
className: "text-xs uppercase font-bold",
|
|
25292
25427
|
children: "Panel 3"
|
|
25293
|
-
}), /*#__PURE__*/jsx(Panel3.Body, _objectSpread$
|
|
25428
|
+
}), /*#__PURE__*/jsx(Panel3.Body, _objectSpread$h(_objectSpread$h({}, styles3), {}, {
|
|
25294
25429
|
onClick: function onClick() {
|
|
25295
25430
|
handleClickItem(themeObjects.PANEL_3, styles3);
|
|
25296
25431
|
}
|
|
@@ -25299,68 +25434,68 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25299
25434
|
children: getCSSStyleForClassname("backgroundColor", themeObjects.PANEL_3)
|
|
25300
25435
|
})]
|
|
25301
25436
|
}))]
|
|
25302
|
-
}), /*#__PURE__*/jsxs(Panel, _objectSpread$
|
|
25437
|
+
}), /*#__PURE__*/jsxs(Panel, _objectSpread$h(_objectSpread$h({
|
|
25303
25438
|
className: "p-6 rounded border-4 space-y-4",
|
|
25304
25439
|
scrollable: false,
|
|
25305
25440
|
height: "h-fit"
|
|
25306
25441
|
}, styles), {}, {
|
|
25307
|
-
children: [/*#__PURE__*/jsx(Heading, _objectSpread$
|
|
25442
|
+
children: [/*#__PURE__*/jsx(Heading, _objectSpread$h(_objectSpread$h({
|
|
25308
25443
|
title: "Heading"
|
|
25309
25444
|
}, headingStyles), {}, {
|
|
25310
25445
|
padding: false,
|
|
25311
25446
|
onClick: function onClick() {
|
|
25312
25447
|
return handleClickItem(themeObjects.HEADING, headingStyles);
|
|
25313
25448
|
}
|
|
25314
|
-
})), /*#__PURE__*/jsx(Heading2, _objectSpread$
|
|
25449
|
+
})), /*#__PURE__*/jsx(Heading2, _objectSpread$h(_objectSpread$h({
|
|
25315
25450
|
title: "Heading 2"
|
|
25316
25451
|
}, heading2Styles), {}, {
|
|
25317
25452
|
padding: false,
|
|
25318
25453
|
onClick: function onClick() {
|
|
25319
25454
|
return handleClickItem(themeObjects.HEADING_2, heading2Styles);
|
|
25320
25455
|
}
|
|
25321
|
-
})), /*#__PURE__*/jsx(Heading3, _objectSpread$
|
|
25456
|
+
})), /*#__PURE__*/jsx(Heading3, _objectSpread$h(_objectSpread$h({
|
|
25322
25457
|
title: "Heading 3"
|
|
25323
25458
|
}, heading3Styles), {}, {
|
|
25324
25459
|
padding: false,
|
|
25325
25460
|
onClick: function onClick() {
|
|
25326
25461
|
return handleClickItem(themeObjects.HEADING_3, heading3Styles);
|
|
25327
25462
|
}
|
|
25328
|
-
})), /*#__PURE__*/jsx(SubHeading, _objectSpread$
|
|
25463
|
+
})), /*#__PURE__*/jsx(SubHeading, _objectSpread$h(_objectSpread$h({
|
|
25329
25464
|
title: "Subheading"
|
|
25330
25465
|
}, subHeadingStyles), {}, {
|
|
25331
25466
|
padding: false,
|
|
25332
25467
|
onClick: function onClick() {
|
|
25333
25468
|
return handleClickItem(themeObjects.SUBHEADING, subHeadingStyles);
|
|
25334
25469
|
}
|
|
25335
|
-
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$
|
|
25470
|
+
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$h(_objectSpread$h({
|
|
25336
25471
|
title: "Subheading 2"
|
|
25337
25472
|
}, subHeading2Styles), {}, {
|
|
25338
25473
|
padding: false,
|
|
25339
25474
|
onClick: function onClick() {
|
|
25340
25475
|
return handleClickItem(themeObjects.SUBHEADING_2, subHeading2Styles);
|
|
25341
25476
|
}
|
|
25342
|
-
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$
|
|
25477
|
+
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$h(_objectSpread$h({
|
|
25343
25478
|
title: "Subheading"
|
|
25344
25479
|
}, subHeading3Styles), {}, {
|
|
25345
25480
|
padding: false,
|
|
25346
25481
|
onClick: function onClick() {
|
|
25347
25482
|
return handleClickItem(themeObjects.SUBHEADING_3, subHeading3Styles);
|
|
25348
25483
|
}
|
|
25349
|
-
})), /*#__PURE__*/jsx(Paragraph, _objectSpread$
|
|
25484
|
+
})), /*#__PURE__*/jsx(Paragraph, _objectSpread$h(_objectSpread$h({
|
|
25350
25485
|
text: "The quick brown fox jumps over the lazy dog."
|
|
25351
25486
|
}, paragraphStyles), {}, {
|
|
25352
25487
|
padding: false,
|
|
25353
25488
|
onClick: function onClick() {
|
|
25354
25489
|
return handleClickItem(themeObjects.PARAGRAPH, paragraphStyles);
|
|
25355
25490
|
}
|
|
25356
|
-
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$
|
|
25491
|
+
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$h(_objectSpread$h({
|
|
25357
25492
|
text: "The quick brown fox jumps over the lazy dog."
|
|
25358
25493
|
}, paragraph2Styles), {}, {
|
|
25359
25494
|
padding: false,
|
|
25360
25495
|
onClick: function onClick() {
|
|
25361
25496
|
return handleClickItem(themeObjects.PARAGRAPH_2, paragraph2Styles);
|
|
25362
25497
|
}
|
|
25363
|
-
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$
|
|
25498
|
+
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$h(_objectSpread$h({
|
|
25364
25499
|
text: "The quick brown fox jumps over the lazy dog."
|
|
25365
25500
|
}, paragraph3Styles), {}, {
|
|
25366
25501
|
padding: false,
|
|
@@ -25369,19 +25504,19 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25369
25504
|
}
|
|
25370
25505
|
})), /*#__PURE__*/jsxs("div", {
|
|
25371
25506
|
className: "flex flex-row space-x-2 w-full",
|
|
25372
|
-
children: [/*#__PURE__*/jsx(Button, _objectSpread$
|
|
25507
|
+
children: [/*#__PURE__*/jsx(Button, _objectSpread$h(_objectSpread$h({
|
|
25373
25508
|
title: "Button"
|
|
25374
25509
|
}, buttonStyles), {}, {
|
|
25375
25510
|
onClick: function onClick() {
|
|
25376
25511
|
return handleClickItem(themeObjects.BUTTON, buttonStyles);
|
|
25377
25512
|
}
|
|
25378
|
-
})), /*#__PURE__*/jsx(Button2, _objectSpread$
|
|
25513
|
+
})), /*#__PURE__*/jsx(Button2, _objectSpread$h(_objectSpread$h({
|
|
25379
25514
|
title: "Button 2"
|
|
25380
25515
|
}, button2Styles), {}, {
|
|
25381
25516
|
onClick: function onClick() {
|
|
25382
25517
|
return handleClickItem(themeObjects.BUTTON_2, button2Styles);
|
|
25383
25518
|
}
|
|
25384
|
-
})), /*#__PURE__*/jsx(Button3, _objectSpread$
|
|
25519
|
+
})), /*#__PURE__*/jsx(Button3, _objectSpread$h(_objectSpread$h({
|
|
25385
25520
|
title: "Button 3"
|
|
25386
25521
|
}, button3Styles), {}, {
|
|
25387
25522
|
onClick: function onClick() {
|
|
@@ -25392,14 +25527,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25392
25527
|
className: "flex flex-row space-x-4 w-full h-fit",
|
|
25393
25528
|
children: [/*#__PURE__*/jsxs("div", {
|
|
25394
25529
|
className: "flex flex-row space-x-2",
|
|
25395
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25530
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25396
25531
|
text: "Button Icon",
|
|
25397
25532
|
icon: "pencil"
|
|
25398
25533
|
}, buttonIconStyles), {}, {
|
|
25399
25534
|
onClick: function onClick() {
|
|
25400
25535
|
return handleClickItem(themeObjects.BUTTON_ICON, buttonIconStyles);
|
|
25401
25536
|
}
|
|
25402
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25537
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25403
25538
|
icon: "pencil"
|
|
25404
25539
|
}, buttonIconStyles), {}, {
|
|
25405
25540
|
onClick: function onClick() {
|
|
@@ -25408,14 +25543,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25408
25543
|
}))]
|
|
25409
25544
|
}), /*#__PURE__*/jsxs("div", {
|
|
25410
25545
|
className: "flex flex-row space-x-2",
|
|
25411
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25546
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25412
25547
|
text: "Button Icon 2",
|
|
25413
25548
|
icon: "pencil"
|
|
25414
25549
|
}, buttonIconStyles), {}, {
|
|
25415
25550
|
onClick: function onClick() {
|
|
25416
25551
|
return handleClickItem(themeObjects.BUTTON_ICON_2, buttonIcon2Styles);
|
|
25417
25552
|
}
|
|
25418
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25553
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25419
25554
|
icon: "pencil"
|
|
25420
25555
|
}, buttonIconStyles), {}, {
|
|
25421
25556
|
onClick: function onClick() {
|
|
@@ -25424,14 +25559,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25424
25559
|
}))]
|
|
25425
25560
|
}), /*#__PURE__*/jsxs("div", {
|
|
25426
25561
|
className: "flex flex-row space-x-2",
|
|
25427
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25562
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25428
25563
|
text: "Button Icon 3",
|
|
25429
25564
|
icon: "pencil"
|
|
25430
25565
|
}, buttonIcon3Styles), {}, {
|
|
25431
25566
|
onClick: function onClick() {
|
|
25432
25567
|
return handleClickItem(themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
25433
25568
|
}
|
|
25434
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25569
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25435
25570
|
icon: "pencil"
|
|
25436
25571
|
}, buttonIcon3Styles), {}, {
|
|
25437
25572
|
onClick: function onClick() {
|
|
@@ -25441,17 +25576,17 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25441
25576
|
})]
|
|
25442
25577
|
}), /*#__PURE__*/jsxs("div", {
|
|
25443
25578
|
className: "flex flex-col space-y-2 w-full",
|
|
25444
|
-
children: [/*#__PURE__*/jsx(MenuItem, _objectSpread$
|
|
25579
|
+
children: [/*#__PURE__*/jsx(MenuItem, _objectSpread$h(_objectSpread$h({}, menuItemStyles), {}, {
|
|
25445
25580
|
onClick: function onClick() {
|
|
25446
25581
|
return handleClickItem(themeObjects.MENU_ITEM, menuItemStyles);
|
|
25447
25582
|
},
|
|
25448
25583
|
children: "Menu Item"
|
|
25449
|
-
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$
|
|
25584
|
+
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$h(_objectSpread$h({}, menuItem2Styles), {}, {
|
|
25450
25585
|
onClick: function onClick() {
|
|
25451
25586
|
return handleClickItem(themeObjects.MENU_ITEM_2, menuItem2Styles);
|
|
25452
25587
|
},
|
|
25453
25588
|
children: "Menu Item 2"
|
|
25454
|
-
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$
|
|
25589
|
+
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$h(_objectSpread$h({}, menuItem3Styles), {}, {
|
|
25455
25590
|
onClick: function onClick() {
|
|
25456
25591
|
return handleClickItem(themeObjects.MENU_ITEM_3, menuItem3Styles);
|
|
25457
25592
|
},
|
|
@@ -25459,21 +25594,21 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25459
25594
|
}))]
|
|
25460
25595
|
}), /*#__PURE__*/jsxs("div", {
|
|
25461
25596
|
className: "flex flex-row space-x-2 w-full",
|
|
25462
|
-
children: [/*#__PURE__*/jsx(Tag, _objectSpread$
|
|
25597
|
+
children: [/*#__PURE__*/jsx(Tag, _objectSpread$h(_objectSpread$h({
|
|
25463
25598
|
text: "Tag",
|
|
25464
25599
|
icon: "pencil"
|
|
25465
25600
|
}, tagStyles), {}, {
|
|
25466
25601
|
onClick: function onClick() {
|
|
25467
25602
|
return handleClickItem(themeObjects.TAG, tagStyles);
|
|
25468
25603
|
}
|
|
25469
|
-
})), /*#__PURE__*/jsx(Tag2, _objectSpread$
|
|
25604
|
+
})), /*#__PURE__*/jsx(Tag2, _objectSpread$h(_objectSpread$h({
|
|
25470
25605
|
text: "Tag 2",
|
|
25471
25606
|
icon: "pencil"
|
|
25472
25607
|
}, tag2Styles), {}, {
|
|
25473
25608
|
onClick: function onClick() {
|
|
25474
25609
|
return handleClickItem(themeObjects.TAG_2, tag2Styles);
|
|
25475
25610
|
}
|
|
25476
|
-
})), /*#__PURE__*/jsx(Tag3, _objectSpread$
|
|
25611
|
+
})), /*#__PURE__*/jsx(Tag3, _objectSpread$h(_objectSpread$h({
|
|
25477
25612
|
text: "Tag 3",
|
|
25478
25613
|
icon: "pencil"
|
|
25479
25614
|
}, tag3Styles), {}, {
|
|
@@ -25482,67 +25617,67 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25482
25617
|
}
|
|
25483
25618
|
}))]
|
|
25484
25619
|
})]
|
|
25485
|
-
})), /*#__PURE__*/jsxs(Panel2, _objectSpread$
|
|
25620
|
+
})), /*#__PURE__*/jsxs(Panel2, _objectSpread$h(_objectSpread$h({
|
|
25486
25621
|
className: "p-6 rounded border-4 space-y-4",
|
|
25487
25622
|
height: "h-fit"
|
|
25488
25623
|
}, styles2), {}, {
|
|
25489
|
-
children: [/*#__PURE__*/jsx(Heading, _objectSpread$
|
|
25624
|
+
children: [/*#__PURE__*/jsx(Heading, _objectSpread$h(_objectSpread$h({
|
|
25490
25625
|
title: "Heading"
|
|
25491
25626
|
}, headingStyles), {}, {
|
|
25492
25627
|
padding: false,
|
|
25493
25628
|
onClick: function onClick() {
|
|
25494
25629
|
return handleClickItem(themeObjects.HEADING, headingStyles);
|
|
25495
25630
|
}
|
|
25496
|
-
})), /*#__PURE__*/jsx(Heading2, _objectSpread$
|
|
25631
|
+
})), /*#__PURE__*/jsx(Heading2, _objectSpread$h(_objectSpread$h({
|
|
25497
25632
|
title: "Heading 2"
|
|
25498
25633
|
}, heading2Styles), {}, {
|
|
25499
25634
|
padding: false,
|
|
25500
25635
|
onClick: function onClick() {
|
|
25501
25636
|
return handleClickItem(themeObjects.HEADING_2, heading2Styles);
|
|
25502
25637
|
}
|
|
25503
|
-
})), /*#__PURE__*/jsx(Heading3, _objectSpread$
|
|
25638
|
+
})), /*#__PURE__*/jsx(Heading3, _objectSpread$h(_objectSpread$h({
|
|
25504
25639
|
title: "Heading 3"
|
|
25505
25640
|
}, heading3Styles), {}, {
|
|
25506
25641
|
padding: false,
|
|
25507
25642
|
onClick: function onClick() {
|
|
25508
25643
|
return handleClickItem(themeObjects.HEADING_3, heading3Styles);
|
|
25509
25644
|
}
|
|
25510
|
-
})), /*#__PURE__*/jsx(SubHeading, _objectSpread$
|
|
25645
|
+
})), /*#__PURE__*/jsx(SubHeading, _objectSpread$h(_objectSpread$h({
|
|
25511
25646
|
title: "Subheading"
|
|
25512
25647
|
}, subHeadingStyles), {}, {
|
|
25513
25648
|
padding: false,
|
|
25514
25649
|
onClick: function onClick() {
|
|
25515
25650
|
return handleClickItem(themeObjects.SUBHEADING, subHeadingStyles);
|
|
25516
25651
|
}
|
|
25517
|
-
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$
|
|
25652
|
+
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$h(_objectSpread$h({
|
|
25518
25653
|
title: "Subheading 2"
|
|
25519
25654
|
}, subHeading2Styles), {}, {
|
|
25520
25655
|
padding: false,
|
|
25521
25656
|
onClick: function onClick() {
|
|
25522
25657
|
return handleClickItem(themeObjects.SUBHEADING_2, subHeading2Styles);
|
|
25523
25658
|
}
|
|
25524
|
-
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$
|
|
25659
|
+
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$h(_objectSpread$h({
|
|
25525
25660
|
title: "Subheading"
|
|
25526
25661
|
}, subHeading3Styles), {}, {
|
|
25527
25662
|
padding: false,
|
|
25528
25663
|
onClick: function onClick() {
|
|
25529
25664
|
return handleClickItem(themeObjects.SUBHEADING_3, subHeading3Styles);
|
|
25530
25665
|
}
|
|
25531
|
-
})), /*#__PURE__*/jsx(Paragraph, _objectSpread$
|
|
25666
|
+
})), /*#__PURE__*/jsx(Paragraph, _objectSpread$h(_objectSpread$h({
|
|
25532
25667
|
text: "The quick brown fox jumps over the lazy dog."
|
|
25533
25668
|
}, paragraphStyles), {}, {
|
|
25534
25669
|
padding: false,
|
|
25535
25670
|
onClick: function onClick() {
|
|
25536
25671
|
return handleClickItem(themeObjects.PARAGRAPH, paragraphStyles);
|
|
25537
25672
|
}
|
|
25538
|
-
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$
|
|
25673
|
+
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$h(_objectSpread$h({
|
|
25539
25674
|
text: "The quick brown fox jumps over the lazy dog."
|
|
25540
25675
|
}, paragraph2Styles), {}, {
|
|
25541
25676
|
padding: false,
|
|
25542
25677
|
onClick: function onClick() {
|
|
25543
25678
|
return handleClickItem(themeObjects.PARAGRAPH_2, paragraph2Styles);
|
|
25544
25679
|
}
|
|
25545
|
-
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$
|
|
25680
|
+
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$h(_objectSpread$h({
|
|
25546
25681
|
text: "The quick brown fox jumps over the lazy dog."
|
|
25547
25682
|
}, paragraph3Styles), {}, {
|
|
25548
25683
|
padding: false,
|
|
@@ -25551,19 +25686,19 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25551
25686
|
}
|
|
25552
25687
|
})), /*#__PURE__*/jsxs("div", {
|
|
25553
25688
|
className: "flex flex-row space-x-2 w-full",
|
|
25554
|
-
children: [/*#__PURE__*/jsx(Button, _objectSpread$
|
|
25689
|
+
children: [/*#__PURE__*/jsx(Button, _objectSpread$h(_objectSpread$h({
|
|
25555
25690
|
title: "Button"
|
|
25556
25691
|
}, buttonStyles), {}, {
|
|
25557
25692
|
onClick: function onClick() {
|
|
25558
25693
|
return handleClickItem(themeObjects.BUTTON, buttonStyles);
|
|
25559
25694
|
}
|
|
25560
|
-
})), /*#__PURE__*/jsx(Button2, _objectSpread$
|
|
25695
|
+
})), /*#__PURE__*/jsx(Button2, _objectSpread$h(_objectSpread$h({
|
|
25561
25696
|
title: "Button 2"
|
|
25562
25697
|
}, button2Styles), {}, {
|
|
25563
25698
|
onClick: function onClick() {
|
|
25564
25699
|
return handleClickItem(themeObjects.BUTTON_2, button2Styles);
|
|
25565
25700
|
}
|
|
25566
|
-
})), /*#__PURE__*/jsx(Button3, _objectSpread$
|
|
25701
|
+
})), /*#__PURE__*/jsx(Button3, _objectSpread$h(_objectSpread$h({
|
|
25567
25702
|
title: "Button 3"
|
|
25568
25703
|
}, button3Styles), {}, {
|
|
25569
25704
|
onClick: function onClick() {
|
|
@@ -25574,14 +25709,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25574
25709
|
className: "flex flex-row space-x-4 w-full",
|
|
25575
25710
|
children: [/*#__PURE__*/jsxs("div", {
|
|
25576
25711
|
className: "flex flex-row space-x-2",
|
|
25577
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25712
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25578
25713
|
text: "Button Icon",
|
|
25579
25714
|
icon: "pencil"
|
|
25580
25715
|
}, buttonIconStyles), {}, {
|
|
25581
25716
|
onClick: function onClick() {
|
|
25582
25717
|
return handleClickItem(themeObjects.BUTTON_ICON, buttonIconStyles);
|
|
25583
25718
|
}
|
|
25584
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25719
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25585
25720
|
icon: "pencil"
|
|
25586
25721
|
}, buttonIconStyles), {}, {
|
|
25587
25722
|
onClick: function onClick() {
|
|
@@ -25590,14 +25725,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25590
25725
|
}))]
|
|
25591
25726
|
}), /*#__PURE__*/jsxs("div", {
|
|
25592
25727
|
className: "flex flex-row space-x-2",
|
|
25593
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25728
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25594
25729
|
text: "Button Icon 2",
|
|
25595
25730
|
icon: "pencil"
|
|
25596
25731
|
}, buttonIconStyles), {}, {
|
|
25597
25732
|
onClick: function onClick() {
|
|
25598
25733
|
return handleClickItem(themeObjects.BUTTON_ICON_2, buttonIcon2Styles);
|
|
25599
25734
|
}
|
|
25600
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25735
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25601
25736
|
icon: "pencil"
|
|
25602
25737
|
}, buttonIconStyles), {}, {
|
|
25603
25738
|
onClick: function onClick() {
|
|
@@ -25606,14 +25741,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25606
25741
|
}))]
|
|
25607
25742
|
}), /*#__PURE__*/jsxs("div", {
|
|
25608
25743
|
className: "flex flex-row space-x-2",
|
|
25609
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25744
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25610
25745
|
text: "Button Icon 3",
|
|
25611
25746
|
icon: "pencil"
|
|
25612
25747
|
}, buttonIcon3Styles), {}, {
|
|
25613
25748
|
onClick: function onClick() {
|
|
25614
25749
|
return handleClickItem(themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
25615
25750
|
}
|
|
25616
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25751
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25617
25752
|
icon: "pencil"
|
|
25618
25753
|
}, buttonIcon3Styles), {}, {
|
|
25619
25754
|
onClick: function onClick() {
|
|
@@ -25623,17 +25758,17 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25623
25758
|
})]
|
|
25624
25759
|
}), /*#__PURE__*/jsxs("div", {
|
|
25625
25760
|
className: "flex flex-col space-y-2 w-full",
|
|
25626
|
-
children: [/*#__PURE__*/jsx(MenuItem, _objectSpread$
|
|
25761
|
+
children: [/*#__PURE__*/jsx(MenuItem, _objectSpread$h(_objectSpread$h({}, menuItemStyles), {}, {
|
|
25627
25762
|
onClick: function onClick() {
|
|
25628
25763
|
return handleClickItem(themeObjects.MENU_ITEM, menuItemStyles);
|
|
25629
25764
|
},
|
|
25630
25765
|
children: "Menu Item"
|
|
25631
|
-
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$
|
|
25766
|
+
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$h(_objectSpread$h({}, menuItem2Styles), {}, {
|
|
25632
25767
|
onClick: function onClick() {
|
|
25633
25768
|
return handleClickItem(themeObjects.MENU_ITEM_2, menuItem2Styles);
|
|
25634
25769
|
},
|
|
25635
25770
|
children: "Menu Item 2"
|
|
25636
|
-
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$
|
|
25771
|
+
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$h(_objectSpread$h({}, menuItem3Styles), {}, {
|
|
25637
25772
|
onClick: function onClick() {
|
|
25638
25773
|
return handleClickItem(themeObjects.MENU_ITEM_3, menuItem3Styles);
|
|
25639
25774
|
},
|
|
@@ -25641,21 +25776,21 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25641
25776
|
}))]
|
|
25642
25777
|
}), /*#__PURE__*/jsxs("div", {
|
|
25643
25778
|
className: "flex flex-row space-x-2 w-full",
|
|
25644
|
-
children: [/*#__PURE__*/jsx(Tag, _objectSpread$
|
|
25779
|
+
children: [/*#__PURE__*/jsx(Tag, _objectSpread$h(_objectSpread$h({
|
|
25645
25780
|
text: "Tag",
|
|
25646
25781
|
icon: "pencil"
|
|
25647
25782
|
}, tagStyles), {}, {
|
|
25648
25783
|
onClick: function onClick() {
|
|
25649
25784
|
return handleClickItem(themeObjects.TAG, tagStyles);
|
|
25650
25785
|
}
|
|
25651
|
-
})), /*#__PURE__*/jsx(Tag2, _objectSpread$
|
|
25786
|
+
})), /*#__PURE__*/jsx(Tag2, _objectSpread$h(_objectSpread$h({
|
|
25652
25787
|
text: "Tag 2",
|
|
25653
25788
|
icon: "pencil"
|
|
25654
25789
|
}, tag2Styles), {}, {
|
|
25655
25790
|
onClick: function onClick() {
|
|
25656
25791
|
return handleClickItem(themeObjects.TAG_2, tag2Styles);
|
|
25657
25792
|
}
|
|
25658
|
-
})), /*#__PURE__*/jsx(Tag3, _objectSpread$
|
|
25793
|
+
})), /*#__PURE__*/jsx(Tag3, _objectSpread$h(_objectSpread$h({
|
|
25659
25794
|
text: "Tag 3",
|
|
25660
25795
|
icon: "pencil"
|
|
25661
25796
|
}, tag3Styles), {}, {
|
|
@@ -25664,68 +25799,68 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25664
25799
|
}
|
|
25665
25800
|
}))]
|
|
25666
25801
|
})]
|
|
25667
|
-
})), /*#__PURE__*/jsxs(Panel3, _objectSpread$
|
|
25802
|
+
})), /*#__PURE__*/jsxs(Panel3, _objectSpread$h(_objectSpread$h({
|
|
25668
25803
|
className: "p-6 rounded border-4 space-y-4"
|
|
25669
25804
|
}, styles3), {}, {
|
|
25670
25805
|
padding: false,
|
|
25671
25806
|
height: "h-fit",
|
|
25672
|
-
children: [/*#__PURE__*/jsx(Heading, _objectSpread$
|
|
25807
|
+
children: [/*#__PURE__*/jsx(Heading, _objectSpread$h(_objectSpread$h({
|
|
25673
25808
|
title: "Heading"
|
|
25674
25809
|
}, headingStyles), {}, {
|
|
25675
25810
|
padding: false,
|
|
25676
25811
|
onClick: function onClick() {
|
|
25677
25812
|
return handleClickItem(themeObjects.HEADING, headingStyles);
|
|
25678
25813
|
}
|
|
25679
|
-
})), /*#__PURE__*/jsx(Heading2, _objectSpread$
|
|
25814
|
+
})), /*#__PURE__*/jsx(Heading2, _objectSpread$h(_objectSpread$h({
|
|
25680
25815
|
title: "Heading 2"
|
|
25681
25816
|
}, heading2Styles), {}, {
|
|
25682
25817
|
padding: false,
|
|
25683
25818
|
onClick: function onClick() {
|
|
25684
25819
|
return handleClickItem(themeObjects.HEADING_2, heading2Styles);
|
|
25685
25820
|
}
|
|
25686
|
-
})), /*#__PURE__*/jsx(Heading3, _objectSpread$
|
|
25821
|
+
})), /*#__PURE__*/jsx(Heading3, _objectSpread$h(_objectSpread$h({
|
|
25687
25822
|
title: "Heading 3"
|
|
25688
25823
|
}, heading3Styles), {}, {
|
|
25689
25824
|
padding: false,
|
|
25690
25825
|
onClick: function onClick() {
|
|
25691
25826
|
return handleClickItem(themeObjects.HEADING_3, heading3Styles);
|
|
25692
25827
|
}
|
|
25693
|
-
})), /*#__PURE__*/jsx(SubHeading, _objectSpread$
|
|
25828
|
+
})), /*#__PURE__*/jsx(SubHeading, _objectSpread$h(_objectSpread$h({
|
|
25694
25829
|
title: "Subheading"
|
|
25695
25830
|
}, subHeadingStyles), {}, {
|
|
25696
25831
|
padding: false,
|
|
25697
25832
|
onClick: function onClick() {
|
|
25698
25833
|
return handleClickItem(themeObjects.SUBHEADING, subHeadingStyles);
|
|
25699
25834
|
}
|
|
25700
|
-
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$
|
|
25835
|
+
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$h(_objectSpread$h({
|
|
25701
25836
|
title: "Subheading 2"
|
|
25702
25837
|
}, subHeading2Styles), {}, {
|
|
25703
25838
|
padding: false,
|
|
25704
25839
|
onClick: function onClick() {
|
|
25705
25840
|
return handleClickItem(themeObjects.SUBHEADING_2, subHeading2Styles);
|
|
25706
25841
|
}
|
|
25707
|
-
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$
|
|
25842
|
+
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$h(_objectSpread$h({
|
|
25708
25843
|
title: "Subheading"
|
|
25709
25844
|
}, subHeading3Styles), {}, {
|
|
25710
25845
|
padding: false,
|
|
25711
25846
|
onClick: function onClick() {
|
|
25712
25847
|
return handleClickItem(themeObjects.SUBHEADING_3, subHeading3Styles);
|
|
25713
25848
|
}
|
|
25714
|
-
})), /*#__PURE__*/jsx(Paragraph, _objectSpread$
|
|
25849
|
+
})), /*#__PURE__*/jsx(Paragraph, _objectSpread$h(_objectSpread$h({
|
|
25715
25850
|
text: "The quick brown fox jumps over the lazy dog."
|
|
25716
25851
|
}, paragraphStyles), {}, {
|
|
25717
25852
|
padding: false,
|
|
25718
25853
|
onClick: function onClick() {
|
|
25719
25854
|
return handleClickItem(themeObjects.PARAGRAPH, paragraphStyles);
|
|
25720
25855
|
}
|
|
25721
|
-
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$
|
|
25856
|
+
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$h(_objectSpread$h({
|
|
25722
25857
|
text: "The quick brown fox jumps over the lazy dog."
|
|
25723
25858
|
}, paragraph2Styles), {}, {
|
|
25724
25859
|
padding: false,
|
|
25725
25860
|
onClick: function onClick() {
|
|
25726
25861
|
return handleClickItem(themeObjects.PARAGRAPH, paragraph2Styles);
|
|
25727
25862
|
}
|
|
25728
|
-
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$
|
|
25863
|
+
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$h(_objectSpread$h({
|
|
25729
25864
|
text: "The quick brown fox jumps over the lazy dog."
|
|
25730
25865
|
}, paragraph3Styles), {}, {
|
|
25731
25866
|
padding: false,
|
|
@@ -25734,19 +25869,19 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25734
25869
|
}
|
|
25735
25870
|
})), /*#__PURE__*/jsxs("div", {
|
|
25736
25871
|
className: "flex flex-row space-x-2 w-full",
|
|
25737
|
-
children: [/*#__PURE__*/jsx(Button, _objectSpread$
|
|
25872
|
+
children: [/*#__PURE__*/jsx(Button, _objectSpread$h(_objectSpread$h({
|
|
25738
25873
|
title: "Button"
|
|
25739
25874
|
}, buttonStyles), {}, {
|
|
25740
25875
|
onClick: function onClick() {
|
|
25741
25876
|
return handleClickItem(themeObjects.BUTTON, buttonStyles);
|
|
25742
25877
|
}
|
|
25743
|
-
})), /*#__PURE__*/jsx(Button2, _objectSpread$
|
|
25878
|
+
})), /*#__PURE__*/jsx(Button2, _objectSpread$h(_objectSpread$h({
|
|
25744
25879
|
title: "Button 2"
|
|
25745
25880
|
}, button2Styles), {}, {
|
|
25746
25881
|
onClick: function onClick() {
|
|
25747
25882
|
return handleClickItem(themeObjects.BUTTON_2, button2Styles);
|
|
25748
25883
|
}
|
|
25749
|
-
})), /*#__PURE__*/jsx(Button3, _objectSpread$
|
|
25884
|
+
})), /*#__PURE__*/jsx(Button3, _objectSpread$h(_objectSpread$h({
|
|
25750
25885
|
title: "Button 3"
|
|
25751
25886
|
}, button3Styles), {}, {
|
|
25752
25887
|
onClick: function onClick() {
|
|
@@ -25757,14 +25892,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25757
25892
|
className: "flex flex-row space-x-4 w-full",
|
|
25758
25893
|
children: [/*#__PURE__*/jsxs("div", {
|
|
25759
25894
|
className: "flex flex-row space-x-2",
|
|
25760
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25895
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25761
25896
|
text: "Button Icon",
|
|
25762
25897
|
icon: "pencil"
|
|
25763
25898
|
}, buttonIconStyles), {}, {
|
|
25764
25899
|
onClick: function onClick() {
|
|
25765
25900
|
return handleClickItem(themeObjects.BUTTON_ICON, buttonIconStyles);
|
|
25766
25901
|
}
|
|
25767
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25902
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25768
25903
|
icon: "pencil"
|
|
25769
25904
|
}, buttonIconStyles), {}, {
|
|
25770
25905
|
onClick: function onClick() {
|
|
@@ -25773,14 +25908,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25773
25908
|
}))]
|
|
25774
25909
|
}), /*#__PURE__*/jsxs("div", {
|
|
25775
25910
|
className: "flex flex-row space-x-2",
|
|
25776
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25911
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25777
25912
|
text: "Button Icon 2",
|
|
25778
25913
|
icon: "pencil"
|
|
25779
25914
|
}, buttonIconStyles), {}, {
|
|
25780
25915
|
onClick: function onClick() {
|
|
25781
25916
|
return handleClickItem(themeObjects.BUTTON_ICON_2, buttonIcon2Styles);
|
|
25782
25917
|
}
|
|
25783
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25918
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25784
25919
|
icon: "pencil"
|
|
25785
25920
|
}, buttonIconStyles), {}, {
|
|
25786
25921
|
onClick: function onClick() {
|
|
@@ -25789,14 +25924,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25789
25924
|
}))]
|
|
25790
25925
|
}), /*#__PURE__*/jsxs("div", {
|
|
25791
25926
|
className: "flex flex-row space-x-2",
|
|
25792
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25927
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25793
25928
|
text: "Button Icon 3",
|
|
25794
25929
|
icon: "pencil"
|
|
25795
25930
|
}, buttonIcon3Styles), {}, {
|
|
25796
25931
|
onClick: function onClick() {
|
|
25797
25932
|
return handleClickItem(themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
25798
25933
|
}
|
|
25799
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25934
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25800
25935
|
icon: "pencil"
|
|
25801
25936
|
}, buttonIcon3Styles), {}, {
|
|
25802
25937
|
onClick: function onClick() {
|
|
@@ -25806,17 +25941,17 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25806
25941
|
})]
|
|
25807
25942
|
}), /*#__PURE__*/jsxs("div", {
|
|
25808
25943
|
className: "flex flex-col space-y-2 w-full",
|
|
25809
|
-
children: [/*#__PURE__*/jsx(MenuItem, _objectSpread$
|
|
25944
|
+
children: [/*#__PURE__*/jsx(MenuItem, _objectSpread$h(_objectSpread$h({}, menuItemStyles), {}, {
|
|
25810
25945
|
onClick: function onClick() {
|
|
25811
25946
|
return handleClickItem(themeObjects.MENU_ITEM, menuItemStyles);
|
|
25812
25947
|
},
|
|
25813
25948
|
children: "Menu Item"
|
|
25814
|
-
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$
|
|
25949
|
+
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$h(_objectSpread$h({}, menuItem2Styles), {}, {
|
|
25815
25950
|
onClick: function onClick() {
|
|
25816
25951
|
return handleClickItem(themeObjects.MENU_ITEM_2, menuItem2Styles);
|
|
25817
25952
|
},
|
|
25818
25953
|
children: "Menu Item 2"
|
|
25819
|
-
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$
|
|
25954
|
+
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$h(_objectSpread$h({}, menuItem3Styles), {}, {
|
|
25820
25955
|
onClick: function onClick() {
|
|
25821
25956
|
return handleClickItem(themeObjects.MENU_ITEM_3, menuItem3Styles);
|
|
25822
25957
|
},
|
|
@@ -25824,21 +25959,21 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25824
25959
|
}))]
|
|
25825
25960
|
}), /*#__PURE__*/jsxs("div", {
|
|
25826
25961
|
className: "flex flex-row space-x-2 w-full",
|
|
25827
|
-
children: [/*#__PURE__*/jsx(Tag, _objectSpread$
|
|
25962
|
+
children: [/*#__PURE__*/jsx(Tag, _objectSpread$h(_objectSpread$h({
|
|
25828
25963
|
text: "Tag",
|
|
25829
25964
|
icon: "pencil"
|
|
25830
25965
|
}, tagStyles), {}, {
|
|
25831
25966
|
onClick: function onClick() {
|
|
25832
25967
|
return handleClickItem(themeObjects.TAG, tagStyles);
|
|
25833
25968
|
}
|
|
25834
|
-
})), /*#__PURE__*/jsx(Tag2, _objectSpread$
|
|
25969
|
+
})), /*#__PURE__*/jsx(Tag2, _objectSpread$h(_objectSpread$h({
|
|
25835
25970
|
text: "Tag 2",
|
|
25836
25971
|
icon: "pencil"
|
|
25837
25972
|
}, tag2Styles), {}, {
|
|
25838
25973
|
onClick: function onClick() {
|
|
25839
25974
|
return handleClickItem(themeObjects.TAG_2, tag2Styles);
|
|
25840
25975
|
}
|
|
25841
|
-
})), /*#__PURE__*/jsx(Tag3, _objectSpread$
|
|
25976
|
+
})), /*#__PURE__*/jsx(Tag3, _objectSpread$h(_objectSpread$h({
|
|
25842
25977
|
text: "Tag 3",
|
|
25843
25978
|
icon: "pencil"
|
|
25844
25979
|
}, tag3Styles), {}, {
|
|
@@ -25847,57 +25982,57 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25847
25982
|
}
|
|
25848
25983
|
}))]
|
|
25849
25984
|
})]
|
|
25850
|
-
})), /*#__PURE__*/jsxs(Panel2, _objectSpread$
|
|
25985
|
+
})), /*#__PURE__*/jsxs(Panel2, _objectSpread$h(_objectSpread$h({
|
|
25851
25986
|
className: "p-6 rounded border-4 space-y-4"
|
|
25852
25987
|
}, styles2), {}, {
|
|
25853
25988
|
height: "h-fit",
|
|
25854
25989
|
padding: false,
|
|
25855
|
-
children: [/*#__PURE__*/jsx(Heading2, _objectSpread$
|
|
25990
|
+
children: [/*#__PURE__*/jsx(Heading2, _objectSpread$h(_objectSpread$h({
|
|
25856
25991
|
title: "Heading 2"
|
|
25857
25992
|
}, heading2Styles), {}, {
|
|
25858
25993
|
padding: false,
|
|
25859
25994
|
onClick: function onClick() {
|
|
25860
25995
|
return handleClickItem(themeObjects.HEADING_2, heading2Styles);
|
|
25861
25996
|
}
|
|
25862
|
-
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$
|
|
25997
|
+
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$h(_objectSpread$h({
|
|
25863
25998
|
title: "Subheading 2"
|
|
25864
25999
|
}, subHeading2Styles), {}, {
|
|
25865
26000
|
padding: false,
|
|
25866
26001
|
onClick: function onClick() {
|
|
25867
26002
|
return handleClickItem(themeObjects.SUBHEADING_2, subHeading2Styles);
|
|
25868
26003
|
}
|
|
25869
|
-
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$
|
|
26004
|
+
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$h(_objectSpread$h({
|
|
25870
26005
|
text: "Paragraph 2 - The quick brown fox jumps over the lazy dog."
|
|
25871
26006
|
}, paragraph2Styles), {}, {
|
|
25872
26007
|
padding: false,
|
|
25873
26008
|
onClick: function onClick() {
|
|
25874
26009
|
return handleClickItem(themeObjects.PARAGRAPH_2, paragraph2Styles);
|
|
25875
26010
|
}
|
|
25876
|
-
})), /*#__PURE__*/jsx(Button2, _objectSpread$
|
|
26011
|
+
})), /*#__PURE__*/jsx(Button2, _objectSpread$h(_objectSpread$h({
|
|
25877
26012
|
title: "Button"
|
|
25878
26013
|
}, button2Styles), {}, {
|
|
25879
26014
|
onClick: function onClick() {
|
|
25880
26015
|
return handleClickItem(themeObjects.BUTTON_2, button2Styles);
|
|
25881
26016
|
}
|
|
25882
|
-
})), /*#__PURE__*/jsx(ButtonIcon2, _objectSpread$
|
|
26017
|
+
})), /*#__PURE__*/jsx(ButtonIcon2, _objectSpread$h(_objectSpread$h({
|
|
25883
26018
|
text: "Button Icon",
|
|
25884
26019
|
icon: "pencil"
|
|
25885
26020
|
}, buttonIcon2Styles), {}, {
|
|
25886
26021
|
onClick: function onClick() {
|
|
25887
26022
|
return handleClickItem(themeObjects.BUTTON_ICON_2, buttonIcon2Styles);
|
|
25888
26023
|
}
|
|
25889
|
-
})), /*#__PURE__*/jsx(ButtonIcon2, _objectSpread$
|
|
26024
|
+
})), /*#__PURE__*/jsx(ButtonIcon2, _objectSpread$h(_objectSpread$h({
|
|
25890
26025
|
icon: "pencil"
|
|
25891
26026
|
}, buttonIcon2Styles), {}, {
|
|
25892
26027
|
onClick: function onClick() {
|
|
25893
26028
|
return handleClickItem(themeObjects.BUTTON_ICON_2, buttonIconStyles);
|
|
25894
26029
|
}
|
|
25895
|
-
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$
|
|
26030
|
+
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$h(_objectSpread$h({}, menuItem2Styles), {}, {
|
|
25896
26031
|
onClick: function onClick() {
|
|
25897
26032
|
return handleClickItem(themeObjects.MENU_ITEM_2, menuItem2Styles);
|
|
25898
26033
|
},
|
|
25899
26034
|
children: "Menu Item"
|
|
25900
|
-
})), /*#__PURE__*/jsx(Tag2, _objectSpread$
|
|
26035
|
+
})), /*#__PURE__*/jsx(Tag2, _objectSpread$h(_objectSpread$h({
|
|
25901
26036
|
text: "Tag 2",
|
|
25902
26037
|
icon: "pencil"
|
|
25903
26038
|
}, tag2Styles), {}, {
|
|
@@ -25905,57 +26040,57 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25905
26040
|
return handleClickItem(themeObjects.TAG_2, tag2Styles);
|
|
25906
26041
|
}
|
|
25907
26042
|
}))]
|
|
25908
|
-
})), /*#__PURE__*/jsxs(Panel3, _objectSpread$
|
|
26043
|
+
})), /*#__PURE__*/jsxs(Panel3, _objectSpread$h(_objectSpread$h({
|
|
25909
26044
|
className: "p-6 rounded border-4 space-y-4"
|
|
25910
26045
|
}, styles3), {}, {
|
|
25911
26046
|
height: "h-fit",
|
|
25912
26047
|
padding: false,
|
|
25913
|
-
children: [/*#__PURE__*/jsx(Heading3, _objectSpread$
|
|
26048
|
+
children: [/*#__PURE__*/jsx(Heading3, _objectSpread$h(_objectSpread$h({
|
|
25914
26049
|
title: "Heading 3"
|
|
25915
26050
|
}, heading3Styles), {}, {
|
|
25916
26051
|
padding: false,
|
|
25917
26052
|
onClick: function onClick() {
|
|
25918
26053
|
return handleClickItem(themeObjects.HEADING_3, heading3Styles);
|
|
25919
26054
|
}
|
|
25920
|
-
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$
|
|
26055
|
+
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$h(_objectSpread$h({
|
|
25921
26056
|
title: "Subheading"
|
|
25922
26057
|
}, subHeading3Styles), {}, {
|
|
25923
26058
|
padding: false,
|
|
25924
26059
|
onClick: function onClick() {
|
|
25925
26060
|
return handleClickItem(themeObjects.SUBHEADING_3, subHeading3Styles);
|
|
25926
26061
|
}
|
|
25927
|
-
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$
|
|
26062
|
+
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$h(_objectSpread$h({
|
|
25928
26063
|
text: "Paragraph 3 - The quick brown fox jumps over the lazy dog."
|
|
25929
26064
|
}, paragraph3Styles), {}, {
|
|
25930
26065
|
padding: false,
|
|
25931
26066
|
onClick: function onClick() {
|
|
25932
26067
|
return handleClickItem(themeObjects.PARAGRAPH_3, paragraph3Styles);
|
|
25933
26068
|
}
|
|
25934
|
-
})), /*#__PURE__*/jsx(Button3, _objectSpread$
|
|
26069
|
+
})), /*#__PURE__*/jsx(Button3, _objectSpread$h(_objectSpread$h({
|
|
25935
26070
|
title: "Button"
|
|
25936
26071
|
}, button3Styles), {}, {
|
|
25937
26072
|
onClick: function onClick() {
|
|
25938
26073
|
return handleClickItem(themeObjects.BUTTON_3, button3Styles);
|
|
25939
26074
|
}
|
|
25940
|
-
})), /*#__PURE__*/jsx(ButtonIcon3, _objectSpread$
|
|
26075
|
+
})), /*#__PURE__*/jsx(ButtonIcon3, _objectSpread$h(_objectSpread$h({
|
|
25941
26076
|
text: "Button Icon 3",
|
|
25942
26077
|
icon: "pencil"
|
|
25943
26078
|
}, buttonIcon3Styles), {}, {
|
|
25944
26079
|
onClick: function onClick() {
|
|
25945
26080
|
return handleClickItem(themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
25946
26081
|
}
|
|
25947
|
-
})), /*#__PURE__*/jsx(ButtonIcon3, _objectSpread$
|
|
26082
|
+
})), /*#__PURE__*/jsx(ButtonIcon3, _objectSpread$h(_objectSpread$h({
|
|
25948
26083
|
icon: "pencil"
|
|
25949
26084
|
}, buttonIcon3Styles), {}, {
|
|
25950
26085
|
onClick: function onClick() {
|
|
25951
26086
|
return handleClickItem(themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
25952
26087
|
}
|
|
25953
|
-
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$
|
|
26088
|
+
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$h(_objectSpread$h({}, menuItem3Styles), {}, {
|
|
25954
26089
|
onClick: function onClick() {
|
|
25955
26090
|
return handleClickItem(themeObjects.MENU_ITEM_3, menuItem3Styles);
|
|
25956
26091
|
},
|
|
25957
26092
|
children: "Menu Item"
|
|
25958
|
-
})), /*#__PURE__*/jsx(Tag3, _objectSpread$
|
|
26093
|
+
})), /*#__PURE__*/jsx(Tag3, _objectSpread$h(_objectSpread$h({
|
|
25959
26094
|
text: "Tag",
|
|
25960
26095
|
icon: "pencil"
|
|
25961
26096
|
}, tag3Styles), {}, {
|
|
@@ -26004,8 +26139,8 @@ var ThemePane = function ThemePane(_ref) {
|
|
|
26004
26139
|
};
|
|
26005
26140
|
|
|
26006
26141
|
var _excluded$2 = ["colorFromTheme", "colorName", "shade", "variant", "colorType", "colorLevelName", "selected", "onClick", "onMouseOver", "width", "height"];
|
|
26007
|
-
function ownKeys$
|
|
26008
|
-
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; }
|
|
26009
26144
|
var ColorTile = function ColorTile(_ref) {
|
|
26010
26145
|
var _ref$colorFromTheme = _ref.colorFromTheme,
|
|
26011
26146
|
colorFromTheme = _ref$colorFromTheme === void 0 ? null : _ref$colorFromTheme,
|
|
@@ -26030,7 +26165,7 @@ var ColorTile = function ColorTile(_ref) {
|
|
|
26030
26165
|
_ref$height = _ref.height,
|
|
26031
26166
|
height = _ref$height === void 0 ? "h-10" : _ref$height,
|
|
26032
26167
|
rest = _objectWithoutProperties(_ref, _excluded$2);
|
|
26033
|
-
var c = ColorModel(_objectSpread$
|
|
26168
|
+
var c = ColorModel(_objectSpread$g({
|
|
26034
26169
|
colorFromTheme: colorFromTheme,
|
|
26035
26170
|
colorName: colorName,
|
|
26036
26171
|
colorType: colorType,
|
|
@@ -26058,10 +26193,10 @@ var ColorTile = function ColorTile(_ref) {
|
|
|
26058
26193
|
return /*#__PURE__*/jsx("div", {
|
|
26059
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),
|
|
26060
26195
|
onClick: function onClick() {
|
|
26061
|
-
return _onClick !== null ? _onClick(_objectSpread$
|
|
26196
|
+
return _onClick !== null ? _onClick(_objectSpread$g(_objectSpread$g({}, c), rest)) : null;
|
|
26062
26197
|
},
|
|
26063
26198
|
onMouseOver: function onMouseOver() {
|
|
26064
|
-
return _onMouseOver !== null ? _onMouseOver(_objectSpread$
|
|
26199
|
+
return _onMouseOver !== null ? _onMouseOver(_objectSpread$g(_objectSpread$g({}, c), rest)) : null;
|
|
26065
26200
|
},
|
|
26066
26201
|
children: "\xA0"
|
|
26067
26202
|
});
|
|
@@ -27244,8 +27379,8 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
27244
27379
|
var propTypesExports = propTypes.exports;
|
|
27245
27380
|
var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
|
|
27246
27381
|
|
|
27247
|
-
function ownKeys$
|
|
27248
|
-
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; }
|
|
27249
27384
|
|
|
27250
27385
|
// Host-injected module references (e.g., "@trops/dash-core").
|
|
27251
27386
|
// Set by the host app via setHostModules() after all modules are fully loaded,
|
|
@@ -27281,7 +27416,7 @@ var BASE_MODULE_MAP = {
|
|
|
27281
27416
|
function evaluateBundle(source, widgetName) {
|
|
27282
27417
|
// Merge base modules with host-provided modules (e.g., "@trops/dash-core")
|
|
27283
27418
|
// at call time so _hostModules is populated by the time widgets load.
|
|
27284
|
-
var moduleMap = _objectSpread$
|
|
27419
|
+
var moduleMap = _objectSpread$f(_objectSpread$f({}, BASE_MODULE_MAP), _hostModules);
|
|
27285
27420
|
var module = {
|
|
27286
27421
|
exports: {}
|
|
27287
27422
|
};
|
|
@@ -27294,7 +27429,7 @@ function evaluateBundle(source, widgetName) {
|
|
|
27294
27429
|
// CJS bundles expect `require("pkg").Widget` to work, so merge
|
|
27295
27430
|
// `.default` properties onto the returned object.
|
|
27296
27431
|
if (mod["default"] && _typeof(mod["default"]) === "object") {
|
|
27297
|
-
return _objectSpread$
|
|
27432
|
+
return _objectSpread$f(_objectSpread$f(_objectSpread$f({}, mod["default"]), mod), {}, {
|
|
27298
27433
|
"default": mod["default"]
|
|
27299
27434
|
});
|
|
27300
27435
|
}
|
|
@@ -27982,8 +28117,8 @@ var HARMONY_STRATEGIES = [{
|
|
|
27982
28117
|
label: "Custom"
|
|
27983
28118
|
}];
|
|
27984
28119
|
|
|
27985
|
-
function ownKeys$
|
|
27986
|
-
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; }
|
|
27987
28122
|
var COLOR_PROPERTIES$1 = new Set(["backgroundColor", "textColor", "borderColor", "hoverBackgroundColor", "hoverTextColor", "hoverBorderColor", "focusRingColor", "focusBorderColor", "activeBackgroundColor", "activeTextColor", "placeholderTextColor"]);
|
|
27988
28123
|
var PreviewColorsPane = function PreviewColorsPane(_ref) {
|
|
27989
28124
|
var _ref$styles = _ref.styles,
|
|
@@ -28000,7 +28135,7 @@ var PreviewColorsPane = function PreviewColorsPane(_ref) {
|
|
|
28000
28135
|
function handleClickItem(data, styleNameCss, itemType, objectType) {
|
|
28001
28136
|
// override the object type
|
|
28002
28137
|
data["objectType"] = objectType;
|
|
28003
|
-
onClickItem(_objectSpread$
|
|
28138
|
+
onClickItem(_objectSpread$e(_objectSpread$e({}, data), {}, {
|
|
28004
28139
|
itemType: itemType,
|
|
28005
28140
|
styleName: styleNameCss
|
|
28006
28141
|
}));
|
|
@@ -28410,8 +28545,8 @@ var ThemeMenuPane = function ThemeMenuPane(_ref) {
|
|
|
28410
28545
|
});
|
|
28411
28546
|
};
|
|
28412
28547
|
|
|
28413
|
-
function ownKeys$
|
|
28414
|
-
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; }
|
|
28415
28550
|
var COMPONENT_GROUPS$1 = {
|
|
28416
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],
|
|
28417
28552
|
Buttons: [themeObjects.BUTTON, themeObjects.BUTTON_2, themeObjects.BUTTON_3, themeObjects.BUTTON_ICON, themeObjects.BUTTON_ICON_2, themeObjects.BUTTON_ICON_3],
|
|
@@ -28442,7 +28577,7 @@ var ComponentSelectorPane = function ComponentSelectorPane(_ref) {
|
|
|
28442
28577
|
setCollapsedGroups = _useState2[1];
|
|
28443
28578
|
function toggleGroup(groupName) {
|
|
28444
28579
|
setCollapsedGroups(function (prev) {
|
|
28445
|
-
return _objectSpread$
|
|
28580
|
+
return _objectSpread$d(_objectSpread$d({}, prev), {}, _defineProperty({}, groupName, !prev[groupName]));
|
|
28446
28581
|
});
|
|
28447
28582
|
}
|
|
28448
28583
|
function hasOverrides(itemKey) {
|
|
@@ -28678,8 +28813,8 @@ var NonColorPickerPane = function NonColorPickerPane(_ref) {
|
|
|
28678
28813
|
};
|
|
28679
28814
|
|
|
28680
28815
|
var _excluded$1 = ["children"];
|
|
28681
|
-
function ownKeys$
|
|
28682
|
-
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; }
|
|
28683
28818
|
var COLOR_PROPERTIES = new Set(["backgroundColor", "textColor", "borderColor", "hoverBackgroundColor", "hoverTextColor", "hoverBorderColor", "focusRingColor", "focusBorderColor", "activeBackgroundColor", "activeTextColor", "placeholderTextColor"]);
|
|
28684
28819
|
var isColorProperty = function isColorProperty(name) {
|
|
28685
28820
|
return COLOR_PROPERTIES.has(name);
|
|
@@ -29239,7 +29374,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
29239
29374
|
if (itemSelected && themeSelected && themeVariant) {
|
|
29240
29375
|
var updatedStyles = getStylesForItem(itemSelected.item, themeSelected[themeVariant]);
|
|
29241
29376
|
setItemSelected(function (prev) {
|
|
29242
|
-
return _objectSpread$
|
|
29377
|
+
return _objectSpread$c(_objectSpread$c({}, prev), {}, {
|
|
29243
29378
|
styles: updatedStyles
|
|
29244
29379
|
});
|
|
29245
29380
|
});
|
|
@@ -29410,7 +29545,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
29410
29545
|
styles: clickStyles
|
|
29411
29546
|
});
|
|
29412
29547
|
},
|
|
29413
|
-
children: /*#__PURE__*/jsx(PanelComponent, _objectSpread$
|
|
29548
|
+
children: /*#__PURE__*/jsx(PanelComponent, _objectSpread$c(_objectSpread$c({}, panelStyles), {}, {
|
|
29414
29549
|
scrollable: false,
|
|
29415
29550
|
className: "rounded",
|
|
29416
29551
|
height: "",
|
|
@@ -29424,9 +29559,9 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
29424
29559
|
var _comp$props = comp.props,
|
|
29425
29560
|
childContent = _comp$props.children,
|
|
29426
29561
|
restProps = _objectWithoutProperties(_comp$props, _excluded$1);
|
|
29427
|
-
var renderedComponent = childContent !== undefined ? /*#__PURE__*/jsx(comp.Component, _objectSpread$
|
|
29562
|
+
var renderedComponent = childContent !== undefined ? /*#__PURE__*/jsx(comp.Component, _objectSpread$c(_objectSpread$c({}, restProps), {}, {
|
|
29428
29563
|
children: childContent
|
|
29429
|
-
})) : /*#__PURE__*/jsx(comp.Component, _objectSpread$
|
|
29564
|
+
})) : /*#__PURE__*/jsx(comp.Component, _objectSpread$c({}, restProps));
|
|
29430
29565
|
return renderComponentRow(comp.key, renderedComponent);
|
|
29431
29566
|
})
|
|
29432
29567
|
})
|
|
@@ -29442,7 +29577,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
29442
29577
|
children: [/*#__PURE__*/jsx("div", {
|
|
29443
29578
|
className: "text-xs uppercase font-bold text-gray-500 tracking-wider",
|
|
29444
29579
|
children: "Forms & Inputs"
|
|
29445
|
-
}), /*#__PURE__*/jsx(Panel, _objectSpread$
|
|
29580
|
+
}), /*#__PURE__*/jsx(Panel, _objectSpread$c(_objectSpread$c({}, getStylesForItem("panel", themeData)), {}, {
|
|
29446
29581
|
scrollable: false,
|
|
29447
29582
|
className: "rounded",
|
|
29448
29583
|
height: "",
|
|
@@ -29470,7 +29605,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
29470
29605
|
children: [/*#__PURE__*/jsx("div", {
|
|
29471
29606
|
className: "text-xs uppercase font-bold text-gray-500 tracking-wider",
|
|
29472
29607
|
children: "Data & Stats"
|
|
29473
|
-
}), /*#__PURE__*/jsx(Panel, _objectSpread$
|
|
29608
|
+
}), /*#__PURE__*/jsx(Panel, _objectSpread$c(_objectSpread$c({}, getStylesForItem("panel", themeData)), {}, {
|
|
29474
29609
|
scrollable: false,
|
|
29475
29610
|
className: "rounded",
|
|
29476
29611
|
height: "",
|
|
@@ -29575,7 +29710,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
29575
29710
|
}), themeSelected && /*#__PURE__*/jsx("div", {
|
|
29576
29711
|
className: "flex flex-col flex-1 min-w-0",
|
|
29577
29712
|
children: /*#__PURE__*/jsx(ThemeContext.Provider, {
|
|
29578
|
-
value: _objectSpread$
|
|
29713
|
+
value: _objectSpread$c(_objectSpread$c({}, themeContextValue), {}, {
|
|
29579
29714
|
currentTheme: (themeSelected === null || themeSelected === void 0 ? void 0 : themeSelected[themeVariant]) || themeContextValue.currentTheme
|
|
29580
29715
|
}),
|
|
29581
29716
|
children: showPreview ? /*#__PURE__*/jsx(PreviewComponentsPane, {
|
|
@@ -30206,8 +30341,8 @@ var ThemeQuickCreate = function ThemeQuickCreate(_ref8) {
|
|
|
30206
30341
|
});
|
|
30207
30342
|
};
|
|
30208
30343
|
|
|
30209
|
-
function ownKeys$
|
|
30210
|
-
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; }
|
|
30211
30346
|
var ThemeManagerModal = function ThemeManagerModal(_ref) {
|
|
30212
30347
|
var open = _ref.open,
|
|
30213
30348
|
setIsOpen = _ref.setIsOpen;
|
|
@@ -30314,7 +30449,7 @@ var ThemeManagerModal = function ThemeManagerModal(_ref) {
|
|
|
30314
30449
|
function handleWizardComplete() {
|
|
30315
30450
|
if (!wizardTheme || !wizardName.trim()) return;
|
|
30316
30451
|
var key = wizardTheme.id || "theme-".concat(Date.now());
|
|
30317
|
-
var finalTheme = _objectSpread$
|
|
30452
|
+
var finalTheme = _objectSpread$b(_objectSpread$b({}, wizardTheme), {}, {
|
|
30318
30453
|
id: key,
|
|
30319
30454
|
name: wizardName.trim()
|
|
30320
30455
|
});
|
|
@@ -31336,8 +31471,8 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
|
|
|
31336
31471
|
});
|
|
31337
31472
|
};
|
|
31338
31473
|
|
|
31339
|
-
function ownKeys$
|
|
31340
|
-
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; }
|
|
31341
31476
|
var LayoutPreview = function LayoutPreview(_ref) {
|
|
31342
31477
|
var layout = _ref.layout;
|
|
31343
31478
|
var gridRoot = (layout || []).find(function (item) {
|
|
@@ -31508,7 +31643,7 @@ var DashboardDetail = function DashboardDetail(_ref2) {
|
|
|
31508
31643
|
updated.menuId = val ? Number(val) : null;
|
|
31509
31644
|
// Strip widgetConfig from layout before saving
|
|
31510
31645
|
updated.layout = (updated.layout || []).map(function (layoutItem) {
|
|
31511
|
-
var cleaned = _objectSpread$
|
|
31646
|
+
var cleaned = _objectSpread$a({}, layoutItem);
|
|
31512
31647
|
delete cleaned.widgetConfig;
|
|
31513
31648
|
return cleaned;
|
|
31514
31649
|
});
|
|
@@ -31523,7 +31658,7 @@ var DashboardDetail = function DashboardDetail(_ref2) {
|
|
|
31523
31658
|
var updated = deepCopy(ws);
|
|
31524
31659
|
updated.themeKey = val || null;
|
|
31525
31660
|
updated.layout = (updated.layout || []).map(function (layoutItem) {
|
|
31526
|
-
var cleaned = _objectSpread$
|
|
31661
|
+
var cleaned = _objectSpread$a({}, layoutItem);
|
|
31527
31662
|
delete cleaned.widgetConfig;
|
|
31528
31663
|
return cleaned;
|
|
31529
31664
|
});
|
|
@@ -32133,8 +32268,8 @@ var DiscoverDashboardsDetail = function DiscoverDashboardsDetail(_ref) {
|
|
|
32133
32268
|
});
|
|
32134
32269
|
};
|
|
32135
32270
|
|
|
32136
|
-
function ownKeys$
|
|
32137
|
-
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; }
|
|
32138
32273
|
var DashboardsSection = function DashboardsSection(_ref) {
|
|
32139
32274
|
var _ref$workspaces = _ref.workspaces,
|
|
32140
32275
|
workspaces = _ref$workspaces === void 0 ? [] : _ref$workspaces,
|
|
@@ -32222,7 +32357,7 @@ var DashboardsSection = function DashboardsSection(_ref) {
|
|
|
32222
32357
|
updated.name = editName.trim();
|
|
32223
32358
|
// Strip widgetConfig from layout before saving
|
|
32224
32359
|
updated.layout = (updated.layout || []).map(function (layoutItem) {
|
|
32225
|
-
var cleaned = _objectSpread$
|
|
32360
|
+
var cleaned = _objectSpread$9({}, layoutItem);
|
|
32226
32361
|
delete cleaned.widgetConfig;
|
|
32227
32362
|
return cleaned;
|
|
32228
32363
|
});
|
|
@@ -32242,7 +32377,7 @@ var DashboardsSection = function DashboardsSection(_ref) {
|
|
|
32242
32377
|
copy.version = Date.now();
|
|
32243
32378
|
// Strip widgetConfig from layout before saving
|
|
32244
32379
|
copy.layout = (copy.layout || []).map(function (layoutItem) {
|
|
32245
|
-
var cleaned = _objectSpread$
|
|
32380
|
+
var cleaned = _objectSpread$9({}, layoutItem);
|
|
32246
32381
|
delete cleaned.widgetConfig;
|
|
32247
32382
|
return cleaned;
|
|
32248
32383
|
});
|
|
@@ -32728,8 +32863,8 @@ var FoldersSection = function FoldersSection(_ref) {
|
|
|
32728
32863
|
});
|
|
32729
32864
|
};
|
|
32730
32865
|
|
|
32731
|
-
function ownKeys$
|
|
32732
|
-
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; }
|
|
32733
32868
|
var ProviderDetail = function ProviderDetail(_ref) {
|
|
32734
32869
|
var _provider$mcpConfig, _testResult$tools;
|
|
32735
32870
|
var _ref$providerName = _ref.providerName,
|
|
@@ -32819,14 +32954,14 @@ var ProviderDetail = function ProviderDetail(_ref) {
|
|
|
32819
32954
|
var oldKey = f.key;
|
|
32820
32955
|
if (oldKey && formCredentials[oldKey] !== undefined) {
|
|
32821
32956
|
setFormCredentials(function (creds) {
|
|
32822
|
-
var updated = _objectSpread$
|
|
32957
|
+
var updated = _objectSpread$8({}, creds);
|
|
32823
32958
|
var val = updated[oldKey];
|
|
32824
32959
|
delete updated[oldKey];
|
|
32825
32960
|
if (newKey.trim()) updated[newKey] = val;
|
|
32826
32961
|
return updated;
|
|
32827
32962
|
});
|
|
32828
32963
|
}
|
|
32829
|
-
return _objectSpread$
|
|
32964
|
+
return _objectSpread$8(_objectSpread$8({}, f), {}, {
|
|
32830
32965
|
key: newKey
|
|
32831
32966
|
});
|
|
32832
32967
|
});
|
|
@@ -32838,14 +32973,14 @@ var ProviderDetail = function ProviderDetail(_ref) {
|
|
|
32838
32973
|
});
|
|
32839
32974
|
if (field !== null && field !== void 0 && field.key) {
|
|
32840
32975
|
setFormCredentials(function (prev) {
|
|
32841
|
-
return _objectSpread$
|
|
32976
|
+
return _objectSpread$8(_objectSpread$8({}, prev), {}, _defineProperty({}, field.key, value));
|
|
32842
32977
|
});
|
|
32843
32978
|
}
|
|
32844
32979
|
};
|
|
32845
32980
|
var handleFieldSecretToggle = function handleFieldSecretToggle(id) {
|
|
32846
32981
|
setCredentialFields(function (prev) {
|
|
32847
32982
|
return prev.map(function (f) {
|
|
32848
|
-
return f.id === id ? _objectSpread$
|
|
32983
|
+
return f.id === id ? _objectSpread$8(_objectSpread$8({}, f), {}, {
|
|
32849
32984
|
secret: !f.secret
|
|
32850
32985
|
}) : f;
|
|
32851
32986
|
});
|
|
@@ -32867,7 +33002,7 @@ var ProviderDetail = function ProviderDetail(_ref) {
|
|
|
32867
33002
|
});
|
|
32868
33003
|
if (field !== null && field !== void 0 && field.key) {
|
|
32869
33004
|
setFormCredentials(function (prev) {
|
|
32870
|
-
var updated = _objectSpread$
|
|
33005
|
+
var updated = _objectSpread$8({}, prev);
|
|
32871
33006
|
delete updated[field.key];
|
|
32872
33007
|
return updated;
|
|
32873
33008
|
});
|
|
@@ -32880,7 +33015,7 @@ var ProviderDetail = function ProviderDetail(_ref) {
|
|
|
32880
33015
|
};
|
|
32881
33016
|
var handleCredentialChange = function handleCredentialChange(key, value) {
|
|
32882
33017
|
setFormCredentials(function (prev) {
|
|
32883
|
-
return _objectSpread$
|
|
33018
|
+
return _objectSpread$8(_objectSpread$8({}, prev), {}, _defineProperty({}, key, value));
|
|
32884
33019
|
});
|
|
32885
33020
|
};
|
|
32886
33021
|
var handleTestConnection = function handleTestConnection() {
|
|
@@ -33349,8 +33484,8 @@ var ProviderDetail = function ProviderDetail(_ref) {
|
|
|
33349
33484
|
});
|
|
33350
33485
|
};
|
|
33351
33486
|
|
|
33352
|
-
function ownKeys$
|
|
33353
|
-
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; }
|
|
33354
33489
|
var rowIdCounter = 0;
|
|
33355
33490
|
var nextRowId = function nextRowId() {
|
|
33356
33491
|
return "row_".concat(++rowIdCounter);
|
|
@@ -33611,7 +33746,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
33611
33746
|
var updateEnvRow = function updateEnvRow(id, field, value) {
|
|
33612
33747
|
setEnvMappingRows(function (prev) {
|
|
33613
33748
|
return prev.map(function (row) {
|
|
33614
|
-
return row.id === id ? _objectSpread$
|
|
33749
|
+
return row.id === id ? _objectSpread$7(_objectSpread$7({}, row), {}, _defineProperty({}, field, value)) : row;
|
|
33615
33750
|
});
|
|
33616
33751
|
});
|
|
33617
33752
|
};
|
|
@@ -33636,7 +33771,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
33636
33771
|
var updateHeaderRow = function updateHeaderRow(id, field, value) {
|
|
33637
33772
|
setHeaderRows(function (prev) {
|
|
33638
33773
|
return prev.map(function (row) {
|
|
33639
|
-
return row.id === id ? _objectSpread$
|
|
33774
|
+
return row.id === id ? _objectSpread$7(_objectSpread$7({}, row), {}, _defineProperty({}, field, value)) : row;
|
|
33640
33775
|
});
|
|
33641
33776
|
});
|
|
33642
33777
|
};
|
|
@@ -33651,11 +33786,11 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
33651
33786
|
// --- credential field change ---
|
|
33652
33787
|
var handleCredentialChange = function handleCredentialChange(fieldName, value) {
|
|
33653
33788
|
setCredentialData(function (prev) {
|
|
33654
|
-
return _objectSpread$
|
|
33789
|
+
return _objectSpread$7(_objectSpread$7({}, prev), {}, _defineProperty({}, fieldName, value));
|
|
33655
33790
|
});
|
|
33656
33791
|
if (formErrors[fieldName] && value !== null && value !== void 0 && value.trim()) {
|
|
33657
33792
|
setFormErrors(function (prev) {
|
|
33658
|
-
var next = _objectSpread$
|
|
33793
|
+
var next = _objectSpread$7({}, prev);
|
|
33659
33794
|
delete next[fieldName];
|
|
33660
33795
|
return next;
|
|
33661
33796
|
});
|
|
@@ -33863,7 +33998,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
33863
33998
|
setProviderName(value);
|
|
33864
33999
|
if (formErrors.providerName && value !== null && value !== void 0 && value.trim()) {
|
|
33865
34000
|
setFormErrors(function (prev) {
|
|
33866
|
-
var next = _objectSpread$
|
|
34001
|
+
var next = _objectSpread$7({}, prev);
|
|
33867
34002
|
delete next.providerName;
|
|
33868
34003
|
return next;
|
|
33869
34004
|
});
|
|
@@ -33979,7 +34114,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
33979
34114
|
setCommand(value);
|
|
33980
34115
|
if (formErrors.command && value !== null && value !== void 0 && value.trim()) {
|
|
33981
34116
|
setFormErrors(function (prev) {
|
|
33982
|
-
var next = _objectSpread$
|
|
34117
|
+
var next = _objectSpread$7({}, prev);
|
|
33983
34118
|
delete next.command;
|
|
33984
34119
|
return next;
|
|
33985
34120
|
});
|
|
@@ -34085,7 +34220,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
34085
34220
|
setUrl(value);
|
|
34086
34221
|
if (formErrors.url && value !== null && value !== void 0 && value.trim()) {
|
|
34087
34222
|
setFormErrors(function (prev) {
|
|
34088
|
-
var next = _objectSpread$
|
|
34223
|
+
var next = _objectSpread$7({}, prev);
|
|
34089
34224
|
delete next.url;
|
|
34090
34225
|
return next;
|
|
34091
34226
|
});
|
|
@@ -34330,8 +34465,8 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
34330
34465
|
});
|
|
34331
34466
|
};
|
|
34332
34467
|
|
|
34333
|
-
function ownKeys$
|
|
34334
|
-
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; }
|
|
34335
34470
|
var getIconForServer = function getIconForServer(server) {
|
|
34336
34471
|
var iconMap = {
|
|
34337
34472
|
github: "code-branch",
|
|
@@ -34518,11 +34653,11 @@ var McpCatalogDetail = function McpCatalogDetail(_ref) {
|
|
|
34518
34653
|
// Handle credential field changes
|
|
34519
34654
|
var handleCredentialChange = function handleCredentialChange(fieldName, value) {
|
|
34520
34655
|
setCredentialData(function (prev) {
|
|
34521
|
-
return _objectSpread$
|
|
34656
|
+
return _objectSpread$6(_objectSpread$6({}, prev), {}, _defineProperty({}, fieldName, value));
|
|
34522
34657
|
});
|
|
34523
34658
|
if (formErrors[fieldName] && value !== null && value !== void 0 && value.trim()) {
|
|
34524
34659
|
setFormErrors(function (prev) {
|
|
34525
|
-
var next = _objectSpread$
|
|
34660
|
+
var next = _objectSpread$6({}, prev);
|
|
34526
34661
|
delete next[fieldName];
|
|
34527
34662
|
return next;
|
|
34528
34663
|
});
|
|
@@ -34770,7 +34905,7 @@ var McpCatalogDetail = function McpCatalogDetail(_ref) {
|
|
|
34770
34905
|
setProviderName(value);
|
|
34771
34906
|
if (formErrors.providerName && value !== null && value !== void 0 && value.trim()) {
|
|
34772
34907
|
setFormErrors(function (prev) {
|
|
34773
|
-
var next = _objectSpread$
|
|
34908
|
+
var next = _objectSpread$6({}, prev);
|
|
34774
34909
|
delete next.providerName;
|
|
34775
34910
|
return next;
|
|
34776
34911
|
});
|
|
@@ -35718,8 +35853,8 @@ var ThemeDetail = function ThemeDetail(_ref6) {
|
|
|
35718
35853
|
});
|
|
35719
35854
|
};
|
|
35720
35855
|
|
|
35721
|
-
function ownKeys$
|
|
35722
|
-
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; }
|
|
35723
35858
|
var ThemesSection = function ThemesSection(_ref) {
|
|
35724
35859
|
var _ref$onOpenThemeEdito = _ref.onOpenThemeEditor,
|
|
35725
35860
|
onOpenThemeEditor = _ref$onOpenThemeEdito === void 0 ? null : _ref$onOpenThemeEdito,
|
|
@@ -35791,7 +35926,7 @@ var ThemesSection = function ThemesSection(_ref) {
|
|
|
35791
35926
|
if (!wizardTheme || !wizardName.trim()) return;
|
|
35792
35927
|
if (!dashApi || !appId) return;
|
|
35793
35928
|
var key = wizardTheme.id || "theme-".concat(Date.now());
|
|
35794
|
-
var finalTheme = _objectSpread$
|
|
35929
|
+
var finalTheme = _objectSpread$5(_objectSpread$5({}, wizardTheme), {}, {
|
|
35795
35930
|
id: key,
|
|
35796
35931
|
name: wizardName.trim()
|
|
35797
35932
|
});
|
|
@@ -37189,8 +37324,8 @@ var useInstalledWidgets = function useInstalledWidgets() {
|
|
|
37189
37324
|
};
|
|
37190
37325
|
};
|
|
37191
37326
|
|
|
37192
|
-
function ownKeys$
|
|
37193
|
-
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; }
|
|
37194
37329
|
var WidgetsSection = function WidgetsSection(_ref) {
|
|
37195
37330
|
var _ref$workspaces = _ref.workspaces,
|
|
37196
37331
|
workspaces = _ref$workspaces === void 0 ? [] : _ref$workspaces;
|
|
@@ -37762,7 +37897,7 @@ var WidgetsSection = function WidgetsSection(_ref) {
|
|
|
37762
37897
|
listContent: listContent,
|
|
37763
37898
|
detailContent: detailContent,
|
|
37764
37899
|
emptyDetailMessage: "Select a widget to view details"
|
|
37765
|
-
}), /*#__PURE__*/jsx(ConfirmationModal, _objectSpread$
|
|
37900
|
+
}), /*#__PURE__*/jsx(ConfirmationModal, _objectSpread$4(_objectSpread$4({
|
|
37766
37901
|
isOpen: !!deleteTarget,
|
|
37767
37902
|
setIsOpen: function setIsOpen() {
|
|
37768
37903
|
setDeleteTarget(null);
|
|
@@ -37807,8 +37942,8 @@ var WidgetsSection = function WidgetsSection(_ref) {
|
|
|
37807
37942
|
});
|
|
37808
37943
|
};
|
|
37809
37944
|
|
|
37810
|
-
function ownKeys$
|
|
37811
|
-
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; }
|
|
37812
37947
|
var AccountSection = function AccountSection(_ref) {
|
|
37813
37948
|
var authStatus = _ref.authStatus,
|
|
37814
37949
|
authProfile = _ref.authProfile,
|
|
@@ -37913,7 +38048,7 @@ var AuthenticatedView = function AuthenticatedView(_ref3) {
|
|
|
37913
38048
|
onPackageUpdated: function onPackageUpdated(updatedPkg) {
|
|
37914
38049
|
setPackages(function (prev) {
|
|
37915
38050
|
return prev.map(function (p) {
|
|
37916
|
-
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;
|
|
37917
38052
|
});
|
|
37918
38053
|
});
|
|
37919
38054
|
},
|
|
@@ -38168,7 +38303,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
38168
38303
|
case 2:
|
|
38169
38304
|
result = _context3.sent;
|
|
38170
38305
|
if (result) {
|
|
38171
|
-
onSaved(_objectSpread$
|
|
38306
|
+
onSaved(_objectSpread$3(_objectSpread$3({}, pkg), updates));
|
|
38172
38307
|
}
|
|
38173
38308
|
_context3.next = 4;
|
|
38174
38309
|
break;
|
|
@@ -38233,7 +38368,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
38233
38368
|
label: "Display Name",
|
|
38234
38369
|
value: form.displayName,
|
|
38235
38370
|
onChange: function onChange(v) {
|
|
38236
|
-
return setForm(_objectSpread$
|
|
38371
|
+
return setForm(_objectSpread$3(_objectSpread$3({}, form), {}, {
|
|
38237
38372
|
displayName: v
|
|
38238
38373
|
}));
|
|
38239
38374
|
}
|
|
@@ -38241,7 +38376,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
38241
38376
|
label: "Description",
|
|
38242
38377
|
value: form.description,
|
|
38243
38378
|
onChange: function onChange(v) {
|
|
38244
|
-
return setForm(_objectSpread$
|
|
38379
|
+
return setForm(_objectSpread$3(_objectSpread$3({}, form), {}, {
|
|
38245
38380
|
description: v
|
|
38246
38381
|
}));
|
|
38247
38382
|
}
|
|
@@ -38249,7 +38384,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
38249
38384
|
label: "Category",
|
|
38250
38385
|
value: form.category,
|
|
38251
38386
|
onChange: function onChange(v) {
|
|
38252
|
-
return setForm(_objectSpread$
|
|
38387
|
+
return setForm(_objectSpread$3(_objectSpread$3({}, form), {}, {
|
|
38253
38388
|
category: v
|
|
38254
38389
|
}));
|
|
38255
38390
|
}
|
|
@@ -38257,7 +38392,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
38257
38392
|
label: "Tags (comma-separated)",
|
|
38258
38393
|
value: form.tags,
|
|
38259
38394
|
onChange: function onChange(v) {
|
|
38260
|
-
return setForm(_objectSpread$
|
|
38395
|
+
return setForm(_objectSpread$3(_objectSpread$3({}, form), {}, {
|
|
38261
38396
|
tags: v
|
|
38262
38397
|
}));
|
|
38263
38398
|
}
|
|
@@ -38269,7 +38404,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
38269
38404
|
}), /*#__PURE__*/jsxs("select", {
|
|
38270
38405
|
value: form.visibility,
|
|
38271
38406
|
onChange: function onChange(e) {
|
|
38272
|
-
return setForm(_objectSpread$
|
|
38407
|
+
return setForm(_objectSpread$3(_objectSpread$3({}, form), {}, {
|
|
38273
38408
|
visibility: e.target.value
|
|
38274
38409
|
}));
|
|
38275
38410
|
},
|
|
@@ -38373,6 +38508,216 @@ var EditField = function EditField(_ref7) {
|
|
|
38373
38508
|
});
|
|
38374
38509
|
};
|
|
38375
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
|
+
|
|
38376
38721
|
var SECTIONS = [{
|
|
38377
38722
|
key: "general",
|
|
38378
38723
|
label: "General",
|
|
@@ -38401,12 +38746,20 @@ var SECTIONS = [{
|
|
|
38401
38746
|
key: "themes",
|
|
38402
38747
|
label: "Themes",
|
|
38403
38748
|
icon: "palette"
|
|
38749
|
+
}, {
|
|
38750
|
+
key: "notifications",
|
|
38751
|
+
label: "Notifications",
|
|
38752
|
+
icon: "bell"
|
|
38404
38753
|
}];
|
|
38405
38754
|
var AppSettingsModal = function AppSettingsModal(_ref) {
|
|
38406
38755
|
var isOpen = _ref.isOpen,
|
|
38407
38756
|
setIsOpen = _ref.setIsOpen,
|
|
38408
38757
|
_ref$initialSection = _ref.initialSection,
|
|
38409
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,
|
|
38410
38763
|
_ref$workspaces = _ref.workspaces,
|
|
38411
38764
|
workspaces = _ref$workspaces === void 0 ? [] : _ref$workspaces,
|
|
38412
38765
|
_ref$menuItems = _ref.menuItems,
|
|
@@ -38531,7 +38884,9 @@ var AppSettingsModal = function AppSettingsModal(_ref) {
|
|
|
38531
38884
|
createRequested: createRequested,
|
|
38532
38885
|
onCreateAcknowledged: function onCreateAcknowledged() {
|
|
38533
38886
|
return setCreateRequested(false);
|
|
38534
|
-
}
|
|
38887
|
+
},
|
|
38888
|
+
initialProviderName: initialProviderName,
|
|
38889
|
+
initialCreateRequested: initialCreateProvider
|
|
38535
38890
|
}), activeSection === "themes" && /*#__PURE__*/jsx(ThemesSection, {
|
|
38536
38891
|
onOpenThemeEditor: onOpenThemeEditor,
|
|
38537
38892
|
dashApi: dashApi,
|
|
@@ -38559,6 +38914,8 @@ var AppSettingsModal = function AppSettingsModal(_ref) {
|
|
|
38559
38914
|
}), activeSection === "general" && /*#__PURE__*/jsx("div", {
|
|
38560
38915
|
className: "flex-1 overflow-y-auto p-6 ".concat(panelStyles.textColor || "text-gray-200"),
|
|
38561
38916
|
children: /*#__PURE__*/jsx(GeneralSection, {})
|
|
38917
|
+
}), activeSection === "notifications" && /*#__PURE__*/jsx(NotificationsSection, {
|
|
38918
|
+
workspaces: workspaces
|
|
38562
38919
|
})]
|
|
38563
38920
|
}), /*#__PURE__*/jsx(SettingsModal.Footer, {
|
|
38564
38921
|
children: /*#__PURE__*/jsx("div", {
|
|
@@ -41136,8 +41493,8 @@ var DashboardHeader = function DashboardHeader(_ref) {
|
|
|
41136
41493
|
onChange: onNameChange,
|
|
41137
41494
|
textSize: "text-lg",
|
|
41138
41495
|
placeholder: "My Workspace",
|
|
41139
|
-
bgColor: "bg-
|
|
41140
|
-
textColor: "text-
|
|
41496
|
+
bgColor: currentTheme["bg-primary-very-dark"],
|
|
41497
|
+
textColor: currentTheme["text-primary-medium"],
|
|
41141
41498
|
hasBorder: false,
|
|
41142
41499
|
autoFocus: true
|
|
41143
41500
|
}), onFolderChange && menuItems.length > 0 && /*#__PURE__*/jsx(SelectInput, {
|
|
@@ -41151,9 +41508,9 @@ var DashboardHeader = function DashboardHeader(_ref) {
|
|
|
41151
41508
|
}),
|
|
41152
41509
|
onChange: onFolderChange,
|
|
41153
41510
|
placeholder: "Folder",
|
|
41154
|
-
backgroundColor: "bg-
|
|
41155
|
-
textColor: "text-
|
|
41156
|
-
borderColor: "border-
|
|
41511
|
+
backgroundColor: currentTheme["bg-primary-very-dark"],
|
|
41512
|
+
textColor: currentTheme["text-primary-medium"],
|
|
41513
|
+
borderColor: currentTheme["border-primary-dark"],
|
|
41157
41514
|
inputClassName: "py-1 text-sm",
|
|
41158
41515
|
className: "w-40 shrink-0"
|
|
41159
41516
|
}), onThemeChange && Object.keys(resolvedThemes).length > 0 && /*#__PURE__*/jsx(SelectInput, {
|
|
@@ -41170,9 +41527,9 @@ var DashboardHeader = function DashboardHeader(_ref) {
|
|
|
41170
41527
|
}),
|
|
41171
41528
|
onChange: onThemeChange,
|
|
41172
41529
|
placeholder: "Theme",
|
|
41173
|
-
backgroundColor: "bg-
|
|
41174
|
-
textColor: "text-
|
|
41175
|
-
borderColor: "border-
|
|
41530
|
+
backgroundColor: currentTheme["bg-primary-very-dark"],
|
|
41531
|
+
textColor: currentTheme["text-primary-medium"],
|
|
41532
|
+
borderColor: currentTheme["border-primary-dark"],
|
|
41176
41533
|
inputClassName: "py-1 text-sm",
|
|
41177
41534
|
className: "w-40 shrink-0"
|
|
41178
41535
|
}), onScrollableChange && /*#__PURE__*/jsx(Toggle, {
|
|
@@ -42348,5 +42705,5 @@ var WorkspaceMenu = function WorkspaceMenu(_ref) {
|
|
|
42348
42705
|
|
|
42349
42706
|
ComponentManager.registerContainerTypes(LayoutContainer, LayoutGridContainer);
|
|
42350
42707
|
|
|
42351
|
-
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 };
|
|
42352
42709
|
//# sourceMappingURL=index.esm.js.map
|