@trops/dash-core 0.1.271 → 0.1.272
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 +0 -21
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +0 -21
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -26626,13 +26626,6 @@ function isWidgetResolvable(componentKey) {
|
|
|
26626
26626
|
if (m[componentKey] && typeof m[componentKey].component === "function") {
|
|
26627
26627
|
return true;
|
|
26628
26628
|
}
|
|
26629
|
-
// Fallback: match by config.name (mirrors getComponent's name fallback)
|
|
26630
|
-
for (var _i = 0, _Object$keys = Object.keys(m); _i < _Object$keys.length; _i++) {
|
|
26631
|
-
var key = _Object$keys[_i];
|
|
26632
|
-
if (m[key].name === componentKey && typeof m[key].component === "function") {
|
|
26633
|
-
return true;
|
|
26634
|
-
}
|
|
26635
|
-
}
|
|
26636
26629
|
return false;
|
|
26637
26630
|
}
|
|
26638
26631
|
|
|
@@ -29505,20 +29498,6 @@ var ComponentManager = {
|
|
|
29505
29498
|
var m = this.componentMap();
|
|
29506
29499
|
// Try exact match first (works for both scoped ids and legacy names)
|
|
29507
29500
|
var cmp = component in m ? m[component] : null;
|
|
29508
|
-
|
|
29509
|
-
// Fallback: scan by config.name for backward compatibility
|
|
29510
|
-
// Handles saved layouts that reference old-style names (e.g., "AnalogClockWidget")
|
|
29511
|
-
// when the widget is now registered under a scoped id (e.g., "trops.clock.AnalogClockWidget")
|
|
29512
|
-
if (cmp === null) {
|
|
29513
|
-
for (var _i = 0, _Object$keys = Object.keys(m); _i < _Object$keys.length; _i++) {
|
|
29514
|
-
var key = _Object$keys[_i];
|
|
29515
|
-
if (m[key].name === component) {
|
|
29516
|
-
cmp = m[key];
|
|
29517
|
-
cmp["componentName"] = key;
|
|
29518
|
-
return cmp;
|
|
29519
|
-
}
|
|
29520
|
-
}
|
|
29521
|
-
}
|
|
29522
29501
|
if (cmp !== null) {
|
|
29523
29502
|
cmp["componentName"] = component;
|
|
29524
29503
|
return cmp;
|