@the-portland-company/shell 0.76.18 → 0.77.0
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/CHANGELOG.md +8 -0
- package/dist/app-chrome.cjs +3 -184
- package/dist/app-chrome.cjs.map +1 -1
- package/dist/app-chrome.d.cts +2 -2
- package/dist/app-chrome.d.ts +2 -2
- package/dist/app-chrome.js +4 -3
- package/dist/app-chrome.js.map +1 -1
- package/package.json +1 -1
package/dist/app-chrome.d.cts
CHANGED
|
@@ -501,8 +501,8 @@ declare function useChromeIdentity(fallback?: {
|
|
|
501
501
|
|
|
502
502
|
/**
|
|
503
503
|
* The My Account menu config — profile/org links into VRM core, real roles
|
|
504
|
-
* from the user's core organizations
|
|
505
|
-
*
|
|
504
|
+
* from the user's core organizations and the signed-in account. No theme
|
|
505
|
+
* control: the product is light only (Reference/UI-Platform).
|
|
506
506
|
*/
|
|
507
507
|
declare function useChromeUserMenu({ userId, userName, email, }: {
|
|
508
508
|
userId: string;
|
package/dist/app-chrome.d.ts
CHANGED
|
@@ -501,8 +501,8 @@ declare function useChromeIdentity(fallback?: {
|
|
|
501
501
|
|
|
502
502
|
/**
|
|
503
503
|
* The My Account menu config — profile/org links into VRM core, real roles
|
|
504
|
-
* from the user's core organizations
|
|
505
|
-
*
|
|
504
|
+
* from the user's core organizations and the signed-in account. No theme
|
|
505
|
+
* control: the product is light only (Reference/UI-Platform).
|
|
506
506
|
*/
|
|
507
507
|
declare function useChromeUserMenu({ userId, userName, email, }: {
|
|
508
508
|
userId: string;
|
package/dist/app-chrome.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { broadcastLogout, watchLogout } from './chunk-LL6LSJAH.js';
|
|
3
3
|
import { clearBetaBannerDismissal, standardPolitogyNav, standardNavIcons, isNavItemActive, NavAppShell } from './chunk-GGM4AD43.js';
|
|
4
4
|
export { standardNavIcons } from './chunk-GGM4AD43.js';
|
|
5
|
-
import { warnDeprecated, NavChromeProvider, TopBarWidgetSlot, FuelAction, SpecOverlayAction, NotificationsAction, SupportAction, useChromeMe,
|
|
5
|
+
import { warnDeprecated, NavChromeProvider, TopBarWidgetSlot, FuelAction, SpecOverlayAction, NotificationsAction, SupportAction, useChromeMe, useNavChromeDedupedFetch, useChromeOrgs, useNavChromeFetcher } from './chunk-TUK2IEL5.js';
|
|
6
6
|
import './chunk-BHRVZPZ7.js';
|
|
7
7
|
import { NAV_DISPLAY_DEFAULT, resolveNavDisplay, writeNavDisplayLocal, writeNavDisplayCookie, isNavDisplayPreference, NAV_DISPLAY_STORAGE_KEY, readNavDisplayCookie } from './chunk-7YVJ7HQG.js';
|
|
8
8
|
import { readOrgSelectorFromUrl, matchOrgSelector, isOrgId, switchActiveOrg, ACTIVE_ORG_QUERY_PARAM, ORG_ID_QUERY_PARAM, orgIdTail, syncOrgIdInUrl, writeActiveOrgCookie, resolveActiveOrg, readActiveOrgCookie } from './chunk-FBUF7LUE.js';
|
|
@@ -1404,7 +1404,6 @@ function useChromeUserMenu({
|
|
|
1404
1404
|
email
|
|
1405
1405
|
}) {
|
|
1406
1406
|
const state = useChromeState();
|
|
1407
|
-
const theme = useThemePreference();
|
|
1408
1407
|
const activeOrg = state?.orgs.find((o) => o.id === state.orgId) ?? null;
|
|
1409
1408
|
const orgSuffix = activeOrg ? `?org=${activeOrg.id}` : "";
|
|
1410
1409
|
const coreBase = getCoreBaseUrl();
|
|
@@ -1415,7 +1414,9 @@ function useChromeUserMenu({
|
|
|
1415
1414
|
roles: (state?.orgs ?? []).filter((o) => o.rawRole || o.role).map((o) => ({ role: o.rawRole ?? o.role, orgName: o.name })),
|
|
1416
1415
|
accounts: [{ id: userId, name: userName, email, avatarUrl: null, active: true }],
|
|
1417
1416
|
addAccountHref: `${coreBase}/my-profile#accounts`,
|
|
1418
|
-
theme:
|
|
1417
|
+
// No theme control: the product is light only (Reference/UI-Platform
|
|
1418
|
+
// "Theme — light only"; shell 0.73.0 stopped applying dark). The account
|
|
1419
|
+
// menu rendered an "Appearance" radio with one option until 0.77.0.
|
|
1419
1420
|
navDisplay: state ? { value: state.navDisplay, onChange: state.setNavDisplay } : void 0
|
|
1420
1421
|
};
|
|
1421
1422
|
}
|