@bunnyapp/components 1.8.0-beta.2 → 1.8.0-beta.20

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 (296) hide show
  1. package/dist/cjs/index.js +5128 -4383
  2. package/dist/cjs/types/src/ajax.d.ts +1 -1
  3. package/dist/cjs/types/src/components/Checkout/QuoteCheckout.d.ts +6 -6
  4. package/dist/cjs/types/src/components/DocumentTemplatePreview.d.ts +5 -1
  5. package/dist/cjs/types/src/components/Invoice/InvoiceQuoteView/DownloadQuoteButton.d.ts +5 -0
  6. package/dist/cjs/types/src/components/Invoice/InvoiceQuoteView/InvoiceQuoteView.d.ts +8 -0
  7. package/dist/cjs/types/src/components/Invoice/InvoiceQuoteView/InvoiceQuoteViewWithButtons.d.ts +14 -0
  8. package/dist/cjs/types/src/components/PandadocPollingModal.d.ts +1 -1
  9. package/dist/cjs/types/src/components/PaymentForm/DemoPay/CreditCard/MiniCreditCard.d.ts +2 -0
  10. package/dist/cjs/types/src/components/PaymentForm/DemoPay/DemoPayFormProvider.d.ts +10 -0
  11. package/dist/cjs/types/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +2 -4
  12. package/dist/cjs/types/src/components/PaymentForm/DemoPay/hooks/useSave.d.ts +1 -5
  13. package/dist/cjs/types/src/components/PaymentForm/PaymentForm.d.ts +35 -14
  14. package/dist/cjs/types/src/components/PaymentForm/Stripe/StripeFormProvider.d.ts +4 -0
  15. package/dist/cjs/types/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +2 -4
  16. package/dist/cjs/types/src/components/PaymentForm/Stripe/stripeUtils.d.ts +1 -1
  17. package/dist/cjs/types/src/components/PaymentForm/components/CheckoutNoPayment.d.ts +11 -0
  18. package/dist/cjs/types/src/components/PaymentForm/components/Pay.d.ts +6 -0
  19. package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodDetails/PaymentMethodDetails.d.ts +12 -0
  20. package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodDetails/components/Cancel.d.ts +1 -0
  21. package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodDetails/components/Save.d.ts +9 -0
  22. package/dist/cjs/types/src/components/PaymentForm/components/StoredPaymentMethods.d.ts +5 -0
  23. package/dist/cjs/types/src/components/PaymentForm/context/AccountIdContext.d.ts +5 -0
  24. package/dist/cjs/types/src/components/PaymentForm/context/CallbacksContext.d.ts +14 -0
  25. package/dist/cjs/types/src/components/PaymentForm/context/PaymentMethodFormVisibilityContext.d.ts +12 -0
  26. package/dist/cjs/types/src/components/PaymentForm/context/PaymentProvider.d.ts +62 -37
  27. package/dist/cjs/types/src/components/PaymentForm/fragments/PaymentForm_QuoteFragment.d.ts +11 -0
  28. package/dist/cjs/types/src/components/PaymentForm/fragments/StoredPaymentMethods_PaymentMethodsFragment.d.ts +13 -0
  29. package/dist/cjs/types/src/components/PaymentForm/hooks/usePay.d.ts +14 -0
  30. package/dist/cjs/types/src/components/PaymentForm/hooks/usePayableCurrency.d.ts +1 -1
  31. package/dist/cjs/types/src/components/PaymentForm/hooks/usePaymentButtonText.d.ts +7 -1
  32. package/dist/cjs/types/src/components/PaymentForm/hooks/usePaymentHold.d.ts +18 -0
  33. package/dist/cjs/types/src/components/PaymentForm/hooks/useSave.d.ts +16 -0
  34. package/dist/cjs/types/src/components/PaymentForm/types/PaymentType.d.ts +2 -1
  35. package/dist/cjs/types/src/components/Quote/Quote.d.ts +28 -1
  36. package/dist/cjs/types/src/components/Quote/components/PaymentHoldDisplay.d.ts +18 -0
  37. package/dist/cjs/types/src/components/Quote/components/QuoteButtons.d.ts +13 -4
  38. package/dist/cjs/types/src/components/Quote/components/QuoteIsAcceptedLabel.d.ts +6 -0
  39. package/dist/{esm/types/src/components/Quote/hooks/useSendAcceptQuote.d.ts → cjs/types/src/components/Quote/hooks/useAcceptQuote.d.ts} +16 -8
  40. package/dist/cjs/types/src/components/Quote/hooks/useQuotePaymentHold.d.ts +20 -0
  41. package/dist/cjs/types/src/{graphql → components/Quote}/queries/getFormattedQuote.d.ts +6 -1
  42. package/dist/cjs/types/src/components/Quote/queries/quoteAccept.d.ts +38 -0
  43. package/dist/cjs/types/src/components/QuoteProvider/context/quantityEditableChargesContext.d.ts +2 -8
  44. package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +3 -3
  45. package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +5 -5
  46. package/dist/cjs/types/src/components/QuoteProvider/fragments/useQuantityEditableCharges_PriceListChargeFragment.d.ts +16 -0
  47. package/dist/cjs/types/src/components/QuoteProvider/fragments/useQuantityEditableCharges_QuoteFragment.d.ts +26 -0
  48. package/dist/cjs/types/src/components/QuoteProvider/fragments/useQuoteQuantities_PriceListChargeFragment.d.ts +13 -0
  49. package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuantityEditableCharges.d.ts +41 -36
  50. package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteCreate.d.ts +14 -3
  51. package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteQuantities.d.ts +3 -19
  52. package/dist/cjs/types/src/components/QuoteProvider/hooks/useSelectedPriceListQuoteChange.d.ts +18 -30
  53. package/dist/cjs/types/src/components/Signup/Signup.d.ts +25 -18
  54. package/dist/cjs/types/src/components/Signup/SignupContent.d.ts +2 -0
  55. package/dist/cjs/types/src/components/Signup/components/CheckoutSummary/CheckoutSummary.d.ts +9 -0
  56. package/dist/cjs/types/src/components/Signup/components/CheckoutSummary/components/CheckoutSummaryTotals.d.ts +11 -0
  57. package/dist/cjs/types/src/components/Signup/components/CheckoutSummary/fragments/CheckoutSummary_PriceListFragment.d.ts +21 -0
  58. package/dist/cjs/types/src/components/Signup/components/CheckoutSummary/fragments/CheckoutSummary_QuoteFragment.d.ts +32 -0
  59. package/dist/cjs/types/src/components/Signup/components/CheckoutSummary/hooks/sortQuoteChangeCharges.d.ts +14 -0
  60. package/dist/cjs/types/src/components/Signup/components/CheckoutSummary/totalsUtils.d.ts +9 -0
  61. package/dist/cjs/types/src/components/Signup/components/InitialSignupFormFields.d.ts +47 -0
  62. package/dist/cjs/types/src/components/Signup/components/Logo.d.ts +2 -0
  63. package/dist/cjs/types/src/components/Signup/components/PurchaseSuccessDisplay.d.ts +6 -0
  64. package/dist/cjs/types/src/components/Signup/components/QuoteCreateButton.d.ts +9 -0
  65. package/dist/cjs/types/src/components/Signup/components/SignupForm/SignupForm.d.ts +13 -0
  66. package/dist/cjs/types/src/components/Signup/components/SignupForm/components/ExistingAccountForm.d.ts +31 -0
  67. package/dist/cjs/types/src/components/Signup/components/SignupForm/components/ExistingAccountLoadedEffect.d.ts +34 -0
  68. package/dist/cjs/types/src/components/Signup/components/SignupForm/components/NewAccountForm.d.ts +8 -0
  69. package/dist/cjs/types/src/components/Signup/components/SignupForm/fragments/SignupForm_AccountFragment.d.ts +24 -0
  70. package/dist/cjs/types/src/components/Signup/components/SignupForm/hooks/useExistingAccount.d.ts +15 -0
  71. package/dist/cjs/types/src/components/Signup/components/SignupPaymentForm.d.ts +15 -0
  72. package/dist/cjs/types/src/components/Signup/components/SignupSplitScreenContainer.d.ts +6 -0
  73. package/dist/cjs/types/src/components/Signup/components/SuccessDisplay/SuccessDisplay.d.ts +10 -0
  74. package/dist/cjs/types/src/components/Signup/components/SuccessDisplay/components/SignupSuccessDisplay.d.ts +6 -0
  75. package/dist/cjs/types/src/components/Signup/components/SuccessDisplay/components/SuccessIcon.d.ts +2 -0
  76. package/dist/cjs/types/src/components/Signup/components/SuccessDisplay/components/ViewPortalSubscription.d.ts +5 -0
  77. package/dist/cjs/types/src/components/Signup/fragments/QuoteAcceptPage_PriceListFragment.d.ts +9 -0
  78. package/dist/cjs/types/src/components/Signup/fragments/SignupPaymentForm_QuoteFragment.d.ts +13 -0
  79. package/dist/cjs/types/src/components/Signup/fragments/Signup_PriceListFragment.d.ts +9 -2
  80. package/dist/cjs/types/src/components/Signup/fragments/Signup_QuoteFragment.d.ts +14 -1
  81. package/dist/cjs/types/src/components/Signup/fragments/useApplyDefaultCoupon_QuoteFragment.d.ts +9 -0
  82. package/dist/cjs/types/src/components/Signup/hooks/useAccountDetailsUpdate.d.ts +10 -0
  83. package/dist/cjs/types/src/components/Signup/hooks/useApplyDefaultCoupon.d.ts +13 -0
  84. package/dist/cjs/types/src/components/Signup/hooks/useApplySignupFormDefaults.d.ts +9 -0
  85. package/dist/cjs/types/src/components/Signup/hooks/useQuoteAccountSignupMutation.d.ts +32 -0
  86. package/dist/cjs/types/src/components/Signup/hooks/useQuoteAccountSignupOnExit.d.ts +46 -0
  87. package/dist/cjs/types/src/components/Signup/hooks/useQuoteRecalculateTaxes.d.ts +4 -0
  88. package/dist/cjs/types/src/components/Signup/hooks/useSetSignupQuoteQueryData.d.ts +5 -0
  89. package/dist/cjs/types/src/components/Signup/hooks/useSignupQuoteQueryData.d.ts +5 -0
  90. package/dist/cjs/types/src/components/Signup/mutations/contactUpdate.d.ts +12 -0
  91. package/dist/cjs/types/src/components/Signup/mutations/quoteAccountSignup.d.ts +6 -3
  92. package/dist/cjs/types/src/components/Signup/mutations/quoteChangeUpdate.d.ts +12 -0
  93. package/dist/cjs/types/src/components/Signup/mutations/quoteRecalculateTaxes.d.ts +1 -0
  94. package/dist/cjs/types/src/components/Signup/queries/getAccountByCode.d.ts +8 -0
  95. package/dist/cjs/types/src/components/Signup/queries/getAccountForSignupCompose.d.ts +20 -0
  96. package/dist/cjs/types/src/components/Signup/queries/getCurrentUserAccountForSignup.d.ts +14 -0
  97. package/dist/cjs/types/src/components/Signup/signup-quote/SignupQuote.d.ts +2 -0
  98. package/dist/cjs/types/src/components/Signup/signup-quote/SignupQuoteProvider.d.ts +9 -0
  99. package/dist/cjs/types/src/components/Signup/signup-quote/fragments/SignupQuote_QuoteFragment.d.ts +14 -0
  100. package/dist/cjs/types/src/components/Signup/utils/createPortalReturnUrl.d.ts +4 -0
  101. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/CheckoutBarInput.d.ts +1 -13
  102. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/fragments/CheckoutBarInput_PriceListChargeFragment.d.ts +13 -0
  103. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/fragments/useChargeCRUD_QuoteFragment.d.ts +22 -0
  104. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/hooks/useChargeCRUD.d.ts +1 -1
  105. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutPrice.d.ts +1 -1
  106. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +0 -14
  107. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/fragments/PlanPickerCheckoutBar_PriceListChargeFragment.d.ts +14 -0
  108. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/AddonPlans_PlanFragment.d.ts +3 -0
  109. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/PriceListSelector.d.ts +3 -0
  110. package/dist/cjs/types/src/components/Subscriptions/Upgrade/queries/getSubscriptions.d.ts +2 -163
  111. package/dist/cjs/types/src/components/Subscriptions/context/upgradingSubscriptionContext.d.ts +9 -1
  112. package/dist/cjs/types/src/components/Subscriptions/fragments/UpgradingSubscriptionContext_SubscriptionFragment.d.ts +4 -0
  113. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/utils/utils.d.ts +2 -1
  114. package/dist/cjs/types/src/components/Subscriptions/queries/getSubscriptions.d.ts +3 -3
  115. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts +1 -1
  116. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeUnitPrice.d.ts +1 -1
  117. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktopRow.d.ts +1 -1
  118. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardMobile/SubscriptionCardMobile.d.ts +1 -1
  119. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +1 -1
  120. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/sortSubscriptionCharges.d.ts +1 -1
  121. package/dist/cjs/types/src/components/priceListPricing/PricingTooltip.d.ts +0 -2
  122. package/dist/cjs/types/src/contexts/InvoiceQuoteContext.d.ts +1 -3
  123. package/dist/cjs/types/src/graphql/mutations/checkout.d.ts +24 -14
  124. package/dist/cjs/types/src/graphql/mutations/quoteChangeAddCoupon.d.ts +4 -4
  125. package/dist/cjs/types/src/graphql/mutations/quoteChangeRemoveCoupon.d.ts +5 -2
  126. package/dist/cjs/types/src/graphql/queries/getFormattedInvoice.d.ts +1 -1
  127. package/dist/cjs/types/src/hooks/usePaymentMethod.d.ts +4 -0
  128. package/dist/cjs/types/src/hooks/usePaymentPlugins.d.ts +1 -1
  129. package/dist/cjs/types/src/hooks/useUpdateCoupons.d.ts +8 -2
  130. package/dist/cjs/types/src/utils/QueryKeyFactory.d.ts +9 -4
  131. package/dist/cjs/types/src/utils/chargeUtils.d.ts +1 -0
  132. package/dist/cjs/types/src/utils/couponUtils.d.ts +6 -6
  133. package/dist/cjs/types/src/utils/featureAddonUtils/isAddonPurchased.d.ts +1 -1
  134. package/dist/esm/index.js +5125 -4380
  135. package/dist/esm/types/src/ajax.d.ts +1 -1
  136. package/dist/esm/types/src/components/Checkout/QuoteCheckout.d.ts +6 -6
  137. package/dist/esm/types/src/components/DocumentTemplatePreview.d.ts +5 -1
  138. package/dist/esm/types/src/components/Invoice/InvoiceQuoteView/DownloadQuoteButton.d.ts +5 -0
  139. package/dist/esm/types/src/components/Invoice/InvoiceQuoteView/InvoiceQuoteView.d.ts +8 -0
  140. package/dist/esm/types/src/components/Invoice/InvoiceQuoteView/InvoiceQuoteViewWithButtons.d.ts +14 -0
  141. package/dist/esm/types/src/components/PandadocPollingModal.d.ts +1 -1
  142. package/dist/esm/types/src/components/PaymentForm/DemoPay/CreditCard/MiniCreditCard.d.ts +2 -0
  143. package/dist/esm/types/src/components/PaymentForm/DemoPay/DemoPayFormProvider.d.ts +10 -0
  144. package/dist/esm/types/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +2 -4
  145. package/dist/esm/types/src/components/PaymentForm/DemoPay/hooks/useSave.d.ts +1 -5
  146. package/dist/esm/types/src/components/PaymentForm/PaymentForm.d.ts +35 -14
  147. package/dist/esm/types/src/components/PaymentForm/Stripe/StripeFormProvider.d.ts +4 -0
  148. package/dist/esm/types/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +2 -4
  149. package/dist/esm/types/src/components/PaymentForm/Stripe/stripeUtils.d.ts +1 -1
  150. package/dist/esm/types/src/components/PaymentForm/components/CheckoutNoPayment.d.ts +11 -0
  151. package/dist/esm/types/src/components/PaymentForm/components/Pay.d.ts +6 -0
  152. package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodDetails/PaymentMethodDetails.d.ts +12 -0
  153. package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodDetails/components/Cancel.d.ts +1 -0
  154. package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodDetails/components/Save.d.ts +9 -0
  155. package/dist/esm/types/src/components/PaymentForm/components/StoredPaymentMethods.d.ts +5 -0
  156. package/dist/esm/types/src/components/PaymentForm/context/AccountIdContext.d.ts +5 -0
  157. package/dist/esm/types/src/components/PaymentForm/context/CallbacksContext.d.ts +14 -0
  158. package/dist/esm/types/src/components/PaymentForm/context/PaymentMethodFormVisibilityContext.d.ts +12 -0
  159. package/dist/esm/types/src/components/PaymentForm/context/PaymentProvider.d.ts +62 -37
  160. package/dist/esm/types/src/components/PaymentForm/fragments/PaymentForm_QuoteFragment.d.ts +11 -0
  161. package/dist/esm/types/src/components/PaymentForm/fragments/StoredPaymentMethods_PaymentMethodsFragment.d.ts +13 -0
  162. package/dist/esm/types/src/components/PaymentForm/hooks/usePay.d.ts +14 -0
  163. package/dist/esm/types/src/components/PaymentForm/hooks/usePayableCurrency.d.ts +1 -1
  164. package/dist/esm/types/src/components/PaymentForm/hooks/usePaymentButtonText.d.ts +7 -1
  165. package/dist/esm/types/src/components/PaymentForm/hooks/usePaymentHold.d.ts +18 -0
  166. package/dist/esm/types/src/components/PaymentForm/hooks/useSave.d.ts +16 -0
  167. package/dist/esm/types/src/components/PaymentForm/types/PaymentType.d.ts +2 -1
  168. package/dist/esm/types/src/components/Quote/Quote.d.ts +28 -1
  169. package/dist/esm/types/src/components/Quote/components/PaymentHoldDisplay.d.ts +18 -0
  170. package/dist/esm/types/src/components/Quote/components/QuoteButtons.d.ts +13 -4
  171. package/dist/esm/types/src/components/Quote/components/QuoteIsAcceptedLabel.d.ts +6 -0
  172. package/dist/{cjs/types/src/components/Quote/hooks/useSendAcceptQuote.d.ts → esm/types/src/components/Quote/hooks/useAcceptQuote.d.ts} +16 -8
  173. package/dist/esm/types/src/components/Quote/hooks/useQuotePaymentHold.d.ts +20 -0
  174. package/dist/esm/types/src/{graphql → components/Quote}/queries/getFormattedQuote.d.ts +6 -1
  175. package/dist/esm/types/src/components/Quote/queries/quoteAccept.d.ts +38 -0
  176. package/dist/esm/types/src/components/QuoteProvider/context/quantityEditableChargesContext.d.ts +2 -8
  177. package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +3 -3
  178. package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +5 -5
  179. package/dist/esm/types/src/components/QuoteProvider/fragments/useQuantityEditableCharges_PriceListChargeFragment.d.ts +16 -0
  180. package/dist/esm/types/src/components/QuoteProvider/fragments/useQuantityEditableCharges_QuoteFragment.d.ts +26 -0
  181. package/dist/esm/types/src/components/QuoteProvider/fragments/useQuoteQuantities_PriceListChargeFragment.d.ts +13 -0
  182. package/dist/esm/types/src/components/QuoteProvider/hooks/useQuantityEditableCharges.d.ts +41 -36
  183. package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteCreate.d.ts +14 -3
  184. package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteQuantities.d.ts +3 -19
  185. package/dist/esm/types/src/components/QuoteProvider/hooks/useSelectedPriceListQuoteChange.d.ts +18 -30
  186. package/dist/esm/types/src/components/Signup/Signup.d.ts +25 -18
  187. package/dist/esm/types/src/components/Signup/SignupContent.d.ts +2 -0
  188. package/dist/esm/types/src/components/Signup/components/CheckoutSummary/CheckoutSummary.d.ts +9 -0
  189. package/dist/esm/types/src/components/Signup/components/CheckoutSummary/components/CheckoutSummaryTotals.d.ts +11 -0
  190. package/dist/esm/types/src/components/Signup/components/CheckoutSummary/fragments/CheckoutSummary_PriceListFragment.d.ts +21 -0
  191. package/dist/esm/types/src/components/Signup/components/CheckoutSummary/fragments/CheckoutSummary_QuoteFragment.d.ts +32 -0
  192. package/dist/esm/types/src/components/Signup/components/CheckoutSummary/hooks/sortQuoteChangeCharges.d.ts +14 -0
  193. package/dist/esm/types/src/components/Signup/components/CheckoutSummary/totalsUtils.d.ts +9 -0
  194. package/dist/esm/types/src/components/Signup/components/InitialSignupFormFields.d.ts +47 -0
  195. package/dist/esm/types/src/components/Signup/components/Logo.d.ts +2 -0
  196. package/dist/esm/types/src/components/Signup/components/PurchaseSuccessDisplay.d.ts +6 -0
  197. package/dist/esm/types/src/components/Signup/components/QuoteCreateButton.d.ts +9 -0
  198. package/dist/esm/types/src/components/Signup/components/SignupForm/SignupForm.d.ts +13 -0
  199. package/dist/esm/types/src/components/Signup/components/SignupForm/components/ExistingAccountForm.d.ts +31 -0
  200. package/dist/esm/types/src/components/Signup/components/SignupForm/components/ExistingAccountLoadedEffect.d.ts +34 -0
  201. package/dist/esm/types/src/components/Signup/components/SignupForm/components/NewAccountForm.d.ts +8 -0
  202. package/dist/esm/types/src/components/Signup/components/SignupForm/fragments/SignupForm_AccountFragment.d.ts +24 -0
  203. package/dist/esm/types/src/components/Signup/components/SignupForm/hooks/useExistingAccount.d.ts +15 -0
  204. package/dist/esm/types/src/components/Signup/components/SignupPaymentForm.d.ts +15 -0
  205. package/dist/esm/types/src/components/Signup/components/SignupSplitScreenContainer.d.ts +6 -0
  206. package/dist/esm/types/src/components/Signup/components/SuccessDisplay/SuccessDisplay.d.ts +10 -0
  207. package/dist/esm/types/src/components/Signup/components/SuccessDisplay/components/SignupSuccessDisplay.d.ts +6 -0
  208. package/dist/esm/types/src/components/Signup/components/SuccessDisplay/components/SuccessIcon.d.ts +2 -0
  209. package/dist/esm/types/src/components/Signup/components/SuccessDisplay/components/ViewPortalSubscription.d.ts +5 -0
  210. package/dist/esm/types/src/components/Signup/fragments/QuoteAcceptPage_PriceListFragment.d.ts +9 -0
  211. package/dist/esm/types/src/components/Signup/fragments/SignupPaymentForm_QuoteFragment.d.ts +13 -0
  212. package/dist/esm/types/src/components/Signup/fragments/Signup_PriceListFragment.d.ts +9 -2
  213. package/dist/esm/types/src/components/Signup/fragments/Signup_QuoteFragment.d.ts +14 -1
  214. package/dist/esm/types/src/components/Signup/fragments/useApplyDefaultCoupon_QuoteFragment.d.ts +9 -0
  215. package/dist/esm/types/src/components/Signup/hooks/useAccountDetailsUpdate.d.ts +10 -0
  216. package/dist/esm/types/src/components/Signup/hooks/useApplyDefaultCoupon.d.ts +13 -0
  217. package/dist/esm/types/src/components/Signup/hooks/useApplySignupFormDefaults.d.ts +9 -0
  218. package/dist/esm/types/src/components/Signup/hooks/useQuoteAccountSignupMutation.d.ts +32 -0
  219. package/dist/esm/types/src/components/Signup/hooks/useQuoteAccountSignupOnExit.d.ts +46 -0
  220. package/dist/esm/types/src/components/Signup/hooks/useQuoteRecalculateTaxes.d.ts +4 -0
  221. package/dist/esm/types/src/components/Signup/hooks/useSetSignupQuoteQueryData.d.ts +5 -0
  222. package/dist/esm/types/src/components/Signup/hooks/useSignupQuoteQueryData.d.ts +5 -0
  223. package/dist/esm/types/src/components/Signup/mutations/contactUpdate.d.ts +12 -0
  224. package/dist/esm/types/src/components/Signup/mutations/quoteAccountSignup.d.ts +6 -3
  225. package/dist/esm/types/src/components/Signup/mutations/quoteChangeUpdate.d.ts +12 -0
  226. package/dist/esm/types/src/components/Signup/mutations/quoteRecalculateTaxes.d.ts +1 -0
  227. package/dist/esm/types/src/components/Signup/queries/getAccountByCode.d.ts +8 -0
  228. package/dist/esm/types/src/components/Signup/queries/getAccountForSignupCompose.d.ts +20 -0
  229. package/dist/esm/types/src/components/Signup/queries/getCurrentUserAccountForSignup.d.ts +14 -0
  230. package/dist/esm/types/src/components/Signup/signup-quote/SignupQuote.d.ts +2 -0
  231. package/dist/esm/types/src/components/Signup/signup-quote/SignupQuoteProvider.d.ts +9 -0
  232. package/dist/esm/types/src/components/Signup/signup-quote/fragments/SignupQuote_QuoteFragment.d.ts +14 -0
  233. package/dist/esm/types/src/components/Signup/utils/createPortalReturnUrl.d.ts +4 -0
  234. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/CheckoutBarInput.d.ts +1 -13
  235. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/fragments/CheckoutBarInput_PriceListChargeFragment.d.ts +13 -0
  236. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/fragments/useChargeCRUD_QuoteFragment.d.ts +22 -0
  237. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/hooks/useChargeCRUD.d.ts +1 -1
  238. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutPrice.d.ts +1 -1
  239. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +0 -14
  240. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/fragments/PlanPickerCheckoutBar_PriceListChargeFragment.d.ts +14 -0
  241. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/AddonPlans_PlanFragment.d.ts +3 -0
  242. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/PriceListSelector.d.ts +3 -0
  243. package/dist/esm/types/src/components/Subscriptions/Upgrade/queries/getSubscriptions.d.ts +2 -163
  244. package/dist/esm/types/src/components/Subscriptions/context/upgradingSubscriptionContext.d.ts +9 -1
  245. package/dist/esm/types/src/components/Subscriptions/fragments/UpgradingSubscriptionContext_SubscriptionFragment.d.ts +4 -0
  246. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/utils/utils.d.ts +2 -1
  247. package/dist/esm/types/src/components/Subscriptions/queries/getSubscriptions.d.ts +3 -3
  248. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts +1 -1
  249. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeUnitPrice.d.ts +1 -1
  250. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktopRow.d.ts +1 -1
  251. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardMobile/SubscriptionCardMobile.d.ts +1 -1
  252. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +1 -1
  253. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/sortSubscriptionCharges.d.ts +1 -1
  254. package/dist/esm/types/src/components/priceListPricing/PricingTooltip.d.ts +0 -2
  255. package/dist/esm/types/src/contexts/InvoiceQuoteContext.d.ts +1 -3
  256. package/dist/esm/types/src/graphql/mutations/checkout.d.ts +24 -14
  257. package/dist/esm/types/src/graphql/mutations/quoteChangeAddCoupon.d.ts +4 -4
  258. package/dist/esm/types/src/graphql/mutations/quoteChangeRemoveCoupon.d.ts +5 -2
  259. package/dist/esm/types/src/graphql/queries/getFormattedInvoice.d.ts +1 -1
  260. package/dist/esm/types/src/hooks/usePaymentMethod.d.ts +4 -0
  261. package/dist/esm/types/src/hooks/usePaymentPlugins.d.ts +1 -1
  262. package/dist/esm/types/src/hooks/useUpdateCoupons.d.ts +8 -2
  263. package/dist/esm/types/src/utils/QueryKeyFactory.d.ts +9 -4
  264. package/dist/esm/types/src/utils/chargeUtils.d.ts +1 -0
  265. package/dist/esm/types/src/utils/couponUtils.d.ts +6 -6
  266. package/dist/esm/types/src/utils/featureAddonUtils/isAddonPurchased.d.ts +1 -1
  267. package/dist/index.d.ts +132 -34
  268. package/package.json +7 -4
  269. package/dist/cjs/types/src/components/Invoice/InvoiceQuoteView.d.ts +0 -12
  270. package/dist/cjs/types/src/components/PaymentForm/components/CheckoutFooter.d.ts +0 -2
  271. package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodDetails.d.ts +0 -2
  272. package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodFooter.d.ts +0 -4
  273. package/dist/cjs/types/src/components/PaymentForm/hooks/useHandlePayment.d.ts +0 -41
  274. package/dist/cjs/types/src/components/QuoteProvider/utils/getQuantityFromQuoteChange.d.ts +0 -11
  275. package/dist/cjs/types/src/components/Signup/CheckoutSummary.d.ts +0 -50
  276. package/dist/cjs/types/src/components/Signup/PaymentForms.d.ts +0 -39
  277. package/dist/cjs/types/src/components/Signup/PaymentSuccess.d.ts +0 -8
  278. package/dist/cjs/types/src/components/Signup/mutations/accountSignup.d.ts +0 -58
  279. package/dist/cjs/types/src/components/Signup/queries/getQuote.d.ts +0 -10
  280. package/dist/cjs/types/src/graphql/mutations/quoteCompose.d.ts +0 -12
  281. package/dist/esm/types/src/components/Invoice/InvoiceQuoteView.d.ts +0 -12
  282. package/dist/esm/types/src/components/PaymentForm/components/CheckoutFooter.d.ts +0 -2
  283. package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodDetails.d.ts +0 -2
  284. package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodFooter.d.ts +0 -4
  285. package/dist/esm/types/src/components/PaymentForm/hooks/useHandlePayment.d.ts +0 -41
  286. package/dist/esm/types/src/components/QuoteProvider/utils/getQuantityFromQuoteChange.d.ts +0 -11
  287. package/dist/esm/types/src/components/Signup/CheckoutSummary.d.ts +0 -50
  288. package/dist/esm/types/src/components/Signup/PaymentForms.d.ts +0 -39
  289. package/dist/esm/types/src/components/Signup/PaymentSuccess.d.ts +0 -8
  290. package/dist/esm/types/src/components/Signup/mutations/accountSignup.d.ts +0 -58
  291. package/dist/esm/types/src/components/Signup/queries/getQuote.d.ts +0 -10
  292. package/dist/esm/types/src/graphql/mutations/quoteCompose.d.ts +0 -12
  293. /package/dist/cjs/types/src/components/PaymentForm/components/{PaymentMethodSelector.d.ts → PaymentMethodDetails/components/PaymentMethodSelector.d.ts} +0 -0
  294. /package/dist/cjs/types/src/components/Signup/{PriceListDisplay.d.ts → components/PriceListDisplay.d.ts} +0 -0
  295. /package/dist/esm/types/src/components/PaymentForm/components/{PaymentMethodSelector.d.ts → PaymentMethodDetails/components/PaymentMethodSelector.d.ts} +0 -0
  296. /package/dist/esm/types/src/components/Signup/{PriceListDisplay.d.ts → components/PriceListDisplay.d.ts} +0 -0
@@ -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;
@@ -6,22 +5,32 @@ export declare const QuoteButtons_FormattedQuoteFragment: import("gql.tada").Tad
6
5
  currency: string | null;
7
6
  amount: number;
8
7
  expiresAt: unknown;
8
+ state: "APPROVED" | "REJECTED" | "DRAFT" | "SHARED" | "VIEWED" | "ACCEPTED" | "IN_APPROVAL" | "UNDONE";
9
9
  }, {}, {
10
10
  fragment: "QuoteButtons_FormattedQuoteFragment";
11
11
  on: "FormattedQuote";
12
12
  masked: true;
13
13
  }>;
14
- export declare function QuoteButtons({ isAccepted, formattedQuote: maskedFormattedQuote, isMobile, hideDownloadButton, id, isAccepting, handleClickAccept, setPaymentHoldModalVisible, shouldDoPaymentHold, paymentHoldCompleted, paymentHold, isSendAcceptPending, }: {
14
+ export declare const PaymentHoldDisplay_QuoteButtonsFragment: import("gql.tada").TadaDocumentNode<{
15
+ [$tada.fragmentRefs]: {
16
+ PaymentHoldDisplay_PaymentHoldFragment: "PaymentHold";
17
+ };
18
+ }, {}, {
19
+ fragment: "PaymentHoldDisplay_QuoteButtonsFragment";
20
+ on: "PaymentHold";
21
+ masked: true;
22
+ }>;
23
+ export declare function QuoteButtons({ isAccepted, formattedQuote: maskedFormattedQuote, isMobile, hideDownloadButton, id, isAccepting, handleClickAccept, setPaymentHoldModalVisible, shouldDoPaymentHold, paymentHoldCompleted, paymentHold: maskedPaymentHold, isSendAcceptPending, }: {
15
24
  isAccepted: boolean;
16
25
  formattedQuote: FragmentOf<typeof QuoteButtons_FormattedQuoteFragment>;
17
26
  isMobile: boolean;
18
27
  hideDownloadButton?: boolean;
19
- id?: string;
28
+ id?: string | null | undefined;
20
29
  isAccepting: boolean;
21
30
  handleClickAccept: () => void;
22
31
  setPaymentHoldModalVisible: (visible: boolean) => void;
23
32
  shouldDoPaymentHold: boolean;
24
33
  paymentHoldCompleted: boolean;
25
- paymentHold: PaymentHold | undefined;
34
+ paymentHold: FragmentOf<typeof PaymentHoldDisplay_QuoteButtonsFragment> | undefined | null;
26
35
  isSendAcceptPending: boolean;
27
36
  }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ type QuoteIsAcceptedLabelProps = {
2
+ acceptedByName?: string | null;
3
+ acceptedAt: string;
4
+ };
5
+ declare const QuoteIsAcceptedLabel: ({ acceptedByName, acceptedAt }: QuoteIsAcceptedLabelProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default QuoteIsAcceptedLabel;
@@ -1,19 +1,27 @@
1
- declare const useSendAcceptQuote: ({ quoteId, apiHost, token, onQuoteAccepted, }: {
1
+ import { type QuoteAcceptInput, type QuoteAcceptedData } from '../queries/quoteAccept';
2
+ export declare const useAcceptQuote: ({ quoteId, apiHost, token, onQuoteAccepted, }: {
2
3
  quoteId?: string;
3
4
  apiHost: string;
4
5
  token?: string;
5
- onQuoteAccepted?: () => void;
6
+ onQuoteAccepted?: (data: QuoteAcceptedData | null) => void;
6
7
  }) => {
7
8
  acceptBoxVisible: boolean;
8
9
  isAccepting: boolean;
9
- sendAccept: import("@tanstack/react-query").UseMutateFunction<any, Error, {
10
- [key: string]: string;
11
- }, unknown>;
10
+ pandadocPollingModalVisible: boolean;
11
+ isSendAcceptPending: boolean;
12
+ hasSigningPlugins: boolean | undefined;
13
+ sendAccept: import("@tanstack/react-query").UseMutateFunction<{
14
+ quoteAccept: {
15
+ quote: {
16
+ [$tada.fragmentRefs]: {
17
+ QuoteAccept_AcceptedQuoteFragment: "Quote";
18
+ };
19
+ };
20
+ errors: string | null;
21
+ } | null;
22
+ }, Error, QuoteAcceptInput, unknown>;
12
23
  setAcceptBoxVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
13
24
  setIsAccepting: import("react").Dispatch<import("react").SetStateAction<boolean>>;
14
25
  startAcceptance: () => void;
15
- pandadocPollingModalVisible: boolean;
16
26
  setPandadocPollingModalVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
17
- isSendAcceptPending: boolean;
18
27
  };
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,38 @@
1
+ import { ResultOf } from 'gql.tada';
2
+ export declare const QuoteAccept_AcceptedQuoteFragment: import("gql.tada").TadaDocumentNode<{
3
+ id: string | null;
4
+ state: "APPROVED" | "REJECTED" | "DRAFT" | "SHARED" | "VIEWED" | "ACCEPTED" | "IN_APPROVAL" | "UNDONE";
5
+ acceptedAt: unknown;
6
+ acceptedByName: string | null;
7
+ acceptedByTitle: string | null;
8
+ }, {}, {
9
+ fragment: "QuoteAccept_AcceptedQuoteFragment";
10
+ on: "Quote";
11
+ masked: true;
12
+ }>;
13
+ export type QuoteAcceptedData = ResultOf<typeof QuoteAccept_AcceptedQuoteFragment>;
14
+ /** Values passed to the quote accept mutation (excluding apiHost, token, quoteId). */
15
+ export type QuoteAcceptInput = {
16
+ name: string;
17
+ title: string;
18
+ poNumber?: string | null;
19
+ taxNumber?: string | null;
20
+ };
21
+ /** Map `NoSigningPluginsForm` field values to `QuoteAcceptInput`. */
22
+ export declare function quoteAcceptInputFromNoSigningForm(values: Record<string, unknown>): QuoteAcceptInput;
23
+ type QuoteAcceptProps = {
24
+ apiHost: string;
25
+ token?: string;
26
+ quoteId?: string | null;
27
+ } & QuoteAcceptInput;
28
+ declare const quoteAccept: ({ quoteId, apiHost, token, name, title, poNumber, taxNumber, }: QuoteAcceptProps) => Promise<{
29
+ quoteAccept: {
30
+ quote: {
31
+ [$tada.fragmentRefs]: {
32
+ QuoteAccept_AcceptedQuoteFragment: "Quote";
33
+ };
34
+ };
35
+ errors: string | null;
36
+ } | null;
37
+ }>;
38
+ export default quoteAccept;
@@ -1,8 +1,5 @@
1
1
  export declare const QuantityEditableChargesProvider: ({ value, children }: {
2
2
  value: {
3
- feature: {
4
- id: string;
5
- } | null;
6
3
  deprecated: boolean | null;
7
4
  id: string;
8
5
  featureAddon: boolean | null;
@@ -13,12 +10,9 @@ export declare const QuantityEditableChargesProvider: ({ value, children }: {
13
10
  } & {
14
11
  useQuoteQuantities_PriceListChargeFragment: "PriceListCharge";
15
12
  };
16
- }[] | undefined;
13
+ }[];
17
14
  children?: import("react").ReactNode;
18
15
  }) => import("react/jsx-runtime").JSX.Element, useQuantityEditableChargesContext: () => {
19
- feature: {
20
- id: string;
21
- } | null;
22
16
  deprecated: boolean | null;
23
17
  id: string;
24
18
  featureAddon: boolean | null;
@@ -29,4 +23,4 @@ export declare const QuantityEditableChargesProvider: ({ value, children }: {
29
23
  } & {
30
24
  useQuoteQuantities_PriceListChargeFragment: "PriceListCharge";
31
25
  };
32
- }[] | undefined;
26
+ }[];
@@ -17,11 +17,11 @@ export declare const QuoteFields_QuoteFragment: import("gql.tada").TadaDocumentN
17
17
  amount: number | null;
18
18
  startDate: unknown;
19
19
  }[];
20
- kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE";
20
+ kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "PERCENTAGE_DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE";
21
21
  quoteChanges: {
22
22
  currencyId: string;
23
23
  id: string | null;
24
- kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE";
24
+ kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "PERCENTAGE_DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE";
25
25
  charges: {
26
26
  subtotal: number | null;
27
27
  amountsByPeriod: {
@@ -46,7 +46,7 @@ export declare const QuoteFields_QuoteFragment: import("gql.tada").TadaDocumentN
46
46
  couponCode: string;
47
47
  } | null;
48
48
  quantity: number | null;
49
- kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
49
+ kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "PERCENTAGE_DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
50
50
  }[];
51
51
  priceList: {
52
52
  id: string;
@@ -17,7 +17,7 @@ export declare const QuoteContext_QuoteFragment: import("gql.tada").TadaDocument
17
17
  startDate: unknown;
18
18
  quoteChanges: {
19
19
  id: string | null;
20
- kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE";
20
+ kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "PERCENTAGE_DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE";
21
21
  priceList: {
22
22
  id: string;
23
23
  } | null;
@@ -29,9 +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
- [$tada.fragmentRefs]: {
33
- CanEditChargeQuantity_PriceListChargeFragment: "PriceListCharge";
34
- };
32
+ name: string;
35
33
  } | null;
36
34
  feature: {
37
35
  id: string;
@@ -49,7 +47,9 @@ export declare const QuoteContext_QuoteFragment: import("gql.tada").TadaDocument
49
47
  } & {
50
48
  FeatureAddonRow_QuoteFragment: "Quote";
51
49
  } & {
52
- PaymentForms_QuoteFragment: "Quote";
50
+ useQuantityEditableCharges_QuoteFragment: "Quote";
51
+ } & {
52
+ useChargeCRUD_QuoteFragment: "Quote";
53
53
  };
54
54
  }, {}, {
55
55
  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" | "PERCENTAGE_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,55 +1,52 @@
1
- import { FragmentOf, ResultOf } from 'gql.tada';
2
- import { QuoteContext_QuoteFragment } from '../fragments/quoteFragment';
1
+ import { FragmentOf } from 'gql.tada';
2
+ import { useQuantityEditableCharges_QuoteFragment } from '../fragments/useQuantityEditableCharges_QuoteFragment';
3
3
  export declare const useQuantityEditableCharges_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
4
4
  id: string;
5
+ priceListId: string;
5
6
  currentCharges: {
6
- quantity: number | null;
7
7
  priceListCharge: {
8
+ deprecated: boolean | null;
8
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
+ };
9
18
  } | null;
10
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;
11
36
  }, {}, {
12
37
  fragment: "useQuantityEditableCharges_SubscriptionFragment";
13
38
  on: "Subscription";
14
39
  masked: true;
15
40
  }>;
16
- export declare const useQuantityEditableCharges_PriceListFragment: import("gql.tada").TadaDocumentNode<{
17
- id: string;
18
- charges: {
19
- feature: {
20
- id: string;
21
- } | null;
22
- deprecated: boolean | null;
23
- id: string;
24
- featureAddon: boolean | null;
25
- [$tada.fragmentRefs]: {
26
- CanEditChargeQuantity_PriceListChargeFragment: "PriceListCharge";
27
- } & {
28
- PlanPickerCheckoutBar_PriceListChargeFragment: "PriceListCharge";
29
- } & {
30
- useQuoteQuantities_PriceListChargeFragment: "PriceListCharge";
31
- };
32
- }[] | null;
33
- [$tada.fragmentRefs]: {
34
- useSelectedPriceListQuoteChange_PriceListFragment: "PriceList";
35
- };
36
- }, {}, {
37
- fragment: "useQuantityEditableCharges_PriceListFragment";
38
- on: "PriceList";
39
- masked: true;
40
- }>;
41
41
  /**
42
42
  * Hook to provide list of pricelist charges whose quantities can be edited
43
43
  */
44
- export declare function useQuantityEditableCharges({ upgradingSubscription: maskedUpgradingSubscription, pricelist: maskedPricelist, quote }: {
44
+ export declare function useQuantityEditableCharges({ upgradingSubscription: maskedUpgradingSubscription, pricelistId, quote: maskedQuote, }: {
45
45
  upgradingSubscription: FragmentOf<typeof useQuantityEditableCharges_SubscriptionFragment> | undefined;
46
- pricelist: FragmentOf<typeof useQuantityEditableCharges_PriceListFragment> | null;
47
- quote: ResultOf<typeof QuoteContext_QuoteFragment> | null | undefined;
46
+ pricelistId: string | undefined;
47
+ quote: FragmentOf<typeof useQuantityEditableCharges_QuoteFragment> | null | undefined;
48
48
  }): {
49
49
  quantityEditableCharges: {
50
- feature: {
51
- id: string;
52
- } | null;
53
50
  deprecated: boolean | null;
54
51
  id: string;
55
52
  featureAddon: boolean | null;
@@ -60,11 +57,19 @@ export declare function useQuantityEditableCharges({ upgradingSubscription: mask
60
57
  } & {
61
58
  useQuoteQuantities_PriceListChargeFragment: "PriceListCharge";
62
59
  };
63
- }[] | undefined;
60
+ }[];
64
61
  findSubscriptionCharge: (priceListChargeId: string) => {
65
- quantity: number | null;
66
62
  priceListCharge: {
63
+ deprecated: boolean | null;
67
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
+ };
68
73
  } | null;
69
74
  } | undefined;
70
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,19 +1,5 @@
1
- import PriceList from '@/types/PriceList';
2
- import { FragmentOf, ResultOf } from 'gql.tada';
3
- import { QuoteContext_QuoteFragment } from '../fragments/quoteFragment';
4
- export declare const useQuoteQuantities_PriceListChargeFragment: import("gql.tada").TadaDocumentNode<{
5
- feature: {
6
- id: string;
7
- } | null;
8
- id: string;
9
- quantityMax: number | null;
10
- quantityMin: number | null;
11
- selfServiceQuantity: boolean | null;
12
- }, {}, {
13
- fragment: "useQuoteQuantities_PriceListChargeFragment";
14
- on: "PriceListCharge";
15
- masked: true;
16
- }>;
1
+ import { FragmentOf } from 'gql.tada';
2
+ import { useQuoteQuantities_PriceListChargeFragment } from '../fragments/useQuoteQuantities_PriceListChargeFragment';
17
3
  export declare const useQuoteQuantities_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
18
4
  currentCharges: {
19
5
  id: string | null;
@@ -24,9 +10,7 @@ export declare const useQuoteQuantities_SubscriptionFragment: import("gql.tada")
24
10
  on: "Subscription";
25
11
  masked: true;
26
12
  }>;
27
- export declare const useQuoteQuantities: ({ selectedPriceList, quote, quantityEditableCharges: maskedQuantityEditableCharges, }: {
28
- selectedPriceList: PriceList;
29
- quote: ResultOf<typeof QuoteContext_QuoteFragment> | null | undefined;
13
+ export declare const useQuoteQuantities: ({ quantityEditableCharges: maskedQuantityEditableCharges, }: {
30
14
  quantityEditableCharges: FragmentOf<typeof useQuoteQuantities_PriceListChargeFragment>[] | undefined;
31
15
  }) => {
32
16
  onChangeQuantity: (priceListChargeId: string, quantity: number) => void;
@@ -1,37 +1,25 @@
1
- import { FragmentOf, ResultOf } from 'gql.tada';
2
- import { QuoteContext_QuoteFragment } from '../fragments/quoteFragment';
3
- export declare const useSelectedPriceListQuoteChange_PriceListFragment: import("gql.tada").TadaDocumentNode<{
4
- id: string;
1
+ import { FragmentOf } from 'gql.tada';
2
+ export declare const useSelectedPriceListQuoteChange_QuoteFragment: import("gql.tada").TadaDocumentNode<{
3
+ quoteChanges: {
4
+ id: string | null;
5
+ }[] | null;
5
6
  }, {}, {
6
- fragment: "useSelectedPriceListQuoteChange_PriceListFragment";
7
- on: "PriceList";
7
+ fragment: "useSelectedPriceListQuoteChange_QuoteFragment";
8
+ on: "Quote";
8
9
  masked: true;
9
10
  }>;
10
- export declare function useSelectedPriceListQuoteChange({ quote, selectedPriceList: maskedSelectedPriceList, }: {
11
- quote: ResultOf<typeof QuoteContext_QuoteFragment> | null | undefined;
12
- selectedPriceList: FragmentOf<typeof useSelectedPriceListQuoteChange_PriceListFragment> | null;
13
- }): {
11
+ export declare const useSelectedPriceListQuoteChange_QuoteChangeFragment: import("gql.tada").TadaDocumentNode<{
14
12
  id: string | null;
15
- kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE";
16
13
  priceList: {
17
14
  id: string;
18
15
  } | null;
19
- charges: {
20
- priceListCharge: {
21
- id: string;
22
- chargeType: "ONE_TIME" | "RECURRING" | "USAGE" | null;
23
- pricingModel: "FLAT" | "TIERED" | "VOLUME" | "BANDS" | null;
24
- quantityMin: number | null;
25
- quantityMax: number | null;
26
- selfServiceQuantity: boolean | null;
27
- [$tada.fragmentRefs]: {
28
- CanEditChargeQuantity_PriceListChargeFragment: "PriceListCharge";
29
- };
30
- } | null;
31
- feature: {
32
- id: string;
33
- } | null;
34
- quantity: number | null;
35
- id: string | null;
36
- }[];
37
- } | undefined;
16
+ kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "PERCENTAGE_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;
@@ -1,27 +1,34 @@
1
+ import type { FormInstance } from "antd/es/form";
1
2
  import { ShadowType } from '../../types/shadowType';
2
- export default function Signup({ companyName, priceListCode, returnUrl, couponCode, className, shadow, style, defaultFirstName, defaultLastName, defaultEmail, defaultCompanyName, defaultBillingCountry, }: {
3
- /** The company name to display on the signup page */
4
- companyName: string;
5
- /** The price list code to use for the signup */
3
+ import { type DefaultSignupValues, InitialSignupFormData, type RequiredBillingDetailsFlags } from "./components/InitialSignupFormFields";
4
+ export type SignupProps = {
6
5
  priceListCode: string;
7
- /** The return URL to that customers can be redirected to after signup */
6
+ /** If trial is allowed on priceList, enableTrial will enable the trial for the signup */
7
+ enableTrial?: boolean;
8
+ /** The URL to redirect to after the signup is complete */
8
9
  returnUrl?: string;
9
- /** An optional coupon code that gets applied automatically */
10
- couponCode?: string;
11
10
  /** A custom class name to apply to the component */
12
11
  className?: string;
13
12
  /** The shadow level to apply to the component */
14
13
  shadow?: ShadowType;
15
14
  /** A custom style to apply to the component */
16
15
  style?: React.CSSProperties;
17
- /** The default first name to use for the signup */
18
- defaultFirstName?: string;
19
- /** The default last name to use for the signup */
20
- defaultLastName?: string;
21
- /** The default email to use for the signup */
22
- defaultEmail?: string;
23
- /** The default company name to use for the signup */
24
- defaultCompanyName?: string;
25
- /** The default billing country to use for the signup */
26
- defaultBillingCountry?: string;
27
- }): import("react/jsx-runtime").JSX.Element;
16
+ /** The default form values to use for the signup */
17
+ defaultFormValues?: DefaultSignupValues;
18
+ /** Whether to require quote acceptance before checking out */
19
+ paymentRequiredToAcceptQuote?: boolean;
20
+ /** The document template ID to apply to the quote for the signup */
21
+ documentTemplateId?: string;
22
+ /** Which account billing fields to show and require. Omit for legacy behavior (country required only). */
23
+ requiredBillingDetails?: RequiredBillingDetailsFlags;
24
+ };
25
+ declare const useSignupPortalSessionToken: () => [string | undefined, import("react").Dispatch<import("react").SetStateAction<string | undefined>>];
26
+ declare const useSignupAccountId: () => [string | undefined, import("react").Dispatch<import("react").SetStateAction<string | undefined>>];
27
+ declare const useSignupPurchaseSucceeded: () => [boolean, import("react").Dispatch<import("react").SetStateAction<boolean>>];
28
+ declare const useSignupForm: () => FormInstance<InitialSignupFormData>;
29
+ declare const useSignupOptions: () => {
30
+ enableTrial: boolean;
31
+ paymentRequiredToAcceptQuote?: boolean;
32
+ };
33
+ export default function Signup({ priceListCode, enableTrial, returnUrl, className, shadow, style, defaultFormValues, paymentRequiredToAcceptQuote, documentTemplateId, requiredBillingDetails, }: SignupProps): import("react/jsx-runtime").JSX.Element;
34
+ export { useSignupAccountId, useSignupForm, useSignupOptions, useSignupPortalSessionToken, useSignupPurchaseSucceeded };
@@ -0,0 +1,2 @@
1
+ import type { SignupProps } from './Signup';
2
+ export declare function SignupContent({ priceListCode, defaultFormValues, documentTemplateId, requiredBillingDetails, returnUrl: returnUrlProp, }: SignupProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { FragmentOf } from 'gql.tada';
2
+ import { CheckoutSummary_PriceListFragment } from './fragments/CheckoutSummary_PriceListFragment';
3
+ import { CheckoutSummary_QuoteFragment } from './fragments/CheckoutSummary_QuoteFragment';
4
+ export default function CheckoutSummary({ quote: maskedQuote, className, priceList: maskedPriceList, defaultCouponCode, }: {
5
+ quote: FragmentOf<typeof CheckoutSummary_QuoteFragment> | undefined;
6
+ className?: string;
7
+ priceList: FragmentOf<typeof CheckoutSummary_PriceListFragment> | undefined | null;
8
+ defaultCouponCode?: string;
9
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ type Props = {
2
+ subtotal: number;
3
+ taxes?: number;
4
+ amountDue: number | null;
5
+ currencyId: string;
6
+ taxCalculationMessage?: string;
7
+ /** When true, shows an “(estimated)” label with a tooltip next to each amount. */
8
+ isEstimated: boolean;
9
+ };
10
+ export declare function CheckoutSummaryTotals({ subtotal, taxes, amountDue, currencyId, taxCalculationMessage, isEstimated, }: Props): import("react/jsx-runtime").JSX.Element;
11
+ export {};