@trops/dash-core 0.1.420 → 0.1.421

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 CHANGED
@@ -8967,7 +8967,7 @@ hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBu
8967
8967
  var hasPropertyDescriptors_1 = hasPropertyDescriptors;
8968
8968
 
8969
8969
  var keys = objectKeys$2;
8970
- var hasSymbols$4 = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
8970
+ var hasSymbols$5 = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
8971
8971
 
8972
8972
  var toStr$4 = Object.prototype.toString;
8973
8973
  var concat = Array.prototype.concat;
@@ -9000,7 +9000,7 @@ var defineProperty$1 = function (object, name, value, predicate) {
9000
9000
  var defineProperties$1 = function (object, map) {
9001
9001
  var predicates = arguments.length > 2 ? arguments[2] : {};
9002
9002
  var props = keys(map);
9003
- if (hasSymbols$4) {
9003
+ if (hasSymbols$5) {
9004
9004
  props = concat.call(props, Object.getOwnPropertySymbols(map));
9005
9005
  }
9006
9006
  for (var i = 0; i < props.length; i += 1) {
@@ -9066,11 +9066,11 @@ var sign$1 = function sign(number) {
9066
9066
  };
9067
9067
 
9068
9068
  var shams$1;
9069
- var hasRequiredShams$1;
9069
+ var hasRequiredShams;
9070
9070
 
9071
- function requireShams$1 () {
9072
- if (hasRequiredShams$1) return shams$1;
9073
- hasRequiredShams$1 = 1;
9071
+ function requireShams () {
9072
+ if (hasRequiredShams) return shams$1;
9073
+ hasRequiredShams = 1;
9074
9074
 
9075
9075
  /** @type {import('./shams')} */
9076
9076
  /* eslint complexity: [2, 18], max-statements: [2, 33] */
@@ -9119,10 +9119,10 @@ function requireShams$1 () {
9119
9119
  }
9120
9120
 
9121
9121
  var origSymbol = typeof Symbol !== 'undefined' && Symbol;
9122
- var hasSymbolSham = requireShams$1();
9122
+ var hasSymbolSham = requireShams();
9123
9123
 
9124
9124
  /** @type {import('.')} */
9125
- var hasSymbols$3 = function hasNativeSymbols() {
9125
+ var hasSymbols$4 = function hasNativeSymbols() {
9126
9126
  if (typeof origSymbol !== 'function') { return false; }
9127
9127
  if (typeof Symbol !== 'function') { return false; }
9128
9128
  if (typeof origSymbol('foo') !== 'symbol') { return false; }
@@ -9426,7 +9426,7 @@ var ThrowTypeError = $gOPD$1
9426
9426
  }())
9427
9427
  : throwTypeError;
9428
9428
 
9429
- var hasSymbols$2 = hasSymbols$3();
9429
+ var hasSymbols$3 = hasSymbols$4();
9430
9430
 
9431
9431
  var getProto$2 = getProto$3;
9432
9432
  var $ObjectGPO = requireObject_getPrototypeOf();
@@ -9444,7 +9444,7 @@ var INTRINSICS = {
9444
9444
  '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
9445
9445
  '%Array%': Array,
9446
9446
  '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
9447
- '%ArrayIteratorPrototype%': hasSymbols$2 && getProto$2 ? getProto$2([][Symbol.iterator]()) : undefined$1,
9447
+ '%ArrayIteratorPrototype%': hasSymbols$3 && getProto$2 ? getProto$2([][Symbol.iterator]()) : undefined$1,
9448
9448
  '%AsyncFromSyncIteratorPrototype%': undefined$1,
9449
9449
  '%AsyncFunction%': needsEval,
9450
9450
  '%AsyncGenerator%': needsEval,
@@ -9475,10 +9475,10 @@ var INTRINSICS = {
9475
9475
  '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
9476
9476
  '%isFinite%': isFinite,
9477
9477
  '%isNaN%': isNaN,
9478
- '%IteratorPrototype%': hasSymbols$2 && getProto$2 ? getProto$2(getProto$2([][Symbol.iterator]())) : undefined$1,
9478
+ '%IteratorPrototype%': hasSymbols$3 && getProto$2 ? getProto$2(getProto$2([][Symbol.iterator]())) : undefined$1,
9479
9479
  '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
9480
9480
  '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
9481
- '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$2 || !getProto$2 ? undefined$1 : getProto$2(new Map()[Symbol.iterator]()),
9481
+ '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$3 || !getProto$2 ? undefined$1 : getProto$2(new Map()[Symbol.iterator]()),
9482
9482
  '%Math%': Math,
9483
9483
  '%Number%': Number,
9484
9484
  '%Object%': $Object$2,
@@ -9492,11 +9492,11 @@ var INTRINSICS = {
9492
9492
  '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
9493
9493
  '%RegExp%': RegExp,
9494
9494
  '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
9495
- '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$2 || !getProto$2 ? undefined$1 : getProto$2(new Set()[Symbol.iterator]()),
9495
+ '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$3 || !getProto$2 ? undefined$1 : getProto$2(new Set()[Symbol.iterator]()),
9496
9496
  '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
9497
9497
  '%String%': String,
9498
- '%StringIteratorPrototype%': hasSymbols$2 && getProto$2 ? getProto$2(''[Symbol.iterator]()) : undefined$1,
9499
- '%Symbol%': hasSymbols$2 ? Symbol : undefined$1,
9498
+ '%StringIteratorPrototype%': hasSymbols$3 && getProto$2 ? getProto$2(''[Symbol.iterator]()) : undefined$1,
9499
+ '%Symbol%': hasSymbols$3 ? Symbol : undefined$1,
9500
9500
  '%SyntaxError%': $SyntaxError$1,
9501
9501
  '%ThrowTypeError%': ThrowTypeError,
9502
9502
  '%TypedArray%': TypedArray,
@@ -9849,12 +9849,12 @@ var callBound$i = function callBoundIntrinsic(name, allowMissing) {
9849
9849
 
9850
9850
  // modified from https://github.com/es-shims/es6-shim
9851
9851
  var objectKeys$1 = objectKeys$2;
9852
- var hasSymbols$1 = requireShams$1()();
9852
+ var hasSymbols$2 = requireShams()();
9853
9853
  var callBound$h = callBound$i;
9854
9854
  var $Object$1 = esObjectAtoms;
9855
9855
  var $push = callBound$h('Array.prototype.push');
9856
9856
  var $propIsEnumerable = callBound$h('Object.prototype.propertyIsEnumerable');
9857
- var originalGetSymbols = hasSymbols$1 ? $Object$1.getOwnPropertySymbols : null;
9857
+ var originalGetSymbols = hasSymbols$2 ? $Object$1.getOwnPropertySymbols : null;
9858
9858
 
9859
9859
  // eslint-disable-next-line no-unused-vars
9860
9860
  var implementation$8 = function assign(target, source1) {
@@ -9868,7 +9868,7 @@ var implementation$8 = function assign(target, source1) {
9868
9868
 
9869
9869
  // step 3.a.ii:
9870
9870
  var keys = objectKeys$1(from);
9871
- var getSymbols = hasSymbols$1 && ($Object$1.getOwnPropertySymbols || originalGetSymbols);
9871
+ var getSymbols = hasSymbols$2 && ($Object$1.getOwnPropertySymbols || originalGetSymbols);
9872
9872
  if (getSymbols) {
9873
9873
  var syms = getSymbols(from);
9874
9874
  for (var j = 0; j < syms.length; ++j) {
@@ -10165,23 +10165,14 @@ var regexp_prototype_flags = flagsBound;
10165
10165
 
10166
10166
  var esGetIterator = {exports: {}};
10167
10167
 
10168
- var shams;
10169
- var hasRequiredShams;
10168
+ var hasSymbols$1 = requireShams();
10170
10169
 
10171
- function requireShams () {
10172
- if (hasRequiredShams) return shams;
10173
- hasRequiredShams = 1;
10174
-
10175
- var hasSymbols = requireShams$1();
10176
-
10177
- /** @type {import('.')} */
10178
- shams = function hasToStringTagShams() {
10179
- return hasSymbols() && !!Symbol.toStringTag;
10180
- };
10181
- return shams;
10182
- }
10170
+ /** @type {import('.')} */
10171
+ var shams = function hasToStringTagShams() {
10172
+ return hasSymbols$1() && !!Symbol.toStringTag;
10173
+ };
10183
10174
 
10184
- var hasToStringTag$7 = requireShams()();
10175
+ var hasToStringTag$7 = shams();
10185
10176
  var callBound$f = callBound$i;
10186
10177
 
10187
10178
  var $toString$7 = callBound$f('Object.prototype.toString');
@@ -11218,7 +11209,7 @@ var tryStringObject = function tryStringObject(value) {
11218
11209
  /** @type {(receiver: ThisParameterType<typeof Object.prototype.toString>, ...args: Parameters<typeof Object.prototype.toString>) => ReturnType<typeof Object.prototype.toString>} */
11219
11210
  var $toString$6 = callBound$c('Object.prototype.toString');
11220
11211
  var strClass = '[object String]';
11221
- var hasToStringTag$6 = requireShams()();
11212
+ var hasToStringTag$6 = shams();
11222
11213
 
11223
11214
  /** @type {import('.')} */
11224
11215
  var isString$2 = function isString(value) {
@@ -11334,7 +11325,7 @@ var isSet$2 = exported$1 || function isSet(x) {
11334
11325
  var isArguments$1 = isArguments$2;
11335
11326
  var getStopIterationIterator = stopIterationIterator;
11336
11327
 
11337
- if (hasSymbols$3() || requireShams$1()()) {
11328
+ if (hasSymbols$4() || requireShams()()) {
11338
11329
  var $iterator = Symbol.iterator;
11339
11330
  // Symbol is available natively or shammed
11340
11331
  // natively:
@@ -11623,7 +11614,7 @@ var tryDateObject = function tryDateGetDayCall(value) {
11623
11614
  /** @type {(value: unknown) => string} */
11624
11615
  var toStr$2 = callBound$9('Object.prototype.toString');
11625
11616
  var dateClass = '[object Date]';
11626
- var hasToStringTag$5 = requireShams()();
11617
+ var hasToStringTag$5 = shams();
11627
11618
 
11628
11619
  /** @type {import('.')} */
11629
11620
  var isDateObject = function isDateObject(value) {
@@ -11634,7 +11625,7 @@ var isDateObject = function isDateObject(value) {
11634
11625
  };
11635
11626
 
11636
11627
  var callBound$8 = callBound$i;
11637
- var hasToStringTag$4 = requireShams()();
11628
+ var hasToStringTag$4 = shams();
11638
11629
  var hasOwn = hasown;
11639
11630
  var gOPD$1 = gopd$1;
11640
11631
 
@@ -11739,7 +11730,7 @@ var tryNumberObject = function tryNumberObject(value) {
11739
11730
  };
11740
11731
  var $toString$3 = callBound$6('Object.prototype.toString');
11741
11732
  var numClass = '[object Number]';
11742
- var hasToStringTag$3 = requireShams()();
11733
+ var hasToStringTag$3 = shams();
11743
11734
 
11744
11735
  /** @type {import('.')} */
11745
11736
  var isNumberObject = function isNumberObject(value) {
@@ -11766,7 +11757,7 @@ var tryBooleanObject = function booleanBrandCheck(value) {
11766
11757
  }
11767
11758
  };
11768
11759
  var boolClass = '[object Boolean]';
11769
- var hasToStringTag$2 = requireShams()();
11760
+ var hasToStringTag$2 = shams();
11770
11761
 
11771
11762
  /** @type {import('.')} */
11772
11763
  var isBooleanObject = function isBoolean(value) {
@@ -11808,7 +11799,7 @@ function requireSafeRegexTest () {
11808
11799
 
11809
11800
  var callBound$4 = callBound$i;
11810
11801
  var $toString$1 = callBound$4('Object.prototype.toString');
11811
- var hasSymbols = hasSymbols$3();
11802
+ var hasSymbols = hasSymbols$4();
11812
11803
  var safeRegexTest = requireSafeRegexTest();
11813
11804
 
11814
11805
  if (hasSymbols) {
@@ -12254,7 +12245,7 @@ var gOPD = gopd$1;
12254
12245
  var getProto = getProto$3;
12255
12246
 
12256
12247
  var $toString = callBound$2('Object.prototype.toString');
12257
- var hasToStringTag = requireShams()();
12248
+ var hasToStringTag = shams();
12258
12249
 
12259
12250
  var g = typeof globalThis === 'undefined' ? commonjsGlobal : globalThis;
12260
12251
  var typedArrays = availableTypedArrays();
@@ -55800,13 +55791,31 @@ function _objectSpread$7(e) { for (var r = 1; r < arguments.length; r++) { var t
55800
55791
  * widget currently in the workspace's layout tree. Keys drive
55801
55792
  * listener pruning; the itemId set drives provider-binding pruning
55802
55793
  * (selectedProviders is keyed by raw widgetId).
55794
+ *
55795
+ * Listener event strings are written as `${component}[${itemId}].${event}`
55796
+ * where `itemId` is whichever id-ish field the emitter had at wire time
55797
+ * (in practice `itemIdOf` prefers numeric `id`). `canonicalItemKey`'s
55798
+ * preference order (uuidString → uuid → id) doesn't match that, and
55799
+ * `LayoutModel` decorates every persisted item with a composite
55800
+ * `uuid = "${dashboardId}-${component}-${id}"` while leaving
55801
+ * `uuidString` unset — so canonicalItemKey would produce
55802
+ * `Component|{dashId}-{Component}-{123}` while the event string produces
55803
+ * `Component|123`. Record every id-ish form as a separate live key so
55804
+ * reconciliation is tolerant of whichever shape the stored binding
55805
+ * carries.
55803
55806
  */
55804
55807
  function collectLiveIdentity(workspace) {
55805
55808
  var liveCanonicalKeys = new Set();
55806
55809
  var liveItemIds = new Set();
55807
55810
  forEachWidget(workspace, function (item) {
55808
- var key = canonicalItemKey(item);
55809
- if (key) liveCanonicalKeys.add(key);
55811
+ var comp = item.component;
55812
+ if (comp) {
55813
+ if (item.id != null) liveCanonicalKeys.add("".concat(comp, "|").concat(item.id));
55814
+ if (item.uuidString) {
55815
+ liveCanonicalKeys.add("".concat(comp, "|").concat(item.uuidString));
55816
+ }
55817
+ if (item.uuid) liveCanonicalKeys.add("".concat(comp, "|").concat(item.uuid));
55818
+ }
55810
55819
  // Track every id-ish the runtime might key by. selectedProviders
55811
55820
  // uses `item.uuidString` or `item.uuid` or `item.id` depending on
55812
55821
  // when the binding was written, so accept any of them.