@bpinternal/billing-ui 0.5.1 → 0.7.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/index.d.ts CHANGED
@@ -294,9 +294,9 @@ export declare const CheckIcon: ({ size, ...props }: IconProps) => JSX.Element;
294
294
  * "Configure your plan" — checkout (plan interval, payment method via Stripe
295
295
  * CardElement, billing address, business VAT, proration preview + subscribe).
296
296
  *
297
- * A Stripe SetupIntent is created every time the dialog opens and the whole
298
- * body mounts inside one <Elements> tree so CardElement, AddressElement and
299
- * the subscribe button share the same Stripe context.
297
+ * The whole body mounts inside one <Elements> tree so CardElement, AddressElement and
298
+ * the subscribe button share the same Stripe context. The SetupIntent itself is only
299
+ * requested from CheckoutBody at Subscribe time, not eagerly on open.
300
300
  */
301
301
  export declare const CheckoutDialog: ({ open, onOpenChange, planId, interval, onBack, onSuccess }: CheckoutDialogProps) => JSX.Element;
302
302
 
@@ -675,8 +675,9 @@ export declare const PLAN_ORDER: PlanKind[];
675
675
  /**
676
676
  * Full-width current-plan hero with per-tier color identity (accent rail + name,
677
677
  * soft tinted surface). Surfaces the plan name, total monthly/annual cost
678
- * (plan + add-ons), conversation allowance, the billing period and when it
679
- * renews, plus a manage CTA. On legacy billing it deep-links to the Dashboard.
678
+ * (plan + add-ons), conversation allowance, the billing cadence and when it
679
+ * renews (paid, self-serve plans only), plus a manage CTA. On legacy billing
680
+ * it deep-links to the Dashboard.
680
681
  */
681
682
  export declare const PlanBanner: ({ onManage, className }: PlanBannerProps) => JSX.Element;
682
683
 
@@ -918,7 +919,7 @@ export declare type UsageBreakdownEntry = Awaited<ReturnType<Client['breakDownWo
918
919
  * Conversations / Storage / AI usage. Data comes from getWorkspaceUsages — the
919
920
  * UI invents no numbers. A bare-minimum dashboard, not a deep analytics view.
920
921
  */
921
- export declare const UsageDashboard: ({ period, showPeriodSelector, periodMonths, className, }: UsageDashboardProps) => JSX.Element;
922
+ export declare const UsageDashboard: ({ period, showPeriodSelector, periodMonths, className, onIncreaseLimits, }: UsageDashboardProps) => JSX.Element;
922
923
 
923
924
  export declare type UsageDashboardProps = {
924
925
  /** Any datetime within the billing month to report; defaults to the current month. */
@@ -928,6 +929,7 @@ export declare type UsageDashboardProps = {
928
929
  /** How many recent months the period selector offers (incl. current). Default 12. */
929
930
  periodMonths?: number;
930
931
  className?: string;
932
+ onIncreaseLimits?: () => void;
931
933
  };
932
934
 
933
935
  export declare type UsageEntry = WorkspaceUsages[string];