@the-portland-company/shell 0.76.15 → 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';
@@ -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();