@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.
Files changed (104) hide show
  1. package/dist/cjs/index.js +881 -536
  2. package/dist/cjs/src/components/BillingDetails/BillingDetails.d.ts +7 -5
  3. package/dist/cjs/src/components/PaymentForm/CheckoutFooter.d.ts +2 -2
  4. package/dist/cjs/src/components/PaymentForm/DemoPay/demoPayUtils.d.ts +2 -2
  5. package/dist/cjs/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +2 -2
  6. package/dist/cjs/src/components/PaymentForm/PaymentForm.d.ts +4 -5
  7. package/dist/cjs/src/components/PaymentForm/PaymentMethodDetails.d.ts +1 -1
  8. package/dist/cjs/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +2 -2
  9. package/dist/cjs/src/components/QuotePreviewProvider.d.ts +17 -0
  10. package/dist/cjs/src/components/Quotes/Quotes.d.ts +6 -6
  11. package/dist/cjs/src/components/Quotes/Quotes.stories.d.ts +2 -2
  12. package/dist/cjs/src/components/Signup/PaymentForms.d.ts +9 -1
  13. package/dist/cjs/src/components/Signup/Signup.d.ts +11 -1
  14. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/PlanPicker.d.ts +0 -5
  15. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/PriceListGrid.d.ts +2 -2
  16. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/PriceListSelector.d.ts +2 -3
  17. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/CheckoutBarSummarySection.d.ts +1 -3
  18. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/EverythingPlanFeatures.d.ts +62 -2
  19. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/FeatureAddons.d.ts +9 -0
  20. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PlanFeatures.d.ts +3 -3
  21. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +2 -2
  22. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerUtils.d.ts +3 -3
  23. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardPriceDescription.d.ts +7 -0
  24. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/priceListCardUtils.d.ts +3 -3
  25. package/dist/cjs/src/components/Subscriptions/SubscriptionRequests.d.ts +0 -1
  26. package/dist/cjs/src/components/Subscriptions/SubscriptionsContext.d.ts +0 -3
  27. package/dist/cjs/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +2 -2
  28. package/dist/cjs/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +1 -1
  29. package/dist/cjs/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +2 -1
  30. package/dist/cjs/src/components/TaxationForm.d.ts +2 -2
  31. package/dist/cjs/src/components/Transactions/Transactions.d.ts +5 -5
  32. package/dist/cjs/src/components/Transactions/TransactionsListContext.d.ts +8 -8
  33. package/dist/cjs/src/components/Transactions/transactionsList/TransactionDownload.d.ts +2 -2
  34. package/dist/cjs/src/components/Transactions/transactionsList/TransactionTitle.d.ts +3 -3
  35. package/dist/cjs/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +4 -4
  36. package/dist/cjs/src/components/Transactions/transactionsList/TransactionsListMobile.d.ts +3 -3
  37. package/dist/cjs/src/components/Transactions/transactionsList/utils.d.ts +3 -3
  38. package/dist/cjs/src/components/icons/Bancontact.d.ts +4 -0
  39. package/dist/cjs/src/components/icons/IDeal.d.ts +4 -0
  40. package/dist/cjs/src/components/icons/Sepa.d.ts +4 -0
  41. package/dist/cjs/src/graphql/QuoteRequests.d.ts +1 -0
  42. package/dist/cjs/src/graphql/mutations/quoteChargeCreate.d.ts +2 -1
  43. package/dist/cjs/src/graphql/mutations/quoteChargeDelete.d.ts +7 -0
  44. package/dist/cjs/src/graphql/mutations/subscriptionTrialConvert.d.ts +7 -0
  45. package/dist/cjs/src/graphql/queries/getFeatureUsage.d.ts +1 -4
  46. package/dist/cjs/src/graphql/queries/getFormattedQuote.d.ts +2 -4
  47. package/dist/cjs/src/graphql/queries/getTransactions.d.ts +2 -2
  48. package/dist/cjs/src/hooks/quotes/useQuoteUpdateFeatureAddon.d.ts +8 -0
  49. package/dist/cjs/src/hooks/usePaymentPlugins.d.ts +2 -2
  50. package/dist/cjs/src/utils/couponUtils.d.ts +2 -0
  51. package/dist/cjs/src/utils/featureAddonUtils.d.ts +3 -0
  52. package/dist/esm/index.js +884 -539
  53. package/dist/esm/src/components/BillingDetails/BillingDetails.d.ts +7 -5
  54. package/dist/esm/src/components/PaymentForm/CheckoutFooter.d.ts +2 -2
  55. package/dist/esm/src/components/PaymentForm/DemoPay/demoPayUtils.d.ts +2 -2
  56. package/dist/esm/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +2 -2
  57. package/dist/esm/src/components/PaymentForm/PaymentForm.d.ts +4 -5
  58. package/dist/esm/src/components/PaymentForm/PaymentMethodDetails.d.ts +1 -1
  59. package/dist/esm/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +2 -2
  60. package/dist/esm/src/components/QuotePreviewProvider.d.ts +17 -0
  61. package/dist/esm/src/components/Quotes/Quotes.d.ts +6 -6
  62. package/dist/esm/src/components/Quotes/Quotes.stories.d.ts +2 -2
  63. package/dist/esm/src/components/Signup/PaymentForms.d.ts +9 -1
  64. package/dist/esm/src/components/Signup/Signup.d.ts +11 -1
  65. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/PlanPicker.d.ts +0 -5
  66. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/PriceListGrid.d.ts +2 -2
  67. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/PriceListSelector.d.ts +2 -3
  68. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/CheckoutBarSummarySection.d.ts +1 -3
  69. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/EverythingPlanFeatures.d.ts +62 -2
  70. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/FeatureAddons.d.ts +9 -0
  71. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PlanFeatures.d.ts +3 -3
  72. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +2 -2
  73. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerUtils.d.ts +3 -3
  74. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardPriceDescription.d.ts +7 -0
  75. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/priceListCardUtils.d.ts +3 -3
  76. package/dist/esm/src/components/Subscriptions/SubscriptionRequests.d.ts +0 -1
  77. package/dist/esm/src/components/Subscriptions/SubscriptionsContext.d.ts +0 -3
  78. package/dist/esm/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +2 -2
  79. package/dist/esm/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +1 -1
  80. package/dist/esm/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +2 -1
  81. package/dist/esm/src/components/TaxationForm.d.ts +2 -2
  82. package/dist/esm/src/components/Transactions/Transactions.d.ts +5 -5
  83. package/dist/esm/src/components/Transactions/TransactionsListContext.d.ts +8 -8
  84. package/dist/esm/src/components/Transactions/transactionsList/TransactionDownload.d.ts +2 -2
  85. package/dist/esm/src/components/Transactions/transactionsList/TransactionTitle.d.ts +3 -3
  86. package/dist/esm/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +4 -4
  87. package/dist/esm/src/components/Transactions/transactionsList/TransactionsListMobile.d.ts +3 -3
  88. package/dist/esm/src/components/Transactions/transactionsList/utils.d.ts +3 -3
  89. package/dist/esm/src/components/icons/Bancontact.d.ts +4 -0
  90. package/dist/esm/src/components/icons/IDeal.d.ts +4 -0
  91. package/dist/esm/src/components/icons/Sepa.d.ts +4 -0
  92. package/dist/esm/src/graphql/QuoteRequests.d.ts +1 -0
  93. package/dist/esm/src/graphql/mutations/quoteChargeCreate.d.ts +2 -1
  94. package/dist/esm/src/graphql/mutations/quoteChargeDelete.d.ts +7 -0
  95. package/dist/esm/src/graphql/mutations/subscriptionTrialConvert.d.ts +7 -0
  96. package/dist/esm/src/graphql/queries/getFeatureUsage.d.ts +1 -4
  97. package/dist/esm/src/graphql/queries/getFormattedQuote.d.ts +2 -4
  98. package/dist/esm/src/graphql/queries/getTransactions.d.ts +2 -2
  99. package/dist/esm/src/hooks/quotes/useQuoteUpdateFeatureAddon.d.ts +8 -0
  100. package/dist/esm/src/hooks/usePaymentPlugins.d.ts +2 -2
  101. package/dist/esm/src/utils/couponUtils.d.ts +2 -0
  102. package/dist/esm/src/utils/featureAddonUtils.d.ts +3 -0
  103. package/dist/index.d.ts +30 -19
  104. 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<unknown>;
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
+ type QuoteChargeDeleteProps = {
2
+ apiHost: string;
3
+ quoteChargeId: string;
4
+ token?: string;
5
+ };
6
+ declare const quoteChargeDelete: ({ quoteChargeId, token, apiHost }: QuoteChargeDeleteProps) => Promise<unknown>;
7
+ export default quoteChargeDelete;
@@ -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, startDate, endDate, dataInterval, token, apiHost, }: {
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
- import { FormattedQuote } from '@bunnyapp/common';
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<FormattedQuote>;
4
+ }) => Promise<any>;
7
5
  export default getFormattedQuote;
@@ -1,3 +1,3 @@
1
- import { FrontendTransaction as T } from '@bunnyapp/common';
2
- declare const getTransactions: (filter: string, apiHost: string, token?: string) => Promise<T.Transaction[]>;
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, selectedEntityId, }: {
22
+ export declare const usePaymentPlugins: ({ apiHost, token, accountId, }: {
23
23
  apiHost: string;
24
24
  token?: string | undefined;
25
- selectedEntityId?: string | null | undefined;
25
+ accountId?: string | undefined;
26
26
  }) => {
27
27
  paymentPlugins: PaymentPlugin[];
28
28
  isFetched: boolean;
@@ -0,0 +1,2 @@
1
+ import { Quote, Subscription } from '@bunnyapp/common';
2
+ export declare function shouldShowCouponEditor(quote: Quote, activeCouponsExist: boolean, upgradingSubscription: Subscription): 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, FrontendTransaction, Quote as Quote$1, PluginData, TransactionKind, PaymentMethod } from '@bunnyapp/common';
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 = "date" | "title" | "state" | "amount" | "download" | "accountName";
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: FrontendTransaction.Transaction) => void;
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: FrontendTransaction.Transaction) => boolean;
66
+ filterQuotes?: (quote: Transaction) => boolean;
67
67
  /** A function to sort the quotes. Runs on the client side. */
68
- sort?: (a: FrontendTransaction.Transaction, b: FrontendTransaction.Transaction) => number;
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, entityId, overrideToken, customCheckoutFunction, currencyId: currencyIdFromProps, paymentHoldOptions, }: {
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 = "createdAt" | "issuedAt" | "dueAt";
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: FrontendTransaction.Transaction) => void;
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: FrontendTransaction.Transaction) => boolean;
168
+ filterTransactions?: (transaction: Transaction) => boolean;
160
169
  /** A function to sort the transactions. Runs on the client side. */
161
- sortTransactions?: (transactionA: FrontendTransaction.Transaction, transactionB: FrontendTransaction.Transaction) => number;
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: ({ isCardEnabled, shadow, className, hidePaymentMethodForm, hideBillingDetailsForm, countryListFilter, }: {
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.76",
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
  }