@bunnyapp/components 1.7.0-beta.8 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (452) hide show
  1. package/dist/cjs/index.js +7595 -9463
  2. package/dist/cjs/types/src/components/BillingDetails/fragments/AccountContactsFragment.d.ts +0 -1
  3. package/dist/cjs/types/src/components/Checkout/Checkout.d.ts +1 -1
  4. package/dist/cjs/types/src/components/Checkout/QuoteCheckout.d.ts +2 -21
  5. package/dist/cjs/types/src/components/Checkout/checkoutUtils.d.ts +2 -8
  6. package/dist/cjs/types/src/components/FeatureUsageGraph.d.ts +4 -31
  7. package/dist/cjs/types/src/components/Invoice/Invoice.d.ts +1 -0
  8. package/dist/cjs/types/src/components/Invoice/InvoiceQuoteView.d.ts +2 -2
  9. package/dist/cjs/types/src/components/PaymentForm/DemoPay/demoPayUtils.d.ts +1 -1
  10. package/dist/cjs/types/src/components/PaymentForm/DemoPay/hooks/useApproveHold.d.ts +2 -5
  11. package/dist/cjs/types/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +3 -5
  12. package/dist/cjs/types/src/components/PaymentForm/PaymentForm.d.ts +3 -16
  13. package/dist/cjs/types/src/components/PaymentForm/Stripe/hooks/useApproveHold.d.ts +2 -5
  14. package/dist/cjs/types/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +3 -5
  15. package/dist/cjs/types/src/components/PaymentForm/Stripe/stripeUtils.d.ts +2 -6
  16. package/dist/cjs/types/src/components/PaymentForm/components/CouponEditor.d.ts +2 -0
  17. package/dist/cjs/types/src/components/PaymentForm/context/PaymentProvider.d.ts +4 -16
  18. package/dist/cjs/types/src/components/PaymentForm/context/SelectedPaymentPluginContext.d.ts +1 -1
  19. package/dist/cjs/types/src/components/PaymentForm/hooks/useHandlePayment.d.ts +3 -18
  20. package/dist/cjs/types/src/components/PaymentForm/types/PaymentFormTypes.d.ts +1 -1
  21. package/dist/cjs/types/src/components/Quote/AcceptQuoteModal.d.ts +3 -12
  22. package/dist/cjs/types/src/components/Quote/PaymentHoldModal.d.ts +3 -17
  23. package/dist/cjs/types/src/components/QuoteProvider/context/QuoteContext.d.ts +1 -1
  24. package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +1 -1
  25. package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +0 -2
  26. package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteCreate.d.ts +1 -2
  27. package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteQuantities.d.ts +1 -1
  28. package/dist/cjs/types/src/components/Quotes/Quotes.d.ts +1 -1
  29. package/dist/cjs/types/src/components/Signup/CheckoutSummary.d.ts +2 -2
  30. package/dist/cjs/types/src/components/Signup/PaymentForms.d.ts +3 -12
  31. package/dist/cjs/types/src/components/Signup/PriceListDisplay.d.ts +1 -1
  32. package/dist/cjs/types/src/components/Subscriptions/AddonSubscriptionCards.d.ts +6 -17
  33. package/dist/cjs/types/src/components/Subscriptions/Subscriptions.d.ts +7 -0
  34. package/dist/cjs/types/src/components/Subscriptions/SubscriptionsListContainer.d.ts +6 -12
  35. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/NextPriceListButton.d.ts +1 -1
  36. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/PlanPicker.d.ts +1 -1
  37. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/PriceListGrid.d.ts +1 -4
  38. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput.d.ts +1 -1
  39. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarSummarySection.d.ts +1 -1
  40. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutPrice.d.ts +1 -1
  41. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +1 -1
  42. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/BillingPeriodSelector.d.ts +1 -1
  43. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/EverythingPlanFeatures.d.ts +1 -2
  44. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanFeatures.d.ts +1 -2
  45. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +1 -4
  46. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/hooks/useQuoteUpdateFeatureAddon.d.ts +1 -1
  47. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/PriceListCardDesktop.d.ts +1 -3
  48. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/AddonPlans.d.ts +1 -2
  49. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/components/AddonPlanRow.d.ts +1 -1
  50. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/hooks/useToggleAddonQuoteChange.d.ts +1 -1
  51. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/util.d.ts +13 -14
  52. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +1 -3
  53. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListGridMobile.d.ts +1 -4
  54. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerUtils.d.ts +1 -2
  55. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/PriceListCardPriceDescription.d.ts +1 -1
  56. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCard.d.ts +1 -2
  57. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardButton.d.ts +1 -15
  58. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardFeature.d.ts +1 -1
  59. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/priceListCardUtils.d.ts +1 -3
  60. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/PriceListSelector.d.ts +1 -16
  61. package/dist/cjs/types/src/components/Subscriptions/Upgrade/Upgrade.d.ts +4 -3
  62. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuantityDrawer.d.ts +1 -1
  63. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +2 -3
  64. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/utils/utils.d.ts +1 -1
  65. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts +3 -15
  66. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeUnitPrice.d.ts +3 -23
  67. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +5 -20
  68. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionsNavigation.d.ts +1 -1
  69. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktop.d.ts +5 -23
  70. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/SubscriptionCardHeader.d.ts +5 -29
  71. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionCardActions.d.ts +5 -21
  72. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardMobile/SubscriptionCardMobile.d.ts +3 -31
  73. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +9 -13
  74. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/filterSubscriptionCharges.d.ts +2 -9
  75. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/sortSubscriptionCharges.d.ts +2 -14
  76. package/dist/cjs/types/src/components/Subscriptions/tieredDisplayDropdown/TieredDisplayDropdown.d.ts +5 -15
  77. package/dist/cjs/types/src/components/Subscriptions/tieredDisplayDropdown/util.d.ts +4 -9
  78. package/dist/cjs/types/src/components/TaxationForm.d.ts +1 -1
  79. package/dist/cjs/types/src/components/Transactions/Transactions.d.ts +1 -2
  80. package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionDownload.d.ts +1 -1
  81. package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionTitle.d.ts +1 -1
  82. package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +1 -1
  83. package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionsListMobile.d.ts +1 -1
  84. package/dist/cjs/types/src/components/Transactions/transactionsList/utils.d.ts +1 -1
  85. package/dist/cjs/types/src/contexts/InvoiceQuoteContext.d.ts +1 -2
  86. package/dist/cjs/types/src/contexts/SubscriptionsContext.d.ts +14 -0
  87. package/dist/cjs/types/src/contexts/TransactionsListContext.d.ts +1 -2
  88. package/dist/cjs/types/src/graphql/mutations/checkout.d.ts +3 -6
  89. package/dist/cjs/types/src/graphql/mutations/quoteChangeAddCoupon.d.ts +1 -1
  90. package/dist/cjs/types/src/graphql/mutations/quoteChangeRemoveCoupon.d.ts +1 -1
  91. package/dist/cjs/types/src/graphql/mutations/quoteCompose.d.ts +1 -1
  92. package/dist/cjs/types/src/graphql/mutations/quoteCreate.d.ts +1 -1
  93. package/dist/cjs/types/src/graphql/mutations/quoteCreateWithDeal.d.ts +1 -1
  94. package/dist/cjs/types/src/graphql/queries/getFormattedInvoice.d.ts +1 -1
  95. package/dist/cjs/types/src/graphql/queries/getFormattedQuote.d.ts +3 -10
  96. package/dist/cjs/types/src/graphql/queries/getPriceList.d.ts +1 -1
  97. package/dist/cjs/types/src/graphql/queries/getPriceListChangeOptions.d.ts +1 -1
  98. package/dist/cjs/types/src/graphql/queries/getTaxationRequiredAccountFields.d.ts +1 -1
  99. package/dist/cjs/types/src/graphql/queries/getTransactions.d.ts +1 -1
  100. package/dist/cjs/types/src/graphql-codegen/exportedScalarTypes.d.ts +0 -3
  101. package/dist/cjs/types/src/hooks/useCurrentUserData.d.ts +3 -3
  102. package/dist/cjs/types/src/hooks/useHasTaxPlugin.d.ts +1 -1
  103. package/dist/cjs/types/src/hooks/usePaymentMethod.d.ts +2 -2
  104. package/dist/cjs/types/src/hooks/useSigningPlugins.d.ts +2 -2
  105. package/dist/cjs/types/src/hooks/useUpdateCoupons.d.ts +2 -2
  106. package/dist/cjs/types/src/styles/constants.d.ts +1 -0
  107. package/dist/cjs/types/src/types/SubscriptionCharge.d.ts +1 -8
  108. package/dist/cjs/types/src/types/billingDetails.d.ts +1 -1
  109. package/dist/cjs/types/src/utils/addonPlanUtils/addonPlanUtils.d.ts +5 -0
  110. package/dist/cjs/types/src/utils/addonPlanUtils/hasUnpurchasedAddonPricelists.d.ts +1 -1
  111. package/dist/cjs/types/src/utils/apiUtils/apiUtils.d.ts +4 -4
  112. package/dist/cjs/types/src/utils/apiUtils/invokePlugin.d.ts +1 -1
  113. package/dist/cjs/types/src/utils/couponUtils.d.ts +2 -21
  114. package/dist/cjs/types/src/utils/featureAddonUtils/featureAddonUtils.d.ts +2 -4
  115. package/dist/cjs/types/src/utils/pricePickerUtils.d.ts +3 -4
  116. package/dist/esm/index.js +21999 -23867
  117. package/dist/esm/types/src/components/BillingDetails/fragments/AccountContactsFragment.d.ts +0 -1
  118. package/dist/esm/types/src/components/Checkout/Checkout.d.ts +1 -1
  119. package/dist/esm/types/src/components/Checkout/QuoteCheckout.d.ts +2 -21
  120. package/dist/esm/types/src/components/Checkout/checkoutUtils.d.ts +2 -8
  121. package/dist/esm/types/src/components/FeatureUsageGraph.d.ts +4 -31
  122. package/dist/esm/types/src/components/Invoice/Invoice.d.ts +1 -0
  123. package/dist/esm/types/src/components/Invoice/InvoiceQuoteView.d.ts +2 -2
  124. package/dist/esm/types/src/components/PaymentForm/DemoPay/demoPayUtils.d.ts +1 -1
  125. package/dist/esm/types/src/components/PaymentForm/DemoPay/hooks/useApproveHold.d.ts +2 -5
  126. package/dist/esm/types/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +3 -5
  127. package/dist/esm/types/src/components/PaymentForm/PaymentForm.d.ts +3 -16
  128. package/dist/esm/types/src/components/PaymentForm/Stripe/hooks/useApproveHold.d.ts +2 -5
  129. package/dist/esm/types/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +3 -5
  130. package/dist/esm/types/src/components/PaymentForm/Stripe/stripeUtils.d.ts +2 -6
  131. package/dist/esm/types/src/components/PaymentForm/components/CouponEditor.d.ts +2 -0
  132. package/dist/esm/types/src/components/PaymentForm/context/PaymentProvider.d.ts +4 -16
  133. package/dist/esm/types/src/components/PaymentForm/context/SelectedPaymentPluginContext.d.ts +1 -1
  134. package/dist/esm/types/src/components/PaymentForm/hooks/useHandlePayment.d.ts +3 -18
  135. package/dist/esm/types/src/components/PaymentForm/types/PaymentFormTypes.d.ts +1 -1
  136. package/dist/esm/types/src/components/Quote/AcceptQuoteModal.d.ts +3 -12
  137. package/dist/esm/types/src/components/Quote/PaymentHoldModal.d.ts +3 -17
  138. package/dist/esm/types/src/components/QuoteProvider/context/QuoteContext.d.ts +1 -1
  139. package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +1 -1
  140. package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +0 -2
  141. package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteCreate.d.ts +1 -2
  142. package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteQuantities.d.ts +1 -1
  143. package/dist/esm/types/src/components/Quotes/Quotes.d.ts +1 -1
  144. package/dist/esm/types/src/components/Signup/CheckoutSummary.d.ts +2 -2
  145. package/dist/esm/types/src/components/Signup/PaymentForms.d.ts +3 -12
  146. package/dist/esm/types/src/components/Signup/PriceListDisplay.d.ts +1 -1
  147. package/dist/esm/types/src/components/Subscriptions/AddonSubscriptionCards.d.ts +6 -17
  148. package/dist/esm/types/src/components/Subscriptions/Subscriptions.d.ts +7 -0
  149. package/dist/esm/types/src/components/Subscriptions/SubscriptionsListContainer.d.ts +6 -12
  150. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/NextPriceListButton.d.ts +1 -1
  151. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/PlanPicker.d.ts +1 -1
  152. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/PriceListGrid.d.ts +1 -4
  153. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput.d.ts +1 -1
  154. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarSummarySection.d.ts +1 -1
  155. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutPrice.d.ts +1 -1
  156. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +1 -1
  157. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/BillingPeriodSelector.d.ts +1 -1
  158. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/EverythingPlanFeatures.d.ts +1 -2
  159. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanFeatures.d.ts +1 -2
  160. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +1 -4
  161. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/hooks/useQuoteUpdateFeatureAddon.d.ts +1 -1
  162. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/PriceListCardDesktop.d.ts +1 -3
  163. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/AddonPlans.d.ts +1 -2
  164. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/components/AddonPlanRow.d.ts +1 -1
  165. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/hooks/useToggleAddonQuoteChange.d.ts +1 -1
  166. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/util.d.ts +13 -14
  167. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +1 -3
  168. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListGridMobile.d.ts +1 -4
  169. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerUtils.d.ts +1 -2
  170. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/PriceListCardPriceDescription.d.ts +1 -1
  171. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCard.d.ts +1 -2
  172. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardButton.d.ts +1 -15
  173. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardFeature.d.ts +1 -1
  174. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/priceListCardUtils.d.ts +1 -3
  175. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/PriceListSelector.d.ts +1 -16
  176. package/dist/esm/types/src/components/Subscriptions/Upgrade/Upgrade.d.ts +4 -3
  177. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuantityDrawer.d.ts +1 -1
  178. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +2 -3
  179. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/utils/utils.d.ts +1 -1
  180. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts +3 -15
  181. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeUnitPrice.d.ts +3 -23
  182. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +5 -20
  183. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionsNavigation.d.ts +1 -1
  184. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktop.d.ts +5 -23
  185. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/SubscriptionCardHeader.d.ts +5 -29
  186. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionCardActions.d.ts +5 -21
  187. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardMobile/SubscriptionCardMobile.d.ts +3 -31
  188. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +9 -13
  189. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/filterSubscriptionCharges.d.ts +2 -9
  190. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/sortSubscriptionCharges.d.ts +2 -14
  191. package/dist/esm/types/src/components/Subscriptions/tieredDisplayDropdown/TieredDisplayDropdown.d.ts +5 -15
  192. package/dist/esm/types/src/components/Subscriptions/tieredDisplayDropdown/util.d.ts +4 -9
  193. package/dist/esm/types/src/components/TaxationForm.d.ts +1 -1
  194. package/dist/esm/types/src/components/Transactions/Transactions.d.ts +1 -2
  195. package/dist/esm/types/src/components/Transactions/transactionsList/TransactionDownload.d.ts +1 -1
  196. package/dist/esm/types/src/components/Transactions/transactionsList/TransactionTitle.d.ts +1 -1
  197. package/dist/esm/types/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +1 -1
  198. package/dist/esm/types/src/components/Transactions/transactionsList/TransactionsListMobile.d.ts +1 -1
  199. package/dist/esm/types/src/components/Transactions/transactionsList/utils.d.ts +1 -1
  200. package/dist/esm/types/src/contexts/InvoiceQuoteContext.d.ts +1 -2
  201. package/dist/esm/types/src/contexts/SubscriptionsContext.d.ts +14 -0
  202. package/dist/esm/types/src/contexts/TransactionsListContext.d.ts +1 -2
  203. package/dist/esm/types/src/graphql/mutations/checkout.d.ts +3 -6
  204. package/dist/esm/types/src/graphql/mutations/quoteChangeAddCoupon.d.ts +1 -1
  205. package/dist/esm/types/src/graphql/mutations/quoteChangeRemoveCoupon.d.ts +1 -1
  206. package/dist/esm/types/src/graphql/mutations/quoteCompose.d.ts +1 -1
  207. package/dist/esm/types/src/graphql/mutations/quoteCreate.d.ts +1 -1
  208. package/dist/esm/types/src/graphql/mutations/quoteCreateWithDeal.d.ts +1 -1
  209. package/dist/esm/types/src/graphql/queries/getFormattedInvoice.d.ts +1 -1
  210. package/dist/esm/types/src/graphql/queries/getFormattedQuote.d.ts +3 -10
  211. package/dist/esm/types/src/graphql/queries/getPriceList.d.ts +1 -1
  212. package/dist/esm/types/src/graphql/queries/getPriceListChangeOptions.d.ts +1 -1
  213. package/dist/esm/types/src/graphql/queries/getTaxationRequiredAccountFields.d.ts +1 -1
  214. package/dist/esm/types/src/graphql/queries/getTransactions.d.ts +1 -1
  215. package/dist/esm/types/src/graphql-codegen/exportedScalarTypes.d.ts +0 -3
  216. package/dist/esm/types/src/hooks/useCurrentUserData.d.ts +3 -3
  217. package/dist/esm/types/src/hooks/useHasTaxPlugin.d.ts +1 -1
  218. package/dist/esm/types/src/hooks/usePaymentMethod.d.ts +2 -2
  219. package/dist/esm/types/src/hooks/useSigningPlugins.d.ts +2 -2
  220. package/dist/esm/types/src/hooks/useUpdateCoupons.d.ts +2 -2
  221. package/dist/esm/types/src/styles/constants.d.ts +1 -0
  222. package/dist/esm/types/src/types/SubscriptionCharge.d.ts +1 -8
  223. package/dist/esm/types/src/types/billingDetails.d.ts +1 -1
  224. package/dist/esm/types/src/utils/addonPlanUtils/addonPlanUtils.d.ts +5 -0
  225. package/dist/esm/types/src/utils/addonPlanUtils/hasUnpurchasedAddonPricelists.d.ts +1 -1
  226. package/dist/esm/types/src/utils/apiUtils/apiUtils.d.ts +4 -4
  227. package/dist/esm/types/src/utils/apiUtils/invokePlugin.d.ts +1 -1
  228. package/dist/esm/types/src/utils/couponUtils.d.ts +2 -21
  229. package/dist/esm/types/src/utils/featureAddonUtils/featureAddonUtils.d.ts +2 -4
  230. package/dist/esm/types/src/utils/pricePickerUtils.d.ts +3 -4
  231. package/dist/index.d.ts +8 -22
  232. package/package.json +2 -1
  233. package/dist/cjs/types/src/components/Quote/components/QuoteButtons.d.ts +0 -26
  234. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/utils/createAvailableBillingPeriods.d.ts +0 -16
  235. package/dist/cjs/types/src/components/Subscriptions/Upgrade/queries/getSubscriptions.d.ts +0 -175
  236. package/dist/cjs/types/src/components/Subscriptions/context/changeUpgradingSubscriptionContext.d.ts +0 -5
  237. package/dist/cjs/types/src/components/Subscriptions/context/subscriptionCancelContext.d.ts +0 -5
  238. package/dist/cjs/types/src/components/Subscriptions/context/subscriptionPropsContext.d.ts +0 -14
  239. package/dist/cjs/types/src/components/Subscriptions/context/upgradingSubscriptionContext.d.ts +0 -46
  240. package/dist/cjs/types/src/components/Subscriptions/context/upgradingSubscriptionIdContext.d.ts +0 -4
  241. package/dist/cjs/types/src/components/Subscriptions/fragments/Subscriptions_SubscriptionFragment.d.ts +0 -17
  242. package/dist/cjs/types/src/components/Subscriptions/fragments/UpgradingSubscriptionContext_SubscriptionFragment.d.ts +0 -26
  243. package/dist/cjs/types/src/components/Subscriptions/queries/getSubscriptions.d.ts +0 -197
  244. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktopRow.d.ts +0 -39
  245. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionStatusAndActions.d.ts +0 -20
  246. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionStatusText.d.ts +0 -19
  247. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/canSubscriptionUpgradeFromTrial.d.ts +0 -12
  248. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/canSubscriptionUpgradeFromTrialExpired.d.ts +0 -12
  249. package/dist/cjs/types/src/consts/AppConsts.d.ts +0 -10
  250. package/dist/cjs/types/src/consts/DefaultBranding.d.ts +0 -4
  251. package/dist/cjs/types/src/consts/Lists.d.ts +0 -4
  252. package/dist/cjs/types/src/consts/StyleConsts.d.ts +0 -58
  253. package/dist/cjs/types/src/consts/index.d.ts +0 -4
  254. package/dist/cjs/types/src/enums/ChargeType.d.ts +0 -6
  255. package/dist/cjs/types/src/enums/ColumnFormat.d.ts +0 -16
  256. package/dist/cjs/types/src/enums/CreditNoteState.d.ts +0 -8
  257. package/dist/cjs/types/src/enums/PriceAdjustmentAction.d.ts +0 -6
  258. package/dist/cjs/types/src/enums/PriceAdjustmentTiming.d.ts +0 -16
  259. package/dist/cjs/types/src/enums/QuoteChangeKind.d.ts +0 -16
  260. package/dist/cjs/types/src/enums/TransactionState.d.ts +0 -14
  261. package/dist/cjs/types/src/graphql/queries/getAccount.d.ts +0 -6
  262. package/dist/cjs/types/src/types/Account.d.ts +0 -73
  263. package/dist/cjs/types/src/types/AccountBalance.d.ts +0 -6
  264. package/dist/cjs/types/src/types/AccountType.d.ts +0 -7
  265. package/dist/cjs/types/src/types/ApprovalDecision.d.ts +0 -13
  266. package/dist/cjs/types/src/types/ApprovalRequest.d.ts +0 -18
  267. package/dist/cjs/types/src/types/ApprovalRule.d.ts +0 -15
  268. package/dist/cjs/types/src/types/Approver.d.ts +0 -10
  269. package/dist/cjs/types/src/types/Campaign.d.ts +0 -13
  270. package/dist/cjs/types/src/types/Contact.d.ts +0 -27
  271. package/dist/cjs/types/src/types/Coupon.d.ts +0 -19
  272. package/dist/cjs/types/src/types/CreditNote.d.ts +0 -45
  273. package/dist/cjs/types/src/types/CreditNoteItem.d.ts +0 -20
  274. package/dist/cjs/types/src/types/Currency.d.ts +0 -11
  275. package/dist/cjs/types/src/types/Deal.d.ts +0 -38
  276. package/dist/cjs/types/src/types/DealStage.d.ts +0 -12
  277. package/dist/cjs/types/src/types/DisputeReason.d.ts +0 -6
  278. package/dist/cjs/types/src/types/DynamicComponent.d.ts +0 -12
  279. package/dist/cjs/types/src/types/Entity.d.ts +0 -41
  280. package/dist/cjs/types/src/types/Feature.d.ts +0 -21
  281. package/dist/cjs/types/src/types/FeatureUsage.d.ts +0 -35
  282. package/dist/cjs/types/src/types/FormattedInvoice.d.ts +0 -50
  283. package/dist/cjs/types/src/types/FormattedQuote.d.ts +0 -49
  284. package/dist/cjs/types/src/types/Invoice.d.ts +0 -60
  285. package/dist/cjs/types/src/types/InvoiceConnection.d.ts +0 -6
  286. package/dist/cjs/types/src/types/InvoiceItem.d.ts +0 -43
  287. package/dist/cjs/types/src/types/Payment.d.ts +0 -21
  288. package/dist/cjs/types/src/types/PaymentApplication.d.ts +0 -13
  289. package/dist/cjs/types/src/types/PaymentHold.d.ts +0 -10
  290. package/dist/cjs/types/src/types/PaymentMethod.d.ts +0 -29
  291. package/dist/cjs/types/src/types/Plan.d.ts +0 -40
  292. package/dist/cjs/types/src/types/PlanChangeOptions.d.ts +0 -7
  293. package/dist/cjs/types/src/types/Platform.d.ts +0 -12
  294. package/dist/cjs/types/src/types/Plugin.d.ts +0 -44
  295. package/dist/cjs/types/src/types/PluginDefinition.d.ts +0 -23
  296. package/dist/cjs/types/src/types/PluginParameter.d.ts +0 -12
  297. package/dist/cjs/types/src/types/PluginVendor.d.ts +0 -6
  298. package/dist/cjs/types/src/types/PriceList.d.ts +0 -40
  299. package/dist/cjs/types/src/types/PriceListChangeOptions.d.ts +0 -7
  300. package/dist/cjs/types/src/types/PriceListCharge.d.ts +0 -45
  301. package/dist/cjs/types/src/types/PriceListChargeTier.d.ts +0 -6
  302. package/dist/cjs/types/src/types/PriceTier.d.ts +0 -5
  303. package/dist/cjs/types/src/types/Product.d.ts +0 -22
  304. package/dist/cjs/types/src/types/ProductCategory.d.ts +0 -9
  305. package/dist/cjs/types/src/types/Quote.d.ts +0 -81
  306. package/dist/cjs/types/src/types/QuoteChange.d.ts +0 -21
  307. package/dist/cjs/types/src/types/QuoteCharge.d.ts +0 -50
  308. package/dist/cjs/types/src/types/Role.d.ts +0 -6
  309. package/dist/cjs/types/src/types/Subscription.d.ts +0 -37
  310. package/dist/cjs/types/src/types/TaxationRequiredAccountFields.d.ts +0 -2
  311. package/dist/cjs/types/src/types/Tenant.d.ts +0 -19
  312. package/dist/cjs/types/src/types/TenantProvisioningChange.d.ts +0 -12
  313. package/dist/cjs/types/src/types/Transaction.d.ts +0 -27
  314. package/dist/cjs/types/src/types/User.d.ts +0 -25
  315. package/dist/cjs/types/src/types/UserProfile.d.ts +0 -7
  316. package/dist/cjs/types/src/types/frontendTypes/ComponentJSON.d.ts +0 -285
  317. package/dist/cjs/types/src/types/frontendTypes/Error.d.ts +0 -3
  318. package/dist/cjs/types/src/types/frontendTypes/FormLink.d.ts +0 -8
  319. package/dist/cjs/types/src/types/frontendTypes/FormattedLine.d.ts +0 -50
  320. package/dist/cjs/types/src/types/frontendTypes/PaymentComponentProps.d.ts +0 -18
  321. package/dist/cjs/types/src/types/frontendTypes/PeriodAmount.d.ts +0 -9
  322. package/dist/cjs/types/src/types/frontendTypes/PlanFeature.d.ts +0 -12
  323. package/dist/cjs/types/src/types/frontendTypes/PluginData.d.ts +0 -26
  324. package/dist/cjs/types/src/types/frontendTypes/QuoteDocument.d.ts +0 -8
  325. package/dist/cjs/types/src/types/frontendTypes/QuotePreviewData.d.ts +0 -6
  326. package/dist/cjs/types/src/types/frontendTypes/TableColumn.d.ts +0 -9
  327. package/dist/cjs/types/src/types/frontendTypes/TriggeredApprovalRule.d.ts +0 -5
  328. package/dist/cjs/types/src/types/frontendTypes/currentUser.d.ts +0 -11
  329. package/dist/cjs/types/src/types/frontendTypes/index.d.ts +0 -13
  330. package/dist/cjs/types/src/types/interfaces/Payable.d.ts +0 -16
  331. package/dist/cjs/types/src/types/interfaces/PayableItem.d.ts +0 -11
  332. package/dist/cjs/types/src/utils/addonPlanUtils/addonPlanSwitchTestId.d.ts +0 -1
  333. package/dist/cjs/types/src/utils/addonPlanUtils/consts.d.ts +0 -1
  334. package/dist/cjs/types/src/utils/addonPlanUtils/findAddonSubscriptions.d.ts +0 -12
  335. package/dist/cjs/types/src/utils/addonPlanUtils/findNonAddonSubscriptions.d.ts +0 -17
  336. package/dist/cjs/types/src/utils/addonPlanUtils/findParentSubscription.d.ts +0 -12
  337. package/dist/cjs/types/src/utils/apiUtils/config.d.ts +0 -9
  338. package/dist/cjs/types/src/utils/formatDate.d.ts +0 -1
  339. package/dist/cjs/types/src/utils/graphql.d.ts +0 -2
  340. package/dist/cjs/types/src/utils/httpUtils.d.ts +0 -10
  341. package/dist/cjs/types/src/utils/isColorTooDark.d.ts +0 -1
  342. package/dist/cjs/types/src/utils/notificationUtils.d.ts +0 -5
  343. package/dist/esm/types/src/components/Quote/components/QuoteButtons.d.ts +0 -26
  344. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/utils/createAvailableBillingPeriods.d.ts +0 -16
  345. package/dist/esm/types/src/components/Subscriptions/Upgrade/queries/getSubscriptions.d.ts +0 -175
  346. package/dist/esm/types/src/components/Subscriptions/context/changeUpgradingSubscriptionContext.d.ts +0 -5
  347. package/dist/esm/types/src/components/Subscriptions/context/subscriptionCancelContext.d.ts +0 -5
  348. package/dist/esm/types/src/components/Subscriptions/context/subscriptionPropsContext.d.ts +0 -14
  349. package/dist/esm/types/src/components/Subscriptions/context/upgradingSubscriptionContext.d.ts +0 -46
  350. package/dist/esm/types/src/components/Subscriptions/context/upgradingSubscriptionIdContext.d.ts +0 -4
  351. package/dist/esm/types/src/components/Subscriptions/fragments/Subscriptions_SubscriptionFragment.d.ts +0 -17
  352. package/dist/esm/types/src/components/Subscriptions/fragments/UpgradingSubscriptionContext_SubscriptionFragment.d.ts +0 -26
  353. package/dist/esm/types/src/components/Subscriptions/queries/getSubscriptions.d.ts +0 -197
  354. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktopRow.d.ts +0 -39
  355. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionStatusAndActions.d.ts +0 -20
  356. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionStatusText.d.ts +0 -19
  357. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/canSubscriptionUpgradeFromTrial.d.ts +0 -12
  358. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/canSubscriptionUpgradeFromTrialExpired.d.ts +0 -12
  359. package/dist/esm/types/src/consts/AppConsts.d.ts +0 -10
  360. package/dist/esm/types/src/consts/DefaultBranding.d.ts +0 -4
  361. package/dist/esm/types/src/consts/Lists.d.ts +0 -4
  362. package/dist/esm/types/src/consts/StyleConsts.d.ts +0 -58
  363. package/dist/esm/types/src/consts/index.d.ts +0 -4
  364. package/dist/esm/types/src/enums/ChargeType.d.ts +0 -6
  365. package/dist/esm/types/src/enums/ColumnFormat.d.ts +0 -16
  366. package/dist/esm/types/src/enums/CreditNoteState.d.ts +0 -8
  367. package/dist/esm/types/src/enums/PriceAdjustmentAction.d.ts +0 -6
  368. package/dist/esm/types/src/enums/PriceAdjustmentTiming.d.ts +0 -16
  369. package/dist/esm/types/src/enums/QuoteChangeKind.d.ts +0 -16
  370. package/dist/esm/types/src/enums/TransactionState.d.ts +0 -14
  371. package/dist/esm/types/src/graphql/queries/getAccount.d.ts +0 -6
  372. package/dist/esm/types/src/types/Account.d.ts +0 -73
  373. package/dist/esm/types/src/types/AccountBalance.d.ts +0 -6
  374. package/dist/esm/types/src/types/AccountType.d.ts +0 -7
  375. package/dist/esm/types/src/types/ApprovalDecision.d.ts +0 -13
  376. package/dist/esm/types/src/types/ApprovalRequest.d.ts +0 -18
  377. package/dist/esm/types/src/types/ApprovalRule.d.ts +0 -15
  378. package/dist/esm/types/src/types/Approver.d.ts +0 -10
  379. package/dist/esm/types/src/types/Campaign.d.ts +0 -13
  380. package/dist/esm/types/src/types/Contact.d.ts +0 -27
  381. package/dist/esm/types/src/types/Coupon.d.ts +0 -19
  382. package/dist/esm/types/src/types/CreditNote.d.ts +0 -45
  383. package/dist/esm/types/src/types/CreditNoteItem.d.ts +0 -20
  384. package/dist/esm/types/src/types/Currency.d.ts +0 -11
  385. package/dist/esm/types/src/types/Deal.d.ts +0 -38
  386. package/dist/esm/types/src/types/DealStage.d.ts +0 -12
  387. package/dist/esm/types/src/types/DisputeReason.d.ts +0 -6
  388. package/dist/esm/types/src/types/DynamicComponent.d.ts +0 -12
  389. package/dist/esm/types/src/types/Entity.d.ts +0 -41
  390. package/dist/esm/types/src/types/Feature.d.ts +0 -21
  391. package/dist/esm/types/src/types/FeatureUsage.d.ts +0 -35
  392. package/dist/esm/types/src/types/FormattedInvoice.d.ts +0 -50
  393. package/dist/esm/types/src/types/FormattedQuote.d.ts +0 -49
  394. package/dist/esm/types/src/types/Invoice.d.ts +0 -60
  395. package/dist/esm/types/src/types/InvoiceConnection.d.ts +0 -6
  396. package/dist/esm/types/src/types/InvoiceItem.d.ts +0 -43
  397. package/dist/esm/types/src/types/Payment.d.ts +0 -21
  398. package/dist/esm/types/src/types/PaymentApplication.d.ts +0 -13
  399. package/dist/esm/types/src/types/PaymentHold.d.ts +0 -10
  400. package/dist/esm/types/src/types/PaymentMethod.d.ts +0 -29
  401. package/dist/esm/types/src/types/Plan.d.ts +0 -40
  402. package/dist/esm/types/src/types/PlanChangeOptions.d.ts +0 -7
  403. package/dist/esm/types/src/types/Platform.d.ts +0 -12
  404. package/dist/esm/types/src/types/Plugin.d.ts +0 -44
  405. package/dist/esm/types/src/types/PluginDefinition.d.ts +0 -23
  406. package/dist/esm/types/src/types/PluginParameter.d.ts +0 -12
  407. package/dist/esm/types/src/types/PluginVendor.d.ts +0 -6
  408. package/dist/esm/types/src/types/PriceList.d.ts +0 -40
  409. package/dist/esm/types/src/types/PriceListChangeOptions.d.ts +0 -7
  410. package/dist/esm/types/src/types/PriceListCharge.d.ts +0 -45
  411. package/dist/esm/types/src/types/PriceListChargeTier.d.ts +0 -6
  412. package/dist/esm/types/src/types/PriceTier.d.ts +0 -5
  413. package/dist/esm/types/src/types/Product.d.ts +0 -22
  414. package/dist/esm/types/src/types/ProductCategory.d.ts +0 -9
  415. package/dist/esm/types/src/types/Quote.d.ts +0 -81
  416. package/dist/esm/types/src/types/QuoteChange.d.ts +0 -21
  417. package/dist/esm/types/src/types/QuoteCharge.d.ts +0 -50
  418. package/dist/esm/types/src/types/Role.d.ts +0 -6
  419. package/dist/esm/types/src/types/Subscription.d.ts +0 -37
  420. package/dist/esm/types/src/types/TaxationRequiredAccountFields.d.ts +0 -2
  421. package/dist/esm/types/src/types/Tenant.d.ts +0 -19
  422. package/dist/esm/types/src/types/TenantProvisioningChange.d.ts +0 -12
  423. package/dist/esm/types/src/types/Transaction.d.ts +0 -27
  424. package/dist/esm/types/src/types/User.d.ts +0 -25
  425. package/dist/esm/types/src/types/UserProfile.d.ts +0 -7
  426. package/dist/esm/types/src/types/frontendTypes/ComponentJSON.d.ts +0 -285
  427. package/dist/esm/types/src/types/frontendTypes/Error.d.ts +0 -3
  428. package/dist/esm/types/src/types/frontendTypes/FormLink.d.ts +0 -8
  429. package/dist/esm/types/src/types/frontendTypes/FormattedLine.d.ts +0 -50
  430. package/dist/esm/types/src/types/frontendTypes/PaymentComponentProps.d.ts +0 -18
  431. package/dist/esm/types/src/types/frontendTypes/PeriodAmount.d.ts +0 -9
  432. package/dist/esm/types/src/types/frontendTypes/PlanFeature.d.ts +0 -12
  433. package/dist/esm/types/src/types/frontendTypes/PluginData.d.ts +0 -26
  434. package/dist/esm/types/src/types/frontendTypes/QuoteDocument.d.ts +0 -8
  435. package/dist/esm/types/src/types/frontendTypes/QuotePreviewData.d.ts +0 -6
  436. package/dist/esm/types/src/types/frontendTypes/TableColumn.d.ts +0 -9
  437. package/dist/esm/types/src/types/frontendTypes/TriggeredApprovalRule.d.ts +0 -5
  438. package/dist/esm/types/src/types/frontendTypes/currentUser.d.ts +0 -11
  439. package/dist/esm/types/src/types/frontendTypes/index.d.ts +0 -13
  440. package/dist/esm/types/src/types/interfaces/Payable.d.ts +0 -16
  441. package/dist/esm/types/src/types/interfaces/PayableItem.d.ts +0 -11
  442. package/dist/esm/types/src/utils/addonPlanUtils/addonPlanSwitchTestId.d.ts +0 -1
  443. package/dist/esm/types/src/utils/addonPlanUtils/consts.d.ts +0 -1
  444. package/dist/esm/types/src/utils/addonPlanUtils/findAddonSubscriptions.d.ts +0 -12
  445. package/dist/esm/types/src/utils/addonPlanUtils/findNonAddonSubscriptions.d.ts +0 -17
  446. package/dist/esm/types/src/utils/addonPlanUtils/findParentSubscription.d.ts +0 -12
  447. package/dist/esm/types/src/utils/apiUtils/config.d.ts +0 -9
  448. package/dist/esm/types/src/utils/formatDate.d.ts +0 -1
  449. package/dist/esm/types/src/utils/graphql.d.ts +0 -2
  450. package/dist/esm/types/src/utils/httpUtils.d.ts +0 -10
  451. package/dist/esm/types/src/utils/isColorTooDark.d.ts +0 -1
  452. package/dist/esm/types/src/utils/notificationUtils.d.ts +0 -5
@@ -2,7 +2,6 @@ export declare const AccountContactsFragment: import("gql.tada").TadaDocumentNod
2
2
  id: string;
3
3
  email: string | null;
4
4
  firstName: string;
5
- lastName: string | null;
6
5
  }, {}, {
7
6
  fragment: "AccountContactsFragment";
8
7
  on: "Contact";
@@ -1,4 +1,4 @@
1
- import FormattedInvoice from '@/types/FormattedInvoice';
1
+ import { FormattedInvoice } from '@bunnyapp/common';
2
2
  import { FragmentOf } from 'gql.tada';
3
3
  export declare const Checkout_QuoteFragment: import("gql.tada").TadaDocumentNode<{
4
4
  id: string | null;
@@ -1,6 +1,4 @@
1
- import Account from '@/types/Account';
2
- import PaymentMethod from '@/types/PaymentMethod';
3
- import TaxationRequiredAccountFields from '@/types/TaxationRequiredAccountFields';
1
+ import { Account, PaymentMethod, TaxationRequiredAccountFields } from '@bunnyapp/common';
4
2
  import { FragmentOf } from 'gql.tada';
5
3
  import { InvoiceQuoteParentProps } from '../PaymentForm/types/PaymentFormTypes';
6
4
  export declare const QuoteCheckout_QuoteFragment: import("gql.tada").TadaDocumentNode<{
@@ -27,7 +25,7 @@ export declare const QuoteCheckout_QuoteFragment: import("gql.tada").TadaDocumen
27
25
  startDate: unknown;
28
26
  }[] | null;
29
27
  amount: number | null;
30
- billingPeriod: "MONTHLY" | "QUARTERLY" | "SEMI_ANNUAL" | "ANNUAL" | "ONCE" | null;
28
+ billingPeriod: "ONCE" | "MONTHLY" | "QUARTERLY" | "SEMI_ANNUAL" | "ANNUAL" | null;
31
29
  currencyId: string;
32
30
  feature: {
33
31
  unitName: string | null;
@@ -71,28 +69,11 @@ export declare const QuoteCheckout_QuoteFragment: import("gql.tada").TadaDocumen
71
69
  startDate: unknown;
72
70
  }[];
73
71
  kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE";
74
- [$tada.fragmentRefs]: {
75
- shouldShowCouponEditor_QuoteFragment: "Quote";
76
- } & {
77
- PaymentForm_QuoteFragment: "Quote";
78
- } & {
79
- getQuoteAmountDue_QuoteFragment: "Quote";
80
- };
81
72
  }, {}, {
82
73
  fragment: "QuoteCheckout_QuoteFragment";
83
74
  on: "Quote";
84
75
  masked: true;
85
76
  }>;
86
- export declare const QuoteCheckout_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
87
- id: string;
88
- [$tada.fragmentRefs]: {
89
- shouldShowCouponEditor_SubscriptionFragment: "Subscription";
90
- };
91
- }, {}, {
92
- fragment: "QuoteCheckout_SubscriptionFragment";
93
- on: "Subscription";
94
- masked: true;
95
- }>;
96
77
  interface QuoteCheckoutProps extends InvoiceQuoteParentProps {
97
78
  account: Account;
98
79
  quote: FragmentOf<typeof QuoteCheckout_QuoteFragment>;
@@ -1,10 +1,4 @@
1
- import { FragmentOf } from 'gql.tada';
2
- export declare const getQuoteAmountDue_QuoteFragment: import("gql.tada").TadaDocumentNode<{
1
+ export declare const getQuoteAmountDue: (quote: {
3
2
  amountDue: number | null;
4
3
  amount: number;
5
- }, {}, {
6
- fragment: "getQuoteAmountDue_QuoteFragment";
7
- on: "Quote";
8
- masked: true;
9
- }>;
10
- export declare const getQuoteAmountDue: (maskedQuote: FragmentOf<typeof getQuoteAmountDue_QuoteFragment>) => number;
4
+ }) => number;
@@ -1,34 +1,7 @@
1
- import { FragmentOf } from 'gql.tada';
2
- export declare const FeatureUsageGraph_SubscriptionChargeFragment: import("gql.tada").TadaDocumentNode<{
3
- feature: {
4
- name: string;
5
- } | null;
6
- startDate: unknown;
7
- endDate: unknown;
8
- }, {}, {
9
- fragment: "FeatureUsageGraph_SubscriptionChargeFragment";
10
- on: "SubscriptionCharge";
11
- masked: true;
12
- }>;
13
- export declare const FeatureUsageGraph_HistogramFragment: import("gql.tada").TadaDocumentNode<{
14
- dataInterval: "MONTHLY" | "QUARTERLY" | "DAILY" | "SEMIANNUALLY" | "YEARLY";
15
- data: {
16
- periodStart: unknown;
17
- periodEnd: unknown;
18
- intervals: {
19
- intervalStart: unknown;
20
- intervalUsage: number;
21
- }[];
22
- intervalsTotal: number;
23
- }[] | null;
24
- }, {}, {
25
- fragment: "FeatureUsageGraph_HistogramFragment";
26
- on: "Histogram";
27
- masked: true;
28
- }>;
29
- declare const FeatureUsageGraph: ({ charge: maskedCharge, featureUsage: maskedFeatureUsage, useAreaChart, }: {
30
- charge: FragmentOf<typeof FeatureUsageGraph_SubscriptionChargeFragment>;
31
- featureUsage: FragmentOf<typeof FeatureUsageGraph_HistogramFragment>;
1
+ import { FeatureUsage, SubscriptionCharge } from '@bunnyapp/common';
2
+ declare const FeatureUsageGraph: ({ charge, featureUsage, useAreaChart, }: {
3
+ charge: SubscriptionCharge;
4
+ featureUsage: FeatureUsage;
32
5
  useAreaChart?: boolean;
33
6
  }) => import("react/jsx-runtime").JSX.Element | "no usage" | null;
34
7
  export default FeatureUsageGraph;
@@ -1,4 +1,5 @@
1
1
  import { InvoiceQuoteContextProps } from '../../contexts/InvoiceQuoteContext';
2
+ import '../../styles/index.less';
2
3
  export type InvoiceProps = InvoiceQuoteContextProps & {
3
4
  hidePaymentForm?: boolean;
4
5
  };
@@ -1,7 +1,7 @@
1
- import FormattedInvoice from '@/types/FormattedInvoice';
1
+ import { FormattedInvoice } from '@bunnyapp/common';
2
2
  import { ReactNode } from 'react';
3
3
  declare const InvoiceQuoteView: ({ children, formattedInvoice, html, backButtonName, onBackButtonClick, onDownloadError, targetUrl, }: {
4
- html: string | null;
4
+ html: string;
5
5
  children?: ReactNode;
6
6
  formattedInvoice?: FormattedInvoice;
7
7
  backButtonName?: string;
@@ -1,4 +1,4 @@
1
- import { PluginData } from '@/types/frontendTypes';
1
+ import { PluginData } from '@bunnyapp/common';
2
2
  export declare const confirmPayment: ({ amount, currency }: {
3
3
  amount: number;
4
4
  currency: string;
@@ -1,14 +1,11 @@
1
- import { PluginData } from '@/types/frontendTypes';
1
+ import { PluginData, Quote } from '@bunnyapp/common';
2
2
  export declare function useApproveHold({ onApproveHoldSuccess, onApproveHoldError, }: {
3
3
  onApproveHoldSuccess?: (response: any) => void;
4
4
  onApproveHoldError?: (error: any) => void;
5
5
  }): {
6
6
  approveHold: ({ plugin, quote, paymentMethodId, }: {
7
7
  plugin: PluginData;
8
- quote: {
9
- id: string;
10
- amount: number;
11
- };
8
+ quote: Quote;
12
9
  paymentMethodId: string;
13
10
  }) => Promise<void>;
14
11
  isApprovingHold: boolean;
@@ -1,10 +1,8 @@
1
- import FormattedInvoice from '@/types/FormattedInvoice';
2
- import Invoice from '@/types/Invoice';
3
- import { PluginData } from '@/types/frontendTypes';
4
- export declare function usePay({ onPaymentSuccess, onPaymentError, quoteId, invoice, plugin, }: {
1
+ import { FormattedInvoice, Invoice, PluginData, Quote } from '@bunnyapp/common';
2
+ export declare function usePay({ onPaymentSuccess, onPaymentError, quote, invoice, plugin, }: {
5
3
  onPaymentSuccess?: (response: any) => void;
6
4
  onPaymentError?: (error: any) => void;
7
- quoteId?: string | null;
5
+ quote?: Quote;
8
6
  invoice?: FormattedInvoice | Invoice;
9
7
  plugin: PluginData | undefined;
10
8
  }): {
@@ -1,20 +1,7 @@
1
- import FormattedInvoice from '@/types/FormattedInvoice';
2
- import Invoice from '@/types/Invoice';
3
- import { FragmentOf } from 'gql.tada';
4
- export declare const PaymentForm_QuoteFragment: import("gql.tada").TadaDocumentNode<{
5
- id: string | null;
6
- currencyId: string;
7
- [$tada.fragmentRefs]: {
8
- PaymentProvider_QuoteFragment: "Quote";
9
- };
10
- }, {}, {
11
- fragment: "PaymentForm_QuoteFragment";
12
- on: "Quote";
13
- masked: true;
14
- }>;
15
- export declare function PaymentForm({ invoice, quote: maskedQuote, onPaymentSuccess, onPaymentHoldSuccess, accountId, onSavePaymentMethod, onRemovePaymentMethod, onSetDefaultPaymentMethod, overrideToken, customCheckoutFunction, paymentHoldOptions, }: {
1
+ import { FormattedInvoice, Invoice, Quote } from '@bunnyapp/common';
2
+ export declare function PaymentForm({ invoice, quote, onPaymentSuccess, onPaymentHoldSuccess, accountId, onSavePaymentMethod, onRemovePaymentMethod, onSetDefaultPaymentMethod, overrideToken, customCheckoutFunction, paymentHoldOptions, }: {
16
3
  invoice?: FormattedInvoice | Invoice;
17
- quote?: FragmentOf<typeof PaymentForm_QuoteFragment>;
4
+ quote?: Quote;
18
5
  onPaymentSuccess?: (response: any) => void;
19
6
  onPaymentHoldSuccess?: (response: any) => void;
20
7
  onSavePaymentMethod?: (response: any) => void;
@@ -1,14 +1,11 @@
1
- import { PluginData } from '@/types/frontendTypes';
1
+ import { PluginData, Quote } from '@bunnyapp/common';
2
2
  export declare function useApproveHold({ onApproveHoldSuccess, onApproveHoldError, }: {
3
3
  onApproveHoldSuccess?: (response: any) => void;
4
4
  onApproveHoldError?: (error: any) => void;
5
5
  }): {
6
6
  approveHold: ({ plugin, quote, paymentMethodId, }: {
7
7
  plugin: PluginData;
8
- quote: {
9
- id: string;
10
- amount: number;
11
- };
8
+ quote: Quote;
12
9
  paymentMethodId: string;
13
10
  }) => Promise<void>;
14
11
  isApprovingHold: boolean;
@@ -1,10 +1,8 @@
1
- import FormattedInvoice from '@/types/FormattedInvoice';
2
- import Invoice from '@/types/Invoice';
3
- import { PluginData } from '@/types/frontendTypes';
4
- export declare function usePay({ onPaymentSuccess, onPaymentError, quoteId, invoice, plugin, }: {
1
+ import { FormattedInvoice, Invoice, PluginData, Quote } from '@bunnyapp/common';
2
+ export declare function usePay({ onPaymentSuccess, onPaymentError, quote, invoice, plugin, }: {
5
3
  onPaymentSuccess?: (response: any) => void;
6
4
  onPaymentError?: (error: any) => void;
7
- quoteId?: string | null;
5
+ quote?: Quote;
8
6
  invoice?: FormattedInvoice | Invoice;
9
7
  plugin: PluginData | undefined;
10
8
  }): {
@@ -1,5 +1,4 @@
1
- import { PluginData } from '@/types/frontendTypes';
2
- import Payable from '@/types/interfaces/Payable';
1
+ import { Payable, PluginData, Quote } from '@bunnyapp/common';
3
2
  import { Stripe } from '@stripe/stripe-js';
4
3
  export declare const createPaymentMethod: ({ paymentMethodId, plugin, token, apiHost, accountId, }: {
5
4
  paymentMethodId: string;
@@ -18,10 +17,7 @@ export declare const createPaymentIntent: ({ payable, savePaymentMethod, memo, p
18
17
  apiHost: string;
19
18
  }) => Promise<any>;
20
19
  export declare const createPaymentHold: ({ quote, plugin, token, apiHost, paymentMethodId, }: {
21
- quote: {
22
- id: string;
23
- amount: number;
24
- };
20
+ quote: Quote;
25
21
  plugin: PluginData;
26
22
  token: string;
27
23
  apiHost: string;
@@ -1,5 +1,7 @@
1
+ import { Quote } from '@bunnyapp/common';
1
2
  declare function CouponEditor({ className, onAddCoupon, isAddingCoupon, couponCode, setCouponCode, }: {
2
3
  className?: string;
4
+ quote: Quote;
3
5
  onAddCoupon: (couponCode: string) => void;
4
6
  isAddingCoupon: boolean;
5
7
  couponCode: string;
@@ -1,6 +1,4 @@
1
- import FormattedInvoice from '@/types/FormattedInvoice';
2
- import Invoice from '@/types/Invoice';
3
- import { FragmentOf } from 'gql.tada';
1
+ import { FormattedInvoice, Invoice, Quote } from '@bunnyapp/common';
4
2
  import { PaymentType } from '../types/PaymentType';
5
3
  declare const useFormattedAmountDue: () => string | undefined;
6
4
  declare const usePaymentType: () => PaymentType | undefined;
@@ -13,21 +11,11 @@ declare const useHandlePaymentFormSubmit: () => (demoPayCardDetails?: {
13
11
  declare const useIsSaving: () => boolean | undefined;
14
12
  declare const useIsPaid: () => boolean | undefined;
15
13
  declare const useAccountId: () => string | undefined;
16
- export { useAccountId, useFormattedAmountDue, useHandlePaymentFormSubmit, useIsPaid, useIsPaying, useIsSaving, usePaymentType, };
17
- export declare const PaymentProvider_QuoteFragment: import("gql.tada").TadaDocumentNode<{
18
- id: string | null;
19
- [$tada.fragmentRefs]: {
20
- useHandlePayment_QuoteFragment: "Quote";
21
- };
22
- }, {}, {
23
- fragment: "PaymentProvider_QuoteFragment";
24
- on: "Quote";
25
- masked: true;
26
- }>;
27
- export declare function PaymentProvider({ children, accountId, quote: maskedQuote, invoice, onPaymentSuccess, onPaymentHoldSuccess, paymentHoldOptions, onSavePaymentMethod, }: {
14
+ export { useAccountId, useFormattedAmountDue, useHandlePaymentFormSubmit, useIsPaying, useIsSaving, useIsPaid, usePaymentType, };
15
+ export declare function PaymentProvider({ children, accountId, quote, invoice, onPaymentSuccess, onPaymentHoldSuccess, paymentHoldOptions, onSavePaymentMethod, }: {
28
16
  children: React.ReactNode;
29
17
  accountId?: string;
30
- quote: FragmentOf<typeof PaymentProvider_QuoteFragment> | undefined;
18
+ quote: Quote | undefined;
31
19
  invoice: FormattedInvoice | Invoice | undefined;
32
20
  onPaymentSuccess?: (response: any) => void;
33
21
  onPaymentHoldSuccess?: (response: any) => void;
@@ -1,4 +1,4 @@
1
- import { PluginData } from '@/types/frontendTypes';
1
+ import { PluginData } from '@bunnyapp/common';
2
2
  declare const SelectedPaymentPluginProvider: ({ initialValue, children, }: {
3
3
  initialValue?: PluginData | undefined;
4
4
  children?: import("react").ReactNode;
@@ -1,22 +1,7 @@
1
- import FormattedInvoice from '@/types/FormattedInvoice';
2
- import Invoice from '@/types/Invoice';
3
- import { PluginData } from '@/types/frontendTypes';
4
- import { FragmentOf } from 'gql.tada';
1
+ import { FormattedInvoice, Invoice, PluginData, Quote } from '@bunnyapp/common';
5
2
  import { PaymentType } from '../types/PaymentType';
6
- export declare const useHandlePayment_QuoteFragment: import("gql.tada").TadaDocumentNode<{
7
- id: string | null;
8
- amount: number;
9
- currencyId: string;
10
- [$tada.fragmentRefs]: {
11
- getQuoteAmountDue_QuoteFragment: "Quote";
12
- };
13
- }, {}, {
14
- fragment: "useHandlePayment_QuoteFragment";
15
- on: "Quote";
16
- masked: true;
17
- }>;
18
- declare const useHandlePayment: ({ quote: maskedQuote, invoice, onPaymentSuccess, onPaymentHoldSuccess, plugin, paymentHoldOptions, accountId, }: {
19
- quote?: FragmentOf<typeof useHandlePayment_QuoteFragment>;
3
+ declare const useHandlePayment: ({ quote, invoice, onPaymentSuccess, onPaymentHoldSuccess, plugin, paymentHoldOptions, accountId, }: {
4
+ quote?: Quote;
20
5
  invoice?: FormattedInvoice | Invoice;
21
6
  onPaymentSuccess?: (response: any) => void;
22
7
  onPaymentHoldSuccess?: (response: any) => void;
@@ -1,4 +1,4 @@
1
- import { PluginData } from '@/types/frontendTypes';
1
+ import { PluginData } from '@bunnyapp/common';
2
2
  export type SavedPaymentMethodResponse = {
3
3
  paymentMethodId: string;
4
4
  };
@@ -1,16 +1,7 @@
1
- import { FragmentOf } from 'gql.tada';
2
- export declare const AcceptQuoteModal_FormattedQuoteFragment: import("gql.tada").TadaDocumentNode<{
3
- poNumberRequired: boolean | null;
4
- taxNumberRequired: boolean | null;
5
- taxNumberLabel: string | null;
6
- }, {}, {
7
- fragment: "AcceptQuoteModal_FormattedQuoteFragment";
8
- on: "FormattedQuote";
9
- masked: true;
10
- }>;
11
- declare const AcceptQuoteModal: ({ acceptBoxVisible, formattedQuote: maskedFormattedQuote, sendAccept, setAcceptBoxVisible, setIsAccepting, isSendAcceptPending, }: {
1
+ import { FormattedQuote } from '@bunnyapp/common';
2
+ declare const AcceptQuoteModal: ({ acceptBoxVisible, formattedQuote, sendAccept, setAcceptBoxVisible, setIsAccepting, isSendAcceptPending, }: {
12
3
  acceptBoxVisible: boolean;
13
- formattedQuote: FragmentOf<typeof AcceptQuoteModal_FormattedQuoteFragment>;
4
+ formattedQuote: FormattedQuote;
14
5
  sendAccept: (changedFields: any) => void;
15
6
  setAcceptBoxVisible: (visible: boolean) => void;
16
7
  setIsAccepting: (accepting: boolean) => void;
@@ -1,21 +1,7 @@
1
- import { FragmentOf } from 'gql.tada';
2
- export declare const PaymentHoldModal_FormattedQuoteFragment: import("gql.tada").TadaDocumentNode<{
3
- quote: {
4
- id: string | null;
5
- [$tada.fragmentRefs]: {
6
- PaymentForm_QuoteFragment: "Quote";
7
- };
8
- };
9
- currency: string | null;
10
- amount: number;
11
- }, {}, {
12
- fragment: "PaymentHoldModal_FormattedQuoteFragment";
13
- on: "FormattedQuote";
14
- masked: true;
15
- }>;
16
- declare const PaymentHoldModal: ({ visible, setVisible, formattedQuote: maskedFormattedQuote, }: {
1
+ import { FormattedQuote } from '@bunnyapp/common';
2
+ declare const PaymentHoldModal: ({ visible, setVisible, quote, }: {
17
3
  visible: boolean;
18
4
  setVisible: (visible: boolean) => void;
19
- formattedQuote: FragmentOf<typeof PaymentHoldModal_FormattedQuoteFragment>;
5
+ quote: FormattedQuote;
20
6
  }) => import("react/jsx-runtime").JSX.Element;
21
7
  export default PaymentHoldModal;
@@ -1,4 +1,4 @@
1
- import PriceList from '@/types/PriceList';
1
+ import { PriceList } from '@bunnyapp/common';
2
2
  import { ResultOf } from 'gql.tada';
3
3
  import { QuoteContext_QuoteFragment } from '../fragments/quoteFragment';
4
4
  export type QuoteContextValues = {
@@ -29,7 +29,7 @@ export declare const QuoteFields_QuoteFragment: import("gql.tada").TadaDocumentN
29
29
  startDate: unknown;
30
30
  }[] | null;
31
31
  amount: number | null;
32
- billingPeriod: "MONTHLY" | "QUARTERLY" | "SEMI_ANNUAL" | "ANNUAL" | "ONCE" | null;
32
+ billingPeriod: "ONCE" | "MONTHLY" | "QUARTERLY" | "SEMI_ANNUAL" | "ANNUAL" | null;
33
33
  currencyId: string;
34
34
  feature: {
35
35
  unitName: string | null;
@@ -45,8 +45,6 @@ export declare const QuoteContext_QuoteFragment: import("gql.tada").TadaDocument
45
45
  AddonPlanRow_QuoteFragment: "Quote";
46
46
  } & {
47
47
  FeatureAddonRow_QuoteFragment: "Quote";
48
- } & {
49
- PaymentForms_QuoteFragment: "Quote";
50
48
  };
51
49
  }, {}, {
52
50
  fragment: "QuoteContext_QuoteFragment";
@@ -1,5 +1,4 @@
1
- import PriceList from '@/types/PriceList';
2
- import Subscription from '@/types/Subscription';
1
+ import { PriceList, Subscription } from '@bunnyapp/common';
3
2
  export declare const useQuoteCreate: ({ upgradingSubscription, selectedPriceList, token, }: {
4
3
  upgradingSubscription?: Subscription;
5
4
  selectedPriceList?: PriceList;
@@ -1,4 +1,4 @@
1
- import PriceList from '@/types/PriceList';
1
+ import { PriceList } from '@bunnyapp/common';
2
2
  import { ResultOf } from 'gql.tada';
3
3
  import { QuoteContext_QuoteFragment } from '../fragments/quoteFragment';
4
4
  export declare const useQuoteQuantities: ({ selectedPriceList, quote, }: {
@@ -1,4 +1,4 @@
1
- import { Transaction } from '@/types/Transaction';
1
+ import { Transaction } from '@bunnyapp/common';
2
2
  import { ShadowType } from '../../types/shadowType';
3
3
  import { TransactionListColumnType } from '../Transactions/transactionsList/TransactionsListDesktop';
4
4
  declare function Quotes({ className, columns, filter, filterQuotes, sort, noQuotesMessage, onQuoteClick, renderQuote, searchBarClassName, shadow, showSearchBar, showTitle, title, style, suppressQuoteDisplay, useModal, }: {
@@ -1,5 +1,5 @@
1
- import PriceList from '@/types/PriceList';
2
- import { Quote } from '@/types/Quote';
1
+ import '../../styles/index.less';
2
+ import { PriceList, Quote } from '@bunnyapp/common';
3
3
  export default function CheckoutSummary({ quote, className, onAddCoupon, onRemoveCoupon, isRemovingCoupon, priceListData, isAddingCoupon, couponCode, setCouponCode, activeCouponsExist, }: {
4
4
  quote: Quote;
5
5
  className?: string;
@@ -1,15 +1,6 @@
1
- import { FragmentOf } from 'gql.tada';
2
- export declare const PaymentForms_QuoteFragment: import("gql.tada").TadaDocumentNode<{
3
- [$tada.fragmentRefs]: {
4
- PaymentForm_QuoteFragment: "Quote";
5
- };
6
- }, {}, {
7
- fragment: "PaymentForms_QuoteFragment";
8
- on: "Quote";
9
- masked: true;
10
- }>;
11
- export default function PaymentForms({ quote: maskedQuote, handlePaymentSuccess, handleSubmit, proceedingToPayment, accountId, overrideToken, customCheckoutFunction, defaultValues, }: {
12
- quote?: FragmentOf<typeof PaymentForms_QuoteFragment>;
1
+ import { Quote } from '@bunnyapp/common';
2
+ export default function PaymentForms({ quote, handlePaymentSuccess, handleSubmit, proceedingToPayment, accountId, overrideToken, customCheckoutFunction, defaultValues, }: {
3
+ quote?: Quote;
13
4
  handlePaymentSuccess: () => void;
14
5
  handleSubmit: (formData: FormData) => void;
15
6
  proceedingToPayment: boolean;
@@ -1,5 +1,5 @@
1
1
  import '../../styles/index.less';
2
- import PriceList from '@/types/PriceList';
2
+ import { PriceList } from '@bunnyapp/common';
3
3
  export default function PriceListDisplay({ priceListData }: {
4
4
  priceListData?: PriceList;
5
5
  }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,19 +1,8 @@
1
- import { FragmentOf } from 'gql.tada';
2
- export declare const AddonSubscriptionsCards_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
3
- id: string;
4
- state: "ACTIVE" | "TRIAL" | "CANCELED" | "EXPIRED" | "TRIAL_EXPIRED" | "PENDING";
5
- [$tada.fragmentRefs]: {
6
- SubscriptionCardDesktop_SubscriptionFragment: "Subscription";
7
- } & {
8
- findAddonSubscriptions_SubscriptionFragment: "Subscription";
9
- };
10
- }, {}, {
11
- fragment: "AddonSubscriptionsCards_SubscriptionFragment";
12
- on: "Subscription";
13
- masked: true;
14
- }>;
15
- export declare function AddonSubscriptionsCards({ subscriptions: maskedSubscriptions, subscription: maskedSubscription, showInactive, }: {
16
- subscriptions: FragmentOf<typeof AddonSubscriptionsCards_SubscriptionFragment>[];
17
- subscription: FragmentOf<typeof AddonSubscriptionsCards_SubscriptionFragment>;
1
+ import { Subscription } from '@bunnyapp/common';
2
+ export declare function AddonSubscriptionsCards({ onCancelSubscriptionClick, onChangePlanClick, subscriptions, subscription, showInactive, }: {
3
+ onCancelSubscriptionClick: (subscription: Subscription) => void;
4
+ onChangePlanClick: (subscription: Subscription) => void;
5
+ subscriptions: Subscription[];
6
+ subscription: Subscription;
18
7
  showInactive: boolean;
19
8
  }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,3 +1,10 @@
1
+ export declare const Subscriptions_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
2
+ state: "TRIAL" | "ACTIVE" | "CANCELED" | "EXPIRED" | "TRIAL_EXPIRED" | "PENDING";
3
+ }, {}, {
4
+ fragment: "Subscriptions_SubscriptionFragment";
5
+ on: "Subscription";
6
+ masked: true;
7
+ }>;
1
8
  declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPreviewMode, productId, className, styles: userStyles, noSubscriptionsComponent, showInactiveSubscriptions, showInactiveSubscriptionsToggle, }: {
2
9
  handlePortalErrors?: (errors: any) => void;
3
10
  companyName: string;
@@ -1,18 +1,12 @@
1
- import { FragmentOf } from 'gql.tada';
2
- export declare const SubscriptionsListContainer_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
3
- [$tada.fragmentRefs]: {
4
- SubscriptionsList_SubscriptionFragment: "Subscription";
5
- };
6
- }, {}, {
7
- fragment: "SubscriptionsListContainer_SubscriptionFragment";
8
- on: "Subscription";
9
- masked: true;
10
- }>;
11
- declare const SubscriptionsListContainer: ({ companyName, showInactive, noSubscriptionsComponent, subscriptions: maskedSubscriptions, subscriptionsAreLoading, }: {
1
+ import { Subscription } from '@bunnyapp/common';
2
+ import '../../styles/index.less';
3
+ declare const SubscriptionsListContainer: ({ companyName, showInactive, onCancelSubscriptionClick, onChangePlanClick, noSubscriptionsComponent, subscriptions, subscriptionsAreLoading, }: {
12
4
  companyName: string;
13
5
  showInactive?: boolean;
6
+ onCancelSubscriptionClick: (subscription: Subscription) => void;
7
+ onChangePlanClick: (subscription: Subscription) => void;
14
8
  noSubscriptionsComponent?: React.ReactNode;
15
- subscriptions: FragmentOf<typeof SubscriptionsListContainer_SubscriptionFragment>[];
9
+ subscriptions: Subscription[];
16
10
  subscriptionsAreLoading: boolean;
17
11
  }) => import("react/jsx-runtime").JSX.Element;
18
12
  export default SubscriptionsListContainer;
@@ -1,5 +1,5 @@
1
1
  import { Dispatch, SetStateAction } from 'react';
2
- import PriceList from '@/types/PriceList';
2
+ import { PriceList } from '@bunnyapp/common';
3
3
  declare const NextPriceListButton: ({ availablePriceLists, priceListStart, setPriceListStart, numberOfPlansToDisplay, }: {
4
4
  availablePriceLists: PriceList[];
5
5
  numberOfPlansToDisplay: number;
@@ -1,4 +1,4 @@
1
- import Subscription from '@/types/Subscription';
1
+ import { Subscription } from '@bunnyapp/common';
2
2
  declare const PlanPicker: ({ onGoBack, areSubscriptionsLoading, subscriptions, }: {
3
3
  onGoBack?: () => void;
4
4
  areSubscriptionsLoading: boolean;
@@ -1,8 +1,5 @@
1
1
  import { BillingPeriod } from '@/graphql-codegen/exportedScalarTypes';
2
- import PriceList from '@/types/PriceList';
3
- import PriceListChangeOptions from '@/types/PriceListChangeOptions';
4
- import Product from '@/types/Product';
5
- import Subscription from '@/types/Subscription';
2
+ import { PriceList, PriceListChangeOptions, Product, Subscription } from '@bunnyapp/common';
6
3
  import { Dispatch, SetStateAction } from 'react';
7
4
  type PriceListGridProps = {
8
5
  availablePriceLists: PriceList[];
@@ -1,4 +1,4 @@
1
- import { PriceListCharge } from '@/types/PriceListCharge';
1
+ import { PriceListCharge } from '@bunnyapp/common';
2
2
  declare const CheckoutBarInput: ({ disabled, priceListCharge, quantity, onQuantityChanged, }: {
3
3
  disabled?: boolean;
4
4
  priceListCharge: PriceListCharge;
@@ -1,4 +1,4 @@
1
- import PriceList from '@/types/PriceList';
1
+ import { PriceList } from '@bunnyapp/common';
2
2
  export declare const CheckoutBarSummarySection_QuoteFragment: import("gql.tada").TadaDocumentNode<{
3
3
  quoteChanges: {
4
4
  charges: {
@@ -1,4 +1,4 @@
1
- import PriceList from '@/types/PriceList';
1
+ import { PriceList } from '@bunnyapp/common';
2
2
  import { FragmentOf } from 'gql.tada';
3
3
  export declare const CheckoutPrice_QuoteFragment: import("gql.tada").TadaDocumentNode<{
4
4
  periodAmount: number | null;
@@ -1,4 +1,4 @@
1
- import PriceList from '@/types/PriceList';
1
+ import { PriceList } from '@bunnyapp/common';
2
2
  export declare const PlanPickerCheckoutBar_QuoteFragment: import("gql.tada").TadaDocumentNode<{
3
3
  [$tada.fragmentRefs]: {
4
4
  Checkout_QuoteFragment: "Quote";
@@ -1,5 +1,5 @@
1
1
  import { BillingPeriod } from '@/graphql-codegen/exportedScalarTypes';
2
- import Product from '@/types/Product';
2
+ import { Product } from '@bunnyapp/common';
3
3
  type PeriodMonths = number;
4
4
  declare const BillingPeriodSelector: ({ availableBillingPeriods, onChangeBillingPeriod, products, selectedBillingPeriod, selectedProduct, onChangeProduct, }: {
5
5
  availableBillingPeriods?: PeriodMonths[];
@@ -1,5 +1,4 @@
1
- import PriceList from '@/types/PriceList';
2
- import Product from '@/types/Product';
1
+ import { PriceList, Product } from '@bunnyapp/common';
3
2
  declare const EverythingPlanFeatures: ({ displayPriceLists, selectedProduct, plansToDisplay, hideBorder, }: {
4
3
  displayPriceLists: PriceList[];
5
4
  plansToDisplay: number;
@@ -1,5 +1,4 @@
1
- import PriceList from '@/types/PriceList';
2
- import Feature from '@/types/Feature';
1
+ import { Feature, PriceList } from '@bunnyapp/common';
3
2
  export declare const PlanFeatures: ({ displayPriceLists, features, plansToDisplay, }: {
4
3
  displayPriceLists: PriceList[];
5
4
  plansToDisplay: number;