@bunnyapp/components 1.7.0-beta.8 → 1.8.0-beta.10

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 (300) hide show
  1. package/dist/cjs/index.js +5727 -4743
  2. package/dist/cjs/types/node_modules/@reduxjs/toolkit/dist/uncheckedindexed.d.ts +5 -0
  3. package/dist/cjs/types/src/UI/Tooltip.d.ts +2 -0
  4. package/dist/cjs/types/src/UI/TruncatedText/TruncatedText.d.ts +4 -0
  5. package/dist/cjs/types/src/UI/TruncatedText/hooks/useIsTextTruncated.d.ts +3 -0
  6. package/dist/cjs/types/src/ajax.d.ts +1 -1
  7. package/dist/cjs/types/src/components/BillingDetails/BillingDetails.d.ts +3 -2
  8. package/dist/cjs/types/src/components/{BunnyProvider.d.ts → BunnyProvider/BunnyProvider.d.ts} +4 -1
  9. package/dist/cjs/types/src/components/BunnyProvider/contexts/BunnyProviderCallbacksProvider.d.ts +13 -0
  10. package/dist/cjs/types/src/components/Checkout/Checkout.d.ts +2 -1
  11. package/dist/cjs/types/src/components/Checkout/QuoteCheckout.d.ts +5 -3
  12. package/dist/cjs/types/src/components/Checkout/QuoteIsLoadingIndicator.d.ts +1 -0
  13. package/dist/cjs/types/src/components/Invoice/Invoice.d.ts +3 -1
  14. package/dist/cjs/types/src/components/PandadocPollingModal.d.ts +1 -1
  15. package/dist/cjs/types/src/components/PaymentForm/DemoPay/DemoPayFormProvider.d.ts +10 -0
  16. package/dist/cjs/types/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +2 -4
  17. package/dist/cjs/types/src/components/PaymentForm/DemoPay/hooks/useSave.d.ts +1 -5
  18. package/dist/cjs/types/src/components/PaymentForm/PaymentForm.d.ts +50 -10
  19. package/dist/cjs/types/src/components/PaymentForm/Stripe/StripeFormProvider.d.ts +5 -0
  20. package/dist/cjs/types/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +2 -4
  21. package/dist/cjs/types/src/components/PaymentForm/components/CheckoutNoPayment.d.ts +6 -0
  22. package/dist/cjs/types/src/components/PaymentForm/components/Pay.d.ts +5 -0
  23. package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodDetails/PaymentMethodDetails.d.ts +12 -0
  24. package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodDetails/components/Cancel.d.ts +1 -0
  25. package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodDetails/components/Save.d.ts +1 -0
  26. package/dist/cjs/types/src/components/PaymentForm/components/StoredPaymentMethods.d.ts +18 -0
  27. package/dist/cjs/types/src/components/PaymentForm/context/AccountIdContext.d.ts +5 -0
  28. package/dist/cjs/types/src/components/PaymentForm/context/CallbacksContext.d.ts +14 -0
  29. package/dist/cjs/types/src/components/PaymentForm/context/PaymentMethodFormVisibilityContext.d.ts +12 -0
  30. package/dist/cjs/types/src/components/PaymentForm/context/PaymentProvider.d.ts +46 -30
  31. package/dist/cjs/types/src/components/PaymentForm/fragments/PaymentForm_PaymentMethodsFragment.d.ts +3 -0
  32. package/dist/cjs/types/src/components/PaymentForm/hooks/usePay.d.ts +14 -0
  33. package/dist/cjs/types/src/components/PaymentForm/hooks/usePayableCurrency.d.ts +2 -1
  34. package/dist/cjs/types/src/components/PaymentForm/hooks/usePaymentButtonText.d.ts +7 -1
  35. package/dist/cjs/types/src/components/PaymentForm/hooks/usePaymentHold.d.ts +18 -0
  36. package/dist/cjs/types/src/components/PaymentForm/hooks/useRemovePaymentMethod.d.ts +4 -1
  37. package/dist/cjs/types/src/components/PaymentForm/hooks/useSave.d.ts +16 -0
  38. package/dist/cjs/types/src/components/PaymentForm/types/PaymentType.d.ts +2 -1
  39. package/dist/cjs/types/src/components/Quote/Quote.d.ts +31 -2
  40. package/dist/{esm/types/src/components/Quote → cjs/types/src/components/Quote/components}/AcceptQuoteModal.d.ts +3 -3
  41. package/dist/cjs/types/src/components/Quote/components/NoSigningPluginsForm.d.ts +17 -0
  42. package/dist/cjs/types/src/components/Quote/components/PaymentHoldDisplay.d.ts +18 -0
  43. package/dist/cjs/types/src/components/Quote/{PaymentHoldModal.d.ts → components/PaymentHoldModal.d.ts} +5 -1
  44. package/dist/cjs/types/src/components/Quote/components/QuoteButtons.d.ts +13 -4
  45. package/dist/cjs/types/src/{hooks/quotes/useSendAcceptQuote.d.ts → components/Quote/hooks/useAcceptQuote.d.ts} +6 -3
  46. package/dist/cjs/types/src/components/Quote/hooks/useQuotePaymentHold.d.ts +20 -0
  47. package/dist/cjs/types/src/{graphql → components/Quote}/queries/getFormattedQuote.d.ts +6 -1
  48. package/dist/cjs/types/src/components/Quote/queries/quoteAccept.d.ts +14 -0
  49. package/dist/cjs/types/src/components/QuoteProvider/context/QuoteContext.d.ts +1 -0
  50. package/dist/cjs/types/src/components/QuoteProvider/context/quantityEditableChargesContext.d.ts +26 -0
  51. package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +5 -0
  52. package/dist/cjs/types/src/components/QuoteProvider/fragments/useQuantityEditableCharges_PriceListChargeFragment.d.ts +16 -0
  53. package/dist/cjs/types/src/components/QuoteProvider/fragments/useQuantityEditableCharges_QuoteFragment.d.ts +26 -0
  54. package/dist/cjs/types/src/components/QuoteProvider/fragments/useQuoteQuantities_PriceListChargeFragment.d.ts +13 -0
  55. package/dist/cjs/types/src/components/QuoteProvider/hooks/useFeatureQuantities.d.ts +4 -4
  56. package/dist/cjs/types/src/components/QuoteProvider/hooks/useIsFetchingQuote.d.ts +4 -0
  57. package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuantityEditableCharges.d.ts +75 -0
  58. package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteCreate.d.ts +14 -3
  59. package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteQuantities.d.ts +16 -8
  60. package/dist/cjs/types/src/components/QuoteProvider/hooks/useSelectedPriceListQuoteChange.d.ts +25 -0
  61. package/dist/cjs/types/src/components/QuoteProvider/mutations/quoteChargeCreate.d.ts +23 -0
  62. package/dist/cjs/types/src/components/QuoteProvider/mutations/quoteChargeUpdate.d.ts +12 -0
  63. package/dist/cjs/types/src/components/QuoteProvider/quoteMutationKeys.d.ts +20 -0
  64. package/dist/cjs/types/src/components/Signup/PaymentForms.d.ts +1 -1
  65. package/dist/cjs/types/src/components/Signup/PriceListDisplay.d.ts +18 -4
  66. package/dist/cjs/types/src/components/Signup/Signup.d.ts +0 -1
  67. package/dist/cjs/types/src/components/Signup/components/CheckoutSummary/CheckoutSummary.d.ts +50 -0
  68. package/dist/cjs/types/src/components/Signup/components/CheckoutSummary/hooks/sortQuoteChangeCharges.d.ts +14 -0
  69. package/dist/cjs/types/src/components/Signup/components/SelfServiceBuyWarning.d.ts +14 -0
  70. package/dist/cjs/types/src/components/Signup/fragments/Signup_PriceListFragment.d.ts +17 -0
  71. package/dist/cjs/types/src/components/Signup/fragments/Signup_QuoteFragment.d.ts +19 -0
  72. package/dist/cjs/types/src/components/Signup/hooks/useApplyDefaultCoupon.d.ts +21 -0
  73. package/dist/cjs/types/src/components/Signup/mutations/accountSignup.d.ts +58 -0
  74. package/dist/cjs/types/src/components/Signup/mutations/quoteAccountSignup.d.ts +31 -0
  75. package/dist/{esm/types/src/graphql → cjs/types/src/components/Signup}/mutations/quoteRecalculateTaxes.d.ts +5 -1
  76. package/dist/{esm/types/src/graphql → cjs/types/src/components/Signup}/queries/getPriceList.d.ts +5 -2
  77. package/dist/cjs/types/src/components/Signup/queries/getQuote.d.ts +10 -0
  78. package/dist/cjs/types/src/components/Subscriptions/Subscriptions.d.ts +4 -1
  79. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/CheckoutBarInput.d.ts +9 -0
  80. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/fragments/CheckoutBarInput_PriceListChargeFragment.d.ts +13 -0
  81. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/fragments/useChargeCRUD_QuoteFragment.d.ts +22 -0
  82. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/hooks/useChargeCRUD.d.ts +31 -0
  83. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutPrice.d.ts +8 -3
  84. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +0 -19
  85. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/fragments/PlanPickerCheckoutBar_PriceListChargeFragment.d.ts +14 -0
  86. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/fragments/PlanPickerCheckoutBar_QuoteFragment.d.ts +20 -0
  87. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonRow.d.ts +0 -3
  88. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonsList.d.ts +2 -0
  89. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/PriceListCardDesktop.d.ts +2 -17
  90. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/util.d.ts +1 -0
  91. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +3 -5
  92. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/BillingPeriodDescription.d.ts +12 -0
  93. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/PriceListCardPriceDescription.d.ts +13 -6
  94. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCard.d.ts +1 -1
  95. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardDescription.d.ts +3 -2
  96. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/priceListCardUtils.d.ts +0 -4
  97. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/PriceListSelector.d.ts +3 -0
  98. package/dist/cjs/types/src/components/Subscriptions/Upgrade/Upgrade.d.ts +10 -4
  99. package/dist/cjs/types/src/components/Subscriptions/Upgrade/contexts/DefaultBillingPeriodContext.d.ts +4 -0
  100. package/dist/cjs/types/src/components/Subscriptions/Upgrade/queries/getSubscriptions.d.ts +2 -163
  101. package/dist/cjs/types/src/components/Subscriptions/context/upgradingSubscriptionContext.d.ts +21 -1
  102. package/dist/cjs/types/src/components/Subscriptions/fragments/UpgradingSubscriptionContext_SubscriptionFragment.d.ts +10 -0
  103. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuantityDrawer.d.ts +2 -3
  104. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteRecalculateTaxesContext.d.ts +4 -1
  105. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +2 -0
  106. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/SubscriptionCardHeader.d.ts +1 -0
  107. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +61 -0
  108. package/dist/cjs/types/src/components/index.d.ts +1 -1
  109. package/dist/cjs/types/src/components/priceListPricing/PricingTooltip.d.ts +4 -5
  110. package/dist/cjs/types/src/components/priceListPricing/components/ChargePriceTiers.d.ts +2 -1
  111. package/dist/cjs/types/src/components/priceListPricing/components/PriceTierPrice.d.ts +10 -3
  112. package/dist/cjs/types/src/components/priceListPricing/utils/getPricingModelDescription.d.ts +1 -1
  113. package/dist/cjs/types/src/components/priceListPricing/utils/getPricingModelTitle.d.ts +1 -1
  114. package/dist/cjs/types/src/consts/AppConsts.d.ts +3 -0
  115. package/dist/cjs/types/src/contexts/InvoiceQuoteContext.d.ts +3 -3
  116. package/dist/cjs/types/src/contexts/onPaymentMethodRemoved.d.ts +5 -0
  117. package/dist/cjs/types/src/contexts/onPaymentMethodSaved.d.ts +5 -0
  118. package/dist/cjs/types/src/graphql/queries/getFormattedInvoice.d.ts +1 -1
  119. package/dist/cjs/types/src/hooks/useAllErrorFormats.d.ts +5 -1
  120. package/dist/cjs/types/src/hooks/usePaymentMethod.d.ts +4 -0
  121. package/dist/cjs/types/src/types/PriceList.d.ts +1 -0
  122. package/dist/cjs/types/src/types/frontendTypes/ComponentJSON.d.ts +1 -1
  123. package/dist/cjs/types/src/utils/QueryKeyFactory.d.ts +4 -4
  124. package/dist/cjs/types/src/utils/chargeUtils.d.ts +11 -5
  125. package/dist/cjs/types/src/utils/couponUtils.d.ts +6 -5
  126. package/dist/cjs/types/src/utils/featureAddonUtils/isAddonPurchased.d.ts +1 -1
  127. package/dist/cjs/types/src/utils/htmlUtils/isEmptyHTML.d.ts +5 -0
  128. package/dist/cjs/types/src/utils/htmlUtils/removeHTMLTags.d.ts +4 -0
  129. package/dist/cjs/types/src/utils/priceListChargeUtils/filterDeprecatedCharges.d.ts +11 -0
  130. package/dist/cjs/types/src/utils/priceListChargeUtils/priceListChargePriceDescription.d.ts +13 -0
  131. package/dist/cjs/types/src/utils/priceListUtils/getActiveCharges.d.ts +10 -0
  132. package/dist/cjs/types/src/utils/priceListUtils/getPrice.d.ts +9 -0
  133. package/dist/cjs/types/src/utils/priceListUtils/getPricingUnit.d.ts +16 -0
  134. package/dist/cjs/types/src/utils/priceListUtils/priceDescription.d.ts +11 -4
  135. package/dist/cjs/types/src/utils/pricePickerUtils.d.ts +1 -1
  136. package/dist/esm/index.js +6657 -5673
  137. package/dist/esm/types/node_modules/@reduxjs/toolkit/dist/uncheckedindexed.d.ts +5 -0
  138. package/dist/esm/types/src/UI/Tooltip.d.ts +2 -0
  139. package/dist/esm/types/src/UI/TruncatedText/TruncatedText.d.ts +4 -0
  140. package/dist/esm/types/src/UI/TruncatedText/hooks/useIsTextTruncated.d.ts +3 -0
  141. package/dist/esm/types/src/ajax.d.ts +1 -1
  142. package/dist/esm/types/src/components/BillingDetails/BillingDetails.d.ts +3 -2
  143. package/dist/esm/types/src/components/{BunnyProvider.d.ts → BunnyProvider/BunnyProvider.d.ts} +4 -1
  144. package/dist/esm/types/src/components/BunnyProvider/contexts/BunnyProviderCallbacksProvider.d.ts +13 -0
  145. package/dist/esm/types/src/components/Checkout/Checkout.d.ts +2 -1
  146. package/dist/esm/types/src/components/Checkout/QuoteCheckout.d.ts +5 -3
  147. package/dist/esm/types/src/components/Checkout/QuoteIsLoadingIndicator.d.ts +1 -0
  148. package/dist/esm/types/src/components/Invoice/Invoice.d.ts +3 -1
  149. package/dist/esm/types/src/components/PandadocPollingModal.d.ts +1 -1
  150. package/dist/esm/types/src/components/PaymentForm/DemoPay/DemoPayFormProvider.d.ts +10 -0
  151. package/dist/esm/types/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +2 -4
  152. package/dist/esm/types/src/components/PaymentForm/DemoPay/hooks/useSave.d.ts +1 -5
  153. package/dist/esm/types/src/components/PaymentForm/PaymentForm.d.ts +50 -10
  154. package/dist/esm/types/src/components/PaymentForm/Stripe/StripeFormProvider.d.ts +5 -0
  155. package/dist/esm/types/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +2 -4
  156. package/dist/esm/types/src/components/PaymentForm/components/CheckoutNoPayment.d.ts +6 -0
  157. package/dist/esm/types/src/components/PaymentForm/components/Pay.d.ts +5 -0
  158. package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodDetails/PaymentMethodDetails.d.ts +12 -0
  159. package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodDetails/components/Cancel.d.ts +1 -0
  160. package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodDetails/components/Save.d.ts +1 -0
  161. package/dist/esm/types/src/components/PaymentForm/components/StoredPaymentMethods.d.ts +18 -0
  162. package/dist/esm/types/src/components/PaymentForm/context/AccountIdContext.d.ts +5 -0
  163. package/dist/esm/types/src/components/PaymentForm/context/CallbacksContext.d.ts +14 -0
  164. package/dist/esm/types/src/components/PaymentForm/context/PaymentMethodFormVisibilityContext.d.ts +12 -0
  165. package/dist/esm/types/src/components/PaymentForm/context/PaymentProvider.d.ts +46 -30
  166. package/dist/esm/types/src/components/PaymentForm/fragments/PaymentForm_PaymentMethodsFragment.d.ts +3 -0
  167. package/dist/esm/types/src/components/PaymentForm/hooks/usePay.d.ts +14 -0
  168. package/dist/esm/types/src/components/PaymentForm/hooks/usePayableCurrency.d.ts +2 -1
  169. package/dist/esm/types/src/components/PaymentForm/hooks/usePaymentButtonText.d.ts +7 -1
  170. package/dist/esm/types/src/components/PaymentForm/hooks/usePaymentHold.d.ts +18 -0
  171. package/dist/esm/types/src/components/PaymentForm/hooks/useRemovePaymentMethod.d.ts +4 -1
  172. package/dist/esm/types/src/components/PaymentForm/hooks/useSave.d.ts +16 -0
  173. package/dist/esm/types/src/components/PaymentForm/types/PaymentType.d.ts +2 -1
  174. package/dist/esm/types/src/components/Quote/Quote.d.ts +31 -2
  175. package/dist/{cjs/types/src/components/Quote → esm/types/src/components/Quote/components}/AcceptQuoteModal.d.ts +3 -3
  176. package/dist/esm/types/src/components/Quote/components/NoSigningPluginsForm.d.ts +17 -0
  177. package/dist/esm/types/src/components/Quote/components/PaymentHoldDisplay.d.ts +18 -0
  178. package/dist/esm/types/src/components/Quote/{PaymentHoldModal.d.ts → components/PaymentHoldModal.d.ts} +5 -1
  179. package/dist/esm/types/src/components/Quote/components/QuoteButtons.d.ts +13 -4
  180. package/dist/esm/types/src/{hooks/quotes/useSendAcceptQuote.d.ts → components/Quote/hooks/useAcceptQuote.d.ts} +6 -3
  181. package/dist/esm/types/src/components/Quote/hooks/useQuotePaymentHold.d.ts +20 -0
  182. package/dist/esm/types/src/{graphql → components/Quote}/queries/getFormattedQuote.d.ts +6 -1
  183. package/dist/esm/types/src/components/Quote/queries/quoteAccept.d.ts +14 -0
  184. package/dist/esm/types/src/components/QuoteProvider/context/QuoteContext.d.ts +1 -0
  185. package/dist/esm/types/src/components/QuoteProvider/context/quantityEditableChargesContext.d.ts +26 -0
  186. package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +5 -0
  187. package/dist/esm/types/src/components/QuoteProvider/fragments/useQuantityEditableCharges_PriceListChargeFragment.d.ts +16 -0
  188. package/dist/esm/types/src/components/QuoteProvider/fragments/useQuantityEditableCharges_QuoteFragment.d.ts +26 -0
  189. package/dist/esm/types/src/components/QuoteProvider/fragments/useQuoteQuantities_PriceListChargeFragment.d.ts +13 -0
  190. package/dist/esm/types/src/components/QuoteProvider/hooks/useFeatureQuantities.d.ts +4 -4
  191. package/dist/esm/types/src/components/QuoteProvider/hooks/useIsFetchingQuote.d.ts +4 -0
  192. package/dist/esm/types/src/components/QuoteProvider/hooks/useQuantityEditableCharges.d.ts +75 -0
  193. package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteCreate.d.ts +14 -3
  194. package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteQuantities.d.ts +16 -8
  195. package/dist/esm/types/src/components/QuoteProvider/hooks/useSelectedPriceListQuoteChange.d.ts +25 -0
  196. package/dist/esm/types/src/components/QuoteProvider/mutations/quoteChargeCreate.d.ts +23 -0
  197. package/dist/esm/types/src/components/QuoteProvider/mutations/quoteChargeUpdate.d.ts +12 -0
  198. package/dist/esm/types/src/components/QuoteProvider/quoteMutationKeys.d.ts +20 -0
  199. package/dist/esm/types/src/components/Signup/PaymentForms.d.ts +1 -1
  200. package/dist/esm/types/src/components/Signup/PriceListDisplay.d.ts +18 -4
  201. package/dist/esm/types/src/components/Signup/Signup.d.ts +0 -1
  202. package/dist/esm/types/src/components/Signup/components/CheckoutSummary/CheckoutSummary.d.ts +50 -0
  203. package/dist/esm/types/src/components/Signup/components/CheckoutSummary/hooks/sortQuoteChangeCharges.d.ts +14 -0
  204. package/dist/esm/types/src/components/Signup/components/SelfServiceBuyWarning.d.ts +14 -0
  205. package/dist/esm/types/src/components/Signup/fragments/Signup_PriceListFragment.d.ts +17 -0
  206. package/dist/esm/types/src/components/Signup/fragments/Signup_QuoteFragment.d.ts +19 -0
  207. package/dist/esm/types/src/components/Signup/hooks/useApplyDefaultCoupon.d.ts +21 -0
  208. package/dist/esm/types/src/components/Signup/mutations/accountSignup.d.ts +58 -0
  209. package/dist/esm/types/src/components/Signup/mutations/quoteAccountSignup.d.ts +31 -0
  210. package/dist/{cjs/types/src/graphql → esm/types/src/components/Signup}/mutations/quoteRecalculateTaxes.d.ts +5 -1
  211. package/dist/{cjs/types/src/graphql → esm/types/src/components/Signup}/queries/getPriceList.d.ts +5 -2
  212. package/dist/esm/types/src/components/Signup/queries/getQuote.d.ts +10 -0
  213. package/dist/esm/types/src/components/Subscriptions/Subscriptions.d.ts +4 -1
  214. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/CheckoutBarInput.d.ts +9 -0
  215. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/fragments/CheckoutBarInput_PriceListChargeFragment.d.ts +13 -0
  216. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/fragments/useChargeCRUD_QuoteFragment.d.ts +22 -0
  217. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/hooks/useChargeCRUD.d.ts +31 -0
  218. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutPrice.d.ts +8 -3
  219. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +0 -19
  220. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/fragments/PlanPickerCheckoutBar_PriceListChargeFragment.d.ts +14 -0
  221. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/fragments/PlanPickerCheckoutBar_QuoteFragment.d.ts +20 -0
  222. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonRow.d.ts +0 -3
  223. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonsList.d.ts +2 -0
  224. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/PriceListCardDesktop.d.ts +2 -17
  225. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/util.d.ts +1 -0
  226. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +3 -5
  227. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/BillingPeriodDescription.d.ts +12 -0
  228. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/PriceListCardPriceDescription.d.ts +13 -6
  229. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCard.d.ts +1 -1
  230. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardDescription.d.ts +3 -2
  231. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/priceListCardUtils.d.ts +0 -4
  232. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/PriceListSelector.d.ts +3 -0
  233. package/dist/esm/types/src/components/Subscriptions/Upgrade/Upgrade.d.ts +10 -4
  234. package/dist/esm/types/src/components/Subscriptions/Upgrade/contexts/DefaultBillingPeriodContext.d.ts +4 -0
  235. package/dist/esm/types/src/components/Subscriptions/Upgrade/queries/getSubscriptions.d.ts +2 -163
  236. package/dist/esm/types/src/components/Subscriptions/context/upgradingSubscriptionContext.d.ts +21 -1
  237. package/dist/esm/types/src/components/Subscriptions/fragments/UpgradingSubscriptionContext_SubscriptionFragment.d.ts +10 -0
  238. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuantityDrawer.d.ts +2 -3
  239. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteRecalculateTaxesContext.d.ts +4 -1
  240. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +2 -0
  241. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/SubscriptionCardHeader.d.ts +1 -0
  242. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +61 -0
  243. package/dist/esm/types/src/components/index.d.ts +1 -1
  244. package/dist/esm/types/src/components/priceListPricing/PricingTooltip.d.ts +4 -5
  245. package/dist/esm/types/src/components/priceListPricing/components/ChargePriceTiers.d.ts +2 -1
  246. package/dist/esm/types/src/components/priceListPricing/components/PriceTierPrice.d.ts +10 -3
  247. package/dist/esm/types/src/components/priceListPricing/utils/getPricingModelDescription.d.ts +1 -1
  248. package/dist/esm/types/src/components/priceListPricing/utils/getPricingModelTitle.d.ts +1 -1
  249. package/dist/esm/types/src/consts/AppConsts.d.ts +3 -0
  250. package/dist/esm/types/src/contexts/InvoiceQuoteContext.d.ts +3 -3
  251. package/dist/esm/types/src/contexts/onPaymentMethodRemoved.d.ts +5 -0
  252. package/dist/esm/types/src/contexts/onPaymentMethodSaved.d.ts +5 -0
  253. package/dist/esm/types/src/graphql/queries/getFormattedInvoice.d.ts +1 -1
  254. package/dist/esm/types/src/hooks/useAllErrorFormats.d.ts +5 -1
  255. package/dist/esm/types/src/hooks/usePaymentMethod.d.ts +4 -0
  256. package/dist/esm/types/src/types/PriceList.d.ts +1 -0
  257. package/dist/esm/types/src/types/frontendTypes/ComponentJSON.d.ts +1 -1
  258. package/dist/esm/types/src/utils/QueryKeyFactory.d.ts +4 -4
  259. package/dist/esm/types/src/utils/chargeUtils.d.ts +11 -5
  260. package/dist/esm/types/src/utils/couponUtils.d.ts +6 -5
  261. package/dist/esm/types/src/utils/featureAddonUtils/isAddonPurchased.d.ts +1 -1
  262. package/dist/esm/types/src/utils/htmlUtils/isEmptyHTML.d.ts +5 -0
  263. package/dist/esm/types/src/utils/htmlUtils/removeHTMLTags.d.ts +4 -0
  264. package/dist/esm/types/src/utils/priceListChargeUtils/filterDeprecatedCharges.d.ts +11 -0
  265. package/dist/esm/types/src/utils/priceListChargeUtils/priceListChargePriceDescription.d.ts +13 -0
  266. package/dist/esm/types/src/utils/priceListUtils/getActiveCharges.d.ts +10 -0
  267. package/dist/esm/types/src/utils/priceListUtils/getPrice.d.ts +9 -0
  268. package/dist/esm/types/src/utils/priceListUtils/getPricingUnit.d.ts +16 -0
  269. package/dist/esm/types/src/utils/priceListUtils/priceDescription.d.ts +11 -4
  270. package/dist/esm/types/src/utils/pricePickerUtils.d.ts +1 -1
  271. package/dist/index.d.ts +128 -24
  272. package/package.json +17 -17
  273. package/dist/cjs/types/src/components/PaymentForm/components/CheckoutFooter.d.ts +0 -2
  274. package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodDetails.d.ts +0 -2
  275. package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodFooter.d.ts +0 -4
  276. package/dist/cjs/types/src/components/PaymentForm/hooks/useHandlePayment.d.ts +0 -40
  277. package/dist/cjs/types/src/components/Signup/CheckoutSummary.d.ts +0 -14
  278. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput.d.ts +0 -8
  279. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/utils/hasMultipleRecurringCharges.d.ts +0 -12
  280. package/dist/cjs/types/src/graphql/mutations/accountSignup.d.ts +0 -11
  281. package/dist/cjs/types/src/graphql/mutations/quoteAccountSignup.d.ts +0 -15
  282. package/dist/cjs/types/src/graphql/queries/getQuote.d.ts +0 -36
  283. package/dist/cjs/types/src/utils/priceListUtils/doesPriceListHaveFlatFeeCharges.d.ts +0 -12
  284. package/dist/esm/types/src/components/PaymentForm/components/CheckoutFooter.d.ts +0 -2
  285. package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodDetails.d.ts +0 -2
  286. package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodFooter.d.ts +0 -4
  287. package/dist/esm/types/src/components/PaymentForm/hooks/useHandlePayment.d.ts +0 -40
  288. package/dist/esm/types/src/components/Signup/CheckoutSummary.d.ts +0 -14
  289. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput.d.ts +0 -8
  290. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/utils/hasMultipleRecurringCharges.d.ts +0 -12
  291. package/dist/esm/types/src/graphql/mutations/accountSignup.d.ts +0 -11
  292. package/dist/esm/types/src/graphql/mutations/quoteAccountSignup.d.ts +0 -15
  293. package/dist/esm/types/src/graphql/queries/getQuote.d.ts +0 -36
  294. package/dist/esm/types/src/utils/priceListUtils/doesPriceListHaveFlatFeeCharges.d.ts +0 -12
  295. /package/dist/cjs/types/src/{hooks → components/BunnyProvider/hooks}/useCreateQueryClient.d.ts +0 -0
  296. /package/dist/cjs/types/src/components/PaymentForm/components/{PaymentMethodSelector.d.ts → PaymentMethodDetails/components/PaymentMethodSelector.d.ts} +0 -0
  297. /package/dist/cjs/types/src/{hooks/quotes → components/Quote/hooks}/useSigningComplete.d.ts +0 -0
  298. /package/dist/esm/types/src/{hooks → components/BunnyProvider/hooks}/useCreateQueryClient.d.ts +0 -0
  299. /package/dist/esm/types/src/components/PaymentForm/components/{PaymentMethodSelector.d.ts → PaymentMethodDetails/components/PaymentMethodSelector.d.ts} +0 -0
  300. /package/dist/esm/types/src/{hooks/quotes → components/Quote/hooks}/useSigningComplete.d.ts +0 -0
@@ -5,171 +5,10 @@ export declare const getSubscriptions: ({ apiHost, isInPreviewMode, token, }: {
5
5
  }) => Promise<{
6
6
  subscriptions: {
7
7
  nodes: ({
8
- addonSubscriptions: {
9
- id: string;
10
- priceList: {
11
- id: string;
12
- } | null;
13
- plan: {
14
- id: string;
15
- } | null;
16
- }[] | null;
17
- cancellationDate: unknown;
18
- currencyId: string;
19
- endDate: unknown;
20
- evergreen: boolean;
21
8
  id: string;
22
- period: string;
23
- account: {
24
- id: string;
9
+ [$tada.fragmentRefs]: {
10
+ UpgradingSubscriptionContext_SubscriptionFragment: "Subscription";
25
11
  };
26
- daysLeftInTrial: number | null;
27
- plan: {
28
- id: string;
29
- name: string;
30
- selfServiceBuy: boolean | null;
31
- selfServiceCancel: boolean | null;
32
- selfServiceRenew: boolean | null;
33
- } | null;
34
- priceList: {
35
- id: string;
36
- periodMonths: number | null;
37
- name: string;
38
- plan: {
39
- id: string;
40
- addon: boolean | null;
41
- addonPlans: {
42
- id: string;
43
- }[] | null;
44
- } | null;
45
- } | null;
46
- product: {
47
- id: string;
48
- name: string;
49
- showProductNameOnLineItem: boolean | null;
50
- } | null;
51
- startDate: unknown;
52
- state: "ACTIVE" | "TRIAL" | "CANCELED" | "EXPIRED" | "TRIAL_EXPIRED" | "PENDING";
53
- trialEndDate: unknown;
54
- trialPeriod: string;
55
- trialStartDate: unknown;
56
- trialExpirationAction: "ACTIVATE" | "CANCEL" | null;
57
- charges: {
58
- priceListCharge: {
59
- priceListChargeTiers: {
60
- price: number | null;
61
- starts: number | null;
62
- }[] | null;
63
- featureAddon: boolean | null;
64
- id: string;
65
- } | null;
66
- amount: number | null;
67
- billingPeriod: "MONTHLY" | "QUARTERLY" | "SEMI_ANNUAL" | "ANNUAL" | "ONCE" | null;
68
- chargeType: "ONE_TIME" | "RECURRING" | "USAGE" | null;
69
- discount: number | null;
70
- discountedPrice: string | null;
71
- endDate: unknown;
72
- expired: boolean;
73
- feature: {
74
- name: string;
75
- } | null;
76
- id: string | null;
77
- isAmendment: boolean;
78
- isRamp: boolean;
79
- kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
80
- name: string | null;
81
- periodPrice: number | null;
82
- price: string | null;
83
- priceDecimals: number | null;
84
- priceListChargeId: string | null;
85
- priceTiers: {
86
- starts: number | null;
87
- price: number | null;
88
- }[] | null;
89
- pricingModel: "FLAT" | "TIERED" | "VOLUME" | "BANDS" | null;
90
- quantity: number | null;
91
- selfServiceQuantity: boolean | null;
92
- startDate: unknown;
93
- trial: boolean;
94
- }[] | null;
95
- chargeReport: {
96
- priceListCharge: {
97
- priceListChargeTiers: {
98
- price: number | null;
99
- starts: number | null;
100
- }[] | null;
101
- featureAddon: boolean | null;
102
- id: string;
103
- code: string | null;
104
- } | null;
105
- amount: number | null;
106
- billingPeriod: "MONTHLY" | "QUARTERLY" | "SEMI_ANNUAL" | "ANNUAL" | "ONCE" | null;
107
- chargeType: "ONE_TIME" | "RECURRING" | "USAGE" | null;
108
- discount: number | null;
109
- discountedPrice: string | null;
110
- endDate: unknown;
111
- expired: boolean;
112
- feature: {
113
- name: string;
114
- } | null;
115
- id: string | null;
116
- isAmendment: boolean;
117
- isRamp: boolean;
118
- kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
119
- name: string | null;
120
- periodPrice: number | null;
121
- price: string | null;
122
- priceDecimals: number | null;
123
- priceListChargeId: string | null;
124
- priceTiers: {
125
- starts: number | null;
126
- price: number | null;
127
- }[] | null;
128
- pricingModel: "FLAT" | "TIERED" | "VOLUME" | "BANDS" | null;
129
- quantity: number | null;
130
- selfServiceQuantity: boolean | null;
131
- startDate: unknown;
132
- trial: boolean;
133
- }[] | null;
134
- currentCharges: {
135
- priceListCharge: {
136
- priceListChargeTiers: {
137
- price: number | null;
138
- starts: number | null;
139
- }[] | null;
140
- featureAddon: boolean | null;
141
- id: string;
142
- code: string | null;
143
- } | null;
144
- amount: number | null;
145
- billingPeriod: "MONTHLY" | "QUARTERLY" | "SEMI_ANNUAL" | "ANNUAL" | "ONCE" | null;
146
- chargeType: "ONE_TIME" | "RECURRING" | "USAGE" | null;
147
- discount: number | null;
148
- discountedPrice: string | null;
149
- endDate: unknown;
150
- expired: boolean;
151
- feature: {
152
- name: string;
153
- } | null;
154
- id: string | null;
155
- isAmendment: boolean;
156
- isRamp: boolean;
157
- kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
158
- name: string | null;
159
- periodPrice: number | null;
160
- price: string | null;
161
- priceDecimals: number | null;
162
- priceListChargeId: string | null;
163
- priceTiers: {
164
- starts: number | null;
165
- price: number | null;
166
- }[] | null;
167
- pricingModel: "FLAT" | "TIERED" | "VOLUME" | "BANDS" | null;
168
- quantity: number | null;
169
- selfServiceQuantity: boolean | null;
170
- startDate: unknown;
171
- trial: boolean;
172
- }[] | null;
173
12
  } | null)[] | null;
174
13
  } | null;
175
14
  }>;
@@ -19,8 +19,18 @@ export declare const UpgradingSubscriptionProvider: ({ value, children }: {
19
19
  PriceListSelectorUpgradingSubscription_SubscriptionFragment: "Subscription";
20
20
  } & {
21
21
  PriceListCardButtonUpgradingSubscription_SubscriptionFragment: "Subscription";
22
+ } & {
23
+ useQuantityEditableCharges_SubscriptionFragment: "Subscription";
24
+ } & {
25
+ useChargeCRUD_SubscriptionFragment: "Subscription";
26
+ } & {
27
+ useQuoteQuantities_SubscriptionFragment: "Subscription";
28
+ } & {
29
+ isAddonPurchased_SubscriptionChargeFragment: "Subscription";
30
+ } & {
31
+ useQuoteCreate_SubscriptionFragment: "Subscription";
22
32
  };
23
- } | undefined;
33
+ } | null | undefined;
24
34
  children?: import("react").ReactNode;
25
35
  }) => import("react/jsx-runtime").JSX.Element, useUpgradingSubscription: () => {
26
36
  id: string;
@@ -42,5 +52,15 @@ export declare const UpgradingSubscriptionProvider: ({ value, children }: {
42
52
  PriceListSelectorUpgradingSubscription_SubscriptionFragment: "Subscription";
43
53
  } & {
44
54
  PriceListCardButtonUpgradingSubscription_SubscriptionFragment: "Subscription";
55
+ } & {
56
+ useQuantityEditableCharges_SubscriptionFragment: "Subscription";
57
+ } & {
58
+ useChargeCRUD_SubscriptionFragment: "Subscription";
59
+ } & {
60
+ useQuoteQuantities_SubscriptionFragment: "Subscription";
61
+ } & {
62
+ isAddonPurchased_SubscriptionChargeFragment: "Subscription";
63
+ } & {
64
+ useQuoteCreate_SubscriptionFragment: "Subscription";
45
65
  };
46
66
  } | undefined;
@@ -18,6 +18,16 @@ export declare const UpgradingSubscriptionContext_SubscriptionFragment: import("
18
18
  PriceListSelectorUpgradingSubscription_SubscriptionFragment: "Subscription";
19
19
  } & {
20
20
  PriceListCardButtonUpgradingSubscription_SubscriptionFragment: "Subscription";
21
+ } & {
22
+ useQuantityEditableCharges_SubscriptionFragment: "Subscription";
23
+ } & {
24
+ useChargeCRUD_SubscriptionFragment: "Subscription";
25
+ } & {
26
+ useQuoteQuantities_SubscriptionFragment: "Subscription";
27
+ } & {
28
+ isAddonPurchased_SubscriptionChargeFragment: "Subscription";
29
+ } & {
30
+ useQuoteCreate_SubscriptionFragment: "Subscription";
21
31
  };
22
32
  }, {}, {
23
33
  fragment: "UpgradingSubscriptionContext_SubscriptionFragment";
@@ -5,8 +5,7 @@ interface QuantityDrawerProps {
5
5
  quantityDrawerOpen: boolean;
6
6
  setQuantityDrawerOpen: (open: boolean) => void;
7
7
  handlePortalErrors?: (errors: any) => void;
8
- setShowInactive: (showInactive: boolean) => void;
9
8
  }
10
- export declare const QuantityDrawerContent: ({ subscriptions, quantityDrawerOpen, setQuantityDrawerOpen, handlePortalErrors, setShowInactive, }: QuantityDrawerProps) => import("react/jsx-runtime").JSX.Element;
11
- export declare const QuantityDrawer: ({ subscriptions, quantityDrawerOpen, setQuantityDrawerOpen, handlePortalErrors, setShowInactive, }: QuantityDrawerProps) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const QuantityDrawerContent: ({ subscriptions, quantityDrawerOpen, setQuantityDrawerOpen, handlePortalErrors, }: QuantityDrawerProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const QuantityDrawer: ({ subscriptions, quantityDrawerOpen, setQuantityDrawerOpen, handlePortalErrors, }: QuantityDrawerProps) => import("react/jsx-runtime").JSX.Element;
12
11
  export {};
@@ -1,4 +1,7 @@
1
- export type QuoteRecalculateTaxesValue = (quoteId: string) => void;
1
+ export type QuoteRecalculateTaxesValue = {
2
+ quoteRecalculateTaxesMutation: (quoteId: string) => void;
3
+ isRecalculatingTaxes: boolean;
4
+ };
2
5
  declare const QuoteRecalculateTaxesProvider: ({ value, children }: {
3
6
  value: QuoteRecalculateTaxesValue;
4
7
  children?: import("react").ReactNode;
@@ -3,6 +3,8 @@ export declare const SubscriptionsList_SubscriptionFragment: import("gql.tada").
3
3
  id: string;
4
4
  state: "ACTIVE" | "TRIAL" | "CANCELED" | "EXPIRED" | "TRIAL_EXPIRED" | "PENDING";
5
5
  [$tada.fragmentRefs]: {
6
+ splitSubscriptionsByPriceList_SubscriptionFragment: "Subscription";
7
+ } & {
6
8
  findNonAddonSubscriptions_SubscriptionFragment: "Subscription";
7
9
  } & {
8
10
  SubscriptionCardDesktop_SubscriptionFragment: "Subscription";
@@ -16,6 +16,7 @@ export declare const SubscriptionCardHeader_SubscriptionFragment: import("gql.ta
16
16
  plan: {
17
17
  addon: boolean | null;
18
18
  } | null;
19
+ deprecated: boolean | null;
19
20
  } | null;
20
21
  [$tada.fragmentRefs]: {
21
22
  SubscriptionStatusAndActions_SubscriptionFragment: "Subscription";
@@ -3,6 +3,7 @@ import { Plan } from '@/types/Plan';
3
3
  import Product from '@/types/Product';
4
4
  import Subscription from '@/types/Subscription';
5
5
  import { SubscriptionCharge } from '@/types/SubscriptionCharge';
6
+ import { FragmentOf } from 'gql.tada';
6
7
  export declare const isSubscriptionNotActive: (subscriptionState: SubscriptionState) => boolean;
7
8
  export declare const productPlanName: ({ plan, product }: {
8
9
  plan: Plan;
@@ -16,3 +17,63 @@ export declare const hasPriceTiers: (charge: {
16
17
  priceTiers: {}[] | null;
17
18
  }) => boolean;
18
19
  export declare const getUpdatingChargeQuantityId: (charge: SubscriptionCharge, subscription: Subscription) => string;
20
+ export declare const splitSubscriptionsByPriceList_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
21
+ id: string;
22
+ state: "ACTIVE" | "TRIAL" | "CANCELED" | "EXPIRED" | "TRIAL_EXPIRED" | "PENDING";
23
+ evergreen: boolean;
24
+ startDate: unknown;
25
+ endDate: unknown;
26
+ addonSubscriptions: {
27
+ id: string;
28
+ startDate: unknown;
29
+ endDate: unknown;
30
+ priceList: {
31
+ id: string;
32
+ } | null;
33
+ plan: {
34
+ id: string;
35
+ } | null;
36
+ }[] | null;
37
+ chargeReport: {
38
+ kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
39
+ startDate: unknown;
40
+ endDate: unknown;
41
+ priceList: {
42
+ id: string;
43
+ plan: {
44
+ id: string;
45
+ name: string;
46
+ selfServiceBuy: boolean | null;
47
+ selfServiceCancel: boolean | null;
48
+ selfServiceRenew: boolean | null;
49
+ addon: boolean | null;
50
+ addonPlans: {
51
+ id: string;
52
+ }[] | null;
53
+ } | null;
54
+ product: {
55
+ id: string;
56
+ name: string;
57
+ showProductNameOnLineItem: boolean | null;
58
+ } | null;
59
+ periodMonths: number | null;
60
+ name: string;
61
+ } | null;
62
+ }[] | null;
63
+ charges: {
64
+ priceList: {
65
+ id: string;
66
+ } | null;
67
+ }[] | null;
68
+ }, {}, {
69
+ fragment: "splitSubscriptionsByPriceList_SubscriptionFragment";
70
+ on: "Subscription";
71
+ masked: true;
72
+ }>;
73
+ /**
74
+ * Splits a subscription into multiple subscriptions if it has RENEW charges
75
+ * with different price lists.
76
+ * This handles cases where a subscription has been changed to a different plan/price list.
77
+ * Each resulting subscription is a complete duplicate with just the charges filtered.
78
+ */
79
+ export declare function splitSubscriptionsByPriceList<T extends FragmentOf<typeof splitSubscriptionsByPriceList_SubscriptionFragment>>(maskedSubscriptions: T[]): T[];
@@ -3,7 +3,7 @@ export { Quote } from './Quote';
3
3
  export { Quotes } from './Quotes';
4
4
  export { PaymentForm } from './PaymentForm';
5
5
  export { Signup } from './Signup';
6
- export { default as BunnyProvider } from './BunnyProvider';
6
+ export { default as BunnyProvider } from './BunnyProvider/BunnyProvider';
7
7
  export { default as Transactions } from './Transactions';
8
8
  export { Subscriptions } from './Subscriptions';
9
9
  export { BillingDetails } from './BillingDetails';
@@ -12,6 +12,8 @@ export declare const PricingTooltip_PriceListChargeFragment: import("gql.tada").
12
12
  basePrice: number;
13
13
  name: string;
14
14
  [$tada.fragmentRefs]: {
15
+ priceListChargePriceDescription_PriceListChargeFragment: "PriceListCharge";
16
+ } & {
15
17
  ChargeHasPriceTiers_PriceListChargeFragment: "PriceListCharge";
16
18
  } & {
17
19
  ChargePriceTiers_PriceListChargeFragment: "PriceListCharge";
@@ -22,22 +24,19 @@ export declare const PricingTooltip_PriceListChargeFragment: import("gql.tada").
22
24
  masked: true;
23
25
  }>;
24
26
  export declare const PricingTooltip_PriceListFragment: import("gql.tada").TadaDocumentNode<{
25
- showPriceAsMonthly: boolean | null;
26
- periodMonths: number | null;
27
27
  currencyId: string;
28
28
  monthlyBasePrice: number | null;
29
29
  basePrice: number | null;
30
30
  [$tada.fragmentRefs]: {
31
- DoesPriceListHaveFlatFeeCharges_PriceListFragment: "PriceList";
31
+ priceDescriptionString_PriceListFragment: "PriceList";
32
32
  };
33
33
  }, {}, {
34
34
  fragment: "PricingTooltip_PriceListFragment";
35
35
  on: "PriceList";
36
36
  masked: true;
37
37
  }>;
38
- export declare const PricingTooltip: ({ className, priceListCharges: maskedPriceListCharges, currencyId, priceList: maskedPriceList, }: {
38
+ export declare const PricingTooltip: ({ className, priceListCharges: maskedPriceListCharges, currencyId, }: {
39
39
  className?: string;
40
40
  priceListCharges: FragmentOf<typeof PricingTooltip_PriceListChargeFragment>[];
41
41
  currencyId: string;
42
- priceList: FragmentOf<typeof PricingTooltip_PriceListFragment>;
43
42
  }) => import("react/jsx-runtime").JSX.Element;
@@ -6,9 +6,10 @@ export declare const ChargePriceTiers_PriceListChargeFragment: import("gql.tada"
6
6
  priceDecimals: number | null;
7
7
  priceListChargeTiers: {
8
8
  starts: number | null;
9
- price: number | null;
10
9
  [$tada.fragmentRefs]: {
11
10
  PriceTierRow_PriceTierFragment: "PriceListChargeTier";
11
+ } & {
12
+ PriceTierPrice_PriceTierFragment: "PriceListChargeTier";
12
13
  };
13
14
  }[] | null;
14
15
  }, {}, {
@@ -1,7 +1,14 @@
1
- import { PriceTier } from '../types/PriceTier';
2
- declare const PriceTierPrice: ({ currencyId, priceDecimals, tier, }: {
1
+ import { FragmentOf } from 'gql.tada';
2
+ export declare const PriceTierPrice_PriceTierFragment: import("gql.tada").TadaDocumentNode<{
3
+ price: number | null;
4
+ }, {}, {
5
+ fragment: "PriceTierPrice_PriceTierFragment";
6
+ on: "PriceListChargeTier";
7
+ masked: true;
8
+ }>;
9
+ declare const PriceTierPrice: ({ currencyId, priceDecimals, tier: maskedTier, }: {
3
10
  currencyId: string;
4
11
  priceDecimals: number;
5
- tier: PriceTier;
12
+ tier: FragmentOf<typeof PriceTierPrice_PriceTierFragment>;
6
13
  }) => import("react/jsx-runtime").JSX.Element;
7
14
  export default PriceTierPrice;
@@ -1,2 +1,2 @@
1
1
  import { PricingModel } from '@/graphql-codegen/exportedScalarTypes';
2
- export declare const getPricingModelDescription: (pricingModel: PricingModel | null) => "" | "units in each tier are priced separately." | "the highest tier reached prices all units." | "the quantity indexes to a flat price.";
2
+ export declare const getPricingModelDescription: (pricingModel: PricingModel | null) => "" | "units in each tier are priced separately" | "the highest tier reached prices all units" | "the quantity indexes to a flat price" | "the price is a flat rate";
@@ -1,2 +1,2 @@
1
1
  import { PricingModel } from '@/graphql-codegen/exportedScalarTypes';
2
- export declare const getPricingModelTitle: (pricingModel: PricingModel | null) => "" | "Tiered" | "Volume" | "Bands";
2
+ export declare const getPricingModelTitle: (pricingModel: PricingModel | null) => "" | "Tiered" | "Volume" | "Bands" | "Flat";
@@ -8,3 +8,6 @@ export declare const MARK_PRO = "Markpro, Inter, system-ui, -apple-system, Blink
8
8
  export declare const MARK_PRO_MEDIUM = "Markpro Medium, Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji";
9
9
  export declare const MARK_PRO_BOLD = "Markpro Bold, Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji";
10
10
  export declare const X_BUNNY_COMPONENTS_VERSION_HEADER_NAME = "x-components-version";
11
+ export declare const TIME_TRAVEL_DATE = "timeTravelDate";
12
+ export declare const TIME_TRAVEL_HEADER = "X-Bunny-Time-Travel";
13
+ export declare const DEV_AUTH_AS_USER = "DevAuthAsUser";
@@ -1,8 +1,7 @@
1
1
  import { ShadowType } from '../types/shadowType';
2
2
  import FormattedInvoice from '@/types/FormattedInvoice';
3
- import { FormattedQuote } from '@/types/FormattedQuote';
4
3
  export type InvoiceQuoteContextProps = {
5
- id?: string;
4
+ id?: string | null | undefined;
6
5
  invoiceQuoteViewComponent?: React.ReactNode;
7
6
  backButtonName?: string;
8
7
  onBackButtonClick?: () => void;
@@ -12,6 +11,7 @@ export type InvoiceQuoteContextProps = {
12
11
  className?: string;
13
12
  hideDownloadButton?: boolean;
14
13
  onInvoiceLoaded?: (formattedInvoice: FormattedInvoice) => void;
15
- onQuoteLoaded?: (formattedQuote: FormattedQuote) => void;
14
+ onQuoteUnavailableError?: () => void;
15
+ suppressQuoteUnavailableErrorNotification?: boolean;
16
16
  };
17
17
  export declare const InvoiceQuoteContext: import("react").Context<InvoiceQuoteContextProps>;
@@ -0,0 +1,5 @@
1
+ declare const OnPaymentMethodRemovedProvider: ({ value, children }: {
2
+ value: ((paymentMethodId: string) => void) | undefined;
3
+ children?: import("react").ReactNode;
4
+ }) => import("react/jsx-runtime").JSX.Element, useOnPaymentMethodRemoved: () => ((paymentMethodId: string) => void) | undefined;
5
+ export { OnPaymentMethodRemovedProvider, useOnPaymentMethodRemoved };
@@ -0,0 +1,5 @@
1
+ declare const OnPaymentMethodSavedProvider: ({ value, children }: {
2
+ value: ((paymentMethodId: string) => void) | undefined;
3
+ children?: import("react").ReactNode;
4
+ }) => import("react/jsx-runtime").JSX.Element, useOnPaymentMethodSaved: () => ((paymentMethodId: string) => void) | undefined;
5
+ export { OnPaymentMethodSavedProvider, useOnPaymentMethodSaved };
@@ -1,6 +1,6 @@
1
1
  import FormattedInvoice from '@/types/FormattedInvoice';
2
2
  declare const getFormattedInvoice: ({ id, token, apiHost, }: {
3
- id?: string;
3
+ id?: string | null | undefined;
4
4
  apiHost: string;
5
5
  token?: string;
6
6
  }) => Promise<FormattedInvoice>;
@@ -1 +1,5 @@
1
- export declare const useAllErrorFormats: () => (error: any, mutationName?: string) => any;
1
+ export declare const useAllErrorFormats: ({ onUserUnavailable, onInvalidOrMissingAuthorization, suppressUserUnavailableErrorNotification }?: {
2
+ onUserUnavailable?: () => void;
3
+ onInvalidOrMissingAuthorization?: () => void;
4
+ suppressUserUnavailableErrorNotification?: boolean;
5
+ }) => (error: any, mutationName?: string) => any;
@@ -23,6 +23,8 @@ export declare const usePaymentMethod: ({ accountId, enabled, }: {
23
23
  isDefault: boolean | null;
24
24
  [$tada.fragmentRefs]: {
25
25
  PaymentForm_PaymentMethodsFragment: "PaymentMethod";
26
+ } & {
27
+ StoredPaymentMethods_PaymentMethodsFragment: "PaymentMethod";
26
28
  };
27
29
  }[] | undefined;
28
30
  defaultPaymentMethod: {
@@ -46,6 +48,8 @@ export declare const usePaymentMethod: ({ accountId, enabled, }: {
46
48
  isDefault: boolean | null;
47
49
  [$tada.fragmentRefs]: {
48
50
  PaymentForm_PaymentMethodsFragment: "PaymentMethod";
51
+ } & {
52
+ StoredPaymentMethods_PaymentMethodsFragment: "PaymentMethod";
49
53
  };
50
54
  } | undefined;
51
55
  isLoading: boolean;
@@ -36,5 +36,6 @@ type PriceList = {
36
36
  trialLengthDays?: number;
37
37
  updatedAt: string;
38
38
  addonPlans?: Plan[];
39
+ deprecated?: boolean;
39
40
  };
40
41
  export default PriceList;
@@ -1,4 +1,4 @@
1
- import { Rule } from "antd/lib/form/index";
1
+ import type { Rule } from "antd/es/form";
2
2
  import { ReactElement } from "react";
3
3
  import { IconName } from "@fortawesome/free-solid-svg-icons";
4
4
  import TableColumn from "./TableColumn";
@@ -38,7 +38,7 @@ interface TableKeyParams {
38
38
  token?: string;
39
39
  }
40
40
  interface FormattedInvoiceKeyParams {
41
- id?: string;
41
+ id?: string | null | undefined;
42
42
  token?: string;
43
43
  }
44
44
  interface InvoiceKeyParams {
@@ -55,7 +55,7 @@ interface PortalPreviewDataKeyParams {
55
55
  token?: string;
56
56
  }
57
57
  interface QuoteKeyParams {
58
- id?: string;
58
+ id?: string | null | undefined;
59
59
  token?: string;
60
60
  }
61
61
  interface QuoteTaxCalculateKeyParams {
@@ -78,10 +78,10 @@ declare const QueryKeyFactory: {
78
78
  brandingKey: (token?: string) => string[];
79
79
  calculatedPricesKey: ({ priceListId, quantity, token }: CalculatedPricesKeyParams) => (string | number)[];
80
80
  createEventsKey: ({ entityId, pluralType, token }: EventsKeyParams) => string[];
81
- createFormattedInvoiceKey: ({ id, token }: FormattedInvoiceKeyParams) => (string | undefined)[];
81
+ createFormattedInvoiceKey: ({ id, token }: FormattedInvoiceKeyParams) => (string | null | undefined)[];
82
82
  createInvoiceKey: ({ id, token }: InvoiceKeyParams) => (string | undefined)[];
83
83
  createObjectKey: ({ id, objectName, token }: ObjectKeyParams) => string[];
84
- createQuoteKey: ({ id, token }: QuoteKeyParams) => (string | undefined)[];
84
+ createQuoteKey: ({ id, token }: QuoteKeyParams) => (string | null | undefined)[];
85
85
  createQuoteTaxCalculateKey: ({ id, token }: QuoteTaxCalculateKeyParams) => string[];
86
86
  createTableKey: ({ filterString, pluralType, token }: TableKeyParams) => (string | undefined)[];
87
87
  currentUserKey: (token?: string) => string[];
@@ -1,5 +1,11 @@
1
- import { ChargeType, PricingModel } from '@/graphql-codegen/exportedScalarTypes';
2
- export declare function canEditChargeQuantity(charge: {
3
- chargeType: ChargeType | null;
4
- pricingModel: PricingModel | null;
5
- } | null): boolean;
1
+ import { FragmentOf } from 'gql.tada';
2
+ export declare const CanEditChargeQuantity_PriceListChargeFragment: import("gql.tada").TadaDocumentNode<{
3
+ chargeType: "ONE_TIME" | "RECURRING" | "USAGE" | null;
4
+ pricingModel: "FLAT" | "TIERED" | "VOLUME" | "BANDS" | null;
5
+ selfServiceQuantity: boolean | null;
6
+ }, {}, {
7
+ fragment: "CanEditChargeQuantity_PriceListChargeFragment";
8
+ on: "PriceListCharge";
9
+ masked: true;
10
+ }>;
11
+ export declare function canEditChargeQuantity(maskedCharge: FragmentOf<typeof CanEditChargeQuantity_PriceListChargeFragment> | null): boolean;
@@ -1,21 +1,22 @@
1
1
  import { FragmentOf } from 'gql.tada';
2
- export declare const shouldShowCouponEditor_QuoteFragment: import("gql.tada").TadaDocumentNode<{
2
+ export declare const canApplyCoupons_QuoteFragment: import("gql.tada").TadaDocumentNode<{
3
3
  id: string | null;
4
4
  kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE";
5
+ amountDue: number | null;
5
6
  }, {}, {
6
- fragment: "shouldShowCouponEditor_QuoteFragment";
7
+ fragment: "canApplyCoupons_QuoteFragment";
7
8
  on: "Quote";
8
9
  masked: true;
9
10
  }>;
10
- export declare const shouldShowCouponEditor_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
11
+ export declare const canApplyCoupons_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
11
12
  id: string;
12
13
  state: "ACTIVE" | "TRIAL" | "CANCELED" | "EXPIRED" | "TRIAL_EXPIRED" | "PENDING";
13
14
  charges: {
14
15
  discountedPrice: string | null;
15
16
  }[] | null;
16
17
  }, {}, {
17
- fragment: "shouldShowCouponEditor_SubscriptionFragment";
18
+ fragment: "canApplyCoupons_SubscriptionFragment";
18
19
  on: "Subscription";
19
20
  masked: true;
20
21
  }>;
21
- export declare function shouldShowCouponEditor(maskedQuote: FragmentOf<typeof shouldShowCouponEditor_QuoteFragment>, activeCouponsExist: boolean, maskedUpgradingSubscription: FragmentOf<typeof shouldShowCouponEditor_SubscriptionFragment>): boolean;
22
+ export declare function canApplyCoupons(maskedQuote: FragmentOf<typeof canApplyCoupons_QuoteFragment> | undefined | null, activeCouponsExist: boolean, maskedUpgradingSubscription?: FragmentOf<typeof canApplyCoupons_SubscriptionFragment>): boolean;
@@ -21,4 +21,4 @@ export declare const isAddonPurchased_SubscriptionChargeFragment: import("gql.ta
21
21
  on: "Subscription";
22
22
  masked: true;
23
23
  }>;
24
- export declare function isAddonPurchased(maskedFeatureAddon: FragmentOf<typeof isAddonPurchased_PriceListChargeFragment>, maskedCurrentSubscription: FragmentOf<typeof isAddonPurchased_SubscriptionChargeFragment>): boolean;
24
+ export declare function isAddonPurchased(maskedFeatureAddon: FragmentOf<typeof isAddonPurchased_PriceListChargeFragment>, maskedCurrentSubscription: FragmentOf<typeof isAddonPurchased_SubscriptionChargeFragment> | undefined): boolean;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * It is possible for html based descriptions to return something like '<p></p>'
3
+ * In which case a null check or character length count doesn't work.
4
+ */
5
+ export declare function isEmptyHTML(html: string | null | undefined): boolean;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Strips all HTML tags from a string and returns plain text.
3
+ */
4
+ export declare function removeHTMLTags(html: string | null | undefined): string;
@@ -0,0 +1,11 @@
1
+ import { QuoteChangeKind } from '@/graphql-codegen/exportedScalarTypes';
2
+ import { FragmentOf } from 'gql.tada';
3
+ export declare const filterDeprecatedCharges_PriceListChargeFragment: import("gql.tada").TadaDocumentNode<{
4
+ deprecated: boolean | null;
5
+ removeOnRenewal: boolean | null;
6
+ }, {}, {
7
+ fragment: "filterDeprecatedCharges_PriceListChargeFragment";
8
+ on: "PriceListCharge";
9
+ masked: true;
10
+ }>;
11
+ export declare function filterDeprecatedCharges(quoteChangeKind: QuoteChangeKind | undefined, maskedCharge: FragmentOf<typeof filterDeprecatedCharges_PriceListChargeFragment>): boolean;