@the-portland-company/shell 0.96.2 → 0.97.1
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 +20 -0
- package/dist/app-chrome.cjs +79 -652
- package/dist/app-chrome.cjs.map +1 -1
- package/dist/app-chrome.d.cts +6 -3
- package/dist/app-chrome.d.ts +6 -3
- package/dist/app-chrome.js +14 -23
- package/dist/app-chrome.js.map +1 -1
- package/dist/{chunk-SKXBGQ33.js → chunk-5IRZD6GF.js} +36 -32
- package/dist/chunk-5IRZD6GF.js.map +1 -0
- package/dist/{chunk-537NZZVP.js → chunk-XPTC47TY.js} +42 -7
- package/dist/chunk-XPTC47TY.js.map +1 -0
- package/dist/{index-DJtKw0Fd.d.cts → index-SHcw15A4.d.cts} +54 -2
- package/dist/{index-HwDXhFOA.d.ts → index-smsLP_tM.d.ts} +54 -2
- package/dist/index.cjs +10 -3
- 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 +2 -2
- package/dist/native.cjs +74 -31
- package/dist/native.cjs.map +1 -1
- package/dist/native.d.cts +1 -1
- package/dist/native.d.ts +1 -1
- package/dist/native.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-537NZZVP.js.map +0 -1
- package/dist/chunk-SKXBGQ33.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 { S as StandardNavIconKey, o as NavIcon, N as NavItem, p as NavBreadcrumb, q as StandardNavMode, s as NavLinkComponent, t as NavChromeFetcher, u as NavMode, v as NavUserMenu, w as NavOrgOption, f as NotificationsAdapter, x as NavFooterLink, y as NavFooter, z as NavDisplayMode } from './index-
|
|
3
|
+
import { S as StandardNavIconKey, o as NavIcon, N as NavItem, p as NavBreadcrumb, q as StandardNavMode, s as NavLinkComponent, t as NavChromeFetcher, u as NavMode, v as NavUserMenu, w as NavOrgOption, f as NotificationsAdapter, x as NavFooterLink, y as NavFooter, z as NavDisplayMode } from './index-SHcw15A4.cjs';
|
|
4
4
|
import './theme-preference.cjs';
|
|
5
5
|
import './brand-favicon.cjs';
|
|
6
6
|
|
|
@@ -522,8 +522,11 @@ declare function PolitogyAppChrome({ storagePrefix, proxyBasePath, fetchJson: fe
|
|
|
522
522
|
identity: ChromeIdentity;
|
|
523
523
|
children: ReactNode;
|
|
524
524
|
}): react_jsx_runtime.JSX.Element;
|
|
525
|
-
/** The standard top-bar action cluster — Reference/UI-Platform
|
|
526
|
-
* Search |
|
|
525
|
+
/** The standard top-bar action cluster — Reference/UI-Platform "Top bar":
|
|
526
|
+
* Search | Credits | Notifications | Organization settings | My profile.
|
|
527
|
+
* Help (the support-request modal) left the top bar on 2026-11-04 (Ben). A
|
|
528
|
+
* left-bar footer "Support" link to the website's support page follows once
|
|
529
|
+
* politogyvrm.com/support is live (branch feat/footer-support-link-later). The
|
|
527
530
|
* Navigation Display switcher moved into the account menu (0.68.0); the Spec
|
|
528
531
|
* overlay slot still renders between Credits and Notifications when the
|
|
529
532
|
* signed-in user is allowed it (it draws nothing otherwise). */
|
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 { S as StandardNavIconKey, o as NavIcon, N as NavItem, p as NavBreadcrumb, q as StandardNavMode, s as NavLinkComponent, t as NavChromeFetcher, u as NavMode, v as NavUserMenu, w as NavOrgOption, f as NotificationsAdapter, x as NavFooterLink, y as NavFooter, z as NavDisplayMode } from './index-
|
|
3
|
+
import { S as StandardNavIconKey, o as NavIcon, N as NavItem, p as NavBreadcrumb, q as StandardNavMode, s as NavLinkComponent, t as NavChromeFetcher, u as NavMode, v as NavUserMenu, w as NavOrgOption, f as NotificationsAdapter, x as NavFooterLink, y as NavFooter, z as NavDisplayMode } from './index-smsLP_tM.js';
|
|
4
4
|
import './theme-preference.js';
|
|
5
5
|
import './brand-favicon.js';
|
|
6
6
|
|
|
@@ -522,8 +522,11 @@ declare function PolitogyAppChrome({ storagePrefix, proxyBasePath, fetchJson: fe
|
|
|
522
522
|
identity: ChromeIdentity;
|
|
523
523
|
children: ReactNode;
|
|
524
524
|
}): react_jsx_runtime.JSX.Element;
|
|
525
|
-
/** The standard top-bar action cluster — Reference/UI-Platform
|
|
526
|
-
* Search |
|
|
525
|
+
/** The standard top-bar action cluster — Reference/UI-Platform "Top bar":
|
|
526
|
+
* Search | Credits | Notifications | Organization settings | My profile.
|
|
527
|
+
* Help (the support-request modal) left the top bar on 2026-11-04 (Ben). A
|
|
528
|
+
* left-bar footer "Support" link to the website's support page follows once
|
|
529
|
+
* politogyvrm.com/support is live (branch feat/footer-support-link-later). The
|
|
527
530
|
* Navigation Display switcher moved into the account menu (0.68.0); the Spec
|
|
528
531
|
* overlay slot still renders between Credits and Notifications when the
|
|
529
532
|
* signed-in user is allowed it (it draws nothing otherwise). */
|
package/dist/app-chrome.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
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-
|
|
5
|
-
export { standardNavIcons } from './chunk-
|
|
6
|
-
import { orgIdTail,
|
|
7
|
-
import { warnDeprecated, NavChromeProvider,
|
|
4
|
+
import { clearBetaBannerDismissal, standardPolitogyNav, standardNavIcons, isNavItemActive, NavAppShell } from './chunk-5IRZD6GF.js';
|
|
5
|
+
export { standardNavIcons } from './chunk-5IRZD6GF.js';
|
|
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
|
+
import { warnDeprecated, NavChromeProvider, FuelAction, NotificationsAction, OrganizationSettingsAction, MyProfileAction, useChromeMe, useNavChromeDedupedFetch, useChromeOrgs, useNavChromeFetcher } from './chunk-XPTC47TY.js';
|
|
8
8
|
import './chunk-BHRVZPZ7.js';
|
|
9
9
|
import { NAV_DISPLAY_DEFAULT, resolveNavDisplay, writeNavDisplayLocal, writeNavDisplayCookie, isNavDisplayPreference, NAV_DISPLAY_STORAGE_KEY, readNavDisplayCookie } from './chunk-7YVJ7HQG.js';
|
|
10
10
|
import { useBrandAssets, BrandFavicon } from './chunk-BMR5WAWH.js';
|
|
11
11
|
import { createContext, useMemo, useRef, useEffect, useState, useCallback, useContext } from 'react';
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import { createDevNotesClient, DevNotesProvider, DevNotesTaskListModal, DevNotesOverlay } from '@the-portland-company/devnotes';
|
|
13
|
+
import { LuContactRound, LuMegaphone, LuFilePenLine } from 'react-icons/lu';
|
|
14
14
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
15
15
|
|
|
16
16
|
// src/lib/breadcrumbs.ts
|
|
@@ -1405,26 +1405,15 @@ function ChromeTopBarActions() {
|
|
|
1405
1405
|
const state = useChromeState();
|
|
1406
1406
|
if (!state) return null;
|
|
1407
1407
|
const settledOrgId = state.orgsLoading ? null : state.orgId;
|
|
1408
|
+
const tail = orgIdTail(state.orgId);
|
|
1409
|
+
const orgQuery = tail ? `?${ORG_ID_QUERY_PARAM}=${tail}` : "";
|
|
1408
1410
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1409
|
-
/* @__PURE__ */ jsx(
|
|
1410
|
-
TopBarWidgetSlot,
|
|
1411
|
-
{
|
|
1412
|
-
title: "DevNotes",
|
|
1413
|
-
description: "Capture bugs and notes, filed straight to Forge.",
|
|
1414
|
-
children: /* @__PURE__ */ jsx(ChromeDevNotesMenu, {})
|
|
1415
|
-
}
|
|
1416
|
-
),
|
|
1417
1411
|
/* @__PURE__ */ jsx(FuelAction, { orgId: settledOrgId }),
|
|
1418
|
-
/* @__PURE__ */ jsx(SpecOverlayAction, { orgId: state.orgId, orgName: state.orgs.find((o) => o.id === state.orgId)?.name ?? null }),
|
|
1419
1412
|
/* @__PURE__ */ jsx(NotificationsAction, { orgId: settledOrgId }),
|
|
1420
|
-
/* @__PURE__ */ jsx(
|
|
1413
|
+
/* @__PURE__ */ jsx(OrganizationSettingsAction, { href: `${settingsBaseUrl()}/organization-settings${orgQuery}` }),
|
|
1414
|
+
/* @__PURE__ */ jsx(MyProfileAction, { href: `${authBaseUrl()}/my-profile${orgQuery}` })
|
|
1421
1415
|
] });
|
|
1422
1416
|
}
|
|
1423
|
-
function ChromeDevNotesMenu() {
|
|
1424
|
-
const { ready, openTasks, activate } = useContext(DevNotesTasksContext);
|
|
1425
|
-
if (!ready) return null;
|
|
1426
|
-
return /* @__PURE__ */ jsx("span", { style: { display: "contents" }, onPointerDownCapture: activate, onFocusCapture: activate, onKeyDownCapture: activate, children: /* @__PURE__ */ jsx(DevNotesMenu, { position: "top-right", icon: LuNotebookPen, onViewTasks: openTasks }) });
|
|
1427
|
-
}
|
|
1428
1417
|
function useIsSuperAdmin() {
|
|
1429
1418
|
const state = useChromeState();
|
|
1430
1419
|
return (state?.orgs ?? []).some((o) => /super/i.test(o.rawRole ?? ""));
|
|
@@ -1474,11 +1463,13 @@ function useChromeUserMenu({
|
|
|
1474
1463
|
organizationSettingsHref: `${settings}/organization-settings${orgSuffix}`,
|
|
1475
1464
|
roles: (state?.orgs ?? []).filter((o) => o.rawRole || o.role).map((o) => ({ role: o.rawRole ?? o.role, orgName: o.name })),
|
|
1476
1465
|
accounts: [{ id: userId, name: userName, email, avatarUrl: null, active: true }],
|
|
1477
|
-
addAccountHref: `${auth}/my-profile#accounts
|
|
1466
|
+
addAccountHref: `${auth}/my-profile#accounts`
|
|
1478
1467
|
// No theme control: the product is light only (Reference/UI-Platform
|
|
1479
1468
|
// "Theme — light only"; shell 0.73.0 stopped applying dark). The account
|
|
1480
1469
|
// menu rendered an "Appearance" radio with one option until 0.77.0.
|
|
1481
|
-
|
|
1470
|
+
// Ben 2026-11-04: no Navigation display option in the account menu. The
|
|
1471
|
+
// preference itself (state.navDisplay, its storage and the frame's use of
|
|
1472
|
+
// it) is unchanged; only the menu control is gone.
|
|
1482
1473
|
};
|
|
1483
1474
|
}
|
|
1484
1475
|
var MODE_DEFS = [
|