@trops/dash-core 0.1.264 → 0.1.266
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 +26 -3
- package/dist/electron/index.js.map +1 -1
- package/dist/index.esm.js +51 -42
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +83 -83
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8529,7 +8529,7 @@ hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBu
|
|
|
8529
8529
|
var hasPropertyDescriptors_1 = hasPropertyDescriptors;
|
|
8530
8530
|
|
|
8531
8531
|
var keys = objectKeys$2;
|
|
8532
|
-
var hasSymbols$
|
|
8532
|
+
var hasSymbols$5 = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
|
|
8533
8533
|
|
|
8534
8534
|
var toStr$4 = Object.prototype.toString;
|
|
8535
8535
|
var concat = Array.prototype.concat;
|
|
@@ -8562,7 +8562,7 @@ var defineProperty$1 = function (object, name, value, predicate) {
|
|
|
8562
8562
|
var defineProperties$1 = function (object, map) {
|
|
8563
8563
|
var predicates = arguments.length > 2 ? arguments[2] : {};
|
|
8564
8564
|
var props = keys(map);
|
|
8565
|
-
if (hasSymbols$
|
|
8565
|
+
if (hasSymbols$5) {
|
|
8566
8566
|
props = concat.call(props, Object.getOwnPropertySymbols(map));
|
|
8567
8567
|
}
|
|
8568
8568
|
for (var i = 0; i < props.length; i += 1) {
|
|
@@ -8628,11 +8628,11 @@ var sign$1 = function sign(number) {
|
|
|
8628
8628
|
};
|
|
8629
8629
|
|
|
8630
8630
|
var shams$1;
|
|
8631
|
-
var hasRequiredShams
|
|
8631
|
+
var hasRequiredShams;
|
|
8632
8632
|
|
|
8633
|
-
function requireShams
|
|
8634
|
-
if (hasRequiredShams
|
|
8635
|
-
hasRequiredShams
|
|
8633
|
+
function requireShams () {
|
|
8634
|
+
if (hasRequiredShams) return shams$1;
|
|
8635
|
+
hasRequiredShams = 1;
|
|
8636
8636
|
|
|
8637
8637
|
/** @type {import('./shams')} */
|
|
8638
8638
|
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
@@ -8681,10 +8681,10 @@ function requireShams$1 () {
|
|
|
8681
8681
|
}
|
|
8682
8682
|
|
|
8683
8683
|
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
8684
|
-
var hasSymbolSham = requireShams
|
|
8684
|
+
var hasSymbolSham = requireShams();
|
|
8685
8685
|
|
|
8686
8686
|
/** @type {import('.')} */
|
|
8687
|
-
var hasSymbols$
|
|
8687
|
+
var hasSymbols$4 = function hasNativeSymbols() {
|
|
8688
8688
|
if (typeof origSymbol !== 'function') { return false; }
|
|
8689
8689
|
if (typeof Symbol !== 'function') { return false; }
|
|
8690
8690
|
if (typeof origSymbol('foo') !== 'symbol') { return false; }
|
|
@@ -8988,7 +8988,7 @@ var ThrowTypeError = $gOPD$1
|
|
|
8988
8988
|
}())
|
|
8989
8989
|
: throwTypeError;
|
|
8990
8990
|
|
|
8991
|
-
var hasSymbols$
|
|
8991
|
+
var hasSymbols$3 = hasSymbols$4();
|
|
8992
8992
|
|
|
8993
8993
|
var getProto$2 = getProto$3;
|
|
8994
8994
|
var $ObjectGPO = requireObject_getPrototypeOf();
|
|
@@ -9006,7 +9006,7 @@ var INTRINSICS = {
|
|
|
9006
9006
|
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
|
|
9007
9007
|
'%Array%': Array,
|
|
9008
9008
|
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
|
|
9009
|
-
'%ArrayIteratorPrototype%': hasSymbols$
|
|
9009
|
+
'%ArrayIteratorPrototype%': hasSymbols$3 && getProto$2 ? getProto$2([][Symbol.iterator]()) : undefined$1,
|
|
9010
9010
|
'%AsyncFromSyncIteratorPrototype%': undefined$1,
|
|
9011
9011
|
'%AsyncFunction%': needsEval,
|
|
9012
9012
|
'%AsyncGenerator%': needsEval,
|
|
@@ -9037,10 +9037,10 @@ var INTRINSICS = {
|
|
|
9037
9037
|
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
|
|
9038
9038
|
'%isFinite%': isFinite,
|
|
9039
9039
|
'%isNaN%': isNaN,
|
|
9040
|
-
'%IteratorPrototype%': hasSymbols$
|
|
9040
|
+
'%IteratorPrototype%': hasSymbols$3 && getProto$2 ? getProto$2(getProto$2([][Symbol.iterator]())) : undefined$1,
|
|
9041
9041
|
'%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
|
|
9042
9042
|
'%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
|
|
9043
|
-
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$
|
|
9043
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$3 || !getProto$2 ? undefined$1 : getProto$2(new Map()[Symbol.iterator]()),
|
|
9044
9044
|
'%Math%': Math,
|
|
9045
9045
|
'%Number%': Number,
|
|
9046
9046
|
'%Object%': $Object$2,
|
|
@@ -9054,11 +9054,11 @@ var INTRINSICS = {
|
|
|
9054
9054
|
'%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
|
|
9055
9055
|
'%RegExp%': RegExp,
|
|
9056
9056
|
'%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
|
|
9057
|
-
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$
|
|
9057
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$3 || !getProto$2 ? undefined$1 : getProto$2(new Set()[Symbol.iterator]()),
|
|
9058
9058
|
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
|
|
9059
9059
|
'%String%': String,
|
|
9060
|
-
'%StringIteratorPrototype%': hasSymbols$
|
|
9061
|
-
'%Symbol%': hasSymbols$
|
|
9060
|
+
'%StringIteratorPrototype%': hasSymbols$3 && getProto$2 ? getProto$2(''[Symbol.iterator]()) : undefined$1,
|
|
9061
|
+
'%Symbol%': hasSymbols$3 ? Symbol : undefined$1,
|
|
9062
9062
|
'%SyntaxError%': $SyntaxError$1,
|
|
9063
9063
|
'%ThrowTypeError%': ThrowTypeError,
|
|
9064
9064
|
'%TypedArray%': TypedArray,
|
|
@@ -9411,12 +9411,12 @@ var callBound$i = function callBoundIntrinsic(name, allowMissing) {
|
|
|
9411
9411
|
|
|
9412
9412
|
// modified from https://github.com/es-shims/es6-shim
|
|
9413
9413
|
var objectKeys$1 = objectKeys$2;
|
|
9414
|
-
var hasSymbols$
|
|
9414
|
+
var hasSymbols$2 = requireShams()();
|
|
9415
9415
|
var callBound$h = callBound$i;
|
|
9416
9416
|
var $Object$1 = esObjectAtoms;
|
|
9417
9417
|
var $push = callBound$h('Array.prototype.push');
|
|
9418
9418
|
var $propIsEnumerable = callBound$h('Object.prototype.propertyIsEnumerable');
|
|
9419
|
-
var originalGetSymbols = hasSymbols$
|
|
9419
|
+
var originalGetSymbols = hasSymbols$2 ? $Object$1.getOwnPropertySymbols : null;
|
|
9420
9420
|
|
|
9421
9421
|
// eslint-disable-next-line no-unused-vars
|
|
9422
9422
|
var implementation$8 = function assign(target, source1) {
|
|
@@ -9430,7 +9430,7 @@ var implementation$8 = function assign(target, source1) {
|
|
|
9430
9430
|
|
|
9431
9431
|
// step 3.a.ii:
|
|
9432
9432
|
var keys = objectKeys$1(from);
|
|
9433
|
-
var getSymbols = hasSymbols$
|
|
9433
|
+
var getSymbols = hasSymbols$2 && ($Object$1.getOwnPropertySymbols || originalGetSymbols);
|
|
9434
9434
|
if (getSymbols) {
|
|
9435
9435
|
var syms = getSymbols(from);
|
|
9436
9436
|
for (var j = 0; j < syms.length; ++j) {
|
|
@@ -9727,23 +9727,14 @@ var regexp_prototype_flags = flagsBound;
|
|
|
9727
9727
|
|
|
9728
9728
|
var esGetIterator = {exports: {}};
|
|
9729
9729
|
|
|
9730
|
-
var
|
|
9731
|
-
var hasRequiredShams;
|
|
9730
|
+
var hasSymbols$1 = requireShams();
|
|
9732
9731
|
|
|
9733
|
-
|
|
9734
|
-
|
|
9735
|
-
|
|
9736
|
-
|
|
9737
|
-
var hasSymbols = requireShams$1();
|
|
9738
|
-
|
|
9739
|
-
/** @type {import('.')} */
|
|
9740
|
-
shams = function hasToStringTagShams() {
|
|
9741
|
-
return hasSymbols() && !!Symbol.toStringTag;
|
|
9742
|
-
};
|
|
9743
|
-
return shams;
|
|
9744
|
-
}
|
|
9732
|
+
/** @type {import('.')} */
|
|
9733
|
+
var shams = function hasToStringTagShams() {
|
|
9734
|
+
return hasSymbols$1() && !!Symbol.toStringTag;
|
|
9735
|
+
};
|
|
9745
9736
|
|
|
9746
|
-
var hasToStringTag$7 =
|
|
9737
|
+
var hasToStringTag$7 = shams();
|
|
9747
9738
|
var callBound$f = callBound$i;
|
|
9748
9739
|
|
|
9749
9740
|
var $toString$7 = callBound$f('Object.prototype.toString');
|
|
@@ -10780,7 +10771,7 @@ var tryStringObject = function tryStringObject(value) {
|
|
|
10780
10771
|
/** @type {(receiver: ThisParameterType<typeof Object.prototype.toString>, ...args: Parameters<typeof Object.prototype.toString>) => ReturnType<typeof Object.prototype.toString>} */
|
|
10781
10772
|
var $toString$6 = callBound$c('Object.prototype.toString');
|
|
10782
10773
|
var strClass = '[object String]';
|
|
10783
|
-
var hasToStringTag$6 =
|
|
10774
|
+
var hasToStringTag$6 = shams();
|
|
10784
10775
|
|
|
10785
10776
|
/** @type {import('.')} */
|
|
10786
10777
|
var isString$2 = function isString(value) {
|
|
@@ -10896,7 +10887,7 @@ var isSet$2 = exported$1 || function isSet(x) {
|
|
|
10896
10887
|
var isArguments$1 = isArguments$2;
|
|
10897
10888
|
var getStopIterationIterator = stopIterationIterator;
|
|
10898
10889
|
|
|
10899
|
-
if (hasSymbols$
|
|
10890
|
+
if (hasSymbols$4() || requireShams()()) {
|
|
10900
10891
|
var $iterator = Symbol.iterator;
|
|
10901
10892
|
// Symbol is available natively or shammed
|
|
10902
10893
|
// natively:
|
|
@@ -11185,7 +11176,7 @@ var tryDateObject = function tryDateGetDayCall(value) {
|
|
|
11185
11176
|
/** @type {(value: unknown) => string} */
|
|
11186
11177
|
var toStr$2 = callBound$9('Object.prototype.toString');
|
|
11187
11178
|
var dateClass = '[object Date]';
|
|
11188
|
-
var hasToStringTag$5 =
|
|
11179
|
+
var hasToStringTag$5 = shams();
|
|
11189
11180
|
|
|
11190
11181
|
/** @type {import('.')} */
|
|
11191
11182
|
var isDateObject = function isDateObject(value) {
|
|
@@ -11196,7 +11187,7 @@ var isDateObject = function isDateObject(value) {
|
|
|
11196
11187
|
};
|
|
11197
11188
|
|
|
11198
11189
|
var callBound$8 = callBound$i;
|
|
11199
|
-
var hasToStringTag$4 =
|
|
11190
|
+
var hasToStringTag$4 = shams();
|
|
11200
11191
|
var hasOwn = hasown;
|
|
11201
11192
|
var gOPD$1 = gopd$1;
|
|
11202
11193
|
|
|
@@ -11301,7 +11292,7 @@ var tryNumberObject = function tryNumberObject(value) {
|
|
|
11301
11292
|
};
|
|
11302
11293
|
var $toString$3 = callBound$6('Object.prototype.toString');
|
|
11303
11294
|
var numClass = '[object Number]';
|
|
11304
|
-
var hasToStringTag$3 =
|
|
11295
|
+
var hasToStringTag$3 = shams();
|
|
11305
11296
|
|
|
11306
11297
|
/** @type {import('.')} */
|
|
11307
11298
|
var isNumberObject = function isNumberObject(value) {
|
|
@@ -11328,7 +11319,7 @@ var tryBooleanObject = function booleanBrandCheck(value) {
|
|
|
11328
11319
|
}
|
|
11329
11320
|
};
|
|
11330
11321
|
var boolClass = '[object Boolean]';
|
|
11331
|
-
var hasToStringTag$2 =
|
|
11322
|
+
var hasToStringTag$2 = shams();
|
|
11332
11323
|
|
|
11333
11324
|
/** @type {import('.')} */
|
|
11334
11325
|
var isBooleanObject = function isBoolean(value) {
|
|
@@ -11370,7 +11361,7 @@ function requireSafeRegexTest () {
|
|
|
11370
11361
|
|
|
11371
11362
|
var callBound$4 = callBound$i;
|
|
11372
11363
|
var $toString$1 = callBound$4('Object.prototype.toString');
|
|
11373
|
-
var hasSymbols = hasSymbols$
|
|
11364
|
+
var hasSymbols = hasSymbols$4();
|
|
11374
11365
|
var safeRegexTest = requireSafeRegexTest();
|
|
11375
11366
|
|
|
11376
11367
|
if (hasSymbols) {
|
|
@@ -11816,7 +11807,7 @@ var gOPD = gopd$1;
|
|
|
11816
11807
|
var getProto = getProto$3;
|
|
11817
11808
|
|
|
11818
11809
|
var $toString = callBound$2('Object.prototype.toString');
|
|
11819
|
-
var hasToStringTag =
|
|
11810
|
+
var hasToStringTag = shams();
|
|
11820
11811
|
|
|
11821
11812
|
var g = typeof globalThis === 'undefined' ? commonjsGlobal : globalThis;
|
|
11822
11813
|
var typedArrays = availableTypedArrays();
|
|
@@ -45078,7 +45069,7 @@ var useInstalledWidgets = function useInstalledWidgets() {
|
|
|
45078
45069
|
error = _useState6[0],
|
|
45079
45070
|
setError = _useState6[1];
|
|
45080
45071
|
var refresh = React.useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
45081
|
-
var _window$mainApi, cMap, builtinWidgets,
|
|
45072
|
+
var _window$mainApi, cMap, builtinWidgets, registryByName, list, installedFromCM, cmSourcePackages, fallbackInstalled, _t;
|
|
45082
45073
|
return _regeneratorRuntime.wrap(function (_context) {
|
|
45083
45074
|
while (1) switch (_context.prev = _context.next) {
|
|
45084
45075
|
case 0:
|
|
@@ -45089,6 +45080,8 @@ var useInstalledWidgets = function useInstalledWidgets() {
|
|
|
45089
45080
|
cMap = ComponentManager.componentMap() || {};
|
|
45090
45081
|
builtinWidgets = Object.keys(cMap).filter(function (key) {
|
|
45091
45082
|
return cMap[key].type === "widget";
|
|
45083
|
+
}).filter(function (key) {
|
|
45084
|
+
return !cMap[key]._sourcePackage;
|
|
45092
45085
|
}).map(function (key) {
|
|
45093
45086
|
var config = cMap[key];
|
|
45094
45087
|
return {
|
|
@@ -45105,11 +45098,11 @@ var useInstalledWidgets = function useInstalledWidgets() {
|
|
|
45105
45098
|
workspace: config.workspace || null,
|
|
45106
45099
|
componentNames: [key]
|
|
45107
45100
|
};
|
|
45108
|
-
}); // ── Installed widgets from
|
|
45109
|
-
//
|
|
45110
|
-
//
|
|
45111
|
-
//
|
|
45112
|
-
|
|
45101
|
+
}); // ── Installed widgets from ComponentManager + Registry ───
|
|
45102
|
+
// CM entries with _sourcePackage are registry-installed widgets.
|
|
45103
|
+
// Show each as an individual "installed" entry, enriched with
|
|
45104
|
+
// registry-level metadata (version, path, packageId).
|
|
45105
|
+
registryByName = {};
|
|
45113
45106
|
if (!((_window$mainApi = window.mainApi) !== null && _window$mainApi !== void 0 && _window$mainApi.widgets)) {
|
|
45114
45107
|
_context.next = 3;
|
|
45115
45108
|
break;
|
|
@@ -45118,50 +45111,57 @@ var useInstalledWidgets = function useInstalledWidgets() {
|
|
|
45118
45111
|
return window.mainApi.widgets.list();
|
|
45119
45112
|
case 2:
|
|
45120
45113
|
list = _context.sent;
|
|
45121
|
-
|
|
45122
|
-
|
|
45123
|
-
|
|
45124
|
-
|
|
45125
|
-
|
|
45126
|
-
|
|
45127
|
-
|
|
45128
|
-
|
|
45129
|
-
|
|
45130
|
-
|
|
45131
|
-
|
|
45114
|
+
(list || []).forEach(function (w) {
|
|
45115
|
+
registryByName[w.name] = w;
|
|
45116
|
+
});
|
|
45117
|
+
case 3:
|
|
45118
|
+
installedFromCM = Object.keys(cMap).filter(function (key) {
|
|
45119
|
+
return cMap[key].type === "widget" && !!cMap[key]._sourcePackage;
|
|
45120
|
+
}).map(function (key) {
|
|
45121
|
+
var config = cMap[key];
|
|
45122
|
+
var reg = registryByName[config._sourcePackage] || {};
|
|
45123
|
+
return {
|
|
45124
|
+
name: key,
|
|
45125
|
+
displayName: config.name || key,
|
|
45126
|
+
author: config.author || reg.author || null,
|
|
45127
|
+
"package": config["package"] || null,
|
|
45128
|
+
description: config.description || null,
|
|
45129
|
+
icon: config.icon || null,
|
|
45130
|
+
version: reg.version || null,
|
|
45131
|
+
path: reg.path || null,
|
|
45132
|
+
source: "installed",
|
|
45133
|
+
providers: config.providers || [],
|
|
45134
|
+
workspace: config.workspace || null,
|
|
45135
|
+
componentNames: [key],
|
|
45136
|
+
packageId: reg.packageId || config._sourcePackage
|
|
45137
|
+
};
|
|
45138
|
+
}); // Fallback: registry packages whose components never loaded
|
|
45139
|
+
// into CM (e.g. compile failure). Show the package-level entry.
|
|
45140
|
+
cmSourcePackages = new Set(Object.values(cMap).filter(function (c) {
|
|
45141
|
+
return c._sourcePackage;
|
|
45142
|
+
}).map(function (c) {
|
|
45143
|
+
return c._sourcePackage;
|
|
45144
|
+
}));
|
|
45145
|
+
fallbackInstalled = Object.values(registryByName).filter(function (w) {
|
|
45146
|
+
return !cmSourcePackages.has(w.name);
|
|
45147
|
+
}).map(function (w) {
|
|
45132
45148
|
return {
|
|
45133
45149
|
name: w.name,
|
|
45134
|
-
displayName: w.displayName ||
|
|
45135
|
-
author: w.author ||
|
|
45136
|
-
"package": w["package"] ||
|
|
45137
|
-
description: w.description ||
|
|
45138
|
-
icon: w.icon ||
|
|
45150
|
+
displayName: w.displayName || w.name,
|
|
45151
|
+
author: w.author || null,
|
|
45152
|
+
"package": w["package"] || null,
|
|
45153
|
+
description: w.description || null,
|
|
45154
|
+
icon: w.icon || null,
|
|
45139
45155
|
version: w.version || null,
|
|
45140
45156
|
path: w.path || null,
|
|
45141
45157
|
source: "installed",
|
|
45142
|
-
providers:
|
|
45143
|
-
workspace: w.workspace ||
|
|
45144
|
-
componentNames: w.componentNames ||
|
|
45158
|
+
providers: w.providers || [],
|
|
45159
|
+
workspace: w.workspace || null,
|
|
45160
|
+
componentNames: w.componentNames || [],
|
|
45145
45161
|
packageId: w.packageId || w.name
|
|
45146
45162
|
};
|
|
45147
45163
|
});
|
|
45148
|
-
|
|
45149
|
-
// ── Merge: installed wins on name collision ──────────────
|
|
45150
|
-
// Also remove builtin entries whose _sourcePackage matches an
|
|
45151
|
-
// installed widget name (e.g. builtin "WeatherWidget" with
|
|
45152
|
-
// _sourcePackage "weather-widget" is the same as installed
|
|
45153
|
-
// "weather-widget").
|
|
45154
|
-
installedNames = new Set(installedWidgets.map(function (w) {
|
|
45155
|
-
return w.name;
|
|
45156
|
-
}));
|
|
45157
|
-
deduped = builtinWidgets.filter(function (w) {
|
|
45158
|
-
var _cMap$w$name;
|
|
45159
|
-
if (installedNames.has(w.name)) return false;
|
|
45160
|
-
var sp = (_cMap$w$name = cMap[w.name]) === null || _cMap$w$name === void 0 ? void 0 : _cMap$w$name._sourcePackage;
|
|
45161
|
-
if (sp && installedNames.has(sp)) return false;
|
|
45162
|
-
return true;
|
|
45163
|
-
});
|
|
45164
|
-
setWidgets([].concat(_toConsumableArray(deduped), _toConsumableArray(installedWidgets)));
|
|
45164
|
+
setWidgets([].concat(_toConsumableArray(builtinWidgets), _toConsumableArray(installedFromCM), _toConsumableArray(fallbackInstalled)));
|
|
45165
45165
|
_context.next = 5;
|
|
45166
45166
|
break;
|
|
45167
45167
|
case 4:
|