@the-portland-company/shell 0.65.0 → 0.66.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/dist/native.d.cts CHANGED
@@ -440,6 +440,15 @@ type NavOrg = {
440
440
  logoUrl?: string | null;
441
441
  /** Solid pill background (the org's brand color). Defaults to the accent. */
442
442
  brandColor?: string | null;
443
+ /** Org's secondary Brand Kit color; the card's bottom-edge gradient runs
444
+ * primary → secondary. Falls back to the Politogy gradient when unset. */
445
+ brandColorSecondary?: string | null;
446
+ /**
447
+ * Organization Settings §7.1–§7.2: when the org has no logo yet, an Account
448
+ * Admin sees an "Upload logo" link in the band instead of the org name.
449
+ */
450
+ canUploadLogo?: boolean;
451
+ uploadLogoHref?: string;
443
452
  onClick?: () => void;
444
453
  /**
445
454
  * The user's organizations. When present (even one), the pill renders as a
@@ -460,6 +469,15 @@ type NavModeOption = {
460
469
  id: string;
461
470
  label: string;
462
471
  icon?: NavIcon;
472
+ /**
473
+ * Left-Navigation §7: a mode the organization does not hold is always
474
+ * shown (never hidden), dimmed, and not selectable. Defaults to true.
475
+ */
476
+ available?: boolean;
477
+ /** Tooltip for an unavailable mode, e.g. "Campaign Mode isn't active for
478
+ * this organization." Appended with "See upgrade options" for an Account
479
+ * Admin on a paid account (never during a trial). */
480
+ unavailableTooltip?: string;
463
481
  };
464
482
  type NavMode = {
465
483
  label: string;
package/dist/native.d.ts CHANGED
@@ -440,6 +440,15 @@ type NavOrg = {
440
440
  logoUrl?: string | null;
441
441
  /** Solid pill background (the org's brand color). Defaults to the accent. */
442
442
  brandColor?: string | null;
443
+ /** Org's secondary Brand Kit color; the card's bottom-edge gradient runs
444
+ * primary → secondary. Falls back to the Politogy gradient when unset. */
445
+ brandColorSecondary?: string | null;
446
+ /**
447
+ * Organization Settings §7.1–§7.2: when the org has no logo yet, an Account
448
+ * Admin sees an "Upload logo" link in the band instead of the org name.
449
+ */
450
+ canUploadLogo?: boolean;
451
+ uploadLogoHref?: string;
443
452
  onClick?: () => void;
444
453
  /**
445
454
  * The user's organizations. When present (even one), the pill renders as a
@@ -460,6 +469,15 @@ type NavModeOption = {
460
469
  id: string;
461
470
  label: string;
462
471
  icon?: NavIcon;
472
+ /**
473
+ * Left-Navigation §7: a mode the organization does not hold is always
474
+ * shown (never hidden), dimmed, and not selectable. Defaults to true.
475
+ */
476
+ available?: boolean;
477
+ /** Tooltip for an unavailable mode, e.g. "Campaign Mode isn't active for
478
+ * this organization." Appended with "See upgrade options" for an Account
479
+ * Admin on a paid account (never during a trial). */
480
+ unavailableTooltip?: string;
463
481
  };
464
482
  type NavMode = {
465
483
  label: string;
package/dist/native.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- export { BETA_BANNER_DISMISS_KEY, CAMPAIGN_FEATURE_AVAILABILITY, CORE_APP_ORIGIN, CORE_BILLING_PATH, FuelAction, NavAppShell, NavBetaBanner, NavChromeProvider, NavDisplayAction, NavSidebar, NavTabStrip, NavThemeControl, NavTopBar, NotificationsAction, SPECS_ORIGIN, SpecOverlayAction, SupportAction, TopBarCountBadge, TopBarPanelArrow, TopBarPopover, TopBarTooltip, TopBarWidgetSlot, clearBetaBannerDismissal, envChipClasses, isNavItemActive, resolveOrgLogoUrl, standardPolitogyNav, topBarIconButtonClass, useChromeMe, useChromeOrgs, useNavChromeFetcher, useThemePreference } from './chunk-XK2LWTHJ.js';
2
+ export { BETA_BANNER_DISMISS_KEY, CAMPAIGN_FEATURE_AVAILABILITY, CORE_APP_ORIGIN, CORE_BILLING_PATH, FuelAction, NavAppShell, NavBetaBanner, NavChromeProvider, NavDisplayAction, NavSidebar, NavTabStrip, NavThemeControl, NavTopBar, NotificationsAction, SPECS_ORIGIN, SpecOverlayAction, SupportAction, TopBarCountBadge, TopBarPanelArrow, TopBarPopover, TopBarTooltip, TopBarWidgetSlot, clearBetaBannerDismissal, envChipClasses, isNavItemActive, resolveOrgLogoUrl, standardPolitogyNav, topBarIconButtonClass, useChromeMe, useChromeOrgs, useNavChromeFetcher, useThemePreference } from './chunk-SMZ5VNVH.js';
3
3
  import './chunk-JHIFJZ73.js';
4
4
  //# sourceMappingURL=native.js.map
5
5
  //# sourceMappingURL=native.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-portland-company/shell",
3
- "version": "0.65.0",
3
+ "version": "0.66.0",
4
4
  "description": "Shared chrome (header, sidebar, footer, theme, auth) for politogy apps. Drop into any Vite SPA to inherit the politogy look and signed-in user.",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,