@the-portland-company/shell 0.77.0 → 0.79.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.
@@ -415,12 +415,11 @@ interface StandardNavOptions {
415
415
  count?: string | number | null;
416
416
  };
417
417
  /**
418
- * Top-level rows to OMIT, by label (case-insensitive), e.g. `['Polls','CTAs']`.
418
+ * Top-level rows to OMIT, by label (case-insensitive), e.g. `['Forms','Surveys']`.
419
419
  * The Specs/Contacts design rail lists Relationship → Collect → Account with
420
420
  * exactly Dashboard · Contacts · Email broadcast · SMS/MMS blast / Calls to
421
- * action · Forms · Surveys / My profile · Organization settings; apps that
422
- * still surface Polls / CTAs keep them by default. A section row with no
423
- * remaining items is dropped too.
421
+ * action · Forms · Surveys / My profile · Organization settings. A section
422
+ * row with no remaining items is dropped too.
424
423
  */
425
424
  hiddenItems?: string[];
426
425
  /**
@@ -415,12 +415,11 @@ interface StandardNavOptions {
415
415
  count?: string | number | null;
416
416
  };
417
417
  /**
418
- * Top-level rows to OMIT, by label (case-insensitive), e.g. `['Polls','CTAs']`.
418
+ * Top-level rows to OMIT, by label (case-insensitive), e.g. `['Forms','Surveys']`.
419
419
  * The Specs/Contacts design rail lists Relationship → Collect → Account with
420
420
  * exactly Dashboard · Contacts · Email broadcast · SMS/MMS blast / Calls to
421
- * action · Forms · Surveys / My profile · Organization settings; apps that
422
- * still surface Polls / CTAs keep them by default. A section row with no
423
- * remaining items is dropped too.
421
+ * action · Forms · Surveys / My profile · Organization settings. A section
422
+ * row with no remaining items is dropped too.
424
423
  */
425
424
  hiddenItems?: string[];
426
425
  /**
package/dist/index.d.cts CHANGED
@@ -1,8 +1,8 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as react from 'react';
3
3
  import { ReactNode, CSSProperties } from 'react';
4
- import { N as NavItem } from './index-Cu5frXRQ.cjs';
5
- export { C as CommsNotification, a as CommsNotificationKind, F as FormColumn, b as NotificationsAdapter, c as NotificationsFeed, d as createCommsNotificationsAdapter, e as emptyNotificationsFeed, n as normalizeNotificationsFeed } from './index-Cu5frXRQ.cjs';
4
+ import { N as NavItem } from './index-fydj5EU2.cjs';
5
+ export { C as CommsNotification, a as CommsNotificationKind, F as FormColumn, b as NotificationsAdapter, c as NotificationsFeed, d as createCommsNotificationsAdapter, e as emptyNotificationsFeed, n as normalizeNotificationsFeed } from './index-fydj5EU2.cjs';
6
6
  import { User, Session, SupabaseClient } from '@supabase/supabase-js';
7
7
  import './theme-preference.cjs';
8
8
 
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as react from 'react';
3
3
  import { ReactNode, CSSProperties } from 'react';
4
- import { N as NavItem } from './index-DJ3qBzfQ.js';
5
- export { C as CommsNotification, a as CommsNotificationKind, F as FormColumn, b as NotificationsAdapter, c as NotificationsFeed, d as createCommsNotificationsAdapter, e as emptyNotificationsFeed, n as normalizeNotificationsFeed } from './index-DJ3qBzfQ.js';
4
+ import { N as NavItem } from './index-KGYMc_1i.js';
5
+ export { C as CommsNotification, a as CommsNotificationKind, F as FormColumn, b as NotificationsAdapter, c as NotificationsFeed, d as createCommsNotificationsAdapter, e as emptyNotificationsFeed, n as normalizeNotificationsFeed } from './index-KGYMc_1i.js';
6
6
  import { User, Session, SupabaseClient } from '@supabase/supabase-js';
7
7
  import './theme-preference.js';
8
8
 
package/dist/native.cjs CHANGED
@@ -2206,6 +2206,8 @@ var SIGNS_ORIGIN = "https://signs.politogyvrm.com/";
2206
2206
  var POLLS_ORIGIN = "https://polls.politogyvrm.com/";
2207
2207
  var SETTINGS_ORIGIN = "https://settings.politogyvrm.com/";
2208
2208
  var DASHBOARD_ORIGIN = "https://dashboard.politogyvrm.com/";
2209
+ var BATTLEGROUND_ORIGIN = "https://battleground.politogyvrm.com/";
2210
+ var DISTRICTS_ORIGIN = "https://districts.politogyvrm.com/";
2209
2211
  var AUTH_ORIGIN = "https://auth.politogyvrm.com/";
2210
2212
  var PETITION_MODE_ORIGIN = "https://petition-mode.politogyvrm.com/";
2211
2213
  function applyHiddenItems(items, hidden) {
@@ -2396,16 +2398,9 @@ function standardPolitogyNav(opts) {
2396
2398
  href: withOrg("https://surveys.politogyvrm.com/surveys"),
2397
2399
  children: APP_SURVEYS_CHILDREN.map((c) => ({ label: c.label, icon: icon(c.icon), href: withOrg(c.href) }))
2398
2400
  },
2399
- // Polls (polls.politogyvrm.com) — kept in the default Collect section;
2400
- // apps that want it hidden pass `hiddenItems: ['Polls']`. Regression:
2401
- // dropped entirely in 03c4dc2 when app.politogyvrm.com retired; restored
2402
- // here (this row is independent of the retired app).
2403
- {
2404
- label: "Polls",
2405
- icon: icon("chartNoAxes"),
2406
- href: withOrg(POLLS_ORIGIN),
2407
- children: APP_POLLS_CHILDREN.map((c) => ({ label: c.label, icon: icon(c.icon), href: withOrg(c.href) }))
2408
- },
2401
+ // No Polls row here: Polling is a Campaign Mode feature only
2402
+ // (Specs/Left-Navigation §9.1 "Polls is not a Relationship row"). Its
2403
+ // row is "Polling" under Research in the Campaign tree below.
2409
2404
  ...accountRows()
2410
2405
  ];
2411
2406
  };
@@ -2419,12 +2414,11 @@ function standardPolitogyNav(opts) {
2419
2414
  // Battleground is the Campaign landing page; there is no Campaign
2420
2415
  // Dashboard row, and Voter Contact and Tribes have no row.
2421
2416
  { kind: "section", label: "Race data" },
2422
- // Battleground moved to the Dashboard app (dashboard.politogyvrm.com)
2423
- // until a dedicated Battleground host is decided (UI-Platform route table).
2424
- { label: "Battleground", icon: icon("crosshair"), href: withOrg(`${DASHBOARD_ORIGIN}battleground`) },
2425
- // District data moved to the Dashboard app (dashboard.politogyvrm.com)
2426
- // per Reference/UI-Platform v44.
2427
- { label: "District data", icon: icon("landmark"), href: withOrg(`${DASHBOARD_ORIGIN}districts`) },
2417
+ // Battleground is the Campaign Mode landing page, its own app on its own
2418
+ // host (registry key `battleground`; Specs/Left-Navigation §9.2, §13, §14).
2419
+ { label: "Battleground", icon: icon("crosshair"), href: withOrg(`${BATTLEGROUND_ORIGIN}battleground`) },
2420
+ // District Data is its own Campaign Mode app on its own host (registry key `districts`).
2421
+ { label: "District data", icon: icon("landmark"), href: withOrg(`${DISTRICTS_ORIGIN}districts`) },
2428
2422
  { kind: "section", label: "Research" },
2429
2423
  {
2430
2424
  label: "Polling",