varminer-app-header 2.5.0 → 2.5.5

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.css CHANGED
@@ -1 +1 @@
1
- :root{--color-border-header:#e5e9eb;--color-brand-accent:#1aa7ee;--color-brand-deep-navy:#0f1e75;--color-brand-primary:#1e2f97;--color-brand-primary-hover-bg:rgba(30,47,151,.04);--color-header-bg:#fff;--color-menu-bg-gradient:linear-gradient(180deg,#fff,#ddf7ff,#ddf7ff);--color-menu-bg-gradient-end:#ddf7ff;--color-menu-shadow:rgba(0,0,0,.32);--color-menu-text:#000;--color-profile-email:rgba(0,0,0,.6);--color-profile-name:#1e2f97;--color-profile-role:rgba(0,0,0,.38);--color-status-offline:grey;--color-status-online:#44b700;--font-brand-regular:OpenSans-Regular,Roboto,sans-serif;--font-brand-semibold:OpenSans-SemiBold,Roboto,sans-serif;--image-logo-svg:url(asset/logo.svg);--size-header-height:65px;--size-header-zindex:200;--size-menu-width:280px}.Header_MuiToolbar-root__b7q-J{background-color:var(--color-header-bg,#fff)!important;color:var(--color-brand-primary,#1e2f97)!important;height:var(--size-header-height,65px)!important;min-height:var(--size-header-height,65px)!important;padding-left:15px!important}.Header_MuiToolbar-root__b7q-J .Header_MuiButtonBase-root__HS233{color:var(--color-brand-primary,#1e2f97)!important;margin-right:0}.Header_app-header__ijTWt,.Header_app-header__ijTWt .Header_MuiAppBar-root__gxu8o{background-color:var(--color-header-bg,#fff)!important;box-shadow:none!important;height:var(--size-header-height,65px)!important;left:0;position:fixed!important;right:0;top:0;z-index:var(--size-header-zindex,200)!important}.Header_app-header__ijTWt .Header_MuiPaper-root__kHdcE:only-of-type{border-bottom:1px solid var(--color-border-header,#e5e9eb);box-shadow:none!important;padding:0!important}.Header_var__QgZK5{color:var(--color-brand-accent,#1aa7ee)!important}.Header_miner__aDAlK,.Header_var__QgZK5{font:500 20px var(--font-brand-semibold,OpenSans-SemiBold,Roboto,sans-serif)}.Header_miner__aDAlK{color:var(--color-brand-deep-navy,#0f1e75)!important}#Header_account-menu__RQcX2:has(.Header_profile-menu-section__VEJgk) .Header_MuiList-root__Lt4M8 .Header_MuiListItem-root__KgVJr .Header_MuiListItemText-root__oRX7u .Header_MuiTypography-root__RFZmT.Header_profile-name__hTsmu{color:var(--color-profile-name,#1e2f97);font:600 16px/28px var(--font-brand-semibold,OpenSans-SemiBold,Roboto,sans-serif)}#Header_account-menu__RQcX2:has(.Header_profile-menu-section__VEJgk) .Header_MuiList-root__Lt4M8 .Header_MuiListItem-root__KgVJr .Header_MuiListItemText-root__oRX7u .Header_MuiTypography-root__RFZmT.Header_profile-email__C-i8Z{color:var(--color-profile-email,rgba(0,0,0,.6));font:400 14px/24px var(--font-brand-regular,OpenSans-Regular,Roboto,sans-serif);text-decoration:underline}#Header_account-menu__RQcX2:has(.Header_profile-menu-section__VEJgk) .Header_MuiList-root__Lt4M8 .Header_MuiListItem-root__KgVJr .Header_MuiListItemText-root__oRX7u .Header_MuiTypography-root__RFZmT.Header_profile-role__KxBIp{color:var(--color-profile-role,rgba(0,0,0,.38));font:400 12px/28px var(--font-brand-regular,OpenSans-Regular,Roboto,sans-serif);text-transform:uppercase}#Header_account-menu__RQcX2:has(.Header_profile-menu-item__JU7Bt) .Header_profile-menu-item__JU7Bt{padding:10px 15px 5px}#Header_account-menu__RQcX2:has(.Header_profile-menu-item__JU7Bt) .Header_MuiMenu-paper__ilj2p{background:var(--color-menu-bg-gradient,linear-gradient(180deg,#fff,#ddf7ff,#ddf7ff));box-shadow:none!important;color:var(--color-menu-text,#000);margin:0;max-width:var(--size-menu-width,280px);width:var(--size-menu-width,280px)}#Header_account-menu__RQcX2:has(.Header_profile-menu-item__JU7Bt) .Header_MuiMenu-paper__ilj2p .Header_MuiListItemAvatar-root__-w8zh{min-width:40px;padding:10px}#Header_account-menu__RQcX2:has(.Header_profile-menu-item__JU7Bt) .Header_MuiMenu-paper__ilj2p .Header_MuiListItemAvatar-root__-w8zh .Header_MuiAvatar-circular__StjG2{height:40px;margin-left:-10px;margin-right:0;width:40px}#Header_account-menu__RQcX2:has(.Header_profile-menu-item__JU7Bt) .Header_MuiMenu-paper__ilj2p .Header_MuiMenuItem-root__G3yDr:first-of-type{margin-top:10px}#Header_account-menu__RQcX2:has(.Header_profile-menu-item__JU7Bt) .Header_MuiMenu-paper__ilj2p .Header_MuiMenuItem-root__G3yDr .Header_MuiListItemIcon-root__YcKkX .Header_MuiSvgIcon-root__MA8Ys{color:var(--color-brand-primary,#1e2f97)}
1
+ :root{--color-border-header:#e5e9eb;--color-brand-accent:#1aa7ee;--color-brand-deep-navy:#0f1e75;--color-brand-primary:#1e2f97;--color-brand-primary-hover-bg:rgba(30,47,151,.04);--color-header-bg:#fff;--color-menu-bg-gradient:linear-gradient(180deg,#fff,#ddf7ff,#ddf7ff);--color-menu-bg-gradient-end:#ddf7ff;--color-menu-shadow:rgba(0,0,0,.32);--color-menu-text:#000;--color-profile-email:rgba(0,0,0,.6);--color-profile-name:#1e2f97;--color-profile-role:rgba(0,0,0,.38);--color-status-offline:grey;--color-status-online:#44b700;--font-brand-regular:OpenSans-Regular,Roboto,sans-serif;--font-brand-semibold:OpenSans-SemiBold,Roboto,sans-serif;--image-logo-svg:url(asset/logo.svg);--size-header-height:65px;--size-header-zindex:200;--size-menu-width:280px}.MuiToolbar-root{background-color:var(--color-header-bg,#fff)!important;color:var(--color-brand-primary,#1e2f97)!important;height:var(--size-header-height,65px)!important;min-height:var(--size-header-height,65px)!important;padding-left:15px!important}.MuiToolbar-root .MuiButtonBase-root{color:var(--color-brand-primary,#1e2f97)!important;margin-right:0}.app-header,.app-header .MuiAppBar-root{background-color:var(--color-header-bg,#fff)!important;box-shadow:none!important;height:var(--size-header-height,65px)!important;left:0;position:fixed!important;right:0;top:0;z-index:var(--size-header-zindex,200)!important}.app-header .MuiPaper-root:only-of-type{border-bottom:1px solid var(--color-border-header,#e5e9eb);box-shadow:none!important;padding:0!important}.var{color:var(--color-brand-accent,#1aa7ee)!important}.miner,.var{font:500 20px var(--font-brand-semibold,OpenSans-SemiBold,Roboto,sans-serif)}.miner{color:var(--color-brand-deep-navy,#0f1e75)!important}#account-menu:has(.profile-menu-section) .MuiList-root .MuiListItem-root .MuiListItemText-root .MuiTypography-root.profile-name{color:var(--color-profile-name,#1e2f97);font:600 16px/28px var(--font-brand-semibold,OpenSans-SemiBold,Roboto,sans-serif)}#account-menu:has(.profile-menu-section) .MuiList-root .MuiListItem-root .MuiListItemText-root .MuiTypography-root.profile-email{color:var(--color-profile-email,rgba(0,0,0,.6));font:400 14px/24px var(--font-brand-regular,OpenSans-Regular,Roboto,sans-serif);text-decoration:underline}#account-menu:has(.profile-menu-section) .MuiList-root .MuiListItem-root .MuiListItemText-root .MuiTypography-root.profile-role{color:var(--color-profile-role,rgba(0,0,0,.38));font:400 12px/28px var(--font-brand-regular,OpenSans-Regular,Roboto,sans-serif);text-transform:uppercase}#account-menu:has(.profile-menu-item) .profile-menu-item{padding:10px 15px 5px}#account-menu:has(.profile-menu-item) .MuiMenu-paper{background:var(--color-menu-bg-gradient,linear-gradient(180deg,#fff,#ddf7ff,#ddf7ff));box-shadow:none!important;color:var(--color-menu-text,#000);margin:0;max-width:var(--size-menu-width,280px);width:var(--size-menu-width,280px)}#account-menu:has(.profile-menu-item) .MuiMenu-paper .MuiListItemAvatar-root{min-width:40px;padding:10px}#account-menu:has(.profile-menu-item) .MuiMenu-paper .MuiListItemAvatar-root .MuiAvatar-circular{height:40px;margin-left:-10px;margin-right:0;width:40px}#account-menu:has(.profile-menu-item) .MuiMenu-paper .MuiMenuItem-root:first-of-type{margin-top:10px}#account-menu:has(.profile-menu-item) .MuiMenu-paper .MuiMenuItem-root .MuiListItemIcon-root .MuiSvgIcon-root{color:var(--color-brand-primary,#1e2f97)}
package/dist/index.d.ts CHANGED
@@ -117,6 +117,11 @@ declare const setI18nLocaleToStorage: (locale: string) => void;
117
117
  * @returns Object with auth, decodedToken, and other keys (user/userDetails/profile null when using header key)
118
118
  */
119
119
  declare const getAllDataFromStorage: () => any;
120
+ /**
121
+ * Get profile picture URL from object store API using user_id.
122
+ * @param baseUrl - Base URL for the object store API (e.g. from objectStoreUrl prop). When missing or empty, returns null.
123
+ * @returns Profile picture URL or null if user_id or baseUrl is not available
124
+ */
120
125
  declare const getProfilePictureUrl: (baseUrl?: string | null) => string | null;
121
126
  /**
122
127
  * Get access token from all known storage keys (header, IAM, userdb, and plain keys).
@@ -1 +1 @@
1
- :root{--color-border-header:#e5e9eb;--color-brand-accent:#1aa7ee;--color-brand-deep-navy:#0f1e75;--color-brand-primary:#1e2f97;--color-brand-primary-hover-bg:rgba(30,47,151,.04);--color-header-bg:#fff;--color-menu-bg-gradient:linear-gradient(180deg,#fff,#ddf7ff,#ddf7ff);--color-menu-bg-gradient-end:#ddf7ff;--color-menu-shadow:rgba(0,0,0,.32);--color-menu-text:#000;--color-profile-email:rgba(0,0,0,.6);--color-profile-name:#1e2f97;--color-profile-role:rgba(0,0,0,.38);--color-status-offline:grey;--color-status-online:#44b700;--font-brand-regular:OpenSans-Regular,Roboto,sans-serif;--font-brand-semibold:OpenSans-SemiBold,Roboto,sans-serif;--image-logo-svg:url(asset/logo.svg);--size-header-height:65px;--size-header-zindex:200;--size-menu-width:280px}.Header_MuiToolbar-root__b7q-J{background-color:var(--color-header-bg,#fff)!important;color:var(--color-brand-primary,#1e2f97)!important;height:var(--size-header-height,65px)!important;min-height:var(--size-header-height,65px)!important;padding-left:15px!important}.Header_MuiToolbar-root__b7q-J .Header_MuiButtonBase-root__HS233{color:var(--color-brand-primary,#1e2f97)!important;margin-right:0}.Header_app-header__ijTWt,.Header_app-header__ijTWt .Header_MuiAppBar-root__gxu8o{background-color:var(--color-header-bg,#fff)!important;box-shadow:none!important;height:var(--size-header-height,65px)!important;left:0;position:fixed!important;right:0;top:0;z-index:var(--size-header-zindex,200)!important}.Header_app-header__ijTWt .Header_MuiPaper-root__kHdcE:only-of-type{border-bottom:1px solid var(--color-border-header,#e5e9eb);box-shadow:none!important;padding:0!important}.Header_var__QgZK5{color:var(--color-brand-accent,#1aa7ee)!important}.Header_miner__aDAlK,.Header_var__QgZK5{font:500 20px var(--font-brand-semibold,OpenSans-SemiBold,Roboto,sans-serif)}.Header_miner__aDAlK{color:var(--color-brand-deep-navy,#0f1e75)!important}#Header_account-menu__RQcX2:has(.Header_profile-menu-section__VEJgk) .Header_MuiList-root__Lt4M8 .Header_MuiListItem-root__KgVJr .Header_MuiListItemText-root__oRX7u .Header_MuiTypography-root__RFZmT.Header_profile-name__hTsmu{color:var(--color-profile-name,#1e2f97);font:600 16px/28px var(--font-brand-semibold,OpenSans-SemiBold,Roboto,sans-serif)}#Header_account-menu__RQcX2:has(.Header_profile-menu-section__VEJgk) .Header_MuiList-root__Lt4M8 .Header_MuiListItem-root__KgVJr .Header_MuiListItemText-root__oRX7u .Header_MuiTypography-root__RFZmT.Header_profile-email__C-i8Z{color:var(--color-profile-email,rgba(0,0,0,.6));font:400 14px/24px var(--font-brand-regular,OpenSans-Regular,Roboto,sans-serif);text-decoration:underline}#Header_account-menu__RQcX2:has(.Header_profile-menu-section__VEJgk) .Header_MuiList-root__Lt4M8 .Header_MuiListItem-root__KgVJr .Header_MuiListItemText-root__oRX7u .Header_MuiTypography-root__RFZmT.Header_profile-role__KxBIp{color:var(--color-profile-role,rgba(0,0,0,.38));font:400 12px/28px var(--font-brand-regular,OpenSans-Regular,Roboto,sans-serif);text-transform:uppercase}#Header_account-menu__RQcX2:has(.Header_profile-menu-item__JU7Bt) .Header_profile-menu-item__JU7Bt{padding:10px 15px 5px}#Header_account-menu__RQcX2:has(.Header_profile-menu-item__JU7Bt) .Header_MuiMenu-paper__ilj2p{background:var(--color-menu-bg-gradient,linear-gradient(180deg,#fff,#ddf7ff,#ddf7ff));box-shadow:none!important;color:var(--color-menu-text,#000);margin:0;max-width:var(--size-menu-width,280px);width:var(--size-menu-width,280px)}#Header_account-menu__RQcX2:has(.Header_profile-menu-item__JU7Bt) .Header_MuiMenu-paper__ilj2p .Header_MuiListItemAvatar-root__-w8zh{min-width:40px;padding:10px}#Header_account-menu__RQcX2:has(.Header_profile-menu-item__JU7Bt) .Header_MuiMenu-paper__ilj2p .Header_MuiListItemAvatar-root__-w8zh .Header_MuiAvatar-circular__StjG2{height:40px;margin-left:-10px;margin-right:0;width:40px}#Header_account-menu__RQcX2:has(.Header_profile-menu-item__JU7Bt) .Header_MuiMenu-paper__ilj2p .Header_MuiMenuItem-root__G3yDr:first-of-type{margin-top:10px}#Header_account-menu__RQcX2:has(.Header_profile-menu-item__JU7Bt) .Header_MuiMenu-paper__ilj2p .Header_MuiMenuItem-root__G3yDr .Header_MuiListItemIcon-root__YcKkX .Header_MuiSvgIcon-root__MA8Ys{color:var(--color-brand-primary,#1e2f97)}
1
+ :root{--color-border-header:#e5e9eb;--color-brand-accent:#1aa7ee;--color-brand-deep-navy:#0f1e75;--color-brand-primary:#1e2f97;--color-brand-primary-hover-bg:rgba(30,47,151,.04);--color-header-bg:#fff;--color-menu-bg-gradient:linear-gradient(180deg,#fff,#ddf7ff,#ddf7ff);--color-menu-bg-gradient-end:#ddf7ff;--color-menu-shadow:rgba(0,0,0,.32);--color-menu-text:#000;--color-profile-email:rgba(0,0,0,.6);--color-profile-name:#1e2f97;--color-profile-role:rgba(0,0,0,.38);--color-status-offline:grey;--color-status-online:#44b700;--font-brand-regular:OpenSans-Regular,Roboto,sans-serif;--font-brand-semibold:OpenSans-SemiBold,Roboto,sans-serif;--image-logo-svg:url(asset/logo.svg);--size-header-height:65px;--size-header-zindex:200;--size-menu-width:280px}.MuiToolbar-root{background-color:var(--color-header-bg,#fff)!important;color:var(--color-brand-primary,#1e2f97)!important;height:var(--size-header-height,65px)!important;min-height:var(--size-header-height,65px)!important;padding-left:15px!important}.MuiToolbar-root .MuiButtonBase-root{color:var(--color-brand-primary,#1e2f97)!important;margin-right:0}.app-header,.app-header .MuiAppBar-root{background-color:var(--color-header-bg,#fff)!important;box-shadow:none!important;height:var(--size-header-height,65px)!important;left:0;position:fixed!important;right:0;top:0;z-index:var(--size-header-zindex,200)!important}.app-header .MuiPaper-root:only-of-type{border-bottom:1px solid var(--color-border-header,#e5e9eb);box-shadow:none!important;padding:0!important}.var{color:var(--color-brand-accent,#1aa7ee)!important}.miner,.var{font:500 20px var(--font-brand-semibold,OpenSans-SemiBold,Roboto,sans-serif)}.miner{color:var(--color-brand-deep-navy,#0f1e75)!important}#account-menu:has(.profile-menu-section) .MuiList-root .MuiListItem-root .MuiListItemText-root .MuiTypography-root.profile-name{color:var(--color-profile-name,#1e2f97);font:600 16px/28px var(--font-brand-semibold,OpenSans-SemiBold,Roboto,sans-serif)}#account-menu:has(.profile-menu-section) .MuiList-root .MuiListItem-root .MuiListItemText-root .MuiTypography-root.profile-email{color:var(--color-profile-email,rgba(0,0,0,.6));font:400 14px/24px var(--font-brand-regular,OpenSans-Regular,Roboto,sans-serif);text-decoration:underline}#account-menu:has(.profile-menu-section) .MuiList-root .MuiListItem-root .MuiListItemText-root .MuiTypography-root.profile-role{color:var(--color-profile-role,rgba(0,0,0,.38));font:400 12px/28px var(--font-brand-regular,OpenSans-Regular,Roboto,sans-serif);text-transform:uppercase}#account-menu:has(.profile-menu-item) .profile-menu-item{padding:10px 15px 5px}#account-menu:has(.profile-menu-item) .MuiMenu-paper{background:var(--color-menu-bg-gradient,linear-gradient(180deg,#fff,#ddf7ff,#ddf7ff));box-shadow:none!important;color:var(--color-menu-text,#000);margin:0;max-width:var(--size-menu-width,280px);width:var(--size-menu-width,280px)}#account-menu:has(.profile-menu-item) .MuiMenu-paper .MuiListItemAvatar-root{min-width:40px;padding:10px}#account-menu:has(.profile-menu-item) .MuiMenu-paper .MuiListItemAvatar-root .MuiAvatar-circular{height:40px;margin-left:-10px;margin-right:0;width:40px}#account-menu:has(.profile-menu-item) .MuiMenu-paper .MuiMenuItem-root:first-of-type{margin-top:10px}#account-menu:has(.profile-menu-item) .MuiMenu-paper .MuiMenuItem-root .MuiListItemIcon-root .MuiSvgIcon-root{color:var(--color-brand-primary,#1e2f97)}
package/dist/index.esm.js CHANGED
@@ -373,14 +373,13 @@ const getAllDataFromStorage = () => {
373
373
  * @param baseUrl - Base URL for the object store API (e.g. from objectStoreUrl prop). When missing or empty, returns null.
374
374
  * @returns Profile picture URL or null if user_id or baseUrl is not available
375
375
  */
376
- const VERIFICATION_USER_ID = 4590; // set to null to use only storage userId
377
376
  const getProfilePictureUrl = (baseUrl) => {
378
377
  try {
379
378
  const url = typeof baseUrl === "string" && baseUrl.trim() ? baseUrl.trim() : null;
380
379
  if (!url)
381
380
  return null;
382
381
  const allData = getAllDataFromStorage();
383
- const userId = allData.decodedToken?.user_id ?? allData.auth?.user_id ?? getStoredUserDetails()?.userId ?? VERIFICATION_USER_ID ?? null;
382
+ const userId = allData.decodedToken?.user_id ?? allData.auth?.user_id ?? getStoredUserDetails()?.userId ?? null;
384
383
  if (userId == null)
385
384
  return null;
386
385
  return `${url.replace(/\/$/, "")}/v1/objectStore/profilePicture/path/${userId}`;