@bpinternal/billing-ui 0.2.0 → 0.3.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 +16 -1
- package/dist/index.js +1811 -1818
- package/dist/index.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { billing } from '@botpress/client';
|
|
|
3
3
|
import { ButtonHTMLAttributes } from 'react';
|
|
4
4
|
import { ClassValue } from 'clsx';
|
|
5
5
|
import { Client } from '@botpress/client';
|
|
6
|
+
import { ComponentType } from 'react';
|
|
6
7
|
import { CSSProperties } from 'react';
|
|
7
8
|
import { InputHTMLAttributes } from 'react';
|
|
8
9
|
import { JSX } from 'react/jsx-runtime';
|
|
@@ -88,6 +89,18 @@ export declare const BILLING_EVENTS: {
|
|
|
88
89
|
readonly UPGRADE_CTA_CLICKED: "billing_upgrade_cta_clicked";
|
|
89
90
|
};
|
|
90
91
|
|
|
92
|
+
export declare const BillingActionCard: ({ Icon, title, description, onClick, className }: BillingActionCardProps) => JSX.Element;
|
|
93
|
+
|
|
94
|
+
export declare type BillingActionCardProps = {
|
|
95
|
+
Icon: ComponentType<SVGProps<SVGSVGElement> & {
|
|
96
|
+
size?: number;
|
|
97
|
+
}>;
|
|
98
|
+
title: ReactNode;
|
|
99
|
+
description: ReactNode;
|
|
100
|
+
onClick: () => void;
|
|
101
|
+
className?: string;
|
|
102
|
+
};
|
|
103
|
+
|
|
91
104
|
export declare type BillingAddress = {
|
|
92
105
|
lineOne: string;
|
|
93
106
|
lineTwo?: string;
|
|
@@ -461,12 +474,14 @@ export declare const LockIcon: ({ size, ...props }: IconProps) => JSX.Element;
|
|
|
461
474
|
* first), totals computed client-side, committed as absolute quantities via
|
|
462
475
|
* setAddons — 0 removes an add-on. No plan change involved.
|
|
463
476
|
*/
|
|
464
|
-
export declare const ManageAddonsDialog: ({ open, onOpenChange, onSuccess }: ManageAddonsDialogProps) => JSX.Element;
|
|
477
|
+
export declare const ManageAddonsDialog: ({ open, onOpenChange, onSuccess, onUpgrade }: ManageAddonsDialogProps) => JSX.Element;
|
|
465
478
|
|
|
466
479
|
export declare type ManageAddonsDialogProps = {
|
|
467
480
|
open: boolean;
|
|
468
481
|
onOpenChange: (open: boolean) => void;
|
|
469
482
|
onSuccess?: () => void;
|
|
483
|
+
/** Called when the user clicks "Upgrade plan" from the add-ons-unavailable state. */
|
|
484
|
+
onUpgrade?: () => void;
|
|
470
485
|
};
|
|
471
486
|
|
|
472
487
|
export declare const MessageIcon: ({ size, ...props }: IconProps) => JSX.Element;
|