@trops/dash-core 0.1.102 → 0.1.103

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
@@ -30707,9 +30707,7 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
30707
30707
  if (userProfile) {
30708
30708
  setProfile(userProfile);
30709
30709
  setAuthStatus("authenticated");
30710
- if (userProfile.displayName && !authorName) {
30711
- setAuthorName(userProfile.displayName);
30712
- }
30710
+ setAuthorName(userProfile.displayName || userProfile.username || "");
30713
30711
  } else {
30714
30712
  // Token expired or invalid — treat as unauthenticated
30715
30713
  setAuthStatus("unauthenticated");
@@ -31055,11 +31053,14 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
31055
31053
  children: [/*#__PURE__*/jsx("p", {
31056
31054
  className: "text-sm opacity-70",
31057
31055
  children: "Provide details about your dashboard for the registry listing."
31058
- }), /*#__PURE__*/jsx(InputText, {
31059
- label: "Author Name *",
31060
- value: authorName,
31061
- onChange: setAuthorName,
31062
- placeholder: "Your name"
31056
+ }), /*#__PURE__*/jsxs("div", {
31057
+ children: [/*#__PURE__*/jsx("label", {
31058
+ className: "block text-sm font-medium opacity-70 mb-1",
31059
+ children: "Author Name"
31060
+ }), /*#__PURE__*/jsx("div", {
31061
+ className: "px-3 py-2 rounded-lg bg-white/5 border border-white/10 text-sm opacity-80",
31062
+ children: authorName || "—"
31063
+ })]
31063
31064
  }), /*#__PURE__*/jsx(TextArea, {
31064
31065
  label: "Description",
31065
31066
  value: description,