@the-portland-company/shell 0.76.15 → 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.
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
- import { StandardNavIconKey, NavIcon, NavItem, NavBreadcrumb, StandardNavMode, NavLinkComponent, NavChromeFetcher, NavMode, NavUserMenu, NavOrgOption, NavFooter, NavDisplayMode } from './native.cjs';
3
+ import { S as StandardNavIconKey, f as NavIcon, N as NavItem, g as NavBreadcrumb, h as StandardNavMode, i as NavLinkComponent, j as NavChromeFetcher, k as NavMode, l as NavUserMenu, m as NavOrgOption, b as NotificationsAdapter, o as NavFooter, p as NavDisplayMode } from './index-Cu5frXRQ.cjs';
4
4
  import './theme-preference.cjs';
5
5
 
6
6
  /**
@@ -447,7 +447,7 @@ type ChromeDevNotesConfig = {
447
447
  * <ShellFrame …/>
448
448
  * </PolitogyAppChrome>
449
449
  */
450
- declare function PolitogyAppChrome({ storagePrefix, proxyBasePath, fetchJson: fetchJsonOverride, devNotes, org, tokenOrg, identity, children, }: {
450
+ declare function PolitogyAppChrome({ storagePrefix, proxyBasePath, fetchJson: fetchJsonOverride, notificationsAdapter, devNotes, org, tokenOrg, identity, children, }: {
451
451
  storagePrefix: string;
452
452
  proxyBasePath?: string;
453
453
  /**
@@ -456,6 +456,11 @@ declare function PolitogyAppChrome({ storagePrefix, proxyBasePath, fetchJson: fe
456
456
  * Paths stay relative ('orgs', 'me', …) — the override owns base + auth.
457
457
  */
458
458
  fetchJson?: NavChromeFetcher;
459
+ /**
460
+ * The bell's feed adapter. Omitted: the comms feed over the same proxy.
461
+ * `null`: the legacy contacts-shaped feed. See NotificationsAdapter.
462
+ */
463
+ notificationsAdapter?: NotificationsAdapter | null;
459
464
  /** DevNotes wiring override for direct-auth apps (Contacts). */
460
465
  devNotes?: ChromeDevNotesConfig;
461
466
  /** Controlled org state — the app owns active-org + switching (Contacts). */
@@ -496,8 +501,8 @@ declare function useChromeIdentity(fallback?: {
496
501
 
497
502
  /**
498
503
  * The My Account menu config — profile/org links into VRM core, real roles
499
- * from the user's core organizations, the signed-in account, and the shared
500
- * Light/System/Dark theme control (auth-derived, cross-app).
504
+ * from the user's core organizations and the signed-in account. No theme
505
+ * control: the product is light only (Reference/UI-Platform).
501
506
  */
502
507
  declare function useChromeUserMenu({ userId, userName, email, }: {
503
508
  userId: string;
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
- import { StandardNavIconKey, NavIcon, NavItem, NavBreadcrumb, StandardNavMode, NavLinkComponent, NavChromeFetcher, NavMode, NavUserMenu, NavOrgOption, NavFooter, NavDisplayMode } from './native.js';
3
+ import { S as StandardNavIconKey, f as NavIcon, N as NavItem, g as NavBreadcrumb, h as StandardNavMode, i as NavLinkComponent, j as NavChromeFetcher, k as NavMode, l as NavUserMenu, m as NavOrgOption, b as NotificationsAdapter, o as NavFooter, p as NavDisplayMode } from './index-DJ3qBzfQ.js';
4
4
  import './theme-preference.js';
5
5
 
6
6
  /**
@@ -447,7 +447,7 @@ type ChromeDevNotesConfig = {
447
447
  * <ShellFrame …/>
448
448
  * </PolitogyAppChrome>
449
449
  */
450
- declare function PolitogyAppChrome({ storagePrefix, proxyBasePath, fetchJson: fetchJsonOverride, devNotes, org, tokenOrg, identity, children, }: {
450
+ declare function PolitogyAppChrome({ storagePrefix, proxyBasePath, fetchJson: fetchJsonOverride, notificationsAdapter, devNotes, org, tokenOrg, identity, children, }: {
451
451
  storagePrefix: string;
452
452
  proxyBasePath?: string;
453
453
  /**
@@ -456,6 +456,11 @@ declare function PolitogyAppChrome({ storagePrefix, proxyBasePath, fetchJson: fe
456
456
  * Paths stay relative ('orgs', 'me', …) — the override owns base + auth.
457
457
  */
458
458
  fetchJson?: NavChromeFetcher;
459
+ /**
460
+ * The bell's feed adapter. Omitted: the comms feed over the same proxy.
461
+ * `null`: the legacy contacts-shaped feed. See NotificationsAdapter.
462
+ */
463
+ notificationsAdapter?: NotificationsAdapter | null;
459
464
  /** DevNotes wiring override for direct-auth apps (Contacts). */
460
465
  devNotes?: ChromeDevNotesConfig;
461
466
  /** Controlled org state — the app owns active-org + switching (Contacts). */
@@ -496,8 +501,8 @@ declare function useChromeIdentity(fallback?: {
496
501
 
497
502
  /**
498
503
  * The My Account menu config — profile/org links into VRM core, real roles
499
- * from the user's core organizations, the signed-in account, and the shared
500
- * Light/System/Dark theme control (auth-derived, cross-app).
504
+ * from the user's core organizations and the signed-in account. No theme
505
+ * control: the product is light only (Reference/UI-Platform).
501
506
  */
502
507
  declare function useChromeUserMenu({ userId, userName, email, }: {
503
508
  userId: string;
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { broadcastLogout, watchLogout } from './chunk-LL6LSJAH.js';
3
- import { clearBetaBannerDismissal, standardPolitogyNav, standardNavIcons, isNavItemActive, NavAppShell, NavChromeProvider, TopBarWidgetSlot, FuelAction, SpecOverlayAction, NotificationsAction, SupportAction, useChromeMe, useThemePreference, useNavChromeDedupedFetch, useChromeOrgs, useNavChromeFetcher } from './chunk-HSC6EYRR.js';
4
- export { standardNavIcons } from './chunk-HSC6EYRR.js';
5
- import { warnDeprecated } from './chunk-MY6G3LMN.js';
3
+ import { clearBetaBannerDismissal, standardPolitogyNav, standardNavIcons, isNavItemActive, NavAppShell } from './chunk-GGM4AD43.js';
4
+ export { standardNavIcons } from './chunk-GGM4AD43.js';
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';
@@ -1311,6 +1311,7 @@ function PolitogyAppChrome({
1311
1311
  storagePrefix,
1312
1312
  proxyBasePath = "/api/chrome",
1313
1313
  fetchJson: fetchJsonOverride,
1314
+ notificationsAdapter,
1314
1315
  devNotes,
1315
1316
  org,
1316
1317
  tokenOrg,
@@ -1342,7 +1343,7 @@ function PolitogyAppChrome({
1342
1343
  children
1343
1344
  }
1344
1345
  );
1345
- return /* @__PURE__ */ jsx(NavChromeProvider, { fetchJson, children: tokenOrg ? /* @__PURE__ */ jsx(TokenChromeStateProvider, { tokenOrg, children: devNotesTree }) : /* @__PURE__ */ jsx(ChromeStateProvider, { controlledOrg: org, children: devNotesTree }) });
1346
+ return /* @__PURE__ */ jsx(NavChromeProvider, { fetchJson, notificationsAdapter, children: tokenOrg ? /* @__PURE__ */ jsx(TokenChromeStateProvider, { tokenOrg, children: devNotesTree }) : /* @__PURE__ */ jsx(ChromeStateProvider, { controlledOrg: org, children: devNotesTree }) });
1346
1347
  }
1347
1348
  function ChromeTopBarActions() {
1348
1349
  const state = useChromeState();
@@ -1403,7 +1404,6 @@ function useChromeUserMenu({
1403
1404
  email
1404
1405
  }) {
1405
1406
  const state = useChromeState();
1406
- const theme = useThemePreference();
1407
1407
  const activeOrg = state?.orgs.find((o) => o.id === state.orgId) ?? null;
1408
1408
  const orgSuffix = activeOrg ? `?org=${activeOrg.id}` : "";
1409
1409
  const coreBase = getCoreBaseUrl();
@@ -1414,7 +1414,9 @@ function useChromeUserMenu({
1414
1414
  roles: (state?.orgs ?? []).filter((o) => o.rawRole || o.role).map((o) => ({ role: o.rawRole ?? o.role, orgName: o.name })),
1415
1415
  accounts: [{ id: userId, name: userName, email, avatarUrl: null, active: true }],
1416
1416
  addAccountHref: `${coreBase}/my-profile#accounts`,
1417
- theme: { value: theme.value, onChange: theme.setValue },
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.
1418
1420
  navDisplay: state ? { value: state.navDisplay, onChange: state.setNavDisplay } : void 0
1419
1421
  };
1420
1422
  }