varminer-app-header 2.4.5 → 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/AppHeader.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.esm.css +1 -1
- package/dist/index.esm.js +1 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -3
- package/dist/index.js.map +1 -1
- package/dist/utils/localStorage.d.ts +5 -0
- package/dist/utils/localStorage.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/AppHeader.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppHeader.d.ts","sourceRoot":"","sources":["../src/AppHeader.tsx"],"names":[],"mappings":"AA4BA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAe,MAAM,SAAS,CAAC;AAItD,OAAO,sBAAsB,CAAC;AAQ9B,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"AppHeader.d.ts","sourceRoot":"","sources":["../src/AppHeader.tsx"],"names":[],"mappings":"AA4BA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAe,MAAM,SAAS,CAAC;AAItD,OAAO,sBAAsB,CAAC;AAQ9B,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA4zBvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
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}.
|
|
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).
|
package/dist/index.esm.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}.
|
|
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 ??
|
|
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}`;
|
|
@@ -1154,7 +1153,6 @@ const AppHeader = ({ language: languageProp, accessToken: accessTokenProp, objec
|
|
|
1154
1153
|
mr: '10px !important',
|
|
1155
1154
|
color: 'var(--color-brand-primary, #1e2f97)',
|
|
1156
1155
|
padding: 0,
|
|
1157
|
-
paddingLeft: '14px',
|
|
1158
1156
|
'&:hover': {
|
|
1159
1157
|
backgroundColor: 'var(--color-brand-primary-hover-bg, rgba(30, 47, 151, 0.04))',
|
|
1160
1158
|
}
|