@the-portland-company/shell 0.69.0 → 0.71.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.
- package/CHANGELOG.md +25 -0
- package/dist/app-chrome.cjs +261 -175
- package/dist/app-chrome.cjs.map +1 -1
- package/dist/app-chrome.js +44 -37
- package/dist/app-chrome.js.map +1 -1
- package/dist/chrome.css +2 -2
- package/dist/{chunk-6UHJV2FH.js → chunk-7YVJ7HQG.js} +41 -3
- package/dist/chunk-7YVJ7HQG.js.map +1 -0
- package/dist/{chunk-WFUWFMCA.js → chunk-B2AQL37X.js} +123 -82
- package/dist/chunk-B2AQL37X.js.map +1 -0
- package/dist/native.cjs +169 -79
- package/dist/native.cjs.map +1 -1
- package/dist/native.d.cts +13 -2
- package/dist/native.d.ts +13 -2
- package/dist/native.js +2 -1
- package/dist/nav-preference.cjs +44 -0
- package/dist/nav-preference.cjs.map +1 -1
- package/dist/nav-preference.d.cts +8 -1
- package/dist/nav-preference.d.ts +8 -1
- package/dist/nav-preference.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-6UHJV2FH.js.map +0 -1
- package/dist/chunk-WFUWFMCA.js.map +0 -1
package/dist/app-chrome.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { broadcastLogout, watchLogout } from './chunk-LL6LSJAH.js';
|
|
3
|
-
import { clearBetaBannerDismissal, standardPolitogyNav, isNavItemActive, NavAppShell, NavChromeProvider, TopBarWidgetSlot, FuelAction, SpecOverlayAction, NotificationsAction, SupportAction, useChromeMe, useThemePreference, useNavChromeFetcher, useChromeOrgs } from './chunk-
|
|
3
|
+
import { clearBetaBannerDismissal, standardPolitogyNav, isNavItemActive, NavAppShell, NavChromeProvider, TopBarWidgetSlot, FuelAction, SpecOverlayAction, NotificationsAction, SupportAction, useChromeMe, useThemePreference, useNavChromeFetcher, useChromeOrgs } from './chunk-B2AQL37X.js';
|
|
4
4
|
import { warnDeprecated } from './chunk-LPSBSAF3.js';
|
|
5
5
|
import './chunk-NHBNM5P3.js';
|
|
6
|
-
import { NAV_DISPLAY_DEFAULT, resolveNavDisplay, isNavDisplayPreference, writeNavDisplayCookie, writeNavDisplayLocal, NAV_DISPLAY_STORAGE_KEY, readNavDisplayCookie } from './chunk-
|
|
6
|
+
import { NAV_DISPLAY_DEFAULT, resolveNavDisplay, isNavDisplayPreference, writeNavDisplayCookie, writeNavDisplayLocal, NAV_DISPLAY_STORAGE_KEY, readNavDisplayCookie } from './chunk-7YVJ7HQG.js';
|
|
7
7
|
import { resolveActiveOrg, isOrgId, writeActiveOrgCookie, ACTIVE_ORG_QUERY_PARAM, readActiveOrgCookie } from './chunk-W2HITMV5.js';
|
|
8
8
|
import { createContext, useMemo, useRef, useEffect, useState, useCallback, useContext } from 'react';
|
|
9
9
|
import { DevNotesMenu, createDevNotesClient, DevNotesProvider, DevNotesTaskListModal, DevNotesOverlay } from '@the-portland-company/devnotes';
|
|
10
|
-
import {
|
|
10
|
+
import { LuSignpost, LuDoorOpen, LuChartNoAxesColumn, LuLandmark, LuCrosshair, LuCircleUser, LuClipboardList, LuMousePointerClick, LuUsersRound, LuLayoutDashboard, LuFlag, LuTarget, LuMapPin, LuMap, LuPhone, LuShare2, LuDollarSign, LuCreditCard, LuSettings, LuBriefcase, LuChartColumn, LuUser, LuClock, LuSend, LuFileText, LuPencil, LuUpload, LuList, LuLayoutGrid, LuLifeBuoy, LuActivity, LuMessageSquare, LuMail, LuUsers, LuHouse, LuNotebookPen, LuContactRound, LuMegaphone, LuFilePenLine } from 'react-icons/lu';
|
|
11
11
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
12
12
|
|
|
13
13
|
// src/lib/breadcrumbs.ts
|
|
@@ -835,10 +835,7 @@ function FrameBody({
|
|
|
835
835
|
// search yet, so this stays decorative (`NavTopBarProps.search` — "an
|
|
836
836
|
// app that has not wired search yet still gets the correct chrome").
|
|
837
837
|
search: { placeholder: data?.searchPlaceholder ?? DEFAULT_SEARCH_PLACEHOLDER[app] ?? "Search" },
|
|
838
|
-
//
|
|
839
|
-
// group. The spec names the element and its position but not its
|
|
840
|
-
// destination content; `onOpen` is left unset until that is defined.
|
|
841
|
-
buildNotes: {},
|
|
838
|
+
// No Build notes control (Reference/UI-Platform, decided 2026-10-03).
|
|
842
839
|
// The action cluster is IDENTICAL everywhere — core included. Page
|
|
843
840
|
// actions sit BEFORE it, never inside it, so the Alerts bell keeps its
|
|
844
841
|
// required position: farthest right, immediately before My Account.
|
|
@@ -853,33 +850,43 @@ function FrameBody({
|
|
|
853
850
|
] });
|
|
854
851
|
}
|
|
855
852
|
var standardNavIcons = {
|
|
856
|
-
home:
|
|
857
|
-
users:
|
|
858
|
-
mail:
|
|
859
|
-
messageSquare:
|
|
860
|
-
layout:
|
|
861
|
-
activity:
|
|
862
|
-
lifeBuoy:
|
|
863
|
-
grid:
|
|
864
|
-
list:
|
|
865
|
-
upload:
|
|
866
|
-
edit:
|
|
867
|
-
fileText:
|
|
868
|
-
send:
|
|
869
|
-
clock:
|
|
870
|
-
user:
|
|
871
|
-
barChart:
|
|
872
|
-
briefcase:
|
|
873
|
-
settings:
|
|
874
|
-
creditCard:
|
|
875
|
-
dollarSign:
|
|
876
|
-
share:
|
|
853
|
+
home: LuHouse,
|
|
854
|
+
users: LuUsers,
|
|
855
|
+
mail: LuMail,
|
|
856
|
+
messageSquare: LuMessageSquare,
|
|
857
|
+
layout: LuLayoutDashboard,
|
|
858
|
+
activity: LuActivity,
|
|
859
|
+
lifeBuoy: LuLifeBuoy,
|
|
860
|
+
grid: LuLayoutGrid,
|
|
861
|
+
list: LuList,
|
|
862
|
+
upload: LuUpload,
|
|
863
|
+
edit: LuPencil,
|
|
864
|
+
fileText: LuFileText,
|
|
865
|
+
send: LuSend,
|
|
866
|
+
clock: LuClock,
|
|
867
|
+
user: LuUser,
|
|
868
|
+
barChart: LuChartColumn,
|
|
869
|
+
briefcase: LuBriefcase,
|
|
870
|
+
settings: LuSettings,
|
|
871
|
+
creditCard: LuCreditCard,
|
|
872
|
+
dollarSign: LuDollarSign,
|
|
873
|
+
share: LuShare2,
|
|
877
874
|
// Campaign / Petition mode slots.
|
|
878
|
-
phone:
|
|
879
|
-
map:
|
|
880
|
-
mapPin:
|
|
881
|
-
target:
|
|
882
|
-
flag:
|
|
875
|
+
phone: LuPhone,
|
|
876
|
+
map: LuMap,
|
|
877
|
+
mapPin: LuMapPin,
|
|
878
|
+
target: LuTarget,
|
|
879
|
+
flag: LuFlag,
|
|
880
|
+
layoutDashboard: LuLayoutDashboard,
|
|
881
|
+
usersRound: LuUsersRound,
|
|
882
|
+
mousePointerClick: LuMousePointerClick,
|
|
883
|
+
clipboardList: LuClipboardList,
|
|
884
|
+
circleUser: LuCircleUser,
|
|
885
|
+
crosshair: LuCrosshair,
|
|
886
|
+
landmark: LuLandmark,
|
|
887
|
+
chartNoAxes: LuChartNoAxesColumn,
|
|
888
|
+
doorOpen: LuDoorOpen,
|
|
889
|
+
signpost: LuSignpost
|
|
883
890
|
};
|
|
884
891
|
var ORG_STORAGE_KEY = "vrm.activeOrg";
|
|
885
892
|
var MODE_STORAGE_KEY = "vrm.activeMode";
|
|
@@ -1250,7 +1257,7 @@ function ChromeTopBarActions() {
|
|
|
1250
1257
|
function ChromeDevNotesMenu() {
|
|
1251
1258
|
const { ready, openTasks, activate } = useContext(DevNotesTasksContext);
|
|
1252
1259
|
if (!ready) return null;
|
|
1253
|
-
return /* @__PURE__ */ jsx("span", { style: { display: "contents" }, onPointerDownCapture: activate, onFocusCapture: activate, onKeyDownCapture: activate, children: /* @__PURE__ */ jsx(DevNotesMenu, { position: "top-right", onViewTasks: openTasks }) });
|
|
1260
|
+
return /* @__PURE__ */ jsx("span", { style: { display: "contents" }, onPointerDownCapture: activate, onFocusCapture: activate, onKeyDownCapture: activate, children: /* @__PURE__ */ jsx(DevNotesMenu, { position: "top-right", icon: LuNotebookPen, onViewTasks: openTasks }) });
|
|
1254
1261
|
}
|
|
1255
1262
|
function useIsSuperAdmin() {
|
|
1256
1263
|
const state = useChromeState();
|
|
@@ -1306,14 +1313,14 @@ var MODE_DEFS = [
|
|
|
1306
1313
|
{
|
|
1307
1314
|
id: "relationship",
|
|
1308
1315
|
label: "Relationship Mode",
|
|
1309
|
-
icon:
|
|
1316
|
+
icon: LuContactRound,
|
|
1310
1317
|
href: `${CORE_BASE_URL}/relationship/dashboard`,
|
|
1311
1318
|
orgQuery: true
|
|
1312
1319
|
},
|
|
1313
1320
|
{
|
|
1314
1321
|
id: "campaign",
|
|
1315
1322
|
label: "Campaign Mode",
|
|
1316
|
-
icon:
|
|
1323
|
+
icon: LuMegaphone,
|
|
1317
1324
|
href: `${CORE_BASE_URL}/campaign/dashboard`,
|
|
1318
1325
|
orgQuery: true
|
|
1319
1326
|
},
|
|
@@ -1322,7 +1329,7 @@ var MODE_DEFS = [
|
|
|
1322
1329
|
// petitions repo deploys production to petition-mode.politogyvrm.com.
|
|
1323
1330
|
id: "petition",
|
|
1324
1331
|
label: "Petition Mode",
|
|
1325
|
-
icon:
|
|
1332
|
+
icon: LuFilePenLine,
|
|
1326
1333
|
href: "https://petition-mode.politogyvrm.com/",
|
|
1327
1334
|
orgQuery: true
|
|
1328
1335
|
}
|