@bunnyapp/components 1.6.0-beta.9.4 → 1.7.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 (435) hide show
  1. package/README.md +94 -0
  2. package/dist/cjs/index.js +7603 -5949
  3. package/dist/cjs/types/src/components/BillingDetails/BillingDetailsForm.d.ts +0 -1
  4. package/dist/cjs/types/src/components/BillingDetails/components/AddContactButton.d.ts +3 -0
  5. package/dist/cjs/types/src/components/BillingDetails/components/AddContactModal.d.ts +8 -0
  6. package/dist/cjs/types/src/components/BillingDetails/fragments/AccountContactsFragment.d.ts +9 -0
  7. package/dist/cjs/types/src/components/BillingDetails/fragments/BillingDetailsSection_AccountFragment.d.ts +20 -0
  8. package/dist/cjs/types/src/components/BillingDetails/hooks/useSetAccountContactsQueryData.d.ts +5 -0
  9. package/dist/cjs/types/src/components/BillingDetails/mutations/accountUpdate.d.ts +22 -0
  10. package/dist/cjs/types/src/components/BillingDetails/mutations/contactCreate.d.ts +22 -0
  11. package/dist/cjs/types/src/components/BillingDetails/queries/getAccount.d.ts +9 -0
  12. package/dist/cjs/types/src/components/BillingDetails/queries/getAccountContacts.d.ts +9 -0
  13. package/dist/cjs/types/src/components/BunnyProvider.d.ts +0 -2
  14. package/dist/cjs/types/src/components/Checkout/Checkout.d.ts +19 -3
  15. package/dist/cjs/types/src/components/Checkout/QuoteCheckout.d.ts +78 -4
  16. package/dist/cjs/types/src/components/Checkout/checkoutUtils.d.ts +4 -2
  17. package/dist/cjs/types/src/components/PaymentForm/DemoPay/CreditCard/CreditCard.d.ts +17 -13
  18. package/dist/cjs/types/src/components/PaymentForm/DemoPay/CreditCard/MiniCreditCard.d.ts +27 -0
  19. package/dist/cjs/types/src/components/PaymentForm/DemoPay/CreditCard/components/CardImage.d.ts +14 -0
  20. package/dist/cjs/types/src/components/PaymentForm/DemoPay/CreditCard/index.d.ts +1 -1
  21. package/dist/cjs/types/src/components/PaymentForm/DemoPay/DemoPayForm.d.ts +1 -6
  22. package/dist/cjs/types/src/components/PaymentForm/DemoPay/hooks/useApproveHold.d.ts +1 -1
  23. package/dist/cjs/types/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +4 -4
  24. package/dist/cjs/types/src/components/PaymentForm/DemoPay/hooks/useSave.d.ts +7 -16
  25. package/dist/cjs/types/src/components/PaymentForm/PaymentForm.d.ts +5 -6
  26. package/dist/cjs/types/src/components/PaymentForm/Stripe/StripeForm.d.ts +1 -6
  27. package/dist/cjs/types/src/components/PaymentForm/Stripe/hooks/useApproveHold.d.ts +1 -1
  28. package/dist/cjs/types/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +4 -4
  29. package/dist/cjs/types/src/components/PaymentForm/Stripe/hooks/useSave.d.ts +4 -5
  30. package/dist/cjs/types/src/components/PaymentForm/Stripe/stripeUtils.d.ts +1 -1
  31. package/dist/cjs/types/src/components/PaymentForm/components/CheckoutFooter.d.ts +2 -0
  32. package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodDetails.d.ts +2 -0
  33. package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodFooter.d.ts +4 -0
  34. package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodSelector.d.ts +2 -0
  35. package/dist/cjs/types/src/components/PaymentForm/context/CustomCheckoutFunctionContext.d.ts +5 -0
  36. package/dist/cjs/types/src/components/PaymentForm/context/OverrideTokenContext.d.ts +4 -0
  37. package/dist/cjs/types/src/components/PaymentForm/context/PaymentProvider.d.ts +32 -0
  38. package/dist/cjs/types/src/components/PaymentForm/context/SelectedPaymentPluginContext.d.ts +6 -0
  39. package/dist/cjs/types/src/components/PaymentForm/context/SelectedPluginProvider.d.ts +16 -0
  40. package/dist/cjs/types/src/components/PaymentForm/context/ShowPaymentDetailsContext.d.ts +5 -0
  41. package/dist/cjs/types/src/components/PaymentForm/fragments/PaymentForm_PaymentMethodsFragment.d.ts +10 -0
  42. package/dist/cjs/types/src/components/PaymentForm/hooks/useAutoSetDefaultPaymentMethod.d.ts +2 -5
  43. package/dist/cjs/types/src/components/PaymentForm/hooks/useHandlePayment.d.ts +25 -0
  44. package/dist/cjs/types/src/components/PaymentForm/hooks/usePayableCurrency.d.ts +6 -0
  45. package/dist/cjs/types/src/components/PaymentForm/hooks/usePaymentButtonText.d.ts +1 -0
  46. package/dist/cjs/types/src/components/PaymentForm/hooks/useRemovePaymentMethod.d.ts +2 -0
  47. package/dist/cjs/types/src/components/PaymentForm/hooks/useSetDefaultPaymentMethod.d.ts +5 -0
  48. package/dist/cjs/types/src/components/PaymentForm/types/PaymentType.d.ts +5 -0
  49. package/dist/cjs/types/src/components/Quote/Quote.d.ts +5 -1
  50. package/dist/cjs/types/src/components/QuoteProvider/QuoteProvider.d.ts +4 -0
  51. package/dist/cjs/types/src/components/{QuoteProvider.d.ts → QuoteProvider/context/QuoteContext.d.ts} +5 -6
  52. package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +65 -0
  53. package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +53 -0
  54. package/dist/cjs/types/src/components/QuoteProvider/hooks/useFeatureQuantities.d.ts +12 -0
  55. package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteCreate.d.ts +19 -0
  56. package/dist/{esm/types/src/hooks/quotes → cjs/types/src/components/QuoteProvider/hooks}/useQuoteQuantities.d.ts +4 -7
  57. package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteRecalculateTaxes.d.ts +11 -0
  58. package/dist/cjs/types/src/components/QuoteProvider/hooks/useSetQuoteQueryData.d.ts +5 -0
  59. package/dist/cjs/types/src/components/QuoteProvider/mutations/quoteChangeUpdate.d.ts +16 -0
  60. package/dist/cjs/types/src/components/QuoteProvider/mutations/quoteRecalculateTaxes.d.ts +11 -0
  61. package/dist/cjs/types/src/components/QuoteProvider/queries/getQuote.d.ts +16 -0
  62. package/dist/cjs/types/src/components/QuoteProvider/utils/getQuantityFromQuoteChange.d.ts +11 -0
  63. package/dist/cjs/types/src/components/QuoteProvider/utils/quoteChangeCanBeEdited.d.ts +4 -0
  64. package/dist/cjs/types/src/components/Quotes/Quotes.d.ts +3 -3
  65. package/dist/cjs/types/src/components/Signup/PaymentForms.d.ts +3 -4
  66. package/dist/cjs/types/src/components/Subscriptions/AddonSubscriptionCards.d.ts +3 -2
  67. package/dist/cjs/types/src/components/Subscriptions/Subscriptions.d.ts +1 -5
  68. package/dist/cjs/types/src/components/Subscriptions/SubscriptionsListContainer.d.ts +2 -6
  69. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/PlanPicker.d.ts +1 -2
  70. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/PriceListGrid.d.ts +3 -2
  71. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput.d.ts +2 -2
  72. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarSummarySection.d.ts +15 -2
  73. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutButton.d.ts +2 -2
  74. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutPrice.d.ts +12 -3
  75. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +19 -0
  76. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/BillingPeriodSelector.d.ts +5 -4
  77. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +3 -2
  78. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonRow.d.ts +33 -0
  79. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddons.d.ts +12 -3
  80. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonsList.d.ts +26 -4
  81. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/fragments/FeatureAddonRow_QuoteFragment.d.ts +9 -0
  82. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/fragments/useQuoteUpdateFeatureAddon_QuoteFragment.d.ts +8 -0
  83. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/hooks/useQuoteUpdateFeatureAddon.d.ts +9 -0
  84. package/dist/cjs/types/src/{graphql → components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons}/mutations/quoteChargeCreate.d.ts +12 -2
  85. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/planManagerUtils.d.ts +5 -2
  86. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/PriceListCardDesktop.d.ts +52 -0
  87. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/AddonPlans.d.ts +10 -0
  88. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/components/AddonPlanModal.d.ts +19 -0
  89. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/components/AddonPlanRow.d.ts +25 -0
  90. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/AddonPlanRow_QuoteFragment.d.ts +9 -0
  91. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/AddonPlans_PlanFragment.d.ts +18 -0
  92. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/useToggleAddonPlan_QuoteFragment.d.ts +13 -0
  93. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/hooks/useToggleAddonQuoteChange.d.ts +9 -0
  94. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/mutations/quoteChangeCreate.d.ts +18 -0
  95. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/mutations/quoteChangeDelete.d.ts +15 -0
  96. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/queries/getAddonPlans.d.ts +13 -0
  97. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/util.d.ts +1 -1
  98. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +19 -2
  99. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/PriceListCardPriceDescription.d.ts +23 -0
  100. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/utils/hasMultipleRecurringCharges.d.ts +12 -0
  101. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCard.d.ts +21 -4
  102. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardButton.d.ts +16 -3
  103. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardFeature.d.ts +1 -1
  104. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardPrice.d.ts +12 -3
  105. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardTitle.d.ts +2 -3
  106. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/priceListCardUtils.d.ts +1 -1
  107. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PreviewModeAdvisary.d.ts +1 -1
  108. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuantityChangeGridRow.d.ts +1 -6
  109. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuantityDrawer.d.ts +12 -0
  110. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +11 -6
  111. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteIdContext.d.ts +5 -0
  112. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteIsLoadingContext.d.ts +5 -0
  113. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteRecalculateTaxesContext.d.ts +6 -0
  114. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/fragments/QuantityDrawer_QuoteFragment.d.ts +14 -0
  115. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useQuoteQueryData.d.ts +3 -0
  116. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useQuoteRecalculateTaxes.d.ts +11 -0
  117. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useSetQuoteQueryData.d.ts +5 -0
  118. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteChargeCreate.d.ts +23 -0
  119. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteChargeUpdate.d.ts +12 -0
  120. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteDelete.d.ts +12 -0
  121. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteRecalculateTaxes.d.ts +11 -0
  122. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteSubscriptionUpdate.d.ts +22 -0
  123. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +1 -6
  124. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/{QuantityInput.d.ts → quantityInput/QuantityInput.d.ts} +12 -18
  125. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/quantityInput/QuoteIsLoadingUpdater.d.ts +9 -0
  126. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/quantityInput/fragments/QuantityInput_QuoteFragment.d.ts +27 -0
  127. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/utils/formatDateForApi.d.ts +2 -0
  128. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/{utils.d.ts → utils/utils.d.ts} +3 -11
  129. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +2 -2
  130. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionsNavigation.d.ts +1 -1
  131. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionCardActions.d.ts +21 -0
  132. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/queries/getPriceListChangeOptions.d.ts +9 -0
  133. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +0 -2
  134. package/dist/cjs/types/src/components/Subscriptions/tieredDisplayDropdown/TieredDisplayDropdown.d.ts +11 -0
  135. package/dist/cjs/types/src/components/Subscriptions/tieredDisplayDropdown/util.d.ts +9 -0
  136. package/dist/cjs/types/src/components/TaxationForm.d.ts +3 -3
  137. package/dist/cjs/types/src/components/Transactions/Transactions.d.ts +1 -1
  138. package/dist/cjs/types/src/components/priceListPricing/PricingTooltip.d.ts +43 -0
  139. package/dist/cjs/types/src/components/priceListPricing/components/ChargePriceTiers.d.ts +23 -0
  140. package/dist/cjs/types/src/components/priceListPricing/components/PriceTierPrice.d.ts +7 -0
  141. package/dist/cjs/types/src/components/priceListPricing/components/PriceTierRow.d.ts +13 -0
  142. package/dist/cjs/types/src/components/priceListPricing/misc/consts.d.ts +1 -0
  143. package/dist/cjs/types/src/components/priceListPricing/types/PriceTier.d.ts +4 -0
  144. package/dist/cjs/types/src/components/priceListPricing/utils/getPricingModelDescription.d.ts +2 -0
  145. package/dist/cjs/types/src/components/priceListPricing/utils/getPricingModelTitle.d.ts +2 -0
  146. package/dist/cjs/types/src/components/priceListPricing/utils/hasPriceTiers.d.ts +13 -0
  147. package/dist/cjs/types/src/components/priceListPricing/utils/priceListChargeUtil.ts/chargeHasPriceTiers.d.ts +12 -0
  148. package/dist/cjs/types/src/components/priceListPricing/utils/priceListChargeUtil.ts/getChargeBasePrice.d.ts +8 -0
  149. package/dist/cjs/types/src/components/priceListPricing/utils/priceListChargeUtil.ts/getFirstTierPrice.d.ts +7 -0
  150. package/dist/cjs/types/src/contexts/BrandContext.d.ts +11 -2
  151. package/dist/cjs/types/src/graphql/QuoteRequests.d.ts +0 -5
  152. package/dist/cjs/types/src/graphql/mutations/quoteChargeDelete.d.ts +11 -2
  153. package/dist/cjs/types/src/graphql/queries/getBranding.d.ts +7 -2
  154. package/dist/cjs/types/src/graphql/queries/getCurrentUserData.d.ts +11 -7
  155. package/dist/cjs/types/src/graphql/queries/getFormattedQuote.d.ts +139 -1
  156. package/dist/cjs/types/src/graphql/queries/getPriceListChangeOptions.d.ts +4 -4
  157. package/dist/cjs/types/src/graphql/queries/getQuote.d.ts +29 -2
  158. package/dist/cjs/types/src/graphql-codegen/exportedScalarTypes.d.ts +6 -0
  159. package/dist/cjs/types/src/hooks/quotes/useSendAcceptQuote.d.ts +2 -1
  160. package/dist/cjs/types/src/hooks/useAllErrorFormats.d.ts +1 -0
  161. package/dist/cjs/types/src/hooks/useCreateQueryClient.d.ts +2 -0
  162. package/dist/cjs/types/src/hooks/useCurrentUserData.d.ts +11 -7
  163. package/dist/cjs/types/src/hooks/useIsMobile.d.ts +9 -0
  164. package/dist/cjs/types/src/hooks/usePaymentMethod.d.ts +47 -6
  165. package/dist/cjs/types/src/hooks/usePaymentPlugins.d.ts +13 -27
  166. package/dist/cjs/types/src/index.d.ts +2 -2
  167. package/dist/cjs/types/src/utils/QueryKeyFactory.d.ts +106 -0
  168. package/dist/cjs/types/src/utils/addonPlanUtils/addonPlanUtils.d.ts +5 -0
  169. package/dist/cjs/types/src/utils/addonPlanUtils/getAddonsForBillingPeriod.d.ts +8 -0
  170. package/dist/cjs/types/src/utils/addonPlanUtils/hasUnpurchasedAddonPricelists.d.ts +15 -0
  171. package/dist/cjs/types/src/utils/apiUtils/invokePlugin.d.ts +10 -0
  172. package/dist/cjs/types/src/utils/chargeUtils.d.ts +5 -2
  173. package/dist/cjs/types/src/utils/createStateContext.d.ts +11 -0
  174. package/dist/cjs/types/src/utils/createValueContext.d.ts +14 -0
  175. package/dist/cjs/types/src/utils/featureAddonUtils/featureAddonUtils.d.ts +20 -0
  176. package/dist/cjs/types/src/utils/featureAddonUtils/isAddonPurchased.d.ts +24 -0
  177. package/dist/cjs/types/src/utils/formatCurrency.d.ts +1 -0
  178. package/dist/cjs/types/src/utils/priceListUtils/doesPriceListHaveFlatFeeCharges.d.ts +12 -0
  179. package/dist/cjs/types/src/utils/priceListUtils/getPrice.d.ts +11 -0
  180. package/dist/cjs/types/src/utils/priceListUtils/priceDescription.d.ts +6 -0
  181. package/dist/cjs/types/src/utils/priceListUtils/priceListPriceText.d.ts +19 -0
  182. package/dist/cjs/types/src/utils/pricePickerUtils.d.ts +4 -4
  183. package/dist/esm/index.js +7624 -5970
  184. package/dist/esm/types/src/components/BillingDetails/BillingDetailsForm.d.ts +0 -1
  185. package/dist/esm/types/src/components/BillingDetails/components/AddContactButton.d.ts +3 -0
  186. package/dist/esm/types/src/components/BillingDetails/components/AddContactModal.d.ts +8 -0
  187. package/dist/esm/types/src/components/BillingDetails/fragments/AccountContactsFragment.d.ts +9 -0
  188. package/dist/esm/types/src/components/BillingDetails/fragments/BillingDetailsSection_AccountFragment.d.ts +20 -0
  189. package/dist/esm/types/src/components/BillingDetails/hooks/useSetAccountContactsQueryData.d.ts +5 -0
  190. package/dist/esm/types/src/components/BillingDetails/mutations/accountUpdate.d.ts +22 -0
  191. package/dist/esm/types/src/components/BillingDetails/mutations/contactCreate.d.ts +22 -0
  192. package/dist/esm/types/src/components/BillingDetails/queries/getAccount.d.ts +9 -0
  193. package/dist/esm/types/src/components/BillingDetails/queries/getAccountContacts.d.ts +9 -0
  194. package/dist/esm/types/src/components/BunnyProvider.d.ts +0 -2
  195. package/dist/esm/types/src/components/Checkout/Checkout.d.ts +19 -3
  196. package/dist/esm/types/src/components/Checkout/QuoteCheckout.d.ts +78 -4
  197. package/dist/esm/types/src/components/Checkout/checkoutUtils.d.ts +4 -2
  198. package/dist/esm/types/src/components/PaymentForm/DemoPay/CreditCard/CreditCard.d.ts +17 -13
  199. package/dist/esm/types/src/components/PaymentForm/DemoPay/CreditCard/MiniCreditCard.d.ts +27 -0
  200. package/dist/esm/types/src/components/PaymentForm/DemoPay/CreditCard/components/CardImage.d.ts +14 -0
  201. package/dist/esm/types/src/components/PaymentForm/DemoPay/CreditCard/index.d.ts +1 -1
  202. package/dist/esm/types/src/components/PaymentForm/DemoPay/DemoPayForm.d.ts +1 -6
  203. package/dist/esm/types/src/components/PaymentForm/DemoPay/hooks/useApproveHold.d.ts +1 -1
  204. package/dist/esm/types/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +4 -4
  205. package/dist/esm/types/src/components/PaymentForm/DemoPay/hooks/useSave.d.ts +7 -16
  206. package/dist/esm/types/src/components/PaymentForm/PaymentForm.d.ts +5 -6
  207. package/dist/esm/types/src/components/PaymentForm/Stripe/StripeForm.d.ts +1 -6
  208. package/dist/esm/types/src/components/PaymentForm/Stripe/hooks/useApproveHold.d.ts +1 -1
  209. package/dist/esm/types/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +4 -4
  210. package/dist/esm/types/src/components/PaymentForm/Stripe/hooks/useSave.d.ts +4 -5
  211. package/dist/esm/types/src/components/PaymentForm/Stripe/stripeUtils.d.ts +1 -1
  212. package/dist/esm/types/src/components/PaymentForm/components/CheckoutFooter.d.ts +2 -0
  213. package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodDetails.d.ts +2 -0
  214. package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodFooter.d.ts +4 -0
  215. package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodSelector.d.ts +2 -0
  216. package/dist/esm/types/src/components/PaymentForm/context/CustomCheckoutFunctionContext.d.ts +5 -0
  217. package/dist/esm/types/src/components/PaymentForm/context/OverrideTokenContext.d.ts +4 -0
  218. package/dist/esm/types/src/components/PaymentForm/context/PaymentProvider.d.ts +32 -0
  219. package/dist/esm/types/src/components/PaymentForm/context/SelectedPaymentPluginContext.d.ts +6 -0
  220. package/dist/esm/types/src/components/PaymentForm/context/SelectedPluginProvider.d.ts +16 -0
  221. package/dist/esm/types/src/components/PaymentForm/context/ShowPaymentDetailsContext.d.ts +5 -0
  222. package/dist/esm/types/src/components/PaymentForm/fragments/PaymentForm_PaymentMethodsFragment.d.ts +10 -0
  223. package/dist/esm/types/src/components/PaymentForm/hooks/useAutoSetDefaultPaymentMethod.d.ts +2 -5
  224. package/dist/esm/types/src/components/PaymentForm/hooks/useHandlePayment.d.ts +25 -0
  225. package/dist/esm/types/src/components/PaymentForm/hooks/usePayableCurrency.d.ts +6 -0
  226. package/dist/esm/types/src/components/PaymentForm/hooks/usePaymentButtonText.d.ts +1 -0
  227. package/dist/esm/types/src/components/PaymentForm/hooks/useRemovePaymentMethod.d.ts +2 -0
  228. package/dist/esm/types/src/components/PaymentForm/hooks/useSetDefaultPaymentMethod.d.ts +5 -0
  229. package/dist/esm/types/src/components/PaymentForm/types/PaymentType.d.ts +5 -0
  230. package/dist/esm/types/src/components/Quote/Quote.d.ts +5 -1
  231. package/dist/esm/types/src/components/QuoteProvider/QuoteProvider.d.ts +4 -0
  232. package/dist/esm/types/src/components/{QuoteProvider.d.ts → QuoteProvider/context/QuoteContext.d.ts} +5 -6
  233. package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +65 -0
  234. package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +53 -0
  235. package/dist/esm/types/src/components/QuoteProvider/hooks/useFeatureQuantities.d.ts +12 -0
  236. package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteCreate.d.ts +19 -0
  237. package/dist/{cjs/types/src/hooks/quotes → esm/types/src/components/QuoteProvider/hooks}/useQuoteQuantities.d.ts +4 -7
  238. package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteRecalculateTaxes.d.ts +11 -0
  239. package/dist/esm/types/src/components/QuoteProvider/hooks/useSetQuoteQueryData.d.ts +5 -0
  240. package/dist/esm/types/src/components/QuoteProvider/mutations/quoteChangeUpdate.d.ts +16 -0
  241. package/dist/esm/types/src/components/QuoteProvider/mutations/quoteRecalculateTaxes.d.ts +11 -0
  242. package/dist/esm/types/src/components/QuoteProvider/queries/getQuote.d.ts +16 -0
  243. package/dist/esm/types/src/components/QuoteProvider/utils/getQuantityFromQuoteChange.d.ts +11 -0
  244. package/dist/esm/types/src/components/QuoteProvider/utils/quoteChangeCanBeEdited.d.ts +4 -0
  245. package/dist/esm/types/src/components/Quotes/Quotes.d.ts +3 -3
  246. package/dist/esm/types/src/components/Signup/PaymentForms.d.ts +3 -4
  247. package/dist/esm/types/src/components/Subscriptions/AddonSubscriptionCards.d.ts +3 -2
  248. package/dist/esm/types/src/components/Subscriptions/Subscriptions.d.ts +1 -5
  249. package/dist/esm/types/src/components/Subscriptions/SubscriptionsListContainer.d.ts +2 -6
  250. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/PlanPicker.d.ts +1 -2
  251. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/PriceListGrid.d.ts +3 -2
  252. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput.d.ts +2 -2
  253. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarSummarySection.d.ts +15 -2
  254. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutButton.d.ts +2 -2
  255. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutPrice.d.ts +12 -3
  256. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +19 -0
  257. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/BillingPeriodSelector.d.ts +5 -4
  258. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +3 -2
  259. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonRow.d.ts +33 -0
  260. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddons.d.ts +12 -3
  261. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonsList.d.ts +26 -4
  262. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/fragments/FeatureAddonRow_QuoteFragment.d.ts +9 -0
  263. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/fragments/useQuoteUpdateFeatureAddon_QuoteFragment.d.ts +8 -0
  264. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/hooks/useQuoteUpdateFeatureAddon.d.ts +9 -0
  265. package/dist/esm/types/src/{graphql → components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons}/mutations/quoteChargeCreate.d.ts +12 -2
  266. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/planManagerUtils.d.ts +5 -2
  267. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/PriceListCardDesktop.d.ts +52 -0
  268. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/AddonPlans.d.ts +10 -0
  269. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/components/AddonPlanModal.d.ts +19 -0
  270. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/components/AddonPlanRow.d.ts +25 -0
  271. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/AddonPlanRow_QuoteFragment.d.ts +9 -0
  272. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/AddonPlans_PlanFragment.d.ts +18 -0
  273. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/useToggleAddonPlan_QuoteFragment.d.ts +13 -0
  274. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/hooks/useToggleAddonQuoteChange.d.ts +9 -0
  275. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/mutations/quoteChangeCreate.d.ts +18 -0
  276. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/mutations/quoteChangeDelete.d.ts +15 -0
  277. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/queries/getAddonPlans.d.ts +13 -0
  278. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/util.d.ts +1 -1
  279. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +19 -2
  280. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/PriceListCardPriceDescription.d.ts +23 -0
  281. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/utils/hasMultipleRecurringCharges.d.ts +12 -0
  282. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCard.d.ts +21 -4
  283. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardButton.d.ts +16 -3
  284. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardFeature.d.ts +1 -1
  285. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardPrice.d.ts +12 -3
  286. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardTitle.d.ts +2 -3
  287. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/priceListCardUtils.d.ts +1 -1
  288. package/dist/esm/types/src/components/Subscriptions/Upgrade/PreviewModeAdvisary.d.ts +1 -1
  289. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuantityChangeGridRow.d.ts +1 -6
  290. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuantityDrawer.d.ts +12 -0
  291. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +11 -6
  292. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteIdContext.d.ts +5 -0
  293. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteIsLoadingContext.d.ts +5 -0
  294. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteRecalculateTaxesContext.d.ts +6 -0
  295. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/fragments/QuantityDrawer_QuoteFragment.d.ts +14 -0
  296. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useQuoteQueryData.d.ts +3 -0
  297. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useQuoteRecalculateTaxes.d.ts +11 -0
  298. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useSetQuoteQueryData.d.ts +5 -0
  299. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteChargeCreate.d.ts +23 -0
  300. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteChargeUpdate.d.ts +12 -0
  301. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteDelete.d.ts +12 -0
  302. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteRecalculateTaxes.d.ts +11 -0
  303. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteSubscriptionUpdate.d.ts +22 -0
  304. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +1 -6
  305. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/{QuantityInput.d.ts → quantityInput/QuantityInput.d.ts} +12 -18
  306. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/quantityInput/QuoteIsLoadingUpdater.d.ts +9 -0
  307. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/quantityInput/fragments/QuantityInput_QuoteFragment.d.ts +27 -0
  308. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/utils/formatDateForApi.d.ts +2 -0
  309. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/{utils.d.ts → utils/utils.d.ts} +3 -11
  310. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +2 -2
  311. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionsNavigation.d.ts +1 -1
  312. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionCardActions.d.ts +21 -0
  313. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/queries/getPriceListChangeOptions.d.ts +9 -0
  314. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +0 -2
  315. package/dist/esm/types/src/components/Subscriptions/tieredDisplayDropdown/TieredDisplayDropdown.d.ts +11 -0
  316. package/dist/esm/types/src/components/Subscriptions/tieredDisplayDropdown/util.d.ts +9 -0
  317. package/dist/esm/types/src/components/TaxationForm.d.ts +3 -3
  318. package/dist/esm/types/src/components/Transactions/Transactions.d.ts +1 -1
  319. package/dist/esm/types/src/components/priceListPricing/PricingTooltip.d.ts +43 -0
  320. package/dist/esm/types/src/components/priceListPricing/components/ChargePriceTiers.d.ts +23 -0
  321. package/dist/esm/types/src/components/priceListPricing/components/PriceTierPrice.d.ts +7 -0
  322. package/dist/esm/types/src/components/priceListPricing/components/PriceTierRow.d.ts +13 -0
  323. package/dist/esm/types/src/components/priceListPricing/misc/consts.d.ts +1 -0
  324. package/dist/esm/types/src/components/priceListPricing/types/PriceTier.d.ts +4 -0
  325. package/dist/esm/types/src/components/priceListPricing/utils/getPricingModelDescription.d.ts +2 -0
  326. package/dist/esm/types/src/components/priceListPricing/utils/getPricingModelTitle.d.ts +2 -0
  327. package/dist/esm/types/src/components/priceListPricing/utils/hasPriceTiers.d.ts +13 -0
  328. package/dist/esm/types/src/components/priceListPricing/utils/priceListChargeUtil.ts/chargeHasPriceTiers.d.ts +12 -0
  329. package/dist/esm/types/src/components/priceListPricing/utils/priceListChargeUtil.ts/getChargeBasePrice.d.ts +8 -0
  330. package/dist/esm/types/src/components/priceListPricing/utils/priceListChargeUtil.ts/getFirstTierPrice.d.ts +7 -0
  331. package/dist/esm/types/src/contexts/BrandContext.d.ts +11 -2
  332. package/dist/esm/types/src/graphql/QuoteRequests.d.ts +0 -5
  333. package/dist/esm/types/src/graphql/mutations/quoteChargeDelete.d.ts +11 -2
  334. package/dist/esm/types/src/graphql/queries/getBranding.d.ts +7 -2
  335. package/dist/esm/types/src/graphql/queries/getCurrentUserData.d.ts +11 -7
  336. package/dist/esm/types/src/graphql/queries/getFormattedQuote.d.ts +139 -1
  337. package/dist/esm/types/src/graphql/queries/getPriceListChangeOptions.d.ts +4 -4
  338. package/dist/esm/types/src/graphql/queries/getQuote.d.ts +29 -2
  339. package/dist/esm/types/src/graphql-codegen/exportedScalarTypes.d.ts +6 -0
  340. package/dist/esm/types/src/hooks/quotes/useSendAcceptQuote.d.ts +2 -1
  341. package/dist/esm/types/src/hooks/useAllErrorFormats.d.ts +1 -0
  342. package/dist/esm/types/src/hooks/useCreateQueryClient.d.ts +2 -0
  343. package/dist/esm/types/src/hooks/useCurrentUserData.d.ts +11 -7
  344. package/dist/esm/types/src/hooks/useIsMobile.d.ts +9 -0
  345. package/dist/esm/types/src/hooks/usePaymentMethod.d.ts +47 -6
  346. package/dist/esm/types/src/hooks/usePaymentPlugins.d.ts +13 -27
  347. package/dist/esm/types/src/index.d.ts +2 -2
  348. package/dist/esm/types/src/utils/QueryKeyFactory.d.ts +106 -0
  349. package/dist/esm/types/src/utils/addonPlanUtils/addonPlanUtils.d.ts +5 -0
  350. package/dist/esm/types/src/utils/addonPlanUtils/getAddonsForBillingPeriod.d.ts +8 -0
  351. package/dist/esm/types/src/utils/addonPlanUtils/hasUnpurchasedAddonPricelists.d.ts +15 -0
  352. package/dist/esm/types/src/utils/apiUtils/invokePlugin.d.ts +10 -0
  353. package/dist/esm/types/src/utils/chargeUtils.d.ts +5 -2
  354. package/dist/esm/types/src/utils/createStateContext.d.ts +11 -0
  355. package/dist/esm/types/src/utils/createValueContext.d.ts +14 -0
  356. package/dist/esm/types/src/utils/featureAddonUtils/featureAddonUtils.d.ts +20 -0
  357. package/dist/esm/types/src/utils/featureAddonUtils/isAddonPurchased.d.ts +24 -0
  358. package/dist/esm/types/src/utils/formatCurrency.d.ts +1 -0
  359. package/dist/esm/types/src/utils/priceListUtils/doesPriceListHaveFlatFeeCharges.d.ts +12 -0
  360. package/dist/esm/types/src/utils/priceListUtils/getPrice.d.ts +11 -0
  361. package/dist/esm/types/src/utils/priceListUtils/priceDescription.d.ts +6 -0
  362. package/dist/esm/types/src/utils/priceListUtils/priceListPriceText.d.ts +19 -0
  363. package/dist/esm/types/src/utils/pricePickerUtils.d.ts +4 -4
  364. package/dist/index.d.ts +33 -13
  365. package/package.json +3 -3
  366. package/dist/cjs/types/src/components/PaymentForm/CheckoutFooter.d.ts +0 -13
  367. package/dist/cjs/types/src/components/PaymentForm/DemoPay/CreditCard/LargCardIcon.d.ts +0 -2
  368. package/dist/cjs/types/src/components/PaymentForm/DemoPay/CreditCard/PlusIcon.d.ts +0 -4
  369. package/dist/cjs/types/src/components/PaymentForm/PaymentMethodDetails.d.ts +0 -7
  370. package/dist/cjs/types/src/components/PaymentForm/PaymentMethodSelector.d.ts +0 -7
  371. package/dist/cjs/types/src/components/PaymentForm/SavePaymentMethodFooter.d.ts +0 -6
  372. package/dist/cjs/types/src/components/PaymentForm/Stripe/PaymentMethodForm.d.ts +0 -7
  373. package/dist/cjs/types/src/components/PaymentForm/hooks/usePaymentMethodSelectorPlugin.d.ts +0 -10
  374. package/dist/cjs/types/src/components/PaymentForm/useRemovePaymentMethod.d.ts +0 -3
  375. package/dist/cjs/types/src/components/PaymentForm/useSetDefaultPaymentMethod.d.ts +0 -6
  376. package/dist/cjs/types/src/components/Subscriptions/QuantityDrawerContainer.d.ts +0 -15
  377. package/dist/cjs/types/src/components/Subscriptions/TieredDisplayDropdown.d.ts +0 -8
  378. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanAddonsCard.d.ts +0 -10
  379. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PriceListCardDesktop.d.ts +0 -15
  380. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardPriceDescription.d.ts +0 -13
  381. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +0 -9
  382. package/dist/cjs/types/src/contexts/PaymentContext.d.ts +0 -10
  383. package/dist/cjs/types/src/graphql/mutations/billingDetailsUpdate.d.ts +0 -6
  384. package/dist/cjs/types/src/graphql/mutations/quoteAddonCreate.d.ts +0 -7
  385. package/dist/cjs/types/src/graphql/mutations/quoteChangeCreate.d.ts +0 -8
  386. package/dist/cjs/types/src/graphql/mutations/quoteChangeDelete.d.ts +0 -6
  387. package/dist/cjs/types/src/graphql/mutations/quoteChargeUpdate.d.ts +0 -13
  388. package/dist/cjs/types/src/graphql/queries/getAddonPlans.d.ts +0 -37
  389. package/dist/cjs/types/src/graphql/queries/getBillingDetails.d.ts +0 -6
  390. package/dist/cjs/types/src/hooks/quotes/useQuoteCreate.d.ts +0 -9
  391. package/dist/cjs/types/src/hooks/quotes/useQuoteUpdateFeatureAddon.d.ts +0 -7
  392. package/dist/cjs/types/src/hooks/usePriceListChangeOptions.d.ts +0 -9
  393. package/dist/cjs/types/src/hooks/useToggleAddonQuoteChange.d.ts +0 -7
  394. package/dist/cjs/types/src/utils/GraphQLClient.d.ts +0 -2
  395. package/dist/cjs/types/src/utils/addonPlanUtils.d.ts +0 -7
  396. package/dist/cjs/types/src/utils/featureAddonUtils.d.ts +0 -6
  397. package/dist/esm/types/src/components/PaymentForm/CheckoutFooter.d.ts +0 -13
  398. package/dist/esm/types/src/components/PaymentForm/DemoPay/CreditCard/LargCardIcon.d.ts +0 -2
  399. package/dist/esm/types/src/components/PaymentForm/DemoPay/CreditCard/PlusIcon.d.ts +0 -4
  400. package/dist/esm/types/src/components/PaymentForm/PaymentMethodDetails.d.ts +0 -7
  401. package/dist/esm/types/src/components/PaymentForm/PaymentMethodSelector.d.ts +0 -7
  402. package/dist/esm/types/src/components/PaymentForm/SavePaymentMethodFooter.d.ts +0 -6
  403. package/dist/esm/types/src/components/PaymentForm/Stripe/PaymentMethodForm.d.ts +0 -7
  404. package/dist/esm/types/src/components/PaymentForm/hooks/usePaymentMethodSelectorPlugin.d.ts +0 -10
  405. package/dist/esm/types/src/components/PaymentForm/useRemovePaymentMethod.d.ts +0 -3
  406. package/dist/esm/types/src/components/PaymentForm/useSetDefaultPaymentMethod.d.ts +0 -6
  407. package/dist/esm/types/src/components/Subscriptions/QuantityDrawerContainer.d.ts +0 -15
  408. package/dist/esm/types/src/components/Subscriptions/TieredDisplayDropdown.d.ts +0 -8
  409. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanAddonsCard.d.ts +0 -10
  410. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PriceListCardDesktop.d.ts +0 -15
  411. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardPriceDescription.d.ts +0 -13
  412. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +0 -9
  413. package/dist/esm/types/src/contexts/PaymentContext.d.ts +0 -10
  414. package/dist/esm/types/src/graphql/mutations/billingDetailsUpdate.d.ts +0 -6
  415. package/dist/esm/types/src/graphql/mutations/quoteAddonCreate.d.ts +0 -7
  416. package/dist/esm/types/src/graphql/mutations/quoteChangeCreate.d.ts +0 -8
  417. package/dist/esm/types/src/graphql/mutations/quoteChangeDelete.d.ts +0 -6
  418. package/dist/esm/types/src/graphql/mutations/quoteChargeUpdate.d.ts +0 -13
  419. package/dist/esm/types/src/graphql/queries/getAddonPlans.d.ts +0 -37
  420. package/dist/esm/types/src/graphql/queries/getBillingDetails.d.ts +0 -6
  421. package/dist/esm/types/src/hooks/quotes/useQuoteCreate.d.ts +0 -9
  422. package/dist/esm/types/src/hooks/quotes/useQuoteUpdateFeatureAddon.d.ts +0 -7
  423. package/dist/esm/types/src/hooks/usePriceListChangeOptions.d.ts +0 -9
  424. package/dist/esm/types/src/hooks/useToggleAddonQuoteChange.d.ts +0 -7
  425. package/dist/esm/types/src/utils/GraphQLClient.d.ts +0 -2
  426. package/dist/esm/types/src/utils/addonPlanUtils.d.ts +0 -7
  427. package/dist/esm/types/src/utils/featureAddonUtils.d.ts +0 -6
  428. /package/dist/cjs/types/src/components/PaymentForm/{CouponEditor.d.ts → components/CouponEditor.d.ts} +0 -0
  429. /package/dist/cjs/types/src/components/PaymentForm/{PaymentFormTypes.d.ts → types/PaymentFormTypes.d.ts} +0 -0
  430. /package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/{SubscriptionCardHeader.d.ts → subscriptionCardHeader/SubscriptionCardHeader.d.ts} +0 -0
  431. /package/dist/cjs/types/src/utils/{apiUtils.d.ts → apiUtils/apiUtils.d.ts} +0 -0
  432. /package/dist/esm/types/src/components/PaymentForm/{CouponEditor.d.ts → components/CouponEditor.d.ts} +0 -0
  433. /package/dist/esm/types/src/components/PaymentForm/{PaymentFormTypes.d.ts → types/PaymentFormTypes.d.ts} +0 -0
  434. /package/dist/esm/types/src/components/Subscriptions/subscriptionsList/{SubscriptionCardHeader.d.ts → subscriptionCardHeader/SubscriptionCardHeader.d.ts} +0 -0
  435. /package/dist/esm/types/src/utils/{apiUtils.d.ts → apiUtils/apiUtils.d.ts} +0 -0
@@ -1,8 +1,5 @@
1
- import { PaymentMethod } from '@bunnyapp/common';
2
- declare const useAutoSetDefaultPaymentMethod: ({ accountId, token, handleSetDefault, setDefaultPaymentMethodLoading, enabled, }: {
3
- accountId: string | undefined;
4
- token?: string;
5
- handleSetDefault: (paymentMethod: PaymentMethod) => void;
1
+ declare const useAutoSetDefaultPaymentMethod: ({ handleSetDefault, setDefaultPaymentMethodLoading, enabled, }: {
2
+ handleSetDefault: (paymentMethodId: string) => void;
6
3
  setDefaultPaymentMethodLoading: boolean;
7
4
  enabled?: boolean;
8
5
  }) => void;
@@ -0,0 +1,25 @@
1
+ import { FormattedInvoice, Invoice, PluginData, Quote } from '@bunnyapp/common';
2
+ import { PaymentType } from '../types/PaymentType';
3
+ declare const useHandlePayment: ({ quote, invoice, onPaymentSuccess, onPaymentHoldSuccess, plugin, paymentHoldOptions, accountId, }: {
4
+ quote?: Quote;
5
+ invoice?: FormattedInvoice | Invoice;
6
+ onPaymentSuccess?: (response: any) => void;
7
+ onPaymentHoldSuccess?: (response: any) => void;
8
+ plugin: PluginData | undefined;
9
+ paymentHoldOptions: {
10
+ payToAccept?: boolean;
11
+ amountToHold?: number;
12
+ };
13
+ accountId: string | undefined;
14
+ }) => {
15
+ handleApproveHold: (overridePaymentMethodId?: string) => Promise<void>;
16
+ handlePayment: (overridePaymentMethodId: string) => Promise<void>;
17
+ handleCheckoutNoPayment: import("@tanstack/react-query").UseMutateFunction<{
18
+ savePaymentMethod: boolean | undefined;
19
+ }, Error, void, unknown>;
20
+ isPaying: boolean;
21
+ isPaid: boolean;
22
+ paymentType: PaymentType;
23
+ formattedAmountDue: string | undefined;
24
+ };
25
+ export default useHandlePayment;
@@ -0,0 +1,6 @@
1
+ export declare function usePayableCurrency({ payableCurrencyId }: {
2
+ payableCurrencyId?: string;
3
+ }): {
4
+ currencyId: string | undefined;
5
+ isCurrencyIdLoading: boolean;
6
+ };
@@ -0,0 +1 @@
1
+ export declare function usePaymentButtonText(): string;
@@ -0,0 +1,2 @@
1
+ declare function useRemovePaymentMethod(onRemovePaymentMethod?: () => void, onError?: (message: string) => void): (data: any) => Promise<void>;
2
+ export default useRemovePaymentMethod;
@@ -0,0 +1,5 @@
1
+ declare function useSetDefaultPaymentMethod(onError?: (message: string) => void, onSuccess?: () => void): {
2
+ setDefaultPaymentMethod: (paymentMethodId: string) => Promise<void>;
3
+ loading: boolean;
4
+ };
5
+ export default useSetDefaultPaymentMethod;
@@ -0,0 +1,5 @@
1
+ export declare enum PaymentType {
2
+ PAY = "PAY",
3
+ APPROVE_HOLD = "APPROVE_HOLD",
4
+ CHECKOUT_NO_PAYMENT = "CHECKOUT_NO_PAYMENT"
5
+ }
@@ -1,3 +1,7 @@
1
1
  import { InvoiceQuoteContextProps } from '../../contexts/InvoiceQuoteContext';
2
2
  export declare const MarkupContainer: any;
3
- export default function Quote({ id, invoiceQuoteViewComponent, onInvoiceDownloadError, onPaymentSuccess, shadow, className, hideDownloadButton, onQuoteLoaded, }: InvoiceQuoteContextProps): import("react/jsx-runtime").JSX.Element;
3
+ type QuoteProps = InvoiceQuoteContextProps & {
4
+ onQuoteAccepted?: () => void;
5
+ };
6
+ export default function Quote({ id, invoiceQuoteViewComponent, onInvoiceDownloadError, onPaymentSuccess, shadow, className, hideDownloadButton, onQuoteLoaded, onQuoteAccepted, }: QuoteProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,4 @@
1
+ declare function QuoteProvider({ children }: {
2
+ children: React.ReactNode;
3
+ }): import("react/jsx-runtime").JSX.Element;
4
+ export default QuoteProvider;
@@ -1,6 +1,8 @@
1
- import { PriceList, Quote } from '@bunnyapp/common';
1
+ import { PriceList } from '@bunnyapp/common';
2
+ import { ResultOf } from 'gql.tada';
3
+ import { QuoteContext_QuoteFragment } from '../fragments/quoteFragment';
2
4
  export type QuoteContextValues = {
3
- quote: Quote | undefined;
5
+ quote: ResultOf<typeof QuoteContext_QuoteFragment> | null | undefined;
4
6
  selectedPriceList: PriceList | undefined;
5
7
  isQuotePending: boolean;
6
8
  isAddonPlanLoading: boolean;
@@ -13,9 +15,6 @@ export type QuoteContextValues = {
13
15
  onClearQuote: () => void;
14
16
  onChangeSelectedPriceList: (priceList: PriceList) => void;
15
17
  onChangeQuantity: (priceListChargeId: string, quantity: number) => void;
18
+ onRecalculateTaxes: (quoteId: string) => void;
16
19
  };
17
20
  export declare const QuoteContext: import("react").Context<QuoteContextValues>;
18
- declare function QuoteProvider({ children }: {
19
- children: React.ReactNode;
20
- }): import("react/jsx-runtime").JSX.Element;
21
- export default QuoteProvider;
@@ -0,0 +1,65 @@
1
+ export declare const QuoteFields_QuoteFragment: import("gql.tada").TadaDocumentNode<{
2
+ accountId: string;
3
+ amount: number;
4
+ amountDue: number | null;
5
+ smallUnitAmountDue: number | null;
6
+ currencyId: string;
7
+ id: string | null;
8
+ payableId: string | null;
9
+ periodAmount: number | null;
10
+ subtotal: number;
11
+ taxAmount: number;
12
+ startDate: unknown;
13
+ formattedQuote: {
14
+ html: string | null;
15
+ } | null;
16
+ amountsByPeriod: {
17
+ amount: number | null;
18
+ startDate: unknown;
19
+ }[];
20
+ kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE";
21
+ quoteChanges: {
22
+ currencyId: string;
23
+ id: string | null;
24
+ kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE";
25
+ charges: {
26
+ subtotal: number | null;
27
+ amountsByPeriod: {
28
+ amount: number | null;
29
+ startDate: unknown;
30
+ }[] | null;
31
+ amount: number | null;
32
+ billingPeriod: "ONCE" | "MONTHLY" | "QUARTERLY" | "SEMI_ANNUAL" | "ANNUAL" | null;
33
+ currencyId: string;
34
+ feature: {
35
+ unitName: string | null;
36
+ } | null;
37
+ id: string | null;
38
+ name: string | null;
39
+ priceListCharge: {
40
+ id: string;
41
+ } | null;
42
+ priceList: {
43
+ id: string;
44
+ } | null;
45
+ coupon: {
46
+ couponCode: string;
47
+ } | null;
48
+ quantity: number | null;
49
+ kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
50
+ }[];
51
+ priceList: {
52
+ id: string;
53
+ plan: {
54
+ name: string;
55
+ } | null;
56
+ product: {
57
+ name: string;
58
+ } | null;
59
+ } | null;
60
+ }[] | null;
61
+ }, {}, {
62
+ fragment: "QuoteFields_QuoteFragment";
63
+ on: "Quote";
64
+ masked: false;
65
+ }>;
@@ -0,0 +1,53 @@
1
+ /**
2
+ * Central quote fragment for QuoteProvider context.
3
+ *
4
+ * This fragment aggregates all child component fragments to ensure the QuoteProvider
5
+ * fetches all required quote data upfront. When a component needs specific quote fields,
6
+ * add its fragment here to maintain type safety and avoid over-fetching.
7
+ *
8
+ * Pattern: Fragment Composition
9
+ * - Components define their data needs via fragments
10
+ * - Provider composes these fragments into a single query
11
+ * - Type safety ensures all required fields are fetched
12
+ */
13
+ export declare const QuoteContext_QuoteFragment: import("gql.tada").TadaDocumentNode<{
14
+ id: string | null;
15
+ currencyId: string;
16
+ amountDue: number | null;
17
+ startDate: unknown;
18
+ quoteChanges: {
19
+ id: string | null;
20
+ kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE";
21
+ priceList: {
22
+ id: string;
23
+ } | null;
24
+ charges: {
25
+ priceListCharge: {
26
+ id: string;
27
+ chargeType: "ONE_TIME" | "RECURRING" | "USAGE" | null;
28
+ pricingModel: "FLAT" | "TIERED" | "VOLUME" | "BANDS" | null;
29
+ quantityMin: number | null;
30
+ quantityMax: number | null;
31
+ selfServiceQuantity: boolean | null;
32
+ } | null;
33
+ feature: {
34
+ id: string;
35
+ } | null;
36
+ quantity: number | null;
37
+ id: string | null;
38
+ }[];
39
+ }[] | null;
40
+ [$tada.fragmentRefs]: {
41
+ PlanPickerCheckoutBar_QuoteFragment: "Quote";
42
+ } & {
43
+ CheckoutBarSummarySection_QuoteFragment: "Quote";
44
+ } & {
45
+ AddonPlanRow_QuoteFragment: "Quote";
46
+ } & {
47
+ FeatureAddonRow_QuoteFragment: "Quote";
48
+ };
49
+ }, {}, {
50
+ fragment: "QuoteContext_QuoteFragment";
51
+ on: "Quote";
52
+ masked: true;
53
+ }>;
@@ -0,0 +1,12 @@
1
+ export type FeatureQuantitiesDict = Record<string, number | undefined>;
2
+ /**
3
+ * Hook to manage feature quantities using a dictionary keyed by feature ID
4
+ * This tracks quantities for each unique feature.
5
+ */
6
+ export declare function useFeatureQuantities({ onFeatureQuantitiesChanged, }: {
7
+ onFeatureQuantitiesChanged?: (featureQuantities: FeatureQuantitiesDict) => void;
8
+ }): {
9
+ featureQuantities: FeatureQuantitiesDict;
10
+ getFeatureQuantity: (featureId: string, featureQuantities: FeatureQuantitiesDict) => number | undefined;
11
+ onUpdateFeatureQuantity: (featureId: string, quantity: number) => void;
12
+ };
@@ -0,0 +1,19 @@
1
+ import { PriceList, Subscription } from '@bunnyapp/common';
2
+ export declare const useQuoteCreate: ({ upgradingSubscription, selectedPriceList, token, }: {
3
+ upgradingSubscription?: Subscription;
4
+ selectedPriceList?: PriceList;
5
+ token?: string;
6
+ }) => {
7
+ quote: {
8
+ [$tada.fragmentRefs]: {
9
+ QuoteContext_QuoteFragment: "Quote";
10
+ };
11
+ } | {
12
+ [$tada.fragmentRefs]: {
13
+ QuoteContext_QuoteFragment: "Quote";
14
+ } & {
15
+ FormattedQuoteFields_QuoteFragment: "Quote";
16
+ };
17
+ } | null | undefined;
18
+ isQuotePending: boolean;
19
+ };
@@ -1,14 +1,11 @@
1
- import { PriceList, Quote } from '@bunnyapp/common';
1
+ import { PriceList } from '@bunnyapp/common';
2
+ import { ResultOf } from 'gql.tada';
3
+ import { QuoteContext_QuoteFragment } from '../fragments/quoteFragment';
2
4
  export declare const useQuoteQuantities: ({ selectedPriceList, quote, }: {
3
5
  selectedPriceList: PriceList;
4
- quote?: Quote;
6
+ quote: ResultOf<typeof QuoteContext_QuoteFragment> | null | undefined;
5
7
  }) => {
6
8
  onChangeQuantity: (priceListChargeId: string, quantity: number) => void;
7
9
  getFeatureQuantity: (featureId: string) => number | undefined;
8
10
  isUpdatingCharges: boolean;
9
11
  };
10
- /**
11
- * Hook to manage feature quantities using a dictionary keyed by feature ID
12
- * This tracks quantities for each unique feature.
13
- */
14
- export type FeatureQuantitiesDict = Record<string, number | undefined>;
@@ -0,0 +1,11 @@
1
+ export declare const useQuoteRecalculateTaxes: () => {
2
+ quoteRecalculateTaxesMutation: import("@tanstack/react-query").UseMutateFunction<{
3
+ [$tada.fragmentRefs]: {
4
+ QuoteContext_QuoteFragment: "Quote";
5
+ };
6
+ id: string | null;
7
+ } | null | undefined, Error, {
8
+ quoteId: string;
9
+ }, unknown>;
10
+ isRecalculatingTaxes: boolean;
11
+ };
@@ -0,0 +1,5 @@
1
+ import { FragmentOf } from 'gql.tada';
2
+ import { QuoteContext_QuoteFragment } from '../fragments/quoteFragment';
3
+ export declare const useSetQuoteQueryData: () => {
4
+ setQuoteQueryData: (quoteId: string, quote: FragmentOf<typeof QuoteContext_QuoteFragment> | null) => void;
5
+ };
@@ -0,0 +1,16 @@
1
+ declare const quoteChangeUpdate: ({ quoteChangeId, charges, apiHost, token, }: {
2
+ quoteChangeId: string;
3
+ charges: {
4
+ id: string;
5
+ quantity: number;
6
+ }[];
7
+ apiHost: string;
8
+ token: string;
9
+ }) => Promise<{
10
+ quote: {
11
+ [$tada.fragmentRefs]: {
12
+ QuoteContext_QuoteFragment: "Quote";
13
+ };
14
+ };
15
+ } | null | undefined>;
16
+ export default quoteChangeUpdate;
@@ -0,0 +1,11 @@
1
+ declare const quoteRecalculateTaxes: ({ quoteId, apiHost, token, }: {
2
+ quoteId: string;
3
+ apiHost: string;
4
+ token?: string;
5
+ }) => Promise<{
6
+ [$tada.fragmentRefs]: {
7
+ QuoteContext_QuoteFragment: "Quote";
8
+ };
9
+ id: string | null;
10
+ } | null | undefined>;
11
+ export default quoteRecalculateTaxes;
@@ -0,0 +1,16 @@
1
+ export declare const getQuote: ({ id, token, apiHost, includeHtmlField, }: {
2
+ id: string;
3
+ token?: string;
4
+ apiHost: string;
5
+ includeHtmlField?: boolean;
6
+ }) => Promise<{
7
+ [$tada.fragmentRefs]: {
8
+ QuoteContext_QuoteFragment: "Quote";
9
+ };
10
+ } | {
11
+ [$tada.fragmentRefs]: {
12
+ QuoteContext_QuoteFragment: "Quote";
13
+ } & {
14
+ FormattedQuoteFields_QuoteFragment: "Quote";
15
+ };
16
+ } | null>;
@@ -0,0 +1,11 @@
1
+ export declare function getQuantityFromQuoteChange(quoteChange: {
2
+ priceList: {
3
+ id: string;
4
+ } | null;
5
+ charges: {
6
+ feature: {
7
+ id: string;
8
+ } | null;
9
+ quantity: number | null;
10
+ }[];
11
+ } | null, featureId: string): number | null | undefined;
@@ -0,0 +1,4 @@
1
+ import { QuoteChangeKind } from '@/graphql-codegen/exportedScalarTypes';
2
+ export declare function isQuoteChangeEditable(quoteChange: {
3
+ kind: QuoteChangeKind;
4
+ }): boolean;
@@ -1,9 +1,9 @@
1
1
  import { Transaction } from '@bunnyapp/common';
2
2
  import { ShadowType } from '../../types/shadowType';
3
3
  import { TransactionListColumnType } from '../Transactions/transactionsList/TransactionsListDesktop';
4
- declare function Quotes({ className, columns, filter, filterQuotes, sort, noQuotesMessage, onQuoteClick, quoteComponent, searchBarClassName, shadow, showSearchBar, showTitle, title, style, suppressQuoteDisplay, useModal, }: {
5
- /** A custom component to render instead of the default invoice component */
6
- quoteComponent?: React.ReactNode;
4
+ declare function Quotes({ className, columns, filter, filterQuotes, sort, noQuotesMessage, onQuoteClick, renderQuote, searchBarClassName, shadow, showSearchBar, showTitle, title, style, suppressQuoteDisplay, useModal, }: {
5
+ /** Render a custom quote component. Receives the quoteId as a parameter. */
6
+ renderQuote?: (quote: Transaction) => React.ReactNode;
7
7
  /** Whether to show the search bar */
8
8
  showSearchBar?: boolean;
9
9
  /** Whether to show the title */
@@ -1,13 +1,12 @@
1
- import { PluginData, Quote } from '@bunnyapp/common';
2
- export default function PaymentForms({ quote, handlePaymentSuccess, handlePaymentFail, handleSubmit, proceedingToPayment, accountId, overrideToken, customCheckoutFunction, defaultValues, }: {
1
+ import { Quote } from '@bunnyapp/common';
2
+ export default function PaymentForms({ quote, handlePaymentSuccess, handleSubmit, proceedingToPayment, accountId, overrideToken, customCheckoutFunction, defaultValues, }: {
3
3
  quote?: Quote;
4
4
  handlePaymentSuccess: () => void;
5
- handlePaymentFail: (error: any) => void;
6
5
  handleSubmit: (formData: FormData) => void;
7
6
  proceedingToPayment: boolean;
8
7
  accountId?: string;
9
8
  overrideToken?: string;
10
- customCheckoutFunction?: (plugin: PluginData | undefined) => Promise<any>;
9
+ customCheckoutFunction?: (pluginId: string, paymentMethodId: string) => Promise<any>;
11
10
  defaultValues?: DefaultSignupValues;
12
11
  }): import("react/jsx-runtime").JSX.Element;
13
12
  export type FormData = {
@@ -1,6 +1,7 @@
1
1
  import { Subscription } from '@bunnyapp/common';
2
- export declare function AddonSubscriptionsCards({ onCancelSubscriptionClick, subscriptions, subscription, showInactive, }: {
3
- onCancelSubscriptionClick?: (subscription: Subscription) => void;
2
+ export declare function AddonSubscriptionsCards({ onCancelSubscriptionClick, onChangePlanClick, subscriptions, subscription, showInactive, }: {
3
+ onCancelSubscriptionClick: (subscription: Subscription) => void;
4
+ onChangePlanClick: (subscription: Subscription) => void;
4
5
  subscriptions: Subscription[];
5
6
  subscription: Subscription;
6
7
  showInactive: boolean;
@@ -1,14 +1,10 @@
1
1
  export declare const Subscriptions_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
2
- state: "ACTIVE" | "TRIAL" | "CANCELED" | "EXPIRED" | "TRIAL_EXPIRED" | "PENDING";
2
+ state: "TRIAL" | "ACTIVE" | "CANCELED" | "EXPIRED" | "TRIAL_EXPIRED" | "PENDING";
3
3
  }, {}, {
4
4
  fragment: "Subscriptions_SubscriptionFragment";
5
5
  on: "Subscription";
6
6
  masked: true;
7
7
  }>;
8
- export type EditingQuoteDataType = {
9
- id: string;
10
- isTrial: boolean;
11
- };
12
8
  declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPreviewMode, productId, className, styles: userStyles, noSubscriptionsComponent, showInactiveSubscriptions, showInactiveSubscriptionsToggle, }: {
13
9
  handlePortalErrors?: (errors: any) => void;
14
10
  companyName: string;
@@ -1,14 +1,10 @@
1
1
  import { Subscription } from '@bunnyapp/common';
2
2
  import '../../styles/index.less';
3
- export type EditingQuoteDataType = {
4
- id: string;
5
- isTrial: boolean;
6
- };
7
3
  declare const SubscriptionsListContainer: ({ companyName, showInactive, onCancelSubscriptionClick, onChangePlanClick, noSubscriptionsComponent, subscriptions, subscriptionsAreLoading, }: {
8
4
  companyName: string;
9
5
  showInactive?: boolean;
10
- onCancelSubscriptionClick?: (subscription: Subscription) => void;
11
- onChangePlanClick?: (subscription: Subscription) => void;
6
+ onCancelSubscriptionClick: (subscription: Subscription) => void;
7
+ onChangePlanClick: (subscription: Subscription) => void;
12
8
  noSubscriptionsComponent?: React.ReactNode;
13
9
  subscriptions: Subscription[];
14
10
  subscriptionsAreLoading: boolean;
@@ -1,6 +1,5 @@
1
1
  import { Subscription } from '@bunnyapp/common';
2
- declare const PlanPicker: ({ upgradingSubscription, onGoBack, areSubscriptionsLoading, subscriptions, }: {
3
- upgradingSubscription?: Subscription;
2
+ declare const PlanPicker: ({ onGoBack, areSubscriptionsLoading, subscriptions, }: {
4
3
  onGoBack?: () => void;
5
4
  areSubscriptionsLoading: boolean;
6
5
  subscriptions: Subscription[];
@@ -1,4 +1,5 @@
1
- import { BillingPeriod, PriceList, PriceListChangeOptions, Product, Subscription } from '@bunnyapp/common';
1
+ import { BillingPeriod } from '@/graphql-codegen/exportedScalarTypes';
2
+ import { PriceList, PriceListChangeOptions, Product, Subscription } from '@bunnyapp/common';
2
3
  import { Dispatch, SetStateAction } from 'react';
3
4
  type PriceListGridProps = {
4
5
  availablePriceLists: PriceList[];
@@ -8,7 +9,7 @@ type PriceListGridProps = {
8
9
  subscriptions: Subscription[];
9
10
  priceListStart: number;
10
11
  setPriceListStart: Dispatch<SetStateAction<number>>;
11
- selectedBillingPeriod?: BillingPeriod | undefined;
12
+ selectedBillingPeriod: BillingPeriod | null;
12
13
  onClickPriceListCard: (priceList: PriceList) => void;
13
14
  };
14
15
  declare const PriceListGrid: ({ availablePriceLists, priceListChangeOptions, priceListStart, selectedPriceList, selectedProduct, setPriceListStart, subscriptions, selectedBillingPeriod, onClickPriceListCard, }: PriceListGridProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { PriceListCharge } from '@bunnyapp/common';
2
- declare const CheckoutBarInput: ({ disabled, charge, quantity, onQuantityChanged, }: {
2
+ declare const CheckoutBarInput: ({ disabled, priceListCharge, quantity, onQuantityChanged, }: {
3
3
  disabled?: boolean;
4
- charge: PriceListCharge;
4
+ priceListCharge: PriceListCharge;
5
5
  quantity: number;
6
6
  onQuantityChanged: (quantity: number) => void;
7
7
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,19 @@
1
1
  import { PriceList } from '@bunnyapp/common';
2
- declare const CheckoutBarSummarySection: ({ open, selectedPriceList, onClickCheckout, }: {
3
- open: boolean;
2
+ export declare const CheckoutBarSummarySection_QuoteFragment: import("gql.tada").TadaDocumentNode<{
3
+ quoteChanges: {
4
+ charges: {
5
+ id: string | null;
6
+ }[];
7
+ }[] | null;
8
+ [$tada.fragmentRefs]: {
9
+ CheckoutPrice_QuoteFragment: "Quote";
10
+ };
11
+ }, {}, {
12
+ fragment: "CheckoutBarSummarySection_QuoteFragment";
13
+ on: "Quote";
14
+ masked: true;
15
+ }>;
16
+ declare const CheckoutBarSummarySection: ({ selectedPriceList, onClickCheckout, }: {
4
17
  selectedPriceList: PriceList;
5
18
  onClickCheckout: () => void;
6
19
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
- declare const CheckoutButton: ({ checkoutButtonDisabled, onClickCheckout, loading, tooltipText, }: {
2
- checkoutButtonDisabled: boolean;
1
+ declare const CheckoutButton: ({ disabled, onClickCheckout, loading, tooltipText, }: {
2
+ disabled: boolean;
3
3
  onClickCheckout: () => void;
4
4
  loading: boolean;
5
5
  tooltipText?: string;
@@ -1,7 +1,16 @@
1
- import { PriceList, Quote } from "@bunnyapp/common";
2
- declare const CheckoutPrice: ({ isUsage, quote, selectedPriceList, }: {
1
+ import { PriceList } from '@bunnyapp/common';
2
+ import { FragmentOf } from 'gql.tada';
3
+ export declare const CheckoutPrice_QuoteFragment: import("gql.tada").TadaDocumentNode<{
4
+ periodAmount: number | null;
5
+ amountDue: number | null;
6
+ }, {}, {
7
+ fragment: "CheckoutPrice_QuoteFragment";
8
+ on: "Quote";
9
+ masked: true;
10
+ }>;
11
+ declare const CheckoutPrice: ({ isUsage, quote: maskedQuote, selectedPriceList, }: {
3
12
  isUsage: boolean;
4
- quote?: Quote;
13
+ quote?: FragmentOf<typeof CheckoutPrice_QuoteFragment>;
5
14
  selectedPriceList: PriceList;
6
15
  }) => import("react/jsx-runtime").JSX.Element | null;
7
16
  export default CheckoutPrice;
@@ -1,4 +1,23 @@
1
1
  import { PriceList } from '@bunnyapp/common';
2
+ export declare const PlanPickerCheckoutBar_QuoteFragment: import("gql.tada").TadaDocumentNode<{
3
+ [$tada.fragmentRefs]: {
4
+ Checkout_QuoteFragment: "Quote";
5
+ };
6
+ quoteChanges: {
7
+ priceList: {
8
+ id: string;
9
+ } | null;
10
+ charges: {
11
+ priceListCharge: {
12
+ id: string;
13
+ } | null;
14
+ }[];
15
+ }[] | null;
16
+ }, {}, {
17
+ fragment: "PlanPickerCheckoutBar_QuoteFragment";
18
+ on: "Quote";
19
+ masked: true;
20
+ }>;
2
21
  declare const PlanPickerCheckoutBar: ({ selectedPriceList, handlePortalErrors, onCheckoutSuccess, }: {
3
22
  selectedPriceList: PriceList;
4
23
  handlePortalErrors?: (errors: any) => void;
@@ -1,10 +1,11 @@
1
- import { BillingPeriod, Product } from '@bunnyapp/common';
2
- import { PeriodMonths } from '../../../../../utils/pricePickerUtils';
1
+ import { BillingPeriod } from '@/graphql-codegen/exportedScalarTypes';
2
+ import { Product } from '@bunnyapp/common';
3
+ type PeriodMonths = number;
3
4
  declare const BillingPeriodSelector: ({ availableBillingPeriods, onChangeBillingPeriod, products, selectedBillingPeriod, selectedProduct, onChangeProduct, }: {
4
5
  availableBillingPeriods?: PeriodMonths[];
5
- onChangeBillingPeriod: (billingPeriod: BillingPeriod) => void;
6
+ onChangeBillingPeriod: (billingPeriod: BillingPeriod | null) => void;
6
7
  products?: Product[];
7
- selectedBillingPeriod?: BillingPeriod;
8
+ selectedBillingPeriod: BillingPeriod | null;
8
9
  selectedProduct?: Product;
9
10
  onChangeProduct: (product: Product) => void;
10
11
  }) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,4 +1,5 @@
1
- import { BillingPeriod, PriceList, PriceListChangeOptions, Product, Subscription } from '@bunnyapp/common';
1
+ import { BillingPeriod } from '@/graphql-codegen/exportedScalarTypes';
2
+ import { PriceList, PriceListChangeOptions, Product, Subscription } from '@bunnyapp/common';
2
3
  import { Dispatch, SetStateAction } from 'react';
3
4
  type PriceListGridDesktopProps = {
4
5
  availablePriceLists: PriceList[];
@@ -9,7 +10,7 @@ type PriceListGridDesktopProps = {
9
10
  setPriceListStart: Dispatch<SetStateAction<number>>;
10
11
  subscriptions: Subscription[];
11
12
  trialRemainingDays: number;
12
- selectedBillingPeriod?: BillingPeriod | undefined;
13
+ selectedBillingPeriod: BillingPeriod | null;
13
14
  onClickPriceListCard: (priceList: PriceList) => void;
14
15
  };
15
16
  declare const PriceListGridDesktop: ({ availablePriceLists, priceListChangeOptions, priceListStart, selectedPriceList, selectedProduct, setPriceListStart, subscriptions, trialRemainingDays, selectedBillingPeriod, onClickPriceListCard, }: PriceListGridDesktopProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,33 @@
1
+ import { FragmentOf } from 'gql.tada';
2
+ export declare const FeatureAddonRow_PriceListFragment: import("gql.tada").TadaDocumentNode<{
3
+ id: string;
4
+ currencyId: string;
5
+ charges: {
6
+ id: string;
7
+ name: string;
8
+ }[] | null;
9
+ [$tada.fragmentRefs]: {
10
+ PricingTooltip_PriceListFragment: "PriceList";
11
+ };
12
+ }, {}, {
13
+ fragment: "FeatureAddonRow_PriceListFragment";
14
+ on: "PriceList";
15
+ masked: true;
16
+ }>;
17
+ export declare const FeatureAddonRow_PriceListChargeFragment: import("gql.tada").TadaDocumentNode<{
18
+ id: string;
19
+ name: string;
20
+ [$tada.fragmentRefs]: {
21
+ isAddonPurchased_PriceListChargeFragment: "PriceListCharge";
22
+ } & {
23
+ PricingTooltip_PriceListChargeFragment: "PriceListCharge";
24
+ };
25
+ }, {}, {
26
+ fragment: "FeatureAddonRow_PriceListChargeFragment";
27
+ on: "PriceListCharge";
28
+ masked: true;
29
+ }>;
30
+ export declare function FeatureAddonRow({ featureAddon: maskedFeatureAddon, priceList: maskedPriceList, }: {
31
+ featureAddon: FragmentOf<typeof FeatureAddonRow_PriceListChargeFragment>;
32
+ priceList: FragmentOf<typeof FeatureAddonRow_PriceListFragment>;
33
+ }): import("react/jsx-runtime").JSX.Element;