@bpinternal/billing-ui 0.4.0 → 0.5.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 -1
- package/dist/index.js +822 -797
- package/dist/index.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -147,6 +147,8 @@ export declare type BillingClient = Pick<billing.Client, 'listPlans' | 'listAddo
|
|
|
147
147
|
*/
|
|
148
148
|
Partial<Pick<Client, 'breakDownWorkspaceUsageByBot' | 'listBots'>>;
|
|
149
149
|
|
|
150
|
+
export declare type BillingColorScheme = 'default' | 'neutral';
|
|
151
|
+
|
|
150
152
|
declare type BillingContextValue = {
|
|
151
153
|
client: BillingClient;
|
|
152
154
|
queryClient: QueryClient;
|
|
@@ -156,6 +158,7 @@ declare type BillingContextValue = {
|
|
|
156
158
|
email?: string;
|
|
157
159
|
locale: SupportedLocale_2;
|
|
158
160
|
isDark: boolean;
|
|
161
|
+
colorScheme: BillingColorScheme;
|
|
159
162
|
toast: (toast: BillingToast) => void;
|
|
160
163
|
analytics: BillingAnalyticsClient;
|
|
161
164
|
featureLabels?: Record<string, (quantity: number) => string>;
|
|
@@ -190,7 +193,7 @@ export declare const billingKeys: {
|
|
|
190
193
|
usageByBot: (scope: string, type: string, period: string) => readonly ["bpb", string, "usage-by-bot", string, string];
|
|
191
194
|
};
|
|
192
195
|
|
|
193
|
-
export declare const BillingProvider: ({ client, stripePublishableKey, email, locale, theme, onToast, analytics, featureLabels, billingVersion, workspaceId, persist, manageBillingUrl, onBillingChange, refreshInterval, children, }: BillingProviderProps) => JSX.Element;
|
|
196
|
+
export declare const BillingProvider: ({ client, stripePublishableKey, email, locale, theme, colorScheme, onToast, analytics, featureLabels, billingVersion, workspaceId, persist, manageBillingUrl, onBillingChange, refreshInterval, children, }: BillingProviderProps) => JSX.Element;
|
|
194
197
|
|
|
195
198
|
export declare type BillingProviderProps = {
|
|
196
199
|
/** Billing engine client — `@botpress/client`'s `billing.Client` or any compatible adapter */
|
|
@@ -201,6 +204,7 @@ export declare type BillingProviderProps = {
|
|
|
201
204
|
email?: string;
|
|
202
205
|
locale?: SupportedLocale_2;
|
|
203
206
|
theme?: BillingTheme;
|
|
207
|
+
colorScheme?: BillingColorScheme;
|
|
204
208
|
onToast?: (toast: BillingToast) => void;
|
|
205
209
|
/**
|
|
206
210
|
* Analytics sink the library captures billing-funnel events into. Pass a
|