@trops/dash-core 0.1.446 → 0.1.447
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/electron/index.js +108 -0
- package/dist/electron/index.js.map +1 -1
- package/dist/index.esm.js +137 -84
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +137 -84
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3075,9 +3075,9 @@ var LayoutContainer = function LayoutContainer(_ref) {
|
|
|
3075
3075
|
|
|
3076
3076
|
function ownKeys$W(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3077
3077
|
function _objectSpread$W(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$W(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$W(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3078
|
-
function _createForOfIteratorHelper$
|
|
3079
|
-
function _unsupportedIterableToArray$
|
|
3080
|
-
function _arrayLikeToArray$
|
|
3078
|
+
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; } } }; }
|
|
3079
|
+
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; } }
|
|
3080
|
+
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; }
|
|
3081
3081
|
/**
|
|
3082
3082
|
* Layout template definitions for the dashboard template picker.
|
|
3083
3083
|
*
|
|
@@ -3351,7 +3351,7 @@ function createLayoutFromTemplate(template) {
|
|
|
3351
3351
|
cols: template.cols,
|
|
3352
3352
|
gap: "gap-2"
|
|
3353
3353
|
};
|
|
3354
|
-
var _iterator = _createForOfIteratorHelper$
|
|
3354
|
+
var _iterator = _createForOfIteratorHelper$y(template.cells),
|
|
3355
3355
|
_step;
|
|
3356
3356
|
try {
|
|
3357
3357
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -4532,9 +4532,9 @@ var DashboardInstallOptionsModal = function DashboardInstallOptionsModal(_ref) {
|
|
|
4532
4532
|
});
|
|
4533
4533
|
};
|
|
4534
4534
|
|
|
4535
|
-
function _createForOfIteratorHelper$
|
|
4536
|
-
function _unsupportedIterableToArray$
|
|
4537
|
-
function _arrayLikeToArray$
|
|
4535
|
+
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; } } }; }
|
|
4536
|
+
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; } }
|
|
4537
|
+
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; }
|
|
4538
4538
|
function ownKeys$V(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4539
4539
|
function _objectSpread$V(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$V(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$V(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4540
4540
|
var RegistryDashboardDetail = function RegistryDashboardDetail(_ref) {
|
|
@@ -4892,7 +4892,7 @@ var RegistryDashboardDetail = function RegistryDashboardDetail(_ref) {
|
|
|
4892
4892
|
toInstall = 0,
|
|
4893
4893
|
unavailable = 0,
|
|
4894
4894
|
hasUnavailableRequired = false;
|
|
4895
|
-
var _iterator = _createForOfIteratorHelper$
|
|
4895
|
+
var _iterator = _createForOfIteratorHelper$x(widgetDeps),
|
|
4896
4896
|
_step;
|
|
4897
4897
|
try {
|
|
4898
4898
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -6537,9 +6537,9 @@ function cleanIpcError(message) {
|
|
|
6537
6537
|
return match ? match[1] : message;
|
|
6538
6538
|
}
|
|
6539
6539
|
|
|
6540
|
-
function _createForOfIteratorHelper$
|
|
6541
|
-
function _unsupportedIterableToArray$
|
|
6542
|
-
function _arrayLikeToArray$
|
|
6540
|
+
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; } } }; }
|
|
6541
|
+
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; } }
|
|
6542
|
+
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; }
|
|
6543
6543
|
|
|
6544
6544
|
/**
|
|
6545
6545
|
* useRegistrySearch — shared hook for browsing and installing registry packages.
|
|
@@ -6653,13 +6653,13 @@ var useRegistrySearch = function useRegistrySearch() {
|
|
|
6653
6653
|
return c.toLowerCase();
|
|
6654
6654
|
}));
|
|
6655
6655
|
widgets = [];
|
|
6656
|
-
_iterator = _createForOfIteratorHelper$
|
|
6656
|
+
_iterator = _createForOfIteratorHelper$w(pkgs);
|
|
6657
6657
|
try {
|
|
6658
6658
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6659
6659
|
pkg = _step.value;
|
|
6660
6660
|
// Compute missing APIs for the entire package
|
|
6661
6661
|
allApiProviders = [];
|
|
6662
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
6662
|
+
_iterator2 = _createForOfIteratorHelper$w(pkg.providers || []);
|
|
6663
6663
|
try {
|
|
6664
6664
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
6665
6665
|
p = _step2.value;
|
|
@@ -6672,11 +6672,11 @@ var useRegistrySearch = function useRegistrySearch() {
|
|
|
6672
6672
|
} finally {
|
|
6673
6673
|
_iterator2.f();
|
|
6674
6674
|
}
|
|
6675
|
-
_iterator3 = _createForOfIteratorHelper$
|
|
6675
|
+
_iterator3 = _createForOfIteratorHelper$w(pkg.widgets || []);
|
|
6676
6676
|
try {
|
|
6677
6677
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
6678
6678
|
w = _step3.value;
|
|
6679
|
-
_iterator5 = _createForOfIteratorHelper$
|
|
6679
|
+
_iterator5 = _createForOfIteratorHelper$w(w.providers || []);
|
|
6680
6680
|
try {
|
|
6681
6681
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
6682
6682
|
_p = _step5.value;
|
|
@@ -6698,7 +6698,7 @@ var useRegistrySearch = function useRegistrySearch() {
|
|
|
6698
6698
|
missingApis = _toConsumableArray(new Set(allApiProviders)).filter(function (api) {
|
|
6699
6699
|
return !capSet.has(api.toLowerCase());
|
|
6700
6700
|
});
|
|
6701
|
-
_iterator4 = _createForOfIteratorHelper$
|
|
6701
|
+
_iterator4 = _createForOfIteratorHelper$w(pkg.widgets || []);
|
|
6702
6702
|
try {
|
|
6703
6703
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
6704
6704
|
widget = _step4.value;
|
|
@@ -7319,9 +7319,9 @@ function applyFilters(items, filters, mode) {
|
|
|
7319
7319
|
});
|
|
7320
7320
|
}
|
|
7321
7321
|
|
|
7322
|
-
function _createForOfIteratorHelper$
|
|
7323
|
-
function _unsupportedIterableToArray$
|
|
7324
|
-
function _arrayLikeToArray$
|
|
7322
|
+
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; } } }; }
|
|
7323
|
+
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; } }
|
|
7324
|
+
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; }
|
|
7325
7325
|
var WizardCustomizeStep = function WizardCustomizeStep(_ref) {
|
|
7326
7326
|
var _state$selectedDashbo, _state$selectedDashbo2;
|
|
7327
7327
|
var state = _ref.state,
|
|
@@ -7539,7 +7539,7 @@ var WizardCustomizeStep = function WizardCustomizeStep(_ref) {
|
|
|
7539
7539
|
installedNames = new Set(installedList.map(function (w) {
|
|
7540
7540
|
return w.name;
|
|
7541
7541
|
}));
|
|
7542
|
-
_iterator = _createForOfIteratorHelper$
|
|
7542
|
+
_iterator = _createForOfIteratorHelper$v(state.selectedWidgets);
|
|
7543
7543
|
_context2.prev = 12;
|
|
7544
7544
|
_iterator.s();
|
|
7545
7545
|
case 13:
|
|
@@ -13233,9 +13233,9 @@ var PanelEditItem = function PanelEditItem(_ref) {
|
|
|
13233
13233
|
};
|
|
13234
13234
|
|
|
13235
13235
|
var _excluded$6 = ["rows", "cols"];
|
|
13236
|
-
function _createForOfIteratorHelper$
|
|
13237
|
-
function _unsupportedIterableToArray$
|
|
13238
|
-
function _arrayLikeToArray$
|
|
13236
|
+
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; } } }; }
|
|
13237
|
+
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; } }
|
|
13238
|
+
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; }
|
|
13239
13239
|
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; }
|
|
13240
13240
|
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; }
|
|
13241
13241
|
var defaultGrid = {
|
|
@@ -13388,7 +13388,7 @@ function GridEditor(_ref) {
|
|
|
13388
13388
|
function sortObjectByKeys(obj) {
|
|
13389
13389
|
var sortedKeys = Object.keys(obj).sort();
|
|
13390
13390
|
var sortedObj = {};
|
|
13391
|
-
var _iterator = _createForOfIteratorHelper$
|
|
13391
|
+
var _iterator = _createForOfIteratorHelper$u(sortedKeys),
|
|
13392
13392
|
_step;
|
|
13393
13393
|
try {
|
|
13394
13394
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -13861,9 +13861,9 @@ var PanelEditItemNotifications = function PanelEditItemNotifications(_ref) {
|
|
|
13861
13861
|
});
|
|
13862
13862
|
};
|
|
13863
13863
|
|
|
13864
|
-
function _createForOfIteratorHelper$
|
|
13865
|
-
function _unsupportedIterableToArray$
|
|
13866
|
-
function _arrayLikeToArray$
|
|
13864
|
+
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; } } }; }
|
|
13865
|
+
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; } }
|
|
13866
|
+
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; }
|
|
13867
13867
|
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; }
|
|
13868
13868
|
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; }
|
|
13869
13869
|
var DAYS = [{
|
|
@@ -14192,7 +14192,7 @@ var PanelEditItemSchedule = function PanelEditItemSchedule(_ref2) {
|
|
|
14192
14192
|
setIsLoading(true);
|
|
14193
14193
|
window.mainApi.scheduler.getTasks(widgetUuid).then(function (tasks) {
|
|
14194
14194
|
var stateMap = {};
|
|
14195
|
-
var _iterator = _createForOfIteratorHelper$
|
|
14195
|
+
var _iterator = _createForOfIteratorHelper$t(tasks || []),
|
|
14196
14196
|
_step;
|
|
14197
14197
|
try {
|
|
14198
14198
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -14451,9 +14451,9 @@ function isUserWidget(item) {
|
|
|
14451
14451
|
return true;
|
|
14452
14452
|
}
|
|
14453
14453
|
|
|
14454
|
-
function _createForOfIteratorHelper$
|
|
14455
|
-
function _unsupportedIterableToArray$
|
|
14456
|
-
function _arrayLikeToArray$
|
|
14454
|
+
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; } } }; }
|
|
14455
|
+
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; } }
|
|
14456
|
+
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; }
|
|
14457
14457
|
|
|
14458
14458
|
/**
|
|
14459
14459
|
* Resolve which provider name a given widget instance would bind to for
|
|
@@ -14485,7 +14485,7 @@ function resolveProviderName(_ref) {
|
|
|
14485
14485
|
// array. Support both because different callers shape it either way.
|
|
14486
14486
|
if (appProviders) {
|
|
14487
14487
|
if (Array.isArray(appProviders)) {
|
|
14488
|
-
var _iterator = _createForOfIteratorHelper$
|
|
14488
|
+
var _iterator = _createForOfIteratorHelper$s(appProviders),
|
|
14489
14489
|
_step;
|
|
14490
14490
|
try {
|
|
14491
14491
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -14545,7 +14545,7 @@ function forEachWidget(workspace, visit) {
|
|
|
14545
14545
|
};
|
|
14546
14546
|
var _walk = function walk(items) {
|
|
14547
14547
|
if (!Array.isArray(items)) return;
|
|
14548
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
14548
|
+
var _iterator2 = _createForOfIteratorHelper$s(items),
|
|
14549
14549
|
_step2;
|
|
14550
14550
|
try {
|
|
14551
14551
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -14575,7 +14575,7 @@ function forEachWidget(workspace, visit) {
|
|
|
14575
14575
|
};
|
|
14576
14576
|
_walk(workspace.layout);
|
|
14577
14577
|
if (Array.isArray(workspace.pages)) {
|
|
14578
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
14578
|
+
var _iterator3 = _createForOfIteratorHelper$s(workspace.pages),
|
|
14579
14579
|
_step3;
|
|
14580
14580
|
try {
|
|
14581
14581
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -14619,12 +14619,20 @@ function getUnresolvedProviders(_ref2) {
|
|
|
14619
14619
|
var requirements = getWidgetRequirements(item.component) || [];
|
|
14620
14620
|
if (!Array.isArray(requirements) || requirements.length === 0) return;
|
|
14621
14621
|
var widgetId = item.uuidString || item.uuid || item.id || null;
|
|
14622
|
-
|
|
14622
|
+
|
|
14623
|
+
// Dedup requirements by provider type within a widget. AI-built
|
|
14624
|
+
// widget configs sometimes ship a `providers: [...]` array with
|
|
14625
|
+
// the same `type` listed twice (a Claude code-gen quirk), which
|
|
14626
|
+
// would otherwise produce duplicate rows in the Providers tab.
|
|
14627
|
+
var seenTypes = new Set();
|
|
14628
|
+
var _iterator4 = _createForOfIteratorHelper$s(requirements),
|
|
14623
14629
|
_step4;
|
|
14624
14630
|
try {
|
|
14625
14631
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
14626
14632
|
var req = _step4.value;
|
|
14627
14633
|
if (!req || !req.type) continue;
|
|
14634
|
+
if (seenTypes.has(req.type)) continue;
|
|
14635
|
+
seenTypes.add(req.type);
|
|
14628
14636
|
if (req.required === false) continue; // optional, skip
|
|
14629
14637
|
|
|
14630
14638
|
var name = resolveProviderName({
|
|
@@ -14660,7 +14668,7 @@ function getUnresolvedProviders(_ref2) {
|
|
|
14660
14668
|
*/
|
|
14661
14669
|
function groupByProviderType(unresolved) {
|
|
14662
14670
|
var byType = new Map();
|
|
14663
|
-
var _iterator5 = _createForOfIteratorHelper$
|
|
14671
|
+
var _iterator5 = _createForOfIteratorHelper$s(unresolved || []),
|
|
14664
14672
|
_step5;
|
|
14665
14673
|
try {
|
|
14666
14674
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
@@ -14696,12 +14704,20 @@ function getAllProviderBindings(_ref3) {
|
|
|
14696
14704
|
var requirements = getWidgetRequirements(item.component) || [];
|
|
14697
14705
|
if (!Array.isArray(requirements) || requirements.length === 0) return;
|
|
14698
14706
|
var widgetId = item.uuidString || item.uuid || item.id || null;
|
|
14699
|
-
|
|
14707
|
+
|
|
14708
|
+
// Dedup requirements by provider type within a widget — AI-built
|
|
14709
|
+
// configs sometimes list the same `type` twice (a Claude code-gen
|
|
14710
|
+
// quirk) which would otherwise duplicate the per-widget row in
|
|
14711
|
+
// the Providers tab.
|
|
14712
|
+
var seenTypes = new Set();
|
|
14713
|
+
var _iterator6 = _createForOfIteratorHelper$s(requirements),
|
|
14700
14714
|
_step6;
|
|
14701
14715
|
try {
|
|
14702
14716
|
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
14703
14717
|
var req = _step6.value;
|
|
14704
14718
|
if (!req || !req.type) continue;
|
|
14719
|
+
if (seenTypes.has(req.type)) continue;
|
|
14720
|
+
seenTypes.add(req.type);
|
|
14705
14721
|
var name = resolveProviderName({
|
|
14706
14722
|
providerType: req.type,
|
|
14707
14723
|
layoutItem: item,
|
|
@@ -14736,9 +14752,9 @@ function getAllProviderBindings(_ref3) {
|
|
|
14736
14752
|
|
|
14737
14753
|
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; }
|
|
14738
14754
|
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; }
|
|
14739
|
-
function _createForOfIteratorHelper$
|
|
14740
|
-
function _unsupportedIterableToArray$
|
|
14741
|
-
function _arrayLikeToArray$
|
|
14755
|
+
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; } } }; }
|
|
14756
|
+
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; } }
|
|
14757
|
+
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; }
|
|
14742
14758
|
var EVENT_STRING_RE = /^([^[]+)\[([^\]]+)\]\.(.+)$/;
|
|
14743
14759
|
|
|
14744
14760
|
/** Parse "Component[itemId].event" → { component, itemId, event }. */
|
|
@@ -14908,7 +14924,7 @@ function getCurrentWiring(workspace) {
|
|
|
14908
14924
|
// Live format is array; defensive guard for legacy object
|
|
14909
14925
|
// form (a single source widget keyed under the handler).
|
|
14910
14926
|
var events = Array.isArray(eventList) ? eventList : typeof eventList === "string" ? [eventList] : [];
|
|
14911
|
-
var _iterator = _createForOfIteratorHelper$
|
|
14927
|
+
var _iterator = _createForOfIteratorHelper$r(events),
|
|
14912
14928
|
_step;
|
|
14913
14929
|
try {
|
|
14914
14930
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -14971,7 +14987,7 @@ function getOrphanedListeners(workspace, getWidgetConfig) {
|
|
|
14971
14987
|
if (!byItemId.has(id)) byItemId.set(id, meta);
|
|
14972
14988
|
});
|
|
14973
14989
|
var orphans = [];
|
|
14974
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
14990
|
+
var _iterator2 = _createForOfIteratorHelper$r(wiring),
|
|
14975
14991
|
_step2;
|
|
14976
14992
|
try {
|
|
14977
14993
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -15037,7 +15053,7 @@ function pruneDeadListenerReferences(workspace) {
|
|
|
15037
15053
|
var liveKeys = new Set();
|
|
15038
15054
|
var _walkForLive = function walkForLive(items) {
|
|
15039
15055
|
if (!Array.isArray(items)) return;
|
|
15040
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
15056
|
+
var _iterator3 = _createForOfIteratorHelper$r(items),
|
|
15041
15057
|
_step3;
|
|
15042
15058
|
try {
|
|
15043
15059
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -15058,7 +15074,7 @@ function pruneDeadListenerReferences(workspace) {
|
|
|
15058
15074
|
};
|
|
15059
15075
|
_walkForLive(workspace.layout);
|
|
15060
15076
|
if (Array.isArray(workspace.pages)) {
|
|
15061
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
15077
|
+
var _iterator4 = _createForOfIteratorHelper$r(workspace.pages),
|
|
15062
15078
|
_step4;
|
|
15063
15079
|
try {
|
|
15064
15080
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
@@ -15075,7 +15091,7 @@ function pruneDeadListenerReferences(workspace) {
|
|
|
15075
15091
|
var removed = 0;
|
|
15076
15092
|
var _pruneListeners = function pruneListeners(items) {
|
|
15077
15093
|
if (!Array.isArray(items)) return;
|
|
15078
|
-
var _iterator5 = _createForOfIteratorHelper$
|
|
15094
|
+
var _iterator5 = _createForOfIteratorHelper$r(items),
|
|
15079
15095
|
_step5;
|
|
15080
15096
|
try {
|
|
15081
15097
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
@@ -15087,7 +15103,7 @@ function pruneDeadListenerReferences(workspace) {
|
|
|
15087
15103
|
var events = item.listeners[handler];
|
|
15088
15104
|
if (!Array.isArray(events)) continue;
|
|
15089
15105
|
var kept = [];
|
|
15090
|
-
var _iterator6 = _createForOfIteratorHelper$
|
|
15106
|
+
var _iterator6 = _createForOfIteratorHelper$r(events),
|
|
15091
15107
|
_step6;
|
|
15092
15108
|
try {
|
|
15093
15109
|
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
@@ -15122,7 +15138,7 @@ function pruneDeadListenerReferences(workspace) {
|
|
|
15122
15138
|
};
|
|
15123
15139
|
_pruneListeners(workspace.layout);
|
|
15124
15140
|
if (Array.isArray(workspace.pages)) {
|
|
15125
|
-
var _iterator7 = _createForOfIteratorHelper$
|
|
15141
|
+
var _iterator7 = _createForOfIteratorHelper$r(workspace.pages),
|
|
15126
15142
|
_step7;
|
|
15127
15143
|
try {
|
|
15128
15144
|
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
@@ -15166,7 +15182,7 @@ function applyWiringChanges(workspace, _ref) {
|
|
|
15166
15182
|
});
|
|
15167
15183
|
return byReceiver.get(id);
|
|
15168
15184
|
};
|
|
15169
|
-
var _iterator8 = _createForOfIteratorHelper$
|
|
15185
|
+
var _iterator8 = _createForOfIteratorHelper$r(adds),
|
|
15170
15186
|
_step8;
|
|
15171
15187
|
try {
|
|
15172
15188
|
for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
|
|
@@ -15179,7 +15195,7 @@ function applyWiringChanges(workspace, _ref) {
|
|
|
15179
15195
|
} finally {
|
|
15180
15196
|
_iterator8.f();
|
|
15181
15197
|
}
|
|
15182
|
-
var _iterator9 = _createForOfIteratorHelper$
|
|
15198
|
+
var _iterator9 = _createForOfIteratorHelper$r(removes),
|
|
15183
15199
|
_step9;
|
|
15184
15200
|
try {
|
|
15185
15201
|
for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
|
|
@@ -15253,7 +15269,7 @@ function applyToItem(listeners, _ref2) {
|
|
|
15253
15269
|
}
|
|
15254
15270
|
|
|
15255
15271
|
// Removes first so a re-add (rare) lands.
|
|
15256
|
-
var _iterator0 = _createForOfIteratorHelper$
|
|
15272
|
+
var _iterator0 = _createForOfIteratorHelper$r(removes),
|
|
15257
15273
|
_step0;
|
|
15258
15274
|
try {
|
|
15259
15275
|
var _loop = function _loop() {
|
|
@@ -15282,7 +15298,7 @@ function applyToItem(listeners, _ref2) {
|
|
|
15282
15298
|
} finally {
|
|
15283
15299
|
_iterator0.f();
|
|
15284
15300
|
}
|
|
15285
|
-
var _iterator1 = _createForOfIteratorHelper$
|
|
15301
|
+
var _iterator1 = _createForOfIteratorHelper$r(adds),
|
|
15286
15302
|
_step1;
|
|
15287
15303
|
try {
|
|
15288
15304
|
for (_iterator1.s(); !(_step1 = _iterator1.n()).done;) {
|
|
@@ -18229,9 +18245,9 @@ function mcpJsonToFormState(jsonString, nextRowId) {
|
|
|
18229
18245
|
return result;
|
|
18230
18246
|
}
|
|
18231
18247
|
|
|
18232
|
-
function _createForOfIteratorHelper$
|
|
18233
|
-
function _unsupportedIterableToArray$
|
|
18234
|
-
function _arrayLikeToArray$
|
|
18248
|
+
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; } } }; }
|
|
18249
|
+
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; } }
|
|
18250
|
+
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; }
|
|
18235
18251
|
function ownKeys$L(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18236
18252
|
function _objectSpread$L(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$L(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$L(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18237
18253
|
var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
@@ -18516,11 +18532,11 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
18516
18532
|
|
|
18517
18533
|
// Flatten all widgets from all packages for the widget list
|
|
18518
18534
|
flatWidgets = [];
|
|
18519
|
-
_iterator = _createForOfIteratorHelper$
|
|
18535
|
+
_iterator = _createForOfIteratorHelper$q(result.packages || []);
|
|
18520
18536
|
try {
|
|
18521
18537
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
18522
18538
|
pkg = _step.value;
|
|
18523
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
18539
|
+
_iterator2 = _createForOfIteratorHelper$q(pkg.widgets || []);
|
|
18524
18540
|
try {
|
|
18525
18541
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
18526
18542
|
widget = _step2.value;
|
|
@@ -20414,9 +20430,9 @@ var useWidgetSchedulerStatus = function useWidgetSchedulerStatus(widgetId) {
|
|
|
20414
20430
|
};
|
|
20415
20431
|
};
|
|
20416
20432
|
|
|
20417
|
-
function _createForOfIteratorHelper$
|
|
20418
|
-
function _unsupportedIterableToArray$
|
|
20419
|
-
function _arrayLikeToArray$
|
|
20433
|
+
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; } } }; }
|
|
20434
|
+
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; } }
|
|
20435
|
+
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; }
|
|
20420
20436
|
function formatCountdown(ms) {
|
|
20421
20437
|
if (ms == null || ms < 0) return "--";
|
|
20422
20438
|
if (ms < 1000) return "< 1s";
|
|
@@ -20533,7 +20549,7 @@ var WidgetCardStatusBar = function WidgetCardStatusBar(_ref) {
|
|
|
20533
20549
|
|
|
20534
20550
|
// Find soonest countdown among enabled tasks
|
|
20535
20551
|
var soonestMs = null;
|
|
20536
|
-
var _iterator = _createForOfIteratorHelper$
|
|
20552
|
+
var _iterator = _createForOfIteratorHelper$p(enabledTasks),
|
|
20537
20553
|
_step;
|
|
20538
20554
|
try {
|
|
20539
20555
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -25790,9 +25806,9 @@ var ExternalWidget = function ExternalWidget(_ref) {
|
|
|
25790
25806
|
var GRID_CELL_WIDGET_TYPE = "grid-cell-widget";
|
|
25791
25807
|
var SIDEBAR_WIDGET_TYPE = "sidebar-widget";
|
|
25792
25808
|
|
|
25793
|
-
function _createForOfIteratorHelper$
|
|
25794
|
-
function _unsupportedIterableToArray$
|
|
25795
|
-
function _arrayLikeToArray$
|
|
25809
|
+
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; } } }; }
|
|
25810
|
+
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; } }
|
|
25811
|
+
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; }
|
|
25796
25812
|
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; }
|
|
25797
25813
|
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; }
|
|
25798
25814
|
|
|
@@ -26415,7 +26431,7 @@ var LayoutGridContainer = /*#__PURE__*/React.memo(function (_ref3) {
|
|
|
26415
26431
|
return selectable["delete"](cn);
|
|
26416
26432
|
});
|
|
26417
26433
|
var resolved = new Set();
|
|
26418
|
-
var _iterator = _createForOfIteratorHelper$
|
|
26434
|
+
var _iterator = _createForOfIteratorHelper$o(selectable),
|
|
26419
26435
|
_step;
|
|
26420
26436
|
try {
|
|
26421
26437
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -28824,9 +28840,9 @@ function migrateBareComponentName(componentMap, component) {
|
|
|
28824
28840
|
|
|
28825
28841
|
function ownKeys$C(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
28826
28842
|
function _objectSpread$C(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$C(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$C(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
28827
|
-
function _createForOfIteratorHelper$
|
|
28828
|
-
function _unsupportedIterableToArray$
|
|
28829
|
-
function _arrayLikeToArray$
|
|
28843
|
+
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; } } }; }
|
|
28844
|
+
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; } }
|
|
28845
|
+
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; }
|
|
28830
28846
|
/**
|
|
28831
28847
|
* The model for all layout components used primarily in the renderLayout method
|
|
28832
28848
|
* @param {Object} layoutItem an object containing various attributes of the layout item
|
|
@@ -28838,7 +28854,7 @@ function _arrayLikeToArray$m(r, a) { (null == a || a > r.length) && (a = r.lengt
|
|
|
28838
28854
|
function sortObjectByKeys(obj) {
|
|
28839
28855
|
var sortedKeys = Object.keys(obj).sort();
|
|
28840
28856
|
var sortedObj = {};
|
|
28841
|
-
var _iterator = _createForOfIteratorHelper$
|
|
28857
|
+
var _iterator = _createForOfIteratorHelper$n(sortedKeys),
|
|
28842
28858
|
_step;
|
|
28843
28859
|
try {
|
|
28844
28860
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -29150,9 +29166,9 @@ var SettingsModel = function SettingsModel() {
|
|
|
29150
29166
|
return obj;
|
|
29151
29167
|
};
|
|
29152
29168
|
|
|
29153
|
-
function _createForOfIteratorHelper$
|
|
29154
|
-
function _unsupportedIterableToArray$
|
|
29155
|
-
function _arrayLikeToArray$
|
|
29169
|
+
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; } } }; }
|
|
29170
|
+
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; } }
|
|
29171
|
+
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; }
|
|
29156
29172
|
|
|
29157
29173
|
/**
|
|
29158
29174
|
* Workspace-level pre-pass that migrates legacy bare component
|
|
@@ -29227,7 +29243,7 @@ function migrateScopedIdsInWorkspace(workspace, componentMap) {
|
|
|
29227
29243
|
};
|
|
29228
29244
|
var _walk = function walk(items) {
|
|
29229
29245
|
if (!Array.isArray(items)) return;
|
|
29230
|
-
var _iterator = _createForOfIteratorHelper$
|
|
29246
|
+
var _iterator = _createForOfIteratorHelper$m(items),
|
|
29231
29247
|
_step;
|
|
29232
29248
|
try {
|
|
29233
29249
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -29249,7 +29265,7 @@ function migrateScopedIdsInWorkspace(workspace, componentMap) {
|
|
|
29249
29265
|
};
|
|
29250
29266
|
_walk(workspace.layout);
|
|
29251
29267
|
if (Array.isArray(workspace.pages)) {
|
|
29252
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
29268
|
+
var _iterator2 = _createForOfIteratorHelper$m(workspace.pages),
|
|
29253
29269
|
_step2;
|
|
29254
29270
|
try {
|
|
29255
29271
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -29266,9 +29282,9 @@ function migrateScopedIdsInWorkspace(workspace, componentMap) {
|
|
|
29266
29282
|
return counts;
|
|
29267
29283
|
}
|
|
29268
29284
|
|
|
29269
|
-
function _createForOfIteratorHelper$
|
|
29270
|
-
function _unsupportedIterableToArray$
|
|
29271
|
-
function _arrayLikeToArray$
|
|
29285
|
+
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; } } }; }
|
|
29286
|
+
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; } }
|
|
29287
|
+
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; }
|
|
29272
29288
|
/**
|
|
29273
29289
|
* cleanForeignWidgetsFromWorkspace.js
|
|
29274
29290
|
*
|
|
@@ -29309,7 +29325,7 @@ function cleanForeignWidgetsFromWorkspace(workspace) {
|
|
|
29309
29325
|
var _cleanList = function cleanList(items) {
|
|
29310
29326
|
if (!Array.isArray(items)) return items;
|
|
29311
29327
|
var kept = [];
|
|
29312
|
-
var _iterator = _createForOfIteratorHelper$
|
|
29328
|
+
var _iterator = _createForOfIteratorHelper$l(items),
|
|
29313
29329
|
_step;
|
|
29314
29330
|
try {
|
|
29315
29331
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -29346,7 +29362,7 @@ function cleanForeignWidgetsFromWorkspace(workspace) {
|
|
|
29346
29362
|
workspace.sidebarLayout = _cleanList(workspace.sidebarLayout);
|
|
29347
29363
|
}
|
|
29348
29364
|
if (Array.isArray(workspace.pages)) {
|
|
29349
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
29365
|
+
var _iterator2 = _createForOfIteratorHelper$l(workspace.pages),
|
|
29350
29366
|
_step2;
|
|
29351
29367
|
try {
|
|
29352
29368
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -29364,9 +29380,9 @@ function cleanForeignWidgetsFromWorkspace(workspace) {
|
|
|
29364
29380
|
return summary;
|
|
29365
29381
|
}
|
|
29366
29382
|
|
|
29367
|
-
function _createForOfIteratorHelper$
|
|
29368
|
-
function _unsupportedIterableToArray$
|
|
29369
|
-
function _arrayLikeToArray$
|
|
29383
|
+
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; } } }; }
|
|
29384
|
+
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; } }
|
|
29385
|
+
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; }
|
|
29370
29386
|
/**
|
|
29371
29387
|
* migrateLayoutItemTypes.js
|
|
29372
29388
|
*
|
|
@@ -29428,7 +29444,7 @@ function migrateLayoutItemTypes(workspace) {
|
|
|
29428
29444
|
};
|
|
29429
29445
|
var _walk = function walk(items) {
|
|
29430
29446
|
if (!Array.isArray(items)) return;
|
|
29431
|
-
var _iterator = _createForOfIteratorHelper$
|
|
29447
|
+
var _iterator = _createForOfIteratorHelper$k(items),
|
|
29432
29448
|
_step;
|
|
29433
29449
|
try {
|
|
29434
29450
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -29446,7 +29462,7 @@ function migrateLayoutItemTypes(workspace) {
|
|
|
29446
29462
|
};
|
|
29447
29463
|
_walk(workspace.layout);
|
|
29448
29464
|
if (Array.isArray(workspace.pages)) {
|
|
29449
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
29465
|
+
var _iterator2 = _createForOfIteratorHelper$k(workspace.pages),
|
|
29450
29466
|
_step2;
|
|
29451
29467
|
try {
|
|
29452
29468
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -29827,6 +29843,9 @@ var ThemeModel = function ThemeModel() {
|
|
|
29827
29843
|
}
|
|
29828
29844
|
};
|
|
29829
29845
|
|
|
29846
|
+
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; } } }; }
|
|
29847
|
+
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; } }
|
|
29848
|
+
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; }
|
|
29830
29849
|
/*
|
|
29831
29850
|
"component": AnalyticsReportsWidget,
|
|
29832
29851
|
"type":"widget",
|
|
@@ -29933,7 +29952,36 @@ var ComponentConfigModel = function ComponentConfigModel() {
|
|
|
29933
29952
|
obj.description = "description" in obj ? obj["description"] : null;
|
|
29934
29953
|
obj.icon = "icon" in obj ? obj["icon"] : null;
|
|
29935
29954
|
obj["package"] = "package" in obj ? obj["package"] : null;
|
|
29936
|
-
|
|
29955
|
+
// Dedup providers by `type`. AI-built widget configs occasionally
|
|
29956
|
+
// ship `providers: [{type:"x"}, {type:"x"}]` — left alone, every
|
|
29957
|
+
// consumer (Providers tab, publish manifest, listener resolution)
|
|
29958
|
+
// doubles its per-widget rows. The Model is the single canonical
|
|
29959
|
+
// entry point for every widget config that gets registered, so
|
|
29960
|
+
// dedup here protects every downstream caller. Source-side fixes
|
|
29961
|
+
// (write-time + publish-time) keep the .dash.js text on disk
|
|
29962
|
+
// clean; this is the runtime-data backstop.
|
|
29963
|
+
if ("providers" in obj && Array.isArray(obj.providers)) {
|
|
29964
|
+
var seen = new Set();
|
|
29965
|
+
var cleaned = [];
|
|
29966
|
+
var _iterator = _createForOfIteratorHelper$j(obj.providers),
|
|
29967
|
+
_step;
|
|
29968
|
+
try {
|
|
29969
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
29970
|
+
var p = _step.value;
|
|
29971
|
+
if (!p || _typeof(p) !== "object" || !p.type) continue;
|
|
29972
|
+
if (seen.has(p.type)) continue;
|
|
29973
|
+
seen.add(p.type);
|
|
29974
|
+
cleaned.push(p);
|
|
29975
|
+
}
|
|
29976
|
+
} catch (err) {
|
|
29977
|
+
_iterator.e(err);
|
|
29978
|
+
} finally {
|
|
29979
|
+
_iterator.f();
|
|
29980
|
+
}
|
|
29981
|
+
obj.providers = cleaned;
|
|
29982
|
+
} else {
|
|
29983
|
+
obj.providers = [];
|
|
29984
|
+
}
|
|
29937
29985
|
|
|
29938
29986
|
/**
|
|
29939
29987
|
* notifications
|
|
@@ -36736,6 +36784,11 @@ function evaluateBundle(source, widgetName) {
|
|
|
36736
36784
|
* a `type` of "widget" or "workspace") or a frozen wrapper around
|
|
36737
36785
|
* a `default` export that is such a config.
|
|
36738
36786
|
*
|
|
36787
|
+
* Note: provider-array dedup is handled centrally in
|
|
36788
|
+
* `Models/ComponentConfigModel` so every widget that gets registered
|
|
36789
|
+
* via `ComponentManager.registerWidget` is normalized in one place.
|
|
36790
|
+
* Don't duplicate the logic here.
|
|
36791
|
+
*
|
|
36739
36792
|
* @param {object} bundleExports - The module.exports from evaluateBundle
|
|
36740
36793
|
* @returns {Array<{key: string, config: object}>} Extracted configs
|
|
36741
36794
|
*/
|