@the-portland-company/shell 0.103.0 → 0.105.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.
@@ -869,6 +869,16 @@ type NavItem = {
869
869
  * settings moved to the top bar, so the ACCOUNT section is rail-hidden.
870
870
  */
871
871
  railHidden?: boolean;
872
+ /**
873
+ * Extra places this row owns, for pages its `href` can't reach by prefix
874
+ * (Left-Navigation §11.3: a row is active on every page of its feature).
875
+ * Each entry is an href: the row is active when the current path equals the
876
+ * entry's path or sits under it, and every query param in the entry (other
877
+ * than `org`) matches. An entry whose path is "/" owns its whole host.
878
+ * Example: CTAs' row links to "/?tab=ctas" but also owns "/cta/<id>".
879
+ * Honoured by `<PolitogyAppFrame>`'s active matcher.
880
+ */
881
+ activeOn?: string[];
872
882
  };
873
883
  type NavLinkProps = {
874
884
  href: string;
@@ -883,6 +893,13 @@ type NavLinkProps = {
883
893
  };
884
894
  type NavLinkComponent = ComponentType<NavLinkProps>;
885
895
  declare function isNavItemActive(pathname: string, href: string): boolean;
896
+ /**
897
+ * True when the current location sits on or under `pattern` (see
898
+ * `NavItem.activeOn`): same host for absolute patterns, path equal or a
899
+ * prefix at a segment boundary ("/" owns every path), and every identifying
900
+ * query param in the pattern present in the location.
901
+ */
902
+ declare function isUnderNavPattern(pathname: string, pattern: string): boolean;
886
903
  /** A multi-mode app (VRM core) renders NavAppShell without a registry modeId;
887
904
  * its current mode label still decides the rail colour (Left-Navigation §5). */
888
905
  declare function modeIdFromLabel(label: string | undefined): string | undefined;
@@ -1376,4 +1393,4 @@ type NavAppShellProps = {
1376
1393
  };
1377
1394
  declare function NavAppShell({ sidebar, topBar, betaBanner, contentWrapper, accountMenuPlacement, modeId, children, }: NavAppShellProps): react_jsx_runtime.JSX.Element;
1378
1395
 
1379
- export { CORE_BILLING_PATH as $, AI_CREDITS_STATE_TITLES as A, type BreadcrumbBarProps as B, CONTACTS_ORIGIN as C, type NavBreadcrumb as D, type StandardNavMode as E, FormColumn as F, type NavLinkComponent as G, HeaderTabBar as H, type NavChromeFetcher as I, type NavMode as J, KNOWN_TAB_GLYPHS as K, type NavUserMenu as L, type NavOrgOption as M, type NavItem as N, type ChromeOrgSummary as O, type PageHeaderProps as P, type NavFooterLink as Q, RowMenu as R, type StandardNavIconKey as S, type TabGlyphComponent as T, type NavFooter as U, VRM_TIER_LABELS as V, type NavDisplayMode as W, BETA_BANNER_DISMISS_KEY as X, BreadcrumbBar as Y, CAMPAIGN_FEATURE_AVAILABILITY as Z, CORE_APP_ORIGIN as _, AiCreditsState as a, creditStateWord as a$, CREDIT_TYPE_LABELS as a0, CREDIT_TYPE_ORDER as a1, type CampaignFeatureAvailability as a2, type ChromeMe as a3, type ChromeNotificationAlert as a4, type ChromeNotificationImport as a5, type ChromeNotificationQuarantine as a6, type ChromeNotificationReply as a7, type ChromeNotificationsPayload as a8, type CommunicationsFuelStatus as a9, NavTopBar as aA, type NavTopBarAction as aB, type NavTopBarProps as aC, type NavUser as aD, NotificationsAction as aE, OrganizationSettingsAction as aF, PROFILE_CHANGED_EVENT as aG, PageHeader as aH, type PageHeaderMode as aI, type PageIdentity as aJ, SPECS_ORIGIN as aK, SpecOverlayAction as aL, type StandardNavOptions as aM, SupportAction as aN, type ThemePreference as aO, TopBarCountBadge as aP, type TopBarIconTone as aQ, TopBarLinkAction as aR, type TopBarLinkActionProps as aS, TopBarPanelArrow as aT, TopBarPopover as aU, TopBarTooltip as aV, TopBarWidgetSlot as aW, announceProfileChanged as aX, buildLineParts as aY, clearBetaBannerDismissal as aZ, creditGaugeRatio as a_, type CreditHealthState as aa, type CreditTypeKey as ab, CreditsAction as ac, type CreditsIconState as ad, FuelAction as ae, type FuelChannelStatus as af, MyProfileAction as ag, NavAppShell as ah, type NavAppShellProps as ai, NavBetaBanner as aj, type NavBetaBannerProps as ak, type NavBrand as al, NavChromeProvider as am, NavDisplayAction as an, type NavLinkProps as ao, type NavLinkedAccount as ap, type NavModeOption as aq, type NavOrg as ar, type NavOrgVia as as, type NavRoleBadge as at, NavSidebar as au, type NavSidebarProps as av, type NavTab as aw, NavTabStrip as ax, type NavTabStripProps as ay, NavThemeControl as az, type AiCreditsStateKind as b, creditTooltipLine as b0, creditsAriaLabel as b1, creditsIconState as b2, envChipClasses as b3, isNavItemActive as b4, isNewPage as b5, modeIdFromLabel as b6, orgViaLabel as b7, pageIdentityOf as b8, resolveOrgLogoUrl as b9, shortEnvLabel as ba, shortUserName as bb, standardPolitogyNav as bc, topBarIconButtonClass as bd, useChromeMe as be, useChromeOrgs as bf, useNavChromeDedupedFetch as bg, useNavChromeFetcher as bh, useScrollToTopOnNewPage as bi, useThemePreference as bj, Card as c, type CommsNotification as d, type CommsNotificationKind as e, ContactSlideIn as f, type ContactSlideInProps as g, type HeaderTabBarItem as h, type NotificationsAdapter as i, type NotificationsFeed as j, RowMenuItem as k, type RowMenuPlacement as l, VRM_VERIFIED_TOOLTIP as m, VrmVerifiedBadge as n, type VrmVerifiedBadgeProps as o, type VrmVerifiedTier as p, aiCreditsWalletUrl as q, contactEmbedUrl as r, contactPageUrl as s, createCommsNotificationsAdapter as t, emptyNotificationsFeed as u, normalizeNotificationsFeed as v, resolveTabGlyph as w, rowMenuPosition as x, useContactSlideIn as y, type NavIcon as z };
1396
+ export { CORE_BILLING_PATH as $, AI_CREDITS_STATE_TITLES as A, type BreadcrumbBarProps as B, CONTACTS_ORIGIN as C, type NavBreadcrumb as D, type StandardNavMode as E, FormColumn as F, type NavLinkComponent as G, HeaderTabBar as H, type NavChromeFetcher as I, type NavMode as J, KNOWN_TAB_GLYPHS as K, type NavUserMenu as L, type NavOrgOption as M, type NavItem as N, type ChromeOrgSummary as O, type PageHeaderProps as P, type NavFooterLink as Q, RowMenu as R, type StandardNavIconKey as S, type TabGlyphComponent as T, type NavFooter as U, VRM_TIER_LABELS as V, type NavDisplayMode as W, BETA_BANNER_DISMISS_KEY as X, BreadcrumbBar as Y, CAMPAIGN_FEATURE_AVAILABILITY as Z, CORE_APP_ORIGIN as _, AiCreditsState as a, creditStateWord as a$, CREDIT_TYPE_LABELS as a0, CREDIT_TYPE_ORDER as a1, type CampaignFeatureAvailability as a2, type ChromeMe as a3, type ChromeNotificationAlert as a4, type ChromeNotificationImport as a5, type ChromeNotificationQuarantine as a6, type ChromeNotificationReply as a7, type ChromeNotificationsPayload as a8, type CommunicationsFuelStatus as a9, NavTopBar as aA, type NavTopBarAction as aB, type NavTopBarProps as aC, type NavUser as aD, NotificationsAction as aE, OrganizationSettingsAction as aF, PROFILE_CHANGED_EVENT as aG, PageHeader as aH, type PageHeaderMode as aI, type PageIdentity as aJ, SPECS_ORIGIN as aK, SpecOverlayAction as aL, type StandardNavOptions as aM, SupportAction as aN, type ThemePreference as aO, TopBarCountBadge as aP, type TopBarIconTone as aQ, TopBarLinkAction as aR, type TopBarLinkActionProps as aS, TopBarPanelArrow as aT, TopBarPopover as aU, TopBarTooltip as aV, TopBarWidgetSlot as aW, announceProfileChanged as aX, buildLineParts as aY, clearBetaBannerDismissal as aZ, creditGaugeRatio as a_, type CreditHealthState as aa, type CreditTypeKey as ab, CreditsAction as ac, type CreditsIconState as ad, FuelAction as ae, type FuelChannelStatus as af, MyProfileAction as ag, NavAppShell as ah, type NavAppShellProps as ai, NavBetaBanner as aj, type NavBetaBannerProps as ak, type NavBrand as al, NavChromeProvider as am, NavDisplayAction as an, type NavLinkProps as ao, type NavLinkedAccount as ap, type NavModeOption as aq, type NavOrg as ar, type NavOrgVia as as, type NavRoleBadge as at, NavSidebar as au, type NavSidebarProps as av, type NavTab as aw, NavTabStrip as ax, type NavTabStripProps as ay, NavThemeControl as az, type AiCreditsStateKind as b, creditTooltipLine as b0, creditsAriaLabel as b1, creditsIconState as b2, envChipClasses as b3, isNavItemActive as b4, isNewPage as b5, isUnderNavPattern as b6, modeIdFromLabel as b7, orgViaLabel as b8, pageIdentityOf as b9, resolveOrgLogoUrl as ba, shortEnvLabel as bb, shortUserName as bc, standardPolitogyNav as bd, topBarIconButtonClass as be, useChromeMe as bf, useChromeOrgs as bg, useNavChromeDedupedFetch as bh, useNavChromeFetcher as bi, useScrollToTopOnNewPage as bj, useThemePreference as bk, Card as c, type CommsNotification as d, type CommsNotificationKind as e, ContactSlideIn as f, type ContactSlideInProps as g, type HeaderTabBarItem as h, type NotificationsAdapter as i, type NotificationsFeed as j, RowMenuItem as k, type RowMenuPlacement as l, VRM_VERIFIED_TOOLTIP as m, VrmVerifiedBadge as n, type VrmVerifiedBadgeProps as o, type VrmVerifiedTier as p, aiCreditsWalletUrl as q, contactEmbedUrl as r, contactPageUrl as s, createCommsNotificationsAdapter as t, emptyNotificationsFeed as u, normalizeNotificationsFeed as v, resolveTabGlyph as w, rowMenuPosition as x, useContactSlideIn as y, type NavIcon as z };
@@ -869,6 +869,16 @@ type NavItem = {
869
869
  * settings moved to the top bar, so the ACCOUNT section is rail-hidden.
870
870
  */
871
871
  railHidden?: boolean;
872
+ /**
873
+ * Extra places this row owns, for pages its `href` can't reach by prefix
874
+ * (Left-Navigation §11.3: a row is active on every page of its feature).
875
+ * Each entry is an href: the row is active when the current path equals the
876
+ * entry's path or sits under it, and every query param in the entry (other
877
+ * than `org`) matches. An entry whose path is "/" owns its whole host.
878
+ * Example: CTAs' row links to "/?tab=ctas" but also owns "/cta/<id>".
879
+ * Honoured by `<PolitogyAppFrame>`'s active matcher.
880
+ */
881
+ activeOn?: string[];
872
882
  };
873
883
  type NavLinkProps = {
874
884
  href: string;
@@ -883,6 +893,13 @@ type NavLinkProps = {
883
893
  };
884
894
  type NavLinkComponent = ComponentType<NavLinkProps>;
885
895
  declare function isNavItemActive(pathname: string, href: string): boolean;
896
+ /**
897
+ * True when the current location sits on or under `pattern` (see
898
+ * `NavItem.activeOn`): same host for absolute patterns, path equal or a
899
+ * prefix at a segment boundary ("/" owns every path), and every identifying
900
+ * query param in the pattern present in the location.
901
+ */
902
+ declare function isUnderNavPattern(pathname: string, pattern: string): boolean;
886
903
  /** A multi-mode app (VRM core) renders NavAppShell without a registry modeId;
887
904
  * its current mode label still decides the rail colour (Left-Navigation §5). */
888
905
  declare function modeIdFromLabel(label: string | undefined): string | undefined;
@@ -1376,4 +1393,4 @@ type NavAppShellProps = {
1376
1393
  };
1377
1394
  declare function NavAppShell({ sidebar, topBar, betaBanner, contentWrapper, accountMenuPlacement, modeId, children, }: NavAppShellProps): react_jsx_runtime.JSX.Element;
1378
1395
 
1379
- export { CORE_BILLING_PATH as $, AI_CREDITS_STATE_TITLES as A, type BreadcrumbBarProps as B, CONTACTS_ORIGIN as C, type NavBreadcrumb as D, type StandardNavMode as E, FormColumn as F, type NavLinkComponent as G, HeaderTabBar as H, type NavChromeFetcher as I, type NavMode as J, KNOWN_TAB_GLYPHS as K, type NavUserMenu as L, type NavOrgOption as M, type NavItem as N, type ChromeOrgSummary as O, type PageHeaderProps as P, type NavFooterLink as Q, RowMenu as R, type StandardNavIconKey as S, type TabGlyphComponent as T, type NavFooter as U, VRM_TIER_LABELS as V, type NavDisplayMode as W, BETA_BANNER_DISMISS_KEY as X, BreadcrumbBar as Y, CAMPAIGN_FEATURE_AVAILABILITY as Z, CORE_APP_ORIGIN as _, AiCreditsState as a, creditStateWord as a$, CREDIT_TYPE_LABELS as a0, CREDIT_TYPE_ORDER as a1, type CampaignFeatureAvailability as a2, type ChromeMe as a3, type ChromeNotificationAlert as a4, type ChromeNotificationImport as a5, type ChromeNotificationQuarantine as a6, type ChromeNotificationReply as a7, type ChromeNotificationsPayload as a8, type CommunicationsFuelStatus as a9, NavTopBar as aA, type NavTopBarAction as aB, type NavTopBarProps as aC, type NavUser as aD, NotificationsAction as aE, OrganizationSettingsAction as aF, PROFILE_CHANGED_EVENT as aG, PageHeader as aH, type PageHeaderMode as aI, type PageIdentity as aJ, SPECS_ORIGIN as aK, SpecOverlayAction as aL, type StandardNavOptions as aM, SupportAction as aN, type ThemePreference as aO, TopBarCountBadge as aP, type TopBarIconTone as aQ, TopBarLinkAction as aR, type TopBarLinkActionProps as aS, TopBarPanelArrow as aT, TopBarPopover as aU, TopBarTooltip as aV, TopBarWidgetSlot as aW, announceProfileChanged as aX, buildLineParts as aY, clearBetaBannerDismissal as aZ, creditGaugeRatio as a_, type CreditHealthState as aa, type CreditTypeKey as ab, CreditsAction as ac, type CreditsIconState as ad, FuelAction as ae, type FuelChannelStatus as af, MyProfileAction as ag, NavAppShell as ah, type NavAppShellProps as ai, NavBetaBanner as aj, type NavBetaBannerProps as ak, type NavBrand as al, NavChromeProvider as am, NavDisplayAction as an, type NavLinkProps as ao, type NavLinkedAccount as ap, type NavModeOption as aq, type NavOrg as ar, type NavOrgVia as as, type NavRoleBadge as at, NavSidebar as au, type NavSidebarProps as av, type NavTab as aw, NavTabStrip as ax, type NavTabStripProps as ay, NavThemeControl as az, type AiCreditsStateKind as b, creditTooltipLine as b0, creditsAriaLabel as b1, creditsIconState as b2, envChipClasses as b3, isNavItemActive as b4, isNewPage as b5, modeIdFromLabel as b6, orgViaLabel as b7, pageIdentityOf as b8, resolveOrgLogoUrl as b9, shortEnvLabel as ba, shortUserName as bb, standardPolitogyNav as bc, topBarIconButtonClass as bd, useChromeMe as be, useChromeOrgs as bf, useNavChromeDedupedFetch as bg, useNavChromeFetcher as bh, useScrollToTopOnNewPage as bi, useThemePreference as bj, Card as c, type CommsNotification as d, type CommsNotificationKind as e, ContactSlideIn as f, type ContactSlideInProps as g, type HeaderTabBarItem as h, type NotificationsAdapter as i, type NotificationsFeed as j, RowMenuItem as k, type RowMenuPlacement as l, VRM_VERIFIED_TOOLTIP as m, VrmVerifiedBadge as n, type VrmVerifiedBadgeProps as o, type VrmVerifiedTier as p, aiCreditsWalletUrl as q, contactEmbedUrl as r, contactPageUrl as s, createCommsNotificationsAdapter as t, emptyNotificationsFeed as u, normalizeNotificationsFeed as v, resolveTabGlyph as w, rowMenuPosition as x, useContactSlideIn as y, type NavIcon as z };
1396
+ export { CORE_BILLING_PATH as $, AI_CREDITS_STATE_TITLES as A, type BreadcrumbBarProps as B, CONTACTS_ORIGIN as C, type NavBreadcrumb as D, type StandardNavMode as E, FormColumn as F, type NavLinkComponent as G, HeaderTabBar as H, type NavChromeFetcher as I, type NavMode as J, KNOWN_TAB_GLYPHS as K, type NavUserMenu as L, type NavOrgOption as M, type NavItem as N, type ChromeOrgSummary as O, type PageHeaderProps as P, type NavFooterLink as Q, RowMenu as R, type StandardNavIconKey as S, type TabGlyphComponent as T, type NavFooter as U, VRM_TIER_LABELS as V, type NavDisplayMode as W, BETA_BANNER_DISMISS_KEY as X, BreadcrumbBar as Y, CAMPAIGN_FEATURE_AVAILABILITY as Z, CORE_APP_ORIGIN as _, AiCreditsState as a, creditStateWord as a$, CREDIT_TYPE_LABELS as a0, CREDIT_TYPE_ORDER as a1, type CampaignFeatureAvailability as a2, type ChromeMe as a3, type ChromeNotificationAlert as a4, type ChromeNotificationImport as a5, type ChromeNotificationQuarantine as a6, type ChromeNotificationReply as a7, type ChromeNotificationsPayload as a8, type CommunicationsFuelStatus as a9, NavTopBar as aA, type NavTopBarAction as aB, type NavTopBarProps as aC, type NavUser as aD, NotificationsAction as aE, OrganizationSettingsAction as aF, PROFILE_CHANGED_EVENT as aG, PageHeader as aH, type PageHeaderMode as aI, type PageIdentity as aJ, SPECS_ORIGIN as aK, SpecOverlayAction as aL, type StandardNavOptions as aM, SupportAction as aN, type ThemePreference as aO, TopBarCountBadge as aP, type TopBarIconTone as aQ, TopBarLinkAction as aR, type TopBarLinkActionProps as aS, TopBarPanelArrow as aT, TopBarPopover as aU, TopBarTooltip as aV, TopBarWidgetSlot as aW, announceProfileChanged as aX, buildLineParts as aY, clearBetaBannerDismissal as aZ, creditGaugeRatio as a_, type CreditHealthState as aa, type CreditTypeKey as ab, CreditsAction as ac, type CreditsIconState as ad, FuelAction as ae, type FuelChannelStatus as af, MyProfileAction as ag, NavAppShell as ah, type NavAppShellProps as ai, NavBetaBanner as aj, type NavBetaBannerProps as ak, type NavBrand as al, NavChromeProvider as am, NavDisplayAction as an, type NavLinkProps as ao, type NavLinkedAccount as ap, type NavModeOption as aq, type NavOrg as ar, type NavOrgVia as as, type NavRoleBadge as at, NavSidebar as au, type NavSidebarProps as av, type NavTab as aw, NavTabStrip as ax, type NavTabStripProps as ay, NavThemeControl as az, type AiCreditsStateKind as b, creditTooltipLine as b0, creditsAriaLabel as b1, creditsIconState as b2, envChipClasses as b3, isNavItemActive as b4, isNewPage as b5, isUnderNavPattern as b6, modeIdFromLabel as b7, orgViaLabel as b8, pageIdentityOf as b9, resolveOrgLogoUrl as ba, shortEnvLabel as bb, shortUserName as bc, standardPolitogyNav as bd, topBarIconButtonClass as be, useChromeMe as bf, useChromeOrgs as bg, useNavChromeDedupedFetch as bh, useNavChromeFetcher as bi, useScrollToTopOnNewPage as bj, useThemePreference as bk, Card as c, type CommsNotification as d, type CommsNotificationKind as e, ContactSlideIn as f, type ContactSlideInProps as g, type HeaderTabBarItem as h, type NotificationsAdapter as i, type NotificationsFeed as j, RowMenuItem as k, type RowMenuPlacement as l, VRM_VERIFIED_TOOLTIP as m, VrmVerifiedBadge as n, type VrmVerifiedBadgeProps as o, type VrmVerifiedTier as p, aiCreditsWalletUrl as q, contactEmbedUrl as r, contactPageUrl as s, createCommsNotificationsAdapter as t, emptyNotificationsFeed as u, normalizeNotificationsFeed as v, resolveTabGlyph as w, rowMenuPosition as x, useContactSlideIn as y, type NavIcon as z };
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { P as PageHeaderProps, B as BreadcrumbBarProps, N as NavItem } from './index-lk2Ad_Q0.cjs';
2
- export { A as AI_CREDITS_STATE_TITLES, a as AiCreditsState, b as AiCreditsStateKind, C as CONTACTS_ORIGIN, c as Card, d as CommsNotification, e as CommsNotificationKind, f as ContactSlideIn, g as ContactSlideInProps, F as FormColumn, H as HeaderTabBar, h as HeaderTabBarItem, K as KNOWN_TAB_GLYPHS, i as NotificationsAdapter, j as NotificationsFeed, R as RowMenu, k as RowMenuItem, l as RowMenuPlacement, T as TabGlyphComponent, V as VRM_TIER_LABELS, m as VRM_VERIFIED_TOOLTIP, n as VrmVerifiedBadge, o as VrmVerifiedBadgeProps, p as VrmVerifiedTier, q as aiCreditsWalletUrl, r as contactEmbedUrl, s as contactPageUrl, t as createCommsNotificationsAdapter, u as emptyNotificationsFeed, v as normalizeNotificationsFeed, w as resolveTabGlyph, x as rowMenuPosition, y as useContactSlideIn } from './index-lk2Ad_Q0.cjs';
1
+ import { P as PageHeaderProps, B as BreadcrumbBarProps, N as NavItem } from './index-BKVWMe9_.cjs';
2
+ export { A as AI_CREDITS_STATE_TITLES, a as AiCreditsState, b as AiCreditsStateKind, C as CONTACTS_ORIGIN, c as Card, d as CommsNotification, e as CommsNotificationKind, f as ContactSlideIn, g as ContactSlideInProps, F as FormColumn, H as HeaderTabBar, h as HeaderTabBarItem, K as KNOWN_TAB_GLYPHS, i as NotificationsAdapter, j as NotificationsFeed, R as RowMenu, k as RowMenuItem, l as RowMenuPlacement, T as TabGlyphComponent, V as VRM_TIER_LABELS, m as VRM_VERIFIED_TOOLTIP, n as VrmVerifiedBadge, o as VrmVerifiedBadgeProps, p as VrmVerifiedTier, q as aiCreditsWalletUrl, r as contactEmbedUrl, s as contactPageUrl, t as createCommsNotificationsAdapter, u as emptyNotificationsFeed, v as normalizeNotificationsFeed, w as resolveTabGlyph, x as rowMenuPosition, y as useContactSlideIn } from './index-BKVWMe9_.cjs';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as react from 'react';
5
5
  import { ReactNode, CSSProperties } from 'react';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { P as PageHeaderProps, B as BreadcrumbBarProps, N as NavItem } from './index-ND_BS0nl.js';
2
- export { A as AI_CREDITS_STATE_TITLES, a as AiCreditsState, b as AiCreditsStateKind, C as CONTACTS_ORIGIN, c as Card, d as CommsNotification, e as CommsNotificationKind, f as ContactSlideIn, g as ContactSlideInProps, F as FormColumn, H as HeaderTabBar, h as HeaderTabBarItem, K as KNOWN_TAB_GLYPHS, i as NotificationsAdapter, j as NotificationsFeed, R as RowMenu, k as RowMenuItem, l as RowMenuPlacement, T as TabGlyphComponent, V as VRM_TIER_LABELS, m as VRM_VERIFIED_TOOLTIP, n as VrmVerifiedBadge, o as VrmVerifiedBadgeProps, p as VrmVerifiedTier, q as aiCreditsWalletUrl, r as contactEmbedUrl, s as contactPageUrl, t as createCommsNotificationsAdapter, u as emptyNotificationsFeed, v as normalizeNotificationsFeed, w as resolveTabGlyph, x as rowMenuPosition, y as useContactSlideIn } from './index-ND_BS0nl.js';
1
+ import { P as PageHeaderProps, B as BreadcrumbBarProps, N as NavItem } from './index-DnrsvxhZ.js';
2
+ export { A as AI_CREDITS_STATE_TITLES, a as AiCreditsState, b as AiCreditsStateKind, C as CONTACTS_ORIGIN, c as Card, d as CommsNotification, e as CommsNotificationKind, f as ContactSlideIn, g as ContactSlideInProps, F as FormColumn, H as HeaderTabBar, h as HeaderTabBarItem, K as KNOWN_TAB_GLYPHS, i as NotificationsAdapter, j as NotificationsFeed, R as RowMenu, k as RowMenuItem, l as RowMenuPlacement, T as TabGlyphComponent, V as VRM_TIER_LABELS, m as VRM_VERIFIED_TOOLTIP, n as VrmVerifiedBadge, o as VrmVerifiedBadgeProps, p as VrmVerifiedTier, q as aiCreditsWalletUrl, r as contactEmbedUrl, s as contactPageUrl, t as createCommsNotificationsAdapter, u as emptyNotificationsFeed, v as normalizeNotificationsFeed, w as resolveTabGlyph, x as rowMenuPosition, y as useContactSlideIn } from './index-DnrsvxhZ.js';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as react from 'react';
5
5
  import { ReactNode, CSSProperties } from 'react';
package/dist/native.cjs CHANGED
@@ -3496,9 +3496,17 @@ var APP_POLLS_CHILDREN = [
3496
3496
  { label: "Command Center", icon: "grid", href: "https://polls.politogyvrm.com/" },
3497
3497
  { label: "New Poll", icon: "edit", href: "https://polls.politogyvrm.com/polls/new" }
3498
3498
  ];
3499
+ var CTAS_ORIGIN = "https://ctas.politogyvrm.com";
3500
+ var ctaRecordTabs = (...tabs) => tabs.map((t) => `${CTAS_ORIGIN}/cta?tab=${t}`);
3499
3501
  var APP_CTAS_CHILDREN = [
3500
- { label: "CTAs", icon: "list", href: "https://ctas.politogyvrm.com/" },
3501
- { label: "Canvas", icon: "edit", href: "https://ctas.politogyvrm.com/?tab=canvas" }
3502
+ {
3503
+ label: "Calls to action",
3504
+ icon: "list",
3505
+ href: `${CTAS_ORIGIN}/?tab=ctas`,
3506
+ activeOn: ctaRecordTabs("builder", "placement", "audience", "experiments")
3507
+ },
3508
+ { label: "Performance", icon: "barChart", href: `${CTAS_ORIGIN}/?tab=analytics`, activeOn: ctaRecordTabs("performance") },
3509
+ { label: "Settings", icon: "settings", href: `${CTAS_ORIGIN}/?tab=site-keys`, activeOn: ctaRecordTabs("settings") }
3502
3510
  ];
3503
3511
  var APP_A2P_CHILDREN = [
3504
3512
  { label: "Dashboard", icon: "grid", path: "dashboard" },
@@ -3614,7 +3622,10 @@ function standardPolitogyNav(opts) {
3614
3622
  label: "Calls to action",
3615
3623
  icon: icon("mousePointerClick"),
3616
3624
  href: withOrg2("https://ctas.politogyvrm.com/"),
3617
- children: APP_CTAS_CHILDREN.map((c) => ({ label: c.label, icon: icon(c.icon), href: withOrg2(c.href) }))
3625
+ // Every page on the CTAs host belongs to this row (§11.3), including
3626
+ // an open CTA at /cta/<id>.
3627
+ activeOn: [`${CTAS_ORIGIN}/`],
3628
+ children: APP_CTAS_CHILDREN.map((c) => ({ label: c.label, icon: icon(c.icon), href: withOrg2(c.href), activeOn: c.activeOn }))
3618
3629
  },
3619
3630
  {
3620
3631
  label: "Forms",
@@ -3757,6 +3768,36 @@ function isNavItemActive(pathname, href) {
3757
3768
  if (targetPath === "/") return pathname === "/";
3758
3769
  return pathname === targetPath || pathname.startsWith(`${targetPath}/`);
3759
3770
  }
3771
+ function isUnderNavPattern(pathname, pattern) {
3772
+ let targetPath = pattern;
3773
+ let targetSearch = "";
3774
+ if (/^https?:\/\//i.test(pattern)) {
3775
+ if (typeof window === "undefined") return false;
3776
+ try {
3777
+ const u = new URL(pattern);
3778
+ if (u.host !== window.location.host) return false;
3779
+ targetPath = u.pathname;
3780
+ targetSearch = u.search;
3781
+ } catch {
3782
+ return false;
3783
+ }
3784
+ } else {
3785
+ const qi = pattern.indexOf("?");
3786
+ if (qi >= 0) {
3787
+ targetPath = pattern.slice(0, qi) || "/";
3788
+ targetSearch = pattern.slice(qi);
3789
+ }
3790
+ }
3791
+ const underPath = targetPath === "/" || pathname === targetPath || pathname.startsWith(`${targetPath.replace(/\/$/, "")}/`);
3792
+ if (!underPath) return false;
3793
+ const want = new URLSearchParams(targetSearch);
3794
+ for (const k of ACTIVE_IGNORED_PARAMS) want.delete(k);
3795
+ if (Array.from(want).length === 0) return true;
3796
+ if (typeof window === "undefined") return false;
3797
+ const have = new URLSearchParams(window.location.search);
3798
+ for (const [k, v] of want) if (have.get(k) !== v) return false;
3799
+ return true;
3800
+ }
3760
3801
  function groupKeyOf(item, index) {
3761
3802
  return item.href ?? `nav-group-${index}-${item.label}`;
3762
3803
  }
@@ -5422,6 +5463,7 @@ exports.creditsIconState = creditsIconState;
5422
5463
  exports.envChipClasses = envChipClasses;
5423
5464
  exports.isNavItemActive = isNavItemActive;
5424
5465
  exports.isNewPage = isNewPage;
5466
+ exports.isUnderNavPattern = isUnderNavPattern;
5425
5467
  exports.modeIdFromLabel = modeIdFromLabel;
5426
5468
  exports.orgViaLabel = orgViaLabel;
5427
5469
  exports.pageIdentityOf = pageIdentityOf;