@trops/dash-core 0.1.425 → 0.1.427
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 +32 -10
- package/dist/electron/index.js.map +1 -1
- package/dist/index.esm.js +14 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +62 -68
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8892,10 +8892,10 @@ var syntax = SyntaxError;
|
|
|
8892
8892
|
var type = TypeError;
|
|
8893
8893
|
|
|
8894
8894
|
/** @type {import('./gOPD')} */
|
|
8895
|
-
var gOPD$
|
|
8895
|
+
var gOPD$6 = Object.getOwnPropertyDescriptor;
|
|
8896
8896
|
|
|
8897
8897
|
/** @type {import('.')} */
|
|
8898
|
-
var $gOPD$2 = gOPD$
|
|
8898
|
+
var $gOPD$2 = gOPD$6;
|
|
8899
8899
|
|
|
8900
8900
|
if ($gOPD$2) {
|
|
8901
8901
|
try {
|
|
@@ -9030,7 +9030,7 @@ defineProperties$1.supportsDescriptors = !!supportsDescriptors$2;
|
|
|
9030
9030
|
|
|
9031
9031
|
var defineProperties_1 = defineProperties$1;
|
|
9032
9032
|
|
|
9033
|
-
var callBind$
|
|
9033
|
+
var callBind$7 = {exports: {}};
|
|
9034
9034
|
|
|
9035
9035
|
/** @type {import('.')} */
|
|
9036
9036
|
var esObjectAtoms = Object;
|
|
@@ -9330,78 +9330,60 @@ var callBindApplyHelpers = function callBindBasic(args) {
|
|
|
9330
9330
|
return $actualApply(bind$3, $call$1, args);
|
|
9331
9331
|
};
|
|
9332
9332
|
|
|
9333
|
-
var
|
|
9334
|
-
var
|
|
9333
|
+
var callBind$6 = callBindApplyHelpers;
|
|
9334
|
+
var gOPD$5 = gopd$1;
|
|
9335
9335
|
|
|
9336
|
-
|
|
9337
|
-
|
|
9338
|
-
|
|
9339
|
-
|
|
9340
|
-
|
|
9341
|
-
|
|
9342
|
-
|
|
9343
|
-
var hasProtoAccessor;
|
|
9344
|
-
try {
|
|
9345
|
-
// eslint-disable-next-line no-extra-parens, no-proto
|
|
9346
|
-
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
|
|
9347
|
-
} catch (e) {
|
|
9348
|
-
if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {
|
|
9349
|
-
throw e;
|
|
9350
|
-
}
|
|
9336
|
+
var hasProtoAccessor;
|
|
9337
|
+
try {
|
|
9338
|
+
// eslint-disable-next-line no-extra-parens, no-proto
|
|
9339
|
+
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
|
|
9340
|
+
} catch (e) {
|
|
9341
|
+
if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {
|
|
9342
|
+
throw e;
|
|
9351
9343
|
}
|
|
9352
|
-
|
|
9353
|
-
// eslint-disable-next-line no-extra-parens
|
|
9354
|
-
var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
|
|
9355
|
-
|
|
9356
|
-
var $Object = Object;
|
|
9357
|
-
var $getPrototypeOf = $Object.getPrototypeOf;
|
|
9358
|
-
|
|
9359
|
-
/** @type {import('./get')} */
|
|
9360
|
-
get = desc && typeof desc.get === 'function'
|
|
9361
|
-
? callBind([desc.get])
|
|
9362
|
-
: typeof $getPrototypeOf === 'function'
|
|
9363
|
-
? /** @type {import('./get')} */ function getDunder(value) {
|
|
9364
|
-
// eslint-disable-next-line eqeqeq
|
|
9365
|
-
return $getPrototypeOf(value == null ? value : $Object(value));
|
|
9366
|
-
}
|
|
9367
|
-
: false;
|
|
9368
|
-
return get;
|
|
9369
9344
|
}
|
|
9370
9345
|
|
|
9371
|
-
|
|
9372
|
-
var
|
|
9346
|
+
// eslint-disable-next-line no-extra-parens
|
|
9347
|
+
var desc = !!hasProtoAccessor && gOPD$5 && gOPD$5(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
|
|
9373
9348
|
|
|
9374
|
-
|
|
9375
|
-
|
|
9376
|
-
hasRequiredGetProto = 1;
|
|
9349
|
+
var $Object$3 = Object;
|
|
9350
|
+
var $getPrototypeOf = $Object$3.getPrototypeOf;
|
|
9377
9351
|
|
|
9378
|
-
|
|
9379
|
-
|
|
9352
|
+
/** @type {import('./get')} */
|
|
9353
|
+
var get = desc && typeof desc.get === 'function'
|
|
9354
|
+
? callBind$6([desc.get])
|
|
9355
|
+
: typeof $getPrototypeOf === 'function'
|
|
9356
|
+
? /** @type {import('./get')} */ function getDunder(value) {
|
|
9357
|
+
// eslint-disable-next-line eqeqeq
|
|
9358
|
+
return $getPrototypeOf(value == null ? value : $Object$3(value));
|
|
9359
|
+
}
|
|
9360
|
+
: false;
|
|
9380
9361
|
|
|
9381
|
-
|
|
9362
|
+
var reflectGetProto = requireReflect_getPrototypeOf();
|
|
9363
|
+
var originalGetProto = requireObject_getPrototypeOf();
|
|
9382
9364
|
|
|
9383
|
-
|
|
9384
|
-
|
|
9365
|
+
var getDunderProto = get;
|
|
9366
|
+
|
|
9367
|
+
/** @type {import('.')} */
|
|
9368
|
+
var getProto$3 = reflectGetProto
|
|
9369
|
+
? function getProto(O) {
|
|
9370
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
9371
|
+
return reflectGetProto(O);
|
|
9372
|
+
}
|
|
9373
|
+
: originalGetProto
|
|
9385
9374
|
? function getProto(O) {
|
|
9375
|
+
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
|
9376
|
+
throw new TypeError('getProto: not an object');
|
|
9377
|
+
}
|
|
9386
9378
|
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
9387
|
-
return
|
|
9379
|
+
return originalGetProto(O);
|
|
9388
9380
|
}
|
|
9389
|
-
:
|
|
9381
|
+
: getDunderProto
|
|
9390
9382
|
? function getProto(O) {
|
|
9391
|
-
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
|
9392
|
-
throw new TypeError('getProto: not an object');
|
|
9393
|
-
}
|
|
9394
9383
|
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
9395
|
-
return
|
|
9384
|
+
return getDunderProto(O);
|
|
9396
9385
|
}
|
|
9397
|
-
:
|
|
9398
|
-
? function getProto(O) {
|
|
9399
|
-
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
9400
|
-
return getDunderProto(O);
|
|
9401
|
-
}
|
|
9402
|
-
: null;
|
|
9403
|
-
return getProto$3;
|
|
9404
|
-
}
|
|
9386
|
+
: null;
|
|
9405
9387
|
|
|
9406
9388
|
var call = Function.prototype.call;
|
|
9407
9389
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
@@ -9464,7 +9446,7 @@ var ThrowTypeError = $gOPD$1
|
|
|
9464
9446
|
|
|
9465
9447
|
var hasSymbols$3 = hasSymbols$4();
|
|
9466
9448
|
|
|
9467
|
-
var getProto$2 =
|
|
9449
|
+
var getProto$2 = getProto$3;
|
|
9468
9450
|
var $ObjectGPO = requireObject_getPrototypeOf();
|
|
9469
9451
|
var $ReflectGPO = requireReflect_getPrototypeOf();
|
|
9470
9452
|
|
|
@@ -9861,9 +9843,9 @@ var applyBind = function applyBind() {
|
|
|
9861
9843
|
} else {
|
|
9862
9844
|
module.exports.apply = applyBind$1;
|
|
9863
9845
|
}
|
|
9864
|
-
} (callBind$
|
|
9846
|
+
} (callBind$7));
|
|
9865
9847
|
|
|
9866
|
-
var callBindExports = callBind$
|
|
9848
|
+
var callBindExports = callBind$7.exports;
|
|
9867
9849
|
|
|
9868
9850
|
var GetIntrinsic$7 = getIntrinsic;
|
|
9869
9851
|
|
|
@@ -10162,7 +10144,7 @@ var getPolyfill$3 = polyfill$2;
|
|
|
10162
10144
|
var gOPD$2 = gopd$1;
|
|
10163
10145
|
var defineProperty = Object.defineProperty;
|
|
10164
10146
|
var $TypeError$5 = esErrors;
|
|
10165
|
-
var getProto$1 =
|
|
10147
|
+
var getProto$1 = getProto$3;
|
|
10166
10148
|
var regex = /a/;
|
|
10167
10149
|
|
|
10168
10150
|
var shim$3 = function shimFlags() {
|
|
@@ -12278,7 +12260,7 @@ var availableTypedArrays = availableTypedArrays$1;
|
|
|
12278
12260
|
var callBind = callBindExports;
|
|
12279
12261
|
var callBound$2 = callBound$i;
|
|
12280
12262
|
var gOPD = gopd$1;
|
|
12281
|
-
var getProto =
|
|
12263
|
+
var getProto = getProto$3;
|
|
12282
12264
|
|
|
12283
12265
|
var $toString = callBound$2('Object.prototype.toString');
|
|
12284
12266
|
var hasToStringTag = shams();
|
|
@@ -14353,10 +14335,22 @@ var PanelEditItemHandlers = function PanelEditItemHandlers(_ref) {
|
|
|
14353
14335
|
});
|
|
14354
14336
|
};
|
|
14355
14337
|
|
|
14338
|
+
/**
|
|
14339
|
+
* Return the subset of provider declarations that are user-configurable
|
|
14340
|
+
* (anything except `providerClass: "api"`, which is satisfied by the
|
|
14341
|
+
* app itself and not picked per widget).
|
|
14342
|
+
*
|
|
14343
|
+
* Tolerates malformed input: if the array contains `null`/`undefined`
|
|
14344
|
+
* slots (occasionally seen after a widget install where the registry
|
|
14345
|
+
* ships a sparse `providers` array), those entries are dropped instead
|
|
14346
|
+
* of crashing the whole renderer. Without the null-guard, any caller
|
|
14347
|
+
* inside a React `useMemo` (e.g. WidgetsSection's `uniqueProviders`)
|
|
14348
|
+
* throws at mount and takes the Settings → Widgets pane down with it.
|
|
14349
|
+
*/
|
|
14356
14350
|
var getUserConfigurableProviders = function getUserConfigurableProviders(providers) {
|
|
14357
|
-
if (!providers) return [];
|
|
14351
|
+
if (!Array.isArray(providers)) return [];
|
|
14358
14352
|
return providers.filter(function (p) {
|
|
14359
|
-
return p.providerClass !== "api";
|
|
14353
|
+
return p && p.providerClass !== "api";
|
|
14360
14354
|
});
|
|
14361
14355
|
};
|
|
14362
14356
|
|