@trops/dash-core 0.1.367 → 0.1.368

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
@@ -38870,11 +38870,20 @@ function collectComponentConfigs() {
38870
38870
  var hasExplicit = config.id || config.scope || config.packageName || config._sourcePackage;
38871
38871
  if (!hasExplicit) continue;
38872
38872
  var parsed = parseScopeAndName(config._sourcePackage);
38873
- componentConfigs[config.name || key] = {
38873
+ var entry = {
38874
38874
  id: config.id || null,
38875
38875
  scope: config.scope || parsed.scope || "",
38876
38876
  packageName: config.packageName || parsed.packageName || ""
38877
38877
  };
38878
+ // Key by the ComponentManager registration key (what layouts
38879
+ // actually store) AND by config.name (display name). The layout
38880
+ // writes the component name, so keying only by config.name broke
38881
+ // registry lookup for widgets whose display name differs from
38882
+ // their component name (common for AI-built widgets).
38883
+ componentConfigs[key] = entry;
38884
+ if (config.name && config.name !== key) {
38885
+ componentConfigs[config.name] = entry;
38886
+ }
38878
38887
  }
38879
38888
  return componentConfigs;
38880
38889
  }
@@ -40159,8 +40168,11 @@ function DependencyTable(_ref4) {
40159
40168
  children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
40160
40169
  className: "flex items-center gap-2 flex-wrap",
40161
40170
  children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
40162
- className: "text-sm font-medium truncate",
40163
- children: [data.scope, "/", data.packageName || data.name]
40171
+ className: "text-sm font-medium truncate font-mono",
40172
+ children: ["@", data.publishScope || data.scope, "/", data.packageName || data.name]
40173
+ }), data.publishScope && data.scope && data.publishScope !== data.scope && /*#__PURE__*/jsxRuntime.jsxs("span", {
40174
+ className: "text-[10px] opacity-50 font-mono",
40175
+ children: ["(local @", data.scope, "/", data.packageName, ")"]
40164
40176
  }), /*#__PURE__*/jsxRuntime.jsx("span", {
40165
40177
  className: "text-[10px] px-1.5 py-0.5 rounded ".concat(kind === "theme" ? "bg-purple-900/30 text-purple-200" : "bg-blue-900/30 text-blue-200"),
40166
40178
  children: kind