@trops/dash-core 0.1.114 → 0.1.116
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 +647 -275
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +647 -273
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
2
|
import * as DashReact from '@trops/dash-react';
|
|
3
|
-
import { isObject, ThemeContext, deepCopy, MainSection, getUUID, getStylesForItem, themeObjects, Heading, SearchInput, ButtonIcon, SubHeading3, InputText, Button, FontAwesomeIcon, Tag, Modal, Panel, Stepper, Paragraph, Heading3, MenuItem3, FormLabel, SelectMenu, CodeEditorInline, Sidebar, SettingsModal, SubHeading2, tailwindHeightFractions, Menu3, Panel3, DropdownPanel, MenuItem2, ButtonIcon2, DragComponent, ConfirmationModal, DropComponent, getStyleName, capitalizeFirstLetter, colorTypes, getCSSStyleForClassname, Panel2, Heading2, SubHeading, Paragraph2, Paragraph3, Button2, Button3, MenuItem, Tag2, Tag3, ButtonIcon3, DashPanel, colorNames, shades, themeVariants, Tabs3, DataList, Checkbox,
|
|
3
|
+
import { isObject, ThemeContext, deepCopy, MainSection, getUUID, getStylesForItem, themeObjects, Heading, SearchInput, ButtonIcon, SubHeading3, InputText, Button, FontAwesomeIcon, Tag, Modal, Panel, Stepper, Paragraph, Heading3, MenuItem3, FormLabel, SelectMenu, Switch, CodeEditorInline, Sidebar, SettingsModal, SubHeading2, tailwindHeightFractions, Menu3, Panel3, DropdownPanel, MenuItem2, ButtonIcon2, DragComponent, ConfirmationModal, DropComponent, getStyleName, capitalizeFirstLetter, colorTypes, getCSSStyleForClassname, Panel2, Heading2, SubHeading, Paragraph2, Paragraph3, Button2, Button3, MenuItem, Tag2, Tag3, ButtonIcon3, DashPanel, colorNames, shades, themeVariants, Tabs3, DataList, Checkbox, StatCard, Card, Tabs, Accordion, Alert, Toast, ProgressBar, Toggle, Breadcrumbs, Card2, Tabs2, Accordion2, Alert2, Toast2, ProgressBar2, Toggle2, Breadcrumbs2, Card3, Accordion3, Alert3, Toast3, ProgressBar3, Toggle3, Breadcrumbs3, TextArea, SelectInput, Icon2, AlgoliaSearchBox, CommandPalette, EmptyState, Navbar, withRouter, Menu as Menu$1 } from '@trops/dash-react';
|
|
4
4
|
export * from '@trops/dash-react';
|
|
5
5
|
export { ThemeContext } from '@trops/dash-react';
|
|
6
6
|
import _typeof from '@babel/runtime/helpers/typeof';
|
|
@@ -30,8 +30,8 @@ import algoliasearch from 'algoliasearch';
|
|
|
30
30
|
import { InstantSearch, Hits } from 'react-instantsearch-hooks-web';
|
|
31
31
|
import { Link } from 'react-router-dom';
|
|
32
32
|
|
|
33
|
-
function ownKeys$
|
|
34
|
-
function _objectSpread$
|
|
33
|
+
function ownKeys$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; }
|
|
34
|
+
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; }
|
|
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$B({}, 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$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; }
|
|
2537
|
+
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; }
|
|
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$A(_objectSpread$A({}, 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$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; }
|
|
2568
|
+
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; }
|
|
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$z(_objectSpread$z({}, 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$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; }
|
|
2689
|
+
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; }
|
|
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$y({
|
|
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$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; }
|
|
8328
|
+
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; }
|
|
8329
8329
|
var PanelEditItem = function PanelEditItem(_ref) {
|
|
8330
8330
|
var _ComponentManager$get;
|
|
8331
8331
|
var workspace = _ref.workspace,
|
|
@@ -8385,7 +8385,7 @@ var PanelEditItem = function PanelEditItem(_ref) {
|
|
|
8385
8385
|
var uuid = newItem.uuid || newItem.uuidString;
|
|
8386
8386
|
if (uuid) {
|
|
8387
8387
|
workspaceTemp.selectedProviders = workspaceTemp.selectedProviders || {};
|
|
8388
|
-
workspaceTemp.selectedProviders[uuid] = _objectSpread$
|
|
8388
|
+
workspaceTemp.selectedProviders[uuid] = _objectSpread$x(_objectSpread$x({}, workspaceTemp.selectedProviders[uuid] || {}), {}, _defineProperty({}, providerType, providerId));
|
|
8389
8389
|
}
|
|
8390
8390
|
onUpdate(newItem, workspaceTemp);
|
|
8391
8391
|
forceUpdate();
|
|
@@ -8514,7 +8514,7 @@ var PanelEditItem = function PanelEditItem(_ref) {
|
|
|
8514
8514
|
var _ref5 = _slicedToArray(_ref4, 2),
|
|
8515
8515
|
name = _ref5[0],
|
|
8516
8516
|
p = _ref5[1];
|
|
8517
|
-
return _objectSpread$
|
|
8517
|
+
return _objectSpread$x({
|
|
8518
8518
|
name: name
|
|
8519
8519
|
}, p);
|
|
8520
8520
|
});
|
|
@@ -8559,8 +8559,8 @@ var _excluded$5 = ["rows", "cols"];
|
|
|
8559
8559
|
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
8560
|
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
8561
|
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$
|
|
8562
|
+
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; }
|
|
8563
|
+
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; }
|
|
8564
8564
|
var defaultGrid = {
|
|
8565
8565
|
rows: 1,
|
|
8566
8566
|
cols: 1,
|
|
@@ -8581,7 +8581,7 @@ function GridEditor(_ref) {
|
|
|
8581
8581
|
setGrid = _useState2[1];
|
|
8582
8582
|
var addRow = function addRow() {
|
|
8583
8583
|
var newRow = grid.rows;
|
|
8584
|
-
var newGrid = _objectSpread$
|
|
8584
|
+
var newGrid = _objectSpread$w(_objectSpread$w({}, grid), {}, {
|
|
8585
8585
|
rows: grid.rows + 1
|
|
8586
8586
|
});
|
|
8587
8587
|
for (var col = 0; col < grid.cols; col++) {
|
|
@@ -8596,7 +8596,7 @@ function GridEditor(_ref) {
|
|
|
8596
8596
|
};
|
|
8597
8597
|
var addColumn = function addColumn() {
|
|
8598
8598
|
var newCol = grid.cols;
|
|
8599
|
-
var newGrid = _objectSpread$
|
|
8599
|
+
var newGrid = _objectSpread$w(_objectSpread$w({}, grid), {}, {
|
|
8600
8600
|
cols: grid.cols + 1
|
|
8601
8601
|
});
|
|
8602
8602
|
for (var row = 0; row < grid.rows; row++) {
|
|
@@ -8629,8 +8629,8 @@ function GridEditor(_ref) {
|
|
|
8629
8629
|
});
|
|
8630
8630
|
}
|
|
8631
8631
|
if (grid[nextKey]) {
|
|
8632
|
-
var newGrid = _objectSpread$
|
|
8633
|
-
newGrid[currentKey] = _objectSpread$
|
|
8632
|
+
var newGrid = _objectSpread$w({}, grid);
|
|
8633
|
+
newGrid[currentKey] = _objectSpread$w(_objectSpread$w({}, newGrid[currentKey]), {}, {
|
|
8634
8634
|
colSpan: newGrid[currentKey].colSpan + 1
|
|
8635
8635
|
});
|
|
8636
8636
|
delete newGrid[nextKey];
|
|
@@ -8643,8 +8643,8 @@ function GridEditor(_ref) {
|
|
|
8643
8643
|
var currentKey = "".concat(row, ".").concat(col);
|
|
8644
8644
|
var belowKey = "".concat(row + 1, ".").concat(col);
|
|
8645
8645
|
if (grid[belowKey]) {
|
|
8646
|
-
var newGrid = _objectSpread$
|
|
8647
|
-
newGrid[currentKey] = _objectSpread$
|
|
8646
|
+
var newGrid = _objectSpread$w({}, grid);
|
|
8647
|
+
newGrid[currentKey] = _objectSpread$w(_objectSpread$w({}, newGrid[currentKey]), {}, {
|
|
8648
8648
|
rowSpan: newGrid[currentKey].rowSpan + 1
|
|
8649
8649
|
});
|
|
8650
8650
|
delete newGrid[belowKey];
|
|
@@ -8661,7 +8661,7 @@ function GridEditor(_ref) {
|
|
|
8661
8661
|
var splitCell = function splitCell(row, col) {
|
|
8662
8662
|
var key = "".concat(row, ".").concat(col);
|
|
8663
8663
|
var cell = grid[key];
|
|
8664
|
-
var newGrid = _objectSpread$
|
|
8664
|
+
var newGrid = _objectSpread$w({}, grid);
|
|
8665
8665
|
|
|
8666
8666
|
// we have to check the colspan, and since the colspan is greater than 1
|
|
8667
8667
|
// Only handle horizontal split if colSpan > 1
|
|
@@ -8677,13 +8677,13 @@ function GridEditor(_ref) {
|
|
|
8677
8677
|
var oldKey = "".concat(row, ".").concat(c);
|
|
8678
8678
|
var newKey = "".concat(row, ".").concat(c + 1);
|
|
8679
8679
|
if (newGrid[oldKey]) {
|
|
8680
|
-
newGrid[newKey] = _objectSpread$
|
|
8680
|
+
newGrid[newKey] = _objectSpread$w({}, newGrid[oldKey]);
|
|
8681
8681
|
delete newGrid[oldKey];
|
|
8682
8682
|
}
|
|
8683
8683
|
}
|
|
8684
8684
|
|
|
8685
8685
|
// Update the original cell's colSpan
|
|
8686
|
-
newGrid[key] = _objectSpread$
|
|
8686
|
+
newGrid[key] = _objectSpread$w(_objectSpread$w({}, cell), {}, {
|
|
8687
8687
|
colSpan: cell.colSpan - 1
|
|
8688
8688
|
});
|
|
8689
8689
|
|
|
@@ -8695,7 +8695,7 @@ function GridEditor(_ref) {
|
|
|
8695
8695
|
};
|
|
8696
8696
|
}
|
|
8697
8697
|
if (cell.rowSpan > 1) {
|
|
8698
|
-
newGrid[key] = _objectSpread$
|
|
8698
|
+
newGrid[key] = _objectSpread$w(_objectSpread$w({}, newGrid[key]), {}, {
|
|
8699
8699
|
rowSpan: cell.rowSpan - 1
|
|
8700
8700
|
});
|
|
8701
8701
|
newGrid["".concat(row + 1, ".").concat(col)] = {
|
|
@@ -8814,7 +8814,7 @@ function GridEditor(_ref) {
|
|
|
8814
8814
|
var fromKey = "".concat(from.row, ".").concat(from.col);
|
|
8815
8815
|
var toKey = "".concat(to.row, ".").concat(to.col);
|
|
8816
8816
|
if (fromKey === toKey) return;
|
|
8817
|
-
var newGrid = _objectSpread$
|
|
8817
|
+
var newGrid = _objectSpread$w({}, grid);
|
|
8818
8818
|
|
|
8819
8819
|
// Swap the cells
|
|
8820
8820
|
var temp = newGrid[fromKey];
|
|
@@ -8840,7 +8840,7 @@ function GridEditor(_ref) {
|
|
|
8840
8840
|
// console.log("Grid updated:", sequencedGrid);
|
|
8841
8841
|
}
|
|
8842
8842
|
function resetGridLayout() {
|
|
8843
|
-
var newGrid = _objectSpread$
|
|
8843
|
+
var newGrid = _objectSpread$w({}, defaultGrid);
|
|
8844
8844
|
setGrid(newGrid);
|
|
8845
8845
|
onUpdate(newGrid);
|
|
8846
8846
|
}
|
|
@@ -9118,6 +9118,72 @@ var PanelEditItemGrid = function PanelEditItemGrid(_ref) {
|
|
|
9118
9118
|
});
|
|
9119
9119
|
};
|
|
9120
9120
|
|
|
9121
|
+
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; }
|
|
9122
|
+
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; }
|
|
9123
|
+
var PanelEditItemNotifications = function PanelEditItemNotifications(_ref) {
|
|
9124
|
+
var item = _ref.item;
|
|
9125
|
+
_ref.workspace;
|
|
9126
|
+
_ref.onUpdate;
|
|
9127
|
+
var widgetConfig = item ? ComponentManager.config(item.component, item) : null;
|
|
9128
|
+
var notificationDefs = (widgetConfig === null || widgetConfig === void 0 ? void 0 : widgetConfig.notifications) || [];
|
|
9129
|
+
var _useState = useState({}),
|
|
9130
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
9131
|
+
notifPrefs = _useState2[0],
|
|
9132
|
+
setNotifPrefs = _useState2[1];
|
|
9133
|
+
var widgetUuid = (item === null || item === void 0 ? void 0 : item.uuid) || (item === null || item === void 0 ? void 0 : item.uuidString);
|
|
9134
|
+
useEffect(function () {
|
|
9135
|
+
var _window$mainApi;
|
|
9136
|
+
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) {
|
|
9137
|
+
window.mainApi.notifications.getPreferences().then(function (result) {
|
|
9138
|
+
var _result$instances;
|
|
9139
|
+
setNotifPrefs(((_result$instances = result.instances) === null || _result$instances === void 0 ? void 0 : _result$instances[widgetUuid]) || {});
|
|
9140
|
+
});
|
|
9141
|
+
}
|
|
9142
|
+
}, [widgetUuid, notificationDefs.length]);
|
|
9143
|
+
function handleNotifToggle(typeKey, value) {
|
|
9144
|
+
var _window$mainApi2;
|
|
9145
|
+
var updated = _objectSpread$v(_objectSpread$v({}, notifPrefs), {}, _defineProperty({}, typeKey, value));
|
|
9146
|
+
setNotifPrefs(updated);
|
|
9147
|
+
if ((_window$mainApi2 = window.mainApi) !== null && _window$mainApi2 !== void 0 && (_window$mainApi2 = _window$mainApi2.notifications) !== null && _window$mainApi2 !== void 0 && _window$mainApi2.setPreferences && widgetUuid) {
|
|
9148
|
+
window.mainApi.notifications.setPreferences(widgetUuid, _defineProperty({}, typeKey, value));
|
|
9149
|
+
}
|
|
9150
|
+
}
|
|
9151
|
+
function getNotifEnabled(typeKey, defaultEnabled) {
|
|
9152
|
+
if (typeof notifPrefs[typeKey] === "boolean") return notifPrefs[typeKey];
|
|
9153
|
+
return defaultEnabled;
|
|
9154
|
+
}
|
|
9155
|
+
if (!item || notificationDefs.length === 0) return null;
|
|
9156
|
+
return /*#__PURE__*/jsx("div", {
|
|
9157
|
+
className: "flex flex-col flex-1 min-h-0 overflow-y-auto p-6 space-y-6",
|
|
9158
|
+
children: /*#__PURE__*/jsxs("div", {
|
|
9159
|
+
className: "flex flex-col space-y-3",
|
|
9160
|
+
children: [/*#__PURE__*/jsx(SubHeading3, {
|
|
9161
|
+
title: "Notifications",
|
|
9162
|
+
padding: false
|
|
9163
|
+
}), notificationDefs.map(function (notif) {
|
|
9164
|
+
return /*#__PURE__*/jsxs("div", {
|
|
9165
|
+
className: "flex flex-row items-center justify-between py-1",
|
|
9166
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
9167
|
+
className: "flex flex-col",
|
|
9168
|
+
children: [/*#__PURE__*/jsx("span", {
|
|
9169
|
+
className: "text-sm",
|
|
9170
|
+
children: notif.displayName
|
|
9171
|
+
}), notif.description && /*#__PURE__*/jsx("span", {
|
|
9172
|
+
className: "text-xs opacity-50",
|
|
9173
|
+
children: notif.description
|
|
9174
|
+
})]
|
|
9175
|
+
}), /*#__PURE__*/jsx(Switch, {
|
|
9176
|
+
checked: getNotifEnabled(notif.key, notif.defaultEnabled),
|
|
9177
|
+
onChange: function onChange(value) {
|
|
9178
|
+
return handleNotifToggle(notif.key, value);
|
|
9179
|
+
}
|
|
9180
|
+
})]
|
|
9181
|
+
}, notif.key);
|
|
9182
|
+
})]
|
|
9183
|
+
})
|
|
9184
|
+
});
|
|
9185
|
+
};
|
|
9186
|
+
|
|
9121
9187
|
var PanelCode = function PanelCode(_ref) {
|
|
9122
9188
|
var workspace = _ref.workspace,
|
|
9123
9189
|
onUpdate = _ref.onUpdate,
|
|
@@ -9451,6 +9517,9 @@ var PanelEditItemHandlers = function PanelEditItemHandlers(_ref) {
|
|
|
9451
9517
|
};
|
|
9452
9518
|
|
|
9453
9519
|
var getSections = function getSections(item) {
|
|
9520
|
+
var _widgetConfig$notific;
|
|
9521
|
+
var widgetConfig = item ? ComponentManager.config(item.component, item) : null;
|
|
9522
|
+
var hasNotifications = (widgetConfig === null || widgetConfig === void 0 || (_widgetConfig$notific = widgetConfig.notifications) === null || _widgetConfig$notific === void 0 ? void 0 : _widgetConfig$notific.length) > 0;
|
|
9454
9523
|
return [{
|
|
9455
9524
|
key: "edit",
|
|
9456
9525
|
label: "Settings",
|
|
@@ -9459,6 +9528,10 @@ var getSections = function getSections(item) {
|
|
|
9459
9528
|
key: "grid_layout",
|
|
9460
9529
|
label: "Layout",
|
|
9461
9530
|
icon: "square"
|
|
9531
|
+
}] : []), _toConsumableArray(hasNotifications ? [{
|
|
9532
|
+
key: "notifications",
|
|
9533
|
+
label: "Notifications",
|
|
9534
|
+
icon: "bell"
|
|
9462
9535
|
}] : []), _toConsumableArray((item === null || item === void 0 ? void 0 : item.workspace) !== "layout" ? [{
|
|
9463
9536
|
key: "handlers",
|
|
9464
9537
|
label: "Listeners",
|
|
@@ -9573,6 +9646,10 @@ var LayoutBuilderConfigModal = function LayoutBuilderConfigModal(_ref) {
|
|
|
9573
9646
|
item: itemSelected,
|
|
9574
9647
|
onUpdate: handleEditChange,
|
|
9575
9648
|
workspace: workspaceSelected
|
|
9649
|
+
}), activeSection === "notifications" && /*#__PURE__*/jsx(PanelEditItemNotifications, {
|
|
9650
|
+
item: itemSelected,
|
|
9651
|
+
onUpdate: handleEditChange,
|
|
9652
|
+
workspace: workspaceSelected
|
|
9576
9653
|
}), activeSection === "handlers" && /*#__PURE__*/jsx(PanelEditItemHandlers, {
|
|
9577
9654
|
item: itemSelected,
|
|
9578
9655
|
onUpdate: handleEditChange,
|
|
@@ -11094,8 +11171,8 @@ var WidgetIcon = function WidgetIcon(_ref) {
|
|
|
11094
11171
|
});
|
|
11095
11172
|
};
|
|
11096
11173
|
|
|
11097
|
-
function ownKeys$
|
|
11098
|
-
function _objectSpread$
|
|
11174
|
+
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; }
|
|
11175
|
+
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
11176
|
var ProviderForm = function ProviderForm(_ref) {
|
|
11100
11177
|
var credentialSchema = _ref.credentialSchema,
|
|
11101
11178
|
_ref$initialValues = _ref.initialValues,
|
|
@@ -11140,14 +11217,14 @@ var ProviderForm = function ProviderForm(_ref) {
|
|
|
11140
11217
|
var oldKey = f.key;
|
|
11141
11218
|
if (oldKey && formData[oldKey] !== undefined) {
|
|
11142
11219
|
setFormData(function (fd) {
|
|
11143
|
-
var updated = _objectSpread$
|
|
11220
|
+
var updated = _objectSpread$u({}, fd);
|
|
11144
11221
|
var val = updated[oldKey];
|
|
11145
11222
|
delete updated[oldKey];
|
|
11146
11223
|
if (newKey.trim()) updated[newKey] = val;
|
|
11147
11224
|
return updated;
|
|
11148
11225
|
});
|
|
11149
11226
|
}
|
|
11150
|
-
return _objectSpread$
|
|
11227
|
+
return _objectSpread$u(_objectSpread$u({}, f), {}, {
|
|
11151
11228
|
key: newKey
|
|
11152
11229
|
});
|
|
11153
11230
|
});
|
|
@@ -11159,14 +11236,14 @@ var ProviderForm = function ProviderForm(_ref) {
|
|
|
11159
11236
|
});
|
|
11160
11237
|
if (field !== null && field !== void 0 && field.key) {
|
|
11161
11238
|
setFormData(function (prev) {
|
|
11162
|
-
return _objectSpread$
|
|
11239
|
+
return _objectSpread$u(_objectSpread$u({}, prev), {}, _defineProperty({}, field.key, value));
|
|
11163
11240
|
});
|
|
11164
11241
|
}
|
|
11165
11242
|
};
|
|
11166
11243
|
var handleDynamicSecretToggle = function handleDynamicSecretToggle(id) {
|
|
11167
11244
|
setDynamicFields(function (prev) {
|
|
11168
11245
|
return prev.map(function (f) {
|
|
11169
|
-
return f.id === id ? _objectSpread$
|
|
11246
|
+
return f.id === id ? _objectSpread$u(_objectSpread$u({}, f), {}, {
|
|
11170
11247
|
secret: !f.secret
|
|
11171
11248
|
}) : f;
|
|
11172
11249
|
});
|
|
@@ -11188,7 +11265,7 @@ var ProviderForm = function ProviderForm(_ref) {
|
|
|
11188
11265
|
});
|
|
11189
11266
|
if (field !== null && field !== void 0 && field.key) {
|
|
11190
11267
|
setFormData(function (prev) {
|
|
11191
|
-
var updated = _objectSpread$
|
|
11268
|
+
var updated = _objectSpread$u({}, prev);
|
|
11192
11269
|
delete updated[field.key];
|
|
11193
11270
|
return updated;
|
|
11194
11271
|
});
|
|
@@ -11230,13 +11307,13 @@ var ProviderForm = function ProviderForm(_ref) {
|
|
|
11230
11307
|
*/
|
|
11231
11308
|
var handleInputChange = function handleInputChange(fieldName, value) {
|
|
11232
11309
|
setFormData(function (prev) {
|
|
11233
|
-
return _objectSpread$
|
|
11310
|
+
return _objectSpread$u(_objectSpread$u({}, prev), {}, _defineProperty({}, fieldName, value));
|
|
11234
11311
|
});
|
|
11235
11312
|
|
|
11236
11313
|
// Clear error for this field if it was filled
|
|
11237
11314
|
if (errors[fieldName] && value !== null && value !== void 0 && value.trim()) {
|
|
11238
11315
|
setErrors(function (prev) {
|
|
11239
|
-
var newErrors = _objectSpread$
|
|
11316
|
+
var newErrors = _objectSpread$u({}, prev);
|
|
11240
11317
|
delete newErrors[fieldName];
|
|
11241
11318
|
return newErrors;
|
|
11242
11319
|
});
|
|
@@ -11274,7 +11351,7 @@ var ProviderForm = function ProviderForm(_ref) {
|
|
|
11274
11351
|
// Clear error if filled
|
|
11275
11352
|
if (errors.providerName && value !== null && value !== void 0 && value.trim()) {
|
|
11276
11353
|
setErrors(function (prev) {
|
|
11277
|
-
var newErrors = _objectSpread$
|
|
11354
|
+
var newErrors = _objectSpread$u({}, prev);
|
|
11278
11355
|
delete newErrors.providerName;
|
|
11279
11356
|
return newErrors;
|
|
11280
11357
|
});
|
|
@@ -11511,8 +11588,8 @@ var ToolSelector = function ToolSelector(_ref) {
|
|
|
11511
11588
|
});
|
|
11512
11589
|
};
|
|
11513
11590
|
|
|
11514
|
-
function ownKeys$
|
|
11515
|
-
function _objectSpread$
|
|
11591
|
+
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; }
|
|
11592
|
+
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
11593
|
/**
|
|
11517
11594
|
* Shared MCP utility functions.
|
|
11518
11595
|
*
|
|
@@ -11640,7 +11717,7 @@ function buildMcpConfigFromOverrides(baseMcpConfig, envMappingRows, headerRows)
|
|
|
11640
11717
|
headerTemplate[name] = value;
|
|
11641
11718
|
}
|
|
11642
11719
|
});
|
|
11643
|
-
var config = _objectSpread$
|
|
11720
|
+
var config = _objectSpread$t({}, baseMcpConfig);
|
|
11644
11721
|
if (Object.keys(headerTemplate).length > 0) {
|
|
11645
11722
|
config.headerTemplate = headerTemplate;
|
|
11646
11723
|
} else {
|
|
@@ -11658,7 +11735,7 @@ function buildMcpConfigFromOverrides(baseMcpConfig, envMappingRows, headerRows)
|
|
|
11658
11735
|
envMapping[env] = cred;
|
|
11659
11736
|
}
|
|
11660
11737
|
});
|
|
11661
|
-
return _objectSpread$
|
|
11738
|
+
return _objectSpread$t(_objectSpread$t({}, baseMcpConfig), {}, {
|
|
11662
11739
|
envMapping: envMapping
|
|
11663
11740
|
});
|
|
11664
11741
|
}
|
|
@@ -11895,8 +11972,8 @@ function mcpJsonToFormState(jsonString, nextRowId) {
|
|
|
11895
11972
|
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
11973
|
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
11974
|
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$
|
|
11975
|
+
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; }
|
|
11976
|
+
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
11977
|
var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
11901
11978
|
var isOpen = _ref.isOpen,
|
|
11902
11979
|
onClose = _ref.onClose,
|
|
@@ -12073,7 +12150,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
12073
12150
|
.map(function (entry) {
|
|
12074
12151
|
var widget = allWidgets[entry.widgetKey];
|
|
12075
12152
|
if (!widget) return null; // Widget no longer exists
|
|
12076
|
-
return _objectSpread$
|
|
12153
|
+
return _objectSpread$s(_objectSpread$s({
|
|
12077
12154
|
key: entry.widgetKey
|
|
12078
12155
|
}, widget), {}, {
|
|
12079
12156
|
savedProviders: entry.providers || {},
|
|
@@ -12224,7 +12301,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
12224
12301
|
// Get widgets from ComponentManager
|
|
12225
12302
|
var allWidgets = ComponentManager.map();
|
|
12226
12303
|
var widgetList = Object.keys(allWidgets).map(function (key) {
|
|
12227
|
-
return _objectSpread$
|
|
12304
|
+
return _objectSpread$s({
|
|
12228
12305
|
key: key
|
|
12229
12306
|
}, allWidgets[key]);
|
|
12230
12307
|
}).filter(function (widget) {
|
|
@@ -12454,7 +12531,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
12454
12531
|
setInlineCreateType(null);
|
|
12455
12532
|
setInlineCreateSchema({});
|
|
12456
12533
|
setInlineCreateError(null);
|
|
12457
|
-
setSelectedProviders(_objectSpread$
|
|
12534
|
+
setSelectedProviders(_objectSpread$s(_objectSpread$s({}, selectedProviders), {}, _defineProperty({}, providerType, providerName)));
|
|
12458
12535
|
}
|
|
12459
12536
|
};
|
|
12460
12537
|
var handleInlineProviderSubmit = function handleInlineProviderSubmit(formData) {
|
|
@@ -12475,7 +12552,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
12475
12552
|
|
|
12476
12553
|
// Auto-select the newly created provider
|
|
12477
12554
|
setSelectedProviders(function (prev) {
|
|
12478
|
-
return _objectSpread$
|
|
12555
|
+
return _objectSpread$s(_objectSpread$s({}, prev), {}, _defineProperty({}, providerType, providerName));
|
|
12479
12556
|
});
|
|
12480
12557
|
|
|
12481
12558
|
// Collapse the inline form
|
|
@@ -12529,11 +12606,11 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
12529
12606
|
};
|
|
12530
12607
|
var inlineHandleCredentialChange = function inlineHandleCredentialChange(fieldName, value) {
|
|
12531
12608
|
setInlineCredentialData(function (prev) {
|
|
12532
|
-
return _objectSpread$
|
|
12609
|
+
return _objectSpread$s(_objectSpread$s({}, prev), {}, _defineProperty({}, fieldName, value));
|
|
12533
12610
|
});
|
|
12534
12611
|
if (inlineFormErrors[fieldName] && value !== null && value !== void 0 && value.trim()) {
|
|
12535
12612
|
setInlineFormErrors(function (prev) {
|
|
12536
|
-
var next = _objectSpread$
|
|
12613
|
+
var next = _objectSpread$s({}, prev);
|
|
12537
12614
|
delete next[fieldName];
|
|
12538
12615
|
return next;
|
|
12539
12616
|
});
|
|
@@ -12626,7 +12703,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
12626
12703
|
refreshProviders();
|
|
12627
12704
|
}
|
|
12628
12705
|
setSelectedProviders(function (prev) {
|
|
12629
|
-
return _objectSpread$
|
|
12706
|
+
return _objectSpread$s(_objectSpread$s({}, prev), {}, _defineProperty({}, providerType, providerName));
|
|
12630
12707
|
});
|
|
12631
12708
|
|
|
12632
12709
|
// Reset stepper state
|
|
@@ -12647,7 +12724,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
12647
12724
|
});
|
|
12648
12725
|
};
|
|
12649
12726
|
var handleConfigChange = function handleConfigChange(key, value) {
|
|
12650
|
-
setUserConfigValues(_objectSpread$
|
|
12727
|
+
setUserConfigValues(_objectSpread$s(_objectSpread$s({}, userConfigValues), {}, _defineProperty({}, key, value)));
|
|
12651
12728
|
};
|
|
12652
12729
|
|
|
12653
12730
|
// Install a package from the registry
|
|
@@ -12737,7 +12814,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
12737
12814
|
|
|
12738
12815
|
// Phase 3: Save to recent widgets
|
|
12739
12816
|
saveToRecent(selectedWidget, selectedProviders, userConfigValues);
|
|
12740
|
-
onSelectWidget(_objectSpread$
|
|
12817
|
+
onSelectWidget(_objectSpread$s(_objectSpread$s({}, selectedWidget), {}, {
|
|
12741
12818
|
selectedProviders: selectedProviders,
|
|
12742
12819
|
// Pass to parent
|
|
12743
12820
|
userConfigValues: userConfigValues // Pass to parent
|
|
@@ -13375,7 +13452,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
13375
13452
|
setInlineProviderName(value);
|
|
13376
13453
|
if (inlineFormErrors.providerName && value !== null && value !== void 0 && value.trim()) {
|
|
13377
13454
|
setInlineFormErrors(function (prev) {
|
|
13378
|
-
var next = _objectSpread$
|
|
13455
|
+
var next = _objectSpread$s({}, prev);
|
|
13379
13456
|
delete next.providerName;
|
|
13380
13457
|
return next;
|
|
13381
13458
|
});
|
|
@@ -14412,8 +14489,8 @@ var ProviderSelector = function ProviderSelector(_ref) {
|
|
|
14412
14489
|
});
|
|
14413
14490
|
};
|
|
14414
14491
|
|
|
14415
|
-
function ownKeys$
|
|
14416
|
-
function _objectSpread$
|
|
14492
|
+
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; }
|
|
14493
|
+
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
14494
|
var AdvancedMcpConfig = function AdvancedMcpConfig(_ref) {
|
|
14418
14495
|
var transport = _ref.transport,
|
|
14419
14496
|
envMappingRows = _ref.envMappingRows,
|
|
@@ -14442,7 +14519,7 @@ var AdvancedMcpConfig = function AdvancedMcpConfig(_ref) {
|
|
|
14442
14519
|
var updateEnvRow = function updateEnvRow(id, field, value) {
|
|
14443
14520
|
onEnvMappingRowsChange(function (prev) {
|
|
14444
14521
|
return prev.map(function (row) {
|
|
14445
|
-
return row.id === id ? _objectSpread$
|
|
14522
|
+
return row.id === id ? _objectSpread$r(_objectSpread$r({}, row), {}, _defineProperty({}, field, value)) : row;
|
|
14446
14523
|
});
|
|
14447
14524
|
});
|
|
14448
14525
|
};
|
|
@@ -14467,7 +14544,7 @@ var AdvancedMcpConfig = function AdvancedMcpConfig(_ref) {
|
|
|
14467
14544
|
var updateHeaderRow = function updateHeaderRow(id, field, value) {
|
|
14468
14545
|
onHeaderRowsChange(function (prev) {
|
|
14469
14546
|
return prev.map(function (row) {
|
|
14470
|
-
return row.id === id ? _objectSpread$
|
|
14547
|
+
return row.id === id ? _objectSpread$r(_objectSpread$r({}, row), {}, _defineProperty({}, field, value)) : row;
|
|
14471
14548
|
});
|
|
14472
14549
|
});
|
|
14473
14550
|
};
|
|
@@ -14616,8 +14693,8 @@ var AdvancedMcpConfig = function AdvancedMcpConfig(_ref) {
|
|
|
14616
14693
|
});
|
|
14617
14694
|
};
|
|
14618
14695
|
|
|
14619
|
-
function ownKeys$
|
|
14620
|
-
function _objectSpread$
|
|
14696
|
+
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; }
|
|
14697
|
+
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
14698
|
var McpServerPicker = function McpServerPicker(_ref) {
|
|
14622
14699
|
var _testResult$tools;
|
|
14623
14700
|
var isOpen = _ref.isOpen,
|
|
@@ -14796,11 +14873,11 @@ var McpServerPicker = function McpServerPicker(_ref) {
|
|
|
14796
14873
|
// Handle credential field changes
|
|
14797
14874
|
var handleCredentialChange = function handleCredentialChange(fieldName, value) {
|
|
14798
14875
|
setCredentialData(function (prev) {
|
|
14799
|
-
return _objectSpread$
|
|
14876
|
+
return _objectSpread$q(_objectSpread$q({}, prev), {}, _defineProperty({}, fieldName, value));
|
|
14800
14877
|
});
|
|
14801
14878
|
if (formErrors[fieldName] && value !== null && value !== void 0 && value.trim()) {
|
|
14802
14879
|
setFormErrors(function (prev) {
|
|
14803
|
-
var next = _objectSpread$
|
|
14880
|
+
var next = _objectSpread$q({}, prev);
|
|
14804
14881
|
delete next[fieldName];
|
|
14805
14882
|
return next;
|
|
14806
14883
|
});
|
|
@@ -15138,7 +15215,7 @@ var McpServerPicker = function McpServerPicker(_ref) {
|
|
|
15138
15215
|
setProviderName(value);
|
|
15139
15216
|
if (formErrors.providerName && value !== null && value !== void 0 && value.trim()) {
|
|
15140
15217
|
setFormErrors(function (prev) {
|
|
15141
|
-
var next = _objectSpread$
|
|
15218
|
+
var next = _objectSpread$q({}, prev);
|
|
15142
15219
|
delete next.providerName;
|
|
15143
15220
|
return next;
|
|
15144
15221
|
});
|
|
@@ -15328,8 +15405,8 @@ var McpServerPicker = function McpServerPicker(_ref) {
|
|
|
15328
15405
|
});
|
|
15329
15406
|
};
|
|
15330
15407
|
|
|
15331
|
-
function ownKeys$
|
|
15332
|
-
function _objectSpread$
|
|
15408
|
+
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; }
|
|
15409
|
+
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
15410
|
var USE_ENHANCED_WIDGET_SELECTOR = true; // Set to false to use original modal
|
|
15334
15411
|
|
|
15335
15412
|
/**
|
|
@@ -15375,7 +15452,7 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
15375
15452
|
var _ref3 = _slicedToArray(_ref2, 2),
|
|
15376
15453
|
id = _ref3[0],
|
|
15377
15454
|
p = _ref3[1];
|
|
15378
|
-
return _objectSpread$
|
|
15455
|
+
return _objectSpread$p(_objectSpread$p({}, p), {}, {
|
|
15379
15456
|
id: id,
|
|
15380
15457
|
name: p.name || id
|
|
15381
15458
|
});
|
|
@@ -15462,7 +15539,7 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
15462
15539
|
// so we use its layout to replace any corrupted grid data.
|
|
15463
15540
|
if (workspace && workspace["layout"]) {
|
|
15464
15541
|
var model = new DashboardModel(workspace);
|
|
15465
|
-
setCurrentWorkspace(_objectSpread$
|
|
15542
|
+
setCurrentWorkspace(_objectSpread$p(_objectSpread$p({}, workspace), {}, {
|
|
15466
15543
|
layout: model.layout
|
|
15467
15544
|
}));
|
|
15468
15545
|
} else {
|
|
@@ -15853,7 +15930,7 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
15853
15930
|
var uuid = widget.uuid || widget.uuidString;
|
|
15854
15931
|
if (uuid) {
|
|
15855
15932
|
newWorkspace.selectedProviders = newWorkspace.selectedProviders || {};
|
|
15856
|
-
newWorkspace.selectedProviders[uuid] = _objectSpread$
|
|
15933
|
+
newWorkspace.selectedProviders[uuid] = _objectSpread$p(_objectSpread$p({}, newWorkspace.selectedProviders[uuid] || {}), {}, _defineProperty({}, providerType, providerId));
|
|
15857
15934
|
}
|
|
15858
15935
|
setCurrentWorkspace(newWorkspace);
|
|
15859
15936
|
}
|
|
@@ -15988,7 +16065,7 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
15988
16065
|
try {
|
|
15989
16066
|
var config = ComponentManager.config(widgetKey);
|
|
15990
16067
|
if (!config) return;
|
|
15991
|
-
var widgetItem = _objectSpread$
|
|
16068
|
+
var widgetItem = _objectSpread$p(_objectSpread$p({}, config), {}, {
|
|
15992
16069
|
component: widgetKey,
|
|
15993
16070
|
key: widgetKey
|
|
15994
16071
|
});
|
|
@@ -16217,7 +16294,7 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
16217
16294
|
onSelectWidget: function onSelectWidget(widget) {
|
|
16218
16295
|
|
|
16219
16296
|
// Add component property from widget.key
|
|
16220
|
-
var widgetWithComponent = _objectSpread$
|
|
16297
|
+
var widgetWithComponent = _objectSpread$p(_objectSpread$p({}, widget), {}, {
|
|
16221
16298
|
component: widget.key
|
|
16222
16299
|
});
|
|
16223
16300
|
handleClickConfirmAdd(widgetWithComponent, dropdownTarget);
|
|
@@ -17841,8 +17918,8 @@ var MissingProviderPrompt = function MissingProviderPrompt(_ref) {
|
|
|
17841
17918
|
});
|
|
17842
17919
|
};
|
|
17843
17920
|
|
|
17844
|
-
function ownKeys$
|
|
17845
|
-
function _objectSpread$
|
|
17921
|
+
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; }
|
|
17922
|
+
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
17923
|
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
17924
|
function _isNativeReflectConstruct$4() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$4 = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
17848
17925
|
var ProviderErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
@@ -17897,7 +17974,7 @@ var ProviderErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
|
17897
17974
|
_defineProperty(_this, "handleProviderSelect", function (providerType, providerName, credentials) {
|
|
17898
17975
|
|
|
17899
17976
|
// Update local selected providers state
|
|
17900
|
-
var updatedSelected = _objectSpread$
|
|
17977
|
+
var updatedSelected = _objectSpread$o(_objectSpread$o({}, _this.state.selectedProviders), {}, _defineProperty({}, providerType, providerName));
|
|
17901
17978
|
_this.setState({
|
|
17902
17979
|
selectedProviders: updatedSelected
|
|
17903
17980
|
}, function () {
|
|
@@ -17971,8 +18048,8 @@ var ProviderErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
|
17971
18048
|
}(Component);
|
|
17972
18049
|
_defineProperty(ProviderErrorBoundary, "contextType", ProviderContext);
|
|
17973
18050
|
|
|
17974
|
-
function ownKeys$
|
|
17975
|
-
function _objectSpread$
|
|
18051
|
+
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; }
|
|
18052
|
+
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
18053
|
var withProviderDetection = function withProviderDetection(Component) {
|
|
17977
18054
|
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
17978
18055
|
_ref$requiredProvider = _ref.requiredProviders,
|
|
@@ -17997,7 +18074,7 @@ var withProviderDetection = function withProviderDetection(Component) {
|
|
|
17997
18074
|
onProviderSelect: onProviderSelect
|
|
17998
18075
|
});
|
|
17999
18076
|
}
|
|
18000
|
-
return /*#__PURE__*/jsx(Component, _objectSpread$
|
|
18077
|
+
return /*#__PURE__*/jsx(Component, _objectSpread$n({}, props));
|
|
18001
18078
|
};
|
|
18002
18079
|
};
|
|
18003
18080
|
|
|
@@ -18211,8 +18288,8 @@ var WidgetHelpers = /*#__PURE__*/function () {
|
|
|
18211
18288
|
}]);
|
|
18212
18289
|
}();
|
|
18213
18290
|
|
|
18214
|
-
function ownKeys$
|
|
18215
|
-
function _objectSpread$
|
|
18291
|
+
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; }
|
|
18292
|
+
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
18293
|
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
18294
|
function _isNativeReflectConstruct$2() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$2 = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
18218
18295
|
var WidgetErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
@@ -18339,7 +18416,7 @@ var WidgetRenderer = function WidgetRenderer(_ref) {
|
|
|
18339
18416
|
|
|
18340
18417
|
// Build widgetData for WidgetContext — hooks read from this
|
|
18341
18418
|
var uuidString = getUUID(params.uuid);
|
|
18342
|
-
var widgetData = _objectSpread$
|
|
18419
|
+
var widgetData = _objectSpread$m(_objectSpread$m({}, params), {}, {
|
|
18343
18420
|
uuidString: uuidString,
|
|
18344
18421
|
providers: (config === null || config === void 0 ? void 0 : config.providers) || []
|
|
18345
18422
|
});
|
|
@@ -18367,7 +18444,7 @@ var WidgetRenderer = function WidgetRenderer(_ref) {
|
|
|
18367
18444
|
value: widgetContextValue,
|
|
18368
18445
|
children: /*#__PURE__*/jsx(WidgetErrorBoundary, {
|
|
18369
18446
|
widgetName: component,
|
|
18370
|
-
children: children === null ? /*#__PURE__*/jsx(WidgetComponent, _objectSpread$
|
|
18447
|
+
children: children === null ? /*#__PURE__*/jsx(WidgetComponent, _objectSpread$m(_objectSpread$m(_objectSpread$m({
|
|
18371
18448
|
id: "widget-nokids-".concat(widgetKey),
|
|
18372
18449
|
listen: function listen(listeners, handlers) {
|
|
18373
18450
|
return helpers.listen(listeners, handlers);
|
|
@@ -18380,7 +18457,7 @@ var WidgetRenderer = function WidgetRenderer(_ref) {
|
|
|
18380
18457
|
backgroundColor: bgColor,
|
|
18381
18458
|
widgetConfig: helpers.config(),
|
|
18382
18459
|
widgetEventNames: helpers.events()
|
|
18383
|
-
}), "widget-nokids-".concat(widgetKey)) : /*#__PURE__*/jsx(WidgetComponent, _objectSpread$
|
|
18460
|
+
}), "widget-nokids-".concat(widgetKey)) : /*#__PURE__*/jsx(WidgetComponent, _objectSpread$m(_objectSpread$m(_objectSpread$m({
|
|
18384
18461
|
listen: function listen(listeners, handlers) {
|
|
18385
18462
|
return helpers.listen(listeners, handlers);
|
|
18386
18463
|
},
|
|
@@ -18562,8 +18639,8 @@ var SIDEBAR_WIDGET_TYPE = "sidebar-widget";
|
|
|
18562
18639
|
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
18640
|
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
18641
|
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$
|
|
18642
|
+
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; }
|
|
18643
|
+
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
18644
|
var DraggableCellBody = function DraggableCellBody(_ref) {
|
|
18568
18645
|
var cellNumber = _ref.cellNumber,
|
|
18569
18646
|
gridContainerId = _ref.gridContainerId,
|
|
@@ -18714,7 +18791,7 @@ var LayoutGridContainer = /*#__PURE__*/memo(function (_ref3) {
|
|
|
18714
18791
|
var _ref5 = _slicedToArray(_ref4, 2),
|
|
18715
18792
|
id = _ref5[0],
|
|
18716
18793
|
provider = _ref5[1];
|
|
18717
|
-
return _objectSpread$
|
|
18794
|
+
return _objectSpread$l({
|
|
18718
18795
|
id: id
|
|
18719
18796
|
}, provider);
|
|
18720
18797
|
}) : [];
|
|
@@ -19712,7 +19789,7 @@ var LayoutGridContainer = /*#__PURE__*/memo(function (_ref3) {
|
|
|
19712
19789
|
var widgetSpecificSelections = (workspace === null || workspace === void 0 || (_workspace$selectedPr = workspace.selectedProviders) === null || _workspace$selectedPr === void 0 ? void 0 : _workspace$selectedPr[id]) || {};
|
|
19713
19790
|
|
|
19714
19791
|
// Add provider-related props from workspace
|
|
19715
|
-
var itemWithProviders = _objectSpread$
|
|
19792
|
+
var itemWithProviders = _objectSpread$l(_objectSpread$l({}, item), {}, {
|
|
19716
19793
|
selectedProviders: widgetSpecificSelections,
|
|
19717
19794
|
onProviderSelect: onProviderSelect
|
|
19718
19795
|
});
|
|
@@ -21225,8 +21302,8 @@ function isWidgetResolvable(componentKey) {
|
|
|
21225
21302
|
// isMinOrderForItem
|
|
21226
21303
|
// }
|
|
21227
21304
|
|
|
21228
|
-
function ownKeys$
|
|
21229
|
-
function _objectSpread$
|
|
21305
|
+
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; }
|
|
21306
|
+
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
21307
|
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
21308
|
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
21309
|
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 +21459,7 @@ var LayoutModel = function LayoutModel(layoutItem, workspaceLayout, dashboardId)
|
|
|
21382
21459
|
|
|
21383
21460
|
// Merge user-entered config values (from EnhancedWidgetDropdown) into userPrefs
|
|
21384
21461
|
if ("userConfigValues" in obj && obj.userConfigValues) {
|
|
21385
|
-
layout.userPrefs = _objectSpread$
|
|
21462
|
+
layout.userPrefs = _objectSpread$k(_objectSpread$k({}, layout.userPrefs), obj.userConfigValues);
|
|
21386
21463
|
}
|
|
21387
21464
|
|
|
21388
21465
|
// Preserve provider selections for this widget
|
|
@@ -21883,6 +21960,13 @@ var ComponentConfigModel = function ComponentConfigModel() {
|
|
|
21883
21960
|
obj.icon = "icon" in obj ? obj["icon"] : null;
|
|
21884
21961
|
obj["package"] = "package" in obj ? obj["package"] : null;
|
|
21885
21962
|
obj.providers = "providers" in obj ? obj["providers"] : [];
|
|
21963
|
+
|
|
21964
|
+
/**
|
|
21965
|
+
* notifications
|
|
21966
|
+
* Notification types this widget can emit.
|
|
21967
|
+
* Each entry: { key, displayName, description, defaultEnabled }
|
|
21968
|
+
*/
|
|
21969
|
+
obj.notifications = "notifications" in obj ? obj["notifications"] : [];
|
|
21886
21970
|
return obj;
|
|
21887
21971
|
};
|
|
21888
21972
|
|
|
@@ -21896,8 +21980,8 @@ var MenuItemModel = function MenuItemModel() {
|
|
|
21896
21980
|
return m;
|
|
21897
21981
|
};
|
|
21898
21982
|
|
|
21899
|
-
function ownKeys$
|
|
21900
|
-
function _objectSpread$
|
|
21983
|
+
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; }
|
|
21984
|
+
function _objectSpread$j(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$j(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$j(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21901
21985
|
/**
|
|
21902
21986
|
* A Model for a Workspace (Dashboard)
|
|
21903
21987
|
* The Dashboard in this instance is the entire Layout inclusive of the workspaces and widgets
|
|
@@ -23161,7 +23245,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
23161
23245
|
visibleCells.push({
|
|
23162
23246
|
row: r,
|
|
23163
23247
|
col: c,
|
|
23164
|
-
data: _objectSpread$
|
|
23248
|
+
data: _objectSpread$j({}, cell),
|
|
23165
23249
|
spanCol: ((_cell$span = cell.span) === null || _cell$span === void 0 ? void 0 : _cell$span.col) || 1,
|
|
23166
23250
|
spanRow: ((_cell$span2 = cell.span) === null || _cell$span2 === void 0 ? void 0 : _cell$span2.row) || 1
|
|
23167
23251
|
});
|
|
@@ -23183,7 +23267,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
23183
23267
|
var vc = _visibleCells[_i5];
|
|
23184
23268
|
var newCol = (vc.col - 1) * count + 1;
|
|
23185
23269
|
var _key7 = "".concat(vc.row, ".").concat(newCol);
|
|
23186
|
-
grid[_key7] = _objectSpread$
|
|
23270
|
+
grid[_key7] = _objectSpread$j(_objectSpread$j({}, vc.data), {}, {
|
|
23187
23271
|
hide: false,
|
|
23188
23272
|
span: {
|
|
23189
23273
|
row: vc.spanRow,
|
|
@@ -23258,7 +23342,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
23258
23342
|
_visibleCells2.push({
|
|
23259
23343
|
row: _r1,
|
|
23260
23344
|
col: _c10,
|
|
23261
|
-
data: _objectSpread$
|
|
23345
|
+
data: _objectSpread$j({}, _cell6),
|
|
23262
23346
|
spanRow: ((_cell6$span = _cell6.span) === null || _cell6$span === void 0 ? void 0 : _cell6$span.row) || 1,
|
|
23263
23347
|
spanCol: ((_cell6$span2 = _cell6.span) === null || _cell6$span2 === void 0 ? void 0 : _cell6$span2.col) || 1
|
|
23264
23348
|
});
|
|
@@ -23280,7 +23364,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
23280
23364
|
var _vc = _visibleCells3[_i9];
|
|
23281
23365
|
var newRow = (_vc.row - 1) * count + 1;
|
|
23282
23366
|
var _key10 = "".concat(newRow, ".").concat(_vc.col);
|
|
23283
|
-
grid[_key10] = _objectSpread$
|
|
23367
|
+
grid[_key10] = _objectSpread$j(_objectSpread$j({}, _vc.data), {}, {
|
|
23284
23368
|
hide: false,
|
|
23285
23369
|
span: {
|
|
23286
23370
|
row: _vc.spanRow * count,
|
|
@@ -24424,8 +24508,8 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
|
24424
24508
|
}]);
|
|
24425
24509
|
}(React__default.Component);
|
|
24426
24510
|
|
|
24427
|
-
function ownKeys$
|
|
24428
|
-
function _objectSpread$
|
|
24511
|
+
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; }
|
|
24512
|
+
function _objectSpread$i(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$i(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$i(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24429
24513
|
|
|
24430
24514
|
/**
|
|
24431
24515
|
* useDashboard Hook
|
|
@@ -24481,7 +24565,7 @@ var useDashboard = function useDashboard() {
|
|
|
24481
24565
|
}
|
|
24482
24566
|
});
|
|
24483
24567
|
}
|
|
24484
|
-
return _objectSpread$
|
|
24568
|
+
return _objectSpread$i({
|
|
24485
24569
|
app: app,
|
|
24486
24570
|
dashboard: dashboard,
|
|
24487
24571
|
theme: theme
|
|
@@ -25212,8 +25296,74 @@ function useProviderClient(provider) {
|
|
|
25212
25296
|
};
|
|
25213
25297
|
}
|
|
25214
25298
|
|
|
25215
|
-
|
|
25216
|
-
|
|
25299
|
+
/**
|
|
25300
|
+
* useNotifications Hook
|
|
25301
|
+
*
|
|
25302
|
+
* Provides notification methods for widgets.
|
|
25303
|
+
* Validates that the notification type matches the widget's
|
|
25304
|
+
* declared notifications[] config before sending.
|
|
25305
|
+
*
|
|
25306
|
+
* @returns {Object}
|
|
25307
|
+
* - notify({ type, title, body, data?, silent?, urgency? }) — send a notification
|
|
25308
|
+
* - notificationTypes — array of notification configs from .dash.js
|
|
25309
|
+
*/
|
|
25310
|
+
var useNotifications = function useNotifications() {
|
|
25311
|
+
var _workspaceContext$wor;
|
|
25312
|
+
var widgetContext = useContext(WidgetContext);
|
|
25313
|
+
var workspaceContext = useContext(WorkspaceContext);
|
|
25314
|
+
if (!widgetContext) {
|
|
25315
|
+
throw new Error("useNotifications must be used within a Widget component. " + "Make sure your component is rendered inside <Widget> and within a DashboardWrapper.");
|
|
25316
|
+
}
|
|
25317
|
+
var _ref = widgetContext.widgetData || {},
|
|
25318
|
+
componentName = _ref.componentName,
|
|
25319
|
+
uuid = _ref.uuid,
|
|
25320
|
+
notifications = _ref.notifications;
|
|
25321
|
+
var workspaceId = workspaceContext === null || workspaceContext === void 0 || (_workspaceContext$wor = workspaceContext.workspaceData) === null || _workspaceContext$wor === void 0 ? void 0 : _workspaceContext$wor.id;
|
|
25322
|
+
var notify = useCallback(function (_ref2) {
|
|
25323
|
+
var type = _ref2.type,
|
|
25324
|
+
title = _ref2.title,
|
|
25325
|
+
body = _ref2.body,
|
|
25326
|
+
data = _ref2.data,
|
|
25327
|
+
silent = _ref2.silent,
|
|
25328
|
+
urgency = _ref2.urgency;
|
|
25329
|
+
if (!window.mainApi || !window.mainApi.notifications) {
|
|
25330
|
+
return Promise.resolve({
|
|
25331
|
+
success: false,
|
|
25332
|
+
reason: "no_api"
|
|
25333
|
+
});
|
|
25334
|
+
}
|
|
25335
|
+
|
|
25336
|
+
// Validate type against widget's declared notifications
|
|
25337
|
+
var declaredTypes = notifications || [];
|
|
25338
|
+
var isValid = declaredTypes.some(function (n) {
|
|
25339
|
+
return n.key === type;
|
|
25340
|
+
});
|
|
25341
|
+
if (!isValid) {
|
|
25342
|
+
return Promise.resolve({
|
|
25343
|
+
success: false,
|
|
25344
|
+
reason: "invalid_type"
|
|
25345
|
+
});
|
|
25346
|
+
}
|
|
25347
|
+
return window.mainApi.notifications.send({
|
|
25348
|
+
widgetName: componentName,
|
|
25349
|
+
widgetId: uuid,
|
|
25350
|
+
workspaceId: workspaceId,
|
|
25351
|
+
type: type,
|
|
25352
|
+
title: title,
|
|
25353
|
+
body: body,
|
|
25354
|
+
data: data,
|
|
25355
|
+
silent: silent,
|
|
25356
|
+
urgency: urgency
|
|
25357
|
+
});
|
|
25358
|
+
}, [componentName, uuid, workspaceId, notifications]);
|
|
25359
|
+
return {
|
|
25360
|
+
notify: notify,
|
|
25361
|
+
notificationTypes: notifications || []
|
|
25362
|
+
};
|
|
25363
|
+
};
|
|
25364
|
+
|
|
25365
|
+
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; }
|
|
25366
|
+
function _objectSpread$h(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$h(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$h(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
25217
25367
|
var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
25218
25368
|
var theme = _ref.theme,
|
|
25219
25369
|
themeVariant = _ref.themeVariant,
|
|
@@ -25262,13 +25412,13 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25262
25412
|
className: "flex flex-col space-y-4 p-4",
|
|
25263
25413
|
children: [/*#__PURE__*/jsxs("div", {
|
|
25264
25414
|
className: "flex flex-row bg-gray-900 p-4 space-x-4 rounded justify-between",
|
|
25265
|
-
children: [/*#__PURE__*/jsxs(Panel, _objectSpread$
|
|
25415
|
+
children: [/*#__PURE__*/jsxs(Panel, _objectSpread$h(_objectSpread$h({}, styles), {}, {
|
|
25266
25416
|
scrollable: false,
|
|
25267
25417
|
className: "rounded",
|
|
25268
25418
|
children: [/*#__PURE__*/jsx(Panel.Header, {
|
|
25269
25419
|
className: "text-xs uppercase font-bold",
|
|
25270
25420
|
children: "Panel"
|
|
25271
|
-
}), /*#__PURE__*/jsx(Panel.Body, _objectSpread$
|
|
25421
|
+
}), /*#__PURE__*/jsx(Panel.Body, _objectSpread$h(_objectSpread$h({}, styles), {}, {
|
|
25272
25422
|
onClick: function onClick() {
|
|
25273
25423
|
handleClickItem(themeObjects.PANEL, styles);
|
|
25274
25424
|
}
|
|
@@ -25276,14 +25426,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25276
25426
|
className: "text-xs uppercase font-light",
|
|
25277
25427
|
children: getCSSStyleForClassname("backgroundColor", themeObjects.PANEL)
|
|
25278
25428
|
})]
|
|
25279
|
-
})), /*#__PURE__*/jsxs(Panel2, _objectSpread$
|
|
25429
|
+
})), /*#__PURE__*/jsxs(Panel2, _objectSpread$h(_objectSpread$h({
|
|
25280
25430
|
className: "rounded"
|
|
25281
25431
|
}, styles2), {}, {
|
|
25282
25432
|
scrollable: false,
|
|
25283
25433
|
children: [/*#__PURE__*/jsx(Panel2.Header, {
|
|
25284
25434
|
className: "text-xs uppercase font-bold",
|
|
25285
25435
|
children: "Panel 2"
|
|
25286
|
-
}), /*#__PURE__*/jsx(Panel2.Body, _objectSpread$
|
|
25436
|
+
}), /*#__PURE__*/jsx(Panel2.Body, _objectSpread$h(_objectSpread$h({}, styles2), {}, {
|
|
25287
25437
|
onClick: function onClick() {
|
|
25288
25438
|
handleClickItem(themeObjects.PANEL_2, styles2);
|
|
25289
25439
|
}
|
|
@@ -25291,14 +25441,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25291
25441
|
className: "text-xs uppercase font-light",
|
|
25292
25442
|
children: getCSSStyleForClassname("backgroundColor", themeObjects.PANEL_2)
|
|
25293
25443
|
})]
|
|
25294
|
-
})), /*#__PURE__*/jsxs(Panel3, _objectSpread$
|
|
25444
|
+
})), /*#__PURE__*/jsxs(Panel3, _objectSpread$h(_objectSpread$h({
|
|
25295
25445
|
className: "rounded"
|
|
25296
25446
|
}, styles3), {}, {
|
|
25297
25447
|
scrollable: false,
|
|
25298
25448
|
children: [/*#__PURE__*/jsx(Panel3.Header, {
|
|
25299
25449
|
className: "text-xs uppercase font-bold",
|
|
25300
25450
|
children: "Panel 3"
|
|
25301
|
-
}), /*#__PURE__*/jsx(Panel3.Body, _objectSpread$
|
|
25451
|
+
}), /*#__PURE__*/jsx(Panel3.Body, _objectSpread$h(_objectSpread$h({}, styles3), {}, {
|
|
25302
25452
|
onClick: function onClick() {
|
|
25303
25453
|
handleClickItem(themeObjects.PANEL_3, styles3);
|
|
25304
25454
|
}
|
|
@@ -25307,68 +25457,68 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25307
25457
|
children: getCSSStyleForClassname("backgroundColor", themeObjects.PANEL_3)
|
|
25308
25458
|
})]
|
|
25309
25459
|
}))]
|
|
25310
|
-
}), /*#__PURE__*/jsxs(Panel, _objectSpread$
|
|
25460
|
+
}), /*#__PURE__*/jsxs(Panel, _objectSpread$h(_objectSpread$h({
|
|
25311
25461
|
className: "p-6 rounded border-4 space-y-4",
|
|
25312
25462
|
scrollable: false,
|
|
25313
25463
|
height: "h-fit"
|
|
25314
25464
|
}, styles), {}, {
|
|
25315
|
-
children: [/*#__PURE__*/jsx(Heading, _objectSpread$
|
|
25465
|
+
children: [/*#__PURE__*/jsx(Heading, _objectSpread$h(_objectSpread$h({
|
|
25316
25466
|
title: "Heading"
|
|
25317
25467
|
}, headingStyles), {}, {
|
|
25318
25468
|
padding: false,
|
|
25319
25469
|
onClick: function onClick() {
|
|
25320
25470
|
return handleClickItem(themeObjects.HEADING, headingStyles);
|
|
25321
25471
|
}
|
|
25322
|
-
})), /*#__PURE__*/jsx(Heading2, _objectSpread$
|
|
25472
|
+
})), /*#__PURE__*/jsx(Heading2, _objectSpread$h(_objectSpread$h({
|
|
25323
25473
|
title: "Heading 2"
|
|
25324
25474
|
}, heading2Styles), {}, {
|
|
25325
25475
|
padding: false,
|
|
25326
25476
|
onClick: function onClick() {
|
|
25327
25477
|
return handleClickItem(themeObjects.HEADING_2, heading2Styles);
|
|
25328
25478
|
}
|
|
25329
|
-
})), /*#__PURE__*/jsx(Heading3, _objectSpread$
|
|
25479
|
+
})), /*#__PURE__*/jsx(Heading3, _objectSpread$h(_objectSpread$h({
|
|
25330
25480
|
title: "Heading 3"
|
|
25331
25481
|
}, heading3Styles), {}, {
|
|
25332
25482
|
padding: false,
|
|
25333
25483
|
onClick: function onClick() {
|
|
25334
25484
|
return handleClickItem(themeObjects.HEADING_3, heading3Styles);
|
|
25335
25485
|
}
|
|
25336
|
-
})), /*#__PURE__*/jsx(SubHeading, _objectSpread$
|
|
25486
|
+
})), /*#__PURE__*/jsx(SubHeading, _objectSpread$h(_objectSpread$h({
|
|
25337
25487
|
title: "Subheading"
|
|
25338
25488
|
}, subHeadingStyles), {}, {
|
|
25339
25489
|
padding: false,
|
|
25340
25490
|
onClick: function onClick() {
|
|
25341
25491
|
return handleClickItem(themeObjects.SUBHEADING, subHeadingStyles);
|
|
25342
25492
|
}
|
|
25343
|
-
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$
|
|
25493
|
+
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$h(_objectSpread$h({
|
|
25344
25494
|
title: "Subheading 2"
|
|
25345
25495
|
}, subHeading2Styles), {}, {
|
|
25346
25496
|
padding: false,
|
|
25347
25497
|
onClick: function onClick() {
|
|
25348
25498
|
return handleClickItem(themeObjects.SUBHEADING_2, subHeading2Styles);
|
|
25349
25499
|
}
|
|
25350
|
-
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$
|
|
25500
|
+
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$h(_objectSpread$h({
|
|
25351
25501
|
title: "Subheading"
|
|
25352
25502
|
}, subHeading3Styles), {}, {
|
|
25353
25503
|
padding: false,
|
|
25354
25504
|
onClick: function onClick() {
|
|
25355
25505
|
return handleClickItem(themeObjects.SUBHEADING_3, subHeading3Styles);
|
|
25356
25506
|
}
|
|
25357
|
-
})), /*#__PURE__*/jsx(Paragraph, _objectSpread$
|
|
25507
|
+
})), /*#__PURE__*/jsx(Paragraph, _objectSpread$h(_objectSpread$h({
|
|
25358
25508
|
text: "The quick brown fox jumps over the lazy dog."
|
|
25359
25509
|
}, paragraphStyles), {}, {
|
|
25360
25510
|
padding: false,
|
|
25361
25511
|
onClick: function onClick() {
|
|
25362
25512
|
return handleClickItem(themeObjects.PARAGRAPH, paragraphStyles);
|
|
25363
25513
|
}
|
|
25364
|
-
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$
|
|
25514
|
+
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$h(_objectSpread$h({
|
|
25365
25515
|
text: "The quick brown fox jumps over the lazy dog."
|
|
25366
25516
|
}, paragraph2Styles), {}, {
|
|
25367
25517
|
padding: false,
|
|
25368
25518
|
onClick: function onClick() {
|
|
25369
25519
|
return handleClickItem(themeObjects.PARAGRAPH_2, paragraph2Styles);
|
|
25370
25520
|
}
|
|
25371
|
-
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$
|
|
25521
|
+
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$h(_objectSpread$h({
|
|
25372
25522
|
text: "The quick brown fox jumps over the lazy dog."
|
|
25373
25523
|
}, paragraph3Styles), {}, {
|
|
25374
25524
|
padding: false,
|
|
@@ -25377,19 +25527,19 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25377
25527
|
}
|
|
25378
25528
|
})), /*#__PURE__*/jsxs("div", {
|
|
25379
25529
|
className: "flex flex-row space-x-2 w-full",
|
|
25380
|
-
children: [/*#__PURE__*/jsx(Button, _objectSpread$
|
|
25530
|
+
children: [/*#__PURE__*/jsx(Button, _objectSpread$h(_objectSpread$h({
|
|
25381
25531
|
title: "Button"
|
|
25382
25532
|
}, buttonStyles), {}, {
|
|
25383
25533
|
onClick: function onClick() {
|
|
25384
25534
|
return handleClickItem(themeObjects.BUTTON, buttonStyles);
|
|
25385
25535
|
}
|
|
25386
|
-
})), /*#__PURE__*/jsx(Button2, _objectSpread$
|
|
25536
|
+
})), /*#__PURE__*/jsx(Button2, _objectSpread$h(_objectSpread$h({
|
|
25387
25537
|
title: "Button 2"
|
|
25388
25538
|
}, button2Styles), {}, {
|
|
25389
25539
|
onClick: function onClick() {
|
|
25390
25540
|
return handleClickItem(themeObjects.BUTTON_2, button2Styles);
|
|
25391
25541
|
}
|
|
25392
|
-
})), /*#__PURE__*/jsx(Button3, _objectSpread$
|
|
25542
|
+
})), /*#__PURE__*/jsx(Button3, _objectSpread$h(_objectSpread$h({
|
|
25393
25543
|
title: "Button 3"
|
|
25394
25544
|
}, button3Styles), {}, {
|
|
25395
25545
|
onClick: function onClick() {
|
|
@@ -25400,14 +25550,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25400
25550
|
className: "flex flex-row space-x-4 w-full h-fit",
|
|
25401
25551
|
children: [/*#__PURE__*/jsxs("div", {
|
|
25402
25552
|
className: "flex flex-row space-x-2",
|
|
25403
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25553
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25404
25554
|
text: "Button Icon",
|
|
25405
25555
|
icon: "pencil"
|
|
25406
25556
|
}, buttonIconStyles), {}, {
|
|
25407
25557
|
onClick: function onClick() {
|
|
25408
25558
|
return handleClickItem(themeObjects.BUTTON_ICON, buttonIconStyles);
|
|
25409
25559
|
}
|
|
25410
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25560
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25411
25561
|
icon: "pencil"
|
|
25412
25562
|
}, buttonIconStyles), {}, {
|
|
25413
25563
|
onClick: function onClick() {
|
|
@@ -25416,14 +25566,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25416
25566
|
}))]
|
|
25417
25567
|
}), /*#__PURE__*/jsxs("div", {
|
|
25418
25568
|
className: "flex flex-row space-x-2",
|
|
25419
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25569
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25420
25570
|
text: "Button Icon 2",
|
|
25421
25571
|
icon: "pencil"
|
|
25422
25572
|
}, buttonIconStyles), {}, {
|
|
25423
25573
|
onClick: function onClick() {
|
|
25424
25574
|
return handleClickItem(themeObjects.BUTTON_ICON_2, buttonIcon2Styles);
|
|
25425
25575
|
}
|
|
25426
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25576
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25427
25577
|
icon: "pencil"
|
|
25428
25578
|
}, buttonIconStyles), {}, {
|
|
25429
25579
|
onClick: function onClick() {
|
|
@@ -25432,14 +25582,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25432
25582
|
}))]
|
|
25433
25583
|
}), /*#__PURE__*/jsxs("div", {
|
|
25434
25584
|
className: "flex flex-row space-x-2",
|
|
25435
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25585
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25436
25586
|
text: "Button Icon 3",
|
|
25437
25587
|
icon: "pencil"
|
|
25438
25588
|
}, buttonIcon3Styles), {}, {
|
|
25439
25589
|
onClick: function onClick() {
|
|
25440
25590
|
return handleClickItem(themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
25441
25591
|
}
|
|
25442
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25592
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25443
25593
|
icon: "pencil"
|
|
25444
25594
|
}, buttonIcon3Styles), {}, {
|
|
25445
25595
|
onClick: function onClick() {
|
|
@@ -25449,17 +25599,17 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25449
25599
|
})]
|
|
25450
25600
|
}), /*#__PURE__*/jsxs("div", {
|
|
25451
25601
|
className: "flex flex-col space-y-2 w-full",
|
|
25452
|
-
children: [/*#__PURE__*/jsx(MenuItem, _objectSpread$
|
|
25602
|
+
children: [/*#__PURE__*/jsx(MenuItem, _objectSpread$h(_objectSpread$h({}, menuItemStyles), {}, {
|
|
25453
25603
|
onClick: function onClick() {
|
|
25454
25604
|
return handleClickItem(themeObjects.MENU_ITEM, menuItemStyles);
|
|
25455
25605
|
},
|
|
25456
25606
|
children: "Menu Item"
|
|
25457
|
-
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$
|
|
25607
|
+
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$h(_objectSpread$h({}, menuItem2Styles), {}, {
|
|
25458
25608
|
onClick: function onClick() {
|
|
25459
25609
|
return handleClickItem(themeObjects.MENU_ITEM_2, menuItem2Styles);
|
|
25460
25610
|
},
|
|
25461
25611
|
children: "Menu Item 2"
|
|
25462
|
-
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$
|
|
25612
|
+
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$h(_objectSpread$h({}, menuItem3Styles), {}, {
|
|
25463
25613
|
onClick: function onClick() {
|
|
25464
25614
|
return handleClickItem(themeObjects.MENU_ITEM_3, menuItem3Styles);
|
|
25465
25615
|
},
|
|
@@ -25467,21 +25617,21 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25467
25617
|
}))]
|
|
25468
25618
|
}), /*#__PURE__*/jsxs("div", {
|
|
25469
25619
|
className: "flex flex-row space-x-2 w-full",
|
|
25470
|
-
children: [/*#__PURE__*/jsx(Tag, _objectSpread$
|
|
25620
|
+
children: [/*#__PURE__*/jsx(Tag, _objectSpread$h(_objectSpread$h({
|
|
25471
25621
|
text: "Tag",
|
|
25472
25622
|
icon: "pencil"
|
|
25473
25623
|
}, tagStyles), {}, {
|
|
25474
25624
|
onClick: function onClick() {
|
|
25475
25625
|
return handleClickItem(themeObjects.TAG, tagStyles);
|
|
25476
25626
|
}
|
|
25477
|
-
})), /*#__PURE__*/jsx(Tag2, _objectSpread$
|
|
25627
|
+
})), /*#__PURE__*/jsx(Tag2, _objectSpread$h(_objectSpread$h({
|
|
25478
25628
|
text: "Tag 2",
|
|
25479
25629
|
icon: "pencil"
|
|
25480
25630
|
}, tag2Styles), {}, {
|
|
25481
25631
|
onClick: function onClick() {
|
|
25482
25632
|
return handleClickItem(themeObjects.TAG_2, tag2Styles);
|
|
25483
25633
|
}
|
|
25484
|
-
})), /*#__PURE__*/jsx(Tag3, _objectSpread$
|
|
25634
|
+
})), /*#__PURE__*/jsx(Tag3, _objectSpread$h(_objectSpread$h({
|
|
25485
25635
|
text: "Tag 3",
|
|
25486
25636
|
icon: "pencil"
|
|
25487
25637
|
}, tag3Styles), {}, {
|
|
@@ -25490,67 +25640,67 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25490
25640
|
}
|
|
25491
25641
|
}))]
|
|
25492
25642
|
})]
|
|
25493
|
-
})), /*#__PURE__*/jsxs(Panel2, _objectSpread$
|
|
25643
|
+
})), /*#__PURE__*/jsxs(Panel2, _objectSpread$h(_objectSpread$h({
|
|
25494
25644
|
className: "p-6 rounded border-4 space-y-4",
|
|
25495
25645
|
height: "h-fit"
|
|
25496
25646
|
}, styles2), {}, {
|
|
25497
|
-
children: [/*#__PURE__*/jsx(Heading, _objectSpread$
|
|
25647
|
+
children: [/*#__PURE__*/jsx(Heading, _objectSpread$h(_objectSpread$h({
|
|
25498
25648
|
title: "Heading"
|
|
25499
25649
|
}, headingStyles), {}, {
|
|
25500
25650
|
padding: false,
|
|
25501
25651
|
onClick: function onClick() {
|
|
25502
25652
|
return handleClickItem(themeObjects.HEADING, headingStyles);
|
|
25503
25653
|
}
|
|
25504
|
-
})), /*#__PURE__*/jsx(Heading2, _objectSpread$
|
|
25654
|
+
})), /*#__PURE__*/jsx(Heading2, _objectSpread$h(_objectSpread$h({
|
|
25505
25655
|
title: "Heading 2"
|
|
25506
25656
|
}, heading2Styles), {}, {
|
|
25507
25657
|
padding: false,
|
|
25508
25658
|
onClick: function onClick() {
|
|
25509
25659
|
return handleClickItem(themeObjects.HEADING_2, heading2Styles);
|
|
25510
25660
|
}
|
|
25511
|
-
})), /*#__PURE__*/jsx(Heading3, _objectSpread$
|
|
25661
|
+
})), /*#__PURE__*/jsx(Heading3, _objectSpread$h(_objectSpread$h({
|
|
25512
25662
|
title: "Heading 3"
|
|
25513
25663
|
}, heading3Styles), {}, {
|
|
25514
25664
|
padding: false,
|
|
25515
25665
|
onClick: function onClick() {
|
|
25516
25666
|
return handleClickItem(themeObjects.HEADING_3, heading3Styles);
|
|
25517
25667
|
}
|
|
25518
|
-
})), /*#__PURE__*/jsx(SubHeading, _objectSpread$
|
|
25668
|
+
})), /*#__PURE__*/jsx(SubHeading, _objectSpread$h(_objectSpread$h({
|
|
25519
25669
|
title: "Subheading"
|
|
25520
25670
|
}, subHeadingStyles), {}, {
|
|
25521
25671
|
padding: false,
|
|
25522
25672
|
onClick: function onClick() {
|
|
25523
25673
|
return handleClickItem(themeObjects.SUBHEADING, subHeadingStyles);
|
|
25524
25674
|
}
|
|
25525
|
-
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$
|
|
25675
|
+
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$h(_objectSpread$h({
|
|
25526
25676
|
title: "Subheading 2"
|
|
25527
25677
|
}, subHeading2Styles), {}, {
|
|
25528
25678
|
padding: false,
|
|
25529
25679
|
onClick: function onClick() {
|
|
25530
25680
|
return handleClickItem(themeObjects.SUBHEADING_2, subHeading2Styles);
|
|
25531
25681
|
}
|
|
25532
|
-
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$
|
|
25682
|
+
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$h(_objectSpread$h({
|
|
25533
25683
|
title: "Subheading"
|
|
25534
25684
|
}, subHeading3Styles), {}, {
|
|
25535
25685
|
padding: false,
|
|
25536
25686
|
onClick: function onClick() {
|
|
25537
25687
|
return handleClickItem(themeObjects.SUBHEADING_3, subHeading3Styles);
|
|
25538
25688
|
}
|
|
25539
|
-
})), /*#__PURE__*/jsx(Paragraph, _objectSpread$
|
|
25689
|
+
})), /*#__PURE__*/jsx(Paragraph, _objectSpread$h(_objectSpread$h({
|
|
25540
25690
|
text: "The quick brown fox jumps over the lazy dog."
|
|
25541
25691
|
}, paragraphStyles), {}, {
|
|
25542
25692
|
padding: false,
|
|
25543
25693
|
onClick: function onClick() {
|
|
25544
25694
|
return handleClickItem(themeObjects.PARAGRAPH, paragraphStyles);
|
|
25545
25695
|
}
|
|
25546
|
-
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$
|
|
25696
|
+
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$h(_objectSpread$h({
|
|
25547
25697
|
text: "The quick brown fox jumps over the lazy dog."
|
|
25548
25698
|
}, paragraph2Styles), {}, {
|
|
25549
25699
|
padding: false,
|
|
25550
25700
|
onClick: function onClick() {
|
|
25551
25701
|
return handleClickItem(themeObjects.PARAGRAPH_2, paragraph2Styles);
|
|
25552
25702
|
}
|
|
25553
|
-
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$
|
|
25703
|
+
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$h(_objectSpread$h({
|
|
25554
25704
|
text: "The quick brown fox jumps over the lazy dog."
|
|
25555
25705
|
}, paragraph3Styles), {}, {
|
|
25556
25706
|
padding: false,
|
|
@@ -25559,19 +25709,19 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25559
25709
|
}
|
|
25560
25710
|
})), /*#__PURE__*/jsxs("div", {
|
|
25561
25711
|
className: "flex flex-row space-x-2 w-full",
|
|
25562
|
-
children: [/*#__PURE__*/jsx(Button, _objectSpread$
|
|
25712
|
+
children: [/*#__PURE__*/jsx(Button, _objectSpread$h(_objectSpread$h({
|
|
25563
25713
|
title: "Button"
|
|
25564
25714
|
}, buttonStyles), {}, {
|
|
25565
25715
|
onClick: function onClick() {
|
|
25566
25716
|
return handleClickItem(themeObjects.BUTTON, buttonStyles);
|
|
25567
25717
|
}
|
|
25568
|
-
})), /*#__PURE__*/jsx(Button2, _objectSpread$
|
|
25718
|
+
})), /*#__PURE__*/jsx(Button2, _objectSpread$h(_objectSpread$h({
|
|
25569
25719
|
title: "Button 2"
|
|
25570
25720
|
}, button2Styles), {}, {
|
|
25571
25721
|
onClick: function onClick() {
|
|
25572
25722
|
return handleClickItem(themeObjects.BUTTON_2, button2Styles);
|
|
25573
25723
|
}
|
|
25574
|
-
})), /*#__PURE__*/jsx(Button3, _objectSpread$
|
|
25724
|
+
})), /*#__PURE__*/jsx(Button3, _objectSpread$h(_objectSpread$h({
|
|
25575
25725
|
title: "Button 3"
|
|
25576
25726
|
}, button3Styles), {}, {
|
|
25577
25727
|
onClick: function onClick() {
|
|
@@ -25582,14 +25732,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25582
25732
|
className: "flex flex-row space-x-4 w-full",
|
|
25583
25733
|
children: [/*#__PURE__*/jsxs("div", {
|
|
25584
25734
|
className: "flex flex-row space-x-2",
|
|
25585
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25735
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25586
25736
|
text: "Button Icon",
|
|
25587
25737
|
icon: "pencil"
|
|
25588
25738
|
}, buttonIconStyles), {}, {
|
|
25589
25739
|
onClick: function onClick() {
|
|
25590
25740
|
return handleClickItem(themeObjects.BUTTON_ICON, buttonIconStyles);
|
|
25591
25741
|
}
|
|
25592
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25742
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25593
25743
|
icon: "pencil"
|
|
25594
25744
|
}, buttonIconStyles), {}, {
|
|
25595
25745
|
onClick: function onClick() {
|
|
@@ -25598,14 +25748,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25598
25748
|
}))]
|
|
25599
25749
|
}), /*#__PURE__*/jsxs("div", {
|
|
25600
25750
|
className: "flex flex-row space-x-2",
|
|
25601
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25751
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25602
25752
|
text: "Button Icon 2",
|
|
25603
25753
|
icon: "pencil"
|
|
25604
25754
|
}, buttonIconStyles), {}, {
|
|
25605
25755
|
onClick: function onClick() {
|
|
25606
25756
|
return handleClickItem(themeObjects.BUTTON_ICON_2, buttonIcon2Styles);
|
|
25607
25757
|
}
|
|
25608
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25758
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25609
25759
|
icon: "pencil"
|
|
25610
25760
|
}, buttonIconStyles), {}, {
|
|
25611
25761
|
onClick: function onClick() {
|
|
@@ -25614,14 +25764,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25614
25764
|
}))]
|
|
25615
25765
|
}), /*#__PURE__*/jsxs("div", {
|
|
25616
25766
|
className: "flex flex-row space-x-2",
|
|
25617
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25767
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25618
25768
|
text: "Button Icon 3",
|
|
25619
25769
|
icon: "pencil"
|
|
25620
25770
|
}, buttonIcon3Styles), {}, {
|
|
25621
25771
|
onClick: function onClick() {
|
|
25622
25772
|
return handleClickItem(themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
25623
25773
|
}
|
|
25624
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25774
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25625
25775
|
icon: "pencil"
|
|
25626
25776
|
}, buttonIcon3Styles), {}, {
|
|
25627
25777
|
onClick: function onClick() {
|
|
@@ -25631,17 +25781,17 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25631
25781
|
})]
|
|
25632
25782
|
}), /*#__PURE__*/jsxs("div", {
|
|
25633
25783
|
className: "flex flex-col space-y-2 w-full",
|
|
25634
|
-
children: [/*#__PURE__*/jsx(MenuItem, _objectSpread$
|
|
25784
|
+
children: [/*#__PURE__*/jsx(MenuItem, _objectSpread$h(_objectSpread$h({}, menuItemStyles), {}, {
|
|
25635
25785
|
onClick: function onClick() {
|
|
25636
25786
|
return handleClickItem(themeObjects.MENU_ITEM, menuItemStyles);
|
|
25637
25787
|
},
|
|
25638
25788
|
children: "Menu Item"
|
|
25639
|
-
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$
|
|
25789
|
+
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$h(_objectSpread$h({}, menuItem2Styles), {}, {
|
|
25640
25790
|
onClick: function onClick() {
|
|
25641
25791
|
return handleClickItem(themeObjects.MENU_ITEM_2, menuItem2Styles);
|
|
25642
25792
|
},
|
|
25643
25793
|
children: "Menu Item 2"
|
|
25644
|
-
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$
|
|
25794
|
+
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$h(_objectSpread$h({}, menuItem3Styles), {}, {
|
|
25645
25795
|
onClick: function onClick() {
|
|
25646
25796
|
return handleClickItem(themeObjects.MENU_ITEM_3, menuItem3Styles);
|
|
25647
25797
|
},
|
|
@@ -25649,21 +25799,21 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25649
25799
|
}))]
|
|
25650
25800
|
}), /*#__PURE__*/jsxs("div", {
|
|
25651
25801
|
className: "flex flex-row space-x-2 w-full",
|
|
25652
|
-
children: [/*#__PURE__*/jsx(Tag, _objectSpread$
|
|
25802
|
+
children: [/*#__PURE__*/jsx(Tag, _objectSpread$h(_objectSpread$h({
|
|
25653
25803
|
text: "Tag",
|
|
25654
25804
|
icon: "pencil"
|
|
25655
25805
|
}, tagStyles), {}, {
|
|
25656
25806
|
onClick: function onClick() {
|
|
25657
25807
|
return handleClickItem(themeObjects.TAG, tagStyles);
|
|
25658
25808
|
}
|
|
25659
|
-
})), /*#__PURE__*/jsx(Tag2, _objectSpread$
|
|
25809
|
+
})), /*#__PURE__*/jsx(Tag2, _objectSpread$h(_objectSpread$h({
|
|
25660
25810
|
text: "Tag 2",
|
|
25661
25811
|
icon: "pencil"
|
|
25662
25812
|
}, tag2Styles), {}, {
|
|
25663
25813
|
onClick: function onClick() {
|
|
25664
25814
|
return handleClickItem(themeObjects.TAG_2, tag2Styles);
|
|
25665
25815
|
}
|
|
25666
|
-
})), /*#__PURE__*/jsx(Tag3, _objectSpread$
|
|
25816
|
+
})), /*#__PURE__*/jsx(Tag3, _objectSpread$h(_objectSpread$h({
|
|
25667
25817
|
text: "Tag 3",
|
|
25668
25818
|
icon: "pencil"
|
|
25669
25819
|
}, tag3Styles), {}, {
|
|
@@ -25672,68 +25822,68 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25672
25822
|
}
|
|
25673
25823
|
}))]
|
|
25674
25824
|
})]
|
|
25675
|
-
})), /*#__PURE__*/jsxs(Panel3, _objectSpread$
|
|
25825
|
+
})), /*#__PURE__*/jsxs(Panel3, _objectSpread$h(_objectSpread$h({
|
|
25676
25826
|
className: "p-6 rounded border-4 space-y-4"
|
|
25677
25827
|
}, styles3), {}, {
|
|
25678
25828
|
padding: false,
|
|
25679
25829
|
height: "h-fit",
|
|
25680
|
-
children: [/*#__PURE__*/jsx(Heading, _objectSpread$
|
|
25830
|
+
children: [/*#__PURE__*/jsx(Heading, _objectSpread$h(_objectSpread$h({
|
|
25681
25831
|
title: "Heading"
|
|
25682
25832
|
}, headingStyles), {}, {
|
|
25683
25833
|
padding: false,
|
|
25684
25834
|
onClick: function onClick() {
|
|
25685
25835
|
return handleClickItem(themeObjects.HEADING, headingStyles);
|
|
25686
25836
|
}
|
|
25687
|
-
})), /*#__PURE__*/jsx(Heading2, _objectSpread$
|
|
25837
|
+
})), /*#__PURE__*/jsx(Heading2, _objectSpread$h(_objectSpread$h({
|
|
25688
25838
|
title: "Heading 2"
|
|
25689
25839
|
}, heading2Styles), {}, {
|
|
25690
25840
|
padding: false,
|
|
25691
25841
|
onClick: function onClick() {
|
|
25692
25842
|
return handleClickItem(themeObjects.HEADING_2, heading2Styles);
|
|
25693
25843
|
}
|
|
25694
|
-
})), /*#__PURE__*/jsx(Heading3, _objectSpread$
|
|
25844
|
+
})), /*#__PURE__*/jsx(Heading3, _objectSpread$h(_objectSpread$h({
|
|
25695
25845
|
title: "Heading 3"
|
|
25696
25846
|
}, heading3Styles), {}, {
|
|
25697
25847
|
padding: false,
|
|
25698
25848
|
onClick: function onClick() {
|
|
25699
25849
|
return handleClickItem(themeObjects.HEADING_3, heading3Styles);
|
|
25700
25850
|
}
|
|
25701
|
-
})), /*#__PURE__*/jsx(SubHeading, _objectSpread$
|
|
25851
|
+
})), /*#__PURE__*/jsx(SubHeading, _objectSpread$h(_objectSpread$h({
|
|
25702
25852
|
title: "Subheading"
|
|
25703
25853
|
}, subHeadingStyles), {}, {
|
|
25704
25854
|
padding: false,
|
|
25705
25855
|
onClick: function onClick() {
|
|
25706
25856
|
return handleClickItem(themeObjects.SUBHEADING, subHeadingStyles);
|
|
25707
25857
|
}
|
|
25708
|
-
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$
|
|
25858
|
+
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$h(_objectSpread$h({
|
|
25709
25859
|
title: "Subheading 2"
|
|
25710
25860
|
}, subHeading2Styles), {}, {
|
|
25711
25861
|
padding: false,
|
|
25712
25862
|
onClick: function onClick() {
|
|
25713
25863
|
return handleClickItem(themeObjects.SUBHEADING_2, subHeading2Styles);
|
|
25714
25864
|
}
|
|
25715
|
-
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$
|
|
25865
|
+
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$h(_objectSpread$h({
|
|
25716
25866
|
title: "Subheading"
|
|
25717
25867
|
}, subHeading3Styles), {}, {
|
|
25718
25868
|
padding: false,
|
|
25719
25869
|
onClick: function onClick() {
|
|
25720
25870
|
return handleClickItem(themeObjects.SUBHEADING_3, subHeading3Styles);
|
|
25721
25871
|
}
|
|
25722
|
-
})), /*#__PURE__*/jsx(Paragraph, _objectSpread$
|
|
25872
|
+
})), /*#__PURE__*/jsx(Paragraph, _objectSpread$h(_objectSpread$h({
|
|
25723
25873
|
text: "The quick brown fox jumps over the lazy dog."
|
|
25724
25874
|
}, paragraphStyles), {}, {
|
|
25725
25875
|
padding: false,
|
|
25726
25876
|
onClick: function onClick() {
|
|
25727
25877
|
return handleClickItem(themeObjects.PARAGRAPH, paragraphStyles);
|
|
25728
25878
|
}
|
|
25729
|
-
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$
|
|
25879
|
+
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$h(_objectSpread$h({
|
|
25730
25880
|
text: "The quick brown fox jumps over the lazy dog."
|
|
25731
25881
|
}, paragraph2Styles), {}, {
|
|
25732
25882
|
padding: false,
|
|
25733
25883
|
onClick: function onClick() {
|
|
25734
25884
|
return handleClickItem(themeObjects.PARAGRAPH, paragraph2Styles);
|
|
25735
25885
|
}
|
|
25736
|
-
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$
|
|
25886
|
+
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$h(_objectSpread$h({
|
|
25737
25887
|
text: "The quick brown fox jumps over the lazy dog."
|
|
25738
25888
|
}, paragraph3Styles), {}, {
|
|
25739
25889
|
padding: false,
|
|
@@ -25742,19 +25892,19 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25742
25892
|
}
|
|
25743
25893
|
})), /*#__PURE__*/jsxs("div", {
|
|
25744
25894
|
className: "flex flex-row space-x-2 w-full",
|
|
25745
|
-
children: [/*#__PURE__*/jsx(Button, _objectSpread$
|
|
25895
|
+
children: [/*#__PURE__*/jsx(Button, _objectSpread$h(_objectSpread$h({
|
|
25746
25896
|
title: "Button"
|
|
25747
25897
|
}, buttonStyles), {}, {
|
|
25748
25898
|
onClick: function onClick() {
|
|
25749
25899
|
return handleClickItem(themeObjects.BUTTON, buttonStyles);
|
|
25750
25900
|
}
|
|
25751
|
-
})), /*#__PURE__*/jsx(Button2, _objectSpread$
|
|
25901
|
+
})), /*#__PURE__*/jsx(Button2, _objectSpread$h(_objectSpread$h({
|
|
25752
25902
|
title: "Button 2"
|
|
25753
25903
|
}, button2Styles), {}, {
|
|
25754
25904
|
onClick: function onClick() {
|
|
25755
25905
|
return handleClickItem(themeObjects.BUTTON_2, button2Styles);
|
|
25756
25906
|
}
|
|
25757
|
-
})), /*#__PURE__*/jsx(Button3, _objectSpread$
|
|
25907
|
+
})), /*#__PURE__*/jsx(Button3, _objectSpread$h(_objectSpread$h({
|
|
25758
25908
|
title: "Button 3"
|
|
25759
25909
|
}, button3Styles), {}, {
|
|
25760
25910
|
onClick: function onClick() {
|
|
@@ -25765,14 +25915,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25765
25915
|
className: "flex flex-row space-x-4 w-full",
|
|
25766
25916
|
children: [/*#__PURE__*/jsxs("div", {
|
|
25767
25917
|
className: "flex flex-row space-x-2",
|
|
25768
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25918
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25769
25919
|
text: "Button Icon",
|
|
25770
25920
|
icon: "pencil"
|
|
25771
25921
|
}, buttonIconStyles), {}, {
|
|
25772
25922
|
onClick: function onClick() {
|
|
25773
25923
|
return handleClickItem(themeObjects.BUTTON_ICON, buttonIconStyles);
|
|
25774
25924
|
}
|
|
25775
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25925
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25776
25926
|
icon: "pencil"
|
|
25777
25927
|
}, buttonIconStyles), {}, {
|
|
25778
25928
|
onClick: function onClick() {
|
|
@@ -25781,14 +25931,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25781
25931
|
}))]
|
|
25782
25932
|
}), /*#__PURE__*/jsxs("div", {
|
|
25783
25933
|
className: "flex flex-row space-x-2",
|
|
25784
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25934
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25785
25935
|
text: "Button Icon 2",
|
|
25786
25936
|
icon: "pencil"
|
|
25787
25937
|
}, buttonIconStyles), {}, {
|
|
25788
25938
|
onClick: function onClick() {
|
|
25789
25939
|
return handleClickItem(themeObjects.BUTTON_ICON_2, buttonIcon2Styles);
|
|
25790
25940
|
}
|
|
25791
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25941
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25792
25942
|
icon: "pencil"
|
|
25793
25943
|
}, buttonIconStyles), {}, {
|
|
25794
25944
|
onClick: function onClick() {
|
|
@@ -25797,14 +25947,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25797
25947
|
}))]
|
|
25798
25948
|
}), /*#__PURE__*/jsxs("div", {
|
|
25799
25949
|
className: "flex flex-row space-x-2",
|
|
25800
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25950
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25801
25951
|
text: "Button Icon 3",
|
|
25802
25952
|
icon: "pencil"
|
|
25803
25953
|
}, buttonIcon3Styles), {}, {
|
|
25804
25954
|
onClick: function onClick() {
|
|
25805
25955
|
return handleClickItem(themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
25806
25956
|
}
|
|
25807
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
25957
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({
|
|
25808
25958
|
icon: "pencil"
|
|
25809
25959
|
}, buttonIcon3Styles), {}, {
|
|
25810
25960
|
onClick: function onClick() {
|
|
@@ -25814,17 +25964,17 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25814
25964
|
})]
|
|
25815
25965
|
}), /*#__PURE__*/jsxs("div", {
|
|
25816
25966
|
className: "flex flex-col space-y-2 w-full",
|
|
25817
|
-
children: [/*#__PURE__*/jsx(MenuItem, _objectSpread$
|
|
25967
|
+
children: [/*#__PURE__*/jsx(MenuItem, _objectSpread$h(_objectSpread$h({}, menuItemStyles), {}, {
|
|
25818
25968
|
onClick: function onClick() {
|
|
25819
25969
|
return handleClickItem(themeObjects.MENU_ITEM, menuItemStyles);
|
|
25820
25970
|
},
|
|
25821
25971
|
children: "Menu Item"
|
|
25822
|
-
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$
|
|
25972
|
+
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$h(_objectSpread$h({}, menuItem2Styles), {}, {
|
|
25823
25973
|
onClick: function onClick() {
|
|
25824
25974
|
return handleClickItem(themeObjects.MENU_ITEM_2, menuItem2Styles);
|
|
25825
25975
|
},
|
|
25826
25976
|
children: "Menu Item 2"
|
|
25827
|
-
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$
|
|
25977
|
+
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$h(_objectSpread$h({}, menuItem3Styles), {}, {
|
|
25828
25978
|
onClick: function onClick() {
|
|
25829
25979
|
return handleClickItem(themeObjects.MENU_ITEM_3, menuItem3Styles);
|
|
25830
25980
|
},
|
|
@@ -25832,21 +25982,21 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25832
25982
|
}))]
|
|
25833
25983
|
}), /*#__PURE__*/jsxs("div", {
|
|
25834
25984
|
className: "flex flex-row space-x-2 w-full",
|
|
25835
|
-
children: [/*#__PURE__*/jsx(Tag, _objectSpread$
|
|
25985
|
+
children: [/*#__PURE__*/jsx(Tag, _objectSpread$h(_objectSpread$h({
|
|
25836
25986
|
text: "Tag",
|
|
25837
25987
|
icon: "pencil"
|
|
25838
25988
|
}, tagStyles), {}, {
|
|
25839
25989
|
onClick: function onClick() {
|
|
25840
25990
|
return handleClickItem(themeObjects.TAG, tagStyles);
|
|
25841
25991
|
}
|
|
25842
|
-
})), /*#__PURE__*/jsx(Tag2, _objectSpread$
|
|
25992
|
+
})), /*#__PURE__*/jsx(Tag2, _objectSpread$h(_objectSpread$h({
|
|
25843
25993
|
text: "Tag 2",
|
|
25844
25994
|
icon: "pencil"
|
|
25845
25995
|
}, tag2Styles), {}, {
|
|
25846
25996
|
onClick: function onClick() {
|
|
25847
25997
|
return handleClickItem(themeObjects.TAG_2, tag2Styles);
|
|
25848
25998
|
}
|
|
25849
|
-
})), /*#__PURE__*/jsx(Tag3, _objectSpread$
|
|
25999
|
+
})), /*#__PURE__*/jsx(Tag3, _objectSpread$h(_objectSpread$h({
|
|
25850
26000
|
text: "Tag 3",
|
|
25851
26001
|
icon: "pencil"
|
|
25852
26002
|
}, tag3Styles), {}, {
|
|
@@ -25855,57 +26005,57 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25855
26005
|
}
|
|
25856
26006
|
}))]
|
|
25857
26007
|
})]
|
|
25858
|
-
})), /*#__PURE__*/jsxs(Panel2, _objectSpread$
|
|
26008
|
+
})), /*#__PURE__*/jsxs(Panel2, _objectSpread$h(_objectSpread$h({
|
|
25859
26009
|
className: "p-6 rounded border-4 space-y-4"
|
|
25860
26010
|
}, styles2), {}, {
|
|
25861
26011
|
height: "h-fit",
|
|
25862
26012
|
padding: false,
|
|
25863
|
-
children: [/*#__PURE__*/jsx(Heading2, _objectSpread$
|
|
26013
|
+
children: [/*#__PURE__*/jsx(Heading2, _objectSpread$h(_objectSpread$h({
|
|
25864
26014
|
title: "Heading 2"
|
|
25865
26015
|
}, heading2Styles), {}, {
|
|
25866
26016
|
padding: false,
|
|
25867
26017
|
onClick: function onClick() {
|
|
25868
26018
|
return handleClickItem(themeObjects.HEADING_2, heading2Styles);
|
|
25869
26019
|
}
|
|
25870
|
-
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$
|
|
26020
|
+
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$h(_objectSpread$h({
|
|
25871
26021
|
title: "Subheading 2"
|
|
25872
26022
|
}, subHeading2Styles), {}, {
|
|
25873
26023
|
padding: false,
|
|
25874
26024
|
onClick: function onClick() {
|
|
25875
26025
|
return handleClickItem(themeObjects.SUBHEADING_2, subHeading2Styles);
|
|
25876
26026
|
}
|
|
25877
|
-
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$
|
|
26027
|
+
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$h(_objectSpread$h({
|
|
25878
26028
|
text: "Paragraph 2 - The quick brown fox jumps over the lazy dog."
|
|
25879
26029
|
}, paragraph2Styles), {}, {
|
|
25880
26030
|
padding: false,
|
|
25881
26031
|
onClick: function onClick() {
|
|
25882
26032
|
return handleClickItem(themeObjects.PARAGRAPH_2, paragraph2Styles);
|
|
25883
26033
|
}
|
|
25884
|
-
})), /*#__PURE__*/jsx(Button2, _objectSpread$
|
|
26034
|
+
})), /*#__PURE__*/jsx(Button2, _objectSpread$h(_objectSpread$h({
|
|
25885
26035
|
title: "Button"
|
|
25886
26036
|
}, button2Styles), {}, {
|
|
25887
26037
|
onClick: function onClick() {
|
|
25888
26038
|
return handleClickItem(themeObjects.BUTTON_2, button2Styles);
|
|
25889
26039
|
}
|
|
25890
|
-
})), /*#__PURE__*/jsx(ButtonIcon2, _objectSpread$
|
|
26040
|
+
})), /*#__PURE__*/jsx(ButtonIcon2, _objectSpread$h(_objectSpread$h({
|
|
25891
26041
|
text: "Button Icon",
|
|
25892
26042
|
icon: "pencil"
|
|
25893
26043
|
}, buttonIcon2Styles), {}, {
|
|
25894
26044
|
onClick: function onClick() {
|
|
25895
26045
|
return handleClickItem(themeObjects.BUTTON_ICON_2, buttonIcon2Styles);
|
|
25896
26046
|
}
|
|
25897
|
-
})), /*#__PURE__*/jsx(ButtonIcon2, _objectSpread$
|
|
26047
|
+
})), /*#__PURE__*/jsx(ButtonIcon2, _objectSpread$h(_objectSpread$h({
|
|
25898
26048
|
icon: "pencil"
|
|
25899
26049
|
}, buttonIcon2Styles), {}, {
|
|
25900
26050
|
onClick: function onClick() {
|
|
25901
26051
|
return handleClickItem(themeObjects.BUTTON_ICON_2, buttonIconStyles);
|
|
25902
26052
|
}
|
|
25903
|
-
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$
|
|
26053
|
+
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$h(_objectSpread$h({}, menuItem2Styles), {}, {
|
|
25904
26054
|
onClick: function onClick() {
|
|
25905
26055
|
return handleClickItem(themeObjects.MENU_ITEM_2, menuItem2Styles);
|
|
25906
26056
|
},
|
|
25907
26057
|
children: "Menu Item"
|
|
25908
|
-
})), /*#__PURE__*/jsx(Tag2, _objectSpread$
|
|
26058
|
+
})), /*#__PURE__*/jsx(Tag2, _objectSpread$h(_objectSpread$h({
|
|
25909
26059
|
text: "Tag 2",
|
|
25910
26060
|
icon: "pencil"
|
|
25911
26061
|
}, tag2Styles), {}, {
|
|
@@ -25913,57 +26063,57 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
25913
26063
|
return handleClickItem(themeObjects.TAG_2, tag2Styles);
|
|
25914
26064
|
}
|
|
25915
26065
|
}))]
|
|
25916
|
-
})), /*#__PURE__*/jsxs(Panel3, _objectSpread$
|
|
26066
|
+
})), /*#__PURE__*/jsxs(Panel3, _objectSpread$h(_objectSpread$h({
|
|
25917
26067
|
className: "p-6 rounded border-4 space-y-4"
|
|
25918
26068
|
}, styles3), {}, {
|
|
25919
26069
|
height: "h-fit",
|
|
25920
26070
|
padding: false,
|
|
25921
|
-
children: [/*#__PURE__*/jsx(Heading3, _objectSpread$
|
|
26071
|
+
children: [/*#__PURE__*/jsx(Heading3, _objectSpread$h(_objectSpread$h({
|
|
25922
26072
|
title: "Heading 3"
|
|
25923
26073
|
}, heading3Styles), {}, {
|
|
25924
26074
|
padding: false,
|
|
25925
26075
|
onClick: function onClick() {
|
|
25926
26076
|
return handleClickItem(themeObjects.HEADING_3, heading3Styles);
|
|
25927
26077
|
}
|
|
25928
|
-
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$
|
|
26078
|
+
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$h(_objectSpread$h({
|
|
25929
26079
|
title: "Subheading"
|
|
25930
26080
|
}, subHeading3Styles), {}, {
|
|
25931
26081
|
padding: false,
|
|
25932
26082
|
onClick: function onClick() {
|
|
25933
26083
|
return handleClickItem(themeObjects.SUBHEADING_3, subHeading3Styles);
|
|
25934
26084
|
}
|
|
25935
|
-
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$
|
|
26085
|
+
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$h(_objectSpread$h({
|
|
25936
26086
|
text: "Paragraph 3 - The quick brown fox jumps over the lazy dog."
|
|
25937
26087
|
}, paragraph3Styles), {}, {
|
|
25938
26088
|
padding: false,
|
|
25939
26089
|
onClick: function onClick() {
|
|
25940
26090
|
return handleClickItem(themeObjects.PARAGRAPH_3, paragraph3Styles);
|
|
25941
26091
|
}
|
|
25942
|
-
})), /*#__PURE__*/jsx(Button3, _objectSpread$
|
|
26092
|
+
})), /*#__PURE__*/jsx(Button3, _objectSpread$h(_objectSpread$h({
|
|
25943
26093
|
title: "Button"
|
|
25944
26094
|
}, button3Styles), {}, {
|
|
25945
26095
|
onClick: function onClick() {
|
|
25946
26096
|
return handleClickItem(themeObjects.BUTTON_3, button3Styles);
|
|
25947
26097
|
}
|
|
25948
|
-
})), /*#__PURE__*/jsx(ButtonIcon3, _objectSpread$
|
|
26098
|
+
})), /*#__PURE__*/jsx(ButtonIcon3, _objectSpread$h(_objectSpread$h({
|
|
25949
26099
|
text: "Button Icon 3",
|
|
25950
26100
|
icon: "pencil"
|
|
25951
26101
|
}, buttonIcon3Styles), {}, {
|
|
25952
26102
|
onClick: function onClick() {
|
|
25953
26103
|
return handleClickItem(themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
25954
26104
|
}
|
|
25955
|
-
})), /*#__PURE__*/jsx(ButtonIcon3, _objectSpread$
|
|
26105
|
+
})), /*#__PURE__*/jsx(ButtonIcon3, _objectSpread$h(_objectSpread$h({
|
|
25956
26106
|
icon: "pencil"
|
|
25957
26107
|
}, buttonIcon3Styles), {}, {
|
|
25958
26108
|
onClick: function onClick() {
|
|
25959
26109
|
return handleClickItem(themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
25960
26110
|
}
|
|
25961
|
-
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$
|
|
26111
|
+
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$h(_objectSpread$h({}, menuItem3Styles), {}, {
|
|
25962
26112
|
onClick: function onClick() {
|
|
25963
26113
|
return handleClickItem(themeObjects.MENU_ITEM_3, menuItem3Styles);
|
|
25964
26114
|
},
|
|
25965
26115
|
children: "Menu Item"
|
|
25966
|
-
})), /*#__PURE__*/jsx(Tag3, _objectSpread$
|
|
26116
|
+
})), /*#__PURE__*/jsx(Tag3, _objectSpread$h(_objectSpread$h({
|
|
25967
26117
|
text: "Tag",
|
|
25968
26118
|
icon: "pencil"
|
|
25969
26119
|
}, tag3Styles), {}, {
|
|
@@ -26012,8 +26162,8 @@ var ThemePane = function ThemePane(_ref) {
|
|
|
26012
26162
|
};
|
|
26013
26163
|
|
|
26014
26164
|
var _excluded$2 = ["colorFromTheme", "colorName", "shade", "variant", "colorType", "colorLevelName", "selected", "onClick", "onMouseOver", "width", "height"];
|
|
26015
|
-
function ownKeys$
|
|
26016
|
-
function _objectSpread$
|
|
26165
|
+
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; }
|
|
26166
|
+
function _objectSpread$g(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$g(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$g(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
26017
26167
|
var ColorTile = function ColorTile(_ref) {
|
|
26018
26168
|
var _ref$colorFromTheme = _ref.colorFromTheme,
|
|
26019
26169
|
colorFromTheme = _ref$colorFromTheme === void 0 ? null : _ref$colorFromTheme,
|
|
@@ -26038,7 +26188,7 @@ var ColorTile = function ColorTile(_ref) {
|
|
|
26038
26188
|
_ref$height = _ref.height,
|
|
26039
26189
|
height = _ref$height === void 0 ? "h-10" : _ref$height,
|
|
26040
26190
|
rest = _objectWithoutProperties(_ref, _excluded$2);
|
|
26041
|
-
var c = ColorModel(_objectSpread$
|
|
26191
|
+
var c = ColorModel(_objectSpread$g({
|
|
26042
26192
|
colorFromTheme: colorFromTheme,
|
|
26043
26193
|
colorName: colorName,
|
|
26044
26194
|
colorType: colorType,
|
|
@@ -26066,10 +26216,10 @@ var ColorTile = function ColorTile(_ref) {
|
|
|
26066
26216
|
return /*#__PURE__*/jsx("div", {
|
|
26067
26217
|
className: "flex flex-col rounded-lg cursor-pointer items-center justify-center border-2 text-xs ".concat(selected === true ? "border-yellow-500" : "border-gray-800", " hover:border-yellow-500 border-gray-800 ").concat(c["class"], " ").concat(width, " ").concat(height),
|
|
26068
26218
|
onClick: function onClick() {
|
|
26069
|
-
return _onClick !== null ? _onClick(_objectSpread$
|
|
26219
|
+
return _onClick !== null ? _onClick(_objectSpread$g(_objectSpread$g({}, c), rest)) : null;
|
|
26070
26220
|
},
|
|
26071
26221
|
onMouseOver: function onMouseOver() {
|
|
26072
|
-
return _onMouseOver !== null ? _onMouseOver(_objectSpread$
|
|
26222
|
+
return _onMouseOver !== null ? _onMouseOver(_objectSpread$g(_objectSpread$g({}, c), rest)) : null;
|
|
26073
26223
|
},
|
|
26074
26224
|
children: "\xA0"
|
|
26075
26225
|
});
|
|
@@ -27252,8 +27402,8 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
27252
27402
|
var propTypesExports = propTypes.exports;
|
|
27253
27403
|
var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
|
|
27254
27404
|
|
|
27255
|
-
function ownKeys$
|
|
27256
|
-
function _objectSpread$
|
|
27405
|
+
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; }
|
|
27406
|
+
function _objectSpread$f(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$f(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$f(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
27257
27407
|
|
|
27258
27408
|
// Host-injected module references (e.g., "@trops/dash-core").
|
|
27259
27409
|
// Set by the host app via setHostModules() after all modules are fully loaded,
|
|
@@ -27289,7 +27439,7 @@ var BASE_MODULE_MAP = {
|
|
|
27289
27439
|
function evaluateBundle(source, widgetName) {
|
|
27290
27440
|
// Merge base modules with host-provided modules (e.g., "@trops/dash-core")
|
|
27291
27441
|
// at call time so _hostModules is populated by the time widgets load.
|
|
27292
|
-
var moduleMap = _objectSpread$
|
|
27442
|
+
var moduleMap = _objectSpread$f(_objectSpread$f({}, BASE_MODULE_MAP), _hostModules);
|
|
27293
27443
|
var module = {
|
|
27294
27444
|
exports: {}
|
|
27295
27445
|
};
|
|
@@ -27302,7 +27452,7 @@ function evaluateBundle(source, widgetName) {
|
|
|
27302
27452
|
// CJS bundles expect `require("pkg").Widget` to work, so merge
|
|
27303
27453
|
// `.default` properties onto the returned object.
|
|
27304
27454
|
if (mod["default"] && _typeof(mod["default"]) === "object") {
|
|
27305
|
-
return _objectSpread$
|
|
27455
|
+
return _objectSpread$f(_objectSpread$f(_objectSpread$f({}, mod["default"]), mod), {}, {
|
|
27306
27456
|
"default": mod["default"]
|
|
27307
27457
|
});
|
|
27308
27458
|
}
|
|
@@ -27990,8 +28140,8 @@ var HARMONY_STRATEGIES = [{
|
|
|
27990
28140
|
label: "Custom"
|
|
27991
28141
|
}];
|
|
27992
28142
|
|
|
27993
|
-
function ownKeys$
|
|
27994
|
-
function _objectSpread$
|
|
28143
|
+
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; }
|
|
28144
|
+
function _objectSpread$e(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$e(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$e(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
27995
28145
|
var COLOR_PROPERTIES$1 = new Set(["backgroundColor", "textColor", "borderColor", "hoverBackgroundColor", "hoverTextColor", "hoverBorderColor", "focusRingColor", "focusBorderColor", "activeBackgroundColor", "activeTextColor", "placeholderTextColor"]);
|
|
27996
28146
|
var PreviewColorsPane = function PreviewColorsPane(_ref) {
|
|
27997
28147
|
var _ref$styles = _ref.styles,
|
|
@@ -28008,7 +28158,7 @@ var PreviewColorsPane = function PreviewColorsPane(_ref) {
|
|
|
28008
28158
|
function handleClickItem(data, styleNameCss, itemType, objectType) {
|
|
28009
28159
|
// override the object type
|
|
28010
28160
|
data["objectType"] = objectType;
|
|
28011
|
-
onClickItem(_objectSpread$
|
|
28161
|
+
onClickItem(_objectSpread$e(_objectSpread$e({}, data), {}, {
|
|
28012
28162
|
itemType: itemType,
|
|
28013
28163
|
styleName: styleNameCss
|
|
28014
28164
|
}));
|
|
@@ -28418,8 +28568,8 @@ var ThemeMenuPane = function ThemeMenuPane(_ref) {
|
|
|
28418
28568
|
});
|
|
28419
28569
|
};
|
|
28420
28570
|
|
|
28421
|
-
function ownKeys$
|
|
28422
|
-
function _objectSpread$
|
|
28571
|
+
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; }
|
|
28572
|
+
function _objectSpread$d(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$d(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$d(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
28423
28573
|
var COMPONENT_GROUPS$1 = {
|
|
28424
28574
|
Typography: [themeObjects.HEADING, themeObjects.HEADING_2, themeObjects.HEADING_3, themeObjects.SUBHEADING, themeObjects.SUBHEADING_2, themeObjects.SUBHEADING_3, themeObjects.PARAGRAPH, themeObjects.PARAGRAPH_2, themeObjects.PARAGRAPH_3],
|
|
28425
28575
|
Buttons: [themeObjects.BUTTON, themeObjects.BUTTON_2, themeObjects.BUTTON_3, themeObjects.BUTTON_ICON, themeObjects.BUTTON_ICON_2, themeObjects.BUTTON_ICON_3],
|
|
@@ -28450,7 +28600,7 @@ var ComponentSelectorPane = function ComponentSelectorPane(_ref) {
|
|
|
28450
28600
|
setCollapsedGroups = _useState2[1];
|
|
28451
28601
|
function toggleGroup(groupName) {
|
|
28452
28602
|
setCollapsedGroups(function (prev) {
|
|
28453
|
-
return _objectSpread$
|
|
28603
|
+
return _objectSpread$d(_objectSpread$d({}, prev), {}, _defineProperty({}, groupName, !prev[groupName]));
|
|
28454
28604
|
});
|
|
28455
28605
|
}
|
|
28456
28606
|
function hasOverrides(itemKey) {
|
|
@@ -28686,8 +28836,8 @@ var NonColorPickerPane = function NonColorPickerPane(_ref) {
|
|
|
28686
28836
|
};
|
|
28687
28837
|
|
|
28688
28838
|
var _excluded$1 = ["children"];
|
|
28689
|
-
function ownKeys$
|
|
28690
|
-
function _objectSpread$
|
|
28839
|
+
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; }
|
|
28840
|
+
function _objectSpread$c(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$c(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$c(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
28691
28841
|
var COLOR_PROPERTIES = new Set(["backgroundColor", "textColor", "borderColor", "hoverBackgroundColor", "hoverTextColor", "hoverBorderColor", "focusRingColor", "focusBorderColor", "activeBackgroundColor", "activeTextColor", "placeholderTextColor"]);
|
|
28692
28842
|
var isColorProperty = function isColorProperty(name) {
|
|
28693
28843
|
return COLOR_PROPERTIES.has(name);
|
|
@@ -29247,7 +29397,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
29247
29397
|
if (itemSelected && themeSelected && themeVariant) {
|
|
29248
29398
|
var updatedStyles = getStylesForItem(itemSelected.item, themeSelected[themeVariant]);
|
|
29249
29399
|
setItemSelected(function (prev) {
|
|
29250
|
-
return _objectSpread$
|
|
29400
|
+
return _objectSpread$c(_objectSpread$c({}, prev), {}, {
|
|
29251
29401
|
styles: updatedStyles
|
|
29252
29402
|
});
|
|
29253
29403
|
});
|
|
@@ -29418,7 +29568,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
29418
29568
|
styles: clickStyles
|
|
29419
29569
|
});
|
|
29420
29570
|
},
|
|
29421
|
-
children: /*#__PURE__*/jsx(PanelComponent, _objectSpread$
|
|
29571
|
+
children: /*#__PURE__*/jsx(PanelComponent, _objectSpread$c(_objectSpread$c({}, panelStyles), {}, {
|
|
29422
29572
|
scrollable: false,
|
|
29423
29573
|
className: "rounded",
|
|
29424
29574
|
height: "",
|
|
@@ -29432,9 +29582,9 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
29432
29582
|
var _comp$props = comp.props,
|
|
29433
29583
|
childContent = _comp$props.children,
|
|
29434
29584
|
restProps = _objectWithoutProperties(_comp$props, _excluded$1);
|
|
29435
|
-
var renderedComponent = childContent !== undefined ? /*#__PURE__*/jsx(comp.Component, _objectSpread$
|
|
29585
|
+
var renderedComponent = childContent !== undefined ? /*#__PURE__*/jsx(comp.Component, _objectSpread$c(_objectSpread$c({}, restProps), {}, {
|
|
29436
29586
|
children: childContent
|
|
29437
|
-
})) : /*#__PURE__*/jsx(comp.Component, _objectSpread$
|
|
29587
|
+
})) : /*#__PURE__*/jsx(comp.Component, _objectSpread$c({}, restProps));
|
|
29438
29588
|
return renderComponentRow(comp.key, renderedComponent);
|
|
29439
29589
|
})
|
|
29440
29590
|
})
|
|
@@ -29450,7 +29600,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
29450
29600
|
children: [/*#__PURE__*/jsx("div", {
|
|
29451
29601
|
className: "text-xs uppercase font-bold text-gray-500 tracking-wider",
|
|
29452
29602
|
children: "Forms & Inputs"
|
|
29453
|
-
}), /*#__PURE__*/jsx(Panel, _objectSpread$
|
|
29603
|
+
}), /*#__PURE__*/jsx(Panel, _objectSpread$c(_objectSpread$c({}, getStylesForItem("panel", themeData)), {}, {
|
|
29454
29604
|
scrollable: false,
|
|
29455
29605
|
className: "rounded",
|
|
29456
29606
|
height: "",
|
|
@@ -29478,7 +29628,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
29478
29628
|
children: [/*#__PURE__*/jsx("div", {
|
|
29479
29629
|
className: "text-xs uppercase font-bold text-gray-500 tracking-wider",
|
|
29480
29630
|
children: "Data & Stats"
|
|
29481
|
-
}), /*#__PURE__*/jsx(Panel, _objectSpread$
|
|
29631
|
+
}), /*#__PURE__*/jsx(Panel, _objectSpread$c(_objectSpread$c({}, getStylesForItem("panel", themeData)), {}, {
|
|
29482
29632
|
scrollable: false,
|
|
29483
29633
|
className: "rounded",
|
|
29484
29634
|
height: "",
|
|
@@ -29583,7 +29733,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
29583
29733
|
}), themeSelected && /*#__PURE__*/jsx("div", {
|
|
29584
29734
|
className: "flex flex-col flex-1 min-w-0",
|
|
29585
29735
|
children: /*#__PURE__*/jsx(ThemeContext.Provider, {
|
|
29586
|
-
value: _objectSpread$
|
|
29736
|
+
value: _objectSpread$c(_objectSpread$c({}, themeContextValue), {}, {
|
|
29587
29737
|
currentTheme: (themeSelected === null || themeSelected === void 0 ? void 0 : themeSelected[themeVariant]) || themeContextValue.currentTheme
|
|
29588
29738
|
}),
|
|
29589
29739
|
children: showPreview ? /*#__PURE__*/jsx(PreviewComponentsPane, {
|
|
@@ -30214,8 +30364,8 @@ var ThemeQuickCreate = function ThemeQuickCreate(_ref8) {
|
|
|
30214
30364
|
});
|
|
30215
30365
|
};
|
|
30216
30366
|
|
|
30217
|
-
function ownKeys$
|
|
30218
|
-
function _objectSpread$
|
|
30367
|
+
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; }
|
|
30368
|
+
function _objectSpread$b(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$b(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$b(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
30219
30369
|
var ThemeManagerModal = function ThemeManagerModal(_ref) {
|
|
30220
30370
|
var open = _ref.open,
|
|
30221
30371
|
setIsOpen = _ref.setIsOpen;
|
|
@@ -30322,7 +30472,7 @@ var ThemeManagerModal = function ThemeManagerModal(_ref) {
|
|
|
30322
30472
|
function handleWizardComplete() {
|
|
30323
30473
|
if (!wizardTheme || !wizardName.trim()) return;
|
|
30324
30474
|
var key = wizardTheme.id || "theme-".concat(Date.now());
|
|
30325
|
-
var finalTheme = _objectSpread$
|
|
30475
|
+
var finalTheme = _objectSpread$b(_objectSpread$b({}, wizardTheme), {}, {
|
|
30326
30476
|
id: key,
|
|
30327
30477
|
name: wizardName.trim()
|
|
30328
30478
|
});
|
|
@@ -31344,8 +31494,8 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
|
|
|
31344
31494
|
});
|
|
31345
31495
|
};
|
|
31346
31496
|
|
|
31347
|
-
function ownKeys$
|
|
31348
|
-
function _objectSpread$
|
|
31497
|
+
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; }
|
|
31498
|
+
function _objectSpread$a(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$a(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$a(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
31349
31499
|
var LayoutPreview = function LayoutPreview(_ref) {
|
|
31350
31500
|
var layout = _ref.layout;
|
|
31351
31501
|
var gridRoot = (layout || []).find(function (item) {
|
|
@@ -31516,7 +31666,7 @@ var DashboardDetail = function DashboardDetail(_ref2) {
|
|
|
31516
31666
|
updated.menuId = val ? Number(val) : null;
|
|
31517
31667
|
// Strip widgetConfig from layout before saving
|
|
31518
31668
|
updated.layout = (updated.layout || []).map(function (layoutItem) {
|
|
31519
|
-
var cleaned = _objectSpread$
|
|
31669
|
+
var cleaned = _objectSpread$a({}, layoutItem);
|
|
31520
31670
|
delete cleaned.widgetConfig;
|
|
31521
31671
|
return cleaned;
|
|
31522
31672
|
});
|
|
@@ -31531,7 +31681,7 @@ var DashboardDetail = function DashboardDetail(_ref2) {
|
|
|
31531
31681
|
var updated = deepCopy(ws);
|
|
31532
31682
|
updated.themeKey = val || null;
|
|
31533
31683
|
updated.layout = (updated.layout || []).map(function (layoutItem) {
|
|
31534
|
-
var cleaned = _objectSpread$
|
|
31684
|
+
var cleaned = _objectSpread$a({}, layoutItem);
|
|
31535
31685
|
delete cleaned.widgetConfig;
|
|
31536
31686
|
return cleaned;
|
|
31537
31687
|
});
|
|
@@ -32141,8 +32291,8 @@ var DiscoverDashboardsDetail = function DiscoverDashboardsDetail(_ref) {
|
|
|
32141
32291
|
});
|
|
32142
32292
|
};
|
|
32143
32293
|
|
|
32144
|
-
function ownKeys$
|
|
32145
|
-
function _objectSpread$
|
|
32294
|
+
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; }
|
|
32295
|
+
function _objectSpread$9(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$9(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$9(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
32146
32296
|
var DashboardsSection = function DashboardsSection(_ref) {
|
|
32147
32297
|
var _ref$workspaces = _ref.workspaces,
|
|
32148
32298
|
workspaces = _ref$workspaces === void 0 ? [] : _ref$workspaces,
|
|
@@ -32230,7 +32380,7 @@ var DashboardsSection = function DashboardsSection(_ref) {
|
|
|
32230
32380
|
updated.name = editName.trim();
|
|
32231
32381
|
// Strip widgetConfig from layout before saving
|
|
32232
32382
|
updated.layout = (updated.layout || []).map(function (layoutItem) {
|
|
32233
|
-
var cleaned = _objectSpread$
|
|
32383
|
+
var cleaned = _objectSpread$9({}, layoutItem);
|
|
32234
32384
|
delete cleaned.widgetConfig;
|
|
32235
32385
|
return cleaned;
|
|
32236
32386
|
});
|
|
@@ -32250,7 +32400,7 @@ var DashboardsSection = function DashboardsSection(_ref) {
|
|
|
32250
32400
|
copy.version = Date.now();
|
|
32251
32401
|
// Strip widgetConfig from layout before saving
|
|
32252
32402
|
copy.layout = (copy.layout || []).map(function (layoutItem) {
|
|
32253
|
-
var cleaned = _objectSpread$
|
|
32403
|
+
var cleaned = _objectSpread$9({}, layoutItem);
|
|
32254
32404
|
delete cleaned.widgetConfig;
|
|
32255
32405
|
return cleaned;
|
|
32256
32406
|
});
|
|
@@ -32736,8 +32886,8 @@ var FoldersSection = function FoldersSection(_ref) {
|
|
|
32736
32886
|
});
|
|
32737
32887
|
};
|
|
32738
32888
|
|
|
32739
|
-
function ownKeys$
|
|
32740
|
-
function _objectSpread$
|
|
32889
|
+
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; }
|
|
32890
|
+
function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$8(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$8(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
32741
32891
|
var ProviderDetail = function ProviderDetail(_ref) {
|
|
32742
32892
|
var _provider$mcpConfig, _testResult$tools;
|
|
32743
32893
|
var _ref$providerName = _ref.providerName,
|
|
@@ -32827,14 +32977,14 @@ var ProviderDetail = function ProviderDetail(_ref) {
|
|
|
32827
32977
|
var oldKey = f.key;
|
|
32828
32978
|
if (oldKey && formCredentials[oldKey] !== undefined) {
|
|
32829
32979
|
setFormCredentials(function (creds) {
|
|
32830
|
-
var updated = _objectSpread$
|
|
32980
|
+
var updated = _objectSpread$8({}, creds);
|
|
32831
32981
|
var val = updated[oldKey];
|
|
32832
32982
|
delete updated[oldKey];
|
|
32833
32983
|
if (newKey.trim()) updated[newKey] = val;
|
|
32834
32984
|
return updated;
|
|
32835
32985
|
});
|
|
32836
32986
|
}
|
|
32837
|
-
return _objectSpread$
|
|
32987
|
+
return _objectSpread$8(_objectSpread$8({}, f), {}, {
|
|
32838
32988
|
key: newKey
|
|
32839
32989
|
});
|
|
32840
32990
|
});
|
|
@@ -32846,14 +32996,14 @@ var ProviderDetail = function ProviderDetail(_ref) {
|
|
|
32846
32996
|
});
|
|
32847
32997
|
if (field !== null && field !== void 0 && field.key) {
|
|
32848
32998
|
setFormCredentials(function (prev) {
|
|
32849
|
-
return _objectSpread$
|
|
32999
|
+
return _objectSpread$8(_objectSpread$8({}, prev), {}, _defineProperty({}, field.key, value));
|
|
32850
33000
|
});
|
|
32851
33001
|
}
|
|
32852
33002
|
};
|
|
32853
33003
|
var handleFieldSecretToggle = function handleFieldSecretToggle(id) {
|
|
32854
33004
|
setCredentialFields(function (prev) {
|
|
32855
33005
|
return prev.map(function (f) {
|
|
32856
|
-
return f.id === id ? _objectSpread$
|
|
33006
|
+
return f.id === id ? _objectSpread$8(_objectSpread$8({}, f), {}, {
|
|
32857
33007
|
secret: !f.secret
|
|
32858
33008
|
}) : f;
|
|
32859
33009
|
});
|
|
@@ -32875,7 +33025,7 @@ var ProviderDetail = function ProviderDetail(_ref) {
|
|
|
32875
33025
|
});
|
|
32876
33026
|
if (field !== null && field !== void 0 && field.key) {
|
|
32877
33027
|
setFormCredentials(function (prev) {
|
|
32878
|
-
var updated = _objectSpread$
|
|
33028
|
+
var updated = _objectSpread$8({}, prev);
|
|
32879
33029
|
delete updated[field.key];
|
|
32880
33030
|
return updated;
|
|
32881
33031
|
});
|
|
@@ -32888,7 +33038,7 @@ var ProviderDetail = function ProviderDetail(_ref) {
|
|
|
32888
33038
|
};
|
|
32889
33039
|
var handleCredentialChange = function handleCredentialChange(key, value) {
|
|
32890
33040
|
setFormCredentials(function (prev) {
|
|
32891
|
-
return _objectSpread$
|
|
33041
|
+
return _objectSpread$8(_objectSpread$8({}, prev), {}, _defineProperty({}, key, value));
|
|
32892
33042
|
});
|
|
32893
33043
|
};
|
|
32894
33044
|
var handleTestConnection = function handleTestConnection() {
|
|
@@ -33357,8 +33507,8 @@ var ProviderDetail = function ProviderDetail(_ref) {
|
|
|
33357
33507
|
});
|
|
33358
33508
|
};
|
|
33359
33509
|
|
|
33360
|
-
function ownKeys$
|
|
33361
|
-
function _objectSpread$
|
|
33510
|
+
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; }
|
|
33511
|
+
function _objectSpread$7(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$7(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$7(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
33362
33512
|
var rowIdCounter = 0;
|
|
33363
33513
|
var nextRowId = function nextRowId() {
|
|
33364
33514
|
return "row_".concat(++rowIdCounter);
|
|
@@ -33619,7 +33769,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
33619
33769
|
var updateEnvRow = function updateEnvRow(id, field, value) {
|
|
33620
33770
|
setEnvMappingRows(function (prev) {
|
|
33621
33771
|
return prev.map(function (row) {
|
|
33622
|
-
return row.id === id ? _objectSpread$
|
|
33772
|
+
return row.id === id ? _objectSpread$7(_objectSpread$7({}, row), {}, _defineProperty({}, field, value)) : row;
|
|
33623
33773
|
});
|
|
33624
33774
|
});
|
|
33625
33775
|
};
|
|
@@ -33644,7 +33794,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
33644
33794
|
var updateHeaderRow = function updateHeaderRow(id, field, value) {
|
|
33645
33795
|
setHeaderRows(function (prev) {
|
|
33646
33796
|
return prev.map(function (row) {
|
|
33647
|
-
return row.id === id ? _objectSpread$
|
|
33797
|
+
return row.id === id ? _objectSpread$7(_objectSpread$7({}, row), {}, _defineProperty({}, field, value)) : row;
|
|
33648
33798
|
});
|
|
33649
33799
|
});
|
|
33650
33800
|
};
|
|
@@ -33659,11 +33809,11 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
33659
33809
|
// --- credential field change ---
|
|
33660
33810
|
var handleCredentialChange = function handleCredentialChange(fieldName, value) {
|
|
33661
33811
|
setCredentialData(function (prev) {
|
|
33662
|
-
return _objectSpread$
|
|
33812
|
+
return _objectSpread$7(_objectSpread$7({}, prev), {}, _defineProperty({}, fieldName, value));
|
|
33663
33813
|
});
|
|
33664
33814
|
if (formErrors[fieldName] && value !== null && value !== void 0 && value.trim()) {
|
|
33665
33815
|
setFormErrors(function (prev) {
|
|
33666
|
-
var next = _objectSpread$
|
|
33816
|
+
var next = _objectSpread$7({}, prev);
|
|
33667
33817
|
delete next[fieldName];
|
|
33668
33818
|
return next;
|
|
33669
33819
|
});
|
|
@@ -33871,7 +34021,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
33871
34021
|
setProviderName(value);
|
|
33872
34022
|
if (formErrors.providerName && value !== null && value !== void 0 && value.trim()) {
|
|
33873
34023
|
setFormErrors(function (prev) {
|
|
33874
|
-
var next = _objectSpread$
|
|
34024
|
+
var next = _objectSpread$7({}, prev);
|
|
33875
34025
|
delete next.providerName;
|
|
33876
34026
|
return next;
|
|
33877
34027
|
});
|
|
@@ -33987,7 +34137,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
33987
34137
|
setCommand(value);
|
|
33988
34138
|
if (formErrors.command && value !== null && value !== void 0 && value.trim()) {
|
|
33989
34139
|
setFormErrors(function (prev) {
|
|
33990
|
-
var next = _objectSpread$
|
|
34140
|
+
var next = _objectSpread$7({}, prev);
|
|
33991
34141
|
delete next.command;
|
|
33992
34142
|
return next;
|
|
33993
34143
|
});
|
|
@@ -34093,7 +34243,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
34093
34243
|
setUrl(value);
|
|
34094
34244
|
if (formErrors.url && value !== null && value !== void 0 && value.trim()) {
|
|
34095
34245
|
setFormErrors(function (prev) {
|
|
34096
|
-
var next = _objectSpread$
|
|
34246
|
+
var next = _objectSpread$7({}, prev);
|
|
34097
34247
|
delete next.url;
|
|
34098
34248
|
return next;
|
|
34099
34249
|
});
|
|
@@ -34338,8 +34488,8 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
34338
34488
|
});
|
|
34339
34489
|
};
|
|
34340
34490
|
|
|
34341
|
-
function ownKeys$
|
|
34342
|
-
function _objectSpread$
|
|
34491
|
+
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; }
|
|
34492
|
+
function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$6(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$6(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
34343
34493
|
var getIconForServer = function getIconForServer(server) {
|
|
34344
34494
|
var iconMap = {
|
|
34345
34495
|
github: "code-branch",
|
|
@@ -34526,11 +34676,11 @@ var McpCatalogDetail = function McpCatalogDetail(_ref) {
|
|
|
34526
34676
|
// Handle credential field changes
|
|
34527
34677
|
var handleCredentialChange = function handleCredentialChange(fieldName, value) {
|
|
34528
34678
|
setCredentialData(function (prev) {
|
|
34529
|
-
return _objectSpread$
|
|
34679
|
+
return _objectSpread$6(_objectSpread$6({}, prev), {}, _defineProperty({}, fieldName, value));
|
|
34530
34680
|
});
|
|
34531
34681
|
if (formErrors[fieldName] && value !== null && value !== void 0 && value.trim()) {
|
|
34532
34682
|
setFormErrors(function (prev) {
|
|
34533
|
-
var next = _objectSpread$
|
|
34683
|
+
var next = _objectSpread$6({}, prev);
|
|
34534
34684
|
delete next[fieldName];
|
|
34535
34685
|
return next;
|
|
34536
34686
|
});
|
|
@@ -34778,7 +34928,7 @@ var McpCatalogDetail = function McpCatalogDetail(_ref) {
|
|
|
34778
34928
|
setProviderName(value);
|
|
34779
34929
|
if (formErrors.providerName && value !== null && value !== void 0 && value.trim()) {
|
|
34780
34930
|
setFormErrors(function (prev) {
|
|
34781
|
-
var next = _objectSpread$
|
|
34931
|
+
var next = _objectSpread$6({}, prev);
|
|
34782
34932
|
delete next.providerName;
|
|
34783
34933
|
return next;
|
|
34784
34934
|
});
|
|
@@ -35726,8 +35876,8 @@ var ThemeDetail = function ThemeDetail(_ref6) {
|
|
|
35726
35876
|
});
|
|
35727
35877
|
};
|
|
35728
35878
|
|
|
35729
|
-
function ownKeys$
|
|
35730
|
-
function _objectSpread$
|
|
35879
|
+
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; }
|
|
35880
|
+
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
35731
35881
|
var ThemesSection = function ThemesSection(_ref) {
|
|
35732
35882
|
var _ref$onOpenThemeEdito = _ref.onOpenThemeEditor,
|
|
35733
35883
|
onOpenThemeEditor = _ref$onOpenThemeEdito === void 0 ? null : _ref$onOpenThemeEdito,
|
|
@@ -35799,7 +35949,7 @@ var ThemesSection = function ThemesSection(_ref) {
|
|
|
35799
35949
|
if (!wizardTheme || !wizardName.trim()) return;
|
|
35800
35950
|
if (!dashApi || !appId) return;
|
|
35801
35951
|
var key = wizardTheme.id || "theme-".concat(Date.now());
|
|
35802
|
-
var finalTheme = _objectSpread$
|
|
35952
|
+
var finalTheme = _objectSpread$5(_objectSpread$5({}, wizardTheme), {}, {
|
|
35803
35953
|
id: key,
|
|
35804
35954
|
name: wizardName.trim()
|
|
35805
35955
|
});
|
|
@@ -37197,8 +37347,8 @@ var useInstalledWidgets = function useInstalledWidgets() {
|
|
|
37197
37347
|
};
|
|
37198
37348
|
};
|
|
37199
37349
|
|
|
37200
|
-
function ownKeys$
|
|
37201
|
-
function _objectSpread$
|
|
37350
|
+
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; }
|
|
37351
|
+
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
37202
37352
|
var WidgetsSection = function WidgetsSection(_ref) {
|
|
37203
37353
|
var _ref$workspaces = _ref.workspaces,
|
|
37204
37354
|
workspaces = _ref$workspaces === void 0 ? [] : _ref$workspaces;
|
|
@@ -37770,7 +37920,7 @@ var WidgetsSection = function WidgetsSection(_ref) {
|
|
|
37770
37920
|
listContent: listContent,
|
|
37771
37921
|
detailContent: detailContent,
|
|
37772
37922
|
emptyDetailMessage: "Select a widget to view details"
|
|
37773
|
-
}), /*#__PURE__*/jsx(ConfirmationModal, _objectSpread$
|
|
37923
|
+
}), /*#__PURE__*/jsx(ConfirmationModal, _objectSpread$4(_objectSpread$4({
|
|
37774
37924
|
isOpen: !!deleteTarget,
|
|
37775
37925
|
setIsOpen: function setIsOpen() {
|
|
37776
37926
|
setDeleteTarget(null);
|
|
@@ -37815,8 +37965,8 @@ var WidgetsSection = function WidgetsSection(_ref) {
|
|
|
37815
37965
|
});
|
|
37816
37966
|
};
|
|
37817
37967
|
|
|
37818
|
-
function ownKeys$
|
|
37819
|
-
function _objectSpread$
|
|
37968
|
+
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; }
|
|
37969
|
+
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
37820
37970
|
var AccountSection = function AccountSection(_ref) {
|
|
37821
37971
|
var authStatus = _ref.authStatus,
|
|
37822
37972
|
authProfile = _ref.authProfile,
|
|
@@ -37921,7 +38071,7 @@ var AuthenticatedView = function AuthenticatedView(_ref3) {
|
|
|
37921
38071
|
onPackageUpdated: function onPackageUpdated(updatedPkg) {
|
|
37922
38072
|
setPackages(function (prev) {
|
|
37923
38073
|
return prev.map(function (p) {
|
|
37924
|
-
return p.name === updatedPkg.name && p.scope === updatedPkg.scope ? _objectSpread$
|
|
38074
|
+
return p.name === updatedPkg.name && p.scope === updatedPkg.scope ? _objectSpread$3(_objectSpread$3({}, p), updatedPkg) : p;
|
|
37925
38075
|
});
|
|
37926
38076
|
});
|
|
37927
38077
|
},
|
|
@@ -38176,7 +38326,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
38176
38326
|
case 2:
|
|
38177
38327
|
result = _context3.sent;
|
|
38178
38328
|
if (result) {
|
|
38179
|
-
onSaved(_objectSpread$
|
|
38329
|
+
onSaved(_objectSpread$3(_objectSpread$3({}, pkg), updates));
|
|
38180
38330
|
}
|
|
38181
38331
|
_context3.next = 4;
|
|
38182
38332
|
break;
|
|
@@ -38241,7 +38391,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
38241
38391
|
label: "Display Name",
|
|
38242
38392
|
value: form.displayName,
|
|
38243
38393
|
onChange: function onChange(v) {
|
|
38244
|
-
return setForm(_objectSpread$
|
|
38394
|
+
return setForm(_objectSpread$3(_objectSpread$3({}, form), {}, {
|
|
38245
38395
|
displayName: v
|
|
38246
38396
|
}));
|
|
38247
38397
|
}
|
|
@@ -38249,7 +38399,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
38249
38399
|
label: "Description",
|
|
38250
38400
|
value: form.description,
|
|
38251
38401
|
onChange: function onChange(v) {
|
|
38252
|
-
return setForm(_objectSpread$
|
|
38402
|
+
return setForm(_objectSpread$3(_objectSpread$3({}, form), {}, {
|
|
38253
38403
|
description: v
|
|
38254
38404
|
}));
|
|
38255
38405
|
}
|
|
@@ -38257,7 +38407,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
38257
38407
|
label: "Category",
|
|
38258
38408
|
value: form.category,
|
|
38259
38409
|
onChange: function onChange(v) {
|
|
38260
|
-
return setForm(_objectSpread$
|
|
38410
|
+
return setForm(_objectSpread$3(_objectSpread$3({}, form), {}, {
|
|
38261
38411
|
category: v
|
|
38262
38412
|
}));
|
|
38263
38413
|
}
|
|
@@ -38265,7 +38415,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
38265
38415
|
label: "Tags (comma-separated)",
|
|
38266
38416
|
value: form.tags,
|
|
38267
38417
|
onChange: function onChange(v) {
|
|
38268
|
-
return setForm(_objectSpread$
|
|
38418
|
+
return setForm(_objectSpread$3(_objectSpread$3({}, form), {}, {
|
|
38269
38419
|
tags: v
|
|
38270
38420
|
}));
|
|
38271
38421
|
}
|
|
@@ -38277,7 +38427,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
38277
38427
|
}), /*#__PURE__*/jsxs("select", {
|
|
38278
38428
|
value: form.visibility,
|
|
38279
38429
|
onChange: function onChange(e) {
|
|
38280
|
-
return setForm(_objectSpread$
|
|
38430
|
+
return setForm(_objectSpread$3(_objectSpread$3({}, form), {}, {
|
|
38281
38431
|
visibility: e.target.value
|
|
38282
38432
|
}));
|
|
38283
38433
|
},
|
|
@@ -38381,6 +38531,216 @@ var EditField = function EditField(_ref7) {
|
|
|
38381
38531
|
});
|
|
38382
38532
|
};
|
|
38383
38533
|
|
|
38534
|
+
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; }
|
|
38535
|
+
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; }
|
|
38536
|
+
var NotificationsSection = function NotificationsSection(_ref) {
|
|
38537
|
+
var _ref$workspaces = _ref.workspaces,
|
|
38538
|
+
workspaces = _ref$workspaces === void 0 ? [] : _ref$workspaces;
|
|
38539
|
+
var appContext = useContext(AppContext);
|
|
38540
|
+
appContext === null || appContext === void 0 ? void 0 : appContext.dashApi;
|
|
38541
|
+
var _useState = useState(true),
|
|
38542
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
38543
|
+
globalEnabled = _useState2[0],
|
|
38544
|
+
setGlobalEnabled = _useState2[1];
|
|
38545
|
+
var _useState3 = useState(false),
|
|
38546
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
38547
|
+
doNotDisturb = _useState4[0],
|
|
38548
|
+
setDoNotDisturb = _useState4[1];
|
|
38549
|
+
var _useState5 = useState({}),
|
|
38550
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
38551
|
+
instances = _useState6[0],
|
|
38552
|
+
setInstances = _useState6[1];
|
|
38553
|
+
var _useState7 = useState(true),
|
|
38554
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
38555
|
+
loading = _useState8[0],
|
|
38556
|
+
setLoading = _useState8[1];
|
|
38557
|
+
|
|
38558
|
+
// Load preferences on mount
|
|
38559
|
+
useEffect(function () {
|
|
38560
|
+
var _window$mainApi;
|
|
38561
|
+
if (!((_window$mainApi = window.mainApi) !== null && _window$mainApi !== void 0 && (_window$mainApi = _window$mainApi.notifications) !== null && _window$mainApi !== void 0 && _window$mainApi.getPreferences)) {
|
|
38562
|
+
setLoading(false);
|
|
38563
|
+
return;
|
|
38564
|
+
}
|
|
38565
|
+
window.mainApi.notifications.getPreferences().then(function (prefs) {
|
|
38566
|
+
setGlobalEnabled(prefs.globalEnabled);
|
|
38567
|
+
setDoNotDisturb(prefs.doNotDisturb);
|
|
38568
|
+
setInstances(prefs.instances || {});
|
|
38569
|
+
setLoading(false);
|
|
38570
|
+
});
|
|
38571
|
+
}, []);
|
|
38572
|
+
|
|
38573
|
+
// Collect all widget instances with notifications from workspaces
|
|
38574
|
+
var widgetInstances = [];
|
|
38575
|
+
var componentMap = ComponentManager.componentMap() || {};
|
|
38576
|
+
workspaces.forEach(function (ws) {
|
|
38577
|
+
var items = flattenLayout(ws.layout);
|
|
38578
|
+
items.forEach(function (item) {
|
|
38579
|
+
var _config$notifications;
|
|
38580
|
+
var config = componentMap[item.component];
|
|
38581
|
+
if ((config === null || config === void 0 || (_config$notifications = config.notifications) === null || _config$notifications === void 0 ? void 0 : _config$notifications.length) > 0) {
|
|
38582
|
+
var _item$userPrefs;
|
|
38583
|
+
widgetInstances.push({
|
|
38584
|
+
uuid: item.uuid || item.uuidString,
|
|
38585
|
+
componentName: item.component,
|
|
38586
|
+
title: ((_item$userPrefs = item.userPrefs) === null || _item$userPrefs === void 0 ? void 0 : _item$userPrefs.title) || config.displayName || item.component,
|
|
38587
|
+
workspaceName: ws.name || ws.id,
|
|
38588
|
+
notifications: config.notifications,
|
|
38589
|
+
"package": config["package"]
|
|
38590
|
+
});
|
|
38591
|
+
}
|
|
38592
|
+
});
|
|
38593
|
+
});
|
|
38594
|
+
|
|
38595
|
+
// Group by package
|
|
38596
|
+
var grouped = {};
|
|
38597
|
+
widgetInstances.forEach(function (wi) {
|
|
38598
|
+
var pkg = wi["package"] || "Other";
|
|
38599
|
+
if (!grouped[pkg]) grouped[pkg] = [];
|
|
38600
|
+
grouped[pkg].push(wi);
|
|
38601
|
+
});
|
|
38602
|
+
function handleGlobalToggle(value) {
|
|
38603
|
+
var _window$mainApi2;
|
|
38604
|
+
setGlobalEnabled(value);
|
|
38605
|
+
(_window$mainApi2 = window.mainApi) === null || _window$mainApi2 === void 0 || (_window$mainApi2 = _window$mainApi2.notifications) === null || _window$mainApi2 === void 0 || _window$mainApi2.setGlobal({
|
|
38606
|
+
globalEnabled: value
|
|
38607
|
+
});
|
|
38608
|
+
}
|
|
38609
|
+
function handleDndToggle(value) {
|
|
38610
|
+
var _window$mainApi3;
|
|
38611
|
+
setDoNotDisturb(value);
|
|
38612
|
+
(_window$mainApi3 = window.mainApi) === null || _window$mainApi3 === void 0 || (_window$mainApi3 = _window$mainApi3.notifications) === null || _window$mainApi3 === void 0 || _window$mainApi3.setGlobal({
|
|
38613
|
+
doNotDisturb: value
|
|
38614
|
+
});
|
|
38615
|
+
}
|
|
38616
|
+
function handleTypeToggle(widgetUuid, typeKey, value) {
|
|
38617
|
+
var _window$mainApi4;
|
|
38618
|
+
var updated = _objectSpread$2(_objectSpread$2({}, instances), {}, _defineProperty({}, widgetUuid, _objectSpread$2(_objectSpread$2({}, instances[widgetUuid] || {}), {}, _defineProperty({}, typeKey, value))));
|
|
38619
|
+
setInstances(updated);
|
|
38620
|
+
(_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));
|
|
38621
|
+
}
|
|
38622
|
+
function getTypeEnabled(widgetUuid, typeKey, defaultEnabled) {
|
|
38623
|
+
var prefs = instances[widgetUuid];
|
|
38624
|
+
if (prefs && typeof prefs[typeKey] === "boolean") {
|
|
38625
|
+
return prefs[typeKey];
|
|
38626
|
+
}
|
|
38627
|
+
return defaultEnabled;
|
|
38628
|
+
}
|
|
38629
|
+
if (loading) {
|
|
38630
|
+
return /*#__PURE__*/jsx("div", {
|
|
38631
|
+
className: "flex-1 p-6 opacity-50 text-sm",
|
|
38632
|
+
children: "Loading notification preferences..."
|
|
38633
|
+
});
|
|
38634
|
+
}
|
|
38635
|
+
return /*#__PURE__*/jsx("div", {
|
|
38636
|
+
className: "flex-1 overflow-y-auto p-6",
|
|
38637
|
+
children: /*#__PURE__*/jsxs("div", {
|
|
38638
|
+
className: "flex flex-col space-y-6",
|
|
38639
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
38640
|
+
className: "flex flex-col space-y-3",
|
|
38641
|
+
children: [/*#__PURE__*/jsx(SubHeading3, {
|
|
38642
|
+
title: "Global",
|
|
38643
|
+
padding: false
|
|
38644
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
38645
|
+
className: "flex flex-row items-center justify-between py-2",
|
|
38646
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
38647
|
+
className: "flex flex-col",
|
|
38648
|
+
children: [/*#__PURE__*/jsx("span", {
|
|
38649
|
+
className: "text-sm font-medium",
|
|
38650
|
+
children: "Notifications Enabled"
|
|
38651
|
+
}), /*#__PURE__*/jsx("span", {
|
|
38652
|
+
className: "text-xs opacity-50",
|
|
38653
|
+
children: "Master switch for all notifications"
|
|
38654
|
+
})]
|
|
38655
|
+
}), /*#__PURE__*/jsx(Switch, {
|
|
38656
|
+
checked: globalEnabled,
|
|
38657
|
+
onChange: handleGlobalToggle
|
|
38658
|
+
})]
|
|
38659
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
38660
|
+
className: "flex flex-row items-center justify-between py-2",
|
|
38661
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
38662
|
+
className: "flex flex-col",
|
|
38663
|
+
children: [/*#__PURE__*/jsx("span", {
|
|
38664
|
+
className: "text-sm font-medium",
|
|
38665
|
+
children: "Do Not Disturb"
|
|
38666
|
+
}), /*#__PURE__*/jsx("span", {
|
|
38667
|
+
className: "text-xs opacity-50",
|
|
38668
|
+
children: "Temporarily silence all notifications"
|
|
38669
|
+
})]
|
|
38670
|
+
}), /*#__PURE__*/jsx(Switch, {
|
|
38671
|
+
checked: doNotDisturb,
|
|
38672
|
+
onChange: handleDndToggle
|
|
38673
|
+
})]
|
|
38674
|
+
})]
|
|
38675
|
+
}), Object.keys(grouped).length > 0 ? Object.entries(grouped).map(function (_ref2) {
|
|
38676
|
+
var _ref3 = _slicedToArray(_ref2, 2),
|
|
38677
|
+
pkg = _ref3[0],
|
|
38678
|
+
widgets = _ref3[1];
|
|
38679
|
+
return /*#__PURE__*/jsxs("div", {
|
|
38680
|
+
className: "flex flex-col space-y-3",
|
|
38681
|
+
children: [/*#__PURE__*/jsx(SubHeading3, {
|
|
38682
|
+
title: pkg,
|
|
38683
|
+
padding: false
|
|
38684
|
+
}), widgets.map(function (wi) {
|
|
38685
|
+
return /*#__PURE__*/jsxs("div", {
|
|
38686
|
+
className: "flex flex-col space-y-2 pl-2 border-l-2 border-white/10",
|
|
38687
|
+
children: [/*#__PURE__*/jsx("span", {
|
|
38688
|
+
className: "text-sm font-medium opacity-80",
|
|
38689
|
+
children: wi.title
|
|
38690
|
+
}), wi.notifications.map(function (notif) {
|
|
38691
|
+
return /*#__PURE__*/jsxs("div", {
|
|
38692
|
+
className: "flex flex-row items-center justify-between py-1 pl-2",
|
|
38693
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
38694
|
+
className: "flex flex-col",
|
|
38695
|
+
children: [/*#__PURE__*/jsx("span", {
|
|
38696
|
+
className: "text-sm",
|
|
38697
|
+
children: notif.displayName
|
|
38698
|
+
}), notif.description && /*#__PURE__*/jsx("span", {
|
|
38699
|
+
className: "text-xs opacity-50",
|
|
38700
|
+
children: notif.description
|
|
38701
|
+
})]
|
|
38702
|
+
}), /*#__PURE__*/jsx(Switch, {
|
|
38703
|
+
checked: getTypeEnabled(wi.uuid, notif.key, notif.defaultEnabled),
|
|
38704
|
+
onChange: function onChange(value) {
|
|
38705
|
+
return handleTypeToggle(wi.uuid, notif.key, value);
|
|
38706
|
+
}
|
|
38707
|
+
})]
|
|
38708
|
+
}, notif.key);
|
|
38709
|
+
})]
|
|
38710
|
+
}, wi.uuid);
|
|
38711
|
+
})]
|
|
38712
|
+
}, pkg);
|
|
38713
|
+
}) : /*#__PURE__*/jsx("div", {
|
|
38714
|
+
className: "text-sm opacity-50",
|
|
38715
|
+
children: "No widgets with notification support found. Add widgets that declare notifications to see per-type controls here."
|
|
38716
|
+
})]
|
|
38717
|
+
})
|
|
38718
|
+
});
|
|
38719
|
+
};
|
|
38720
|
+
|
|
38721
|
+
/**
|
|
38722
|
+
* Recursively flatten a layout tree into a list of leaf items.
|
|
38723
|
+
*/
|
|
38724
|
+
function flattenLayout(layout) {
|
|
38725
|
+
if (!layout) return [];
|
|
38726
|
+
var items = [];
|
|
38727
|
+
if (Array.isArray(layout)) {
|
|
38728
|
+
layout.forEach(function (item) {
|
|
38729
|
+
return items.push.apply(items, _toConsumableArray(flattenLayout(item)));
|
|
38730
|
+
});
|
|
38731
|
+
} else if (_typeof(layout) === "object") {
|
|
38732
|
+
if (layout.children) {
|
|
38733
|
+
layout.children.forEach(function (child) {
|
|
38734
|
+
return items.push.apply(items, _toConsumableArray(flattenLayout(child)));
|
|
38735
|
+
});
|
|
38736
|
+
}
|
|
38737
|
+
if (layout.component) {
|
|
38738
|
+
items.push(layout);
|
|
38739
|
+
}
|
|
38740
|
+
}
|
|
38741
|
+
return items;
|
|
38742
|
+
}
|
|
38743
|
+
|
|
38384
38744
|
var SECTIONS = [{
|
|
38385
38745
|
key: "general",
|
|
38386
38746
|
label: "General",
|
|
@@ -38409,12 +38769,20 @@ var SECTIONS = [{
|
|
|
38409
38769
|
key: "themes",
|
|
38410
38770
|
label: "Themes",
|
|
38411
38771
|
icon: "palette"
|
|
38772
|
+
}, {
|
|
38773
|
+
key: "notifications",
|
|
38774
|
+
label: "Notifications",
|
|
38775
|
+
icon: "bell"
|
|
38412
38776
|
}];
|
|
38413
38777
|
var AppSettingsModal = function AppSettingsModal(_ref) {
|
|
38414
38778
|
var isOpen = _ref.isOpen,
|
|
38415
38779
|
setIsOpen = _ref.setIsOpen,
|
|
38416
38780
|
_ref$initialSection = _ref.initialSection,
|
|
38417
38781
|
initialSection = _ref$initialSection === void 0 ? "general" : _ref$initialSection,
|
|
38782
|
+
_ref$initialProviderN = _ref.initialProviderName,
|
|
38783
|
+
initialProviderName = _ref$initialProviderN === void 0 ? null : _ref$initialProviderN,
|
|
38784
|
+
_ref$initialCreatePro = _ref.initialCreateProvider,
|
|
38785
|
+
initialCreateProvider = _ref$initialCreatePro === void 0 ? false : _ref$initialCreatePro,
|
|
38418
38786
|
_ref$workspaces = _ref.workspaces,
|
|
38419
38787
|
workspaces = _ref$workspaces === void 0 ? [] : _ref$workspaces,
|
|
38420
38788
|
_ref$menuItems = _ref.menuItems,
|
|
@@ -38539,7 +38907,9 @@ var AppSettingsModal = function AppSettingsModal(_ref) {
|
|
|
38539
38907
|
createRequested: createRequested,
|
|
38540
38908
|
onCreateAcknowledged: function onCreateAcknowledged() {
|
|
38541
38909
|
return setCreateRequested(false);
|
|
38542
|
-
}
|
|
38910
|
+
},
|
|
38911
|
+
initialProviderName: initialProviderName,
|
|
38912
|
+
initialCreateRequested: initialCreateProvider
|
|
38543
38913
|
}), activeSection === "themes" && /*#__PURE__*/jsx(ThemesSection, {
|
|
38544
38914
|
onOpenThemeEditor: onOpenThemeEditor,
|
|
38545
38915
|
dashApi: dashApi,
|
|
@@ -38567,6 +38937,8 @@ var AppSettingsModal = function AppSettingsModal(_ref) {
|
|
|
38567
38937
|
}), activeSection === "general" && /*#__PURE__*/jsx("div", {
|
|
38568
38938
|
className: "flex-1 overflow-y-auto p-6 ".concat(panelStyles.textColor || "text-gray-200"),
|
|
38569
38939
|
children: /*#__PURE__*/jsx(GeneralSection, {})
|
|
38940
|
+
}), activeSection === "notifications" && /*#__PURE__*/jsx(NotificationsSection, {
|
|
38941
|
+
workspaces: workspaces
|
|
38570
38942
|
})]
|
|
38571
38943
|
}), /*#__PURE__*/jsx(SettingsModal.Footer, {
|
|
38572
38944
|
children: /*#__PURE__*/jsx("div", {
|
|
@@ -42356,5 +42728,5 @@ var WorkspaceMenu = function WorkspaceMenu(_ref) {
|
|
|
42356
42728
|
|
|
42357
42729
|
ComponentManager.registerContainerTypes(LayoutContainer, LayoutGridContainer);
|
|
42358
42730
|
|
|
42359
|
-
export { ALGOLIA_ANALYTICS_FOR_QUERY, ALGOLIA_ANALYTICS_FOR_QUERY_COMPLETE, ALGOLIA_ANALYTICS_FOR_QUERY_ERROR, ALGOLIA_LIST_INDICES, ALGOLIA_LIST_INDICES_COMPLETE, ALGOLIA_LIST_INDICES_ERROR, AVAILABLE_COLORS, AddMenuItemModal, AdvancedMcpConfig, AppContext, AppSettingsModal, AppThemeScope, AppWrapper, CHOOSE_FILE, CHOOSE_FILE_COMPLETE, CHOOSE_FILE_ERROR, ColorModel, ComponentConfigModel, ComponentManager, ContextModel, DATA_JSON_TO_CSV_FILE, DATA_JSON_TO_CSV_FILE_COMPLETE, DATA_JSON_TO_CSV_FILE_ERROR, DATA_JSON_TO_CSV_STRING, DATA_JSON_TO_CSV_STRING_COMPLETE, DATA_JSON_TO_CSV_STRING_ERROR, DATA_READ_FROM_FILE, DATA_READ_FROM_FILE_COMPLETE, DATA_READ_FROM_FILE_ERROR, DATA_SAVE_TO_FILE, DATA_SAVE_TO_FILE_COMPLETE, DATA_SAVE_TO_FILE_ERROR, DashCommandPalette, DashNavbar, DashSidebar, DashTabBar, DashboardStage as Dashboard, DashboardApi, DashboardContext, DashboardFooter, DashboardHeader, DashboardMenuItem, DashboardModel, DashboardMonitor, DashboardPublisher, DashboardStage, DashboardThemeProvider, DashboardWrapper, ElectronDashboardApi, ErrorBoundary, ExternalWidget, GRID_CELL_WIDGET_TYPE, HARMONY_STRATEGIES, LAYOUT_LIST, LAYOUT_LIST_COMPLETE, LAYOUT_LIST_ERROR, LAYOUT_SAVE, LAYOUT_SAVE_COMPLETE, LAYOUT_SAVE_ERROR, Layout, LayoutBuilder, LayoutBuilderAddItemModal, LayoutBuilderConfigContainerMenuItem, LayoutBuilderConfigMenuItem, LayoutBuilderConfigModal, LayoutBuilderEditItemModal, LayoutBuilderEventModal, LayoutBuilderGridItem, LayoutContainer, LayoutDragBuilder, LayoutDragBuilderEdit, LayoutGridContainer, LayoutManagerModal, LayoutModel, LayoutQuickAddMenu, MCP_CALL_TOOL_COMPLETE, MCP_CALL_TOOL_ERROR, MCP_GET_CATALOG_COMPLETE, MCP_GET_CATALOG_ERROR, MCP_LIST_RESOURCES_COMPLETE, MCP_LIST_RESOURCES_ERROR, MCP_LIST_TOOLS_COMPLETE, MCP_LIST_TOOLS_ERROR, MCP_READ_RESOURCE_COMPLETE, MCP_READ_RESOURCE_ERROR, MCP_RUN_AUTH_COMPLETE, MCP_RUN_AUTH_ERROR, MCP_SERVER_STATUS_COMPLETE, MCP_SERVER_STATUS_ERROR, MCP_START_SERVER_COMPLETE, MCP_START_SERVER_ERROR, MCP_STOP_SERVER_COMPLETE, MCP_STOP_SERVER_ERROR, MENU_ITEMS_DELETE, MENU_ITEMS_DELETE_COMPLETE, MENU_ITEMS_DELETE_ERROR, MENU_ITEMS_LIST, MENU_ITEMS_LIST_COMPLETE, MENU_ITEMS_LIST_ERROR, MENU_ITEMS_SAVE, MENU_ITEMS_SAVE_COMPLETE, MENU_ITEMS_SAVE_ERROR, MainMenu, MainMenuItem, MainMenuSection, McpServerPicker, MenuItemModel, MenuSlideOverlay, MergeCellsModal, MissingProviderPrompt, MockDashboardApi, PROVIDER_DELETE_COMPLETE, PROVIDER_DELETE_ERROR, PROVIDER_GET_COMPLETE, PROVIDER_GET_ERROR, PROVIDER_LIST_COMPLETE, PROVIDER_LIST_ERROR, PROVIDER_SAVE_COMPLETE, PROVIDER_SAVE_ERROR, PanelCode, PanelEditItem, PanelEditItemHandlers, ProviderContext, ProviderErrorBoundary, ProviderForm, ProviderSelector, SECURE_STORAGE_ENCRYPT_STRING, SECURE_STORAGE_ENCRYPT_STRING_COMPLETE, SECURE_STORAGE_ENCRYPT_STRING_ERROR, SECURE_STORE_ENCRYPTION_CHECK, SECURE_STORE_ENCRYPTION_CHECK_COMPLETE, SECURE_STORE_ENCRYPTION_CHECK_ERROR, SECURE_STORE_GET_DATA, SECURE_STORE_GET_DATA_COMPLETE, SECURE_STORE_GET_DATA_ERROR, SECURE_STORE_SET_DATA, SECURE_STORE_SET_DATA_COMPLETE, SECURE_STORE_SET_DATA_ERROR, SETTINGS_GET, SETTINGS_GET_COMPLETE, SETTINGS_GET_ERROR, SETTINGS_SAVE, SETTINGS_SAVE_COMPLETE, SETTINGS_SAVE_ERROR, SIDEBAR_WIDGET_TYPE, SettingsModel, SideMenu, SplitCellModal, THEME_DELETE, THEME_DELETE_COMPLETE, THEME_DELETE_ERROR, THEME_LIST, THEME_LIST_COMPLETE, THEME_LIST_ERROR, THEME_SAVE, THEME_SAVE_COMPLETE, THEME_SAVE_ERROR, ThemeApi, ThemeManagerModal, ThemeModel, ThemeWrapper, WORKSPACE_DELETE, WORKSPACE_DELETE_COMPLETE, WORKSPACE_DELETE_ERROR, WORKSPACE_LIST, WORKSPACE_LIST_COMPLETE, WORKSPACE_LIST_ERROR, WORKSPACE_SAVE, WORKSPACE_SAVE_COMPLETE, WORKSPACE_SAVE_ERROR, WebDashboardApi, Widget, WidgetApi, WidgetConfigPanel, WidgetContext, WidgetFactory, WidgetPopoutStage, WidgetProviderWrapper, WidgetSidebar, Workspace, WorkspaceContext, WorkspaceFooter, WorkspaceMenu, WorkspaceModel, addChildToLayoutItem, addItemToItemLayout, buildMcpConfigFromOverrides, canHaveChildren, changeDirectionForLayoutItem, createProviderRegistry, deriveFormFields, envMappingToRows, evaluateBundle, extractWidgetConfigs, formStateToMcpJson, formatFieldName, generateCustomTheme, generateHarmonyTheme, generateRandomTheme, generateThemeName, getBorderStyle, getChildrenForLayoutItem, getComponentInLayout, getContainerBorderColor, getContainerColor, getIndexOfLayoutChildrenForItem, getIndexOfLayoutItem, getLayoutItemById, getLayoutItemForWorkspace, getNearestParentWorkspace, getNextHighestId, getNextHighestItemInLayout, getNextHighestOrder, getNextHighestParentId, getNextLowestItemInLayout, getParentForLayoutItem, getParentWorkspaceForItem, getThemePresets, getWidgetsForWorkspace, getWorkspacesForWorkspace, headerTemplateToRows, isContainer, isLikelySecret, isMaxOrderForItem, isMinOrderForItem, isWidget, isWidgetResolvable, isWorkspace, layoutItemHasWorkspaceAsChild, loadWidgetBundle, mcpJsonToFormState, numChildrenForLayout, removeItemFromLayout, renderComponent, renderGridLayout, renderGridLayoutFlow, _renderLayout as renderLayout, renderLayoutMenu, replaceItemInLayout, resolveIcon, setHostModules, traverseParentTree, updateLayoutItem, updateParentForItem, useDashboard, useMcpProvider, useProvider, useProviderClient, useWidgetEvents, useWidgetProviders, validateCellMerge, validateGridCell, validateGridPlacement, validateWidgetPlacement, withProviderDetection };
|
|
42731
|
+
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, PanelEditItemNotifications, ProviderContext, ProviderErrorBoundary, ProviderForm, ProviderSelector, SECURE_STORAGE_ENCRYPT_STRING, SECURE_STORAGE_ENCRYPT_STRING_COMPLETE, SECURE_STORAGE_ENCRYPT_STRING_ERROR, SECURE_STORE_ENCRYPTION_CHECK, SECURE_STORE_ENCRYPTION_CHECK_COMPLETE, SECURE_STORE_ENCRYPTION_CHECK_ERROR, SECURE_STORE_GET_DATA, SECURE_STORE_GET_DATA_COMPLETE, SECURE_STORE_GET_DATA_ERROR, SECURE_STORE_SET_DATA, SECURE_STORE_SET_DATA_COMPLETE, SECURE_STORE_SET_DATA_ERROR, SETTINGS_GET, SETTINGS_GET_COMPLETE, SETTINGS_GET_ERROR, SETTINGS_SAVE, SETTINGS_SAVE_COMPLETE, SETTINGS_SAVE_ERROR, SIDEBAR_WIDGET_TYPE, SettingsModel, SideMenu, SplitCellModal, THEME_DELETE, THEME_DELETE_COMPLETE, THEME_DELETE_ERROR, THEME_LIST, THEME_LIST_COMPLETE, THEME_LIST_ERROR, THEME_SAVE, THEME_SAVE_COMPLETE, THEME_SAVE_ERROR, ThemeApi, ThemeManagerModal, ThemeModel, ThemeWrapper, WORKSPACE_DELETE, WORKSPACE_DELETE_COMPLETE, WORKSPACE_DELETE_ERROR, WORKSPACE_LIST, WORKSPACE_LIST_COMPLETE, WORKSPACE_LIST_ERROR, WORKSPACE_SAVE, WORKSPACE_SAVE_COMPLETE, WORKSPACE_SAVE_ERROR, WebDashboardApi, Widget, WidgetApi, WidgetConfigPanel, WidgetContext, WidgetFactory, WidgetPopoutStage, WidgetProviderWrapper, WidgetSidebar, Workspace, WorkspaceContext, WorkspaceFooter, WorkspaceMenu, WorkspaceModel, addChildToLayoutItem, addItemToItemLayout, buildMcpConfigFromOverrides, canHaveChildren, changeDirectionForLayoutItem, createProviderRegistry, deriveFormFields, envMappingToRows, evaluateBundle, extractWidgetConfigs, formStateToMcpJson, formatFieldName, generateCustomTheme, generateHarmonyTheme, generateRandomTheme, generateThemeName, getBorderStyle, getChildrenForLayoutItem, getComponentInLayout, getContainerBorderColor, getContainerColor, getIndexOfLayoutChildrenForItem, getIndexOfLayoutItem, getLayoutItemById, getLayoutItemForWorkspace, getNearestParentWorkspace, getNextHighestId, getNextHighestItemInLayout, getNextHighestOrder, getNextHighestParentId, getNextLowestItemInLayout, getParentForLayoutItem, getParentWorkspaceForItem, getThemePresets, getWidgetsForWorkspace, getWorkspacesForWorkspace, headerTemplateToRows, isContainer, isLikelySecret, isMaxOrderForItem, isMinOrderForItem, isWidget, isWidgetResolvable, isWorkspace, layoutItemHasWorkspaceAsChild, loadWidgetBundle, mcpJsonToFormState, numChildrenForLayout, removeItemFromLayout, renderComponent, renderGridLayout, renderGridLayoutFlow, _renderLayout as renderLayout, renderLayoutMenu, replaceItemInLayout, resolveIcon, setHostModules, traverseParentTree, updateLayoutItem, updateParentForItem, useDashboard, useMcpProvider, useNotifications, useProvider, useProviderClient, useWidgetEvents, useWidgetProviders, validateCellMerge, validateGridCell, validateGridPlacement, validateWidgetPlacement, withProviderDetection };
|
|
42360
42732
|
//# sourceMappingURL=index.esm.js.map
|