@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/electron/index.js +33 -9
- package/dist/electron/index.js.map +1 -1
- package/dist/index.esm.js +18 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +18 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -38852,11 +38852,20 @@ function collectComponentConfigs() {
|
|
|
38852
38852
|
var hasExplicit = config.id || config.scope || config.packageName || config._sourcePackage;
|
|
38853
38853
|
if (!hasExplicit) continue;
|
|
38854
38854
|
var parsed = parseScopeAndName(config._sourcePackage);
|
|
38855
|
-
|
|
38855
|
+
var entry = {
|
|
38856
38856
|
id: config.id || null,
|
|
38857
38857
|
scope: config.scope || parsed.scope || "",
|
|
38858
38858
|
packageName: config.packageName || parsed.packageName || ""
|
|
38859
38859
|
};
|
|
38860
|
+
// Key by the ComponentManager registration key (what layouts
|
|
38861
|
+
// actually store) AND by config.name (display name). The layout
|
|
38862
|
+
// writes the component name, so keying only by config.name broke
|
|
38863
|
+
// registry lookup for widgets whose display name differs from
|
|
38864
|
+
// their component name (common for AI-built widgets).
|
|
38865
|
+
componentConfigs[key] = entry;
|
|
38866
|
+
if (config.name && config.name !== key) {
|
|
38867
|
+
componentConfigs[config.name] = entry;
|
|
38868
|
+
}
|
|
38860
38869
|
}
|
|
38861
38870
|
return componentConfigs;
|
|
38862
38871
|
}
|
|
@@ -39850,7 +39859,7 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
|
|
|
39850
39859
|
})]
|
|
39851
39860
|
})]
|
|
39852
39861
|
})]
|
|
39853
|
-
}) : result.success ? /*#__PURE__*/jsxs("div", {
|
|
39862
|
+
}) : result !== null && result !== void 0 && result.success ? /*#__PURE__*/jsxs("div", {
|
|
39854
39863
|
className: "space-y-3",
|
|
39855
39864
|
children: [(_result$registrySubmi = result.registrySubmission) !== null && _result$registrySubmi !== void 0 && _result$registrySubmi.success ? /*#__PURE__*/jsxs("div", {
|
|
39856
39865
|
className: "space-y-3",
|
|
@@ -39949,7 +39958,7 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
|
|
|
39949
39958
|
})]
|
|
39950
39959
|
})
|
|
39951
39960
|
})]
|
|
39952
|
-
}) : /*#__PURE__*/jsxs("div", {
|
|
39961
|
+
}) : result ? /*#__PURE__*/jsxs("div", {
|
|
39953
39962
|
className: "flex items-center gap-2",
|
|
39954
39963
|
children: [/*#__PURE__*/jsx(FontAwesomeIcon, {
|
|
39955
39964
|
icon: "circle-xmark",
|
|
@@ -39958,7 +39967,7 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
|
|
|
39958
39967
|
className: "text-sm text-red-400",
|
|
39959
39968
|
children: result.error || "Publish preparation failed."
|
|
39960
39969
|
})]
|
|
39961
|
-
})]
|
|
39970
|
+
}) : null]
|
|
39962
39971
|
})
|
|
39963
39972
|
})]
|
|
39964
39973
|
}), /*#__PURE__*/jsxs("div", {
|
|
@@ -40141,8 +40150,11 @@ function DependencyTable(_ref4) {
|
|
|
40141
40150
|
children: [/*#__PURE__*/jsxs("div", {
|
|
40142
40151
|
className: "flex items-center gap-2 flex-wrap",
|
|
40143
40152
|
children: [/*#__PURE__*/jsxs("div", {
|
|
40144
|
-
className: "text-sm font-medium truncate",
|
|
40145
|
-
children: [data.scope, "/", data.packageName || data.name]
|
|
40153
|
+
className: "text-sm font-medium truncate font-mono",
|
|
40154
|
+
children: ["@", data.publishScope || data.scope, "/", data.packageName || data.name]
|
|
40155
|
+
}), data.publishScope && data.scope && data.publishScope !== data.scope && /*#__PURE__*/jsxs("span", {
|
|
40156
|
+
className: "text-[10px] opacity-50 font-mono",
|
|
40157
|
+
children: ["(local @", data.scope, "/", data.packageName, ")"]
|
|
40146
40158
|
}), /*#__PURE__*/jsx("span", {
|
|
40147
40159
|
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"),
|
|
40148
40160
|
children: kind
|