@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.
- package/CHANGELOG.md +31 -0
- package/dist/app-chrome.cjs +133 -16
- package/dist/app-chrome.cjs.map +1 -1
- package/dist/app-chrome.d.cts +7 -2
- package/dist/app-chrome.d.ts +7 -2
- package/dist/app-chrome.js +5 -4
- package/dist/app-chrome.js.map +1 -1
- package/dist/{chunk-HSC6EYRR.js → chunk-GGM4AD43.js} +6 -1769
- package/dist/chunk-GGM4AD43.js.map +1 -0
- package/dist/chunk-TUK2IEL5.js +2002 -0
- package/dist/chunk-TUK2IEL5.js.map +1 -0
- package/dist/index-Cu5frXRQ.d.cts +990 -0
- package/dist/index-DJ3qBzfQ.d.ts +990 -0
- package/dist/index.cjs +170 -85
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +37 -36
- package/dist/index.js.map +1 -1
- package/dist/native.cjs +131 -15
- package/dist/native.cjs.map +1 -1
- package/dist/native.d.cts +4 -929
- package/dist/native.d.ts +4 -929
- package/dist/native.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-HSC6EYRR.js.map +0 -1
- package/dist/chunk-MY6G3LMN.js +0 -125
- package/dist/chunk-MY6G3LMN.js.map +0 -1
package/dist/app-chrome.d.cts
CHANGED
|
@@ -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 './
|
|
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). */
|
package/dist/app-chrome.d.ts
CHANGED
|
@@ -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 './
|
|
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). */
|
package/dist/app-chrome.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { broadcastLogout, watchLogout } from './chunk-LL6LSJAH.js';
|
|
3
|
-
import { clearBetaBannerDismissal, standardPolitogyNav, standardNavIcons, isNavItemActive, NavAppShell
|
|
4
|
-
export { standardNavIcons } from './chunk-
|
|
5
|
-
import { warnDeprecated } from './chunk-
|
|
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();
|