@bunnyapp/components 1.4.0 → 1.5.0-beta.2

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 (140) hide show
  1. package/dist/cjs/index.js +1458 -1007
  2. package/dist/cjs/src/components/BunnyProvider.d.ts +0 -1
  3. package/dist/cjs/src/components/Checkout/Checkout.d.ts +12 -6
  4. package/dist/cjs/src/components/Invoice/Invoice.d.ts +5 -2
  5. package/dist/cjs/src/components/PaymentForm/PaymentForm.d.ts +1 -2
  6. package/dist/cjs/src/components/PaymentForm/PaymentFormTypes.d.ts +1 -11
  7. package/dist/cjs/src/components/Quote/Quote.d.ts +1 -1
  8. package/dist/cjs/src/components/Quote/Quote.stories.d.ts +5 -0
  9. package/dist/cjs/src/components/QuoteProvider.d.ts +22 -0
  10. package/dist/cjs/src/components/Subscriptions/AddonIndentation.d.ts +8 -0
  11. package/dist/cjs/src/components/Subscriptions/AddonSubscriptionCards.d.ts +7 -0
  12. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/PriceListGrid.d.ts +4 -3
  13. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/CheckoutBarInput.d.ts +3 -4
  14. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/CheckoutBarSummarySection.d.ts +2 -3
  15. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/CheckoutButton.d.ts +2 -1
  16. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +5 -6
  17. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/EverythingPlanFeatures.d.ts +2 -1
  18. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PlanAddonsCard.d.ts +11 -0
  19. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PriceListCardDesktop.d.ts +5 -3
  20. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +4 -3
  21. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/planManagerUtils.d.ts +2 -2
  22. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +3 -3
  23. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerMobile/PriceListGridMobile.d.ts +3 -3
  24. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCard.d.ts +4 -2
  25. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardButton.d.ts +2 -2
  26. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardPrice.d.ts +2 -1
  27. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardTitle.d.ts +1 -1
  28. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/priceListCardUtils.d.ts +1 -2
  29. package/dist/{esm/src/components/Subscriptions/PlanManager/PlanPicker → cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListSelector}/PriceListSelector.d.ts +2 -4
  30. package/dist/cjs/src/components/Subscriptions/QuantityDrawerContainer.d.ts +14 -0
  31. package/dist/cjs/src/components/Subscriptions/quantityChangeDrawer/QuantityChangeGridRow.d.ts +4 -2
  32. package/dist/cjs/src/components/Subscriptions/quantityChangeDrawer/QuantityInput.d.ts +4 -2
  33. package/dist/cjs/src/components/Subscriptions/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +3 -1
  34. package/dist/cjs/src/components/Subscriptions/subscriptionsList/ChangeQuantitiesButton.d.ts +2 -3
  35. package/dist/cjs/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +4 -3
  36. package/dist/cjs/src/components/Subscriptions/subscriptionsList/SubscriptionCardHeader.d.ts +2 -3
  37. package/dist/cjs/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +2 -3
  38. package/dist/cjs/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktop.d.ts +3 -3
  39. package/dist/cjs/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +1 -1
  40. package/dist/cjs/src/components/Transactions/Transactions.d.ts +5 -3
  41. package/dist/cjs/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +1 -1
  42. package/dist/cjs/src/components/Transactions/transactionsList/TransactionsListMobile.d.ts +1 -1
  43. package/dist/cjs/src/components/Transactions/transactionsList/utils.d.ts +1 -1
  44. package/dist/cjs/src/{components/Invoice → contexts}/InvoiceQuoteContext.d.ts +2 -2
  45. package/dist/{esm/src/components/Subscriptions → cjs/src/contexts}/SubscriptionsContext.d.ts +0 -4
  46. package/dist/{esm/src/components/Transactions → cjs/src/contexts}/TransactionsListContext.d.ts +3 -2
  47. package/dist/cjs/src/graphql/QuoteRequests.d.ts +17 -2
  48. package/dist/cjs/src/graphql/mutations/quoteAddonCreate.d.ts +7 -0
  49. package/dist/cjs/src/graphql/mutations/quoteChangeCreate.d.ts +8 -0
  50. package/dist/cjs/src/graphql/mutations/quoteChangeDelete.d.ts +6 -0
  51. package/dist/cjs/src/graphql/mutations/quoteChargeDelete.d.ts +2 -1
  52. package/dist/cjs/src/graphql/mutations/quoteChargeUpdate.d.ts +2 -1
  53. package/dist/cjs/src/graphql/mutations/quoteCompose.d.ts +0 -1
  54. package/dist/cjs/src/graphql/mutations/quoteCreate.d.ts +8 -0
  55. package/dist/cjs/src/graphql/mutations/quoteCreateWithDeal.d.ts +10 -0
  56. package/dist/cjs/src/graphql/queries/getAddonPlans.d.ts +7 -0
  57. package/dist/cjs/src/graphql/queries/getFormattedQuote.d.ts +2 -1
  58. package/dist/cjs/src/graphql/queries/getQuote.d.ts +3 -1
  59. package/dist/cjs/src/hooks/quotes/useQuoteCreate.d.ts +9 -0
  60. package/dist/cjs/src/hooks/quotes/useQuoteQuantities.d.ts +14 -0
  61. package/dist/cjs/src/hooks/quotes/useQuoteUpdateFeatureAddon.d.ts +2 -3
  62. package/dist/cjs/src/hooks/useCurrentUserData.d.ts +11 -8
  63. package/dist/cjs/src/hooks/usePaymentMethod.d.ts +2 -1
  64. package/dist/cjs/src/hooks/usePriceListChangeOptions.d.ts +6 -0
  65. package/dist/cjs/src/hooks/useToggleAddonQuoteChange.d.ts +7 -0
  66. package/dist/cjs/src/utils/addonPlanUtils.d.ts +6 -0
  67. package/dist/cjs/src/utils/chargeUtils.d.ts +2 -0
  68. package/dist/cjs/src/utils/featureAddonUtils.d.ts +5 -2
  69. package/dist/esm/index.js +1460 -1009
  70. package/dist/esm/src/components/BunnyProvider.d.ts +0 -1
  71. package/dist/esm/src/components/Checkout/Checkout.d.ts +12 -6
  72. package/dist/esm/src/components/Invoice/Invoice.d.ts +5 -2
  73. package/dist/esm/src/components/PaymentForm/PaymentForm.d.ts +1 -2
  74. package/dist/esm/src/components/PaymentForm/PaymentFormTypes.d.ts +1 -11
  75. package/dist/esm/src/components/Quote/Quote.d.ts +1 -1
  76. package/dist/esm/src/components/Quote/Quote.stories.d.ts +5 -0
  77. package/dist/esm/src/components/QuoteProvider.d.ts +22 -0
  78. package/dist/esm/src/components/Subscriptions/AddonIndentation.d.ts +8 -0
  79. package/dist/esm/src/components/Subscriptions/AddonSubscriptionCards.d.ts +7 -0
  80. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/PriceListGrid.d.ts +4 -3
  81. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/CheckoutBarInput.d.ts +3 -4
  82. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/CheckoutBarSummarySection.d.ts +2 -3
  83. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/CheckoutButton.d.ts +2 -1
  84. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +5 -6
  85. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/EverythingPlanFeatures.d.ts +2 -1
  86. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PlanAddonsCard.d.ts +11 -0
  87. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PriceListCardDesktop.d.ts +5 -3
  88. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +4 -3
  89. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/planManagerUtils.d.ts +2 -2
  90. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +3 -3
  91. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerMobile/PriceListGridMobile.d.ts +3 -3
  92. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCard.d.ts +4 -2
  93. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardButton.d.ts +2 -2
  94. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardPrice.d.ts +2 -1
  95. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardTitle.d.ts +1 -1
  96. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/priceListCardUtils.d.ts +1 -2
  97. package/dist/{cjs/src/components/Subscriptions/PlanManager/PlanPicker → esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListSelector}/PriceListSelector.d.ts +2 -4
  98. package/dist/esm/src/components/Subscriptions/QuantityDrawerContainer.d.ts +14 -0
  99. package/dist/esm/src/components/Subscriptions/quantityChangeDrawer/QuantityChangeGridRow.d.ts +4 -2
  100. package/dist/esm/src/components/Subscriptions/quantityChangeDrawer/QuantityInput.d.ts +4 -2
  101. package/dist/esm/src/components/Subscriptions/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +3 -1
  102. package/dist/esm/src/components/Subscriptions/subscriptionsList/ChangeQuantitiesButton.d.ts +2 -3
  103. package/dist/esm/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +4 -3
  104. package/dist/esm/src/components/Subscriptions/subscriptionsList/SubscriptionCardHeader.d.ts +2 -3
  105. package/dist/esm/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +2 -3
  106. package/dist/esm/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktop.d.ts +3 -3
  107. package/dist/esm/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +1 -1
  108. package/dist/esm/src/components/Transactions/Transactions.d.ts +5 -3
  109. package/dist/esm/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +1 -1
  110. package/dist/esm/src/components/Transactions/transactionsList/TransactionsListMobile.d.ts +1 -1
  111. package/dist/esm/src/components/Transactions/transactionsList/utils.d.ts +1 -1
  112. package/dist/esm/src/{components/Invoice → contexts}/InvoiceQuoteContext.d.ts +2 -2
  113. package/dist/{cjs/src/components/Subscriptions → esm/src/contexts}/SubscriptionsContext.d.ts +0 -4
  114. package/dist/{cjs/src/components/Transactions → esm/src/contexts}/TransactionsListContext.d.ts +3 -2
  115. package/dist/esm/src/graphql/QuoteRequests.d.ts +17 -2
  116. package/dist/esm/src/graphql/mutations/quoteAddonCreate.d.ts +7 -0
  117. package/dist/esm/src/graphql/mutations/quoteChangeCreate.d.ts +8 -0
  118. package/dist/esm/src/graphql/mutations/quoteChangeDelete.d.ts +6 -0
  119. package/dist/esm/src/graphql/mutations/quoteChargeDelete.d.ts +2 -1
  120. package/dist/esm/src/graphql/mutations/quoteChargeUpdate.d.ts +2 -1
  121. package/dist/esm/src/graphql/mutations/quoteCompose.d.ts +0 -1
  122. package/dist/esm/src/graphql/mutations/quoteCreate.d.ts +8 -0
  123. package/dist/esm/src/graphql/mutations/quoteCreateWithDeal.d.ts +10 -0
  124. package/dist/esm/src/graphql/queries/getAddonPlans.d.ts +7 -0
  125. package/dist/esm/src/graphql/queries/getFormattedQuote.d.ts +2 -1
  126. package/dist/esm/src/graphql/queries/getQuote.d.ts +3 -1
  127. package/dist/esm/src/hooks/quotes/useQuoteCreate.d.ts +9 -0
  128. package/dist/esm/src/hooks/quotes/useQuoteQuantities.d.ts +14 -0
  129. package/dist/esm/src/hooks/quotes/useQuoteUpdateFeatureAddon.d.ts +2 -3
  130. package/dist/esm/src/hooks/useCurrentUserData.d.ts +11 -8
  131. package/dist/esm/src/hooks/usePaymentMethod.d.ts +2 -1
  132. package/dist/esm/src/hooks/usePriceListChangeOptions.d.ts +6 -0
  133. package/dist/esm/src/hooks/useToggleAddonQuoteChange.d.ts +7 -0
  134. package/dist/esm/src/utils/addonPlanUtils.d.ts +6 -0
  135. package/dist/esm/src/utils/chargeUtils.d.ts +2 -0
  136. package/dist/esm/src/utils/featureAddonUtils.d.ts +5 -2
  137. package/dist/index.d.ts +8 -4
  138. package/package.json +2 -2
  139. package/dist/cjs/src/components/QuotePreviewProvider.d.ts +0 -17
  140. package/dist/esm/src/components/QuotePreviewProvider.d.ts +0 -17
@@ -6,7 +6,6 @@ export type BunnyContextValues = {
6
6
  apiHost: string;
7
7
  graphQLClient: GraphQLClient;
8
8
  token?: string;
9
- displayPayButtonNameAnyways?: boolean;
10
9
  darkMode?: boolean;
11
10
  onTokenExpired?: () => void;
12
11
  };
@@ -1,7 +1,13 @@
1
- import { PaymentMethod } from '@bunnyapp/common';
2
- import { CheckoutProps } from '../PaymentForm/PaymentFormTypes';
3
- interface CheckoutComponentProps extends CheckoutProps {
4
- storedPaymentMethod?: PaymentMethod;
5
- }
6
- declare const Checkout: ({ onCancel, onSuccess, onFail, invoice, open, quote, selectedPriceList, }: CheckoutComponentProps) => import("react/jsx-runtime").JSX.Element | null;
1
+ import { FormattedInvoice, Quote } from '@bunnyapp/common';
2
+ type CheckoutProps = {
3
+ invoice?: FormattedInvoice;
4
+ onCancel: () => void;
5
+ onFail: (error: any) => void;
6
+ onSuccess: () => void;
7
+ open: boolean;
8
+ quote?: Quote;
9
+ token?: string;
10
+ isUpdatingQuote: boolean;
11
+ };
12
+ declare const Checkout: ({ onCancel, onSuccess, onFail, invoice, open, quote, isUpdatingQuote, }: CheckoutProps) => import("react/jsx-runtime").JSX.Element | null;
7
13
  export default Checkout;
@@ -1,3 +1,6 @@
1
1
  import '../../styles/index.less';
2
- import { InvoiceQuoteContextProps } from './InvoiceQuoteContext';
3
- export default function Invoice({ id, invoiceQuoteViewComponent, backButtonName, onBackButtonClick, onInvoiceDownloadError, onPaymentSuccess, shadow, className, hideDownloadButton, onInvoiceLoaded, }: InvoiceQuoteContextProps): import("react/jsx-runtime").JSX.Element;
2
+ import { InvoiceQuoteContextProps } from '../../contexts/InvoiceQuoteContext';
3
+ export type InvoiceProps = InvoiceQuoteContextProps & {
4
+ hidePaymentForm?: boolean;
5
+ };
6
+ export default function Invoice({ id, invoiceQuoteViewComponent, backButtonName, onBackButtonClick, onInvoiceDownloadError, onPaymentSuccess, shadow, className, hideDownloadButton, hidePaymentForm, onInvoiceLoaded, }: InvoiceProps): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { FormattedInvoice, Invoice, PluginData, Quote } from '@bunnyapp/common';
2
- export declare const PaymentForm: ({ invoice, onFail, onPaymentSuccess, onPaymentHoldSuccess, quote, accountId, onSavePaymentMethod, onRemovePaymentMethod, onSetDefaultPaymentMethod, overrideToken, customCheckoutFunction, currencyId: currencyIdFromProps, paymentHoldOptions, }: {
2
+ export declare const PaymentForm: ({ invoice, onFail, onPaymentSuccess, onPaymentHoldSuccess, quote, accountId, onSavePaymentMethod, onRemovePaymentMethod, onSetDefaultPaymentMethod, overrideToken, customCheckoutFunction, paymentHoldOptions, }: {
3
3
  invoice?: FormattedInvoice | Invoice | undefined;
4
4
  quote?: Quote | undefined;
5
5
  onFail: (error: any) => void;
@@ -11,7 +11,6 @@ export declare const PaymentForm: ({ invoice, onFail, onPaymentSuccess, onPaymen
11
11
  accountId?: string | undefined;
12
12
  overrideToken?: string | undefined;
13
13
  customCheckoutFunction?: ((plugin: PluginData | undefined) => Promise<any>) | undefined;
14
- currencyId?: string | undefined;
15
14
  paymentHoldOptions?: {
16
15
  payToAccept?: boolean | undefined;
17
16
  amountToHold?: number | undefined;
@@ -1,4 +1,4 @@
1
- import { Quote, FormattedInvoice, PluginData, PriceList } from "@bunnyapp/common";
1
+ import { PluginData } from '@bunnyapp/common';
2
2
  export type SavedPaymentMethodResponse = {
3
3
  paymentMethodId: string;
4
4
  };
@@ -12,13 +12,3 @@ export type InvoiceQuoteParentProps = {
12
12
  onSuccess: () => void;
13
13
  onFail: (error: any) => void;
14
14
  };
15
- export type CheckoutProps = {
16
- invoice?: FormattedInvoice;
17
- onCancel: () => void;
18
- onFail: (error: any) => void;
19
- onSuccess: () => void;
20
- open: boolean;
21
- quote?: Quote;
22
- selectedPriceList?: PriceList;
23
- token?: string;
24
- };
@@ -1,3 +1,3 @@
1
- import { InvoiceQuoteContextProps } from '../Invoice/InvoiceQuoteContext';
1
+ import { InvoiceQuoteContextProps } from '../../contexts/InvoiceQuoteContext';
2
2
  export declare const MarkupContainer: any;
3
3
  export default function Quote({ id, invoiceQuoteViewComponent, onInvoiceDownloadError, onPaymentSuccess, shadow, className, hideDownloadButton, onQuoteLoaded, }: InvoiceQuoteContextProps): import("react/jsx-runtime").JSX.Element;
@@ -16,6 +16,7 @@ export declare const Default: import("@storybook/core/csf").StoryAnnotations<imp
16
16
  onPaymentSuccess?: any;
17
17
  invoiceQuoteViewComponent?: any;
18
18
  onInvoiceDownloadError?: any;
19
+ hidePaymentForm?: any;
19
20
  onInvoiceLoaded?: any;
20
21
  onQuoteLoaded?: any;
21
22
  }>;
@@ -32,6 +33,7 @@ export declare const NoShadow: import("@storybook/core/csf").StoryAnnotations<im
32
33
  onPaymentSuccess?: any;
33
34
  invoiceQuoteViewComponent?: any;
34
35
  onInvoiceDownloadError?: any;
36
+ hidePaymentForm?: any;
35
37
  onInvoiceLoaded?: any;
36
38
  onQuoteLoaded?: any;
37
39
  }>;
@@ -48,6 +50,7 @@ export declare const Mobile: import("@storybook/core/csf").StoryAnnotations<impo
48
50
  onPaymentSuccess?: any;
49
51
  invoiceQuoteViewComponent?: any;
50
52
  onInvoiceDownloadError?: any;
53
+ hidePaymentForm?: any;
51
54
  onInvoiceLoaded?: any;
52
55
  onQuoteLoaded?: any;
53
56
  }>;
@@ -64,6 +67,7 @@ export declare const CustomClassName: import("@storybook/core/csf").StoryAnnotat
64
67
  onPaymentSuccess?: any;
65
68
  invoiceQuoteViewComponent?: any;
66
69
  onInvoiceDownloadError?: any;
70
+ hidePaymentForm?: any;
67
71
  onInvoiceLoaded?: any;
68
72
  onQuoteLoaded?: any;
69
73
  }>;
@@ -83,6 +87,7 @@ export declare const DarkMode: import("@storybook/core/csf").StoryAnnotations<im
83
87
  onPaymentSuccess?: any;
84
88
  invoiceQuoteViewComponent?: any;
85
89
  onInvoiceDownloadError?: any;
90
+ hidePaymentForm?: any;
86
91
  onInvoiceLoaded?: any;
87
92
  onQuoteLoaded?: any;
88
93
  }>;
@@ -0,0 +1,22 @@
1
+ /// <reference types="react" />
2
+ import { PriceList, Quote } from '@bunnyapp/common';
3
+ export type QuoteContextValues = {
4
+ quote: Quote | undefined;
5
+ selectedPriceList: PriceList | undefined;
6
+ isQuotePending: boolean;
7
+ isAddonPlanLoading: boolean;
8
+ isFeatureAddonsLoading: boolean;
9
+ isUpdatingQuote: boolean;
10
+ setIsAddonPlanLoading: React.Dispatch<React.SetStateAction<boolean>>;
11
+ addFeatureAddonLoading: (featureAddonId: string) => void;
12
+ removeFeatureAddonLoading: (featureAddonId: string) => void;
13
+ getFeatureQuantity: (featureId: string, chargeId: string) => number | undefined;
14
+ onClearQuote: () => void;
15
+ onChangeSelectedPriceList: (priceList: PriceList) => void;
16
+ onChangeQuantity: (priceListChargeId: string, quantity: number) => void;
17
+ };
18
+ export declare const QuoteContext: import("react").Context<QuoteContextValues>;
19
+ declare function QuoteProvider({ children }: {
20
+ children: React.ReactNode;
21
+ }): import("react/jsx-runtime").JSX.Element;
22
+ export default QuoteProvider;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ interface AddonIndentationProps {
3
+ isLast: boolean;
4
+ indentation: number;
5
+ verticalMargin: string;
6
+ }
7
+ declare const AddonIndentation: React.FC<AddonIndentationProps>;
8
+ export default AddonIndentation;
@@ -0,0 +1,7 @@
1
+ import { Subscription } from '@bunnyapp/common';
2
+ export declare function AddonSubscriptionsCards({ onCancelSubscriptionClick, subscriptions, subscription, hideExpired, }: {
3
+ onCancelSubscriptionClick?: (subscription: Subscription) => void;
4
+ subscriptions: Subscription[];
5
+ subscription: Subscription;
6
+ hideExpired: boolean;
7
+ }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,8 +1,7 @@
1
- import { PriceList, PriceListChangeOptions, Product, Subscription } from '@bunnyapp/common';
1
+ import { PriceList, BillingPeriod, PriceListChangeOptions, Product, Subscription } from '@bunnyapp/common';
2
2
  import { Dispatch, SetStateAction } from 'react';
3
3
  type PriceListGridProps = {
4
4
  availablePriceLists: PriceList[];
5
- onChangePriceList: (selectedPriceList: PriceList) => void;
6
5
  priceListChangeOptions?: PriceListChangeOptions;
7
6
  selectedPriceList?: PriceList;
8
7
  selectedProduct?: Product;
@@ -10,6 +9,8 @@ type PriceListGridProps = {
10
9
  priceListStart: number;
11
10
  setPriceListStart: Dispatch<SetStateAction<number>>;
12
11
  upgradingSubscriptionState?: Subscription;
12
+ selectedBillingPeriod?: BillingPeriod | undefined;
13
+ onClickPriceListCard: (priceList: PriceList) => void;
13
14
  };
14
- declare const PriceListGrid: ({ availablePriceLists, onChangePriceList, priceListChangeOptions, priceListStart, selectedPriceList, selectedProduct, setPriceListStart, subscriptions, upgradingSubscriptionState, }: PriceListGridProps) => import("react/jsx-runtime").JSX.Element;
15
+ declare const PriceListGrid: ({ availablePriceLists, priceListChangeOptions, priceListStart, selectedPriceList, selectedProduct, setPriceListStart, subscriptions, upgradingSubscriptionState, selectedBillingPeriod, onClickPriceListCard, }: PriceListGridProps) => import("react/jsx-runtime").JSX.Element;
15
16
  export default PriceListGrid;
@@ -1,9 +1,8 @@
1
- import { PriceList, PriceListCharge } from "@bunnyapp/common";
2
- declare const CheckoutBarInput: ({ disabled, charge, quantity, selectedPriceList, onQuantityChanged, }: {
1
+ import { PriceListCharge } from '@bunnyapp/common';
2
+ declare const CheckoutBarInput: ({ disabled, charge, quantity, onQuantityChanged, }: {
3
3
  disabled?: boolean | undefined;
4
4
  charge: PriceListCharge;
5
5
  quantity: number;
6
- selectedPriceList?: PriceList | undefined;
7
6
  onQuantityChanged: (quantity: number) => void;
8
- }) => import("react/jsx-runtime").JSX.Element | null;
7
+ }) => import("react/jsx-runtime").JSX.Element;
9
8
  export default CheckoutBarInput;
@@ -1,7 +1,6 @@
1
- import { PriceList, Quote, Subscription } from '@bunnyapp/common';
2
- declare const CheckoutBarSummarySection: ({ open, quote, selectedPriceList, onClickCheckout, upgradingSubscription, }: {
1
+ import { PriceList, Subscription } from '@bunnyapp/common';
2
+ declare const CheckoutBarSummarySection: ({ open, selectedPriceList, onClickCheckout, upgradingSubscription, }: {
3
3
  open: boolean;
4
- quote?: Quote | undefined;
5
4
  selectedPriceList: PriceList;
6
5
  onClickCheckout: () => void;
7
6
  upgradingSubscription?: Subscription | undefined;
@@ -1,6 +1,7 @@
1
- declare const CheckoutButton: ({ checkoutButtonDisabled, onClickCheckout, loading, }: {
1
+ declare const CheckoutButton: ({ checkoutButtonDisabled, onClickCheckout, loading, tooltipText, }: {
2
2
  checkoutButtonDisabled: boolean;
3
3
  onClickCheckout: () => void;
4
4
  loading: boolean;
5
+ tooltipText?: string | undefined;
5
6
  }) => import("react/jsx-runtime").JSX.Element;
6
7
  export default CheckoutButton;
@@ -1,8 +1,7 @@
1
- import { EditingQuoteDataType } from '../../../Subscriptions';
2
- declare const PlanPickerCheckoutBarWrapper: ({ editingQuote, setEditingQuoteData, handlePortalErrors, onCheckoutSuccess, }: {
3
- editingQuote?: EditingQuoteDataType | undefined;
4
- setEditingQuoteData?: ((quoteId?: string, isTrial?: boolean) => void) | undefined;
1
+ import { PriceList } from '@bunnyapp/common';
2
+ declare const PlanPickerCheckoutBar: ({ selectedPriceList, handlePortalErrors, onCheckoutSuccess, }: {
3
+ selectedPriceList: PriceList;
5
4
  handlePortalErrors?: ((errors: any) => void) | undefined;
6
5
  onCheckoutSuccess: () => void;
7
- }) => import("react/jsx-runtime").JSX.Element | null;
8
- export default PlanPickerCheckoutBarWrapper;
6
+ }) => import("react/jsx-runtime").JSX.Element;
7
+ export default PlanPickerCheckoutBar;
@@ -62,9 +62,10 @@ export declare const filterUniqueFeatures: ({ availablePriceLists, }: {
62
62
  updatedAt: string;
63
63
  addonPlans?: import("@bunnyapp/common").Plan[] | undefined;
64
64
  }[];
65
- declare const EverythingPlanFeatures: ({ displayPriceLists, selectedProduct, plansToDisplay, }: {
65
+ declare const EverythingPlanFeatures: ({ displayPriceLists, selectedProduct, plansToDisplay, hideBorder, }: {
66
66
  displayPriceLists: PriceList[];
67
67
  plansToDisplay: number;
68
68
  selectedProduct?: Product | undefined;
69
+ hideBorder?: boolean | undefined;
69
70
  }) => import("react/jsx-runtime").JSX.Element;
70
71
  export default EverythingPlanFeatures;
@@ -0,0 +1,11 @@
1
+ import { BillingPeriod, Plan, PriceList, PriceListChangeOptions, Product, Subscription } from '@bunnyapp/common';
2
+ type PlanAddonsCardProps = {
3
+ selectedPriceList: PriceList;
4
+ subscriptions: Subscription[];
5
+ addonPlans: Plan[];
6
+ selectedProduct: Product | undefined;
7
+ priceListChangeOptions: PriceListChangeOptions | undefined;
8
+ selectedBillingPeriod: BillingPeriod;
9
+ };
10
+ declare const PlanAddonsCard: ({ selectedPriceList, subscriptions, addonPlans, selectedProduct, priceListChangeOptions, selectedBillingPeriod, }: PlanAddonsCardProps) => import("react/jsx-runtime").JSX.Element;
11
+ export default PlanAddonsCard;
@@ -1,13 +1,15 @@
1
1
  import { Feature, PriceList, Subscription } from '@bunnyapp/common';
2
- declare const PriceListCardDesktop: ({ description, disableOnClick, feature, isPriceListCurrentSubscription, isSelected, onClick, priceList, subscriptionPlan, trialRemainingDays, }: {
2
+ declare const PriceListCardDesktop: ({ hideButton, description, disableSelectCurrentPlan, feature, isPriceListCurrentSubscription, isSelected, priceList, subscriptionPlan, trialRemainingDays, noBorder, onClickPriceListCard, }: {
3
+ hideButton?: boolean | undefined;
3
4
  description: string;
4
- disableOnClick: boolean;
5
+ disableSelectCurrentPlan: boolean;
5
6
  feature?: Feature | undefined;
6
7
  isPriceListCurrentSubscription: boolean;
7
8
  isSelected: boolean;
8
- onClick: (priceList: PriceList) => void;
9
9
  priceList: PriceList;
10
10
  subscriptionPlan?: Subscription | undefined;
11
11
  trialRemainingDays?: number | undefined;
12
+ noBorder?: boolean | undefined;
13
+ onClickPriceListCard?: ((priceList: PriceList) => void) | undefined;
12
14
  }) => import("react/jsx-runtime").JSX.Element;
13
15
  export default PriceListCardDesktop;
@@ -1,8 +1,7 @@
1
- import { PriceList, PriceListChangeOptions, Product, Subscription } from '@bunnyapp/common';
1
+ import { BillingPeriod, PriceList, PriceListChangeOptions, Product, Subscription } from '@bunnyapp/common';
2
2
  import { Dispatch, SetStateAction } from 'react';
3
3
  type PriceListGridDesktopProps = {
4
4
  availablePriceLists: PriceList[];
5
- onChangePriceList: (selectedPriceList: PriceList) => void;
6
5
  priceListChangeOptions?: PriceListChangeOptions;
7
6
  priceListStart: number;
8
7
  selectedPriceList?: PriceList;
@@ -10,6 +9,8 @@ type PriceListGridDesktopProps = {
10
9
  setPriceListStart: Dispatch<SetStateAction<number>>;
11
10
  subscriptions: Subscription[];
12
11
  trialRemainingDays: number;
12
+ selectedBillingPeriod?: BillingPeriod | undefined;
13
+ onClickPriceListCard: (priceList: PriceList) => void;
13
14
  };
14
- declare const PriceListGridDesktop: ({ availablePriceLists, onChangePriceList, priceListChangeOptions, priceListStart, selectedPriceList, selectedProduct, setPriceListStart, subscriptions, trialRemainingDays, }: PriceListGridDesktopProps) => import("react/jsx-runtime").JSX.Element;
15
+ declare const PriceListGridDesktop: ({ availablePriceLists, priceListChangeOptions, priceListStart, selectedPriceList, selectedProduct, setPriceListStart, subscriptions, trialRemainingDays, selectedBillingPeriod, onClickPriceListCard, }: PriceListGridDesktopProps) => import("react/jsx-runtime").JSX.Element;
15
16
  export default PriceListGridDesktop;
@@ -1,2 +1,2 @@
1
- import { PriceList } from "@bunnyapp/common";
2
- export declare const calculateNewQuantity: (priceList: PriceList, currentQuantity?: number) => number;
1
+ import { PriceListCharge } from '@bunnyapp/common';
2
+ export declare const calculateNewQuantity: (priceListCharge: PriceListCharge, currentQuantity?: number) => number;
@@ -1,13 +1,13 @@
1
1
  import { Feature, PriceList, Subscription } from '@bunnyapp/common';
2
- declare const PriceListCardMobile: ({ description, disableOnClick, feature, isPriceListCurrentSubscription, isSelected, onClick, priceList, subscriptionPlan, trialRemainingDays, }: {
2
+ declare const PriceListCardMobile: ({ description, feature, isPriceListCurrentSubscription, isSelected, priceList, subscriptionPlan, trialRemainingDays, disableOnClickPriceListCard, onClickPriceListCard, }: {
3
3
  description: string;
4
- disableOnClick: boolean;
5
4
  feature?: Feature | undefined;
6
5
  isPriceListCurrentSubscription: boolean;
7
6
  isSelected: boolean;
8
- onClick: (priceList: PriceList) => void;
9
7
  priceList: PriceList;
10
8
  subscriptionPlan?: Subscription | undefined;
11
9
  trialRemainingDays?: number | undefined;
10
+ disableOnClickPriceListCard: boolean;
11
+ onClickPriceListCard?: ((priceList: PriceList) => void) | undefined;
12
12
  }) => import("react/jsx-runtime").JSX.Element;
13
13
  export default PriceListCardMobile;
@@ -1,11 +1,11 @@
1
- import { PriceList, PriceListChangeOptions, Product, Subscription } from "@bunnyapp/common";
2
- declare const PriceListGridMobile: ({ availablePriceLists, onChangePriceList, priceListChangeOptions, selectedPriceList, selectedProduct, subscriptions, trialRemainingDays, }: {
1
+ import { PriceList, PriceListChangeOptions, Product, Subscription } from '@bunnyapp/common';
2
+ declare const PriceListGridMobile: ({ availablePriceLists, priceListChangeOptions, selectedPriceList, selectedProduct, subscriptions, trialRemainingDays, onClickPriceListCard, }: {
3
3
  availablePriceLists: PriceList[];
4
- onChangePriceList: (selectedPriceList: PriceList) => void;
5
4
  priceListChangeOptions?: PriceListChangeOptions | undefined;
6
5
  selectedPriceList?: PriceList | undefined;
7
6
  selectedProduct?: Product | undefined;
8
7
  subscriptions?: Subscription[] | undefined;
9
8
  trialRemainingDays?: number | undefined;
9
+ onClickPriceListCard: (priceList: PriceList) => void;
10
10
  }) => import("react/jsx-runtime").JSX.Element;
11
11
  export default PriceListGridMobile;
@@ -1,9 +1,11 @@
1
1
  import { PriceList, Subscription } from '@bunnyapp/common';
2
- declare const PriceListCard: ({ isSelected, onClick, priceList, subscriptions, trialRemainingDays, }: {
2
+ declare const PriceListCard: ({ hideButton, isSelected, priceList, subscriptions, trialRemainingDays, noBorder, onClickPriceListCard, }: {
3
+ hideButton?: boolean | undefined;
3
4
  isSelected: boolean;
4
- onClick: (priceList: PriceList) => void;
5
5
  priceList: PriceList;
6
6
  subscriptions?: Subscription[] | undefined;
7
7
  trialRemainingDays?: number | undefined;
8
+ noBorder?: boolean | undefined;
9
+ onClickPriceListCard?: ((priceList: PriceList) => void) | undefined;
8
10
  }) => import("react/jsx-runtime").JSX.Element | null;
9
11
  export default PriceListCard;
@@ -1,6 +1,6 @@
1
1
  import { PriceList, Subscription } from '@bunnyapp/common';
2
- declare const PriceListCardButton: ({ disableOnClick, isPriceListCurrentSubscription, isSelected, priceList, subscriptionPlan, }: {
3
- disableOnClick: boolean;
2
+ declare const PriceListCardButton: ({ disableSelectCurrentPlan, isPriceListCurrentSubscription, isSelected, priceList, subscriptionPlan, }: {
3
+ disableSelectCurrentPlan: boolean;
4
4
  isPriceListCurrentSubscription: boolean;
5
5
  isSelected: boolean;
6
6
  priceList: PriceList;
@@ -1,5 +1,6 @@
1
1
  import { PriceList } from '@bunnyapp/common';
2
- declare const PriceListCardPrice: ({ priceList }: {
2
+ declare const PriceListCardPrice: ({ priceList, fontSize, }: {
3
3
  priceList: PriceList;
4
+ fontSize?: string | undefined;
4
5
  }) => import("react/jsx-runtime").JSX.Element;
5
6
  export default PriceListCardPrice;
@@ -1,4 +1,4 @@
1
- import { PriceList } from "@bunnyapp/common";
1
+ import { PriceList } from '@bunnyapp/common';
2
2
  declare const PriceListCardTitle: ({ priceList, isPriceListCurrentSubscription, trialRemainingDays, }: {
3
3
  priceList: PriceList;
4
4
  isPriceListCurrentSubscription: boolean;
@@ -3,8 +3,7 @@ export declare const createPlanDescription: (priceList: PriceList) => string;
3
3
  export declare const getActivePlanPriceData: (priceList?: PriceList, selectedPriceList?: PriceList) => {
4
4
  activeCharge: PriceListCharge | undefined;
5
5
  } | undefined;
6
- export declare const isPriceListDisabled: ({ priceList, upgradingSubscription, canPurchaseFeatureAddons, }: {
6
+ export declare const isPriceListDisabled: ({ priceList, upgradingSubscription, }: {
7
7
  priceList: PriceList;
8
8
  upgradingSubscription: Subscription | undefined;
9
- canPurchaseFeatureAddons: boolean;
10
9
  }) => boolean;
@@ -1,10 +1,8 @@
1
- import { PriceList, PriceListChangeOptions, Subscription } from '@bunnyapp/common';
2
- declare const PriceListSelector: ({ arePlanChangeOptionsLoading, areSubscriptionsLoading, onChangePriceList, priceListChangeOptions, selectedPriceList, subscriptions, }: {
1
+ import { PriceListChangeOptions, Subscription } from '@bunnyapp/common';
2
+ declare const PriceListSelector: ({ arePlanChangeOptionsLoading, areSubscriptionsLoading, priceListChangeOptions, subscriptions, }: {
3
3
  arePlanChangeOptionsLoading: boolean;
4
4
  areSubscriptionsLoading: boolean;
5
- onChangePriceList: (selectedPriceList: PriceList) => void;
6
5
  priceListChangeOptions?: PriceListChangeOptions | undefined;
7
- selectedPriceList?: PriceList | undefined;
8
6
  subscriptions: Subscription[];
9
7
  }) => import("react/jsx-runtime").JSX.Element;
10
8
  export default PriceListSelector;
@@ -0,0 +1,14 @@
1
+ import { Subscription } from '@bunnyapp/common';
2
+ export type EditingQuoteDataType = {
3
+ id: string;
4
+ isTrial: boolean;
5
+ };
6
+ interface QuantityDrawerContainerProps {
7
+ subscriptions: Subscription[];
8
+ quantityDrawerOpen: boolean;
9
+ setQuantityDrawerOpen: (open: boolean) => void;
10
+ handlePortalErrors?: (errors: any) => void;
11
+ setHideExpiredState: (hide: boolean) => void;
12
+ }
13
+ declare const QuantityDrawerContainer: ({ subscriptions, quantityDrawerOpen, setQuantityDrawerOpen, handlePortalErrors, setHideExpiredState, }: QuantityDrawerContainerProps) => import("react/jsx-runtime").JSX.Element;
14
+ export default QuantityDrawerContainer;
@@ -1,5 +1,5 @@
1
- import { Quote, Subscription, SubscriptionCharge } from "@bunnyapp/common";
2
- declare const QuantityChangeGridRow: ({ chargeIndex, editingQuote, subscriptions, subscriptionIndex, setEditingQuoteData, subscription, subscriptionCharge, }: {
1
+ import { Quote, Subscription, SubscriptionCharge } from '@bunnyapp/common';
2
+ declare const QuantityChangeGridRow: ({ chargeIndex, editingQuote, subscriptions, subscriptionIndex, setEditingQuoteData, subscription, subscriptionCharge, setUpdatingChargeQuantityId, updatingChargeQuantityId, }: {
3
3
  chargeIndex: number;
4
4
  editingQuote?: Quote | undefined;
5
5
  subscriptions: Subscription[];
@@ -7,5 +7,7 @@ declare const QuantityChangeGridRow: ({ chargeIndex, editingQuote, subscriptions
7
7
  setEditingQuoteData: (value: any) => void;
8
8
  subscription: Subscription;
9
9
  subscriptionCharge: SubscriptionCharge;
10
+ setUpdatingChargeQuantityId: (updatingChargeQuantityId: string | undefined) => void;
11
+ updatingChargeQuantityId: string | undefined;
10
12
  }) => import("react/jsx-runtime").JSX.Element | null;
11
13
  export default QuantityChangeGridRow;
@@ -2,11 +2,11 @@ import { Quote, Subscription, SubscriptionCharge } from '@bunnyapp/common';
2
2
  export type EditingSubscriptionType = {
3
3
  chargeId: string;
4
4
  chargeIndex: number;
5
- quantity: number;
5
+ quantity: number | undefined;
6
6
  subscription: Subscription;
7
7
  subscriptionIndex: number;
8
8
  };
9
- declare const QuantityInput: ({ charge, chargeIndex, editingQuote, setEditingQuoteData, subscription, subscriptionIndex, subscriptions, }: {
9
+ declare const QuantityInput: ({ charge, chargeIndex, editingQuote, setEditingQuoteData, subscription, subscriptionIndex, subscriptions, setUpdatingChargeQuantityId, updatingChargeQuantityId, }: {
10
10
  charge: SubscriptionCharge;
11
11
  chargeIndex: number;
12
12
  editingQuote?: Quote | undefined;
@@ -17,5 +17,7 @@ declare const QuantityInput: ({ charge, chargeIndex, editingQuote, setEditingQuo
17
17
  subscription: Subscription;
18
18
  subscriptionIndex: number;
19
19
  subscriptions: Subscription[];
20
+ setUpdatingChargeQuantityId: (updatingChargeQuantityId: string | undefined) => void;
21
+ updatingChargeQuantityId: string | undefined;
20
22
  }) => import("react/jsx-runtime").JSX.Element;
21
23
  export default QuantityInput;
@@ -2,7 +2,7 @@ import { Quote, Subscription } from '@bunnyapp/common';
2
2
  import { EditingQuoteDataType } from '../../SubscriptionsListContainer';
3
3
  export declare const QUANTITY_CHANGE_HEADER_TITLE = "Update unit quantity";
4
4
  export declare const QUANTITY_CHANGE_HEADER_DESCRIPTION = "Adjust quantities below. The change will take effect immediately after checkout has been completed.";
5
- declare const QuantityChangeDrawerDesktop: ({ editingQuote, editingQuoteData, onClose, open, openCheckout, setEditingQuoteData, subscriptions, }: {
5
+ declare const QuantityChangeDrawerDesktop: ({ editingQuote, editingQuoteData, onClose, open, openCheckout, setEditingQuoteData, subscriptions, setUpdatingChargeQuantityId, updatingChargeQuantityId, }: {
6
6
  editingQuote?: Quote | undefined;
7
7
  editingQuoteData?: EditingQuoteDataType | undefined;
8
8
  onClose: () => void;
@@ -10,5 +10,7 @@ declare const QuantityChangeDrawerDesktop: ({ editingQuote, editingQuoteData, on
10
10
  openCheckout: () => void;
11
11
  setEditingQuoteData: (value: EditingQuoteDataType | undefined) => void;
12
12
  subscriptions: Subscription[];
13
+ setUpdatingChargeQuantityId: (updatingChargeQuantityId: string | undefined) => void;
14
+ updatingChargeQuantityId: string | undefined;
13
15
  }) => import("react/jsx-runtime").JSX.Element | null;
14
16
  export default QuantityChangeDrawerDesktop;
@@ -1,5 +1,4 @@
1
- declare const ChangeQuantitiesButton: ({ canShowChangeQuantitiesButton, setQuantityDrawerOpen, }: {
2
- canShowChangeQuantitiesButton: boolean;
1
+ declare const ChangeQuantitiesButton: ({ setQuantityDrawerOpen, }: {
3
2
  setQuantityDrawerOpen: (value: boolean) => void;
4
- }) => import("react/jsx-runtime").JSX.Element | null;
3
+ }) => import("react/jsx-runtime").JSX.Element;
5
4
  export default ChangeQuantitiesButton;
@@ -1,8 +1,9 @@
1
1
  import { PriceListChangeOptions, Subscription } from '@bunnyapp/common';
2
- declare const SubscriptionCardActions: ({ onChangePlanClick, onCancelSubscriptionClick, priceListChangeOptions, subscription, }: {
3
- onChangePlanClick: (subscription: Subscription) => void;
4
- onCancelSubscriptionClick: (subscription: Subscription) => void;
2
+ declare const SubscriptionCardActions: ({ onChangePlanClick, onCancelSubscriptionClick, priceListChangeOptions, subscription, isPaymentMethodLoading, }: {
3
+ onChangePlanClick?: ((subscription: Subscription) => void) | undefined;
4
+ onCancelSubscriptionClick?: ((subscription: Subscription) => void) | undefined;
5
5
  priceListChangeOptions?: PriceListChangeOptions | undefined;
6
6
  subscription: Subscription;
7
+ isPaymentMethodLoading: boolean;
7
8
  }) => import("react/jsx-runtime").JSX.Element | null;
8
9
  export default SubscriptionCardActions;
@@ -1,8 +1,7 @@
1
- import { PriceListChangeOptions, Subscription } from '@bunnyapp/common';
2
- declare const SubscriptionCardHeader: ({ onChangePlanClick, onCancelSubscriptionClick, priceListChangeOptions, subscription, }: {
1
+ import { Subscription } from '@bunnyapp/common';
2
+ declare const SubscriptionCardHeader: ({ onChangePlanClick, onCancelSubscriptionClick, subscription, }: {
3
3
  onChangePlanClick?: ((subscription: Subscription) => void) | undefined;
4
4
  onCancelSubscriptionClick?: ((subscription: Subscription) => void) | undefined;
5
- priceListChangeOptions?: PriceListChangeOptions | undefined;
6
5
  subscription: Subscription;
7
6
  }) => import("react/jsx-runtime").JSX.Element;
8
7
  export default SubscriptionCardHeader;
@@ -1,9 +1,8 @@
1
- import { PriceListChangeOptions, Subscription } from "@bunnyapp/common";
2
- declare const SubscriptionsList: ({ hideExpired, onChangePlanClick, onCancelSubscriptionClick, priceListChangeOptions, subscriptions, }: {
1
+ import { Subscription } from '@bunnyapp/common';
2
+ declare const SubscriptionsList: ({ hideExpired, onChangePlanClick, onCancelSubscriptionClick, subscriptions, }: {
3
3
  hideExpired: boolean;
4
4
  onChangePlanClick?: ((subscription: Subscription) => void) | undefined;
5
5
  onCancelSubscriptionClick?: ((subscription: Subscription) => void) | undefined;
6
- priceListChangeOptions?: PriceListChangeOptions | undefined;
7
6
  subscriptions: Subscription[];
8
7
  }) => import("react/jsx-runtime").JSX.Element;
9
8
  export default SubscriptionsList;
@@ -1,8 +1,8 @@
1
- import { PriceListChangeOptions, Subscription } from '@bunnyapp/common';
2
- declare const SubscriptionCardDesktop: ({ onChangePlanClick, onCancelSubscriptionClick, priceListChangeOptions, subscription, }: {
1
+ import { Subscription } from '@bunnyapp/common';
2
+ declare const SubscriptionCardDesktop: ({ onChangePlanClick, onCancelSubscriptionClick, subscription, isAddon, }: {
3
3
  onChangePlanClick?: ((subscription: Subscription) => void) | undefined;
4
4
  onCancelSubscriptionClick?: ((subscription: Subscription) => void) | undefined;
5
- priceListChangeOptions?: PriceListChangeOptions | undefined;
6
5
  subscription: Subscription;
6
+ isAddon?: boolean | undefined;
7
7
  }) => import("react/jsx-runtime").JSX.Element;
8
8
  export default SubscriptionCardDesktop;
@@ -1,4 +1,4 @@
1
- import { Plan, Product, Quote, Subscription, SubscriptionCharge, QuoteChangeKind } from '@bunnyapp/common';
1
+ import { Plan, Product, Quote, QuoteChangeKind, Subscription, SubscriptionCharge } from '@bunnyapp/common';
2
2
  import { EditingSubscriptionType } from '../quantityChangeDrawer/QuantityInput';
3
3
  export declare const canShowQuantitiesInput: (charge: SubscriptionCharge, subscription: Subscription) => boolean | undefined;
4
4
  export declare const createQuoteParams: (quote: Quote, subscriptionQuantity: number, editedSubscription?: EditingSubscriptionType) => {
@@ -2,8 +2,8 @@ import React from 'react';
2
2
  import { Transaction, TransactionKind } from '@bunnyapp/common';
3
3
  import { ShadowType } from '../../types/shadowType';
4
4
  import { TransactionListColumnType } from './transactionsList/TransactionsListDesktop';
5
- import { TransactionDateType } from './TransactionsListContext';
6
- export default function Transactions({ transactionComponent, showSearchBar, showTitle, title, columns, className, shadow, searchBarClassName, useModal, onTransactionClick, suppressTransactionDisplay, kindsToShow, style, filter, noTransactionsMessage, filterTransactions, sortTransactions, transactionDateType, }: {
5
+ import { TransactionDateType } from '../../contexts/TransactionsListContext';
6
+ export default function Transactions({ transactionComponent, showSearchBar, showTitle, title, columns, className, shadow, searchBarClassName, useModal, onTransactionClick, suppressTransactionDisplay, kindsToShow, style, filter, noTransactionsMessage, filterTransactions, sortTransactions, transactionDateType, hidePaymentForm, }: {
7
7
  /** A custom component to render instead of the default invoice component */
8
8
  transactionComponent?: React.ReactNode;
9
9
  /** Whether to show the search bar */
@@ -45,9 +45,11 @@ export default function Transactions({ transactionComponent, showSearchBar, show
45
45
  sortTransactions?: (transactionA: Transaction, transactionB: Transaction) => number;
46
46
  /** The type of date to display for transactions if applicable. Payments will always only show createdAt date. */
47
47
  transactionDateType?: TransactionDateType;
48
+ /** Whether to hide the payment form on invoices */
49
+ hidePaymentForm?: boolean;
48
50
  }): import("react/jsx-runtime").JSX.Element;
49
51
  export declare function TransactionsDisplay({ transactions, onSearchValueChanged, search, }: {
50
- transactions: Transaction[];
52
+ transactions: Transaction[] | undefined;
51
53
  onSearchValueChanged: (value: string) => void;
52
54
  search: string;
53
55
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { Transaction } from '@bunnyapp/common';
2
2
  export type TransactionListColumnType = 'date' | 'title' | 'state' | 'amount' | 'download' | 'accountName';
3
3
  declare const TransactionsListDesktop: ({ transactions, onTransactionClick, }: {
4
- transactions: Transaction[];
4
+ transactions: Transaction[] | undefined;
5
5
  onTransactionClick?: ((transaction: Transaction) => void) | undefined;
6
6
  }) => import("react/jsx-runtime").JSX.Element;
7
7
  export default TransactionsListDesktop;
@@ -1,6 +1,6 @@
1
1
  import { Transaction } from '@bunnyapp/common';
2
2
  declare const TransactionsListMobile: ({ transactions, onTransactionClick, }: {
3
- transactions: Transaction[];
3
+ transactions: Transaction[] | undefined;
4
4
  onTransactionClick: (transaction: Transaction) => void;
5
5
  }) => import("react/jsx-runtime").JSX.Element;
6
6
  export default TransactionsListMobile;
@@ -1,3 +1,3 @@
1
1
  import { Transaction } from '@bunnyapp/common';
2
- import { TransactionDateType } from '../TransactionsListContext';
2
+ import { TransactionDateType } from '../../../contexts/TransactionsListContext';
3
3
  export declare function transactionDateToDisplay(transaction: Transaction, transactionDateType: TransactionDateType): string;