@trops/dash-core 0.1.243 → 0.1.244

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.js CHANGED
@@ -25631,7 +25631,19 @@ function isWidgetResolvable(componentKey) {
25631
25631
  // Layout containers are always resolvable (handled specially by WidgetFactory)
25632
25632
  if (ComponentManager.isLayoutContainer(componentKey)) return true;
25633
25633
  var m = ComponentManager.componentMap();
25634
- return !!(m && m[componentKey] && typeof m[componentKey].component === "function");
25634
+ if (!m) return false;
25635
+ // Exact key match (scoped id)
25636
+ if (m[componentKey] && typeof m[componentKey].component === "function") {
25637
+ return true;
25638
+ }
25639
+ // Fallback: match by config.name (mirrors getComponent's name fallback)
25640
+ for (var _i = 0, _Object$keys = Object.keys(m); _i < _Object$keys.length; _i++) {
25641
+ var key = _Object$keys[_i];
25642
+ if (m[key].name === componentKey && typeof m[key].component === "function") {
25643
+ return true;
25644
+ }
25645
+ }
25646
+ return false;
25635
25647
  }
25636
25648
 
25637
25649
  // export {