@bpinternal/billing-ui 0.8.2 → 0.8.3

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/index.d.ts CHANGED
@@ -878,7 +878,7 @@ export declare const USAGE_METRICS: {
878
878
  * by default), on billing v4. Renders nothing otherwise (and on legacy billing),
879
879
  * so it's safe to mount unconditionally on any page.
880
880
  */
881
- export declare const UsageBanner: ({ position, threshold, onUpgrade, dismissible, ctaLabel, period, className, }: UsageBannerProps) => JSX.Element | null;
881
+ export declare const UsageBanner: ({ position, threshold, onUpgrade, dismissible, cta, ctaLabel, period, className, }: UsageBannerProps) => JSX.Element | null;
882
882
 
883
883
  export declare type UsageBannerProps = {
884
884
  /**
@@ -901,7 +901,13 @@ export declare type UsageBannerProps = {
901
901
  * different metric crosses the threshold. Default true.
902
902
  */
903
903
  dismissible?: boolean;
904
- /** CTA label. Default "Upgrade plan". */
904
+ /**
905
+ * Which built-in (localized) CTA to show: 'upgrade' (default) → "Upgrade plan",
906
+ * for banners that open the upgrade flow; 'manage' → "Manage plan", for banners
907
+ * that navigate to billing management.
908
+ */
909
+ cta?: 'upgrade' | 'manage';
910
+ /** Raw CTA label override — takes precedence over `cta` and skips localization. */
905
911
  ctaLabel?: string;
906
912
  /** Period (any datetime in the billing month) to evaluate; defaults to current month. */
907
913
  period?: string;