@trops/dash-core 0.1.367 → 0.1.369

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
  }
@@ -39868,7 +39877,7 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
39868
39877
  })]
39869
39878
  })]
39870
39879
  })]
39871
- }) : result.success ? /*#__PURE__*/jsxRuntime.jsxs("div", {
39880
+ }) : result !== null && result !== void 0 && result.success ? /*#__PURE__*/jsxRuntime.jsxs("div", {
39872
39881
  className: "space-y-3",
39873
39882
  children: [(_result$registrySubmi = result.registrySubmission) !== null && _result$registrySubmi !== void 0 && _result$registrySubmi.success ? /*#__PURE__*/jsxRuntime.jsxs("div", {
39874
39883
  className: "space-y-3",
@@ -39967,7 +39976,7 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
39967
39976
  })]
39968
39977
  })
39969
39978
  })]
39970
- }) : /*#__PURE__*/jsxRuntime.jsxs("div", {
39979
+ }) : result ? /*#__PURE__*/jsxRuntime.jsxs("div", {
39971
39980
  className: "flex items-center gap-2",
39972
39981
  children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.FontAwesomeIcon, {
39973
39982
  icon: "circle-xmark",
@@ -39976,7 +39985,7 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
39976
39985
  className: "text-sm text-red-400",
39977
39986
  children: result.error || "Publish preparation failed."
39978
39987
  })]
39979
- })]
39988
+ }) : null]
39980
39989
  })
39981
39990
  })]
39982
39991
  }), /*#__PURE__*/jsxRuntime.jsxs("div", {
@@ -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