@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 CHANGED
@@ -26608,13 +26608,6 @@ function isWidgetResolvable(componentKey) {
26608
26608
  if (m[componentKey] && typeof m[componentKey].component === "function") {
26609
26609
  return true;
26610
26610
  }
26611
- // Fallback: match by config.name (mirrors getComponent's name fallback)
26612
- for (var _i = 0, _Object$keys = Object.keys(m); _i < _Object$keys.length; _i++) {
26613
- var key = _Object$keys[_i];
26614
- if (m[key].name === componentKey && typeof m[key].component === "function") {
26615
- return true;
26616
- }
26617
- }
26618
26611
  return false;
26619
26612
  }
26620
26613
 
@@ -29487,20 +29480,6 @@ var ComponentManager = {
29487
29480
  var m = this.componentMap();
29488
29481
  // Try exact match first (works for both scoped ids and legacy names)
29489
29482
  var cmp = component in m ? m[component] : null;
29490
-
29491
- // Fallback: scan by config.name for backward compatibility
29492
- // Handles saved layouts that reference old-style names (e.g., "AnalogClockWidget")
29493
- // when the widget is now registered under a scoped id (e.g., "trops.clock.AnalogClockWidget")
29494
- if (cmp === null) {
29495
- for (var _i = 0, _Object$keys = Object.keys(m); _i < _Object$keys.length; _i++) {
29496
- var key = _Object$keys[_i];
29497
- if (m[key].name === component) {
29498
- cmp = m[key];
29499
- cmp["componentName"] = key;
29500
- return cmp;
29501
- }
29502
- }
29503
- }
29504
29483
  if (cmp !== null) {
29505
29484
  cmp["componentName"] = component;
29506
29485
  return cmp;