@the-portland-company/shell 0.102.3 → 0.103.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.
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
- import { S as StandardNavIconKey, z as NavIcon, N as NavItem, D as NavBreadcrumb, E as StandardNavMode, G as NavLinkComponent, I as NavChromeFetcher, J as NavMode, L as NavUserMenu, M as NavOrgOption, i as NotificationsAdapter, O as ChromeOrgSummary, Q as NavFooterLink, U as NavFooter, W as NavDisplayMode } from './index-DTFEH6Tk.cjs';
3
+ import { S as StandardNavIconKey, z as NavIcon, N as NavItem, D as NavBreadcrumb, E as StandardNavMode, G as NavLinkComponent, I as NavChromeFetcher, J as NavMode, L as NavUserMenu, M as NavOrgOption, i as NotificationsAdapter, O as ChromeOrgSummary, Q as NavFooterLink, U as NavFooter, W as NavDisplayMode } from './index-lk2Ad_Q0.cjs';
4
4
  import './theme-preference.cjs';
5
5
  import './brand-favicon.cjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
- import { S as StandardNavIconKey, z as NavIcon, N as NavItem, D as NavBreadcrumb, E as StandardNavMode, G as NavLinkComponent, I as NavChromeFetcher, J as NavMode, L as NavUserMenu, M as NavOrgOption, i as NotificationsAdapter, O as ChromeOrgSummary, Q as NavFooterLink, U as NavFooter, W as NavDisplayMode } from './index-BTYiaHqq.js';
3
+ import { S as StandardNavIconKey, z as NavIcon, N as NavItem, D as NavBreadcrumb, E as StandardNavMode, G as NavLinkComponent, I as NavChromeFetcher, J as NavMode, L as NavUserMenu, M as NavOrgOption, i as NotificationsAdapter, O as ChromeOrgSummary, Q as NavFooterLink, U as NavFooter, W as NavDisplayMode } from './index-ND_BS0nl.js';
4
4
  import './theme-preference.js';
5
5
  import './brand-favicon.js';
6
6
 
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { broadcastLogout, watchLogout } from './chunk-LL6LSJAH.js';
3
3
  import { writeUrlState } from './chunk-GVQKZI5X.js';
4
- import { clearBetaBannerDismissal, standardPolitogyNav, standardNavIcons, isNavItemActive, NavAppShell } from './chunk-PR5QBA7S.js';
5
- export { standardNavIcons } from './chunk-PR5QBA7S.js';
4
+ import { clearBetaBannerDismissal, standardPolitogyNav, standardNavIcons, isNavItemActive, NavAppShell } from './chunk-KI5P6QKQ.js';
5
+ export { standardNavIcons } from './chunk-KI5P6QKQ.js';
6
6
  import { orgIdTail, ORG_ID_QUERY_PARAM, settingsBaseUrl, authBaseUrl, readOrgSelectorFromUrl, matchOrgSelector, syncOrgIdInUrl, isOrgId, switchActiveOrg, ACTIVE_ORG_QUERY_PARAM, writeActiveOrgCookie, resolveActiveOrg, readActiveOrgCookie } from './chunk-5LO5W7W5.js';
7
7
  import { warnDeprecated, NavChromeProvider, FuelAction, NotificationsAction, OrganizationSettingsAction, MyProfileAction, useChromeMe, useNavChromeDedupedFetch, useChromeOrgs, useNavChromeFetcher } from './chunk-HR2TBHHH.js';
8
8
  import './chunk-BHRVZPZ7.js';
@@ -1378,7 +1378,7 @@ function NavTopBar({
1378
1378
  const hasRealName = rawName.length > 0 && !rawName.includes("@");
1379
1379
  const displayName = hasRealName ? formatFirstLast(rawName) : user?.email ?? "Signed in";
1380
1380
  const initials = (hasRealName ? rawName : user?.email ?? "P").slice(0, 2).toUpperCase();
1381
- const secondary = hasRealName ? user?.email || [user?.tier, user?.role].filter(Boolean).join(" \xB7 ") || "member" : [user?.tier, user?.role].filter(Boolean).join(" \xB7 ") || "member";
1381
+ const secondary = hasRealName ? user?.email || user?.role || "member" : user?.role || "member";
1382
1382
  return /* @__PURE__ */ jsxs("div", { className: "sticky top-0 z-20", children: [
1383
1383
  /* @__PURE__ */ jsxs("header", { className: "flex min-w-0 h-[var(--topbar-height,60px)] items-center justify-between gap-[8px] md:gap-[14px] border-b border-[color:var(--line)] bg-[color:var(--panel)] px-[var(--topbar-padding-x,20px)]", children: [
1384
1384
  onOpenNav ? /* @__PURE__ */ jsx(
@@ -1639,7 +1639,7 @@ function NavSidebarUserCard({
1639
1639
  const hasRealName = rawName.length > 0 && !rawName.includes("@");
1640
1640
  const displayName = hasRealName ? shortUserName(rawName) : user.email ?? "Signed in";
1641
1641
  const initials = hasRealName ? rawName.split(/\s+/).filter(Boolean).slice(0, 2).map((w) => w[0]).join("").toUpperCase() : (user.email ?? "P").slice(0, 2).toUpperCase();
1642
- const secondary = hasRealName ? user.email || [user.tier, user.role].filter(Boolean).join(" \xB7 ") || "member" : [user.tier, user.role].filter(Boolean).join(" \xB7 ") || "member";
1642
+ const secondary = hasRealName ? user.email || user.role || "member" : user.role || "member";
1643
1643
  const rc = useRailCollapse();
1644
1644
  return /* @__PURE__ */ jsxs("details", { "data-nav-details": true, className: "group/acct relative", children: [
1645
1645
  /* @__PURE__ */ jsxs(
@@ -2124,5 +2124,5 @@ function NavAppShell({
2124
2124
  }
2125
2125
 
2126
2126
  export { BETA_BANNER_DISMISS_KEY, BreadcrumbBar, CAMPAIGN_FEATURE_AVAILABILITY, NavAppShell, NavBetaBanner, NavSidebar, NavTabStrip, NavTopBar, PageHeader, buildLineParts, clearBetaBannerDismissal, envChipClasses, isNavItemActive, isNewPage, modeIdFromLabel, orgViaLabel, pageIdentityOf, shortEnvLabel, shortUserName, standardNavIcons, standardPolitogyNav, useScrollToTopOnNewPage };
2127
- //# sourceMappingURL=chunk-PR5QBA7S.js.map
2128
- //# sourceMappingURL=chunk-PR5QBA7S.js.map
2127
+ //# sourceMappingURL=chunk-KI5P6QKQ.js.map
2128
+ //# sourceMappingURL=chunk-KI5P6QKQ.js.map