@trops/dash-core 0.1.728 → 0.1.729
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +791 -421
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +791 -421
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2810,9 +2810,9 @@ function useWidgetRegistryVersion() {
|
|
|
2810
2810
|
return version;
|
|
2811
2811
|
}
|
|
2812
2812
|
|
|
2813
|
-
function _createForOfIteratorHelper$
|
|
2814
|
-
function _unsupportedIterableToArray$
|
|
2815
|
-
function _arrayLikeToArray$
|
|
2813
|
+
function _createForOfIteratorHelper$13(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$13(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; } } }; }
|
|
2814
|
+
function _unsupportedIterableToArray$13(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$13(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$13(r, a) : void 0; } }
|
|
2815
|
+
function _arrayLikeToArray$13(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; }
|
|
2816
2816
|
|
|
2817
2817
|
/**
|
|
2818
2818
|
* Walk a workspace layout and collect widget component keys that are
|
|
@@ -2826,7 +2826,7 @@ function collectComponentsFromLayout(layout) {
|
|
|
2826
2826
|
|
|
2827
2827
|
// Collect IDs of layout items that are actively referenced by grid cells
|
|
2828
2828
|
var activeItemIds = new Set();
|
|
2829
|
-
var _iterator = _createForOfIteratorHelper$
|
|
2829
|
+
var _iterator = _createForOfIteratorHelper$13(layout),
|
|
2830
2830
|
_step;
|
|
2831
2831
|
try {
|
|
2832
2832
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -2846,7 +2846,7 @@ function collectComponentsFromLayout(layout) {
|
|
|
2846
2846
|
} finally {
|
|
2847
2847
|
_iterator.f();
|
|
2848
2848
|
}
|
|
2849
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
2849
|
+
var _iterator2 = _createForOfIteratorHelper$13(layout),
|
|
2850
2850
|
_step2;
|
|
2851
2851
|
try {
|
|
2852
2852
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -2985,7 +2985,7 @@ var useInstalledWidgets = function useInstalledWidgets() {
|
|
|
2985
2985
|
_t = [];
|
|
2986
2986
|
case 4:
|
|
2987
2987
|
allDrafts = _t;
|
|
2988
|
-
_iterator4 = _createForOfIteratorHelper$
|
|
2988
|
+
_iterator4 = _createForOfIteratorHelper$13(allDrafts);
|
|
2989
2989
|
try {
|
|
2990
2990
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
2991
2991
|
d = _step4.value;
|
|
@@ -3154,9 +3154,9 @@ var useInstalledWidgets = function useInstalledWidgets() {
|
|
|
3154
3154
|
};
|
|
3155
3155
|
};
|
|
3156
3156
|
|
|
3157
|
-
function _createForOfIteratorHelper$
|
|
3158
|
-
function _unsupportedIterableToArray$
|
|
3159
|
-
function _arrayLikeToArray$
|
|
3157
|
+
function _createForOfIteratorHelper$12(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$12(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; } } }; }
|
|
3158
|
+
function _unsupportedIterableToArray$12(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$12(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$12(r, a) : void 0; } }
|
|
3159
|
+
function _arrayLikeToArray$12(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; }
|
|
3160
3160
|
function ownKeys$1u(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; }
|
|
3161
3161
|
function _objectSpread$1u(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1u(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1u(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3162
3162
|
/**
|
|
@@ -3252,7 +3252,7 @@ function normalizeRow(row, labelToType) {
|
|
|
3252
3252
|
function unionDedupe(a, b) {
|
|
3253
3253
|
var out = new Set(Array.isArray(a) ? a : []);
|
|
3254
3254
|
if (Array.isArray(b)) {
|
|
3255
|
-
var _iterator = _createForOfIteratorHelper$
|
|
3255
|
+
var _iterator = _createForOfIteratorHelper$12(b),
|
|
3256
3256
|
_step;
|
|
3257
3257
|
try {
|
|
3258
3258
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -3268,9 +3268,9 @@ function unionDedupe(a, b) {
|
|
|
3268
3268
|
return Array.from(out);
|
|
3269
3269
|
}
|
|
3270
3270
|
|
|
3271
|
-
function _createForOfIteratorHelper$
|
|
3272
|
-
function _unsupportedIterableToArray$
|
|
3273
|
-
function _arrayLikeToArray$
|
|
3271
|
+
function _createForOfIteratorHelper$11(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$11(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; } } }; }
|
|
3272
|
+
function _unsupportedIterableToArray$11(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$11(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$11(r, a) : void 0; } }
|
|
3273
|
+
function _arrayLikeToArray$11(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; }
|
|
3274
3274
|
function ownKeys$1t(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; }
|
|
3275
3275
|
function _objectSpread$1t(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1t(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1t(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3276
3276
|
|
|
@@ -3802,7 +3802,7 @@ function useWidgetUpdates() {
|
|
|
3802
3802
|
// (install replaces the entire package, not just one widget)
|
|
3803
3803
|
setUpdates(function (prev) {
|
|
3804
3804
|
var next = new Map(prev);
|
|
3805
|
-
var _iterator = _createForOfIteratorHelper$
|
|
3805
|
+
var _iterator = _createForOfIteratorHelper$11(next),
|
|
3806
3806
|
_step;
|
|
3807
3807
|
try {
|
|
3808
3808
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -3860,7 +3860,7 @@ function useWidgetUpdates() {
|
|
|
3860
3860
|
var liveUpdates = React.useMemo(function () {
|
|
3861
3861
|
if (!updates || updates.size === 0) return updates;
|
|
3862
3862
|
var installedVersion = new Map();
|
|
3863
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
3863
|
+
var _iterator2 = _createForOfIteratorHelper$11(installedWidgets),
|
|
3864
3864
|
_step2;
|
|
3865
3865
|
try {
|
|
3866
3866
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -3874,7 +3874,7 @@ function useWidgetUpdates() {
|
|
|
3874
3874
|
_iterator2.f();
|
|
3875
3875
|
}
|
|
3876
3876
|
var live = new Map();
|
|
3877
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
3877
|
+
var _iterator3 = _createForOfIteratorHelper$11(updates),
|
|
3878
3878
|
_step3;
|
|
3879
3879
|
try {
|
|
3880
3880
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -3902,7 +3902,7 @@ function useWidgetUpdates() {
|
|
|
3902
3902
|
var packagesWithUpdates = React.useMemo(function () {
|
|
3903
3903
|
if (!liveUpdates || liveUpdates.size === 0) return [];
|
|
3904
3904
|
var byPackage = new Map();
|
|
3905
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
3905
|
+
var _iterator4 = _createForOfIteratorHelper$11(liveUpdates),
|
|
3906
3906
|
_step4;
|
|
3907
3907
|
try {
|
|
3908
3908
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
@@ -3930,7 +3930,7 @@ function useWidgetUpdates() {
|
|
|
3930
3930
|
} finally {
|
|
3931
3931
|
_iterator4.f();
|
|
3932
3932
|
}
|
|
3933
|
-
var _iterator5 = _createForOfIteratorHelper$
|
|
3933
|
+
var _iterator5 = _createForOfIteratorHelper$11(installedWidgets),
|
|
3934
3934
|
_step5;
|
|
3935
3935
|
try {
|
|
3936
3936
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
@@ -4061,7 +4061,7 @@ function useWidgetUpdates() {
|
|
|
4061
4061
|
// packageId) → grant rows (which are keyed by widgetId like
|
|
4062
4062
|
// `trops.slack.SlackChannels`).
|
|
4063
4063
|
rowByComponentName = new Map();
|
|
4064
|
-
_iterator6 = _createForOfIteratorHelper$
|
|
4064
|
+
_iterator6 = _createForOfIteratorHelper$11(allRows);
|
|
4065
4065
|
try {
|
|
4066
4066
|
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
4067
4067
|
r = _step6.value;
|
|
@@ -4074,7 +4074,7 @@ function useWidgetUpdates() {
|
|
|
4074
4074
|
_iterator6.f();
|
|
4075
4075
|
}
|
|
4076
4076
|
widgetsWithMissing = [];
|
|
4077
|
-
_iterator7 = _createForOfIteratorHelper$
|
|
4077
|
+
_iterator7 = _createForOfIteratorHelper$11(manifests);
|
|
4078
4078
|
_context5.prev = 8;
|
|
4079
4079
|
_loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
|
|
4080
4080
|
var _manifest$permissions, _manifest$permissions2;
|
|
@@ -4099,7 +4099,7 @@ function useWidgetUpdates() {
|
|
|
4099
4099
|
pkgWidgets = installedWidgets.filter(function (w) {
|
|
4100
4100
|
return (w.packageId || w.name) === packageId;
|
|
4101
4101
|
});
|
|
4102
|
-
_iterator8 = _createForOfIteratorHelper$
|
|
4102
|
+
_iterator8 = _createForOfIteratorHelper$11(pkgWidgets);
|
|
4103
4103
|
_context4.prev = 2;
|
|
4104
4104
|
_iterator8.s();
|
|
4105
4105
|
case 3:
|
|
@@ -4215,7 +4215,7 @@ function useWidgetUpdates() {
|
|
|
4215
4215
|
// Seed every selected package as pending so the modal renders
|
|
4216
4216
|
// the full per-row state from the first paint.
|
|
4217
4217
|
initial = new Map();
|
|
4218
|
-
_iterator9 = _createForOfIteratorHelper$
|
|
4218
|
+
_iterator9 = _createForOfIteratorHelper$11(packageNames);
|
|
4219
4219
|
try {
|
|
4220
4220
|
for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
|
|
4221
4221
|
name = _step9.value;
|
|
@@ -4275,7 +4275,7 @@ function useWidgetUpdates() {
|
|
|
4275
4275
|
// loop so the freshly-installed code can immediately use
|
|
4276
4276
|
// what was approved (and is gated from what wasn't).
|
|
4277
4277
|
accepted = decision.acceptedByWidgetId || {};
|
|
4278
|
-
_iterator0 = _createForOfIteratorHelper$
|
|
4278
|
+
_iterator0 = _createForOfIteratorHelper$11(preflight.widgets);
|
|
4279
4279
|
_context7.prev = 6;
|
|
4280
4280
|
_iterator0.s();
|
|
4281
4281
|
case 7:
|
|
@@ -4359,7 +4359,7 @@ function useWidgetUpdates() {
|
|
|
4359
4359
|
// e.g. a stale registry zip or a verify mismatch).
|
|
4360
4360
|
failedDetails = [];
|
|
4361
4361
|
_context7.prev = 19;
|
|
4362
|
-
_iterator1 = _createForOfIteratorHelper$
|
|
4362
|
+
_iterator1 = _createForOfIteratorHelper$11(packageNames);
|
|
4363
4363
|
_context7.prev = 20;
|
|
4364
4364
|
_loop2 = /*#__PURE__*/_regeneratorRuntime.mark(function _loop2() {
|
|
4365
4365
|
var pkgName, msg, _t0;
|
|
@@ -4466,7 +4466,7 @@ function useWidgetUpdates() {
|
|
|
4466
4466
|
succeededSet = new Set(succeeded);
|
|
4467
4467
|
setUpdates(function (prev) {
|
|
4468
4468
|
var next = new Map(prev);
|
|
4469
|
-
var _iterator10 = _createForOfIteratorHelper$
|
|
4469
|
+
var _iterator10 = _createForOfIteratorHelper$11(next),
|
|
4470
4470
|
_step10;
|
|
4471
4471
|
try {
|
|
4472
4472
|
for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
|
|
@@ -4860,9 +4860,9 @@ function useRegistryAuth() {
|
|
|
4860
4860
|
|
|
4861
4861
|
function ownKeys$1r(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; }
|
|
4862
4862
|
function _objectSpread$1r(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1r(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1r(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4863
|
-
function _createForOfIteratorHelper
|
|
4864
|
-
function _unsupportedIterableToArray
|
|
4865
|
-
function _arrayLikeToArray
|
|
4863
|
+
function _createForOfIteratorHelper$10(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$10(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; } } }; }
|
|
4864
|
+
function _unsupportedIterableToArray$10(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$10(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$10(r, a) : void 0; } }
|
|
4865
|
+
function _arrayLikeToArray$10(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; }
|
|
4866
4866
|
var secondaryBtnClass$1 = "px-3 py-2 text-sm font-medium rounded bg-gray-700 hover:bg-gray-600 disabled:bg-gray-800 disabled:text-gray-500 disabled:cursor-not-allowed text-gray-100";
|
|
4867
4867
|
var primaryBtnClass$1 = "px-3 py-2 text-sm font-medium rounded bg-blue-600 hover:bg-blue-500 disabled:bg-gray-700 disabled:text-gray-500 disabled:cursor-not-allowed text-white";
|
|
4868
4868
|
|
|
@@ -4882,7 +4882,7 @@ function flattenPreflightLines(missing) {
|
|
|
4882
4882
|
var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
|
|
4883
4883
|
serverName = _Object$entries$_i[0],
|
|
4884
4884
|
perms = _Object$entries$_i[1];
|
|
4885
|
-
var _iterator = _createForOfIteratorHelper
|
|
4885
|
+
var _iterator = _createForOfIteratorHelper$10(perms.tools || []),
|
|
4886
4886
|
_step;
|
|
4887
4887
|
try {
|
|
4888
4888
|
var _loop2 = function _loop2() {
|
|
@@ -4911,7 +4911,7 @@ function flattenPreflightLines(missing) {
|
|
|
4911
4911
|
} finally {
|
|
4912
4912
|
_iterator.f();
|
|
4913
4913
|
}
|
|
4914
|
-
var _iterator2 = _createForOfIteratorHelper
|
|
4914
|
+
var _iterator2 = _createForOfIteratorHelper$10(perms.readPaths || []),
|
|
4915
4915
|
_step2;
|
|
4916
4916
|
try {
|
|
4917
4917
|
var _loop3 = function _loop3() {
|
|
@@ -4938,7 +4938,7 @@ function flattenPreflightLines(missing) {
|
|
|
4938
4938
|
} finally {
|
|
4939
4939
|
_iterator2.f();
|
|
4940
4940
|
}
|
|
4941
|
-
var _iterator3 = _createForOfIteratorHelper
|
|
4941
|
+
var _iterator3 = _createForOfIteratorHelper$10(perms.writePaths || []),
|
|
4942
4942
|
_step3;
|
|
4943
4943
|
try {
|
|
4944
4944
|
var _loop4 = function _loop4() {
|
|
@@ -4990,13 +4990,13 @@ var WidgetPreflightReview = function WidgetPreflightReview(_ref) {
|
|
|
4990
4990
|
var _pendingPreflight$wid;
|
|
4991
4991
|
if (!pendingPreflight || !((_pendingPreflight$wid = pendingPreflight.widgets) !== null && _pendingPreflight$wid !== void 0 && _pendingPreflight$wid.length)) return;
|
|
4992
4992
|
var initial = {};
|
|
4993
|
-
var _iterator4 = _createForOfIteratorHelper
|
|
4993
|
+
var _iterator4 = _createForOfIteratorHelper$10(pendingPreflight.widgets),
|
|
4994
4994
|
_step4;
|
|
4995
4995
|
try {
|
|
4996
4996
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
4997
4997
|
var w = _step4.value;
|
|
4998
4998
|
initial[w.widgetId] = {};
|
|
4999
|
-
var _iterator5 = _createForOfIteratorHelper
|
|
4999
|
+
var _iterator5 = _createForOfIteratorHelper$10(flattenPreflightLines(w.missing)),
|
|
5000
5000
|
_step5;
|
|
5001
5001
|
try {
|
|
5002
5002
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
@@ -5033,7 +5033,7 @@ var WidgetPreflightReview = function WidgetPreflightReview(_ref) {
|
|
|
5033
5033
|
// Build the per-widget addition blob from checked lines. Skip
|
|
5034
5034
|
// widgets where the user unchecked everything.
|
|
5035
5035
|
var acceptedByWidgetId = {};
|
|
5036
|
-
var _iterator6 = _createForOfIteratorHelper
|
|
5036
|
+
var _iterator6 = _createForOfIteratorHelper$10(widgets),
|
|
5037
5037
|
_step6;
|
|
5038
5038
|
try {
|
|
5039
5039
|
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
@@ -5041,7 +5041,7 @@ var WidgetPreflightReview = function WidgetPreflightReview(_ref) {
|
|
|
5041
5041
|
var _lines = flattenPreflightLines(w.missing);
|
|
5042
5042
|
var acc = {};
|
|
5043
5043
|
var any = false;
|
|
5044
|
-
var _iterator7 = _createForOfIteratorHelper
|
|
5044
|
+
var _iterator7 = _createForOfIteratorHelper$10(_lines),
|
|
5045
5045
|
_step7;
|
|
5046
5046
|
try {
|
|
5047
5047
|
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
@@ -6257,7 +6257,7 @@ var Layout = function Layout(_ref) {
|
|
|
6257
6257
|
});
|
|
6258
6258
|
};
|
|
6259
6259
|
|
|
6260
|
-
var _excluded$
|
|
6260
|
+
var _excluded$7 = ["id", "children", "direction", "className", "scrollable", "width", "height", "space", "grow", "debug", "onClick", "padding", "prefix", "style"];
|
|
6261
6261
|
var LayoutContainer = function LayoutContainer(_ref) {
|
|
6262
6262
|
var id = _ref.id,
|
|
6263
6263
|
children = _ref.children,
|
|
@@ -6285,7 +6285,7 @@ var LayoutContainer = function LayoutContainer(_ref) {
|
|
|
6285
6285
|
prefix = _ref$prefix === void 0 ? "layout-container" : _ref$prefix,
|
|
6286
6286
|
_ref$style = _ref.style,
|
|
6287
6287
|
style = _ref$style === void 0 ? undefined : _ref$style,
|
|
6288
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6288
|
+
props = _objectWithoutProperties(_ref, _excluded$7);
|
|
6289
6289
|
var containerId = "uuid" in props ? props["uuid"] : DashReact.getUUID(id, prefix);
|
|
6290
6290
|
|
|
6291
6291
|
// get the styles
|
|
@@ -6329,9 +6329,9 @@ var LayoutContainer = function LayoutContainer(_ref) {
|
|
|
6329
6329
|
|
|
6330
6330
|
function ownKeys$1o(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; }
|
|
6331
6331
|
function _objectSpread$1o(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1o(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1o(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6332
|
-
function _createForOfIteratorHelper
|
|
6333
|
-
function _unsupportedIterableToArray
|
|
6334
|
-
function _arrayLikeToArray
|
|
6332
|
+
function _createForOfIteratorHelper$$(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$$(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
6333
|
+
function _unsupportedIterableToArray$$(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$$(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$$(r, a) : void 0; } }
|
|
6334
|
+
function _arrayLikeToArray$$(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
6335
6335
|
/**
|
|
6336
6336
|
* Layout template definitions for the dashboard template picker.
|
|
6337
6337
|
*
|
|
@@ -6605,7 +6605,7 @@ function createLayoutFromTemplate(template) {
|
|
|
6605
6605
|
cols: template.cols,
|
|
6606
6606
|
gap: "gap-2"
|
|
6607
6607
|
};
|
|
6608
|
-
var _iterator = _createForOfIteratorHelper
|
|
6608
|
+
var _iterator = _createForOfIteratorHelper$$(template.cells),
|
|
6609
6609
|
_step;
|
|
6610
6610
|
try {
|
|
6611
6611
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -7627,9 +7627,9 @@ var DashboardInstallOptionsModal = function DashboardInstallOptionsModal(_ref) {
|
|
|
7627
7627
|
});
|
|
7628
7628
|
};
|
|
7629
7629
|
|
|
7630
|
-
function _createForOfIteratorHelper$
|
|
7631
|
-
function _unsupportedIterableToArray$
|
|
7632
|
-
function _arrayLikeToArray$
|
|
7630
|
+
function _createForOfIteratorHelper$_(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$_(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
7631
|
+
function _unsupportedIterableToArray$_(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$_(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$_(r, a) : void 0; } }
|
|
7632
|
+
function _arrayLikeToArray$_(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
7633
7633
|
function ownKeys$1n(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; }
|
|
7634
7634
|
function _objectSpread$1n(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1n(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1n(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7635
7635
|
var RegistryDashboardDetail = function RegistryDashboardDetail(_ref) {
|
|
@@ -7998,7 +7998,7 @@ var RegistryDashboardDetail = function RegistryDashboardDetail(_ref) {
|
|
|
7998
7998
|
toInstall = 0,
|
|
7999
7999
|
unavailable = 0,
|
|
8000
8000
|
hasUnavailableRequired = false;
|
|
8001
|
-
var _iterator = _createForOfIteratorHelper$
|
|
8001
|
+
var _iterator = _createForOfIteratorHelper$_(widgetDeps),
|
|
8002
8002
|
_step;
|
|
8003
8003
|
try {
|
|
8004
8004
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -9701,9 +9701,9 @@ function cleanIpcError(message) {
|
|
|
9701
9701
|
return match ? match[1] : message;
|
|
9702
9702
|
}
|
|
9703
9703
|
|
|
9704
|
-
function _createForOfIteratorHelper$
|
|
9705
|
-
function _unsupportedIterableToArray$
|
|
9706
|
-
function _arrayLikeToArray$
|
|
9704
|
+
function _createForOfIteratorHelper$Z(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$Z(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
9705
|
+
function _unsupportedIterableToArray$Z(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$Z(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$Z(r, a) : void 0; } }
|
|
9706
|
+
function _arrayLikeToArray$Z(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
9707
9707
|
|
|
9708
9708
|
/**
|
|
9709
9709
|
* useRegistrySearch — shared hook for browsing and installing registry packages.
|
|
@@ -9817,13 +9817,13 @@ var useRegistrySearch = function useRegistrySearch() {
|
|
|
9817
9817
|
return c.toLowerCase();
|
|
9818
9818
|
}));
|
|
9819
9819
|
widgets = [];
|
|
9820
|
-
_iterator = _createForOfIteratorHelper$
|
|
9820
|
+
_iterator = _createForOfIteratorHelper$Z(pkgs);
|
|
9821
9821
|
try {
|
|
9822
9822
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
9823
9823
|
pkg = _step.value;
|
|
9824
9824
|
// Compute missing APIs for the entire package
|
|
9825
9825
|
allApiProviders = [];
|
|
9826
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
9826
|
+
_iterator2 = _createForOfIteratorHelper$Z(pkg.providers || []);
|
|
9827
9827
|
try {
|
|
9828
9828
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
9829
9829
|
p = _step2.value;
|
|
@@ -9836,11 +9836,11 @@ var useRegistrySearch = function useRegistrySearch() {
|
|
|
9836
9836
|
} finally {
|
|
9837
9837
|
_iterator2.f();
|
|
9838
9838
|
}
|
|
9839
|
-
_iterator3 = _createForOfIteratorHelper$
|
|
9839
|
+
_iterator3 = _createForOfIteratorHelper$Z(pkg.widgets || []);
|
|
9840
9840
|
try {
|
|
9841
9841
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
9842
9842
|
w = _step3.value;
|
|
9843
|
-
_iterator5 = _createForOfIteratorHelper$
|
|
9843
|
+
_iterator5 = _createForOfIteratorHelper$Z(w.providers || []);
|
|
9844
9844
|
try {
|
|
9845
9845
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
9846
9846
|
_p = _step5.value;
|
|
@@ -9862,7 +9862,7 @@ var useRegistrySearch = function useRegistrySearch() {
|
|
|
9862
9862
|
missingApis = _toConsumableArray(new Set(allApiProviders)).filter(function (api) {
|
|
9863
9863
|
return !capSet.has(api.toLowerCase());
|
|
9864
9864
|
});
|
|
9865
|
-
_iterator4 = _createForOfIteratorHelper$
|
|
9865
|
+
_iterator4 = _createForOfIteratorHelper$Z(pkg.widgets || []);
|
|
9866
9866
|
try {
|
|
9867
9867
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
9868
9868
|
widget = _step4.value;
|
|
@@ -10649,9 +10649,9 @@ function WizardThemePreview(_ref) {
|
|
|
10649
10649
|
});
|
|
10650
10650
|
}
|
|
10651
10651
|
|
|
10652
|
-
function _createForOfIteratorHelper$
|
|
10653
|
-
function _unsupportedIterableToArray$
|
|
10654
|
-
function _arrayLikeToArray$
|
|
10652
|
+
function _createForOfIteratorHelper$Y(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$Y(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
10653
|
+
function _unsupportedIterableToArray$Y(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$Y(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$Y(r, a) : void 0; } }
|
|
10654
|
+
function _arrayLikeToArray$Y(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
10655
10655
|
var WizardCustomizeStep = function WizardCustomizeStep(_ref) {
|
|
10656
10656
|
var _state$selectedDashbo, _state$selectedDashbo2, _state$layout;
|
|
10657
10657
|
var state = _ref.state,
|
|
@@ -10870,7 +10870,7 @@ var WizardCustomizeStep = function WizardCustomizeStep(_ref) {
|
|
|
10870
10870
|
installedNames = new Set(installedList.map(function (w) {
|
|
10871
10871
|
return w.name;
|
|
10872
10872
|
}));
|
|
10873
|
-
_iterator = _createForOfIteratorHelper$
|
|
10873
|
+
_iterator = _createForOfIteratorHelper$Y(state.selectedWidgets);
|
|
10874
10874
|
_context2.prev = 12;
|
|
10875
10875
|
_iterator.s();
|
|
10876
10876
|
case 13:
|
|
@@ -12557,10 +12557,10 @@ function mergeDownOp(grid, row, col) {
|
|
|
12557
12557
|
return newGrid;
|
|
12558
12558
|
}
|
|
12559
12559
|
|
|
12560
|
-
var _excluded$
|
|
12561
|
-
function _createForOfIteratorHelper$
|
|
12562
|
-
function _unsupportedIterableToArray$
|
|
12563
|
-
function _arrayLikeToArray$
|
|
12560
|
+
var _excluded$6 = ["rows", "cols"];
|
|
12561
|
+
function _createForOfIteratorHelper$X(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$X(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; } } }; }
|
|
12562
|
+
function _unsupportedIterableToArray$X(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$X(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$X(r, a) : void 0; } }
|
|
12563
|
+
function _arrayLikeToArray$X(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; }
|
|
12564
12564
|
function ownKeys$1k(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; }
|
|
12565
12565
|
function _objectSpread$1k(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1k(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1k(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12566
12566
|
var defaultGrid = {
|
|
@@ -12682,7 +12682,7 @@ function GridEditor(_ref) {
|
|
|
12682
12682
|
function sortObjectByKeys(obj) {
|
|
12683
12683
|
var sortedKeys = Object.keys(obj).sort();
|
|
12684
12684
|
var sortedObj = {};
|
|
12685
|
-
var _iterator = _createForOfIteratorHelper$
|
|
12685
|
+
var _iterator = _createForOfIteratorHelper$X(sortedKeys),
|
|
12686
12686
|
_step;
|
|
12687
12687
|
try {
|
|
12688
12688
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -12699,7 +12699,7 @@ function GridEditor(_ref) {
|
|
|
12699
12699
|
function resequenceGridKeys(grid) {
|
|
12700
12700
|
var rows = grid.rows,
|
|
12701
12701
|
cols = grid.cols,
|
|
12702
|
-
cells = _objectWithoutProperties(grid, _excluded$
|
|
12702
|
+
cells = _objectWithoutProperties(grid, _excluded$6);
|
|
12703
12703
|
var newGrid = {
|
|
12704
12704
|
rows: rows,
|
|
12705
12705
|
cols: cols
|
|
@@ -13155,9 +13155,9 @@ var PanelEditItemNotifications = function PanelEditItemNotifications(_ref) {
|
|
|
13155
13155
|
});
|
|
13156
13156
|
};
|
|
13157
13157
|
|
|
13158
|
-
function _createForOfIteratorHelper$
|
|
13159
|
-
function _unsupportedIterableToArray$
|
|
13160
|
-
function _arrayLikeToArray$
|
|
13158
|
+
function _createForOfIteratorHelper$W(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$W(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; } } }; }
|
|
13159
|
+
function _unsupportedIterableToArray$W(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$W(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$W(r, a) : void 0; } }
|
|
13160
|
+
function _arrayLikeToArray$W(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; }
|
|
13161
13161
|
function ownKeys$1i(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; }
|
|
13162
13162
|
function _objectSpread$1i(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1i(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1i(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13163
13163
|
var DAYS = [{
|
|
@@ -13486,7 +13486,7 @@ var PanelEditItemSchedule = function PanelEditItemSchedule(_ref2) {
|
|
|
13486
13486
|
setIsLoading(true);
|
|
13487
13487
|
window.mainApi.scheduler.getTasks(widgetUuid).then(function (tasks) {
|
|
13488
13488
|
var stateMap = {};
|
|
13489
|
-
var _iterator = _createForOfIteratorHelper$
|
|
13489
|
+
var _iterator = _createForOfIteratorHelper$W(tasks || []),
|
|
13490
13490
|
_step;
|
|
13491
13491
|
try {
|
|
13492
13492
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -13745,9 +13745,9 @@ function isUserWidget(item) {
|
|
|
13745
13745
|
return true;
|
|
13746
13746
|
}
|
|
13747
13747
|
|
|
13748
|
-
function _createForOfIteratorHelper$
|
|
13749
|
-
function _unsupportedIterableToArray$
|
|
13750
|
-
function _arrayLikeToArray$
|
|
13748
|
+
function _createForOfIteratorHelper$V(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$V(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; } } }; }
|
|
13749
|
+
function _unsupportedIterableToArray$V(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$V(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$V(r, a) : void 0; } }
|
|
13750
|
+
function _arrayLikeToArray$V(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; }
|
|
13751
13751
|
|
|
13752
13752
|
/**
|
|
13753
13753
|
* Resolve which provider name a given widget instance would bind to for
|
|
@@ -13779,7 +13779,7 @@ function resolveProviderName(_ref) {
|
|
|
13779
13779
|
// array. Support both because different callers shape it either way.
|
|
13780
13780
|
if (appProviders) {
|
|
13781
13781
|
if (Array.isArray(appProviders)) {
|
|
13782
|
-
var _iterator = _createForOfIteratorHelper$
|
|
13782
|
+
var _iterator = _createForOfIteratorHelper$V(appProviders),
|
|
13783
13783
|
_step;
|
|
13784
13784
|
try {
|
|
13785
13785
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -13839,7 +13839,7 @@ function forEachWidget(workspace, visit) {
|
|
|
13839
13839
|
};
|
|
13840
13840
|
var _walk = function walk(items) {
|
|
13841
13841
|
if (!Array.isArray(items)) return;
|
|
13842
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
13842
|
+
var _iterator2 = _createForOfIteratorHelper$V(items),
|
|
13843
13843
|
_step2;
|
|
13844
13844
|
try {
|
|
13845
13845
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -13880,7 +13880,7 @@ function forEachWidget(workspace, visit) {
|
|
|
13880
13880
|
// widgets that only live there (e.g. AI-place writes that bypass
|
|
13881
13881
|
// the page handler).
|
|
13882
13882
|
if (Array.isArray(workspace.pages)) {
|
|
13883
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
13883
|
+
var _iterator3 = _createForOfIteratorHelper$V(workspace.pages),
|
|
13884
13884
|
_step3;
|
|
13885
13885
|
try {
|
|
13886
13886
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -13931,7 +13931,7 @@ function getUnresolvedProviders(_ref2) {
|
|
|
13931
13931
|
// the same `type` listed twice (a Claude code-gen quirk), which
|
|
13932
13932
|
// would otherwise produce duplicate rows in the Providers tab.
|
|
13933
13933
|
var seenTypes = new Set();
|
|
13934
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
13934
|
+
var _iterator4 = _createForOfIteratorHelper$V(requirements),
|
|
13935
13935
|
_step4;
|
|
13936
13936
|
try {
|
|
13937
13937
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
@@ -13974,7 +13974,7 @@ function getUnresolvedProviders(_ref2) {
|
|
|
13974
13974
|
*/
|
|
13975
13975
|
function groupByProviderType(unresolved) {
|
|
13976
13976
|
var byType = new Map();
|
|
13977
|
-
var _iterator5 = _createForOfIteratorHelper$
|
|
13977
|
+
var _iterator5 = _createForOfIteratorHelper$V(unresolved || []),
|
|
13978
13978
|
_step5;
|
|
13979
13979
|
try {
|
|
13980
13980
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
@@ -14016,7 +14016,7 @@ function getAllProviderBindings(_ref3) {
|
|
|
14016
14016
|
// quirk) which would otherwise duplicate the per-widget row in
|
|
14017
14017
|
// the Providers tab.
|
|
14018
14018
|
var seenTypes = new Set();
|
|
14019
|
-
var _iterator6 = _createForOfIteratorHelper$
|
|
14019
|
+
var _iterator6 = _createForOfIteratorHelper$V(requirements),
|
|
14020
14020
|
_step6;
|
|
14021
14021
|
try {
|
|
14022
14022
|
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
@@ -14058,9 +14058,9 @@ function getAllProviderBindings(_ref3) {
|
|
|
14058
14058
|
|
|
14059
14059
|
function ownKeys$1g(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; }
|
|
14060
14060
|
function _objectSpread$1g(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1g(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1g(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14061
|
-
function _createForOfIteratorHelper$
|
|
14062
|
-
function _unsupportedIterableToArray$
|
|
14063
|
-
function _arrayLikeToArray$
|
|
14061
|
+
function _createForOfIteratorHelper$U(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$U(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; } } }; }
|
|
14062
|
+
function _unsupportedIterableToArray$U(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$U(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$U(r, a) : void 0; } }
|
|
14063
|
+
function _arrayLikeToArray$U(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; }
|
|
14064
14064
|
var EVENT_STRING_RE = /^([^[]+)\[([^\]]+)\]\.(.+)$/;
|
|
14065
14065
|
|
|
14066
14066
|
/** Parse "Component[itemId].event" → { component, itemId, event }. */
|
|
@@ -14237,7 +14237,7 @@ function getCurrentWiring(workspace) {
|
|
|
14237
14237
|
// Live format is array; defensive guard for legacy object
|
|
14238
14238
|
// form (a single source widget keyed under the handler).
|
|
14239
14239
|
var events = Array.isArray(eventList) ? eventList : typeof eventList === "string" ? [eventList] : [];
|
|
14240
|
-
var _iterator = _createForOfIteratorHelper$
|
|
14240
|
+
var _iterator = _createForOfIteratorHelper$U(events),
|
|
14241
14241
|
_step;
|
|
14242
14242
|
try {
|
|
14243
14243
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -14301,7 +14301,7 @@ function getOrphanedListeners(workspace, getWidgetConfig) {
|
|
|
14301
14301
|
if (!byItemId.has(id)) byItemId.set(id, meta);
|
|
14302
14302
|
});
|
|
14303
14303
|
var orphans = [];
|
|
14304
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
14304
|
+
var _iterator2 = _createForOfIteratorHelper$U(wiring),
|
|
14305
14305
|
_step2;
|
|
14306
14306
|
try {
|
|
14307
14307
|
var _loop = function _loop() {
|
|
@@ -14388,7 +14388,7 @@ function pruneDeadListenerReferences(workspace) {
|
|
|
14388
14388
|
var liveKeys = new Set();
|
|
14389
14389
|
var _walkForLive = function walkForLive(items) {
|
|
14390
14390
|
if (!Array.isArray(items)) return;
|
|
14391
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
14391
|
+
var _iterator3 = _createForOfIteratorHelper$U(items),
|
|
14392
14392
|
_step3;
|
|
14393
14393
|
try {
|
|
14394
14394
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -14409,7 +14409,7 @@ function pruneDeadListenerReferences(workspace) {
|
|
|
14409
14409
|
};
|
|
14410
14410
|
_walkForLive(workspace.layout);
|
|
14411
14411
|
if (Array.isArray(workspace.pages)) {
|
|
14412
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
14412
|
+
var _iterator4 = _createForOfIteratorHelper$U(workspace.pages),
|
|
14413
14413
|
_step4;
|
|
14414
14414
|
try {
|
|
14415
14415
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
@@ -14426,7 +14426,7 @@ function pruneDeadListenerReferences(workspace) {
|
|
|
14426
14426
|
var removed = 0;
|
|
14427
14427
|
var _pruneListeners = function pruneListeners(items) {
|
|
14428
14428
|
if (!Array.isArray(items)) return;
|
|
14429
|
-
var _iterator5 = _createForOfIteratorHelper$
|
|
14429
|
+
var _iterator5 = _createForOfIteratorHelper$U(items),
|
|
14430
14430
|
_step5;
|
|
14431
14431
|
try {
|
|
14432
14432
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
@@ -14438,7 +14438,7 @@ function pruneDeadListenerReferences(workspace) {
|
|
|
14438
14438
|
var events = item.listeners[handler];
|
|
14439
14439
|
if (!Array.isArray(events)) continue;
|
|
14440
14440
|
var kept = [];
|
|
14441
|
-
var _iterator6 = _createForOfIteratorHelper$
|
|
14441
|
+
var _iterator6 = _createForOfIteratorHelper$U(events),
|
|
14442
14442
|
_step6;
|
|
14443
14443
|
try {
|
|
14444
14444
|
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
@@ -14475,7 +14475,7 @@ function pruneDeadListenerReferences(workspace) {
|
|
|
14475
14475
|
};
|
|
14476
14476
|
_pruneListeners(workspace.layout);
|
|
14477
14477
|
if (Array.isArray(workspace.pages)) {
|
|
14478
|
-
var _iterator7 = _createForOfIteratorHelper$
|
|
14478
|
+
var _iterator7 = _createForOfIteratorHelper$U(workspace.pages),
|
|
14479
14479
|
_step7;
|
|
14480
14480
|
try {
|
|
14481
14481
|
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
@@ -14519,7 +14519,7 @@ function applyWiringChanges(workspace, _ref) {
|
|
|
14519
14519
|
});
|
|
14520
14520
|
return byReceiver.get(id);
|
|
14521
14521
|
};
|
|
14522
|
-
var _iterator8 = _createForOfIteratorHelper$
|
|
14522
|
+
var _iterator8 = _createForOfIteratorHelper$U(adds),
|
|
14523
14523
|
_step8;
|
|
14524
14524
|
try {
|
|
14525
14525
|
for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
|
|
@@ -14532,7 +14532,7 @@ function applyWiringChanges(workspace, _ref) {
|
|
|
14532
14532
|
} finally {
|
|
14533
14533
|
_iterator8.f();
|
|
14534
14534
|
}
|
|
14535
|
-
var _iterator9 = _createForOfIteratorHelper$
|
|
14535
|
+
var _iterator9 = _createForOfIteratorHelper$U(removes),
|
|
14536
14536
|
_step9;
|
|
14537
14537
|
try {
|
|
14538
14538
|
for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
|
|
@@ -14606,7 +14606,7 @@ function applyToItem(listeners, _ref2) {
|
|
|
14606
14606
|
}
|
|
14607
14607
|
|
|
14608
14608
|
// Removes first so a re-add (rare) lands.
|
|
14609
|
-
var _iterator0 = _createForOfIteratorHelper$
|
|
14609
|
+
var _iterator0 = _createForOfIteratorHelper$U(removes),
|
|
14610
14610
|
_step0;
|
|
14611
14611
|
try {
|
|
14612
14612
|
var _loop2 = function _loop2() {
|
|
@@ -14635,7 +14635,7 @@ function applyToItem(listeners, _ref2) {
|
|
|
14635
14635
|
} finally {
|
|
14636
14636
|
_iterator0.f();
|
|
14637
14637
|
}
|
|
14638
|
-
var _iterator1 = _createForOfIteratorHelper$
|
|
14638
|
+
var _iterator1 = _createForOfIteratorHelper$U(adds),
|
|
14639
14639
|
_step1;
|
|
14640
14640
|
try {
|
|
14641
14641
|
for (_iterator1.s(); !(_step1 = _iterator1.n()).done;) {
|
|
@@ -14692,9 +14692,9 @@ var SectionLayout = function SectionLayout(_ref) {
|
|
|
14692
14692
|
});
|
|
14693
14693
|
};
|
|
14694
14694
|
|
|
14695
|
-
function _createForOfIteratorHelper$
|
|
14696
|
-
function _unsupportedIterableToArray$
|
|
14697
|
-
function _arrayLikeToArray$
|
|
14695
|
+
function _createForOfIteratorHelper$T(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$T(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
14696
|
+
function _unsupportedIterableToArray$T(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$T(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$T(r, a) : void 0; } }
|
|
14697
|
+
function _arrayLikeToArray$T(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
14698
14698
|
|
|
14699
14699
|
/**
|
|
14700
14700
|
* @param {Array<object>} workspaces dashboards (each with id, name, layout/pages)
|
|
@@ -14706,7 +14706,7 @@ function _arrayLikeToArray$S(r, a) { (null == a || a > r.length) && (a = r.lengt
|
|
|
14706
14706
|
function buildWidgetEventCatalog(workspaces, getWidgetConfig) {
|
|
14707
14707
|
if (!Array.isArray(workspaces)) return [];
|
|
14708
14708
|
var out = [];
|
|
14709
|
-
var _iterator = _createForOfIteratorHelper$
|
|
14709
|
+
var _iterator = _createForOfIteratorHelper$T(workspaces),
|
|
14710
14710
|
_step;
|
|
14711
14711
|
try {
|
|
14712
14712
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -14779,12 +14779,12 @@ function describeSubscription(sub, catalog) {
|
|
|
14779
14779
|
// Bot subscriptions resolve against the bot catalog; `kind` lets the form
|
|
14780
14780
|
// say "bot missing" instead of "widget missing".
|
|
14781
14781
|
if (sub && sub.source && sub.source.kind === "bot") {
|
|
14782
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
14782
|
+
var _iterator2 = _createForOfIteratorHelper$T(botCatalog || []),
|
|
14783
14783
|
_step2;
|
|
14784
14784
|
try {
|
|
14785
14785
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
14786
14786
|
var b = _step2.value;
|
|
14787
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
14787
|
+
var _iterator3 = _createForOfIteratorHelper$T(b.events),
|
|
14788
14788
|
_step3;
|
|
14789
14789
|
try {
|
|
14790
14790
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -14815,17 +14815,17 @@ function describeSubscription(sub, catalog) {
|
|
|
14815
14815
|
kind: "bot"
|
|
14816
14816
|
};
|
|
14817
14817
|
}
|
|
14818
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
14818
|
+
var _iterator4 = _createForOfIteratorHelper$T(catalog || []),
|
|
14819
14819
|
_step4;
|
|
14820
14820
|
try {
|
|
14821
14821
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
14822
14822
|
var ws = _step4.value;
|
|
14823
|
-
var _iterator5 = _createForOfIteratorHelper$
|
|
14823
|
+
var _iterator5 = _createForOfIteratorHelper$T(ws.widgets),
|
|
14824
14824
|
_step5;
|
|
14825
14825
|
try {
|
|
14826
14826
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
14827
14827
|
var w = _step5.value;
|
|
14828
|
-
var _iterator6 = _createForOfIteratorHelper$
|
|
14828
|
+
var _iterator6 = _createForOfIteratorHelper$T(w.events),
|
|
14829
14829
|
_step6;
|
|
14830
14830
|
try {
|
|
14831
14831
|
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
@@ -14885,7 +14885,7 @@ function buildBotEventCatalog(bots, toolSources) {
|
|
|
14885
14885
|
if (!Array.isArray(bots)) return [];
|
|
14886
14886
|
var sources = Array.isArray(toolSources) ? toolSources : [];
|
|
14887
14887
|
var out = [];
|
|
14888
|
-
var _iterator7 = _createForOfIteratorHelper$
|
|
14888
|
+
var _iterator7 = _createForOfIteratorHelper$T(bots),
|
|
14889
14889
|
_step7;
|
|
14890
14890
|
try {
|
|
14891
14891
|
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
@@ -14901,7 +14901,7 @@ function buildBotEventCatalog(bots, toolSources) {
|
|
|
14901
14901
|
event: "failed",
|
|
14902
14902
|
label: "Failed"
|
|
14903
14903
|
}];
|
|
14904
|
-
var _iterator8 = _createForOfIteratorHelper$
|
|
14904
|
+
var _iterator8 = _createForOfIteratorHelper$T(bot.publishes || []),
|
|
14905
14905
|
_step8;
|
|
14906
14906
|
try {
|
|
14907
14907
|
for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
|
|
@@ -14917,7 +14917,7 @@ function buildBotEventCatalog(bots, toolSources) {
|
|
|
14917
14917
|
} finally {
|
|
14918
14918
|
_iterator8.f();
|
|
14919
14919
|
}
|
|
14920
|
-
var _iterator9 = _createForOfIteratorHelper$
|
|
14920
|
+
var _iterator9 = _createForOfIteratorHelper$T(bot.mcpServers || []),
|
|
14921
14921
|
_step9;
|
|
14922
14922
|
try {
|
|
14923
14923
|
var _loop = function _loop() {
|
|
@@ -14930,7 +14930,7 @@ function buildBotEventCatalog(bots, toolSources) {
|
|
|
14930
14930
|
var tools = Array.isArray(sel) ? src.tools.filter(function (t) {
|
|
14931
14931
|
return sel.includes(t);
|
|
14932
14932
|
}) : src.tools;
|
|
14933
|
-
var _iterator0 = _createForOfIteratorHelper$
|
|
14933
|
+
var _iterator0 = _createForOfIteratorHelper$T(tools),
|
|
14934
14934
|
_step0;
|
|
14935
14935
|
try {
|
|
14936
14936
|
for (_iterator0.s(); !(_step0 = _iterator0.n()).done;) {
|
|
@@ -15034,21 +15034,21 @@ function buildTriggerOptions(_ref) {
|
|
|
15034
15034
|
var wsList = (Array.isArray(workspaces) ? workspaces : []).filter(function (ws) {
|
|
15035
15035
|
return ws && (teamKey === null || String(ws.id) === teamKey);
|
|
15036
15036
|
});
|
|
15037
|
-
var _iterator1 = _createForOfIteratorHelper$
|
|
15037
|
+
var _iterator1 = _createForOfIteratorHelper$T(buildWidgetEventCatalog(wsList, getWidgetConfig)),
|
|
15038
15038
|
_step1;
|
|
15039
15039
|
try {
|
|
15040
15040
|
for (_iterator1.s(); !(_step1 = _iterator1.n()).done;) {
|
|
15041
15041
|
var ws = _step1.value;
|
|
15042
15042
|
var group = "Widgets on ".concat(ws.name);
|
|
15043
15043
|
var seen = {};
|
|
15044
|
-
var _iterator11 = _createForOfIteratorHelper$
|
|
15044
|
+
var _iterator11 = _createForOfIteratorHelper$T(ws.widgets),
|
|
15045
15045
|
_step11;
|
|
15046
15046
|
try {
|
|
15047
15047
|
for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {
|
|
15048
15048
|
var widget = _step11.value;
|
|
15049
15049
|
seen[widget.label] = (seen[widget.label] || 0) + 1;
|
|
15050
15050
|
var name = seen[widget.label] > 1 ? "".concat(widget.label, " (").concat(seen[widget.label], ")") : widget.label;
|
|
15051
|
-
var _iterator12 = _createForOfIteratorHelper$
|
|
15051
|
+
var _iterator12 = _createForOfIteratorHelper$T(widget.events),
|
|
15052
15052
|
_step12;
|
|
15053
15053
|
try {
|
|
15054
15054
|
for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) {
|
|
@@ -15090,13 +15090,13 @@ function buildTriggerOptions(_ref) {
|
|
|
15090
15090
|
var wsOf = new Map(candidates.map(function (b) {
|
|
15091
15091
|
return [b.id, b.workspaceId];
|
|
15092
15092
|
}));
|
|
15093
|
-
var _iterator10 = _createForOfIteratorHelper$
|
|
15093
|
+
var _iterator10 = _createForOfIteratorHelper$T(buildBotEventCatalog(candidates, toolSources, botId)),
|
|
15094
15094
|
_step10;
|
|
15095
15095
|
try {
|
|
15096
15096
|
for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
|
|
15097
15097
|
var entry = _step10.value;
|
|
15098
15098
|
var where = teamKey === null && wsOf.get(entry.botId) !== null && wsOf.get(entry.botId) !== undefined ? " (".concat(nameOfWs.get(String(wsOf.get(entry.botId))) || "another dashboard", ")") : "";
|
|
15099
|
-
var _iterator13 = _createForOfIteratorHelper$
|
|
15099
|
+
var _iterator13 = _createForOfIteratorHelper$T(entry.events),
|
|
15100
15100
|
_step13;
|
|
15101
15101
|
try {
|
|
15102
15102
|
for (_iterator13.s(); !(_step13 = _iterator13.n()).done;) {
|
|
@@ -15144,7 +15144,7 @@ function groupBotEvents(events) {
|
|
|
15144
15144
|
title: "Tools it uses",
|
|
15145
15145
|
events: []
|
|
15146
15146
|
}];
|
|
15147
|
-
var _iterator14 = _createForOfIteratorHelper$
|
|
15147
|
+
var _iterator14 = _createForOfIteratorHelper$T(Array.isArray(events) ? events : []),
|
|
15148
15148
|
_step14;
|
|
15149
15149
|
try {
|
|
15150
15150
|
var _loop2 = function _loop2() {
|
|
@@ -18288,9 +18288,9 @@ function mcpJsonToFormState(jsonString, nextRowId) {
|
|
|
18288
18288
|
return result;
|
|
18289
18289
|
}
|
|
18290
18290
|
|
|
18291
|
-
function _createForOfIteratorHelper$
|
|
18292
|
-
function _unsupportedIterableToArray$
|
|
18293
|
-
function _arrayLikeToArray$
|
|
18291
|
+
function _createForOfIteratorHelper$S(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$S(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; } } }; }
|
|
18292
|
+
function _unsupportedIterableToArray$S(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$S(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$S(r, a) : void 0; } }
|
|
18293
|
+
function _arrayLikeToArray$S(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; }
|
|
18294
18294
|
function ownKeys$1c(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; }
|
|
18295
18295
|
function _objectSpread$1c(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1c(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1c(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18296
18296
|
var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
@@ -18575,11 +18575,11 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
18575
18575
|
|
|
18576
18576
|
// Flatten all widgets from all packages for the widget list
|
|
18577
18577
|
flatWidgets = [];
|
|
18578
|
-
_iterator = _createForOfIteratorHelper$
|
|
18578
|
+
_iterator = _createForOfIteratorHelper$S(result.packages || []);
|
|
18579
18579
|
try {
|
|
18580
18580
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
18581
18581
|
pkg = _step.value;
|
|
18582
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
18582
|
+
_iterator2 = _createForOfIteratorHelper$S(pkg.widgets || []);
|
|
18583
18583
|
try {
|
|
18584
18584
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
18585
18585
|
widget = _step2.value;
|
|
@@ -20506,9 +20506,9 @@ var useWidgetSchedulerStatus = function useWidgetSchedulerStatus(widgetId) {
|
|
|
20506
20506
|
};
|
|
20507
20507
|
};
|
|
20508
20508
|
|
|
20509
|
-
function _createForOfIteratorHelper$
|
|
20510
|
-
function _unsupportedIterableToArray$
|
|
20511
|
-
function _arrayLikeToArray$
|
|
20509
|
+
function _createForOfIteratorHelper$R(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$R(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; } } }; }
|
|
20510
|
+
function _unsupportedIterableToArray$R(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$R(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$R(r, a) : void 0; } }
|
|
20511
|
+
function _arrayLikeToArray$R(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; }
|
|
20512
20512
|
function formatCountdown(ms) {
|
|
20513
20513
|
if (ms == null || ms < 0) return "--";
|
|
20514
20514
|
if (ms < 1000) return "< 1s";
|
|
@@ -20637,7 +20637,7 @@ var WidgetCardStatusBar = function WidgetCardStatusBar(_ref) {
|
|
|
20637
20637
|
|
|
20638
20638
|
// Find soonest countdown among enabled tasks
|
|
20639
20639
|
var soonestMs = null;
|
|
20640
|
-
var _iterator = _createForOfIteratorHelper$
|
|
20640
|
+
var _iterator = _createForOfIteratorHelper$R(enabledTasks),
|
|
20641
20641
|
_step;
|
|
20642
20642
|
try {
|
|
20643
20643
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -20931,9 +20931,9 @@ WidgetCard.Body = WidgetCardBody;
|
|
|
20931
20931
|
WidgetCard.Footer = WidgetCardFooter;
|
|
20932
20932
|
WidgetCard.StatusBar = WidgetCardStatusBar;
|
|
20933
20933
|
|
|
20934
|
-
function _createForOfIteratorHelper$
|
|
20935
|
-
function _unsupportedIterableToArray$
|
|
20936
|
-
function _arrayLikeToArray$
|
|
20934
|
+
function _createForOfIteratorHelper$Q(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$Q(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; } } }; }
|
|
20935
|
+
function _unsupportedIterableToArray$Q(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$Q(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$Q(r, a) : void 0; } }
|
|
20936
|
+
function _arrayLikeToArray$Q(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; }
|
|
20937
20937
|
|
|
20938
20938
|
/**
|
|
20939
20939
|
* Select-to-edit in the dashboard editor (create-entry phase 1c, CRE-006).
|
|
@@ -20970,7 +20970,7 @@ function widgetsOf(layout) {
|
|
|
20970
20970
|
|
|
20971
20971
|
/** The grid and cell holding widget `itemId`, or null. */
|
|
20972
20972
|
function findWidgetCell(layout, itemId) {
|
|
20973
|
-
var _iterator = _createForOfIteratorHelper$
|
|
20973
|
+
var _iterator = _createForOfIteratorHelper$Q(Array.isArray(layout) ? layout : []),
|
|
20974
20974
|
_step;
|
|
20975
20975
|
try {
|
|
20976
20976
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -21001,7 +21001,7 @@ function botsFeeding(widget) {
|
|
|
21001
21001
|
var out = new Set();
|
|
21002
21002
|
for (var _i2 = 0, _Object$values = Object.values(widget && widget.listeners || {}); _i2 < _Object$values.length; _i2++) {
|
|
21003
21003
|
var events = _Object$values[_i2];
|
|
21004
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
21004
|
+
var _iterator2 = _createForOfIteratorHelper$Q(Array.isArray(events) ? events : []),
|
|
21005
21005
|
_step2;
|
|
21006
21006
|
try {
|
|
21007
21007
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -21046,7 +21046,7 @@ function relatedTo(selection) {
|
|
|
21046
21046
|
return w.uuid === selection.uuid;
|
|
21047
21047
|
});
|
|
21048
21048
|
if (!widget) return related;
|
|
21049
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
21049
|
+
var _iterator3 = _createForOfIteratorHelper$Q(botsFeeding(widget)),
|
|
21050
21050
|
_step3;
|
|
21051
21051
|
try {
|
|
21052
21052
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -21058,7 +21058,7 @@ function relatedTo(selection) {
|
|
|
21058
21058
|
} finally {
|
|
21059
21059
|
_iterator3.f();
|
|
21060
21060
|
}
|
|
21061
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
21061
|
+
var _iterator4 = _createForOfIteratorHelper$Q(bots),
|
|
21062
21062
|
_step4;
|
|
21063
21063
|
try {
|
|
21064
21064
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
@@ -21074,7 +21074,7 @@ function relatedTo(selection) {
|
|
|
21074
21074
|
var _bot = bots.find(function (b) {
|
|
21075
21075
|
return b.id === selection.botId;
|
|
21076
21076
|
});
|
|
21077
|
-
var _iterator5 = _createForOfIteratorHelper$
|
|
21077
|
+
var _iterator5 = _createForOfIteratorHelper$Q(widgets),
|
|
21078
21078
|
_step5;
|
|
21079
21079
|
try {
|
|
21080
21080
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
@@ -22532,7 +22532,7 @@ var WidgetProviderWrapper = function WidgetProviderWrapper(_ref2) {
|
|
|
22532
22532
|
return children;
|
|
22533
22533
|
};
|
|
22534
22534
|
|
|
22535
|
-
var _excluded$
|
|
22535
|
+
var _excluded$5 = ["uuid", "children", "version", "direction", "scrollable", "className", "width", "height", "space", "grow", "publishEvent", "api", "requiredProviders", "selectedProviders", "onProviderSelect"];
|
|
22536
22536
|
function _callSuper$3(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$3() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
22537
22537
|
function _isNativeReflectConstruct$3() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$3 = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
22538
22538
|
var WidgetErrorBoundary$1 = /*#__PURE__*/function (_Component) {
|
|
@@ -22630,7 +22630,7 @@ var Widget = function Widget(_ref) {
|
|
|
22630
22630
|
selectedProviders = _ref$selectedProvider === void 0 ? {} : _ref$selectedProvider,
|
|
22631
22631
|
_ref$onProviderSelect = _ref.onProviderSelect,
|
|
22632
22632
|
onProviderSelect = _ref$onProviderSelect === void 0 ? null : _ref$onProviderSelect;
|
|
22633
|
-
_objectWithoutProperties(_ref, _excluded$
|
|
22633
|
+
_objectWithoutProperties(_ref, _excluded$5);
|
|
22634
22634
|
var uuidString = DashReact.getUUID(uuid);
|
|
22635
22635
|
return /*#__PURE__*/jsxRuntime.jsx(LayoutContainer, {
|
|
22636
22636
|
uuid: uuid,
|
|
@@ -23927,12 +23927,12 @@ var WidgetFactory = {
|
|
|
23927
23927
|
}
|
|
23928
23928
|
};
|
|
23929
23929
|
|
|
23930
|
-
var _excluded$
|
|
23930
|
+
var _excluded$4 = ["title", "description", "icon"];
|
|
23931
23931
|
var ExternalWidget = function ExternalWidget(_ref) {
|
|
23932
23932
|
var title = _ref.title,
|
|
23933
23933
|
description = _ref.description,
|
|
23934
23934
|
icon = _ref.icon;
|
|
23935
|
-
_objectWithoutProperties(_ref, _excluded$
|
|
23935
|
+
_objectWithoutProperties(_ref, _excluded$4);
|
|
23936
23936
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
23937
23937
|
className: "flex flex-col h-full justify-center items-center w-full gap-2 p-4 text-center",
|
|
23938
23938
|
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.FontAwesomeIcon, {
|
|
@@ -24023,9 +24023,9 @@ function GridCellFrame(_ref) {
|
|
|
24023
24023
|
var GRID_CELL_WIDGET_TYPE = "grid-cell-widget";
|
|
24024
24024
|
var SIDEBAR_WIDGET_TYPE = "sidebar-widget";
|
|
24025
24025
|
|
|
24026
|
-
function _createForOfIteratorHelper$
|
|
24027
|
-
function _unsupportedIterableToArray$
|
|
24028
|
-
function _arrayLikeToArray$
|
|
24026
|
+
function _createForOfIteratorHelper$P(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$P(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
24027
|
+
function _unsupportedIterableToArray$P(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$P(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$P(r, a) : void 0; } }
|
|
24028
|
+
function _arrayLikeToArray$P(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
24029
24029
|
function ownKeys$14(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24030
24030
|
function _objectSpread$14(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$14(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$14(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24031
24031
|
|
|
@@ -24239,7 +24239,7 @@ var DroppableEmptyCell = function DroppableEmptyCell(_ref3) {
|
|
|
24239
24239
|
});
|
|
24240
24240
|
};
|
|
24241
24241
|
var LayoutGridContainer = /*#__PURE__*/React.memo(function (_ref4) {
|
|
24242
|
-
var _item$grid3, _item$grid4, _item$grid5;
|
|
24242
|
+
var _editSelection$select, _item$grid3, _item$grid4, _item$grid5;
|
|
24243
24243
|
var item = _ref4.item,
|
|
24244
24244
|
workspace = _ref4.workspace,
|
|
24245
24245
|
_ref4$preview = _ref4.preview,
|
|
@@ -24304,6 +24304,20 @@ var LayoutGridContainer = /*#__PURE__*/React.memo(function (_ref4) {
|
|
|
24304
24304
|
var editSelection = React.useContext(EditSelectionContext);
|
|
24305
24305
|
var workspaceScope = React.useContext(WorkspaceScopeContext);
|
|
24306
24306
|
|
|
24307
|
+
// Phase 1e: a widget being moved without dragging (Move… in the panel).
|
|
24308
|
+
// Another cell of the same grid becomes a target: empty takes it, full
|
|
24309
|
+
// swaps (DashboardModel.moveWidgetToCell swaps).
|
|
24310
|
+
var moving = ((_editSelection$select = editSelection.selection) === null || _editSelection$select === void 0 ? void 0 : _editSelection$select.kind) === "widget" && editSelection.selection.moving && editSelection.selection.gridItemId === item.id && (editSelection.selection.scope || "main") === workspaceScope ? editSelection.selection : null;
|
|
24311
|
+
var moveTarget = function moveTarget(cellNumber) {
|
|
24312
|
+
return moving && moving.cellNumber !== cellNumber && onMoveWidgetToCell ? function () {
|
|
24313
|
+
onMoveWidgetToCell(item.id, moving.cellNumber, cellNumber);
|
|
24314
|
+
editSelection.select(_objectSpread$14(_objectSpread$14({}, moving), {}, {
|
|
24315
|
+
cellNumber: cellNumber,
|
|
24316
|
+
moving: false
|
|
24317
|
+
}));
|
|
24318
|
+
} : null;
|
|
24319
|
+
};
|
|
24320
|
+
|
|
24307
24321
|
// Get providers from AppContext (not DashboardContext, which has a structural
|
|
24308
24322
|
// issue where providers from AppWrapper don't flow through DashboardWrapper)
|
|
24309
24323
|
var appCtx = React.useContext(AppContext);
|
|
@@ -24690,7 +24704,7 @@ var LayoutGridContainer = /*#__PURE__*/React.memo(function (_ref4) {
|
|
|
24690
24704
|
return selectable["delete"](cn);
|
|
24691
24705
|
});
|
|
24692
24706
|
var resolved = new Set();
|
|
24693
|
-
var _iterator = _createForOfIteratorHelper$
|
|
24707
|
+
var _iterator = _createForOfIteratorHelper$P(selectable),
|
|
24694
24708
|
_step;
|
|
24695
24709
|
try {
|
|
24696
24710
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -25176,29 +25190,31 @@ var LayoutGridContainer = /*#__PURE__*/React.memo(function (_ref4) {
|
|
|
25176
25190
|
onContextMenu: function onContextMenu(e) {
|
|
25177
25191
|
return handleCellRightClick(e, cellNumber);
|
|
25178
25192
|
},
|
|
25179
|
-
children: [/*#__PURE__*/jsxRuntime.jsxs("
|
|
25193
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("button", {
|
|
25194
|
+
type: "button",
|
|
25180
25195
|
className: "flex flex-col items-center cursor-pointer hover:bg-gray-800/50 rounded-lg px-4 py-2 transition-colors",
|
|
25181
25196
|
onClick: function onClick() {
|
|
25182
|
-
|
|
25183
|
-
|
|
25184
|
-
|
|
25185
|
-
|
|
25197
|
+
var move = moveTarget(cellNumber);
|
|
25198
|
+
if (move) return move();
|
|
25199
|
+
// In the editor (phase 1d): select the cell; the panel's Add
|
|
25200
|
+
// tab places the next widget picked. Elsewhere: the pop-up.
|
|
25201
|
+
if (editSelection.available) {
|
|
25202
|
+
return editSelection.select({
|
|
25186
25203
|
kind: "cell",
|
|
25187
25204
|
gridItemId: item.id,
|
|
25188
25205
|
cellNumber: cellNumber,
|
|
25189
25206
|
scope: workspaceScope,
|
|
25190
25207
|
label: "Empty cell ".concat(cellNumber)
|
|
25191
|
-
})
|
|
25192
|
-
|
|
25208
|
+
});
|
|
25209
|
+
}
|
|
25210
|
+
handleClickAdd(cellNumber);
|
|
25193
25211
|
},
|
|
25194
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.
|
|
25195
|
-
icon: "plus",
|
|
25196
|
-
|
|
25197
|
-
hoverTextColor: "hover:text-blue-400",
|
|
25198
|
-
backgroundColor: "bg-transparent"
|
|
25212
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.FontAwesomeIcon, {
|
|
25213
|
+
icon: moving ? "arrow-down" : "plus",
|
|
25214
|
+
className: "h-4 w-4 text-gray-600"
|
|
25199
25215
|
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
25200
25216
|
className: "text-xs text-gray-600 mt-1",
|
|
25201
|
-
children: "Add widget"
|
|
25217
|
+
children: moving ? "Move here" : "Add widget"
|
|
25202
25218
|
})]
|
|
25203
25219
|
}), /*#__PURE__*/jsxRuntime.jsxs("button", {
|
|
25204
25220
|
onClick: function onClick() {
|
|
@@ -25221,7 +25237,7 @@ var LayoutGridContainer = /*#__PURE__*/React.memo(function (_ref4) {
|
|
|
25221
25237
|
|
|
25222
25238
|
// Unified edit mode cell renderer — wraps ALL cells in WidgetCard
|
|
25223
25239
|
function renderEditCell(cellNumber, cellDef, selectableSet) {
|
|
25224
|
-
var _editSelection$
|
|
25240
|
+
var _editSelection$select2, _cellComponent;
|
|
25225
25241
|
var isCellSelected = selectedCellsForMerge.includes(cellNumber);
|
|
25226
25242
|
var isCellSelectable = selectableSet === null || selectableSet.has(cellNumber);
|
|
25227
25243
|
|
|
@@ -25248,12 +25264,15 @@ var LayoutGridContainer = /*#__PURE__*/React.memo(function (_ref4) {
|
|
|
25248
25264
|
uuid: cellComponent.uuid,
|
|
25249
25265
|
id: cellComponent.id,
|
|
25250
25266
|
component: cellComponent.component,
|
|
25267
|
+
gridItemId: item.id,
|
|
25268
|
+
cellNumber: cellNumber,
|
|
25269
|
+
scope: workspaceScope,
|
|
25251
25270
|
label: pickWidgetDisplayName(cellComponent, ComponentManager.config(cellComponent.component, cellComponent))
|
|
25252
25271
|
}, openTab ? {
|
|
25253
25272
|
openTab: openTab
|
|
25254
25273
|
} : {}));
|
|
25255
25274
|
};
|
|
25256
|
-
var isSelectedEmptyCell = !cellComponent && ((_editSelection$
|
|
25275
|
+
var isSelectedEmptyCell = !cellComponent && ((_editSelection$select2 = editSelection.selection) === null || _editSelection$select2 === void 0 ? void 0 : _editSelection$select2.kind) === "cell" && editSelection.selection.gridItemId === item.id && editSelection.selection.cellNumber === cellNumber && (editSelection.selection.scope || "main") === workspaceScope;
|
|
25257
25276
|
var header = /*#__PURE__*/jsxRuntime.jsx(WidgetCard.Header, {
|
|
25258
25277
|
item: cellComponent,
|
|
25259
25278
|
cellNumber: cellNumber,
|
|
@@ -25319,18 +25338,20 @@ var LayoutGridContainer = /*#__PURE__*/React.memo(function (_ref4) {
|
|
|
25319
25338
|
// An occupied cell uses GridCellFrame — the same element tree as view
|
|
25320
25339
|
// mode — so its widget stays mounted across view ↔ edit (phase 1c).
|
|
25321
25340
|
if (cellComponent && ComponentManager.config(cellComponent.component, cellComponent)) {
|
|
25322
|
-
var _editSelection$
|
|
25341
|
+
var _editSelection$select3, _editSelection$select4;
|
|
25323
25342
|
return /*#__PURE__*/jsxRuntime.jsx(GridCellFrame, {
|
|
25324
25343
|
editing: true,
|
|
25325
25344
|
header: header,
|
|
25326
25345
|
footer: footer,
|
|
25327
25346
|
label: pickWidgetDisplayName(cellComponent, ComponentManager.config(cellComponent.component, cellComponent)),
|
|
25328
25347
|
onSelect: function onSelect() {
|
|
25329
|
-
|
|
25348
|
+
// Phase 1e: while another widget is moving, choosing this one swaps them.
|
|
25349
|
+
var move = moveTarget(cellNumber);
|
|
25350
|
+
if (move) move();else selectWidget();
|
|
25330
25351
|
},
|
|
25331
|
-
selected: ((_editSelection$
|
|
25352
|
+
selected: ((_editSelection$select3 = editSelection.selection) === null || _editSelection$select3 === void 0 ? void 0 : _editSelection$select3.kind) === "widget" && editSelection.selection.uuid === cellComponent.uuid,
|
|
25332
25353
|
related: editSelection.related.widgets.has(cellComponent.uuid),
|
|
25333
|
-
dimmed: ((_editSelection$
|
|
25354
|
+
dimmed: ((_editSelection$select4 = editSelection.selection) === null || _editSelection$select4 === void 0 ? void 0 : _editSelection$select4.kind) === "bot" && !editSelection.related.widgets.has(cellComponent.uuid),
|
|
25334
25355
|
children: /*#__PURE__*/jsxRuntime.jsx(DraggableDroppableCellBody, {
|
|
25335
25356
|
enabled: true,
|
|
25336
25357
|
cellNumber: cellNumber,
|
|
@@ -29713,9 +29734,9 @@ function migrateBareComponentName(componentMap, component) {
|
|
|
29713
29734
|
|
|
29714
29735
|
function ownKeys$11(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
29715
29736
|
function _objectSpread$11(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$11(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$11(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
29716
|
-
function _createForOfIteratorHelper$
|
|
29717
|
-
function _unsupportedIterableToArray$
|
|
29718
|
-
function _arrayLikeToArray$
|
|
29737
|
+
function _createForOfIteratorHelper$O(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$O(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; } } }; }
|
|
29738
|
+
function _unsupportedIterableToArray$O(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$O(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$O(r, a) : void 0; } }
|
|
29739
|
+
function _arrayLikeToArray$O(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; }
|
|
29719
29740
|
/**
|
|
29720
29741
|
* The model for all layout components used primarily in the renderLayout method
|
|
29721
29742
|
* @param {Object} layoutItem an object containing various attributes of the layout item
|
|
@@ -29727,7 +29748,7 @@ function _arrayLikeToArray$N(r, a) { (null == a || a > r.length) && (a = r.lengt
|
|
|
29727
29748
|
function sortObjectByKeys(obj) {
|
|
29728
29749
|
var sortedKeys = Object.keys(obj).sort();
|
|
29729
29750
|
var sortedObj = {};
|
|
29730
|
-
var _iterator = _createForOfIteratorHelper$
|
|
29751
|
+
var _iterator = _createForOfIteratorHelper$O(sortedKeys),
|
|
29731
29752
|
_step;
|
|
29732
29753
|
try {
|
|
29733
29754
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -30045,9 +30066,9 @@ var SettingsModel = function SettingsModel() {
|
|
|
30045
30066
|
return obj;
|
|
30046
30067
|
};
|
|
30047
30068
|
|
|
30048
|
-
function _createForOfIteratorHelper$
|
|
30049
|
-
function _unsupportedIterableToArray$
|
|
30050
|
-
function _arrayLikeToArray$
|
|
30069
|
+
function _createForOfIteratorHelper$N(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$N(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
30070
|
+
function _unsupportedIterableToArray$N(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$N(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$N(r, a) : void 0; } }
|
|
30071
|
+
function _arrayLikeToArray$N(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
30051
30072
|
|
|
30052
30073
|
/**
|
|
30053
30074
|
* Workspace-level pre-pass that migrates legacy bare component
|
|
@@ -30122,7 +30143,7 @@ function migrateScopedIdsInWorkspace(workspace, componentMap) {
|
|
|
30122
30143
|
};
|
|
30123
30144
|
var _walk = function walk(items) {
|
|
30124
30145
|
if (!Array.isArray(items)) return;
|
|
30125
|
-
var _iterator = _createForOfIteratorHelper$
|
|
30146
|
+
var _iterator = _createForOfIteratorHelper$N(items),
|
|
30126
30147
|
_step;
|
|
30127
30148
|
try {
|
|
30128
30149
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -30144,7 +30165,7 @@ function migrateScopedIdsInWorkspace(workspace, componentMap) {
|
|
|
30144
30165
|
};
|
|
30145
30166
|
_walk(workspace.layout);
|
|
30146
30167
|
if (Array.isArray(workspace.pages)) {
|
|
30147
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
30168
|
+
var _iterator2 = _createForOfIteratorHelper$N(workspace.pages),
|
|
30148
30169
|
_step2;
|
|
30149
30170
|
try {
|
|
30150
30171
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -30161,9 +30182,9 @@ function migrateScopedIdsInWorkspace(workspace, componentMap) {
|
|
|
30161
30182
|
return counts;
|
|
30162
30183
|
}
|
|
30163
30184
|
|
|
30164
|
-
function _createForOfIteratorHelper$
|
|
30165
|
-
function _unsupportedIterableToArray$
|
|
30166
|
-
function _arrayLikeToArray$
|
|
30185
|
+
function _createForOfIteratorHelper$M(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$M(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
30186
|
+
function _unsupportedIterableToArray$M(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$M(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$M(r, a) : void 0; } }
|
|
30187
|
+
function _arrayLikeToArray$M(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
30167
30188
|
/**
|
|
30168
30189
|
* cleanForeignWidgetsFromWorkspace.js
|
|
30169
30190
|
*
|
|
@@ -30204,7 +30225,7 @@ function cleanForeignWidgetsFromWorkspace(workspace) {
|
|
|
30204
30225
|
var _cleanList = function cleanList(items) {
|
|
30205
30226
|
if (!Array.isArray(items)) return items;
|
|
30206
30227
|
var kept = [];
|
|
30207
|
-
var _iterator = _createForOfIteratorHelper$
|
|
30228
|
+
var _iterator = _createForOfIteratorHelper$M(items),
|
|
30208
30229
|
_step;
|
|
30209
30230
|
try {
|
|
30210
30231
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -30241,7 +30262,7 @@ function cleanForeignWidgetsFromWorkspace(workspace) {
|
|
|
30241
30262
|
workspace.sidebarLayout = _cleanList(workspace.sidebarLayout);
|
|
30242
30263
|
}
|
|
30243
30264
|
if (Array.isArray(workspace.pages)) {
|
|
30244
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
30265
|
+
var _iterator2 = _createForOfIteratorHelper$M(workspace.pages),
|
|
30245
30266
|
_step2;
|
|
30246
30267
|
try {
|
|
30247
30268
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -30259,9 +30280,9 @@ function cleanForeignWidgetsFromWorkspace(workspace) {
|
|
|
30259
30280
|
return summary;
|
|
30260
30281
|
}
|
|
30261
30282
|
|
|
30262
|
-
function _createForOfIteratorHelper$
|
|
30263
|
-
function _unsupportedIterableToArray$
|
|
30264
|
-
function _arrayLikeToArray$
|
|
30283
|
+
function _createForOfIteratorHelper$L(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$L(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
30284
|
+
function _unsupportedIterableToArray$L(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$L(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$L(r, a) : void 0; } }
|
|
30285
|
+
function _arrayLikeToArray$L(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
30265
30286
|
/**
|
|
30266
30287
|
* migrateLayoutItemTypes.js
|
|
30267
30288
|
*
|
|
@@ -30323,7 +30344,7 @@ function migrateLayoutItemTypes(workspace) {
|
|
|
30323
30344
|
};
|
|
30324
30345
|
var _walk = function walk(items) {
|
|
30325
30346
|
if (!Array.isArray(items)) return;
|
|
30326
|
-
var _iterator = _createForOfIteratorHelper$
|
|
30347
|
+
var _iterator = _createForOfIteratorHelper$L(items),
|
|
30327
30348
|
_step;
|
|
30328
30349
|
try {
|
|
30329
30350
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -30341,7 +30362,7 @@ function migrateLayoutItemTypes(workspace) {
|
|
|
30341
30362
|
};
|
|
30342
30363
|
_walk(workspace.layout);
|
|
30343
30364
|
if (Array.isArray(workspace.pages)) {
|
|
30344
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
30365
|
+
var _iterator2 = _createForOfIteratorHelper$L(workspace.pages),
|
|
30345
30366
|
_step2;
|
|
30346
30367
|
try {
|
|
30347
30368
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -30913,9 +30934,9 @@ var ThemeModel = function ThemeModel() {
|
|
|
30913
30934
|
}
|
|
30914
30935
|
};
|
|
30915
30936
|
|
|
30916
|
-
function _createForOfIteratorHelper$
|
|
30917
|
-
function _unsupportedIterableToArray$
|
|
30918
|
-
function _arrayLikeToArray$
|
|
30937
|
+
function _createForOfIteratorHelper$K(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$K(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
30938
|
+
function _unsupportedIterableToArray$K(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$K(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$K(r, a) : void 0; } }
|
|
30939
|
+
function _arrayLikeToArray$K(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
30919
30940
|
/*
|
|
30920
30941
|
"component": AnalyticsReportsWidget,
|
|
30921
30942
|
"type":"widget",
|
|
@@ -31033,7 +31054,7 @@ var ComponentConfigModel = function ComponentConfigModel() {
|
|
|
31033
31054
|
if ("providers" in obj && Array.isArray(obj.providers)) {
|
|
31034
31055
|
var seen = new Set();
|
|
31035
31056
|
var cleaned = [];
|
|
31036
|
-
var _iterator = _createForOfIteratorHelper$
|
|
31057
|
+
var _iterator = _createForOfIteratorHelper$K(obj.providers),
|
|
31037
31058
|
_step;
|
|
31038
31059
|
try {
|
|
31039
31060
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -31079,9 +31100,9 @@ var MenuItemModel = function MenuItemModel() {
|
|
|
31079
31100
|
return m;
|
|
31080
31101
|
};
|
|
31081
31102
|
|
|
31082
|
-
function _createForOfIteratorHelper$
|
|
31083
|
-
function _unsupportedIterableToArray$
|
|
31084
|
-
function _arrayLikeToArray$
|
|
31103
|
+
function _createForOfIteratorHelper$J(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$J(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
31104
|
+
function _unsupportedIterableToArray$J(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$J(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$J(r, a) : void 0; } }
|
|
31105
|
+
function _arrayLikeToArray$J(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
31085
31106
|
function ownKeys$$(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
31086
31107
|
function _objectSpread$$(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$$(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$$(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
31087
31108
|
/**
|
|
@@ -31141,7 +31162,7 @@ function mergeGridCellsOp(grid, cellNumbers, keepComponentId) {
|
|
|
31141
31162
|
maxRow = -Infinity;
|
|
31142
31163
|
var minCol = Infinity,
|
|
31143
31164
|
maxCol = -Infinity;
|
|
31144
|
-
var _iterator = _createForOfIteratorHelper$
|
|
31165
|
+
var _iterator = _createForOfIteratorHelper$J(cellNumbers),
|
|
31145
31166
|
_step;
|
|
31146
31167
|
try {
|
|
31147
31168
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -31165,7 +31186,7 @@ function mergeGridCellsOp(grid, cellNumbers, keepComponentId) {
|
|
|
31165
31186
|
} finally {
|
|
31166
31187
|
_iterator.f();
|
|
31167
31188
|
}
|
|
31168
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
31189
|
+
var _iterator2 = _createForOfIteratorHelper$J(cellNumbers),
|
|
31169
31190
|
_step2;
|
|
31170
31191
|
try {
|
|
31171
31192
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -31207,7 +31228,7 @@ function mergeGridCellsOp(grid, cellNumbers, keepComponentId) {
|
|
|
31207
31228
|
_iterator2.f();
|
|
31208
31229
|
}
|
|
31209
31230
|
var componentsInRange = [];
|
|
31210
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
31231
|
+
var _iterator3 = _createForOfIteratorHelper$J(cellNumbers),
|
|
31211
31232
|
_step3;
|
|
31212
31233
|
try {
|
|
31213
31234
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -31245,7 +31266,7 @@ function mergeGridCellsOp(grid, cellNumbers, keepComponentId) {
|
|
|
31245
31266
|
// other selected cells get hidden and have their component refs
|
|
31246
31267
|
// cleared (so a stale ref in a hidden cell never re-renders).
|
|
31247
31268
|
var keepCell = cellNumbers[0];
|
|
31248
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
31269
|
+
var _iterator4 = _createForOfIteratorHelper$J(cellNumbers),
|
|
31249
31270
|
_step4;
|
|
31250
31271
|
try {
|
|
31251
31272
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
@@ -31775,9 +31796,9 @@ function deleteGridColumnOp(grid, colNumber) {
|
|
|
31775
31796
|
};
|
|
31776
31797
|
}
|
|
31777
31798
|
|
|
31778
|
-
function _createForOfIteratorHelper$
|
|
31779
|
-
function _unsupportedIterableToArray$
|
|
31780
|
-
function _arrayLikeToArray$
|
|
31799
|
+
function _createForOfIteratorHelper$I(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$I(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
31800
|
+
function _unsupportedIterableToArray$I(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$I(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$I(r, a) : void 0; } }
|
|
31801
|
+
function _arrayLikeToArray$I(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
31781
31802
|
/**
|
|
31782
31803
|
* A Model for a Workspace (Dashboard)
|
|
31783
31804
|
* The Dashboard in this instance is the entire Layout inclusive of the workspaces and widgets
|
|
@@ -31849,7 +31870,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
31849
31870
|
|
|
31850
31871
|
// Also normalize grids within pages
|
|
31851
31872
|
if (this.pages.length > 0) {
|
|
31852
|
-
var _iterator = _createForOfIteratorHelper$
|
|
31873
|
+
var _iterator = _createForOfIteratorHelper$I(this.pages),
|
|
31853
31874
|
_step;
|
|
31854
31875
|
try {
|
|
31855
31876
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -33249,7 +33270,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
33249
33270
|
// destructive-delete behavior.
|
|
33250
33271
|
var result = deleteGridRowOp(gridContainer.grid, rowNumber);
|
|
33251
33272
|
gridContainer.grid = result.grid;
|
|
33252
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
33273
|
+
var _iterator2 = _createForOfIteratorHelper$I(result.orphanedComponents),
|
|
33253
33274
|
_step2;
|
|
33254
33275
|
try {
|
|
33255
33276
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -33348,7 +33369,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
33348
33369
|
// Slice 11: pure helper.
|
|
33349
33370
|
var result = deleteGridColumnOp(gridContainer.grid, colNumber);
|
|
33350
33371
|
gridContainer.grid = result.grid;
|
|
33351
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
33372
|
+
var _iterator3 = _createForOfIteratorHelper$I(result.orphanedComponents),
|
|
33352
33373
|
_step3;
|
|
33353
33374
|
try {
|
|
33354
33375
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -33443,7 +33464,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
33443
33464
|
try {
|
|
33444
33465
|
// Collect all item IDs actively referenced by grid cells
|
|
33445
33466
|
var activeItemIds = new Set();
|
|
33446
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
33467
|
+
var _iterator4 = _createForOfIteratorHelper$I(this.layout),
|
|
33447
33468
|
_step4;
|
|
33448
33469
|
try {
|
|
33449
33470
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
@@ -33483,7 +33504,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
33483
33504
|
});
|
|
33484
33505
|
|
|
33485
33506
|
// Clean listener references on remaining items for each removed orphan
|
|
33486
|
-
var _iterator5 = _createForOfIteratorHelper$
|
|
33507
|
+
var _iterator5 = _createForOfIteratorHelper$I(orphanedIds),
|
|
33487
33508
|
_step5;
|
|
33488
33509
|
try {
|
|
33489
33510
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
@@ -33634,7 +33655,7 @@ function resolveComponentKey(componentMap, component) {
|
|
|
33634
33655
|
return component in componentMap ? component : null;
|
|
33635
33656
|
}
|
|
33636
33657
|
|
|
33637
|
-
var _excluded$
|
|
33658
|
+
var _excluded$3 = ["component"];
|
|
33638
33659
|
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; }
|
|
33639
33660
|
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; }
|
|
33640
33661
|
var _componentMap = {};
|
|
@@ -34013,7 +34034,7 @@ var ComponentManager = {
|
|
|
34013
34034
|
// and the registry's own entry must keep it.
|
|
34014
34035
|
var _source$resolvedKey = source[resolvedKey],
|
|
34015
34036
|
_reactComponent = _source$resolvedKey.component,
|
|
34016
|
-
tempComponent = _objectWithoutProperties(_source$resolvedKey, _excluded$
|
|
34037
|
+
tempComponent = _objectWithoutProperties(_source$resolvedKey, _excluded$3);
|
|
34017
34038
|
var c = JSON.parse(JSON.stringify(tempComponent));
|
|
34018
34039
|
c["component"] = resolvedKey;
|
|
34019
34040
|
if ("userConfig" in c === false) {
|
|
@@ -34256,9 +34277,9 @@ var useDashboard = function useDashboard() {
|
|
|
34256
34277
|
});
|
|
34257
34278
|
};
|
|
34258
34279
|
|
|
34259
|
-
function _createForOfIteratorHelper$
|
|
34260
|
-
function _unsupportedIterableToArray$
|
|
34261
|
-
function _arrayLikeToArray$
|
|
34280
|
+
function _createForOfIteratorHelper$H(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$H(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
34281
|
+
function _unsupportedIterableToArray$H(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$H(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$H(r, a) : void 0; } }
|
|
34282
|
+
function _arrayLikeToArray$H(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
34262
34283
|
|
|
34263
34284
|
/**
|
|
34264
34285
|
* useWidgetProviders Hook
|
|
@@ -34321,7 +34342,7 @@ var useWidgetProviders = function useWidgetProviders() {
|
|
|
34321
34342
|
// 2. Workspace-level: stored as workspace.selectedProviders[widgetId][providerType]
|
|
34322
34343
|
// 3. App-default: any provider in AppContext.providers flagged isDefaultForType
|
|
34323
34344
|
var providers = {};
|
|
34324
|
-
var _iterator = _createForOfIteratorHelper$
|
|
34345
|
+
var _iterator = _createForOfIteratorHelper$H(providerDeclarations),
|
|
34325
34346
|
_step;
|
|
34326
34347
|
try {
|
|
34327
34348
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -34380,9 +34401,9 @@ var useWidgetProviders = function useWidgetProviders() {
|
|
|
34380
34401
|
};
|
|
34381
34402
|
};
|
|
34382
34403
|
|
|
34383
|
-
function _createForOfIteratorHelper$
|
|
34384
|
-
function _unsupportedIterableToArray$
|
|
34385
|
-
function _arrayLikeToArray$
|
|
34404
|
+
function _createForOfIteratorHelper$G(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$G(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
34405
|
+
function _unsupportedIterableToArray$G(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$G(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$G(r, a) : void 0; } }
|
|
34406
|
+
function _arrayLikeToArray$G(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
34386
34407
|
|
|
34387
34408
|
/**
|
|
34388
34409
|
* Module-level shared state for MCP server connections.
|
|
@@ -34437,7 +34458,7 @@ function unionPathScope(grants, serverName) {
|
|
|
34437
34458
|
allowedPaths: []
|
|
34438
34459
|
};
|
|
34439
34460
|
}
|
|
34440
|
-
var _iterator = _createForOfIteratorHelper$
|
|
34461
|
+
var _iterator = _createForOfIteratorHelper$G(grants),
|
|
34441
34462
|
_step;
|
|
34442
34463
|
try {
|
|
34443
34464
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -34450,7 +34471,7 @@ function unionPathScope(grants, serverName) {
|
|
|
34450
34471
|
var serverPerms = servers[serverName];
|
|
34451
34472
|
if (!serverPerms || _typeof(serverPerms) !== "object") continue;
|
|
34452
34473
|
if (Array.isArray(serverPerms.readPaths)) {
|
|
34453
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
34474
|
+
var _iterator2 = _createForOfIteratorHelper$G(serverPerms.readPaths),
|
|
34454
34475
|
_step2;
|
|
34455
34476
|
try {
|
|
34456
34477
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -34464,7 +34485,7 @@ function unionPathScope(grants, serverName) {
|
|
|
34464
34485
|
}
|
|
34465
34486
|
}
|
|
34466
34487
|
if (Array.isArray(serverPerms.writePaths)) {
|
|
34467
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
34488
|
+
var _iterator3 = _createForOfIteratorHelper$G(serverPerms.writePaths),
|
|
34468
34489
|
_step3;
|
|
34469
34490
|
try {
|
|
34470
34491
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -35271,9 +35292,9 @@ var useNotifications = function useNotifications() {
|
|
|
35271
35292
|
};
|
|
35272
35293
|
};
|
|
35273
35294
|
|
|
35274
|
-
function _createForOfIteratorHelper$
|
|
35275
|
-
function _unsupportedIterableToArray$
|
|
35276
|
-
function _arrayLikeToArray$
|
|
35295
|
+
function _createForOfIteratorHelper$F(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$F(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
35296
|
+
function _unsupportedIterableToArray$F(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$F(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$F(r, a) : void 0; } }
|
|
35297
|
+
function _arrayLikeToArray$F(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
35277
35298
|
|
|
35278
35299
|
/**
|
|
35279
35300
|
* useScheduler Hook
|
|
@@ -35346,7 +35367,7 @@ var useScheduler = function useScheduler() {
|
|
|
35346
35367
|
if (pending && pending.length > 0) {
|
|
35347
35368
|
setPendingResults(pending);
|
|
35348
35369
|
// Call handlers for each pending result
|
|
35349
|
-
var _iterator = _createForOfIteratorHelper$
|
|
35370
|
+
var _iterator = _createForOfIteratorHelper$F(pending),
|
|
35350
35371
|
_step;
|
|
35351
35372
|
try {
|
|
35352
35373
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -36585,9 +36606,9 @@ var CustomHexColorPane = function CustomHexColorPane(_ref) {
|
|
|
36585
36606
|
});
|
|
36586
36607
|
};
|
|
36587
36608
|
|
|
36588
|
-
function _createForOfIteratorHelper$
|
|
36589
|
-
function _unsupportedIterableToArray$
|
|
36590
|
-
function _arrayLikeToArray$
|
|
36609
|
+
function _createForOfIteratorHelper$E(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$E(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
36610
|
+
function _unsupportedIterableToArray$E(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$E(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$E(r, a) : void 0; } }
|
|
36611
|
+
function _arrayLikeToArray$E(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
36591
36612
|
function rgbDistSq(a, b) {
|
|
36592
36613
|
var dr = a.r - b.r;
|
|
36593
36614
|
var dg = a.g - b.g;
|
|
@@ -36605,13 +36626,13 @@ function nearestSwatch(hex, families) {
|
|
|
36605
36626
|
var target = DashReact.hexToRgb(hex);
|
|
36606
36627
|
if (!target) return null;
|
|
36607
36628
|
var best = null;
|
|
36608
|
-
var _iterator = _createForOfIteratorHelper$
|
|
36629
|
+
var _iterator = _createForOfIteratorHelper$E(families),
|
|
36609
36630
|
_step;
|
|
36610
36631
|
try {
|
|
36611
36632
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
36612
36633
|
var family = _step.value;
|
|
36613
36634
|
var grid = DashReact.getCuratedColorGrid(family) || [];
|
|
36614
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
36635
|
+
var _iterator2 = _createForOfIteratorHelper$E(grid),
|
|
36615
36636
|
_step2;
|
|
36616
36637
|
try {
|
|
36617
36638
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -43401,9 +43422,9 @@ var GrantManuallyModal = function GrantManuallyModal(_ref) {
|
|
|
43401
43422
|
});
|
|
43402
43423
|
};
|
|
43403
43424
|
|
|
43404
|
-
function _createForOfIteratorHelper$
|
|
43405
|
-
function _unsupportedIterableToArray$
|
|
43406
|
-
function _arrayLikeToArray$
|
|
43425
|
+
function _createForOfIteratorHelper$D(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$D(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
43426
|
+
function _unsupportedIterableToArray$D(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$D(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$D(r, a) : void 0; } }
|
|
43427
|
+
function _arrayLikeToArray$D(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
43407
43428
|
/**
|
|
43408
43429
|
* groupRowsByPackage
|
|
43409
43430
|
*
|
|
@@ -43455,7 +43476,7 @@ function _hasGrant(granted) {
|
|
|
43455
43476
|
function groupRowsByPackage(rows) {
|
|
43456
43477
|
if (!Array.isArray(rows)) return [];
|
|
43457
43478
|
var byPackage = new Map();
|
|
43458
|
-
var _iterator = _createForOfIteratorHelper$
|
|
43479
|
+
var _iterator = _createForOfIteratorHelper$D(rows),
|
|
43459
43480
|
_step;
|
|
43460
43481
|
try {
|
|
43461
43482
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -43727,15 +43748,15 @@ var ConfigListRow = function ConfigListRow(_ref2) {
|
|
|
43727
43748
|
* absence), false for paths (scanner can't see them)
|
|
43728
43749
|
* @returns {Set<string>} the granted items that are stale
|
|
43729
43750
|
*/
|
|
43730
|
-
function _createForOfIteratorHelper$
|
|
43731
|
-
function _unsupportedIterableToArray$
|
|
43732
|
-
function _arrayLikeToArray$
|
|
43751
|
+
function _createForOfIteratorHelper$C(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$C(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
43752
|
+
function _unsupportedIterableToArray$C(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$C(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$C(r, a) : void 0; } }
|
|
43753
|
+
function _arrayLikeToArray$C(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
43733
43754
|
function computeStaleItems(declaredItems, grantedItems, validatesStale) {
|
|
43734
43755
|
var out = new Set();
|
|
43735
43756
|
if (!validatesStale) return out;
|
|
43736
43757
|
var declared = new Set(Array.isArray(declaredItems) ? declaredItems : []);
|
|
43737
43758
|
var granted = Array.isArray(grantedItems) ? grantedItems : [];
|
|
43738
|
-
var _iterator = _createForOfIteratorHelper$
|
|
43759
|
+
var _iterator = _createForOfIteratorHelper$C(granted),
|
|
43739
43760
|
_step;
|
|
43740
43761
|
try {
|
|
43741
43762
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -44332,9 +44353,9 @@ var WidgetPackageDetail = function WidgetPackageDetail(_ref) {
|
|
|
44332
44353
|
*/
|
|
44333
44354
|
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; }
|
|
44334
44355
|
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; }
|
|
44335
|
-
function _createForOfIteratorHelper$
|
|
44336
|
-
function _unsupportedIterableToArray$
|
|
44337
|
-
function _arrayLikeToArray$
|
|
44356
|
+
function _createForOfIteratorHelper$B(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$B(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
44357
|
+
function _unsupportedIterableToArray$B(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$B(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$B(r, a) : void 0; } }
|
|
44358
|
+
function _arrayLikeToArray$B(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
44338
44359
|
function applyToolToggle(grant, labels, tool, on) {
|
|
44339
44360
|
if (!grant || _typeof(grant) !== "object") return null;
|
|
44340
44361
|
if (!Array.isArray(labels) || labels.length === 0) return null;
|
|
@@ -44355,7 +44376,7 @@ function applyToolToggle(grant, labels, tool, on) {
|
|
|
44355
44376
|
}
|
|
44356
44377
|
|
|
44357
44378
|
// Apply the toggle to each target label.
|
|
44358
|
-
var _iterator = _createForOfIteratorHelper$
|
|
44379
|
+
var _iterator = _createForOfIteratorHelper$B(labels),
|
|
44359
44380
|
_step;
|
|
44360
44381
|
try {
|
|
44361
44382
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -44415,9 +44436,9 @@ function applyToolToggle(grant, labels, tool, on) {
|
|
|
44415
44436
|
*/
|
|
44416
44437
|
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; }
|
|
44417
44438
|
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; }
|
|
44418
|
-
function _createForOfIteratorHelper$
|
|
44419
|
-
function _unsupportedIterableToArray$
|
|
44420
|
-
function _arrayLikeToArray$
|
|
44439
|
+
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; } } }; }
|
|
44440
|
+
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; } }
|
|
44441
|
+
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; }
|
|
44421
44442
|
var VALID_KINDS$1 = new Set(["readPaths", "writePaths"]);
|
|
44422
44443
|
function applyPathRemoval(grant, labels, kind, path) {
|
|
44423
44444
|
if (!grant || _typeof(grant) !== "object") return null;
|
|
@@ -44436,7 +44457,7 @@ function applyPathRemoval(grant, labels, kind, path) {
|
|
|
44436
44457
|
};
|
|
44437
44458
|
}
|
|
44438
44459
|
if (VALID_KINDS$1.has(kind)) {
|
|
44439
|
-
var _iterator = _createForOfIteratorHelper$
|
|
44460
|
+
var _iterator = _createForOfIteratorHelper$A(labels),
|
|
44440
44461
|
_step;
|
|
44441
44462
|
try {
|
|
44442
44463
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -44544,9 +44565,9 @@ function applyDomainItemRemoval(grant, domain, kind, value) {
|
|
|
44544
44565
|
|
|
44545
44566
|
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; }
|
|
44546
44567
|
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; }
|
|
44547
|
-
function _createForOfIteratorHelper$
|
|
44548
|
-
function _unsupportedIterableToArray$
|
|
44549
|
-
function _arrayLikeToArray$
|
|
44568
|
+
function _createForOfIteratorHelper$z(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$z(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
44569
|
+
function _unsupportedIterableToArray$z(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$z(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$z(r, a) : void 0; } }
|
|
44570
|
+
function _arrayLikeToArray$z(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
44550
44571
|
var PrivacySecuritySection = function PrivacySecuritySection() {
|
|
44551
44572
|
var _useContext = React.useContext(AppContext),
|
|
44552
44573
|
providers = _useContext.providers;
|
|
@@ -44717,7 +44738,7 @@ var PrivacySecuritySection = function PrivacySecuritySection() {
|
|
|
44717
44738
|
}
|
|
44718
44739
|
}
|
|
44719
44740
|
targets = labels.length > 0 ? labels : [serverName];
|
|
44720
|
-
_iterator = _createForOfIteratorHelper$
|
|
44741
|
+
_iterator = _createForOfIteratorHelper$z(targets);
|
|
44721
44742
|
_context4.prev = 1;
|
|
44722
44743
|
_iterator.s();
|
|
44723
44744
|
case 2:
|
|
@@ -45011,7 +45032,7 @@ var PrivacySecuritySection = function PrivacySecuritySection() {
|
|
|
45011
45032
|
return _context9.abrupt("return");
|
|
45012
45033
|
case 3:
|
|
45013
45034
|
next = currentGrant;
|
|
45014
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
45035
|
+
_iterator2 = _createForOfIteratorHelper$z(declaredTools);
|
|
45015
45036
|
try {
|
|
45016
45037
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
45017
45038
|
tool = _step2.value;
|
|
@@ -45051,7 +45072,7 @@ var PrivacySecuritySection = function PrivacySecuritySection() {
|
|
|
45051
45072
|
while (1) switch (_context0.prev = _context0.next) {
|
|
45052
45073
|
case 0:
|
|
45053
45074
|
_context0.prev = 0;
|
|
45054
|
-
_iterator3 = _createForOfIteratorHelper$
|
|
45075
|
+
_iterator3 = _createForOfIteratorHelper$z(packageGroup.widgets);
|
|
45055
45076
|
_context0.prev = 1;
|
|
45056
45077
|
_iterator3.s();
|
|
45057
45078
|
case 2:
|
|
@@ -47971,9 +47992,9 @@ function matchesSource(entry, filter) {
|
|
|
47971
47992
|
return widgetSource(entry, username) === filter;
|
|
47972
47993
|
}
|
|
47973
47994
|
|
|
47974
|
-
function _createForOfIteratorHelper$
|
|
47975
|
-
function _unsupportedIterableToArray$
|
|
47976
|
-
function _arrayLikeToArray$
|
|
47995
|
+
function _createForOfIteratorHelper$y(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$y(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
47996
|
+
function _unsupportedIterableToArray$y(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$y(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$y(r, a) : void 0; } }
|
|
47997
|
+
function _arrayLikeToArray$y(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
47977
47998
|
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; }
|
|
47978
47999
|
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; }
|
|
47979
48000
|
var DraggableWidgetItem = function DraggableWidgetItem(_ref) {
|
|
@@ -48539,7 +48560,7 @@ var WidgetSidebar = function WidgetSidebar(_ref4) {
|
|
|
48539
48560
|
return _context2.abrupt("return");
|
|
48540
48561
|
case 2:
|
|
48541
48562
|
names = new Set();
|
|
48542
|
-
_iterator = _createForOfIteratorHelper$
|
|
48563
|
+
_iterator = _createForOfIteratorHelper$y(widgets);
|
|
48543
48564
|
try {
|
|
48544
48565
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
48545
48566
|
w = _step.value;
|
|
@@ -48954,7 +48975,9 @@ var EditPanel = function EditPanel(_ref) {
|
|
|
48954
48975
|
_ref$onPlaceWidget = _ref.onPlaceWidget,
|
|
48955
48976
|
onPlaceWidget = _ref$onPlaceWidget === void 0 ? null : _ref$onPlaceWidget,
|
|
48956
48977
|
_ref$onAskAi = _ref.onAskAi,
|
|
48957
|
-
onAskAi = _ref$onAskAi === void 0 ? null : _ref$onAskAi
|
|
48978
|
+
onAskAi = _ref$onAskAi === void 0 ? null : _ref$onAskAi,
|
|
48979
|
+
_ref$onMoveWidget = _ref.onMoveWidget,
|
|
48980
|
+
onMoveWidget = _ref$onMoveWidget === void 0 ? null : _ref$onMoveWidget;
|
|
48958
48981
|
var _useContext = React.useContext(DashReact.ThemeContext),
|
|
48959
48982
|
_useContext$currentTh = _useContext.currentTheme,
|
|
48960
48983
|
currentTheme = _useContext$currentTh === void 0 ? {} : _useContext$currentTh,
|
|
@@ -49091,7 +49114,26 @@ var EditPanel = function EditPanel(_ref) {
|
|
|
49091
49114
|
className: "flex flex-col gap-2",
|
|
49092
49115
|
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.SectionLabel, {
|
|
49093
49116
|
children: "More"
|
|
49094
|
-
}), /*#__PURE__*/jsxRuntime.
|
|
49117
|
+
}), onMoveWidget && (selection.moving ? /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
49118
|
+
className: "flex flex-col gap-2",
|
|
49119
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
49120
|
+
role: "status",
|
|
49121
|
+
className: "text-xs ".concat(currentTheme["text-primary-light"] || ""),
|
|
49122
|
+
children: "Choose a cell in the same grid: click it, or Tab to it and press Enter. An empty cell takes the widget; a full one swaps with it."
|
|
49123
|
+
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button, {
|
|
49124
|
+
title: "Stop moving",
|
|
49125
|
+
onClick: function onClick() {
|
|
49126
|
+
return onMoveWidget(false);
|
|
49127
|
+
},
|
|
49128
|
+
size: "sm"
|
|
49129
|
+
})]
|
|
49130
|
+
}) : /*#__PURE__*/jsxRuntime.jsx(DashReact.Button, {
|
|
49131
|
+
title: "Move to another cell",
|
|
49132
|
+
onClick: function onClick() {
|
|
49133
|
+
return onMoveWidget(true);
|
|
49134
|
+
},
|
|
49135
|
+
size: "sm"
|
|
49136
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button, {
|
|
49095
49137
|
title: "Edit with AI",
|
|
49096
49138
|
onClick: function onClick() {
|
|
49097
49139
|
return act("edit-with-ai");
|
|
@@ -49279,7 +49321,7 @@ function _objectSpread$I(e) { for (var r = 1; r < arguments.length; r++) { var t
|
|
|
49279
49321
|
* last saved)
|
|
49280
49322
|
* @param {object|null} latest the bot as saved right now
|
|
49281
49323
|
*/
|
|
49282
|
-
var same = function same(a, b) {
|
|
49324
|
+
var same$1 = function same(a, b) {
|
|
49283
49325
|
return JSON.stringify(a) === JSON.stringify(b);
|
|
49284
49326
|
};
|
|
49285
49327
|
function keepLatest(edited, opened, latest) {
|
|
@@ -49288,7 +49330,7 @@ function keepLatest(edited, opened, latest) {
|
|
|
49288
49330
|
for (var _i = 0, _Object$keys = Object.keys(edited); _i < _Object$keys.length; _i++) {
|
|
49289
49331
|
var key = _Object$keys[_i];
|
|
49290
49332
|
if (key === "id") continue;
|
|
49291
|
-
if (same(edited[key], opened[key]) && key in latest) {
|
|
49333
|
+
if (same$1(edited[key], opened[key]) && key in latest) {
|
|
49292
49334
|
out[key] = latest[key];
|
|
49293
49335
|
}
|
|
49294
49336
|
}
|
|
@@ -49493,9 +49535,9 @@ function parseCron(cron) {
|
|
|
49493
49535
|
};
|
|
49494
49536
|
}
|
|
49495
49537
|
|
|
49496
|
-
function _createForOfIteratorHelper$
|
|
49497
|
-
function _unsupportedIterableToArray$
|
|
49498
|
-
function _arrayLikeToArray$
|
|
49538
|
+
function _createForOfIteratorHelper$x(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$x(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; } } }; }
|
|
49539
|
+
function _unsupportedIterableToArray$x(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$x(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$x(r, a) : void 0; } }
|
|
49540
|
+
function _arrayLikeToArray$x(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; }
|
|
49499
49541
|
/**
|
|
49500
49542
|
* teamUtils.js
|
|
49501
49543
|
*
|
|
@@ -49528,7 +49570,7 @@ function dashboardOptions(workspaces) {
|
|
|
49528
49570
|
return w && norm(w.id) !== null;
|
|
49529
49571
|
});
|
|
49530
49572
|
var totals = {};
|
|
49531
|
-
var _iterator = _createForOfIteratorHelper$
|
|
49573
|
+
var _iterator = _createForOfIteratorHelper$x(list),
|
|
49532
49574
|
_step;
|
|
49533
49575
|
try {
|
|
49534
49576
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -49575,7 +49617,7 @@ function groupBotsByTeam(bots, workspaces) {
|
|
|
49575
49617
|
label: "Unassigned",
|
|
49576
49618
|
bots: []
|
|
49577
49619
|
};
|
|
49578
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
49620
|
+
var _iterator2 = _createForOfIteratorHelper$x(list),
|
|
49579
49621
|
_step2;
|
|
49580
49622
|
try {
|
|
49581
49623
|
var _loop = function _loop() {
|
|
@@ -49856,7 +49898,7 @@ var ProviderSettingField = function ProviderSettingField(_ref3) {
|
|
|
49856
49898
|
});
|
|
49857
49899
|
};
|
|
49858
49900
|
|
|
49859
|
-
var _excluded$
|
|
49901
|
+
var _excluded$2 = ["transport", "command", "args", "envMapping", "url", "headerTemplate", "headers", "auth", "oauth"];
|
|
49860
49902
|
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; }
|
|
49861
49903
|
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; }
|
|
49862
49904
|
var rowIdCounter = 0;
|
|
@@ -49904,7 +49946,7 @@ function buildMcpConfig(transport, _ref) {
|
|
|
49904
49946
|
baseConfig.headers;
|
|
49905
49947
|
baseConfig.auth;
|
|
49906
49948
|
baseConfig.oauth;
|
|
49907
|
-
var passThrough = _objectWithoutProperties(baseConfig, _excluded$
|
|
49949
|
+
var passThrough = _objectWithoutProperties(baseConfig, _excluded$2);
|
|
49908
49950
|
if (transport === "stdio") {
|
|
49909
49951
|
var envMapping = {};
|
|
49910
49952
|
envMappingRows.forEach(function (row) {
|
|
@@ -53395,9 +53437,9 @@ var useMissingWidgets = function useMissingWidgets(workspace) {
|
|
|
53395
53437
|
|
|
53396
53438
|
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; }
|
|
53397
53439
|
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; }
|
|
53398
|
-
function _createForOfIteratorHelper$
|
|
53399
|
-
function _unsupportedIterableToArray$
|
|
53400
|
-
function _arrayLikeToArray$
|
|
53440
|
+
function _createForOfIteratorHelper$w(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$w(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; } } }; }
|
|
53441
|
+
function _unsupportedIterableToArray$w(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$w(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$w(r, a) : void 0; } }
|
|
53442
|
+
function _arrayLikeToArray$w(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; }
|
|
53401
53443
|
var MissingWidgetsModal = function MissingWidgetsModal(_ref) {
|
|
53402
53444
|
var _ref$missingComponent = _ref.missingComponents,
|
|
53403
53445
|
missingComponents = _ref$missingComponent === void 0 ? [] : _ref$missingComponent,
|
|
@@ -53448,7 +53490,7 @@ var MissingWidgetsModal = function MissingWidgetsModal(_ref) {
|
|
|
53448
53490
|
case 0:
|
|
53449
53491
|
results = [];
|
|
53450
53492
|
seen = new Set();
|
|
53451
|
-
_iterator = _createForOfIteratorHelper$
|
|
53493
|
+
_iterator = _createForOfIteratorHelper$w(missingComponents);
|
|
53452
53494
|
_context2.prev = 1;
|
|
53453
53495
|
_loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
|
|
53454
53496
|
var componentKey, _getWidgetSearchQuery, packageName, widgetName, pkg, result;
|
|
@@ -53837,9 +53879,9 @@ function renderFormItem(displayName, key, instructions, required, value, _onChan
|
|
|
53837
53879
|
|
|
53838
53880
|
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; }
|
|
53839
53881
|
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; }
|
|
53840
|
-
function _createForOfIteratorHelper$
|
|
53841
|
-
function _unsupportedIterableToArray$
|
|
53842
|
-
function _arrayLikeToArray$
|
|
53882
|
+
function _createForOfIteratorHelper$v(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$v(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; } } }; }
|
|
53883
|
+
function _unsupportedIterableToArray$v(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$v(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$v(r, a) : void 0; } }
|
|
53884
|
+
function _arrayLikeToArray$v(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; }
|
|
53843
53885
|
var ALL_WIDGETS_ID = "__ALL__";
|
|
53844
53886
|
|
|
53845
53887
|
/**
|
|
@@ -53927,7 +53969,7 @@ var WidgetsTab = function WidgetsTab(_ref) {
|
|
|
53927
53969
|
// widgets from a single input.
|
|
53928
53970
|
var sharedFields = React.useMemo(function () {
|
|
53929
53971
|
var byKey = new Map();
|
|
53930
|
-
var _iterator = _createForOfIteratorHelper$
|
|
53972
|
+
var _iterator = _createForOfIteratorHelper$v(widgets),
|
|
53931
53973
|
_step;
|
|
53932
53974
|
try {
|
|
53933
53975
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -53968,7 +54010,7 @@ var WidgetsTab = function WidgetsTab(_ref) {
|
|
|
53968
54010
|
}, [sharedFields.length, widgets.length]);
|
|
53969
54011
|
var groupedWidgets = React.useMemo(function () {
|
|
53970
54012
|
var groups = new Map();
|
|
53971
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
54013
|
+
var _iterator2 = _createForOfIteratorHelper$v(widgets),
|
|
53972
54014
|
_step2;
|
|
53973
54015
|
try {
|
|
53974
54016
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -54192,9 +54234,9 @@ function SharedFieldRow(_ref6) {
|
|
|
54192
54234
|
});
|
|
54193
54235
|
}
|
|
54194
54236
|
|
|
54195
|
-
function _createForOfIteratorHelper$
|
|
54196
|
-
function _unsupportedIterableToArray$
|
|
54197
|
-
function _arrayLikeToArray$
|
|
54237
|
+
function _createForOfIteratorHelper$u(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$u(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; } } }; }
|
|
54238
|
+
function _unsupportedIterableToArray$u(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$u(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$u(r, a) : void 0; } }
|
|
54239
|
+
function _arrayLikeToArray$u(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; }
|
|
54198
54240
|
var PermissionsTab = function PermissionsTab(_ref) {
|
|
54199
54241
|
var workspace = _ref.workspace;
|
|
54200
54242
|
var _React$useContext = React.useContext(AppContext),
|
|
@@ -54421,7 +54463,7 @@ var PermissionsTab = function PermissionsTab(_ref) {
|
|
|
54421
54463
|
return _context4.abrupt("return");
|
|
54422
54464
|
case 3:
|
|
54423
54465
|
next = currentGrant;
|
|
54424
|
-
_iterator = _createForOfIteratorHelper$
|
|
54466
|
+
_iterator = _createForOfIteratorHelper$u(declaredTools);
|
|
54425
54467
|
try {
|
|
54426
54468
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
54427
54469
|
tool = _step.value;
|
|
@@ -54581,7 +54623,7 @@ var PermissionsTab = function PermissionsTab(_ref) {
|
|
|
54581
54623
|
}
|
|
54582
54624
|
}
|
|
54583
54625
|
targets = labels.length > 0 ? labels : [serverName];
|
|
54584
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
54626
|
+
_iterator2 = _createForOfIteratorHelper$u(targets);
|
|
54585
54627
|
_context8.prev = 1;
|
|
54586
54628
|
_iterator2.s();
|
|
54587
54629
|
case 2:
|
|
@@ -54637,7 +54679,7 @@ var PermissionsTab = function PermissionsTab(_ref) {
|
|
|
54637
54679
|
case 0:
|
|
54638
54680
|
setBusy(true);
|
|
54639
54681
|
_context9.prev = 1;
|
|
54640
|
-
_iterator3 = _createForOfIteratorHelper$
|
|
54682
|
+
_iterator3 = _createForOfIteratorHelper$u(filteredRows);
|
|
54641
54683
|
_context9.prev = 2;
|
|
54642
54684
|
_iterator3.s();
|
|
54643
54685
|
case 3:
|
|
@@ -54696,7 +54738,7 @@ var PermissionsTab = function PermissionsTab(_ref) {
|
|
|
54696
54738
|
case 0:
|
|
54697
54739
|
setBusy(true);
|
|
54698
54740
|
_context0.prev = 1;
|
|
54699
|
-
_iterator4 = _createForOfIteratorHelper$
|
|
54741
|
+
_iterator4 = _createForOfIteratorHelper$u(filteredRows);
|
|
54700
54742
|
_context0.prev = 2;
|
|
54701
54743
|
_iterator4.s();
|
|
54702
54744
|
case 3:
|
|
@@ -55592,9 +55634,9 @@ var BotsTab = function BotsTab(_ref2) {
|
|
|
55592
55634
|
});
|
|
55593
55635
|
};
|
|
55594
55636
|
|
|
55595
|
-
function _createForOfIteratorHelper$
|
|
55596
|
-
function _unsupportedIterableToArray$
|
|
55597
|
-
function _arrayLikeToArray$
|
|
55637
|
+
function _createForOfIteratorHelper$t(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$t(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
55638
|
+
function _unsupportedIterableToArray$t(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$t(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$t(r, a) : void 0; } }
|
|
55639
|
+
function _arrayLikeToArray$t(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
55598
55640
|
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; }
|
|
55599
55641
|
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; }
|
|
55600
55642
|
var ConfigTab = function ConfigTab(_ref) {
|
|
@@ -55753,7 +55795,7 @@ var DashboardConfigModal = function DashboardConfigModal(_ref2) {
|
|
|
55753
55795
|
};
|
|
55754
55796
|
if (!appProviders) return byType;
|
|
55755
55797
|
if (Array.isArray(appProviders)) {
|
|
55756
|
-
var _iterator = _createForOfIteratorHelper$
|
|
55798
|
+
var _iterator = _createForOfIteratorHelper$t(appProviders),
|
|
55757
55799
|
_step;
|
|
55758
55800
|
try {
|
|
55759
55801
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -55819,7 +55861,7 @@ var DashboardConfigModal = function DashboardConfigModal(_ref2) {
|
|
|
55819
55861
|
});
|
|
55820
55862
|
}
|
|
55821
55863
|
if (Array.isArray(workspace === null || workspace === void 0 ? void 0 : workspace.pages)) {
|
|
55822
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
55864
|
+
var _iterator2 = _createForOfIteratorHelper$t(workspace.pages),
|
|
55823
55865
|
_step2;
|
|
55824
55866
|
try {
|
|
55825
55867
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -55846,7 +55888,7 @@ var DashboardConfigModal = function DashboardConfigModal(_ref2) {
|
|
|
55846
55888
|
var visitedByLocation = new WeakSet();
|
|
55847
55889
|
var _collect = function collect(items, location) {
|
|
55848
55890
|
if (!Array.isArray(items)) return;
|
|
55849
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
55891
|
+
var _iterator3 = _createForOfIteratorHelper$t(items),
|
|
55850
55892
|
_step3;
|
|
55851
55893
|
try {
|
|
55852
55894
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -55947,7 +55989,7 @@ var DashboardConfigModal = function DashboardConfigModal(_ref2) {
|
|
|
55947
55989
|
}
|
|
55948
55990
|
if (stagedListeners.adds.length > 0) {
|
|
55949
55991
|
// Append; avoid duplicates against current state.
|
|
55950
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
55992
|
+
var _iterator4 = _createForOfIteratorHelper$t(stagedListeners.adds),
|
|
55951
55993
|
_step4;
|
|
55952
55994
|
try {
|
|
55953
55995
|
var _loop = function _loop() {
|
|
@@ -55971,7 +56013,7 @@ var DashboardConfigModal = function DashboardConfigModal(_ref2) {
|
|
|
55971
56013
|
}
|
|
55972
56014
|
if (orphans.length === 0) return next;
|
|
55973
56015
|
var orphanIndex = new Map();
|
|
55974
|
-
var _iterator5 = _createForOfIteratorHelper$
|
|
56016
|
+
var _iterator5 = _createForOfIteratorHelper$t(orphans),
|
|
55975
56017
|
_step5;
|
|
55976
56018
|
try {
|
|
55977
56019
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
@@ -56013,7 +56055,7 @@ var DashboardConfigModal = function DashboardConfigModal(_ref2) {
|
|
|
56013
56055
|
function stagePrefFieldForAll(targetWidgets, key, value) {
|
|
56014
56056
|
setStagedPrefs(function (prev) {
|
|
56015
56057
|
var next = _objectSpread$B({}, prev);
|
|
56016
|
-
var _iterator6 = _createForOfIteratorHelper$
|
|
56058
|
+
var _iterator6 = _createForOfIteratorHelper$t(targetWidgets),
|
|
56017
56059
|
_step6;
|
|
56018
56060
|
try {
|
|
56019
56061
|
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
@@ -56058,7 +56100,7 @@ var DashboardConfigModal = function DashboardConfigModal(_ref2) {
|
|
|
56058
56100
|
});
|
|
56059
56101
|
setStaged(function (prev) {
|
|
56060
56102
|
var next = _objectSpread$B({}, prev);
|
|
56061
|
-
var _iterator7 = _createForOfIteratorHelper$
|
|
56103
|
+
var _iterator7 = _createForOfIteratorHelper$t(affected),
|
|
56062
56104
|
_step7;
|
|
56063
56105
|
try {
|
|
56064
56106
|
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
@@ -56907,7 +56949,7 @@ function ListenersTab(_ref1) {
|
|
|
56907
56949
|
// Receiver lookup (by composite key) for label resolution in chips.
|
|
56908
56950
|
var receiverByKey = React.useMemo(function () {
|
|
56909
56951
|
var m = new Map();
|
|
56910
|
-
var _iterator8 = _createForOfIteratorHelper$
|
|
56952
|
+
var _iterator8 = _createForOfIteratorHelper$t(receivers),
|
|
56911
56953
|
_step8;
|
|
56912
56954
|
try {
|
|
56913
56955
|
for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
|
|
@@ -57005,7 +57047,7 @@ function HandlersColumn(_ref11) {
|
|
|
57005
57047
|
onSelectHandler = _ref11.onSelectHandler;
|
|
57006
57048
|
var countsByHandler = React.useMemo(function () {
|
|
57007
57049
|
var m = new Map();
|
|
57008
|
-
var _iterator9 = _createForOfIteratorHelper$
|
|
57050
|
+
var _iterator9 = _createForOfIteratorHelper$t(myWiring),
|
|
57009
57051
|
_step9;
|
|
57010
57052
|
try {
|
|
57011
57053
|
for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
|
|
@@ -57082,7 +57124,7 @@ function EventsColumn(_ref12) {
|
|
|
57082
57124
|
var wiredHere = React.useMemo(function () {
|
|
57083
57125
|
var seen = new Set();
|
|
57084
57126
|
var out = [];
|
|
57085
|
-
var _iterator0 = _createForOfIteratorHelper$
|
|
57127
|
+
var _iterator0 = _createForOfIteratorHelper$t(myWiring),
|
|
57086
57128
|
_step0;
|
|
57087
57129
|
try {
|
|
57088
57130
|
for (_iterator0.s(); !(_step0 = _iterator0.n()).done;) {
|
|
@@ -57733,9 +57775,9 @@ var BotChat = function BotChat(_ref) {
|
|
|
57733
57775
|
});
|
|
57734
57776
|
};
|
|
57735
57777
|
|
|
57736
|
-
function _createForOfIteratorHelper$
|
|
57737
|
-
function _unsupportedIterableToArray$
|
|
57738
|
-
function _arrayLikeToArray$
|
|
57778
|
+
function _createForOfIteratorHelper$s(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$s(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; } } }; }
|
|
57779
|
+
function _unsupportedIterableToArray$s(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$s(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$s(r, a) : void 0; } }
|
|
57780
|
+
function _arrayLikeToArray$s(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; }
|
|
57739
57781
|
/**
|
|
57740
57782
|
* botSummary — what the Bots page shows about a bot (app-navigation PRD
|
|
57741
57783
|
* NAV-006): its widget-style name, avatar colour, providers + tools, each
|
|
@@ -57769,7 +57811,7 @@ function avatarColor(bot) {
|
|
|
57769
57811
|
/** Each bot's newest run, from `listRecentRuns` (newest first). */
|
|
57770
57812
|
function lastRunsByBot(recent) {
|
|
57771
57813
|
var out = {};
|
|
57772
|
-
var _iterator = _createForOfIteratorHelper$
|
|
57814
|
+
var _iterator = _createForOfIteratorHelper$s(recent || []),
|
|
57773
57815
|
_step;
|
|
57774
57816
|
try {
|
|
57775
57817
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -57820,9 +57862,9 @@ var BotAvatar = function BotAvatar(_ref) {
|
|
|
57820
57862
|
|
|
57821
57863
|
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; }
|
|
57822
57864
|
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; }
|
|
57823
|
-
function _createForOfIteratorHelper$
|
|
57824
|
-
function _unsupportedIterableToArray$
|
|
57825
|
-
function _arrayLikeToArray$
|
|
57865
|
+
function _createForOfIteratorHelper$r(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$r(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; } } }; }
|
|
57866
|
+
function _unsupportedIterableToArray$r(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$r(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$r(r, a) : void 0; } }
|
|
57867
|
+
function _arrayLikeToArray$r(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; }
|
|
57826
57868
|
var BOT_EVENT_RE = /^bot:(.+)\[([^\]]+)\]\.(.+)$/;
|
|
57827
57869
|
var slugify = function slugify(name) {
|
|
57828
57870
|
return String(name || "").toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "") || "bot";
|
|
@@ -57880,13 +57922,13 @@ function diagramEdges() {
|
|
|
57880
57922
|
}));
|
|
57881
57923
|
if (lead) ids["delete"](lead.id);
|
|
57882
57924
|
var edges = [];
|
|
57883
|
-
var _iterator = _createForOfIteratorHelper$
|
|
57925
|
+
var _iterator = _createForOfIteratorHelper$r(members || []),
|
|
57884
57926
|
_step;
|
|
57885
57927
|
try {
|
|
57886
57928
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
57887
57929
|
var to = _step.value;
|
|
57888
57930
|
if (!to || !ids.has(to.id)) continue;
|
|
57889
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
57931
|
+
var _iterator2 = _createForOfIteratorHelper$r(botSubs(to)),
|
|
57890
57932
|
_step2;
|
|
57891
57933
|
try {
|
|
57892
57934
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -57948,12 +57990,12 @@ function runsAfter(bot) {
|
|
|
57948
57990
|
function thenTriggers(botId) {
|
|
57949
57991
|
var members = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
57950
57992
|
var out = [];
|
|
57951
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
57993
|
+
var _iterator3 = _createForOfIteratorHelper$r(members || []),
|
|
57952
57994
|
_step3;
|
|
57953
57995
|
try {
|
|
57954
57996
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
57955
57997
|
var b = _step3.value;
|
|
57956
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
57998
|
+
var _iterator4 = _createForOfIteratorHelper$r(botSubs(b)),
|
|
57957
57999
|
_step4;
|
|
57958
58000
|
try {
|
|
57959
58001
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
@@ -58040,7 +58082,7 @@ function diagramLayout(_ref2) {
|
|
|
58040
58082
|
function loopEdges() {
|
|
58041
58083
|
var edges = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
58042
58084
|
var next = new Map();
|
|
58043
|
-
var _iterator5 = _createForOfIteratorHelper$
|
|
58085
|
+
var _iterator5 = _createForOfIteratorHelper$r(edges),
|
|
58044
58086
|
_step5;
|
|
58045
58087
|
try {
|
|
58046
58088
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
@@ -58061,7 +58103,7 @@ function loopEdges() {
|
|
|
58061
58103
|
if (id === goal) return true;
|
|
58062
58104
|
if (seen.has(id)) continue;
|
|
58063
58105
|
seen.add(id);
|
|
58064
|
-
var _iterator6 = _createForOfIteratorHelper$
|
|
58106
|
+
var _iterator6 = _createForOfIteratorHelper$r(next.get(id) || []),
|
|
58065
58107
|
_step6;
|
|
58066
58108
|
try {
|
|
58067
58109
|
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
@@ -58340,9 +58382,9 @@ var TriggerPopover = function TriggerPopover(_ref) {
|
|
|
58340
58382
|
});
|
|
58341
58383
|
};
|
|
58342
58384
|
|
|
58343
|
-
function _createForOfIteratorHelper$
|
|
58344
|
-
function _unsupportedIterableToArray$
|
|
58345
|
-
function _arrayLikeToArray$
|
|
58385
|
+
function _createForOfIteratorHelper$q(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$q(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; } } }; }
|
|
58386
|
+
function _unsupportedIterableToArray$q(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$q(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$q(r, a) : void 0; } }
|
|
58387
|
+
function _arrayLikeToArray$q(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; }
|
|
58346
58388
|
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; }
|
|
58347
58389
|
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; }
|
|
58348
58390
|
var CARD_H = 80;
|
|
@@ -58512,7 +58554,7 @@ var TeamChart = function TeamChart(_ref) {
|
|
|
58512
58554
|
return pos[b.id].x + layout.cardW / 2;
|
|
58513
58555
|
});
|
|
58514
58556
|
teamLines.push("M".concat(Math.min.apply(Math, _toConsumableArray(xs).concat([lx])), ",").concat(layout.busY, " H").concat(Math.max.apply(Math, _toConsumableArray(xs).concat([lx]))));
|
|
58515
|
-
var _iterator = _createForOfIteratorHelper$
|
|
58557
|
+
var _iterator = _createForOfIteratorHelper$q(firstRow),
|
|
58516
58558
|
_step;
|
|
58517
58559
|
try {
|
|
58518
58560
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -62041,9 +62083,9 @@ function usePendingApprovalCount() {
|
|
|
62041
62083
|
|
|
62042
62084
|
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; }
|
|
62043
62085
|
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; }
|
|
62044
|
-
function _createForOfIteratorHelper$
|
|
62045
|
-
function _unsupportedIterableToArray$
|
|
62046
|
-
function _arrayLikeToArray$
|
|
62086
|
+
function _createForOfIteratorHelper$p(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$p(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; } } }; }
|
|
62087
|
+
function _unsupportedIterableToArray$p(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$p(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$p(r, a) : void 0; } }
|
|
62088
|
+
function _arrayLikeToArray$p(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; }
|
|
62047
62089
|
function classOf(provider) {
|
|
62048
62090
|
return provider && provider.providerClass || "credential";
|
|
62049
62091
|
}
|
|
@@ -62165,7 +62207,7 @@ function providerUsage(name, _ref2) {
|
|
|
62165
62207
|
bots = _ref2$bots === void 0 ? [] : _ref2$bots,
|
|
62166
62208
|
bindingsFor = _ref2.bindingsFor;
|
|
62167
62209
|
var dashboards = [];
|
|
62168
|
-
var _iterator = _createForOfIteratorHelper$
|
|
62210
|
+
var _iterator = _createForOfIteratorHelper$p(workspaces || []),
|
|
62169
62211
|
_step;
|
|
62170
62212
|
try {
|
|
62171
62213
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -62248,9 +62290,9 @@ function groupProviders(providers) {
|
|
|
62248
62290
|
});
|
|
62249
62291
|
}
|
|
62250
62292
|
|
|
62251
|
-
function _createForOfIteratorHelper$
|
|
62252
|
-
function _unsupportedIterableToArray$
|
|
62253
|
-
function _arrayLikeToArray$
|
|
62293
|
+
function _createForOfIteratorHelper$o(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$o(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; } } }; }
|
|
62294
|
+
function _unsupportedIterableToArray$o(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$o(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$o(r, a) : void 0; } }
|
|
62295
|
+
function _arrayLikeToArray$o(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; }
|
|
62254
62296
|
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; }
|
|
62255
62297
|
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; }
|
|
62256
62298
|
var getWidgetRequirements$1 = function getWidgetRequirements(name) {
|
|
@@ -62328,7 +62370,7 @@ function useProviderStatus(_ref) {
|
|
|
62328
62370
|
};
|
|
62329
62371
|
var checkRunning = React.useCallback(function () {
|
|
62330
62372
|
if (!dashApi || typeof dashApi.mcpGetServerStatus !== "function") return;
|
|
62331
|
-
var _iterator = _createForOfIteratorHelper$
|
|
62373
|
+
var _iterator = _createForOfIteratorHelper$o(mcpNames ? mcpNames.split("\n") : []),
|
|
62332
62374
|
_step;
|
|
62333
62375
|
try {
|
|
62334
62376
|
var _loop = function _loop() {
|
|
@@ -62518,9 +62560,9 @@ var NewDashboardChooser = function NewDashboardChooser(_ref2) {
|
|
|
62518
62560
|
|
|
62519
62561
|
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; }
|
|
62520
62562
|
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; }
|
|
62521
|
-
function _createForOfIteratorHelper$
|
|
62522
|
-
function _unsupportedIterableToArray$
|
|
62523
|
-
function _arrayLikeToArray$
|
|
62563
|
+
function _createForOfIteratorHelper$n(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$n(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
62564
|
+
function _unsupportedIterableToArray$n(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$n(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$n(r, a) : void 0; } }
|
|
62565
|
+
function _arrayLikeToArray$n(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
62524
62566
|
var DASHBOARD_TAGS = ["productivity", "monitoring", "analytics", "communication", "developer", "sales", "marketing", "finance", "project-management", "social", "news", "utilities"];
|
|
62525
62567
|
var BUMP_OPTIONS$1 = [{
|
|
62526
62568
|
value: "patch",
|
|
@@ -62594,7 +62636,7 @@ function collectComponentConfigs() {
|
|
|
62594
62636
|
// fixed "reference" entry.
|
|
62595
62637
|
function seedSelections(plan, dashboardVisibility) {
|
|
62596
62638
|
var selections = {};
|
|
62597
|
-
var _iterator = _createForOfIteratorHelper$
|
|
62639
|
+
var _iterator = _createForOfIteratorHelper$n(plan.widgets || []),
|
|
62598
62640
|
_step;
|
|
62599
62641
|
try {
|
|
62600
62642
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -62939,7 +62981,7 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
|
|
|
62939
62981
|
React.useEffect(function () {
|
|
62940
62982
|
if (!isOpen || step !== 5 || !plan || defaultsLoading) return;
|
|
62941
62983
|
var packagesToScan = [];
|
|
62942
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
62984
|
+
var _iterator2 = _createForOfIteratorHelper$n(plan.widgets || []),
|
|
62943
62985
|
_step2;
|
|
62944
62986
|
try {
|
|
62945
62987
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -62978,7 +63020,7 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
|
|
|
62978
63020
|
})).then(function (results) {
|
|
62979
63021
|
setDefaultsByPackage(function (prev) {
|
|
62980
63022
|
var next = _objectSpread$r({}, prev);
|
|
62981
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
63023
|
+
var _iterator3 = _createForOfIteratorHelper$n(results),
|
|
62982
63024
|
_step3;
|
|
62983
63025
|
try {
|
|
62984
63026
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -63071,7 +63113,7 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
|
|
|
63071
63113
|
break;
|
|
63072
63114
|
}
|
|
63073
63115
|
seenPackages = new Set();
|
|
63074
|
-
_iterator4 = _createForOfIteratorHelper$
|
|
63116
|
+
_iterator4 = _createForOfIteratorHelper$n(plan.widgets || []);
|
|
63075
63117
|
_context2.prev = 4;
|
|
63076
63118
|
_iterator4.s();
|
|
63077
63119
|
case 5:
|
|
@@ -63985,7 +64027,7 @@ function DependencyTable(_ref4) {
|
|
|
63985
64027
|
// row. Each row shows the list of component widgets that live inside it
|
|
63986
64028
|
// so the user knows what's getting published.
|
|
63987
64029
|
var byKey = new Map();
|
|
63988
|
-
var _iterator5 = _createForOfIteratorHelper$
|
|
64030
|
+
var _iterator5 = _createForOfIteratorHelper$n(plan.widgets || []),
|
|
63989
64031
|
_step6;
|
|
63990
64032
|
try {
|
|
63991
64033
|
for (_iterator5.s(); !(_step6 = _iterator5.n()).done;) {
|
|
@@ -64156,7 +64198,7 @@ function DefaultsReviewList(_ref6) {
|
|
|
64156
64198
|
// stays aligned with Dependencies — no surprises about WHICH
|
|
64157
64199
|
// package's defaults you're editing.
|
|
64158
64200
|
var rows = [];
|
|
64159
|
-
var _iterator6 = _createForOfIteratorHelper$
|
|
64201
|
+
var _iterator6 = _createForOfIteratorHelper$n((plan === null || plan === void 0 ? void 0 : plan.widgets) || []),
|
|
64160
64202
|
_step7;
|
|
64161
64203
|
try {
|
|
64162
64204
|
for (_iterator6.s(); !(_step7 = _iterator6.n()).done;) {
|
|
@@ -64365,9 +64407,9 @@ function dashboardSummary(workspace) {
|
|
|
64365
64407
|
};
|
|
64366
64408
|
}
|
|
64367
64409
|
|
|
64368
|
-
function _createForOfIteratorHelper$
|
|
64369
|
-
function _unsupportedIterableToArray$
|
|
64370
|
-
function _arrayLikeToArray$
|
|
64410
|
+
function _createForOfIteratorHelper$m(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$m(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
64411
|
+
function _unsupportedIterableToArray$m(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$m(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$m(r, a) : void 0; } }
|
|
64412
|
+
function _arrayLikeToArray$m(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
64371
64413
|
|
|
64372
64414
|
/**
|
|
64373
64415
|
* useApprovalsByDashboard — how many bot approvals are waiting on each
|
|
@@ -64410,7 +64452,7 @@ function useApprovalsByDashboard() {
|
|
|
64410
64452
|
return [bot.id, bot.workspaceId];
|
|
64411
64453
|
}));
|
|
64412
64454
|
next = {};
|
|
64413
|
-
_iterator = _createForOfIteratorHelper$
|
|
64455
|
+
_iterator = _createForOfIteratorHelper$m(approvals || []);
|
|
64414
64456
|
_context.prev = 3;
|
|
64415
64457
|
_iterator.s();
|
|
64416
64458
|
case 4:
|
|
@@ -64485,13 +64527,13 @@ function useApprovalsByDashboard() {
|
|
|
64485
64527
|
}, [counts]);
|
|
64486
64528
|
}
|
|
64487
64529
|
|
|
64488
|
-
function _createForOfIteratorHelper$
|
|
64489
|
-
function _unsupportedIterableToArray$
|
|
64490
|
-
function _arrayLikeToArray$
|
|
64530
|
+
function _createForOfIteratorHelper$l(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$l(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
64531
|
+
function _unsupportedIterableToArray$l(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$l(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$l(r, a) : void 0; } }
|
|
64532
|
+
function _arrayLikeToArray$l(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
64491
64533
|
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; }
|
|
64492
64534
|
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; }
|
|
64493
64535
|
var UNCATEGORIZED = "Uncategorized";
|
|
64494
|
-
var plural$
|
|
64536
|
+
var plural$5 = function plural(n, one) {
|
|
64495
64537
|
var many = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "".concat(one, "s");
|
|
64496
64538
|
return "".concat(n, " ").concat(n === 1 ? one : many);
|
|
64497
64539
|
};
|
|
@@ -64507,10 +64549,10 @@ var getWidgetRequirements = function getWidgetRequirements(name) {
|
|
|
64507
64549
|
function attentionText(unresolved, approvals) {
|
|
64508
64550
|
var parts = [];
|
|
64509
64551
|
if (unresolved > 0) {
|
|
64510
|
-
parts.push("".concat(plural$
|
|
64552
|
+
parts.push("".concat(plural$5(unresolved, "provider"), " need").concat(unresolved === 1 ? "s" : "", " setup"));
|
|
64511
64553
|
}
|
|
64512
64554
|
if (approvals > 0) {
|
|
64513
|
-
parts.push("".concat(plural$
|
|
64555
|
+
parts.push("".concat(plural$5(approvals, "bot"), " need").concat(approvals === 1 ? "s" : "", " approval"));
|
|
64514
64556
|
}
|
|
64515
64557
|
return parts.join(" · ");
|
|
64516
64558
|
}
|
|
@@ -64892,7 +64934,7 @@ var DashboardDetailPanel = function DashboardDetailPanel(_ref2) {
|
|
|
64892
64934
|
children: "None"
|
|
64893
64935
|
}), summary.unresolvedProviders > 0 ? /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
64894
64936
|
className: "text-xs text-amber-400",
|
|
64895
|
-
children: [plural$
|
|
64937
|
+
children: [plural$5(summary.unresolvedProviders, "required provider"), " not set \u2014 fix in Dashboard Config."]
|
|
64896
64938
|
}) : null]
|
|
64897
64939
|
})]
|
|
64898
64940
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
@@ -65010,7 +65052,7 @@ var DashboardsPage = function DashboardsPage(_ref5) {
|
|
|
65010
65052
|
setDeleteTarget = _useState22[1];
|
|
65011
65053
|
var summaries = React.useMemo(function () {
|
|
65012
65054
|
var map = new Map();
|
|
65013
|
-
var _iterator = _createForOfIteratorHelper$
|
|
65055
|
+
var _iterator = _createForOfIteratorHelper$l(workspaces),
|
|
65014
65056
|
_step;
|
|
65015
65057
|
try {
|
|
65016
65058
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -65216,7 +65258,7 @@ var DashboardsPage = function DashboardsPage(_ref5) {
|
|
|
65216
65258
|
children: ws.name || "Untitled"
|
|
65217
65259
|
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
65218
65260
|
className: "text-xs ".concat(muted),
|
|
65219
|
-
children: s ? "".concat(plural$
|
|
65261
|
+
children: s ? "".concat(plural$5(s.pages.length, "page"), " \xB7 ").concat(plural$5(s.widgets.length, "widget")) : ""
|
|
65220
65262
|
})]
|
|
65221
65263
|
}), needs ? /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
65222
65264
|
"data-testid": "dashboard-attention",
|
|
@@ -66140,16 +66182,16 @@ function getWidgetPreviewRenderer() {
|
|
|
66140
66182
|
|
|
66141
66183
|
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; }
|
|
66142
66184
|
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; }
|
|
66143
|
-
function _createForOfIteratorHelper$
|
|
66144
|
-
function _unsupportedIterableToArray$
|
|
66145
|
-
function _arrayLikeToArray$
|
|
66185
|
+
function _createForOfIteratorHelper$k(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$k(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
66186
|
+
function _unsupportedIterableToArray$k(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$k(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$k(r, a) : void 0; } }
|
|
66187
|
+
function _arrayLikeToArray$k(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
66146
66188
|
function previewProviders(widget, appProviders) {
|
|
66147
66189
|
var chosen = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
66148
66190
|
var needs = [];
|
|
66149
66191
|
var selected = {};
|
|
66150
66192
|
var missing = null;
|
|
66151
66193
|
var unchosen = null;
|
|
66152
|
-
var _iterator = _createForOfIteratorHelper$
|
|
66194
|
+
var _iterator = _createForOfIteratorHelper$k(getUserConfigurableProviders(widget && widget.providers)),
|
|
66153
66195
|
_step;
|
|
66154
66196
|
try {
|
|
66155
66197
|
var _loop = function _loop() {
|
|
@@ -66481,9 +66523,9 @@ var WidgetPreview = function WidgetPreview(_ref5) {
|
|
|
66481
66523
|
});
|
|
66482
66524
|
};
|
|
66483
66525
|
|
|
66484
|
-
function _createForOfIteratorHelper$
|
|
66485
|
-
function _unsupportedIterableToArray$
|
|
66486
|
-
function _arrayLikeToArray$
|
|
66526
|
+
function _createForOfIteratorHelper$j(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$j(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
66527
|
+
function _unsupportedIterableToArray$j(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$j(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$j(r, a) : void 0; } }
|
|
66528
|
+
function _arrayLikeToArray$j(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
66487
66529
|
|
|
66488
66530
|
/** "@scope/name" for a registry package record ({ scope, name } or a full name). */
|
|
66489
66531
|
function publishedId(pkg) {
|
|
@@ -66548,7 +66590,7 @@ function useRegistryIdentity() {
|
|
|
66548
66590
|
case 6:
|
|
66549
66591
|
result = _context.sent;
|
|
66550
66592
|
versions = {};
|
|
66551
|
-
_iterator = _createForOfIteratorHelper$
|
|
66593
|
+
_iterator = _createForOfIteratorHelper$j(result && result.packages || []);
|
|
66552
66594
|
try {
|
|
66553
66595
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
66554
66596
|
pkg = _step.value;
|
|
@@ -66690,9 +66732,9 @@ var InstallWidgetPicker = function InstallWidgetPicker(_ref2) {
|
|
|
66690
66732
|
|
|
66691
66733
|
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; }
|
|
66692
66734
|
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; }
|
|
66693
|
-
function _createForOfIteratorHelper$
|
|
66694
|
-
function _unsupportedIterableToArray$
|
|
66695
|
-
function _arrayLikeToArray$
|
|
66735
|
+
function _createForOfIteratorHelper$i(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$i(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
66736
|
+
function _unsupportedIterableToArray$i(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$i(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$i(r, a) : void 0; } }
|
|
66737
|
+
function _arrayLikeToArray$i(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
66696
66738
|
var DiscoverWidgetsDetail = function DiscoverWidgetsDetail(_ref) {
|
|
66697
66739
|
var onBack = _ref.onBack;
|
|
66698
66740
|
var _useContext = React.useContext(DashReact.ThemeContext),
|
|
@@ -66799,7 +66841,7 @@ var DiscoverWidgetsDetail = function DiscoverWidgetsDetail(_ref) {
|
|
|
66799
66841
|
case 1:
|
|
66800
66842
|
widgets = _context2.sent;
|
|
66801
66843
|
names = new Set();
|
|
66802
|
-
_iterator = _createForOfIteratorHelper$
|
|
66844
|
+
_iterator = _createForOfIteratorHelper$i(widgets);
|
|
66803
66845
|
try {
|
|
66804
66846
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
66805
66847
|
w = _step.value;
|
|
@@ -66904,12 +66946,12 @@ var DiscoverWidgetsDetail = function DiscoverWidgetsDetail(_ref) {
|
|
|
66904
66946
|
var checkToolConflicts = function checkToolConflicts(widget) {
|
|
66905
66947
|
var conflicts = [];
|
|
66906
66948
|
var packageWidgets = widget.packageWidgets || [];
|
|
66907
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
66949
|
+
var _iterator2 = _createForOfIteratorHelper$i(packageWidgets),
|
|
66908
66950
|
_step2;
|
|
66909
66951
|
try {
|
|
66910
66952
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
66911
66953
|
var w = _step2.value;
|
|
66912
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
66954
|
+
var _iterator3 = _createForOfIteratorHelper$i(w.providers || []),
|
|
66913
66955
|
_step3;
|
|
66914
66956
|
try {
|
|
66915
66957
|
var _loop = function _loop() {
|
|
@@ -66922,7 +66964,7 @@ var DiscoverWidgetsDetail = function DiscoverWidgetsDetail(_ref) {
|
|
|
66922
66964
|
prov = _ref5[1];
|
|
66923
66965
|
return prov.type === p.type && prov.providerClass === "mcp" && prov.allowedTools;
|
|
66924
66966
|
});
|
|
66925
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
66967
|
+
var _iterator4 = _createForOfIteratorHelper$i(matchingProviders),
|
|
66926
66968
|
_step4;
|
|
66927
66969
|
try {
|
|
66928
66970
|
var _loop2 = function _loop2() {
|
|
@@ -68034,9 +68076,9 @@ var PublishWidgetModal = function PublishWidgetModal(_ref) {
|
|
|
68034
68076
|
});
|
|
68035
68077
|
};
|
|
68036
68078
|
|
|
68037
|
-
function _createForOfIteratorHelper$
|
|
68038
|
-
function _unsupportedIterableToArray$
|
|
68039
|
-
function _arrayLikeToArray$
|
|
68079
|
+
function _createForOfIteratorHelper$h(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$h(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
68080
|
+
function _unsupportedIterableToArray$h(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$h(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$h(r, a) : void 0; } }
|
|
68081
|
+
function _arrayLikeToArray$h(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
68040
68082
|
var UpdateAllWidgetsModal = function UpdateAllWidgetsModal(_ref) {
|
|
68041
68083
|
var isOpen = _ref.isOpen,
|
|
68042
68084
|
setIsOpen = _ref.setIsOpen,
|
|
@@ -68150,7 +68192,7 @@ var UpdateAllWidgetsModal = function UpdateAllWidgetsModal(_ref) {
|
|
|
68150
68192
|
if (!hasRun || isBatchUpdating) return null;
|
|
68151
68193
|
var done = 0;
|
|
68152
68194
|
var failed = 0;
|
|
68153
|
-
var _iterator = _createForOfIteratorHelper$
|
|
68195
|
+
var _iterator = _createForOfIteratorHelper$h(batchStatus),
|
|
68154
68196
|
_step;
|
|
68155
68197
|
try {
|
|
68156
68198
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -68660,9 +68702,9 @@ function deriveWidgetOwnership(_ref2) {
|
|
|
68660
68702
|
|
|
68661
68703
|
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; }
|
|
68662
68704
|
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; }
|
|
68663
|
-
function _createForOfIteratorHelper$
|
|
68664
|
-
function _unsupportedIterableToArray$
|
|
68665
|
-
function _arrayLikeToArray$
|
|
68705
|
+
function _createForOfIteratorHelper$g(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$g(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
68706
|
+
function _unsupportedIterableToArray$g(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$g(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$g(r, a) : void 0; } }
|
|
68707
|
+
function _arrayLikeToArray$g(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
68666
68708
|
var BUILT_IN = "Built-in";
|
|
68667
68709
|
var AI_BUILT = "AI-built";
|
|
68668
68710
|
var LOCAL = "Local";
|
|
@@ -68694,7 +68736,7 @@ function usageOf(componentNames, workspaces) {
|
|
|
68694
68736
|
var names = new Set(componentNames || []);
|
|
68695
68737
|
if (!names.size) return [];
|
|
68696
68738
|
var out = [];
|
|
68697
|
-
var _iterator = _createForOfIteratorHelper$
|
|
68739
|
+
var _iterator = _createForOfIteratorHelper$g(workspaces || []),
|
|
68698
68740
|
_step;
|
|
68699
68741
|
try {
|
|
68700
68742
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -68703,7 +68745,7 @@ function usageOf(componentNames, workspaces) {
|
|
|
68703
68745
|
return p.layout;
|
|
68704
68746
|
}) : [ws.layout];
|
|
68705
68747
|
var count = 0;
|
|
68706
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
68748
|
+
var _iterator2 = _createForOfIteratorHelper$g(layouts),
|
|
68707
68749
|
_step2;
|
|
68708
68750
|
try {
|
|
68709
68751
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -68761,7 +68803,7 @@ function widgetOrgs(widgets) {
|
|
|
68761
68803
|
_ref$username = _ref.username,
|
|
68762
68804
|
username = _ref$username === void 0 ? null : _ref$username;
|
|
68763
68805
|
var packages = new Map();
|
|
68764
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
68806
|
+
var _iterator3 = _createForOfIteratorHelper$g(widgets || []),
|
|
68765
68807
|
_step3;
|
|
68766
68808
|
try {
|
|
68767
68809
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -68797,7 +68839,7 @@ function widgetOrgs(widgets) {
|
|
|
68797
68839
|
if (!pkg.update && updates && updates.get) {
|
|
68798
68840
|
pkg.update = updates.get(w.name) || null;
|
|
68799
68841
|
}
|
|
68800
|
-
var _iterator5 = _createForOfIteratorHelper$
|
|
68842
|
+
var _iterator5 = _createForOfIteratorHelper$g(getUserConfigurableProviders(w.providers)),
|
|
68801
68843
|
_step5;
|
|
68802
68844
|
try {
|
|
68803
68845
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
@@ -68816,13 +68858,13 @@ function widgetOrgs(widgets) {
|
|
|
68816
68858
|
_iterator3.f();
|
|
68817
68859
|
}
|
|
68818
68860
|
var orgs = new Map();
|
|
68819
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
68861
|
+
var _iterator4 = _createForOfIteratorHelper$g(packages.values()),
|
|
68820
68862
|
_step4;
|
|
68821
68863
|
try {
|
|
68822
68864
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
68823
68865
|
var _pkg = _step4.value;
|
|
68824
68866
|
_pkg.widgetUsage = {};
|
|
68825
|
-
var _iterator6 = _createForOfIteratorHelper$
|
|
68867
|
+
var _iterator6 = _createForOfIteratorHelper$g(_pkg.widgets),
|
|
68826
68868
|
_step6;
|
|
68827
68869
|
try {
|
|
68828
68870
|
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
@@ -68914,7 +68956,7 @@ function filterOrgs(orgs) {
|
|
|
68914
68956
|
});
|
|
68915
68957
|
}
|
|
68916
68958
|
|
|
68917
|
-
var plural$
|
|
68959
|
+
var plural$4 = function plural(n, one) {
|
|
68918
68960
|
var many = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "".concat(one, "s");
|
|
68919
68961
|
return "".concat(n, " ").concat(n === 1 ? one : many);
|
|
68920
68962
|
};
|
|
@@ -69108,7 +69150,7 @@ var PackageDetail = function PackageDetail(_ref2) {
|
|
|
69108
69150
|
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
69109
69151
|
className: "flex flex-col gap-2 min-w-0",
|
|
69110
69152
|
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.SectionLabel, {
|
|
69111
|
-
text: "".concat(plural$
|
|
69153
|
+
text: "".concat(plural$4(pkg.widgets.length, "widget"), " in this package")
|
|
69112
69154
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
69113
69155
|
className: "flex flex-col gap-1",
|
|
69114
69156
|
children: pkg.widgets.map(function (w) {
|
|
@@ -69124,7 +69166,7 @@ var PackageDetail = function PackageDetail(_ref2) {
|
|
|
69124
69166
|
children: w.displayName || w.name
|
|
69125
69167
|
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
69126
69168
|
className: "text-xs flex-shrink-0 ".concat(muted),
|
|
69127
|
-
children: used ? "on ".concat(plural$
|
|
69169
|
+
children: used ? "on ".concat(plural$4(used, "dashboard")) : "not used"
|
|
69128
69170
|
}), pkg.isBuiltIn ? null : /*#__PURE__*/jsxRuntime.jsx(DashReact.Button3, {
|
|
69129
69171
|
title: "Preview",
|
|
69130
69172
|
size: "xs",
|
|
@@ -69617,12 +69659,12 @@ var WidgetsPage = function WidgetsPage(_ref5) {
|
|
|
69617
69659
|
var removeMessage = function removeMessage(pkg) {
|
|
69618
69660
|
if (!pkg) return "";
|
|
69619
69661
|
var n = pkg.widgets.length;
|
|
69620
|
-
var head = pkg.isDraft ? "This permanently deletes the draft and its files." : "This removes its ".concat(plural$
|
|
69662
|
+
var head = pkg.isDraft ? "This permanently deletes the draft and its files." : "This removes its ".concat(plural$4(n, "widget"), ".");
|
|
69621
69663
|
if (!pkg.usedOn.length) return head;
|
|
69622
69664
|
var names = pkg.usedOn.map(function (u) {
|
|
69623
69665
|
return u.workspaceName;
|
|
69624
69666
|
}).join(", ");
|
|
69625
|
-
return "".concat(head, " ").concat(n === 1 ? "It's" : "They're", " used on ").concat(plural$
|
|
69667
|
+
return "".concat(head, " ").concat(n === 1 ? "It's" : "They're", " used on ").concat(plural$4(pkg.usedOn.length, "dashboard"), " (").concat(names, "), which will show ").concat(n === 1 ? "it" : "them", " as missing.");
|
|
69626
69668
|
};
|
|
69627
69669
|
var detail;
|
|
69628
69670
|
if (mode === "picker" || mode === "result" && !install.result) {
|
|
@@ -69717,13 +69759,13 @@ var WidgetsPage = function WidgetsPage(_ref5) {
|
|
|
69717
69759
|
className: "text-xs ".concat(muted),
|
|
69718
69760
|
children: "Checking for updates\u2026"
|
|
69719
69761
|
}) : null, packagesWithUpdates.length ? /*#__PURE__*/jsxRuntime.jsx(DashReact.Button, {
|
|
69720
|
-
title: "".concat(plural$
|
|
69762
|
+
title: "".concat(plural$4(packagesWithUpdates.length, "update"), " \xB7 Update all"),
|
|
69721
69763
|
size: "sm",
|
|
69722
69764
|
onClick: function onClick() {
|
|
69723
69765
|
return setUpdateAllOpen(true);
|
|
69724
69766
|
}
|
|
69725
69767
|
}) : null, drafts.length ? /*#__PURE__*/jsxRuntime.jsx(DashReact.Button3, {
|
|
69726
|
-
title: "Clean up ".concat(plural$
|
|
69768
|
+
title: "Clean up ".concat(plural$4(drafts.length, "draft")),
|
|
69727
69769
|
size: "sm",
|
|
69728
69770
|
onClick: function onClick() {
|
|
69729
69771
|
return setDraftsTarget(drafts);
|
|
@@ -69774,7 +69816,7 @@ var WidgetsPage = function WidgetsPage(_ref5) {
|
|
|
69774
69816
|
children: label
|
|
69775
69817
|
}), /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
69776
69818
|
className: "text-xs truncate ".concat(muted),
|
|
69777
|
-
children: [plural$
|
|
69819
|
+
children: [plural$4(pkg.widgets.length, "widget"), pkg.version ? " \xB7 v".concat(pkg.version) : ""]
|
|
69778
69820
|
})]
|
|
69779
69821
|
}), pkg.update ? /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
69780
69822
|
"data-testid": "package-update",
|
|
@@ -69832,10 +69874,10 @@ var WidgetsPage = function WidgetsPage(_ref5) {
|
|
|
69832
69874
|
if (!open) setDraftsTarget(null);
|
|
69833
69875
|
},
|
|
69834
69876
|
title: "Clean up drafts?",
|
|
69835
|
-
message: draftsTarget ? "This permanently deletes ".concat(plural$
|
|
69877
|
+
message: draftsTarget ? "This permanently deletes ".concat(plural$4(draftsTarget.length, "in-progress widget"), " and their files: ").concat(draftsTarget.map(function (d) {
|
|
69836
69878
|
return d.displayName || d.name;
|
|
69837
69879
|
}).join(", "), ". This can't be undone.") : "",
|
|
69838
|
-
confirmLabel: isCleaning ? "Deleting…" : "Delete ".concat(plural$
|
|
69880
|
+
confirmLabel: isCleaning ? "Deleting…" : "Delete ".concat(plural$4((draftsTarget || []).length, "draft")),
|
|
69839
69881
|
variant: "danger",
|
|
69840
69882
|
onConfirm: confirmCleanup,
|
|
69841
69883
|
onCancel: function onCancel() {
|
|
@@ -70936,7 +70978,7 @@ var ThemePreview = function ThemePreview(_ref) {
|
|
|
70936
70978
|
});
|
|
70937
70979
|
};
|
|
70938
70980
|
|
|
70939
|
-
var plural$
|
|
70981
|
+
var plural$3 = function plural(n, one) {
|
|
70940
70982
|
var many = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "".concat(one, "s");
|
|
70941
70983
|
return "".concat(n, " ").concat(n === 1 ? one : many);
|
|
70942
70984
|
};
|
|
@@ -70960,7 +71002,7 @@ var VARIANTS = [{
|
|
|
70960
71002
|
|
|
70961
71003
|
/** "App theme" / "Used by 2 dashboards" / "Not in use". */
|
|
70962
71004
|
var usageText = function usageText(row) {
|
|
70963
|
-
return row.isApp ? "App theme" : row.usedBy.length ? "Used by ".concat(plural$
|
|
71005
|
+
return row.isApp ? "App theme" : row.usedBy.length ? "Used by ".concat(plural$3(row.usedBy.length, "dashboard")) : "Not in use";
|
|
70964
71006
|
};
|
|
70965
71007
|
|
|
70966
71008
|
/** One theme's details (the right-hand panel). */
|
|
@@ -71592,9 +71634,9 @@ var FoldersSection = function FoldersSection(_ref) {
|
|
|
71592
71634
|
|
|
71593
71635
|
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; }
|
|
71594
71636
|
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; }
|
|
71595
|
-
function _createForOfIteratorHelper$
|
|
71596
|
-
function _unsupportedIterableToArray$
|
|
71597
|
-
function _arrayLikeToArray$
|
|
71637
|
+
function _createForOfIteratorHelper$f(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$f(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
71638
|
+
function _unsupportedIterableToArray$f(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$f(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$f(r, a) : void 0; } }
|
|
71639
|
+
function _arrayLikeToArray$f(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
71598
71640
|
/**
|
|
71599
71641
|
* applyBulkProviderBindings — pure utility for the dashboard config
|
|
71600
71642
|
* bulk-edit modal's Save path.
|
|
@@ -71652,7 +71694,7 @@ function applyToLayoutArray(layout, changesByWidgetId) {
|
|
|
71652
71694
|
var next = layout.map(function (item) {
|
|
71653
71695
|
if (!item) return item;
|
|
71654
71696
|
var matchedChanges = null;
|
|
71655
|
-
var _iterator = _createForOfIteratorHelper$
|
|
71697
|
+
var _iterator = _createForOfIteratorHelper$f(changesByWidgetId.entries()),
|
|
71656
71698
|
_step;
|
|
71657
71699
|
try {
|
|
71658
71700
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -71702,7 +71744,7 @@ function applyBulkProviderBindings(workspace, changes) {
|
|
|
71702
71744
|
// Group changes by widgetId so we can match each layout item once
|
|
71703
71745
|
// and apply every type-level change on it in a single pass.
|
|
71704
71746
|
var changesByWidgetId = new Map();
|
|
71705
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
71747
|
+
var _iterator2 = _createForOfIteratorHelper$f(changes),
|
|
71706
71748
|
_step2;
|
|
71707
71749
|
try {
|
|
71708
71750
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -71724,7 +71766,7 @@ function applyBulkProviderBindings(workspace, changes) {
|
|
|
71724
71766
|
// ── Layer 2: workspace.selectedProviders ─────────────────────────
|
|
71725
71767
|
var nextSelectedProviders = _objectSpread$i({}, workspace.selectedProviders || {});
|
|
71726
71768
|
var layer2Changed = false;
|
|
71727
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
71769
|
+
var _iterator3 = _createForOfIteratorHelper$f(changesByWidgetId.entries()),
|
|
71728
71770
|
_step3;
|
|
71729
71771
|
try {
|
|
71730
71772
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -72091,9 +72133,9 @@ function reconcileWorkspaceAfterLayoutChange(workspace) {
|
|
|
72091
72133
|
|
|
72092
72134
|
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; }
|
|
72093
72135
|
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; }
|
|
72094
|
-
function _createForOfIteratorHelper$
|
|
72095
|
-
function _unsupportedIterableToArray$
|
|
72096
|
-
function _arrayLikeToArray$
|
|
72136
|
+
function _createForOfIteratorHelper$e(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$e(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
72137
|
+
function _unsupportedIterableToArray$e(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$e(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$e(r, a) : void 0; } }
|
|
72138
|
+
function _arrayLikeToArray$e(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
72097
72139
|
var explicitBinding = function explicitBinding(workspace, binding) {
|
|
72098
72140
|
return binding.layoutItem && binding.layoutItem.selectedProviders && binding.layoutItem.selectedProviders[binding.providerType] || binding.widgetId != null && workspace.selectedProviders && workspace.selectedProviders[binding.widgetId] && workspace.selectedProviders[binding.widgetId][binding.providerType] || null;
|
|
72099
72141
|
};
|
|
@@ -72133,7 +72175,7 @@ function providerUseModel(_ref) {
|
|
|
72133
72175
|
return !!(s && s.key === "needsSetup");
|
|
72134
72176
|
};
|
|
72135
72177
|
var dashboards = [];
|
|
72136
|
-
var _iterator = _createForOfIteratorHelper$
|
|
72178
|
+
var _iterator = _createForOfIteratorHelper$e(workspaces || []),
|
|
72137
72179
|
_step;
|
|
72138
72180
|
try {
|
|
72139
72181
|
var _loop = function _loop() {
|
|
@@ -72219,13 +72261,13 @@ function planProviderUse(model) {
|
|
|
72219
72261
|
};
|
|
72220
72262
|
var workspaces = [];
|
|
72221
72263
|
var count = 0;
|
|
72222
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
72264
|
+
var _iterator2 = _createForOfIteratorHelper$e(model.dashboards),
|
|
72223
72265
|
_step2;
|
|
72224
72266
|
try {
|
|
72225
72267
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
72226
72268
|
var d = _step2.value;
|
|
72227
72269
|
var changes = [];
|
|
72228
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
72270
|
+
var _iterator4 = _createForOfIteratorHelper$e(d.rows),
|
|
72229
72271
|
_step4;
|
|
72230
72272
|
try {
|
|
72231
72273
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
@@ -72256,7 +72298,7 @@ function planProviderUse(model) {
|
|
|
72256
72298
|
_iterator2.f();
|
|
72257
72299
|
}
|
|
72258
72300
|
var bots = [];
|
|
72259
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
72301
|
+
var _iterator3 = _createForOfIteratorHelper$e(model.bots),
|
|
72260
72302
|
_step3;
|
|
72261
72303
|
try {
|
|
72262
72304
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -72319,7 +72361,7 @@ function _applyProviderUse() {
|
|
|
72319
72361
|
bots: 0,
|
|
72320
72362
|
failed: []
|
|
72321
72363
|
};
|
|
72322
|
-
_iterator5 = _createForOfIteratorHelper$
|
|
72364
|
+
_iterator5 = _createForOfIteratorHelper$e(plan.workspaces);
|
|
72323
72365
|
_context3.prev = 1;
|
|
72324
72366
|
_loop2 = /*#__PURE__*/_regeneratorRuntime.mark(function _loop2() {
|
|
72325
72367
|
var _step5$value, workspaceId, changes, workspace, name, updated, _iterator7, _step7, c, _t;
|
|
@@ -72343,7 +72385,7 @@ function _applyProviderUse() {
|
|
|
72343
72385
|
return saveWorkspace(dashApi, appId, updated);
|
|
72344
72386
|
case 3:
|
|
72345
72387
|
result.dashboards += 1;
|
|
72346
|
-
_iterator7 = _createForOfIteratorHelper$
|
|
72388
|
+
_iterator7 = _createForOfIteratorHelper$e(changes);
|
|
72347
72389
|
try {
|
|
72348
72390
|
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
72349
72391
|
c = _step7.value;
|
|
@@ -72392,7 +72434,7 @@ function _applyProviderUse() {
|
|
|
72392
72434
|
_iterator5.f();
|
|
72393
72435
|
return _context3.finish(6);
|
|
72394
72436
|
case 7:
|
|
72395
|
-
_iterator6 = _createForOfIteratorHelper$
|
|
72437
|
+
_iterator6 = _createForOfIteratorHelper$e(plan.bots);
|
|
72396
72438
|
_context3.prev = 8;
|
|
72397
72439
|
_loop3 = /*#__PURE__*/_regeneratorRuntime.mark(function _loop3() {
|
|
72398
72440
|
var _step6$value, botId, add, bot, name, current, mcpServers, _t2;
|
|
@@ -72471,21 +72513,21 @@ function _applyProviderUse() {
|
|
|
72471
72513
|
|
|
72472
72514
|
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; }
|
|
72473
72515
|
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; }
|
|
72474
|
-
function _createForOfIteratorHelper$
|
|
72475
|
-
function _unsupportedIterableToArray$
|
|
72476
|
-
function _arrayLikeToArray$
|
|
72477
|
-
var plural$
|
|
72516
|
+
function _createForOfIteratorHelper$d(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$d(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
72517
|
+
function _unsupportedIterableToArray$d(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$d(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$d(r, a) : void 0; } }
|
|
72518
|
+
function _arrayLikeToArray$d(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
72519
|
+
var plural$2 = function plural(n, one) {
|
|
72478
72520
|
var many = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "".concat(one, "s");
|
|
72479
72521
|
return "".concat(n, " ").concat(n === 1 ? one : many);
|
|
72480
72522
|
};
|
|
72481
72523
|
var initialPicks = function initialPicks(model) {
|
|
72482
72524
|
var picks = {};
|
|
72483
|
-
var _iterator = _createForOfIteratorHelper$
|
|
72525
|
+
var _iterator = _createForOfIteratorHelper$d(model && model.dashboards || []),
|
|
72484
72526
|
_step;
|
|
72485
72527
|
try {
|
|
72486
72528
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
72487
72529
|
var d = _step.value;
|
|
72488
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
72530
|
+
var _iterator3 = _createForOfIteratorHelper$d(d.rows),
|
|
72489
72531
|
_step3;
|
|
72490
72532
|
try {
|
|
72491
72533
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -72503,7 +72545,7 @@ var initialPicks = function initialPicks(model) {
|
|
|
72503
72545
|
} finally {
|
|
72504
72546
|
_iterator.f();
|
|
72505
72547
|
}
|
|
72506
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
72548
|
+
var _iterator2 = _createForOfIteratorHelper$d(model && model.bots || []),
|
|
72507
72549
|
_step2;
|
|
72508
72550
|
try {
|
|
72509
72551
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -72567,12 +72609,12 @@ var ProviderUseDialog = function ProviderUseDialog(_ref) {
|
|
|
72567
72609
|
}, [isOpen, model]);
|
|
72568
72610
|
var changes = React.useMemo(function () {
|
|
72569
72611
|
var n = 0;
|
|
72570
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
72612
|
+
var _iterator4 = _createForOfIteratorHelper$d(model && model.dashboards || []),
|
|
72571
72613
|
_step4;
|
|
72572
72614
|
try {
|
|
72573
72615
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
72574
72616
|
var d = _step4.value;
|
|
72575
|
-
var _iterator6 = _createForOfIteratorHelper$
|
|
72617
|
+
var _iterator6 = _createForOfIteratorHelper$d(d.rows),
|
|
72576
72618
|
_step6;
|
|
72577
72619
|
try {
|
|
72578
72620
|
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
@@ -72590,7 +72632,7 @@ var ProviderUseDialog = function ProviderUseDialog(_ref) {
|
|
|
72590
72632
|
} finally {
|
|
72591
72633
|
_iterator4.f();
|
|
72592
72634
|
}
|
|
72593
|
-
var _iterator5 = _createForOfIteratorHelper$
|
|
72635
|
+
var _iterator5 = _createForOfIteratorHelper$d(model && model.bots || []),
|
|
72594
72636
|
_step5;
|
|
72595
72637
|
try {
|
|
72596
72638
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
@@ -72614,7 +72656,7 @@ var ProviderUseDialog = function ProviderUseDialog(_ref) {
|
|
|
72614
72656
|
var tickAll = function tickAll(rows) {
|
|
72615
72657
|
return setPicks(function (p) {
|
|
72616
72658
|
var next = _objectSpread$f({}, p);
|
|
72617
|
-
var _iterator7 = _createForOfIteratorHelper$
|
|
72659
|
+
var _iterator7 = _createForOfIteratorHelper$d(rows),
|
|
72618
72660
|
_step7;
|
|
72619
72661
|
try {
|
|
72620
72662
|
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
@@ -72690,11 +72732,11 @@ var ProviderUseDialog = function ProviderUseDialog(_ref) {
|
|
|
72690
72732
|
var summary = function summary(r) {
|
|
72691
72733
|
var parts = [];
|
|
72692
72734
|
if (r.widgets) {
|
|
72693
|
-
parts.push("".concat(plural$
|
|
72735
|
+
parts.push("".concat(plural$2(r.widgets, "more widget"), " on ").concat(plural$2(r.dashboards, "dashboard")));
|
|
72694
72736
|
}
|
|
72695
|
-
if (r.bots) parts.push(plural$
|
|
72737
|
+
if (r.bots) parts.push(plural$2(r.bots, "bot"));
|
|
72696
72738
|
var used = parts.length ? "".concat(model.providerName, " is now used by ").concat(parts.join(" and "), ".") : "";
|
|
72697
|
-
var removed = r.removed ? " Removed from ".concat(plural$
|
|
72739
|
+
var removed = r.removed ? " Removed from ".concat(plural$2(r.removed, "widget"), ".") : "";
|
|
72698
72740
|
return "".concat(used).concat(removed).trim() || "Nothing was changed.";
|
|
72699
72741
|
};
|
|
72700
72742
|
return /*#__PURE__*/jsxRuntime.jsx(DashReact.Modal, {
|
|
@@ -72808,7 +72850,7 @@ var ProviderUseDialog = function ProviderUseDialog(_ref) {
|
|
|
72808
72850
|
title: "Cancel",
|
|
72809
72851
|
onClick: onClose
|
|
72810
72852
|
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button, {
|
|
72811
|
-
title: changes ? "Save \u2014 ".concat(plural$
|
|
72853
|
+
title: changes ? "Save \u2014 ".concat(plural$2(changes, "change")) : "Save — no changes",
|
|
72812
72854
|
disabled: !changes || saving,
|
|
72813
72855
|
onClick: save
|
|
72814
72856
|
})]
|
|
@@ -73703,9 +73745,9 @@ var ProviderDetail = function ProviderDetail(_ref) {
|
|
|
73703
73745
|
|
|
73704
73746
|
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; }
|
|
73705
73747
|
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; }
|
|
73706
|
-
function _createForOfIteratorHelper$
|
|
73707
|
-
function _unsupportedIterableToArray$
|
|
73708
|
-
function _arrayLikeToArray$
|
|
73748
|
+
function _createForOfIteratorHelper$c(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$c(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
73749
|
+
function _unsupportedIterableToArray$c(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$c(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$c(r, a) : void 0; } }
|
|
73750
|
+
function _arrayLikeToArray$c(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
73709
73751
|
function isValidWsUrl(url) {
|
|
73710
73752
|
if (!url) return false;
|
|
73711
73753
|
try {
|
|
@@ -73752,7 +73794,7 @@ function extractCredentialFields(url, headerRows) {
|
|
|
73752
73794
|
fields.add(match[1]);
|
|
73753
73795
|
}
|
|
73754
73796
|
}
|
|
73755
|
-
var _iterator = _createForOfIteratorHelper$
|
|
73797
|
+
var _iterator = _createForOfIteratorHelper$c(headerRows),
|
|
73756
73798
|
_step;
|
|
73757
73799
|
try {
|
|
73758
73800
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -73857,7 +73899,7 @@ var WebSocketProviderForm = function WebSocketProviderForm(_ref) {
|
|
|
73857
73899
|
if (!url.trim()) errs.url = "WebSocket URL is required";else if (!isValidWsUrl(url)) errs.url = "URL must start with ws:// or wss://";
|
|
73858
73900
|
|
|
73859
73901
|
// Check required credential fields are filled
|
|
73860
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
73902
|
+
var _iterator2 = _createForOfIteratorHelper$c(credentialFields),
|
|
73861
73903
|
_step2;
|
|
73862
73904
|
try {
|
|
73863
73905
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -73880,7 +73922,7 @@ var WebSocketProviderForm = function WebSocketProviderForm(_ref) {
|
|
|
73880
73922
|
|
|
73881
73923
|
// Build headers object from rows
|
|
73882
73924
|
var headers = {};
|
|
73883
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
73925
|
+
var _iterator3 = _createForOfIteratorHelper$c(headerRows),
|
|
73884
73926
|
_step3;
|
|
73885
73927
|
try {
|
|
73886
73928
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -73949,7 +73991,7 @@ var WebSocketProviderForm = function WebSocketProviderForm(_ref) {
|
|
|
73949
73991
|
|
|
73950
73992
|
// Build config from current form state (same as handleSave)
|
|
73951
73993
|
headers = {};
|
|
73952
|
-
_iterator4 = _createForOfIteratorHelper$
|
|
73994
|
+
_iterator4 = _createForOfIteratorHelper$c(headerRows);
|
|
73953
73995
|
try {
|
|
73954
73996
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
73955
73997
|
row = _step4.value;
|
|
@@ -74323,7 +74365,7 @@ var STATUS_DOT$1 = {
|
|
|
74323
74365
|
connected: "bg-green-400",
|
|
74324
74366
|
ready: "bg-gray-500"
|
|
74325
74367
|
};
|
|
74326
|
-
var plural = function plural(n, one) {
|
|
74368
|
+
var plural$1 = function plural(n, one) {
|
|
74327
74369
|
return "".concat(n, " ").concat(one).concat(n === 1 ? "" : "s");
|
|
74328
74370
|
};
|
|
74329
74371
|
|
|
@@ -75109,7 +75151,7 @@ var ProvidersSection = function ProvidersSection(_ref) {
|
|
|
75109
75151
|
className: "flex flex-row items-center gap-1.5 text-xs text-amber-400",
|
|
75110
75152
|
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
75111
75153
|
className: "inline-block h-1.5 w-1.5 rounded-full bg-amber-400"
|
|
75112
|
-
}), plural(needsSetupCount, "provider"), " need", needsSetupCount === 1 ? "s" : "", " setup"]
|
|
75154
|
+
}), plural$1(needsSetupCount, "provider"), " need", needsSetupCount === 1 ? "s" : "", " setup"]
|
|
75113
75155
|
}) : null]
|
|
75114
75156
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
75115
75157
|
className: "flex-1 min-h-0 grid grid-cols-3 gap-4",
|
|
@@ -75336,9 +75378,9 @@ var AppPage = function AppPage(_ref) {
|
|
|
75336
75378
|
});
|
|
75337
75379
|
};
|
|
75338
75380
|
|
|
75339
|
-
function _createForOfIteratorHelper$
|
|
75340
|
-
function _unsupportedIterableToArray$
|
|
75341
|
-
function _arrayLikeToArray$
|
|
75381
|
+
function _createForOfIteratorHelper$b(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$b(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
75382
|
+
function _unsupportedIterableToArray$b(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$b(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$b(r, a) : void 0; } }
|
|
75383
|
+
function _arrayLikeToArray$b(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
75342
75384
|
|
|
75343
75385
|
/** Open a page as a tab, or switch to it if it's already open. */
|
|
75344
75386
|
function openPageTab(tabs, key) {
|
|
@@ -75383,7 +75425,7 @@ function closeTab(tabs, tabId, activeTabId) {
|
|
|
75383
75425
|
function restoreTabs(savedIds) {
|
|
75384
75426
|
var workspaces = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
75385
75427
|
var out = [];
|
|
75386
|
-
var _iterator = _createForOfIteratorHelper$
|
|
75428
|
+
var _iterator = _createForOfIteratorHelper$b(savedIds || []),
|
|
75387
75429
|
_step;
|
|
75388
75430
|
try {
|
|
75389
75431
|
var _loop = function _loop() {
|
|
@@ -75415,9 +75457,9 @@ function restoreTabs(savedIds) {
|
|
|
75415
75457
|
|
|
75416
75458
|
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; }
|
|
75417
75459
|
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; }
|
|
75418
|
-
function _createForOfIteratorHelper$
|
|
75419
|
-
function _unsupportedIterableToArray$
|
|
75420
|
-
function _arrayLikeToArray$
|
|
75460
|
+
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; } } }; }
|
|
75461
|
+
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; } }
|
|
75462
|
+
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; }
|
|
75421
75463
|
/**
|
|
75422
75464
|
* Apply a bulk-edit pref change set to a workspace.
|
|
75423
75465
|
*
|
|
@@ -75456,7 +75498,7 @@ function applyBulkUserPrefs(workspace, changes) {
|
|
|
75456
75498
|
if (!workspace) return workspace;
|
|
75457
75499
|
if (!Array.isArray(changes) || changes.length === 0) return workspace;
|
|
75458
75500
|
var byWidget = new Map();
|
|
75459
|
-
var _iterator = _createForOfIteratorHelper$
|
|
75501
|
+
var _iterator = _createForOfIteratorHelper$a(changes),
|
|
75460
75502
|
_step;
|
|
75461
75503
|
try {
|
|
75462
75504
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -75494,7 +75536,7 @@ function applyBulkUserPrefs(workspace, changes) {
|
|
|
75494
75536
|
var seen = new WeakSet();
|
|
75495
75537
|
var _walk = function walk(items) {
|
|
75496
75538
|
if (!Array.isArray(items)) return;
|
|
75497
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
75539
|
+
var _iterator2 = _createForOfIteratorHelper$a(items),
|
|
75498
75540
|
_step2;
|
|
75499
75541
|
try {
|
|
75500
75542
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -75513,7 +75555,7 @@ function applyBulkUserPrefs(workspace, changes) {
|
|
|
75513
75555
|
};
|
|
75514
75556
|
_walk(next.layout);
|
|
75515
75557
|
if (Array.isArray(next.pages)) {
|
|
75516
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
75558
|
+
var _iterator3 = _createForOfIteratorHelper$a(next.pages),
|
|
75517
75559
|
_step3;
|
|
75518
75560
|
try {
|
|
75519
75561
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -75566,9 +75608,9 @@ function isSavedWorkspace(savedWorkspaces, id) {
|
|
|
75566
75608
|
});
|
|
75567
75609
|
}
|
|
75568
75610
|
|
|
75569
|
-
function _createForOfIteratorHelper$
|
|
75570
|
-
function _unsupportedIterableToArray$
|
|
75571
|
-
function _arrayLikeToArray$
|
|
75611
|
+
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; } } }; }
|
|
75612
|
+
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; } }
|
|
75613
|
+
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; }
|
|
75572
75614
|
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; }
|
|
75573
75615
|
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; }
|
|
75574
75616
|
/**
|
|
@@ -75601,7 +75643,7 @@ function syncLayoutRefs(ws, _ref) {
|
|
|
75601
75643
|
});
|
|
75602
75644
|
}
|
|
75603
75645
|
if (!Array.isArray(ws.pages)) return;
|
|
75604
|
-
var _iterator = _createForOfIteratorHelper$
|
|
75646
|
+
var _iterator = _createForOfIteratorHelper$9(ws.pages),
|
|
75605
75647
|
_step;
|
|
75606
75648
|
try {
|
|
75607
75649
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -75623,6 +75665,307 @@ function syncLayoutRefs(ws, _ref) {
|
|
|
75623
75665
|
}
|
|
75624
75666
|
}
|
|
75625
75667
|
|
|
75668
|
+
var _excluded$1 = ["updatedAt", "lastModified", "version"];
|
|
75669
|
+
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; } } }; }
|
|
75670
|
+
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; } }
|
|
75671
|
+
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; }
|
|
75672
|
+
|
|
75673
|
+
/**
|
|
75674
|
+
* What Cancel will discard (create-entry phase 1e, CRE-006 AC7).
|
|
75675
|
+
*
|
|
75676
|
+
* Compares the copy of the dashboard taken on entering edit mode with the
|
|
75677
|
+
* staged one, plus bot edits staged in the editor, and returns plain lines
|
|
75678
|
+
* for the Cancel confirmation:
|
|
75679
|
+
*
|
|
75680
|
+
* { discarded: ["Added Weather", ...], kept: ["Widgets you installed …"] }
|
|
75681
|
+
*
|
|
75682
|
+
* Paged dashboards are compared page by page (the top-level layout only
|
|
75683
|
+
* mirrors the visible page). Anything that differs but isn't recognised is
|
|
75684
|
+
* summed up as "Other layout changes" so nothing is silently left out.
|
|
75685
|
+
*/
|
|
75686
|
+
|
|
75687
|
+
var MAX_LINES = 8;
|
|
75688
|
+
var plural = function plural(n, one, many) {
|
|
75689
|
+
return n === 1 ? "a ".concat(one) : "".concat(n, " ").concat(many);
|
|
75690
|
+
};
|
|
75691
|
+
var same = function same(a, b) {
|
|
75692
|
+
return JSON.stringify(a !== null && a !== void 0 ? a : null) === JSON.stringify(b !== null && b !== void 0 ? b : null);
|
|
75693
|
+
};
|
|
75694
|
+
|
|
75695
|
+
/** [{ key, layout }] — each place widgets live on the dashboard. */
|
|
75696
|
+
function layoutsOf(ws) {
|
|
75697
|
+
var pages = Array.isArray(ws === null || ws === void 0 ? void 0 : ws.pages) ? ws.pages : [];
|
|
75698
|
+
var out = pages.length ? pages.map(function (p) {
|
|
75699
|
+
return {
|
|
75700
|
+
key: "page:".concat(p.id),
|
|
75701
|
+
layout: p.layout || []
|
|
75702
|
+
};
|
|
75703
|
+
}) : [{
|
|
75704
|
+
key: "main",
|
|
75705
|
+
layout: (ws === null || ws === void 0 ? void 0 : ws.layout) || []
|
|
75706
|
+
}];
|
|
75707
|
+
out.push({
|
|
75708
|
+
key: "sidebar",
|
|
75709
|
+
layout: (ws === null || ws === void 0 ? void 0 : ws.sidebarLayout) || []
|
|
75710
|
+
});
|
|
75711
|
+
return out;
|
|
75712
|
+
}
|
|
75713
|
+
|
|
75714
|
+
/** uuid → { widget, where } across every layout of the dashboard. */
|
|
75715
|
+
function placedWidgets(ws) {
|
|
75716
|
+
var map = new Map();
|
|
75717
|
+
var _iterator = _createForOfIteratorHelper$8(layoutsOf(ws)),
|
|
75718
|
+
_step;
|
|
75719
|
+
try {
|
|
75720
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
75721
|
+
var _step$value = _step.value,
|
|
75722
|
+
key = _step$value.key,
|
|
75723
|
+
layout = _step$value.layout;
|
|
75724
|
+
var _iterator2 = _createForOfIteratorHelper$8(widgetsOf(layout)),
|
|
75725
|
+
_step2;
|
|
75726
|
+
try {
|
|
75727
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
75728
|
+
var _w$uuid;
|
|
75729
|
+
var w = _step2.value;
|
|
75730
|
+
var cell = findWidgetCell(layout, w.id);
|
|
75731
|
+
map.set(String((_w$uuid = w.uuid) !== null && _w$uuid !== void 0 ? _w$uuid : w.id), {
|
|
75732
|
+
widget: w,
|
|
75733
|
+
where: cell ? "".concat(key, ":").concat(cell.gridItemId, ":").concat(cell.cellNumber) : key
|
|
75734
|
+
});
|
|
75735
|
+
}
|
|
75736
|
+
} catch (err) {
|
|
75737
|
+
_iterator2.e(err);
|
|
75738
|
+
} finally {
|
|
75739
|
+
_iterator2.f();
|
|
75740
|
+
}
|
|
75741
|
+
}
|
|
75742
|
+
} catch (err) {
|
|
75743
|
+
_iterator.e(err);
|
|
75744
|
+
} finally {
|
|
75745
|
+
_iterator.f();
|
|
75746
|
+
}
|
|
75747
|
+
return map;
|
|
75748
|
+
}
|
|
75749
|
+
|
|
75750
|
+
/** "key:gridId" → { rows, cols } for every grid. */
|
|
75751
|
+
function gridsOf(ws) {
|
|
75752
|
+
var map = new Map();
|
|
75753
|
+
var _iterator3 = _createForOfIteratorHelper$8(layoutsOf(ws)),
|
|
75754
|
+
_step3;
|
|
75755
|
+
try {
|
|
75756
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
75757
|
+
var _step3$value = _step3.value,
|
|
75758
|
+
key = _step3$value.key,
|
|
75759
|
+
layout = _step3$value.layout;
|
|
75760
|
+
var _iterator4 = _createForOfIteratorHelper$8(layout),
|
|
75761
|
+
_step4;
|
|
75762
|
+
try {
|
|
75763
|
+
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
75764
|
+
var item = _step4.value;
|
|
75765
|
+
if (item && item.grid) {
|
|
75766
|
+
map.set("".concat(key, ":").concat(item.id), {
|
|
75767
|
+
rows: Number(item.grid.rows) || 0,
|
|
75768
|
+
cols: Number(item.grid.cols) || 0
|
|
75769
|
+
});
|
|
75770
|
+
}
|
|
75771
|
+
}
|
|
75772
|
+
} catch (err) {
|
|
75773
|
+
_iterator4.e(err);
|
|
75774
|
+
} finally {
|
|
75775
|
+
_iterator4.f();
|
|
75776
|
+
}
|
|
75777
|
+
}
|
|
75778
|
+
} catch (err) {
|
|
75779
|
+
_iterator3.e(err);
|
|
75780
|
+
} finally {
|
|
75781
|
+
_iterator3.f();
|
|
75782
|
+
}
|
|
75783
|
+
return map;
|
|
75784
|
+
}
|
|
75785
|
+
function gridLines(before, after) {
|
|
75786
|
+
var lines = [];
|
|
75787
|
+
var _iterator5 = _createForOfIteratorHelper$8(before),
|
|
75788
|
+
_step5;
|
|
75789
|
+
try {
|
|
75790
|
+
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
75791
|
+
var _step5$value = _slicedToArray(_step5.value, 2),
|
|
75792
|
+
key = _step5$value[0],
|
|
75793
|
+
b = _step5$value[1];
|
|
75794
|
+
var a = after.get(key);
|
|
75795
|
+
if (!a) continue;
|
|
75796
|
+
var dr = a.rows - b.rows;
|
|
75797
|
+
var dc = a.cols - b.cols;
|
|
75798
|
+
if (dr > 0) lines.push("Added ".concat(plural(dr, "row", "rows")));
|
|
75799
|
+
if (dr < 0) lines.push("Removed ".concat(plural(-dr, "row", "rows")));
|
|
75800
|
+
if (dc > 0) lines.push("Added ".concat(plural(dc, "column", "columns")));
|
|
75801
|
+
if (dc < 0) lines.push("Removed ".concat(plural(-dc, "column", "columns")));
|
|
75802
|
+
}
|
|
75803
|
+
} catch (err) {
|
|
75804
|
+
_iterator5.e(err);
|
|
75805
|
+
} finally {
|
|
75806
|
+
_iterator5.f();
|
|
75807
|
+
}
|
|
75808
|
+
return lines;
|
|
75809
|
+
}
|
|
75810
|
+
var SETTINGS = ["userPrefs", "listeners", "providers"];
|
|
75811
|
+
function describeEditChanges(_ref) {
|
|
75812
|
+
var original = _ref.original,
|
|
75813
|
+
current = _ref.current,
|
|
75814
|
+
_ref$pendingBotEdits = _ref.pendingBotEdits,
|
|
75815
|
+
pendingBotEdits = _ref$pendingBotEdits === void 0 ? {} : _ref$pendingBotEdits,
|
|
75816
|
+
_ref$nameOf = _ref.nameOf,
|
|
75817
|
+
nameOf = _ref$nameOf === void 0 ? function (w) {
|
|
75818
|
+
return w.component;
|
|
75819
|
+
} : _ref$nameOf;
|
|
75820
|
+
var discarded = [];
|
|
75821
|
+
var kept = [];
|
|
75822
|
+
if (!original || !current) return {
|
|
75823
|
+
discarded: discarded,
|
|
75824
|
+
kept: kept
|
|
75825
|
+
};
|
|
75826
|
+
if ((current.name || "") !== (original.name || "")) {
|
|
75827
|
+
discarded.push("Renamed the dashboard to \"".concat(current.name, "\""));
|
|
75828
|
+
}
|
|
75829
|
+
if (!same(current.themeKey, original.themeKey)) {
|
|
75830
|
+
discarded.push("Changed the theme");
|
|
75831
|
+
}
|
|
75832
|
+
if (!same(current.menuId, original.menuId)) {
|
|
75833
|
+
discarded.push("Moved it to another folder");
|
|
75834
|
+
}
|
|
75835
|
+
var pagesBefore = new Map((original.pages || []).map(function (p) {
|
|
75836
|
+
return [p.id, p];
|
|
75837
|
+
}));
|
|
75838
|
+
var pagesAfter = new Map((current.pages || []).map(function (p) {
|
|
75839
|
+
return [p.id, p];
|
|
75840
|
+
}));
|
|
75841
|
+
var _iterator6 = _createForOfIteratorHelper$8(pagesAfter),
|
|
75842
|
+
_step6;
|
|
75843
|
+
try {
|
|
75844
|
+
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
75845
|
+
var _step6$value = _slicedToArray(_step6.value, 2),
|
|
75846
|
+
id = _step6$value[0],
|
|
75847
|
+
p = _step6$value[1];
|
|
75848
|
+
if (!pagesBefore.has(id)) discarded.push("Added page \"".concat(p.name, "\""));
|
|
75849
|
+
}
|
|
75850
|
+
} catch (err) {
|
|
75851
|
+
_iterator6.e(err);
|
|
75852
|
+
} finally {
|
|
75853
|
+
_iterator6.f();
|
|
75854
|
+
}
|
|
75855
|
+
var _iterator7 = _createForOfIteratorHelper$8(pagesBefore),
|
|
75856
|
+
_step7;
|
|
75857
|
+
try {
|
|
75858
|
+
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
75859
|
+
var _step7$value = _slicedToArray(_step7.value, 2),
|
|
75860
|
+
_id = _step7$value[0],
|
|
75861
|
+
_p = _step7$value[1];
|
|
75862
|
+
if (!pagesAfter.has(_id)) discarded.push("Removed page \"".concat(_p.name, "\""));
|
|
75863
|
+
}
|
|
75864
|
+
} catch (err) {
|
|
75865
|
+
_iterator7.e(err);
|
|
75866
|
+
} finally {
|
|
75867
|
+
_iterator7.f();
|
|
75868
|
+
}
|
|
75869
|
+
discarded.push.apply(discarded, _toConsumableArray(gridLines(gridsOf(original), gridsOf(current))));
|
|
75870
|
+
var before = placedWidgets(original);
|
|
75871
|
+
var after = placedWidgets(current);
|
|
75872
|
+
var added = _toConsumableArray(after.keys()).filter(function (k) {
|
|
75873
|
+
return !before.has(k);
|
|
75874
|
+
});
|
|
75875
|
+
var removed = _toConsumableArray(before.keys()).filter(function (k) {
|
|
75876
|
+
return !after.has(k);
|
|
75877
|
+
});
|
|
75878
|
+
var stillThere = _toConsumableArray(after.keys()).filter(function (k) {
|
|
75879
|
+
return before.has(k);
|
|
75880
|
+
});
|
|
75881
|
+
added.forEach(function (k) {
|
|
75882
|
+
return discarded.push("Added ".concat(nameOf(after.get(k).widget)));
|
|
75883
|
+
});
|
|
75884
|
+
removed.forEach(function (k) {
|
|
75885
|
+
return discarded.push("Removed ".concat(nameOf(before.get(k).widget)));
|
|
75886
|
+
});
|
|
75887
|
+
stillThere.forEach(function (k) {
|
|
75888
|
+
if (before.get(k).where !== after.get(k).where) {
|
|
75889
|
+
discarded.push("Moved ".concat(nameOf(after.get(k).widget)));
|
|
75890
|
+
}
|
|
75891
|
+
});
|
|
75892
|
+
stillThere.forEach(function (k) {
|
|
75893
|
+
var a = after.get(k).widget;
|
|
75894
|
+
var b = before.get(k).widget;
|
|
75895
|
+
if (SETTINGS.some(function (f) {
|
|
75896
|
+
return !same(a[f], b[f]);
|
|
75897
|
+
})) {
|
|
75898
|
+
discarded.push("Changed ".concat(nameOf(a), "'s settings"));
|
|
75899
|
+
}
|
|
75900
|
+
});
|
|
75901
|
+
for (var _i = 0, _Object$values = Object.values(pendingBotEdits || {}); _i < _Object$values.length; _i++) {
|
|
75902
|
+
var bot = _Object$values[_i];
|
|
75903
|
+
discarded.push("Changes to the bot \"".concat(bot.name || bot.id, "\""));
|
|
75904
|
+
}
|
|
75905
|
+
|
|
75906
|
+
// Nothing recognised, but the dashboard differs: say so.
|
|
75907
|
+
var workspaceLines = discarded.length - Object.keys(pendingBotEdits || {}).length;
|
|
75908
|
+
if (workspaceLines === 0 && !same(stripVolatile(current), stripVolatile(original))) {
|
|
75909
|
+
discarded.push("Other layout changes");
|
|
75910
|
+
}
|
|
75911
|
+
if (added.length) {
|
|
75912
|
+
kept.push("Widgets you installed stay installed — only their place on this dashboard is undone.");
|
|
75913
|
+
}
|
|
75914
|
+
if (discarded.length > MAX_LINES + 1) {
|
|
75915
|
+
var extra = discarded.length - MAX_LINES;
|
|
75916
|
+
discarded.splice(MAX_LINES, extra, "\u2026and ".concat(extra, " more"));
|
|
75917
|
+
}
|
|
75918
|
+
return {
|
|
75919
|
+
discarded: discarded,
|
|
75920
|
+
kept: kept
|
|
75921
|
+
};
|
|
75922
|
+
}
|
|
75923
|
+
|
|
75924
|
+
/** Fields that change without a user edit (timestamps). */
|
|
75925
|
+
function stripVolatile(ws) {
|
|
75926
|
+
// eslint-disable-next-line no-unused-vars
|
|
75927
|
+
var _ref2 = ws || {};
|
|
75928
|
+
_ref2.updatedAt;
|
|
75929
|
+
_ref2.lastModified;
|
|
75930
|
+
_ref2.version;
|
|
75931
|
+
var rest = _objectWithoutProperties(_ref2, _excluded$1);
|
|
75932
|
+
return rest;
|
|
75933
|
+
}
|
|
75934
|
+
|
|
75935
|
+
var DiscardList = function DiscardList(_ref) {
|
|
75936
|
+
var changes = _ref.changes;
|
|
75937
|
+
var _useContext = React.useContext(DashReact.ThemeContext),
|
|
75938
|
+
_useContext$currentTh = _useContext.currentTheme,
|
|
75939
|
+
currentTheme = _useContext$currentTh === void 0 ? {} : _useContext$currentTh;
|
|
75940
|
+
var text = currentTheme["text-primary-light"] || "";
|
|
75941
|
+
var muted = currentTheme["text-primary-medium"] || "";
|
|
75942
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
75943
|
+
className: "flex flex-col gap-3 text-sm",
|
|
75944
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
75945
|
+
className: text,
|
|
75946
|
+
children: "These changes haven't been saved:"
|
|
75947
|
+
}), /*#__PURE__*/jsxRuntime.jsx("ul", {
|
|
75948
|
+
"aria-label": "Changes that will be discarded",
|
|
75949
|
+
className: "flex flex-col gap-1 pl-4 list-disc ".concat(text),
|
|
75950
|
+
children: changes.discarded.map(function (line, i) {
|
|
75951
|
+
return /*#__PURE__*/jsxRuntime.jsx("li", {
|
|
75952
|
+
children: line
|
|
75953
|
+
}, i);
|
|
75954
|
+
})
|
|
75955
|
+
}), changes.kept.length > 0 && /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
75956
|
+
className: "flex flex-col gap-1",
|
|
75957
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.SectionLabel, {
|
|
75958
|
+
children: "Kept"
|
|
75959
|
+
}), changes.kept.map(function (line, i) {
|
|
75960
|
+
return /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
75961
|
+
className: muted,
|
|
75962
|
+
children: line
|
|
75963
|
+
}, i);
|
|
75964
|
+
})]
|
|
75965
|
+
})]
|
|
75966
|
+
});
|
|
75967
|
+
};
|
|
75968
|
+
|
|
75626
75969
|
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; }
|
|
75627
75970
|
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; }
|
|
75628
75971
|
var DashboardStage = function DashboardStage(_ref) {
|
|
@@ -77604,6 +77947,21 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
77604
77947
|
function handleSaveMenuItemError(e, message) {
|
|
77605
77948
|
}
|
|
77606
77949
|
|
|
77950
|
+
// What the Discard prompt will throw away (phase 1e). Computed only while
|
|
77951
|
+
// the prompt is open.
|
|
77952
|
+
var cancelChanges = React.useMemo(function () {
|
|
77953
|
+
return pendingNavigation ? describeEditChanges({
|
|
77954
|
+
original: originalWorkspaceRef.current,
|
|
77955
|
+
current: workspaceSelected,
|
|
77956
|
+
pendingBotEdits: pendingBotEdits,
|
|
77957
|
+
nameOf: function nameOf(w) {
|
|
77958
|
+
return pickWidgetDisplayName(w, ComponentManager.config(w.component, w));
|
|
77959
|
+
}
|
|
77960
|
+
}) : null;
|
|
77961
|
+
},
|
|
77962
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
77963
|
+
[pendingNavigation]);
|
|
77964
|
+
|
|
77607
77965
|
// Internal: the unguarded cancel-edit operation. Called both from
|
|
77608
77966
|
// the direct Cancel button (when nothing is dirty) and from the
|
|
77609
77967
|
// confirmation modal's Discard action.
|
|
@@ -78296,6 +78654,13 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
78296
78654
|
}));
|
|
78297
78655
|
setEditSelection(null);
|
|
78298
78656
|
},
|
|
78657
|
+
onMoveWidget: function onMoveWidget(on) {
|
|
78658
|
+
return setEditSelection(function (sel) {
|
|
78659
|
+
return (sel === null || sel === void 0 ? void 0 : sel.kind) === "widget" ? _objectSpread$9(_objectSpread$9({}, sel), {}, {
|
|
78660
|
+
moving: on
|
|
78661
|
+
}) : sel;
|
|
78662
|
+
});
|
|
78663
|
+
},
|
|
78299
78664
|
onAskAi: function onAskAi() {
|
|
78300
78665
|
if ((editSelection === null || editSelection === void 0 ? void 0 : editSelection.kind) === "cell") {
|
|
78301
78666
|
window.dispatchEvent(new CustomEvent("dash:open-widget-builder", {
|
|
@@ -78545,7 +78910,12 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
78545
78910
|
if (!open) setPendingNavigation(null);
|
|
78546
78911
|
},
|
|
78547
78912
|
title: "Discard unsaved changes?",
|
|
78548
|
-
message: (pendingNavigation === null || pendingNavigation === void 0 ? void 0 : pendingNavigation.kind) === "cancel-edit" ? "You have edits that haven't been saved. Discard them and exit edit mode?" : "You have edits that haven't been saved. Discard them and leave this dashboard?"
|
|
78913
|
+
message: (pendingNavigation === null || pendingNavigation === void 0 ? void 0 : pendingNavigation.kind) === "cancel-edit" ? "You have edits that haven't been saved. Discard them and exit edit mode?" : "You have edits that haven't been saved. Discard them and leave this dashboard?"
|
|
78914
|
+
// Phase 1e (CRE-006 AC7): list what will be discarded and kept.
|
|
78915
|
+
,
|
|
78916
|
+
children: cancelChanges && cancelChanges.discarded.length > 0 ? /*#__PURE__*/jsxRuntime.jsx(DiscardList, {
|
|
78917
|
+
changes: cancelChanges
|
|
78918
|
+
}) : null,
|
|
78549
78919
|
confirmLabel: "Discard changes",
|
|
78550
78920
|
cancelLabel: "Keep editing",
|
|
78551
78921
|
variant: "danger",
|