@bunnyapp/components 1.0.76 → 1.1.0-beta.1
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/cjs/index.js +881 -536
- package/dist/cjs/src/components/BillingDetails/BillingDetails.d.ts +7 -5
- package/dist/cjs/src/components/PaymentForm/CheckoutFooter.d.ts +2 -2
- package/dist/cjs/src/components/PaymentForm/DemoPay/demoPayUtils.d.ts +2 -2
- package/dist/cjs/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +2 -2
- package/dist/cjs/src/components/PaymentForm/PaymentForm.d.ts +4 -5
- package/dist/cjs/src/components/PaymentForm/PaymentMethodDetails.d.ts +1 -1
- package/dist/cjs/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +2 -2
- package/dist/cjs/src/components/QuotePreviewProvider.d.ts +17 -0
- package/dist/cjs/src/components/Quotes/Quotes.d.ts +6 -6
- package/dist/cjs/src/components/Quotes/Quotes.stories.d.ts +2 -2
- package/dist/cjs/src/components/Signup/PaymentForms.d.ts +9 -1
- package/dist/cjs/src/components/Signup/Signup.d.ts +11 -1
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/PlanPicker.d.ts +0 -5
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/PriceListGrid.d.ts +2 -2
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/PriceListSelector.d.ts +2 -3
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/CheckoutBarSummarySection.d.ts +1 -3
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/EverythingPlanFeatures.d.ts +62 -2
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/FeatureAddons.d.ts +9 -0
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PlanFeatures.d.ts +3 -3
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +2 -2
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerUtils.d.ts +3 -3
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardPriceDescription.d.ts +7 -0
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/priceListCardUtils.d.ts +3 -3
- package/dist/cjs/src/components/Subscriptions/SubscriptionRequests.d.ts +0 -1
- package/dist/cjs/src/components/Subscriptions/SubscriptionsContext.d.ts +0 -3
- package/dist/cjs/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +2 -2
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +1 -1
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +2 -1
- package/dist/cjs/src/components/TaxationForm.d.ts +2 -2
- package/dist/cjs/src/components/Transactions/Transactions.d.ts +5 -5
- package/dist/cjs/src/components/Transactions/TransactionsListContext.d.ts +8 -8
- package/dist/cjs/src/components/Transactions/transactionsList/TransactionDownload.d.ts +2 -2
- package/dist/cjs/src/components/Transactions/transactionsList/TransactionTitle.d.ts +3 -3
- package/dist/cjs/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +4 -4
- package/dist/cjs/src/components/Transactions/transactionsList/TransactionsListMobile.d.ts +3 -3
- package/dist/cjs/src/components/Transactions/transactionsList/utils.d.ts +3 -3
- package/dist/cjs/src/components/icons/Bancontact.d.ts +4 -0
- package/dist/cjs/src/components/icons/IDeal.d.ts +4 -0
- package/dist/cjs/src/components/icons/Sepa.d.ts +4 -0
- package/dist/cjs/src/graphql/QuoteRequests.d.ts +1 -0
- package/dist/cjs/src/graphql/mutations/quoteChargeCreate.d.ts +2 -1
- package/dist/cjs/src/graphql/mutations/quoteChargeDelete.d.ts +7 -0
- package/dist/cjs/src/graphql/mutations/subscriptionTrialConvert.d.ts +7 -0
- package/dist/cjs/src/graphql/queries/getFeatureUsage.d.ts +1 -4
- package/dist/cjs/src/graphql/queries/getFormattedQuote.d.ts +2 -4
- package/dist/cjs/src/graphql/queries/getTransactions.d.ts +2 -2
- package/dist/cjs/src/hooks/quotes/useQuoteUpdateFeatureAddon.d.ts +8 -0
- package/dist/cjs/src/hooks/usePaymentPlugins.d.ts +2 -2
- package/dist/cjs/src/utils/couponUtils.d.ts +2 -0
- package/dist/cjs/src/utils/featureAddonUtils.d.ts +3 -0
- package/dist/esm/index.js +884 -539
- package/dist/esm/src/components/BillingDetails/BillingDetails.d.ts +7 -5
- package/dist/esm/src/components/PaymentForm/CheckoutFooter.d.ts +2 -2
- package/dist/esm/src/components/PaymentForm/DemoPay/demoPayUtils.d.ts +2 -2
- package/dist/esm/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +2 -2
- package/dist/esm/src/components/PaymentForm/PaymentForm.d.ts +4 -5
- package/dist/esm/src/components/PaymentForm/PaymentMethodDetails.d.ts +1 -1
- package/dist/esm/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +2 -2
- package/dist/esm/src/components/QuotePreviewProvider.d.ts +17 -0
- package/dist/esm/src/components/Quotes/Quotes.d.ts +6 -6
- package/dist/esm/src/components/Quotes/Quotes.stories.d.ts +2 -2
- package/dist/esm/src/components/Signup/PaymentForms.d.ts +9 -1
- package/dist/esm/src/components/Signup/Signup.d.ts +11 -1
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/PlanPicker.d.ts +0 -5
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/PriceListGrid.d.ts +2 -2
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/PriceListSelector.d.ts +2 -3
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/CheckoutBarSummarySection.d.ts +1 -3
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/EverythingPlanFeatures.d.ts +62 -2
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/FeatureAddons.d.ts +9 -0
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PlanFeatures.d.ts +3 -3
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +2 -2
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerUtils.d.ts +3 -3
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardPriceDescription.d.ts +7 -0
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/priceListCardUtils.d.ts +3 -3
- package/dist/esm/src/components/Subscriptions/SubscriptionRequests.d.ts +0 -1
- package/dist/esm/src/components/Subscriptions/SubscriptionsContext.d.ts +0 -3
- package/dist/esm/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +2 -2
- package/dist/esm/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +1 -1
- package/dist/esm/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +2 -1
- package/dist/esm/src/components/TaxationForm.d.ts +2 -2
- package/dist/esm/src/components/Transactions/Transactions.d.ts +5 -5
- package/dist/esm/src/components/Transactions/TransactionsListContext.d.ts +8 -8
- package/dist/esm/src/components/Transactions/transactionsList/TransactionDownload.d.ts +2 -2
- package/dist/esm/src/components/Transactions/transactionsList/TransactionTitle.d.ts +3 -3
- package/dist/esm/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +4 -4
- package/dist/esm/src/components/Transactions/transactionsList/TransactionsListMobile.d.ts +3 -3
- package/dist/esm/src/components/Transactions/transactionsList/utils.d.ts +3 -3
- package/dist/esm/src/components/icons/Bancontact.d.ts +4 -0
- package/dist/esm/src/components/icons/IDeal.d.ts +4 -0
- package/dist/esm/src/components/icons/Sepa.d.ts +4 -0
- package/dist/esm/src/graphql/QuoteRequests.d.ts +1 -0
- package/dist/esm/src/graphql/mutations/quoteChargeCreate.d.ts +2 -1
- package/dist/esm/src/graphql/mutations/quoteChargeDelete.d.ts +7 -0
- package/dist/esm/src/graphql/mutations/subscriptionTrialConvert.d.ts +7 -0
- package/dist/esm/src/graphql/queries/getFeatureUsage.d.ts +1 -4
- package/dist/esm/src/graphql/queries/getFormattedQuote.d.ts +2 -4
- package/dist/esm/src/graphql/queries/getTransactions.d.ts +2 -2
- package/dist/esm/src/hooks/quotes/useQuoteUpdateFeatureAddon.d.ts +8 -0
- package/dist/esm/src/hooks/usePaymentPlugins.d.ts +2 -2
- package/dist/esm/src/utils/couponUtils.d.ts +2 -0
- package/dist/esm/src/utils/featureAddonUtils.d.ts +3 -0
- package/dist/index.d.ts +30 -19
- package/package.json +3 -3
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { QuoteCharge } from '@bunnyapp/common';
|
|
1
2
|
type QuoteChangeCreateChargeProps = {
|
|
2
3
|
apiHost: string;
|
|
3
4
|
price?: number;
|
|
@@ -8,5 +9,5 @@ type QuoteChangeCreateChargeProps = {
|
|
|
8
9
|
subscriptionChargeId?: string;
|
|
9
10
|
token?: string;
|
|
10
11
|
};
|
|
11
|
-
declare const quoteChargeCreate: ({ price, priceListChargeId, quantity, quoteChangeId, startDate, subscriptionChargeId, token, apiHost, }: QuoteChangeCreateChargeProps) => Promise<
|
|
12
|
+
declare const quoteChargeCreate: ({ price, priceListChargeId, quantity, quoteChangeId, startDate, subscriptionChargeId, token, apiHost, }: QuoteChangeCreateChargeProps) => Promise<QuoteCharge>;
|
|
12
13
|
export default quoteChargeCreate;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const subscriptionTrialConvert: ({ subscriptionId, paymentMethodId, apiHost, token, }: {
|
|
2
|
+
subscriptionId: string;
|
|
3
|
+
paymentMethodId?: string | undefined;
|
|
4
|
+
apiHost: string;
|
|
5
|
+
token?: string | undefined;
|
|
6
|
+
}) => Promise<any>;
|
|
7
|
+
export default subscriptionTrialConvert;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { FeatureUsage } from '@bunnyapp/common';
|
|
2
|
-
declare const getFeatureUsage: ({ subscriptionChargeId,
|
|
2
|
+
declare const getFeatureUsage: ({ subscriptionChargeId, token, apiHost, }: {
|
|
3
3
|
subscriptionChargeId: string;
|
|
4
|
-
startDate?: string | undefined;
|
|
5
|
-
endDate?: string | undefined;
|
|
6
|
-
dataInterval?: number | undefined;
|
|
7
4
|
token?: string | undefined;
|
|
8
5
|
apiHost: string;
|
|
9
6
|
}) => Promise<FeatureUsage>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
declare const getFormattedQuote: ({ id, token, apiHost, }: {
|
|
3
|
-
id?: string | undefined;
|
|
1
|
+
declare const getFormattedQuote: ({ token, apiHost }: {
|
|
4
2
|
apiHost: string;
|
|
5
3
|
token?: string | undefined;
|
|
6
|
-
}) => Promise<
|
|
4
|
+
}) => Promise<any>;
|
|
7
5
|
export default getFormattedQuote;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const getTransactions: (filter: string, apiHost: string, token?: string) => Promise<
|
|
1
|
+
import { Transaction } from '@bunnyapp/common';
|
|
2
|
+
declare const getTransactions: (filter: string, apiHost: string, token?: string) => Promise<Transaction[]>;
|
|
3
3
|
export default getTransactions;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PriceListCharge } from '@bunnyapp/common';
|
|
2
|
+
export declare const useQuoteUpdateFeatureAddon: (quoteId: string | undefined, featureAddon: PriceListCharge) => {
|
|
3
|
+
handleAddFeatureAddon: () => void;
|
|
4
|
+
handleRemoveFeatureAddon: () => void;
|
|
5
|
+
isPending: boolean;
|
|
6
|
+
isChecked: boolean;
|
|
7
|
+
editingQuoteLoaded: boolean;
|
|
8
|
+
};
|
|
@@ -19,10 +19,10 @@ type PaymentPlugin = {
|
|
|
19
19
|
}[];
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
-
export declare const usePaymentPlugins: ({ apiHost, token,
|
|
22
|
+
export declare const usePaymentPlugins: ({ apiHost, token, accountId, }: {
|
|
23
23
|
apiHost: string;
|
|
24
24
|
token?: string | undefined;
|
|
25
|
-
|
|
25
|
+
accountId?: string | undefined;
|
|
26
26
|
}) => {
|
|
27
27
|
paymentPlugins: PaymentPlugin[];
|
|
28
28
|
isFetched: boolean;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { PriceList, PriceListCharge, Subscription } from '@bunnyapp/common';
|
|
2
|
+
export declare function isAddonPurchased(featureAddon: PriceListCharge, currentSubscription: Subscription | undefined): boolean;
|
|
3
|
+
export declare function priceListHasUnpurchasedFeatureAddons(priceList: PriceList, currentSubscription: Subscription | undefined): boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
import { FormattedInvoice, FormattedQuote,
|
|
3
|
+
import { FormattedInvoice, FormattedQuote, Transaction, Invoice as Invoice$1, Quote as Quote$1, PluginData, TransactionKind, PaymentMethod } from '@bunnyapp/common';
|
|
4
4
|
import { QueryClient } from '@tanstack/react-query';
|
|
5
5
|
import { ThemeConfig } from 'antd';
|
|
6
6
|
import * as react from 'react';
|
|
@@ -33,7 +33,7 @@ declare global {
|
|
|
33
33
|
|
|
34
34
|
declare function Quote({ id, invoiceQuoteViewComponent, onInvoiceDownloadError, onPaymentSuccess, shadow, className, hideDownloadButton, onQuoteLoaded, }: InvoiceQuoteContextProps): react_jsx_runtime.JSX.Element;
|
|
35
35
|
|
|
36
|
-
type TransactionListColumnType =
|
|
36
|
+
type TransactionListColumnType = 'date' | 'title' | 'state' | 'amount' | 'download' | 'accountName';
|
|
37
37
|
|
|
38
38
|
declare function Quotes({ className, columns, filter, filterQuotes, sort, noQuotesMessage, onQuoteClick, quoteComponent, searchBarClassName, shadow, showSearchBar, showTitle, title, style, suppressQuoteDisplay, useModal, }: {
|
|
39
39
|
/** A custom component to render instead of the default invoice component */
|
|
@@ -55,7 +55,7 @@ declare function Quotes({ className, columns, filter, filterQuotes, sort, noQuot
|
|
|
55
55
|
/** A custom class name to apply to the search bar */
|
|
56
56
|
searchBarClassName?: string;
|
|
57
57
|
/** A function to call when a quote is clicked */
|
|
58
|
-
onQuoteClick?: (quote:
|
|
58
|
+
onQuoteClick?: (quote: Transaction) => void;
|
|
59
59
|
/** Whether to hide the display showing the quote */
|
|
60
60
|
suppressQuoteDisplay?: boolean;
|
|
61
61
|
/** A custom style to apply to the component */
|
|
@@ -63,24 +63,23 @@ declare function Quotes({ className, columns, filter, filterQuotes, sort, noQuot
|
|
|
63
63
|
/** A filter to apply to the quotes. Docs on filter: https://docs.bunny.com/developer/getting-started/using-filters-in-queries */
|
|
64
64
|
filter?: string;
|
|
65
65
|
/** A function to filter the quotes. Runs on the client side. */
|
|
66
|
-
filterQuotes?: (quote:
|
|
66
|
+
filterQuotes?: (quote: Transaction) => boolean;
|
|
67
67
|
/** A function to sort the quotes. Runs on the client side. */
|
|
68
|
-
sort?: (a:
|
|
68
|
+
sort?: (a: Transaction, b: Transaction) => number;
|
|
69
69
|
/** Message to display when there are no quotes */
|
|
70
70
|
noQuotesMessage?: string;
|
|
71
71
|
}): react_jsx_runtime.JSX.Element;
|
|
72
72
|
|
|
73
|
-
declare const PaymentForm: ({ invoice, onFail, onPaymentSuccess, onPaymentHoldSuccess, quote, accountId, onSavePaymentMethod, onRemovePaymentMethod, onSetDefaultPaymentMethod,
|
|
74
|
-
invoice?: FormattedInvoice | undefined;
|
|
73
|
+
declare const PaymentForm: ({ invoice, onFail, onPaymentSuccess, onPaymentHoldSuccess, quote, accountId, onSavePaymentMethod, onRemovePaymentMethod, onSetDefaultPaymentMethod, overrideToken, customCheckoutFunction, currencyId: currencyIdFromProps, paymentHoldOptions, }: {
|
|
74
|
+
invoice?: FormattedInvoice | Invoice$1 | undefined;
|
|
75
75
|
quote?: Quote$1 | undefined;
|
|
76
76
|
onFail: (error: any) => void;
|
|
77
77
|
onPaymentSuccess?: (() => void) | undefined;
|
|
78
78
|
onPaymentHoldSuccess?: ((response: any) => void) | undefined;
|
|
79
|
-
onSavePaymentMethod?: (() => void) | undefined;
|
|
79
|
+
onSavePaymentMethod?: ((response: any) => void) | undefined;
|
|
80
80
|
onRemovePaymentMethod?: (() => void) | undefined;
|
|
81
81
|
onSetDefaultPaymentMethod?: (() => void) | undefined;
|
|
82
82
|
accountId?: string | undefined;
|
|
83
|
-
entityId?: string | undefined;
|
|
84
83
|
overrideToken?: string | undefined;
|
|
85
84
|
customCheckoutFunction?: ((plugin: PluginData | undefined) => Promise<any>) | undefined;
|
|
86
85
|
currencyId?: string | undefined;
|
|
@@ -90,7 +89,7 @@ declare const PaymentForm: ({ invoice, onFail, onPaymentSuccess, onPaymentHoldSu
|
|
|
90
89
|
} | undefined;
|
|
91
90
|
}) => react_jsx_runtime.JSX.Element;
|
|
92
91
|
|
|
93
|
-
declare function Signup({ companyName, priceListCode, returnUrl, couponCode, className, shadow, style, }: {
|
|
92
|
+
declare function Signup({ companyName, priceListCode, returnUrl, couponCode, className, shadow, style, defaultFirstName, defaultLastName, defaultEmail, defaultCompanyName, defaultBillingCountry, }: {
|
|
94
93
|
/** The company name to display on the signup page */
|
|
95
94
|
companyName: string;
|
|
96
95
|
/** The price list code to use for the signup */
|
|
@@ -105,6 +104,16 @@ declare function Signup({ companyName, priceListCode, returnUrl, couponCode, cla
|
|
|
105
104
|
shadow?: ShadowType;
|
|
106
105
|
/** A custom style to apply to the component */
|
|
107
106
|
style?: React.CSSProperties;
|
|
107
|
+
/** The default first name to use for the signup */
|
|
108
|
+
defaultFirstName?: string;
|
|
109
|
+
/** The default last name to use for the signup */
|
|
110
|
+
defaultLastName?: string;
|
|
111
|
+
/** The default email to use for the signup */
|
|
112
|
+
defaultEmail?: string;
|
|
113
|
+
/** The default company name to use for the signup */
|
|
114
|
+
defaultCompanyName?: string;
|
|
115
|
+
/** The default billing country to use for the signup */
|
|
116
|
+
defaultBillingCountry?: string;
|
|
108
117
|
}): react_jsx_runtime.JSX.Element;
|
|
109
118
|
|
|
110
119
|
declare function BunnyProvider({ children, darkMode, queryClient, apiHost, token, onTokenExpired, configProviderProps, }: {
|
|
@@ -117,7 +126,7 @@ declare function BunnyProvider({ children, darkMode, queryClient, apiHost, token
|
|
|
117
126
|
configProviderProps?: ThemeConfig | undefined;
|
|
118
127
|
}): react_jsx_runtime.JSX.Element;
|
|
119
128
|
|
|
120
|
-
type TransactionDateType =
|
|
129
|
+
type TransactionDateType = 'createdAt' | 'issuedAt' | 'dueAt';
|
|
121
130
|
|
|
122
131
|
declare function Transactions({ transactionComponent, showSearchBar, showTitle, title, columns, className, shadow, searchBarClassName, useModal, onTransactionClick, suppressTransactionDisplay, kindsToShow, style, filter, noTransactionsMessage, filterTransactions, sortTransactions, transactionDateType, }: {
|
|
123
132
|
/** A custom component to render instead of the default invoice component */
|
|
@@ -139,7 +148,7 @@ declare function Transactions({ transactionComponent, showSearchBar, showTitle,
|
|
|
139
148
|
/** A custom class name to apply to the search bar */
|
|
140
149
|
searchBarClassName?: string;
|
|
141
150
|
/** A function to call when a transaction is clicked */
|
|
142
|
-
onTransactionClick?: (transaction:
|
|
151
|
+
onTransactionClick?: (transaction: Transaction) => void;
|
|
143
152
|
/** Whether to hide the display showing the transaction */
|
|
144
153
|
suppressTransactionDisplay?: boolean;
|
|
145
154
|
/** The kinds of transactions to show */
|
|
@@ -156,9 +165,9 @@ declare function Transactions({ transactionComponent, showSearchBar, showTitle,
|
|
|
156
165
|
* Filtering is applied on the client side.
|
|
157
166
|
* This is useful to have more control over the filtering logic.
|
|
158
167
|
*/
|
|
159
|
-
filterTransactions?: (transaction:
|
|
168
|
+
filterTransactions?: (transaction: Transaction) => boolean;
|
|
160
169
|
/** A function to sort the transactions. Runs on the client side. */
|
|
161
|
-
sortTransactions?: (transactionA:
|
|
170
|
+
sortTransactions?: (transactionA: Transaction, transactionB: Transaction) => number;
|
|
162
171
|
/** The type of date to display for transactions if applicable. Payments will always only show createdAt date. */
|
|
163
172
|
transactionDateType?: TransactionDateType;
|
|
164
173
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -180,16 +189,18 @@ declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPrev
|
|
|
180
189
|
hideExpiredToggle?: boolean | undefined;
|
|
181
190
|
}) => react_jsx_runtime.JSX.Element;
|
|
182
191
|
|
|
183
|
-
declare const BillingDetails: ({
|
|
184
|
-
isCardEnabled?: boolean | undefined;
|
|
185
|
-
shadow?: ShadowType | undefined;
|
|
192
|
+
declare const BillingDetails: ({ className, countryListFilter, hideBillingDetailsForm, hidePaymentMethodForm, isCardEnabled, isUpgradeFromTrial, shadow, onSavePaymentMethod, }: {
|
|
186
193
|
className?: string | undefined;
|
|
187
|
-
hidePaymentMethodForm?: boolean | undefined;
|
|
188
|
-
hideBillingDetailsForm?: boolean | undefined;
|
|
189
194
|
countryListFilter?: ((country: {
|
|
190
195
|
value: string;
|
|
191
196
|
label: string;
|
|
192
197
|
}) => boolean) | undefined;
|
|
198
|
+
hideBillingDetailsForm?: boolean | undefined;
|
|
199
|
+
hidePaymentMethodForm?: boolean | undefined;
|
|
200
|
+
isCardEnabled?: boolean | undefined;
|
|
201
|
+
isUpgradeFromTrial?: boolean | undefined;
|
|
202
|
+
shadow?: ShadowType | undefined;
|
|
203
|
+
onSavePaymentMethod?: ((paymentMethodData?: any) => void) | undefined;
|
|
193
204
|
}) => react_jsx_runtime.JSX.Element;
|
|
194
205
|
|
|
195
206
|
declare const Footer: ({ className }: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bunnyapp/components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.1.0-beta.1",
|
|
4
4
|
"description": "Components from the Bunny portal to embed Bunny UI functionality into your application.",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -64,11 +64,13 @@
|
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"@ant-design/icons": "^5.6.1",
|
|
67
|
+
"@bunnyapp/common": "^1.0.66-beta.19",
|
|
67
68
|
"@fortawesome/fontawesome-svg-core": "^6.7.2",
|
|
68
69
|
"@fortawesome/free-brands-svg-icons": "^6.7.2",
|
|
69
70
|
"@fortawesome/free-regular-svg-icons": "^6.7.2",
|
|
70
71
|
"@fortawesome/free-solid-svg-icons": "^6.7.2",
|
|
71
72
|
"@fortawesome/react-fontawesome": "^0.2.2",
|
|
73
|
+
"@pdf-viewer/react": "^1.7.2",
|
|
72
74
|
"@stripe/react-stripe-js": "^3.0.0",
|
|
73
75
|
"@stripe/stripe-js": "^5.2.0",
|
|
74
76
|
"@tanstack/react-query": "^5.59.20",
|
|
@@ -90,8 +92,6 @@
|
|
|
90
92
|
]
|
|
91
93
|
},
|
|
92
94
|
"dependencies": {
|
|
93
|
-
"@bunnyapp/common": "^1.0.66-beta.10",
|
|
94
|
-
"@pdf-viewer/react": "^1.7.2",
|
|
95
95
|
"msw-storybook-addon": "^2.0.4"
|
|
96
96
|
}
|
|
97
97
|
}
|