@the-portland-company/shell 0.71.1 → 0.72.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.
@@ -1,9 +1,16 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
- import { NavItem, NavBreadcrumb, StandardNavMode, NavLinkComponent, NavChromeFetcher, NavMode, NavUserMenu, NavOrgOption, StandardNavIconKey, NavIcon, NavFooter, NavDisplayMode } from './native.cjs';
3
+ import { StandardNavIconKey, NavIcon, NavItem, NavBreadcrumb, StandardNavMode, NavLinkComponent, NavChromeFetcher, NavMode, NavUserMenu, NavOrgOption, NavFooter, NavDisplayMode } from './native.cjs';
4
4
  import './theme-preference.cjs';
5
5
  import './FormColumn-DsNP6NVG.cjs';
6
6
 
7
+ /**
8
+ * The canonical icon map for standardPolitogyNav — ONE definition so every
9
+ * app renders identical glyphs (including the Organization Settings branch:
10
+ * briefcase / settings / creditCard / dollarSign / share).
11
+ */
12
+ declare const standardNavIcons: Record<StandardNavIconKey, NavIcon>;
13
+
7
14
  declare function deriveBreadcrumbs(items: NavItem[], pathname: string, opts?: {
8
15
  search?: string;
9
16
  origin?: string;
@@ -348,12 +355,6 @@ declare function PolitogyAppFrame({ app, pathname, search, linkComponent, sessio
348
355
  children: ReactNode;
349
356
  }): react_jsx_runtime.JSX.Element;
350
357
 
351
- /**
352
- * The canonical icon map for standardPolitogyNav — ONE definition so every
353
- * app renders identical glyphs (including the Organization Settings branch:
354
- * briefcase / settings / creditCard / dollarSign / share).
355
- */
356
- declare const standardNavIcons: Record<StandardNavIconKey, NavIcon>;
357
358
  type ChromeIdentity = {
358
359
  userId: string;
359
360
  userName: string | null;
@@ -1,9 +1,16 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
- import { NavItem, NavBreadcrumb, StandardNavMode, NavLinkComponent, NavChromeFetcher, NavMode, NavUserMenu, NavOrgOption, StandardNavIconKey, NavIcon, NavFooter, NavDisplayMode } from './native.js';
3
+ import { StandardNavIconKey, NavIcon, NavItem, NavBreadcrumb, StandardNavMode, NavLinkComponent, NavChromeFetcher, NavMode, NavUserMenu, NavOrgOption, NavFooter, NavDisplayMode } from './native.js';
4
4
  import './theme-preference.js';
5
5
  import './FormColumn-DsNP6NVG.js';
6
6
 
7
+ /**
8
+ * The canonical icon map for standardPolitogyNav — ONE definition so every
9
+ * app renders identical glyphs (including the Organization Settings branch:
10
+ * briefcase / settings / creditCard / dollarSign / share).
11
+ */
12
+ declare const standardNavIcons: Record<StandardNavIconKey, NavIcon>;
13
+
7
14
  declare function deriveBreadcrumbs(items: NavItem[], pathname: string, opts?: {
8
15
  search?: string;
9
16
  origin?: string;
@@ -348,12 +355,6 @@ declare function PolitogyAppFrame({ app, pathname, search, linkComponent, sessio
348
355
  children: ReactNode;
349
356
  }): react_jsx_runtime.JSX.Element;
350
357
 
351
- /**
352
- * The canonical icon map for standardPolitogyNav — ONE definition so every
353
- * app renders identical glyphs (including the Organization Settings branch:
354
- * briefcase / settings / creditCard / dollarSign / share).
355
- */
356
- declare const standardNavIcons: Record<StandardNavIconKey, NavIcon>;
357
358
  type ChromeIdentity = {
358
359
  userId: string;
359
360
  userName: string | null;
@@ -1,13 +1,14 @@
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-JBPJOPLW.js';
3
+ import { clearBetaBannerDismissal, standardPolitogyNav, standardNavIcons, isNavItemActive, NavAppShell, NavChromeProvider, TopBarWidgetSlot, FuelAction, SpecOverlayAction, NotificationsAction, SupportAction, useChromeMe, useThemePreference, useNavChromeFetcher, useChromeOrgs } from './chunk-6OM62ZTK.js';
4
+ export { standardNavIcons } from './chunk-6OM62ZTK.js';
4
5
  import { warnDeprecated } from './chunk-LPSBSAF3.js';
5
6
  import './chunk-NHBNM5P3.js';
6
7
  import { NAV_DISPLAY_DEFAULT, resolveNavDisplay, isNavDisplayPreference, writeNavDisplayCookie, writeNavDisplayLocal, NAV_DISPLAY_STORAGE_KEY, readNavDisplayCookie } from './chunk-7YVJ7HQG.js';
7
8
  import { resolveActiveOrg, isOrgId, writeActiveOrgCookie, ACTIVE_ORG_QUERY_PARAM, readActiveOrgCookie } from './chunk-W2HITMV5.js';
8
9
  import { createContext, useMemo, useRef, useEffect, useState, useCallback, useContext } from 'react';
9
10
  import { DevNotesMenu, createDevNotesClient, DevNotesProvider, DevNotesTaskListModal, DevNotesOverlay } from '@the-portland-company/devnotes';
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
+ import { LuNotebookPen, LuContactRound, LuMegaphone, LuFilePenLine } from 'react-icons/lu';
11
12
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
12
13
 
13
14
  // src/lib/breadcrumbs.ts
@@ -523,7 +524,8 @@ var POLITOGY_APPS = {
523
524
  },
524
525
  forms: { title: "Forms", origin: "https://forms.politogyvrm.com", storagePrefix: "forms" },
525
526
  surveys: { title: "Surveys", origin: "https://surveys.politogyvrm.com", storagePrefix: "surveys" },
526
- polls: { title: "Polls", origin: "https://polls.politogyvrm.com", storagePrefix: "polls" },
527
+ // Specs/Left-Navigation §9.2: Polling is a Campaign row (Research).
528
+ polls: { title: "Polls", origin: "https://polls.politogyvrm.com", storagePrefix: "polls", mode: "campaign" },
527
529
  ctas: { title: "CTAs", origin: "https://ctas.politogyvrm.com", storagePrefix: "ctas" },
528
530
  petitions: {
529
531
  title: "Petitions",
@@ -849,45 +851,6 @@ function FrameBody({
849
851
  )
850
852
  ] });
851
853
  }
852
- var standardNavIcons = {
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,
874
- // Campaign / Petition mode slots.
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
890
- };
891
854
  var ORG_STORAGE_KEY = "vrm.activeOrg";
892
855
  var MODE_STORAGE_KEY = "vrm.activeMode";
893
856
  var CORE_BASE_URL = "https://app.politogyvrm.com";
@@ -1396,6 +1359,6 @@ function useChromeMode(arg = {}) {
1396
1359
  };
1397
1360
  }
1398
1361
 
1399
- export { ChromeTopBarActions, LoadingScreen, POLITOGY_APPS, PolitogyAppChrome, PolitogyAppFrame, deriveBreadcrumbs, looksLikeEmail, resolveIdentity, standardNavIcons, useChromeFooter, useChromeIdentity, useChromeMode, useChromeState, useChromeUserMenu, useIsSuperAdmin };
1362
+ export { ChromeTopBarActions, LoadingScreen, POLITOGY_APPS, PolitogyAppChrome, PolitogyAppFrame, deriveBreadcrumbs, looksLikeEmail, resolveIdentity, useChromeFooter, useChromeIdentity, useChromeMode, useChromeState, useChromeUserMenu, useIsSuperAdmin };
1400
1363
  //# sourceMappingURL=app-chrome.js.map
1401
1364
  //# sourceMappingURL=app-chrome.js.map