@the-portland-company/shell 0.76.14 → 0.76.18

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). */
@@ -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). */
@@ -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, useThemePreference, 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';
@@ -839,7 +839,11 @@ function FrameBody({
839
839
  topBar: {
840
840
  // Core's pages publish their own identity; every other app is one
841
841
  // product surface and takes its registry title.
842
- title: core?.page?.title ?? (grants?.includes("title") ? data?.frame?.title : void 0) ?? (meta.pageTitle === false ? void 0 : meta.title),
842
+ // TITLEBAR (Design is truth): the chrome no longer draws a page-title
843
+ // <h1> strip above the page for feature apps. Specs/Design shows the
844
+ // page opening on its own eyebrow + H2 (app content), so only core's
845
+ // own page title is passed. The 'title' grant is retained but inert.
846
+ title: core?.page?.title,
843
847
  breadcrumbs,
844
848
  user: {
845
849
  name: identity.userName,
@@ -1307,6 +1311,7 @@ function PolitogyAppChrome({
1307
1311
  storagePrefix,
1308
1312
  proxyBasePath = "/api/chrome",
1309
1313
  fetchJson: fetchJsonOverride,
1314
+ notificationsAdapter,
1310
1315
  devNotes,
1311
1316
  org,
1312
1317
  tokenOrg,
@@ -1338,7 +1343,7 @@ function PolitogyAppChrome({
1338
1343
  children
1339
1344
  }
1340
1345
  );
1341
- 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 }) });
1342
1347
  }
1343
1348
  function ChromeTopBarActions() {
1344
1349
  const state = useChromeState();