@trops/dash-core 0.1.419 → 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/electron/index.js +61 -1
- package/dist/electron/index.js.map +1 -1
- package/dist/index.esm.js +20 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +20 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -55791,13 +55791,31 @@ function _objectSpread$7(e) { for (var r = 1; r < arguments.length; r++) { var t
|
|
|
55791
55791
|
* widget currently in the workspace's layout tree. Keys drive
|
|
55792
55792
|
* listener pruning; the itemId set drives provider-binding pruning
|
|
55793
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.
|
|
55794
55806
|
*/
|
|
55795
55807
|
function collectLiveIdentity(workspace) {
|
|
55796
55808
|
var liveCanonicalKeys = new Set();
|
|
55797
55809
|
var liveItemIds = new Set();
|
|
55798
55810
|
forEachWidget(workspace, function (item) {
|
|
55799
|
-
var
|
|
55800
|
-
if (
|
|
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
|
+
}
|
|
55801
55819
|
// Track every id-ish the runtime might key by. selectedProviders
|
|
55802
55820
|
// uses `item.uuidString` or `item.uuid` or `item.id` depending on
|
|
55803
55821
|
// when the binding was written, so accept any of them.
|