@bpinternal/billing-ui 0.23.0 → 0.24.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 +4 -4
- package/dist/index.js +2337 -2333
- package/dist/index.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -29,11 +29,11 @@ export declare type Addon = Awaited<ReturnType<BillingClient['listAddons']>>[num
|
|
|
29
29
|
export declare function addonDisplayName(name: string): string;
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
* "Now → New" resource totals
|
|
33
|
-
*
|
|
34
|
-
*
|
|
32
|
+
* "Now → New" resource totals: plan base + add-ons owned now (`currentQuantities`) vs. plan base +
|
|
33
|
+
* the selected add-on quantities (`quantities`). One row per resource an add-on grants, even when
|
|
34
|
+
* unchanged (e.g. reverting a scheduled downgrade).
|
|
35
35
|
*/
|
|
36
|
-
export declare function addonLimitsPreview(plan: Plan, addons: Addon[] | undefined, quantities: Record<string, number>): LimitPreviewRow[];
|
|
36
|
+
export declare function addonLimitsPreview(plan: Plan, addons: Addon[] | undefined, quantities: Record<string, number>, currentQuantities?: Record<string, number>): LimitPreviewRow[];
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
* Add-on price for a given plan. Smaug keys add-on prices by plan id
|