@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
@@ -0,0 +1,17 @@
1
+ import { FormInstance } from 'antd';
2
+ import { FragmentOf } from 'gql.tada';
3
+ export declare const NoSigningPluginsForm_FormattedQuoteFragment: import("gql.tada").TadaDocumentNode<{
4
+ poNumberRequired: boolean | null;
5
+ taxNumberRequired: boolean | null;
6
+ taxNumberLabel: string | null;
7
+ }, {}, {
8
+ fragment: "NoSigningPluginsForm_FormattedQuoteFragment";
9
+ on: "FormattedQuote";
10
+ masked: true;
11
+ }>;
12
+ declare function NoSigningPluginsForm({ isVisible, formattedQuote: maskedFormattedQuote, form, }: {
13
+ isVisible: boolean;
14
+ formattedQuote: FragmentOf<typeof NoSigningPluginsForm_FormattedQuoteFragment>;
15
+ form: FormInstance;
16
+ }): import("react/jsx-runtime").JSX.Element;
17
+ export default NoSigningPluginsForm;
@@ -0,0 +1,18 @@
1
+ import { FragmentOf } from 'gql.tada';
2
+ export declare const PaymentHoldDisplay_PaymentHoldFragment: import("gql.tada").TadaDocumentNode<{
3
+ expiresAt: unknown;
4
+ paymentMethod: {
5
+ metadata: {
6
+ identifier: string | null;
7
+ } | null;
8
+ } | null;
9
+ }, {}, {
10
+ fragment: "PaymentHoldDisplay_PaymentHoldFragment";
11
+ on: "PaymentHold";
12
+ masked: true;
13
+ }>;
14
+ export declare function PaymentHoldDisplay({ paymentHold: maskedPaymentHold, currency, amount, }: {
15
+ paymentHold: FragmentOf<typeof PaymentHoldDisplay_PaymentHoldFragment>;
16
+ currency: string | null;
17
+ amount: number;
18
+ }): import("react/jsx-runtime").JSX.Element;
@@ -8,14 +8,18 @@ export declare const PaymentHoldModal_FormattedQuoteFragment: import("gql.tada")
8
8
  };
9
9
  currency: string | null;
10
10
  amount: number;
11
+ [$tada.fragmentRefs]: {
12
+ NoSigningPluginsForm_FormattedQuoteFragment: "FormattedQuote";
13
+ };
11
14
  }, {}, {
12
15
  fragment: "PaymentHoldModal_FormattedQuoteFragment";
13
16
  on: "FormattedQuote";
14
17
  masked: true;
15
18
  }>;
16
- declare const PaymentHoldModal: ({ visible, setVisible, formattedQuote: maskedFormattedQuote, }: {
19
+ declare const PaymentHoldModal: ({ visible, setVisible, formattedQuote: maskedFormattedQuote, sendAccept, }: {
17
20
  visible: boolean;
18
21
  setVisible: (visible: boolean) => void;
19
22
  formattedQuote: FragmentOf<typeof PaymentHoldModal_FormattedQuoteFragment>;
23
+ sendAccept: (changedFields: any) => void;
20
24
  }) => import("react/jsx-runtime").JSX.Element;
21
25
  export default PaymentHoldModal;
@@ -1,4 +1,3 @@
1
- import PaymentHold from '@/types/PaymentHold';
2
1
  import { FragmentOf } from 'gql.tada';
3
2
  export declare const QuoteButtons_FormattedQuoteFragment: import("gql.tada").TadaDocumentNode<{
4
3
  acceptedAt: unknown;
@@ -11,16 +10,26 @@ export declare const QuoteButtons_FormattedQuoteFragment: import("gql.tada").Tad
11
10
  on: "FormattedQuote";
12
11
  masked: true;
13
12
  }>;
14
- export declare function QuoteButtons({ isAccepted, formattedQuote: maskedFormattedQuote, isMobile, hideDownloadButton, id, isAccepting, handleClickAccept, setPaymentHoldModalVisible, shouldDoPaymentHold, paymentHoldCompleted, paymentHold, }: {
13
+ export declare const PaymentHoldDisplay_QuoteButtonsFragment: import("gql.tada").TadaDocumentNode<{
14
+ [$tada.fragmentRefs]: {
15
+ PaymentHoldDisplay_PaymentHoldFragment: "PaymentHold";
16
+ };
17
+ }, {}, {
18
+ fragment: "PaymentHoldDisplay_QuoteButtonsFragment";
19
+ on: "PaymentHold";
20
+ masked: true;
21
+ }>;
22
+ export declare function QuoteButtons({ isAccepted, formattedQuote: maskedFormattedQuote, isMobile, hideDownloadButton, id, isAccepting, handleClickAccept, setPaymentHoldModalVisible, shouldDoPaymentHold, paymentHoldCompleted, paymentHold: maskedPaymentHold, isSendAcceptPending, }: {
15
23
  isAccepted: boolean;
16
24
  formattedQuote: FragmentOf<typeof QuoteButtons_FormattedQuoteFragment>;
17
25
  isMobile: boolean;
18
26
  hideDownloadButton?: boolean;
19
- id?: string;
27
+ id?: string | null | undefined;
20
28
  isAccepting: boolean;
21
29
  handleClickAccept: () => void;
22
30
  setPaymentHoldModalVisible: (visible: boolean) => void;
23
31
  shouldDoPaymentHold: boolean;
24
32
  paymentHoldCompleted: boolean;
25
- paymentHold: PaymentHold | undefined;
33
+ paymentHold: FragmentOf<typeof PaymentHoldDisplay_QuoteButtonsFragment> | undefined | null;
34
+ isSendAcceptPending: boolean;
26
35
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- declare const useSendAcceptQuote: ({ quoteId, apiHost, token, onQuoteAccepted, }: {
1
+ export declare const useAcceptQuote: ({ quoteId, apiHost, token, onQuoteAccepted, }: {
2
2
  quoteId?: string;
3
3
  apiHost: string;
4
4
  token?: string;
@@ -6,7 +6,11 @@ declare const useSendAcceptQuote: ({ quoteId, apiHost, token, onQuoteAccepted, }
6
6
  }) => {
7
7
  acceptBoxVisible: boolean;
8
8
  isAccepting: boolean;
9
- sendAccept: import("@tanstack/react-query").UseMutateFunction<any, Error, {
9
+ sendAccept: import("@tanstack/react-query").UseMutateFunction<{
10
+ quoteAccept: {
11
+ errors: string | null;
12
+ } | null;
13
+ }, Error, {
10
14
  [key: string]: string;
11
15
  }, unknown>;
12
16
  setAcceptBoxVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
@@ -16,4 +20,3 @@ declare const useSendAcceptQuote: ({ quoteId, apiHost, token, onQuoteAccepted, }
16
20
  setPandadocPollingModalVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
17
21
  isSendAcceptPending: boolean;
18
22
  };
19
- export default useSendAcceptQuote;
@@ -0,0 +1,20 @@
1
+ import { FragmentOf } from 'gql.tada';
2
+ export declare const useQuotePaymentHold_FormattedQuoteFragment: import("gql.tada").TadaDocumentNode<{
3
+ quote: {
4
+ payToAccept: boolean | null;
5
+ currentPaymentHold: {
6
+ id: string | null;
7
+ } | null;
8
+ };
9
+ }, {}, {
10
+ fragment: "useQuotePaymentHold_FormattedQuoteFragment";
11
+ on: "FormattedQuote";
12
+ masked: true;
13
+ }>;
14
+ declare const useQuotePaymentHold: (maskedFormattedQuote?: FragmentOf<typeof useQuotePaymentHold_FormattedQuoteFragment>) => {
15
+ paymentHoldModalVisible: boolean;
16
+ setPaymentHoldModalVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
17
+ shouldDoPaymentHold: boolean;
18
+ paymentHoldCompleted: boolean;
19
+ };
20
+ export default useQuotePaymentHold;
@@ -1,7 +1,7 @@
1
1
  declare const getFormattedQuote: ({ token, apiHost, id, }: {
2
2
  apiHost: string;
3
3
  token?: string;
4
- id?: string;
4
+ id?: string | null | undefined;
5
5
  }) => Promise<{
6
6
  quote: {
7
7
  documentTemplateId: string | null;
@@ -45,6 +45,9 @@ declare const getFormattedQuote: ({ token, apiHost, id, }: {
45
45
  kind: string | null;
46
46
  } | null;
47
47
  } | null;
48
+ [$tada.fragmentRefs]: {
49
+ PaymentHoldDisplay_QuoteButtonsFragment: "PaymentHold";
50
+ };
48
51
  } | null;
49
52
  };
50
53
  payableId: string | null;
@@ -141,6 +144,8 @@ declare const getFormattedQuote: ({ token, apiHost, id, }: {
141
144
  taxNumberRequired: boolean | null;
142
145
  vendorName: string | null;
143
146
  [$tada.fragmentRefs]: {
147
+ useQuotePaymentHold_FormattedQuoteFragment: "FormattedQuote";
148
+ } & {
144
149
  PaymentHoldModal_FormattedQuoteFragment: "FormattedQuote";
145
150
  } & {
146
151
  AcceptQuoteModal_FormattedQuoteFragment: "FormattedQuote";
@@ -0,0 +1,14 @@
1
+ type QuoteAcceptProps = {
2
+ apiHost: string;
3
+ changedFormItems: {
4
+ [key: string]: string;
5
+ };
6
+ quoteId?: string;
7
+ token?: string;
8
+ };
9
+ declare const quoteAccept: ({ quoteId, apiHost, token, changedFormItems }: QuoteAcceptProps) => Promise<{
10
+ quoteAccept: {
11
+ errors: string | null;
12
+ } | null;
13
+ }>;
14
+ export default quoteAccept;
@@ -8,6 +8,7 @@ export type QuoteContextValues = {
8
8
  isAddonPlanLoading: boolean;
9
9
  isFeatureAddonsLoading: boolean;
10
10
  isUpdatingQuote: boolean;
11
+ isRecalculatingTaxes: boolean;
11
12
  setIsAddonPlanLoading: React.Dispatch<React.SetStateAction<boolean>>;
12
13
  addFeatureAddonLoading: (featureAddonId: string) => void;
13
14
  removeFeatureAddonLoading: (featureAddonId: string) => void;
@@ -0,0 +1,26 @@
1
+ export declare const QuantityEditableChargesProvider: ({ value, children }: {
2
+ value: {
3
+ deprecated: boolean | null;
4
+ id: string;
5
+ featureAddon: boolean | null;
6
+ [$tada.fragmentRefs]: {
7
+ CanEditChargeQuantity_PriceListChargeFragment: "PriceListCharge";
8
+ } & {
9
+ PlanPickerCheckoutBar_PriceListChargeFragment: "PriceListCharge";
10
+ } & {
11
+ useQuoteQuantities_PriceListChargeFragment: "PriceListCharge";
12
+ };
13
+ }[];
14
+ children?: import("react").ReactNode;
15
+ }) => import("react/jsx-runtime").JSX.Element, useQuantityEditableChargesContext: () => {
16
+ deprecated: boolean | null;
17
+ id: string;
18
+ featureAddon: boolean | null;
19
+ [$tada.fragmentRefs]: {
20
+ CanEditChargeQuantity_PriceListChargeFragment: "PriceListCharge";
21
+ } & {
22
+ PlanPickerCheckoutBar_PriceListChargeFragment: "PriceListCharge";
23
+ } & {
24
+ useQuoteQuantities_PriceListChargeFragment: "PriceListCharge";
25
+ };
26
+ }[];
@@ -29,6 +29,7 @@ export declare const QuoteContext_QuoteFragment: import("gql.tada").TadaDocument
29
29
  quantityMin: number | null;
30
30
  quantityMax: number | null;
31
31
  selfServiceQuantity: boolean | null;
32
+ name: string;
32
33
  } | null;
33
34
  feature: {
34
35
  id: string;
@@ -47,6 +48,10 @@ export declare const QuoteContext_QuoteFragment: import("gql.tada").TadaDocument
47
48
  FeatureAddonRow_QuoteFragment: "Quote";
48
49
  } & {
49
50
  PaymentForms_QuoteFragment: "Quote";
51
+ } & {
52
+ useQuantityEditableCharges_QuoteFragment: "Quote";
53
+ } & {
54
+ useChargeCRUD_QuoteFragment: "Quote";
50
55
  };
51
56
  }, {}, {
52
57
  fragment: "QuoteContext_QuoteFragment";
@@ -0,0 +1,16 @@
1
+ export declare const useQuantityEditableCharges_PriceListChargeFragment: import("gql.tada").TadaDocumentNode<{
2
+ deprecated: boolean | null;
3
+ id: string;
4
+ featureAddon: boolean | null;
5
+ [$tada.fragmentRefs]: {
6
+ CanEditChargeQuantity_PriceListChargeFragment: "PriceListCharge";
7
+ } & {
8
+ PlanPickerCheckoutBar_PriceListChargeFragment: "PriceListCharge";
9
+ } & {
10
+ useQuoteQuantities_PriceListChargeFragment: "PriceListCharge";
11
+ };
12
+ }, {}, {
13
+ fragment: "useQuantityEditableCharges_PriceListChargeFragment";
14
+ on: "PriceListCharge";
15
+ masked: false;
16
+ }>;
@@ -0,0 +1,26 @@
1
+ export declare const useQuantityEditableCharges_QuoteFragment: import("gql.tada").TadaDocumentNode<{
2
+ quoteChanges: {
3
+ kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE";
4
+ charges: {
5
+ priceListCharge: {
6
+ deprecated: boolean | null;
7
+ id: string;
8
+ featureAddon: boolean | null;
9
+ [$tada.fragmentRefs]: {
10
+ CanEditChargeQuantity_PriceListChargeFragment: "PriceListCharge";
11
+ } & {
12
+ PlanPickerCheckoutBar_PriceListChargeFragment: "PriceListCharge";
13
+ } & {
14
+ useQuoteQuantities_PriceListChargeFragment: "PriceListCharge";
15
+ };
16
+ } | null;
17
+ }[];
18
+ [$tada.fragmentRefs]: {
19
+ useSelectedPriceListQuoteChange_QuoteChangeFragment: "QuoteChange";
20
+ };
21
+ }[] | null;
22
+ }, {}, {
23
+ fragment: "useQuantityEditableCharges_QuoteFragment";
24
+ on: "Quote";
25
+ masked: true;
26
+ }>;
@@ -0,0 +1,13 @@
1
+ export declare const useQuoteQuantities_PriceListChargeFragment: import("gql.tada").TadaDocumentNode<{
2
+ feature: {
3
+ id: string;
4
+ } | null;
5
+ id: string;
6
+ quantityMax: number | null;
7
+ quantityMin: number | null;
8
+ selfServiceQuantity: boolean | null;
9
+ }, {}, {
10
+ fragment: "useQuoteQuantities_PriceListChargeFragment";
11
+ on: "PriceListCharge";
12
+ masked: true;
13
+ }>;
@@ -1,12 +1,12 @@
1
1
  export type FeatureQuantitiesDict = Record<string, number | undefined>;
2
2
  /**
3
- * Hook to manage feature quantities using a dictionary keyed by feature ID
4
- * This tracks quantities for each unique feature.
3
+ * Hook to manage feature quantities per (featureId, priceListChargeId) pair.
4
+ * Supports different quantities for different price list charges that share a feature.
5
5
  */
6
6
  export declare function useFeatureQuantities({ onFeatureQuantitiesChanged, }: {
7
7
  onFeatureQuantitiesChanged?: (featureQuantities: FeatureQuantitiesDict) => void;
8
8
  }): {
9
9
  featureQuantities: FeatureQuantitiesDict;
10
- getFeatureQuantity: (featureId: string, featureQuantities: FeatureQuantitiesDict) => number | undefined;
11
- onUpdateFeatureQuantity: (featureId: string, quantity: number) => void;
10
+ getFeatureQuantity: (featureId: string, priceListChargeId: string, featureQuantitiesSnapshot?: FeatureQuantitiesDict) => number | undefined;
11
+ onUpdateFeatureQuantity: (featureId: string, priceListChargeId: string, quantity: number) => void;
12
12
  };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Returns whether the editing quote query for the given quote ID is currently fetching.
3
+ */
4
+ export declare function useIsFetchingQuote(quoteId: string | undefined): boolean;
@@ -0,0 +1,75 @@
1
+ import { FragmentOf } from 'gql.tada';
2
+ import { useQuantityEditableCharges_QuoteFragment } from '../fragments/useQuantityEditableCharges_QuoteFragment';
3
+ export declare const useQuantityEditableCharges_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
4
+ id: string;
5
+ priceListId: string;
6
+ currentCharges: {
7
+ priceListCharge: {
8
+ deprecated: boolean | null;
9
+ id: string;
10
+ featureAddon: boolean | null;
11
+ [$tada.fragmentRefs]: {
12
+ CanEditChargeQuantity_PriceListChargeFragment: "PriceListCharge";
13
+ } & {
14
+ PlanPickerCheckoutBar_PriceListChargeFragment: "PriceListCharge";
15
+ } & {
16
+ useQuoteQuantities_PriceListChargeFragment: "PriceListCharge";
17
+ };
18
+ } | null;
19
+ }[] | null;
20
+ addonSubscriptions: {
21
+ currentCharges: {
22
+ priceListCharge: {
23
+ deprecated: boolean | null;
24
+ id: string;
25
+ featureAddon: boolean | null;
26
+ [$tada.fragmentRefs]: {
27
+ CanEditChargeQuantity_PriceListChargeFragment: "PriceListCharge";
28
+ } & {
29
+ PlanPickerCheckoutBar_PriceListChargeFragment: "PriceListCharge";
30
+ } & {
31
+ useQuoteQuantities_PriceListChargeFragment: "PriceListCharge";
32
+ };
33
+ } | null;
34
+ }[] | null;
35
+ }[] | null;
36
+ }, {}, {
37
+ fragment: "useQuantityEditableCharges_SubscriptionFragment";
38
+ on: "Subscription";
39
+ masked: true;
40
+ }>;
41
+ /**
42
+ * Hook to provide list of pricelist charges whose quantities can be edited
43
+ */
44
+ export declare function useQuantityEditableCharges({ upgradingSubscription: maskedUpgradingSubscription, pricelistId, quote: maskedQuote, }: {
45
+ upgradingSubscription: FragmentOf<typeof useQuantityEditableCharges_SubscriptionFragment> | undefined;
46
+ pricelistId: string | undefined;
47
+ quote: FragmentOf<typeof useQuantityEditableCharges_QuoteFragment> | null | undefined;
48
+ }): {
49
+ quantityEditableCharges: {
50
+ deprecated: boolean | null;
51
+ id: string;
52
+ featureAddon: boolean | null;
53
+ [$tada.fragmentRefs]: {
54
+ CanEditChargeQuantity_PriceListChargeFragment: "PriceListCharge";
55
+ } & {
56
+ PlanPickerCheckoutBar_PriceListChargeFragment: "PriceListCharge";
57
+ } & {
58
+ useQuoteQuantities_PriceListChargeFragment: "PriceListCharge";
59
+ };
60
+ }[];
61
+ findSubscriptionCharge: (priceListChargeId: string) => {
62
+ priceListCharge: {
63
+ deprecated: boolean | null;
64
+ id: string;
65
+ featureAddon: boolean | null;
66
+ [$tada.fragmentRefs]: {
67
+ CanEditChargeQuantity_PriceListChargeFragment: "PriceListCharge";
68
+ } & {
69
+ PlanPickerCheckoutBar_PriceListChargeFragment: "PriceListCharge";
70
+ } & {
71
+ useQuoteQuantities_PriceListChargeFragment: "PriceListCharge";
72
+ };
73
+ } | null;
74
+ } | undefined;
75
+ };
@@ -1,7 +1,18 @@
1
1
  import PriceList from '@/types/PriceList';
2
- import Subscription from '@/types/Subscription';
3
- export declare const useQuoteCreate: ({ upgradingSubscription, selectedPriceList, token, }: {
4
- upgradingSubscription?: Subscription;
2
+ import { FragmentOf } from 'gql.tada';
3
+ export declare const useQuoteCreate_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
4
+ id: string;
5
+ priceList: {
6
+ id: string;
7
+ } | null;
8
+ state: "ACTIVE" | "TRIAL" | "CANCELED" | "EXPIRED" | "TRIAL_EXPIRED" | "PENDING";
9
+ }, {}, {
10
+ fragment: "useQuoteCreate_SubscriptionFragment";
11
+ on: "Subscription";
12
+ masked: true;
13
+ }>;
14
+ export declare const useQuoteCreate: ({ maskedUpgradingSubscription, selectedPriceList, token, }: {
15
+ maskedUpgradingSubscription?: FragmentOf<typeof useQuoteCreate_SubscriptionFragment>;
5
16
  selectedPriceList?: PriceList;
6
17
  token?: string;
7
18
  }) => {
@@ -1,11 +1,19 @@
1
- import PriceList from '@/types/PriceList';
2
- import { ResultOf } from 'gql.tada';
3
- import { QuoteContext_QuoteFragment } from '../fragments/quoteFragment';
4
- export declare const useQuoteQuantities: ({ selectedPriceList, quote, }: {
5
- selectedPriceList: PriceList;
6
- quote: ResultOf<typeof QuoteContext_QuoteFragment> | null | undefined;
1
+ import { FragmentOf } from 'gql.tada';
2
+ import { useQuoteQuantities_PriceListChargeFragment } from '../fragments/useQuoteQuantities_PriceListChargeFragment';
3
+ export declare const useQuoteQuantities_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
4
+ currentCharges: {
5
+ id: string | null;
6
+ quantity: number | null;
7
+ }[] | null;
8
+ }, {}, {
9
+ fragment: "useQuoteQuantities_SubscriptionFragment";
10
+ on: "Subscription";
11
+ masked: true;
12
+ }>;
13
+ export declare const useQuoteQuantities: ({ quantityEditableCharges: maskedQuantityEditableCharges, }: {
14
+ quantityEditableCharges: FragmentOf<typeof useQuoteQuantities_PriceListChargeFragment>[] | undefined;
7
15
  }) => {
8
16
  onChangeQuantity: (priceListChargeId: string, quantity: number) => void;
9
- getFeatureQuantity: (featureId: string) => number | undefined;
10
- isUpdatingCharges: boolean;
17
+ getFeatureQuantity: (featureId: string, chargeId: string) => number | undefined;
18
+ featureQuantities: import("./useFeatureQuantities").FeatureQuantitiesDict;
11
19
  };
@@ -0,0 +1,25 @@
1
+ import { FragmentOf } from 'gql.tada';
2
+ export declare const useSelectedPriceListQuoteChange_QuoteFragment: import("gql.tada").TadaDocumentNode<{
3
+ quoteChanges: {
4
+ id: string | null;
5
+ }[] | null;
6
+ }, {}, {
7
+ fragment: "useSelectedPriceListQuoteChange_QuoteFragment";
8
+ on: "Quote";
9
+ masked: true;
10
+ }>;
11
+ export declare const useSelectedPriceListQuoteChange_QuoteChangeFragment: import("gql.tada").TadaDocumentNode<{
12
+ id: string | null;
13
+ priceList: {
14
+ id: string;
15
+ } | null;
16
+ kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE";
17
+ }, {}, {
18
+ fragment: "useSelectedPriceListQuoteChange_QuoteChangeFragment";
19
+ on: "QuoteChange";
20
+ masked: true;
21
+ }>;
22
+ export declare function useSelectedPriceListQuoteChange<T extends FragmentOf<typeof useSelectedPriceListQuoteChange_QuoteChangeFragment>>({ quoteChanges: maskedQuoteChanges, selectedPriceListId, }: {
23
+ quoteChanges: T[] | undefined | null;
24
+ selectedPriceListId: string | undefined;
25
+ }): T | undefined;
@@ -0,0 +1,23 @@
1
+ type QuoteChangeCreateChargeProps = {
2
+ apiHost: string;
3
+ price?: number;
4
+ priceListChargeId?: string;
5
+ quantity?: number;
6
+ quoteChangeId: string;
7
+ startDate: string;
8
+ subscriptionChargeId?: string;
9
+ token?: string;
10
+ };
11
+ export declare const quoteChargeCreate: ({ price, priceListChargeId, quantity, quoteChangeId, startDate, subscriptionChargeId, token, apiHost, }: QuoteChangeCreateChargeProps) => Promise<{
12
+ quoteChange: {
13
+ id: string | null;
14
+ quoteId: string;
15
+ quote: {
16
+ [$tada.fragmentRefs]: {
17
+ QuoteContext_QuoteFragment: "Quote";
18
+ };
19
+ };
20
+ };
21
+ id: string | null;
22
+ } | null | undefined>;
23
+ export {};
@@ -0,0 +1,12 @@
1
+ export declare const quoteChargeUpdate: (quoteChargeId: string, quantity: number, apiHost: string, token?: string) => Promise<{
2
+ quoteChange: {
3
+ id: string | null;
4
+ quoteId: string;
5
+ quote: {
6
+ [$tada.fragmentRefs]: {
7
+ QuoteContext_QuoteFragment: "Quote";
8
+ };
9
+ };
10
+ };
11
+ id: string | null;
12
+ } | null | undefined>;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Mutation key used by all quote-related mutations (create/update/delete quote,
3
+ * quote changes, quote charges, recalculate taxes, etc.).
4
+ * Use this when calling useMutation so that useIsQuoteMutating() can detect loading.
5
+ */
6
+ export declare const QUOTE_MUTATION_KEY: readonly ["quote"];
7
+ export declare const QUOTE_RECALCULATE_TAXES_MUTATION_KEY: readonly ["quoteRecalculateTaxes"];
8
+ /**
9
+ * Returns the number of quote-related mutations currently in progress.
10
+ * Use in any component to show loading state or disable actions while the quote is being updated.
11
+ *
12
+ * @example
13
+ * const isQuoteMutating = useIsQuoteMutating();
14
+ * <Button disabled={isQuoteMutating}>Submit</Button>
15
+ *
16
+ * @example
17
+ * const count = useIsQuoteMutating();
18
+ * const isQuoteMutating = count > 0;
19
+ */
20
+ export declare function useIsQuoteMutating(): number;
@@ -9,7 +9,7 @@ export declare const PaymentForms_QuoteFragment: import("gql.tada").TadaDocument
9
9
  masked: true;
10
10
  }>;
11
11
  export default function PaymentForms({ quote: maskedQuote, handlePaymentSuccess, handleSubmit, proceedingToPayment, accountId, overrideToken, customCheckoutFunction, defaultValues, }: {
12
- quote?: FragmentOf<typeof PaymentForms_QuoteFragment>;
12
+ quote?: FragmentOf<typeof PaymentForms_QuoteFragment> | null;
13
13
  handlePaymentSuccess: () => void;
14
14
  handleSubmit: (formData: FormData) => void;
15
15
  proceedingToPayment: boolean;
@@ -1,5 +1,19 @@
1
- import '../../styles/index.less';
2
- import PriceList from '@/types/PriceList';
3
- export default function PriceListDisplay({ priceListData }: {
4
- priceListData?: PriceList;
1
+ import { FragmentOf } from 'gql.tada';
2
+ export declare const PriceListDisplay_PriceListFragment: import("gql.tada").TadaDocumentNode<{
3
+ product: {
4
+ name: string;
5
+ } | null;
6
+ name: string;
7
+ basePrice: number | null;
8
+ currencyId: string;
9
+ trialAllowed: boolean;
10
+ trialLengthDays: number | null;
11
+ periodMonths: number | null;
12
+ }, {}, {
13
+ fragment: "PriceListDisplay_PriceListFragment";
14
+ on: "PriceList";
15
+ masked: true;
16
+ }>;
17
+ export default function PriceListDisplay({ priceList: maskedPriceList }: {
18
+ priceList: FragmentOf<typeof PriceListDisplay_PriceListFragment> | undefined | null;
5
19
  }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,4 +1,3 @@
1
- import '../../styles/index.less';
2
1
  import { ShadowType } from '../../types/shadowType';
3
2
  export default function Signup({ companyName, priceListCode, returnUrl, couponCode, className, shadow, style, defaultFirstName, defaultLastName, defaultEmail, defaultCompanyName, defaultBillingCountry, }: {
4
3
  /** The company name to display on the signup page */
@@ -0,0 +1,50 @@
1
+ import { FragmentOf } from 'gql.tada';
2
+ export declare const CheckoutSummary_PriceListFragment: import("gql.tada").TadaDocumentNode<{
3
+ product: {
4
+ name: string;
5
+ } | null;
6
+ name: string;
7
+ }, {}, {
8
+ fragment: "CheckoutSummary_PriceListFragment";
9
+ on: "PriceList";
10
+ masked: true;
11
+ }>;
12
+ export declare const CheckoutSummary_QuoteFragment: import("gql.tada").TadaDocumentNode<{
13
+ id: string | null;
14
+ amountDue: number | null;
15
+ subtotal: number;
16
+ taxAmount: number;
17
+ currencyId: string;
18
+ quoteChanges: {
19
+ charges: {
20
+ id: string | null;
21
+ kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
22
+ name: string | null;
23
+ coupon: {
24
+ couponCode: string;
25
+ } | null;
26
+ quantity: number | null;
27
+ subtotal: number | null;
28
+ currencyId: string;
29
+ }[];
30
+ }[] | null;
31
+ [$tada.fragmentRefs]: {
32
+ canApplyCoupons_QuoteFragment: "Quote";
33
+ };
34
+ }, {}, {
35
+ fragment: "CheckoutSummary_QuoteFragment";
36
+ on: "Quote";
37
+ masked: true;
38
+ }>;
39
+ export default function CheckoutSummary({ quote: maskedQuote, className, onAddCoupon, onRemoveCoupon, isRemovingCoupon, priceList: maskedPriceList, isAddingCoupon, couponCode, setCouponCode, activeCouponsExist, }: {
40
+ quote: FragmentOf<typeof CheckoutSummary_QuoteFragment>;
41
+ className?: string;
42
+ onAddCoupon: (couponCode: string) => void;
43
+ onRemoveCoupon: (couponCode: string) => void;
44
+ isRemovingCoupon: boolean;
45
+ priceList: FragmentOf<typeof CheckoutSummary_PriceListFragment> | undefined | null;
46
+ isAddingCoupon: boolean;
47
+ couponCode: string;
48
+ setCouponCode: (couponCode: string) => void;
49
+ activeCouponsExist: boolean;
50
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { ResultOf } from 'gql.tada';
2
+ declare const sortQuoteChangeCharges_QuoteChargeFragment: import("gql.tada").TadaDocumentNode<{
3
+ kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
4
+ }, {}, {
5
+ fragment: "sortQuoteChangeCharges_QuoteChargeFragment";
6
+ on: "QuoteCharge";
7
+ masked: true;
8
+ }>;
9
+ /**
10
+ * Sorts quote change charges so that coupon charges appear at the end of the list.
11
+ * Uses a generic type so the full charge shape is preserved.
12
+ */
13
+ export declare function sortQuoteChangeCharges<T extends ResultOf<typeof sortQuoteChangeCharges_QuoteChargeFragment>>(charges: T[]): T[];
14
+ export {};