@the-portland-company/shell 0.43.0 → 0.44.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
@@ -611,6 +611,19 @@ type NavTabStripProps = {
611
611
  * `var(--tab-content-bg)`.
612
612
  */
613
613
  declare function NavTabStrip({ tabs, 'aria-label': ariaLabel, linkComponent, className, children, }: NavTabStripProps): react_jsx_runtime.JSX.Element;
614
+ /**
615
+ * sessionStorage key holding the Beta-banner dismissal. sessionStorage — not
616
+ * localStorage — so the dismissal lasts only for the browser session; and it is
617
+ * additionally cleared on sign-out (see `clearBetaBannerDismissal`, called from
618
+ * the chrome frame) so a fresh LOGIN always re-shows the notice.
619
+ */
620
+ declare const BETA_BANNER_DISMISS_KEY = "politogy_beta_banner_dismissed";
621
+ /**
622
+ * Re-arm the Beta banner. The chrome frame calls this on sign-out so the notice
623
+ * reappears at the next login rather than staying hidden across the boundary
624
+ * (sessionStorage survives an in-tab logout→login round trip on its own).
625
+ */
626
+ declare function clearBetaBannerDismissal(): void;
614
627
  type NavBetaBannerProps = {
615
628
  /** Leading sentence(s) before the link. Defaults to the standard Beta copy. */
616
629
  text?: string;
@@ -618,8 +631,13 @@ type NavBetaBannerProps = {
618
631
  linkLabel?: string;
619
632
  /** Terms & Conditions URL (opens in a new tab). Defaults to the app T&C page. */
620
633
  href?: string;
634
+ /**
635
+ * Show a dismiss (×) button that hides the banner for the rest of the browser
636
+ * session. Cleared on sign-out, so it returns at the next login. Default true.
637
+ */
638
+ dismissible?: boolean;
621
639
  };
622
- declare function NavBetaBanner({ text, linkLabel, href }: NavBetaBannerProps): react_jsx_runtime.JSX.Element;
640
+ declare function NavBetaBanner({ text, linkLabel, href, dismissible }: NavBetaBannerProps): react_jsx_runtime.JSX.Element | null;
623
641
  type NavAppShellProps = {
624
642
  sidebar: NavSidebarProps;
625
643
  topBar: NavTopBarProps;
@@ -647,4 +665,4 @@ type NavAppShellProps = {
647
665
  };
648
666
  declare function NavAppShell({ sidebar, topBar, betaBanner, contentWrapper, children, }: NavAppShellProps): react_jsx_runtime.JSX.Element;
649
667
 
650
- export { CAMPAIGN_FEATURE_AVAILABILITY, CORE_APP_ORIGIN, CORE_BILLING_PATH, type CampaignFeatureAvailability, type ChromeMe, type ChromeNotificationAlert, type ChromeNotificationImport, type ChromeNotificationQuarantine, type ChromeNotificationReply, type ChromeNotificationsPayload, type ChromeOrgSummary, type CommunicationsFuelStatus, FuelAction, type FuelChannelStatus, NavAppShell, type NavAppShellProps, NavBetaBanner, type NavBetaBannerProps, type NavBrand, type NavBreadcrumb, type NavChromeFetcher, NavChromeProvider, NavDisplayAction, type NavDisplayMode, type NavFooter, type NavFooterLink, type NavIcon, type NavItem, type NavLinkComponent, type NavLinkProps, type NavLinkedAccount, type NavMode, type NavModeOption, type NavOrg, type NavOrgOption, type NavRoleBadge, NavSidebar, type NavSidebarProps, type NavTab, NavTabStrip, type NavTabStripProps, NavThemeControl, NavTopBar, type NavTopBarAction, type NavTopBarProps, type NavUser, type NavUserMenu, NotificationsAction, type StandardNavIconKey, type StandardNavMode, type StandardNavOptions, SupportAction, type ThemePreference, TopBarCountBadge, TopBarPanelArrow, TopBarPopover, TopBarTooltip, TopBarWidgetSlot, envChipClasses, isNavItemActive, resolveOrgLogoUrl, standardPolitogyNav, topBarIconButtonClass, useChromeMe, useChromeOrgs, useNavChromeFetcher, useThemePreference };
668
+ export { BETA_BANNER_DISMISS_KEY, CAMPAIGN_FEATURE_AVAILABILITY, CORE_APP_ORIGIN, CORE_BILLING_PATH, type CampaignFeatureAvailability, type ChromeMe, type ChromeNotificationAlert, type ChromeNotificationImport, type ChromeNotificationQuarantine, type ChromeNotificationReply, type ChromeNotificationsPayload, type ChromeOrgSummary, type CommunicationsFuelStatus, FuelAction, type FuelChannelStatus, NavAppShell, type NavAppShellProps, NavBetaBanner, type NavBetaBannerProps, type NavBrand, type NavBreadcrumb, type NavChromeFetcher, NavChromeProvider, NavDisplayAction, type NavDisplayMode, type NavFooter, type NavFooterLink, type NavIcon, type NavItem, type NavLinkComponent, type NavLinkProps, type NavLinkedAccount, type NavMode, type NavModeOption, type NavOrg, type NavOrgOption, type NavRoleBadge, NavSidebar, type NavSidebarProps, type NavTab, NavTabStrip, type NavTabStripProps, NavThemeControl, NavTopBar, type NavTopBarAction, type NavTopBarProps, type NavUser, type NavUserMenu, NotificationsAction, type StandardNavIconKey, type StandardNavMode, type StandardNavOptions, SupportAction, type ThemePreference, TopBarCountBadge, TopBarPanelArrow, TopBarPopover, TopBarTooltip, TopBarWidgetSlot, clearBetaBannerDismissal, envChipClasses, isNavItemActive, resolveOrgLogoUrl, standardPolitogyNav, topBarIconButtonClass, useChromeMe, useChromeOrgs, useNavChromeFetcher, useThemePreference };
package/dist/native.d.ts CHANGED
@@ -611,6 +611,19 @@ type NavTabStripProps = {
611
611
  * `var(--tab-content-bg)`.
612
612
  */
613
613
  declare function NavTabStrip({ tabs, 'aria-label': ariaLabel, linkComponent, className, children, }: NavTabStripProps): react_jsx_runtime.JSX.Element;
614
+ /**
615
+ * sessionStorage key holding the Beta-banner dismissal. sessionStorage — not
616
+ * localStorage — so the dismissal lasts only for the browser session; and it is
617
+ * additionally cleared on sign-out (see `clearBetaBannerDismissal`, called from
618
+ * the chrome frame) so a fresh LOGIN always re-shows the notice.
619
+ */
620
+ declare const BETA_BANNER_DISMISS_KEY = "politogy_beta_banner_dismissed";
621
+ /**
622
+ * Re-arm the Beta banner. The chrome frame calls this on sign-out so the notice
623
+ * reappears at the next login rather than staying hidden across the boundary
624
+ * (sessionStorage survives an in-tab logout→login round trip on its own).
625
+ */
626
+ declare function clearBetaBannerDismissal(): void;
614
627
  type NavBetaBannerProps = {
615
628
  /** Leading sentence(s) before the link. Defaults to the standard Beta copy. */
616
629
  text?: string;
@@ -618,8 +631,13 @@ type NavBetaBannerProps = {
618
631
  linkLabel?: string;
619
632
  /** Terms & Conditions URL (opens in a new tab). Defaults to the app T&C page. */
620
633
  href?: string;
634
+ /**
635
+ * Show a dismiss (×) button that hides the banner for the rest of the browser
636
+ * session. Cleared on sign-out, so it returns at the next login. Default true.
637
+ */
638
+ dismissible?: boolean;
621
639
  };
622
- declare function NavBetaBanner({ text, linkLabel, href }: NavBetaBannerProps): react_jsx_runtime.JSX.Element;
640
+ declare function NavBetaBanner({ text, linkLabel, href, dismissible }: NavBetaBannerProps): react_jsx_runtime.JSX.Element | null;
623
641
  type NavAppShellProps = {
624
642
  sidebar: NavSidebarProps;
625
643
  topBar: NavTopBarProps;
@@ -647,4 +665,4 @@ type NavAppShellProps = {
647
665
  };
648
666
  declare function NavAppShell({ sidebar, topBar, betaBanner, contentWrapper, children, }: NavAppShellProps): react_jsx_runtime.JSX.Element;
649
667
 
650
- export { CAMPAIGN_FEATURE_AVAILABILITY, CORE_APP_ORIGIN, CORE_BILLING_PATH, type CampaignFeatureAvailability, type ChromeMe, type ChromeNotificationAlert, type ChromeNotificationImport, type ChromeNotificationQuarantine, type ChromeNotificationReply, type ChromeNotificationsPayload, type ChromeOrgSummary, type CommunicationsFuelStatus, FuelAction, type FuelChannelStatus, NavAppShell, type NavAppShellProps, NavBetaBanner, type NavBetaBannerProps, type NavBrand, type NavBreadcrumb, type NavChromeFetcher, NavChromeProvider, NavDisplayAction, type NavDisplayMode, type NavFooter, type NavFooterLink, type NavIcon, type NavItem, type NavLinkComponent, type NavLinkProps, type NavLinkedAccount, type NavMode, type NavModeOption, type NavOrg, type NavOrgOption, type NavRoleBadge, NavSidebar, type NavSidebarProps, type NavTab, NavTabStrip, type NavTabStripProps, NavThemeControl, NavTopBar, type NavTopBarAction, type NavTopBarProps, type NavUser, type NavUserMenu, NotificationsAction, type StandardNavIconKey, type StandardNavMode, type StandardNavOptions, SupportAction, type ThemePreference, TopBarCountBadge, TopBarPanelArrow, TopBarPopover, TopBarTooltip, TopBarWidgetSlot, envChipClasses, isNavItemActive, resolveOrgLogoUrl, standardPolitogyNav, topBarIconButtonClass, useChromeMe, useChromeOrgs, useNavChromeFetcher, useThemePreference };
668
+ export { BETA_BANNER_DISMISS_KEY, CAMPAIGN_FEATURE_AVAILABILITY, CORE_APP_ORIGIN, CORE_BILLING_PATH, type CampaignFeatureAvailability, type ChromeMe, type ChromeNotificationAlert, type ChromeNotificationImport, type ChromeNotificationQuarantine, type ChromeNotificationReply, type ChromeNotificationsPayload, type ChromeOrgSummary, type CommunicationsFuelStatus, FuelAction, type FuelChannelStatus, NavAppShell, type NavAppShellProps, NavBetaBanner, type NavBetaBannerProps, type NavBrand, type NavBreadcrumb, type NavChromeFetcher, NavChromeProvider, NavDisplayAction, type NavDisplayMode, type NavFooter, type NavFooterLink, type NavIcon, type NavItem, type NavLinkComponent, type NavLinkProps, type NavLinkedAccount, type NavMode, type NavModeOption, type NavOrg, type NavOrgOption, type NavRoleBadge, NavSidebar, type NavSidebarProps, type NavTab, NavTabStrip, type NavTabStripProps, NavThemeControl, NavTopBar, type NavTopBarAction, type NavTopBarProps, type NavUser, type NavUserMenu, NotificationsAction, type StandardNavIconKey, type StandardNavMode, type StandardNavOptions, SupportAction, type ThemePreference, TopBarCountBadge, TopBarPanelArrow, TopBarPopover, TopBarTooltip, TopBarWidgetSlot, clearBetaBannerDismissal, envChipClasses, isNavItemActive, resolveOrgLogoUrl, standardPolitogyNav, topBarIconButtonClass, useChromeMe, useChromeOrgs, useNavChromeFetcher, useThemePreference };
package/dist/native.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- export { CAMPAIGN_FEATURE_AVAILABILITY, CORE_APP_ORIGIN, CORE_BILLING_PATH, FuelAction, NavAppShell, NavBetaBanner, NavChromeProvider, NavDisplayAction, NavSidebar, NavTabStrip, NavThemeControl, NavTopBar, NotificationsAction, SupportAction, TopBarCountBadge, TopBarPanelArrow, TopBarPopover, TopBarTooltip, TopBarWidgetSlot, envChipClasses, isNavItemActive, resolveOrgLogoUrl, standardPolitogyNav, topBarIconButtonClass, useChromeMe, useChromeOrgs, useNavChromeFetcher, useThemePreference } from './chunk-VAFYN74K.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, SupportAction, TopBarCountBadge, TopBarPanelArrow, TopBarPopover, TopBarTooltip, TopBarWidgetSlot, clearBetaBannerDismissal, envChipClasses, isNavItemActive, resolveOrgLogoUrl, standardPolitogyNav, topBarIconButtonClass, useChromeMe, useChromeOrgs, useNavChromeFetcher, useThemePreference } from './chunk-HCQXBR2R.js';
3
3
  import './chunk-U4RZPZET.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.43.0",
3
+ "version": "0.44.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,