@bpinternal/billing-ui 0.5.0 → 0.6.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 +5 -3
- package/dist/index.js +1284 -1232
- package/dist/index.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -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
|
|
679
|
-
* renews, plus a manage CTA. On legacy billing
|
|
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];
|