@bunnyapp/components 1.6.0-beta.9.4 → 1.7.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +94 -0
- package/dist/cjs/index.js +7603 -5949
- package/dist/cjs/types/src/components/BillingDetails/BillingDetailsForm.d.ts +0 -1
- package/dist/cjs/types/src/components/BillingDetails/components/AddContactButton.d.ts +3 -0
- package/dist/cjs/types/src/components/BillingDetails/components/AddContactModal.d.ts +8 -0
- package/dist/cjs/types/src/components/BillingDetails/fragments/AccountContactsFragment.d.ts +9 -0
- package/dist/cjs/types/src/components/BillingDetails/fragments/BillingDetailsSection_AccountFragment.d.ts +20 -0
- package/dist/cjs/types/src/components/BillingDetails/hooks/useSetAccountContactsQueryData.d.ts +5 -0
- package/dist/cjs/types/src/components/BillingDetails/mutations/accountUpdate.d.ts +22 -0
- package/dist/cjs/types/src/components/BillingDetails/mutations/contactCreate.d.ts +22 -0
- package/dist/cjs/types/src/components/BillingDetails/queries/getAccount.d.ts +9 -0
- package/dist/cjs/types/src/components/BillingDetails/queries/getAccountContacts.d.ts +9 -0
- package/dist/cjs/types/src/components/BunnyProvider.d.ts +0 -2
- package/dist/cjs/types/src/components/Checkout/Checkout.d.ts +19 -3
- package/dist/cjs/types/src/components/Checkout/QuoteCheckout.d.ts +78 -4
- package/dist/cjs/types/src/components/Checkout/checkoutUtils.d.ts +4 -2
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/CreditCard/CreditCard.d.ts +17 -13
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/CreditCard/MiniCreditCard.d.ts +27 -0
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/CreditCard/components/CardImage.d.ts +14 -0
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/CreditCard/index.d.ts +1 -1
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/DemoPayForm.d.ts +1 -6
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/hooks/useApproveHold.d.ts +1 -1
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +4 -4
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/hooks/useSave.d.ts +7 -16
- package/dist/cjs/types/src/components/PaymentForm/PaymentForm.d.ts +5 -6
- package/dist/cjs/types/src/components/PaymentForm/Stripe/StripeForm.d.ts +1 -6
- package/dist/cjs/types/src/components/PaymentForm/Stripe/hooks/useApproveHold.d.ts +1 -1
- package/dist/cjs/types/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +4 -4
- package/dist/cjs/types/src/components/PaymentForm/Stripe/hooks/useSave.d.ts +4 -5
- package/dist/cjs/types/src/components/PaymentForm/Stripe/stripeUtils.d.ts +1 -1
- package/dist/cjs/types/src/components/PaymentForm/components/CheckoutFooter.d.ts +2 -0
- package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodDetails.d.ts +2 -0
- package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodFooter.d.ts +4 -0
- package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodSelector.d.ts +2 -0
- package/dist/cjs/types/src/components/PaymentForm/context/CustomCheckoutFunctionContext.d.ts +5 -0
- package/dist/cjs/types/src/components/PaymentForm/context/OverrideTokenContext.d.ts +4 -0
- package/dist/cjs/types/src/components/PaymentForm/context/PaymentProvider.d.ts +32 -0
- package/dist/cjs/types/src/components/PaymentForm/context/SelectedPaymentPluginContext.d.ts +6 -0
- package/dist/cjs/types/src/components/PaymentForm/context/SelectedPluginProvider.d.ts +16 -0
- package/dist/cjs/types/src/components/PaymentForm/context/ShowPaymentDetailsContext.d.ts +5 -0
- package/dist/cjs/types/src/components/PaymentForm/fragments/PaymentForm_PaymentMethodsFragment.d.ts +10 -0
- package/dist/cjs/types/src/components/PaymentForm/hooks/useAutoSetDefaultPaymentMethod.d.ts +2 -5
- package/dist/cjs/types/src/components/PaymentForm/hooks/useHandlePayment.d.ts +25 -0
- package/dist/cjs/types/src/components/PaymentForm/hooks/usePayableCurrency.d.ts +6 -0
- package/dist/cjs/types/src/components/PaymentForm/hooks/usePaymentButtonText.d.ts +1 -0
- package/dist/cjs/types/src/components/PaymentForm/hooks/useRemovePaymentMethod.d.ts +2 -0
- package/dist/cjs/types/src/components/PaymentForm/hooks/useSetDefaultPaymentMethod.d.ts +5 -0
- package/dist/cjs/types/src/components/PaymentForm/types/PaymentType.d.ts +5 -0
- package/dist/cjs/types/src/components/Quote/Quote.d.ts +5 -1
- package/dist/cjs/types/src/components/QuoteProvider/QuoteProvider.d.ts +4 -0
- package/dist/cjs/types/src/components/{QuoteProvider.d.ts → QuoteProvider/context/QuoteContext.d.ts} +5 -6
- package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +65 -0
- package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +53 -0
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useFeatureQuantities.d.ts +12 -0
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteCreate.d.ts +19 -0
- package/dist/{esm/types/src/hooks/quotes → cjs/types/src/components/QuoteProvider/hooks}/useQuoteQuantities.d.ts +4 -7
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteRecalculateTaxes.d.ts +11 -0
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useSetQuoteQueryData.d.ts +5 -0
- package/dist/cjs/types/src/components/QuoteProvider/mutations/quoteChangeUpdate.d.ts +16 -0
- package/dist/cjs/types/src/components/QuoteProvider/mutations/quoteRecalculateTaxes.d.ts +11 -0
- package/dist/cjs/types/src/components/QuoteProvider/queries/getQuote.d.ts +16 -0
- package/dist/cjs/types/src/components/QuoteProvider/utils/getQuantityFromQuoteChange.d.ts +11 -0
- package/dist/cjs/types/src/components/QuoteProvider/utils/quoteChangeCanBeEdited.d.ts +4 -0
- package/dist/cjs/types/src/components/Quotes/Quotes.d.ts +3 -3
- package/dist/cjs/types/src/components/Signup/PaymentForms.d.ts +3 -4
- package/dist/cjs/types/src/components/Subscriptions/AddonSubscriptionCards.d.ts +3 -2
- package/dist/cjs/types/src/components/Subscriptions/Subscriptions.d.ts +1 -5
- package/dist/cjs/types/src/components/Subscriptions/SubscriptionsListContainer.d.ts +2 -6
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/PlanPicker.d.ts +1 -2
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/PriceListGrid.d.ts +3 -2
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput.d.ts +2 -2
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarSummarySection.d.ts +15 -2
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutButton.d.ts +2 -2
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutPrice.d.ts +12 -3
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +19 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/BillingPeriodSelector.d.ts +5 -4
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +3 -2
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonRow.d.ts +33 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddons.d.ts +12 -3
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonsList.d.ts +26 -4
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/fragments/FeatureAddonRow_QuoteFragment.d.ts +9 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/fragments/useQuoteUpdateFeatureAddon_QuoteFragment.d.ts +8 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/hooks/useQuoteUpdateFeatureAddon.d.ts +9 -0
- package/dist/cjs/types/src/{graphql → components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons}/mutations/quoteChargeCreate.d.ts +12 -2
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/planManagerUtils.d.ts +5 -2
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/PriceListCardDesktop.d.ts +52 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/AddonPlans.d.ts +10 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/components/AddonPlanModal.d.ts +19 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/components/AddonPlanRow.d.ts +25 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/AddonPlanRow_QuoteFragment.d.ts +9 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/AddonPlans_PlanFragment.d.ts +18 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/useToggleAddonPlan_QuoteFragment.d.ts +13 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/hooks/useToggleAddonQuoteChange.d.ts +9 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/mutations/quoteChangeCreate.d.ts +18 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/mutations/quoteChangeDelete.d.ts +15 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/queries/getAddonPlans.d.ts +13 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/util.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +19 -2
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/PriceListCardPriceDescription.d.ts +23 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/utils/hasMultipleRecurringCharges.d.ts +12 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCard.d.ts +21 -4
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardButton.d.ts +16 -3
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardFeature.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardPrice.d.ts +12 -3
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardTitle.d.ts +2 -3
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/priceListCardUtils.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PreviewModeAdvisary.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuantityChangeGridRow.d.ts +1 -6
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuantityDrawer.d.ts +12 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +11 -6
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteIdContext.d.ts +5 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteIsLoadingContext.d.ts +5 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteRecalculateTaxesContext.d.ts +6 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/fragments/QuantityDrawer_QuoteFragment.d.ts +14 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useQuoteQueryData.d.ts +3 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useQuoteRecalculateTaxes.d.ts +11 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useSetQuoteQueryData.d.ts +5 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteChargeCreate.d.ts +23 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteChargeUpdate.d.ts +12 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteDelete.d.ts +12 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteRecalculateTaxes.d.ts +11 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteSubscriptionUpdate.d.ts +22 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +1 -6
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/{QuantityInput.d.ts → quantityInput/QuantityInput.d.ts} +12 -18
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/quantityInput/QuoteIsLoadingUpdater.d.ts +9 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/quantityInput/fragments/QuantityInput_QuoteFragment.d.ts +27 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/utils/formatDateForApi.d.ts +2 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/{utils.d.ts → utils/utils.d.ts} +3 -11
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +2 -2
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionsNavigation.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionCardActions.d.ts +21 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/queries/getPriceListChangeOptions.d.ts +9 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +0 -2
- package/dist/cjs/types/src/components/Subscriptions/tieredDisplayDropdown/TieredDisplayDropdown.d.ts +11 -0
- package/dist/cjs/types/src/components/Subscriptions/tieredDisplayDropdown/util.d.ts +9 -0
- package/dist/cjs/types/src/components/TaxationForm.d.ts +3 -3
- package/dist/cjs/types/src/components/Transactions/Transactions.d.ts +1 -1
- package/dist/cjs/types/src/components/priceListPricing/PricingTooltip.d.ts +43 -0
- package/dist/cjs/types/src/components/priceListPricing/components/ChargePriceTiers.d.ts +23 -0
- package/dist/cjs/types/src/components/priceListPricing/components/PriceTierPrice.d.ts +7 -0
- package/dist/cjs/types/src/components/priceListPricing/components/PriceTierRow.d.ts +13 -0
- package/dist/cjs/types/src/components/priceListPricing/misc/consts.d.ts +1 -0
- package/dist/cjs/types/src/components/priceListPricing/types/PriceTier.d.ts +4 -0
- package/dist/cjs/types/src/components/priceListPricing/utils/getPricingModelDescription.d.ts +2 -0
- package/dist/cjs/types/src/components/priceListPricing/utils/getPricingModelTitle.d.ts +2 -0
- package/dist/cjs/types/src/components/priceListPricing/utils/hasPriceTiers.d.ts +13 -0
- package/dist/cjs/types/src/components/priceListPricing/utils/priceListChargeUtil.ts/chargeHasPriceTiers.d.ts +12 -0
- package/dist/cjs/types/src/components/priceListPricing/utils/priceListChargeUtil.ts/getChargeBasePrice.d.ts +8 -0
- package/dist/cjs/types/src/components/priceListPricing/utils/priceListChargeUtil.ts/getFirstTierPrice.d.ts +7 -0
- package/dist/cjs/types/src/contexts/BrandContext.d.ts +11 -2
- package/dist/cjs/types/src/graphql/QuoteRequests.d.ts +0 -5
- package/dist/cjs/types/src/graphql/mutations/quoteChargeDelete.d.ts +11 -2
- package/dist/cjs/types/src/graphql/queries/getBranding.d.ts +7 -2
- package/dist/cjs/types/src/graphql/queries/getCurrentUserData.d.ts +11 -7
- package/dist/cjs/types/src/graphql/queries/getFormattedQuote.d.ts +139 -1
- package/dist/cjs/types/src/graphql/queries/getPriceListChangeOptions.d.ts +4 -4
- package/dist/cjs/types/src/graphql/queries/getQuote.d.ts +29 -2
- package/dist/cjs/types/src/graphql-codegen/exportedScalarTypes.d.ts +6 -0
- package/dist/cjs/types/src/hooks/quotes/useSendAcceptQuote.d.ts +2 -1
- package/dist/cjs/types/src/hooks/useAllErrorFormats.d.ts +1 -0
- package/dist/cjs/types/src/hooks/useCreateQueryClient.d.ts +2 -0
- package/dist/cjs/types/src/hooks/useCurrentUserData.d.ts +11 -7
- package/dist/cjs/types/src/hooks/useIsMobile.d.ts +9 -0
- package/dist/cjs/types/src/hooks/usePaymentMethod.d.ts +47 -6
- package/dist/cjs/types/src/hooks/usePaymentPlugins.d.ts +13 -27
- package/dist/cjs/types/src/index.d.ts +2 -2
- package/dist/cjs/types/src/utils/QueryKeyFactory.d.ts +106 -0
- package/dist/cjs/types/src/utils/addonPlanUtils/addonPlanUtils.d.ts +5 -0
- package/dist/cjs/types/src/utils/addonPlanUtils/getAddonsForBillingPeriod.d.ts +8 -0
- package/dist/cjs/types/src/utils/addonPlanUtils/hasUnpurchasedAddonPricelists.d.ts +15 -0
- package/dist/cjs/types/src/utils/apiUtils/invokePlugin.d.ts +10 -0
- package/dist/cjs/types/src/utils/chargeUtils.d.ts +5 -2
- package/dist/cjs/types/src/utils/createStateContext.d.ts +11 -0
- package/dist/cjs/types/src/utils/createValueContext.d.ts +14 -0
- package/dist/cjs/types/src/utils/featureAddonUtils/featureAddonUtils.d.ts +20 -0
- package/dist/cjs/types/src/utils/featureAddonUtils/isAddonPurchased.d.ts +24 -0
- package/dist/cjs/types/src/utils/formatCurrency.d.ts +1 -0
- package/dist/cjs/types/src/utils/priceListUtils/doesPriceListHaveFlatFeeCharges.d.ts +12 -0
- package/dist/cjs/types/src/utils/priceListUtils/getPrice.d.ts +11 -0
- package/dist/cjs/types/src/utils/priceListUtils/priceDescription.d.ts +6 -0
- package/dist/cjs/types/src/utils/priceListUtils/priceListPriceText.d.ts +19 -0
- package/dist/cjs/types/src/utils/pricePickerUtils.d.ts +4 -4
- package/dist/esm/index.js +7624 -5970
- package/dist/esm/types/src/components/BillingDetails/BillingDetailsForm.d.ts +0 -1
- package/dist/esm/types/src/components/BillingDetails/components/AddContactButton.d.ts +3 -0
- package/dist/esm/types/src/components/BillingDetails/components/AddContactModal.d.ts +8 -0
- package/dist/esm/types/src/components/BillingDetails/fragments/AccountContactsFragment.d.ts +9 -0
- package/dist/esm/types/src/components/BillingDetails/fragments/BillingDetailsSection_AccountFragment.d.ts +20 -0
- package/dist/esm/types/src/components/BillingDetails/hooks/useSetAccountContactsQueryData.d.ts +5 -0
- package/dist/esm/types/src/components/BillingDetails/mutations/accountUpdate.d.ts +22 -0
- package/dist/esm/types/src/components/BillingDetails/mutations/contactCreate.d.ts +22 -0
- package/dist/esm/types/src/components/BillingDetails/queries/getAccount.d.ts +9 -0
- package/dist/esm/types/src/components/BillingDetails/queries/getAccountContacts.d.ts +9 -0
- package/dist/esm/types/src/components/BunnyProvider.d.ts +0 -2
- package/dist/esm/types/src/components/Checkout/Checkout.d.ts +19 -3
- package/dist/esm/types/src/components/Checkout/QuoteCheckout.d.ts +78 -4
- package/dist/esm/types/src/components/Checkout/checkoutUtils.d.ts +4 -2
- package/dist/esm/types/src/components/PaymentForm/DemoPay/CreditCard/CreditCard.d.ts +17 -13
- package/dist/esm/types/src/components/PaymentForm/DemoPay/CreditCard/MiniCreditCard.d.ts +27 -0
- package/dist/esm/types/src/components/PaymentForm/DemoPay/CreditCard/components/CardImage.d.ts +14 -0
- package/dist/esm/types/src/components/PaymentForm/DemoPay/CreditCard/index.d.ts +1 -1
- package/dist/esm/types/src/components/PaymentForm/DemoPay/DemoPayForm.d.ts +1 -6
- package/dist/esm/types/src/components/PaymentForm/DemoPay/hooks/useApproveHold.d.ts +1 -1
- package/dist/esm/types/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +4 -4
- package/dist/esm/types/src/components/PaymentForm/DemoPay/hooks/useSave.d.ts +7 -16
- package/dist/esm/types/src/components/PaymentForm/PaymentForm.d.ts +5 -6
- package/dist/esm/types/src/components/PaymentForm/Stripe/StripeForm.d.ts +1 -6
- package/dist/esm/types/src/components/PaymentForm/Stripe/hooks/useApproveHold.d.ts +1 -1
- package/dist/esm/types/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +4 -4
- package/dist/esm/types/src/components/PaymentForm/Stripe/hooks/useSave.d.ts +4 -5
- package/dist/esm/types/src/components/PaymentForm/Stripe/stripeUtils.d.ts +1 -1
- package/dist/esm/types/src/components/PaymentForm/components/CheckoutFooter.d.ts +2 -0
- package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodDetails.d.ts +2 -0
- package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodFooter.d.ts +4 -0
- package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodSelector.d.ts +2 -0
- package/dist/esm/types/src/components/PaymentForm/context/CustomCheckoutFunctionContext.d.ts +5 -0
- package/dist/esm/types/src/components/PaymentForm/context/OverrideTokenContext.d.ts +4 -0
- package/dist/esm/types/src/components/PaymentForm/context/PaymentProvider.d.ts +32 -0
- package/dist/esm/types/src/components/PaymentForm/context/SelectedPaymentPluginContext.d.ts +6 -0
- package/dist/esm/types/src/components/PaymentForm/context/SelectedPluginProvider.d.ts +16 -0
- package/dist/esm/types/src/components/PaymentForm/context/ShowPaymentDetailsContext.d.ts +5 -0
- package/dist/esm/types/src/components/PaymentForm/fragments/PaymentForm_PaymentMethodsFragment.d.ts +10 -0
- package/dist/esm/types/src/components/PaymentForm/hooks/useAutoSetDefaultPaymentMethod.d.ts +2 -5
- package/dist/esm/types/src/components/PaymentForm/hooks/useHandlePayment.d.ts +25 -0
- package/dist/esm/types/src/components/PaymentForm/hooks/usePayableCurrency.d.ts +6 -0
- package/dist/esm/types/src/components/PaymentForm/hooks/usePaymentButtonText.d.ts +1 -0
- package/dist/esm/types/src/components/PaymentForm/hooks/useRemovePaymentMethod.d.ts +2 -0
- package/dist/esm/types/src/components/PaymentForm/hooks/useSetDefaultPaymentMethod.d.ts +5 -0
- package/dist/esm/types/src/components/PaymentForm/types/PaymentType.d.ts +5 -0
- package/dist/esm/types/src/components/Quote/Quote.d.ts +5 -1
- package/dist/esm/types/src/components/QuoteProvider/QuoteProvider.d.ts +4 -0
- package/dist/esm/types/src/components/{QuoteProvider.d.ts → QuoteProvider/context/QuoteContext.d.ts} +5 -6
- package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +65 -0
- package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +53 -0
- package/dist/esm/types/src/components/QuoteProvider/hooks/useFeatureQuantities.d.ts +12 -0
- package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteCreate.d.ts +19 -0
- package/dist/{cjs/types/src/hooks/quotes → esm/types/src/components/QuoteProvider/hooks}/useQuoteQuantities.d.ts +4 -7
- package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteRecalculateTaxes.d.ts +11 -0
- package/dist/esm/types/src/components/QuoteProvider/hooks/useSetQuoteQueryData.d.ts +5 -0
- package/dist/esm/types/src/components/QuoteProvider/mutations/quoteChangeUpdate.d.ts +16 -0
- package/dist/esm/types/src/components/QuoteProvider/mutations/quoteRecalculateTaxes.d.ts +11 -0
- package/dist/esm/types/src/components/QuoteProvider/queries/getQuote.d.ts +16 -0
- package/dist/esm/types/src/components/QuoteProvider/utils/getQuantityFromQuoteChange.d.ts +11 -0
- package/dist/esm/types/src/components/QuoteProvider/utils/quoteChangeCanBeEdited.d.ts +4 -0
- package/dist/esm/types/src/components/Quotes/Quotes.d.ts +3 -3
- package/dist/esm/types/src/components/Signup/PaymentForms.d.ts +3 -4
- package/dist/esm/types/src/components/Subscriptions/AddonSubscriptionCards.d.ts +3 -2
- package/dist/esm/types/src/components/Subscriptions/Subscriptions.d.ts +1 -5
- package/dist/esm/types/src/components/Subscriptions/SubscriptionsListContainer.d.ts +2 -6
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/PlanPicker.d.ts +1 -2
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/PriceListGrid.d.ts +3 -2
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput.d.ts +2 -2
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarSummarySection.d.ts +15 -2
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutButton.d.ts +2 -2
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutPrice.d.ts +12 -3
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +19 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/BillingPeriodSelector.d.ts +5 -4
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +3 -2
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonRow.d.ts +33 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddons.d.ts +12 -3
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonsList.d.ts +26 -4
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/fragments/FeatureAddonRow_QuoteFragment.d.ts +9 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/fragments/useQuoteUpdateFeatureAddon_QuoteFragment.d.ts +8 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/hooks/useQuoteUpdateFeatureAddon.d.ts +9 -0
- package/dist/esm/types/src/{graphql → components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons}/mutations/quoteChargeCreate.d.ts +12 -2
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/planManagerUtils.d.ts +5 -2
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/PriceListCardDesktop.d.ts +52 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/AddonPlans.d.ts +10 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/components/AddonPlanModal.d.ts +19 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/components/AddonPlanRow.d.ts +25 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/AddonPlanRow_QuoteFragment.d.ts +9 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/AddonPlans_PlanFragment.d.ts +18 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/useToggleAddonPlan_QuoteFragment.d.ts +13 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/hooks/useToggleAddonQuoteChange.d.ts +9 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/mutations/quoteChangeCreate.d.ts +18 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/mutations/quoteChangeDelete.d.ts +15 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/queries/getAddonPlans.d.ts +13 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/util.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +19 -2
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/PriceListCardPriceDescription.d.ts +23 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/utils/hasMultipleRecurringCharges.d.ts +12 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCard.d.ts +21 -4
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardButton.d.ts +16 -3
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardFeature.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardPrice.d.ts +12 -3
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardTitle.d.ts +2 -3
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/priceListCardUtils.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PreviewModeAdvisary.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuantityChangeGridRow.d.ts +1 -6
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuantityDrawer.d.ts +12 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +11 -6
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteIdContext.d.ts +5 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteIsLoadingContext.d.ts +5 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteRecalculateTaxesContext.d.ts +6 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/fragments/QuantityDrawer_QuoteFragment.d.ts +14 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useQuoteQueryData.d.ts +3 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useQuoteRecalculateTaxes.d.ts +11 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useSetQuoteQueryData.d.ts +5 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteChargeCreate.d.ts +23 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteChargeUpdate.d.ts +12 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteDelete.d.ts +12 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteRecalculateTaxes.d.ts +11 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteSubscriptionUpdate.d.ts +22 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +1 -6
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/{QuantityInput.d.ts → quantityInput/QuantityInput.d.ts} +12 -18
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/quantityInput/QuoteIsLoadingUpdater.d.ts +9 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/quantityInput/fragments/QuantityInput_QuoteFragment.d.ts +27 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/utils/formatDateForApi.d.ts +2 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/{utils.d.ts → utils/utils.d.ts} +3 -11
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +2 -2
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionsNavigation.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionCardActions.d.ts +21 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/queries/getPriceListChangeOptions.d.ts +9 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +0 -2
- package/dist/esm/types/src/components/Subscriptions/tieredDisplayDropdown/TieredDisplayDropdown.d.ts +11 -0
- package/dist/esm/types/src/components/Subscriptions/tieredDisplayDropdown/util.d.ts +9 -0
- package/dist/esm/types/src/components/TaxationForm.d.ts +3 -3
- package/dist/esm/types/src/components/Transactions/Transactions.d.ts +1 -1
- package/dist/esm/types/src/components/priceListPricing/PricingTooltip.d.ts +43 -0
- package/dist/esm/types/src/components/priceListPricing/components/ChargePriceTiers.d.ts +23 -0
- package/dist/esm/types/src/components/priceListPricing/components/PriceTierPrice.d.ts +7 -0
- package/dist/esm/types/src/components/priceListPricing/components/PriceTierRow.d.ts +13 -0
- package/dist/esm/types/src/components/priceListPricing/misc/consts.d.ts +1 -0
- package/dist/esm/types/src/components/priceListPricing/types/PriceTier.d.ts +4 -0
- package/dist/esm/types/src/components/priceListPricing/utils/getPricingModelDescription.d.ts +2 -0
- package/dist/esm/types/src/components/priceListPricing/utils/getPricingModelTitle.d.ts +2 -0
- package/dist/esm/types/src/components/priceListPricing/utils/hasPriceTiers.d.ts +13 -0
- package/dist/esm/types/src/components/priceListPricing/utils/priceListChargeUtil.ts/chargeHasPriceTiers.d.ts +12 -0
- package/dist/esm/types/src/components/priceListPricing/utils/priceListChargeUtil.ts/getChargeBasePrice.d.ts +8 -0
- package/dist/esm/types/src/components/priceListPricing/utils/priceListChargeUtil.ts/getFirstTierPrice.d.ts +7 -0
- package/dist/esm/types/src/contexts/BrandContext.d.ts +11 -2
- package/dist/esm/types/src/graphql/QuoteRequests.d.ts +0 -5
- package/dist/esm/types/src/graphql/mutations/quoteChargeDelete.d.ts +11 -2
- package/dist/esm/types/src/graphql/queries/getBranding.d.ts +7 -2
- package/dist/esm/types/src/graphql/queries/getCurrentUserData.d.ts +11 -7
- package/dist/esm/types/src/graphql/queries/getFormattedQuote.d.ts +139 -1
- package/dist/esm/types/src/graphql/queries/getPriceListChangeOptions.d.ts +4 -4
- package/dist/esm/types/src/graphql/queries/getQuote.d.ts +29 -2
- package/dist/esm/types/src/graphql-codegen/exportedScalarTypes.d.ts +6 -0
- package/dist/esm/types/src/hooks/quotes/useSendAcceptQuote.d.ts +2 -1
- package/dist/esm/types/src/hooks/useAllErrorFormats.d.ts +1 -0
- package/dist/esm/types/src/hooks/useCreateQueryClient.d.ts +2 -0
- package/dist/esm/types/src/hooks/useCurrentUserData.d.ts +11 -7
- package/dist/esm/types/src/hooks/useIsMobile.d.ts +9 -0
- package/dist/esm/types/src/hooks/usePaymentMethod.d.ts +47 -6
- package/dist/esm/types/src/hooks/usePaymentPlugins.d.ts +13 -27
- package/dist/esm/types/src/index.d.ts +2 -2
- package/dist/esm/types/src/utils/QueryKeyFactory.d.ts +106 -0
- package/dist/esm/types/src/utils/addonPlanUtils/addonPlanUtils.d.ts +5 -0
- package/dist/esm/types/src/utils/addonPlanUtils/getAddonsForBillingPeriod.d.ts +8 -0
- package/dist/esm/types/src/utils/addonPlanUtils/hasUnpurchasedAddonPricelists.d.ts +15 -0
- package/dist/esm/types/src/utils/apiUtils/invokePlugin.d.ts +10 -0
- package/dist/esm/types/src/utils/chargeUtils.d.ts +5 -2
- package/dist/esm/types/src/utils/createStateContext.d.ts +11 -0
- package/dist/esm/types/src/utils/createValueContext.d.ts +14 -0
- package/dist/esm/types/src/utils/featureAddonUtils/featureAddonUtils.d.ts +20 -0
- package/dist/esm/types/src/utils/featureAddonUtils/isAddonPurchased.d.ts +24 -0
- package/dist/esm/types/src/utils/formatCurrency.d.ts +1 -0
- package/dist/esm/types/src/utils/priceListUtils/doesPriceListHaveFlatFeeCharges.d.ts +12 -0
- package/dist/esm/types/src/utils/priceListUtils/getPrice.d.ts +11 -0
- package/dist/esm/types/src/utils/priceListUtils/priceDescription.d.ts +6 -0
- package/dist/esm/types/src/utils/priceListUtils/priceListPriceText.d.ts +19 -0
- package/dist/esm/types/src/utils/pricePickerUtils.d.ts +4 -4
- package/dist/index.d.ts +33 -13
- package/package.json +3 -3
- package/dist/cjs/types/src/components/PaymentForm/CheckoutFooter.d.ts +0 -13
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/CreditCard/LargCardIcon.d.ts +0 -2
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/CreditCard/PlusIcon.d.ts +0 -4
- package/dist/cjs/types/src/components/PaymentForm/PaymentMethodDetails.d.ts +0 -7
- package/dist/cjs/types/src/components/PaymentForm/PaymentMethodSelector.d.ts +0 -7
- package/dist/cjs/types/src/components/PaymentForm/SavePaymentMethodFooter.d.ts +0 -6
- package/dist/cjs/types/src/components/PaymentForm/Stripe/PaymentMethodForm.d.ts +0 -7
- package/dist/cjs/types/src/components/PaymentForm/hooks/usePaymentMethodSelectorPlugin.d.ts +0 -10
- package/dist/cjs/types/src/components/PaymentForm/useRemovePaymentMethod.d.ts +0 -3
- package/dist/cjs/types/src/components/PaymentForm/useSetDefaultPaymentMethod.d.ts +0 -6
- package/dist/cjs/types/src/components/Subscriptions/QuantityDrawerContainer.d.ts +0 -15
- package/dist/cjs/types/src/components/Subscriptions/TieredDisplayDropdown.d.ts +0 -8
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanAddonsCard.d.ts +0 -10
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PriceListCardDesktop.d.ts +0 -15
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardPriceDescription.d.ts +0 -13
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +0 -9
- package/dist/cjs/types/src/contexts/PaymentContext.d.ts +0 -10
- package/dist/cjs/types/src/graphql/mutations/billingDetailsUpdate.d.ts +0 -6
- package/dist/cjs/types/src/graphql/mutations/quoteAddonCreate.d.ts +0 -7
- package/dist/cjs/types/src/graphql/mutations/quoteChangeCreate.d.ts +0 -8
- package/dist/cjs/types/src/graphql/mutations/quoteChangeDelete.d.ts +0 -6
- package/dist/cjs/types/src/graphql/mutations/quoteChargeUpdate.d.ts +0 -13
- package/dist/cjs/types/src/graphql/queries/getAddonPlans.d.ts +0 -37
- package/dist/cjs/types/src/graphql/queries/getBillingDetails.d.ts +0 -6
- package/dist/cjs/types/src/hooks/quotes/useQuoteCreate.d.ts +0 -9
- package/dist/cjs/types/src/hooks/quotes/useQuoteUpdateFeatureAddon.d.ts +0 -7
- package/dist/cjs/types/src/hooks/usePriceListChangeOptions.d.ts +0 -9
- package/dist/cjs/types/src/hooks/useToggleAddonQuoteChange.d.ts +0 -7
- package/dist/cjs/types/src/utils/GraphQLClient.d.ts +0 -2
- package/dist/cjs/types/src/utils/addonPlanUtils.d.ts +0 -7
- package/dist/cjs/types/src/utils/featureAddonUtils.d.ts +0 -6
- package/dist/esm/types/src/components/PaymentForm/CheckoutFooter.d.ts +0 -13
- package/dist/esm/types/src/components/PaymentForm/DemoPay/CreditCard/LargCardIcon.d.ts +0 -2
- package/dist/esm/types/src/components/PaymentForm/DemoPay/CreditCard/PlusIcon.d.ts +0 -4
- package/dist/esm/types/src/components/PaymentForm/PaymentMethodDetails.d.ts +0 -7
- package/dist/esm/types/src/components/PaymentForm/PaymentMethodSelector.d.ts +0 -7
- package/dist/esm/types/src/components/PaymentForm/SavePaymentMethodFooter.d.ts +0 -6
- package/dist/esm/types/src/components/PaymentForm/Stripe/PaymentMethodForm.d.ts +0 -7
- package/dist/esm/types/src/components/PaymentForm/hooks/usePaymentMethodSelectorPlugin.d.ts +0 -10
- package/dist/esm/types/src/components/PaymentForm/useRemovePaymentMethod.d.ts +0 -3
- package/dist/esm/types/src/components/PaymentForm/useSetDefaultPaymentMethod.d.ts +0 -6
- package/dist/esm/types/src/components/Subscriptions/QuantityDrawerContainer.d.ts +0 -15
- package/dist/esm/types/src/components/Subscriptions/TieredDisplayDropdown.d.ts +0 -8
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanAddonsCard.d.ts +0 -10
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PriceListCardDesktop.d.ts +0 -15
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardPriceDescription.d.ts +0 -13
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +0 -9
- package/dist/esm/types/src/contexts/PaymentContext.d.ts +0 -10
- package/dist/esm/types/src/graphql/mutations/billingDetailsUpdate.d.ts +0 -6
- package/dist/esm/types/src/graphql/mutations/quoteAddonCreate.d.ts +0 -7
- package/dist/esm/types/src/graphql/mutations/quoteChangeCreate.d.ts +0 -8
- package/dist/esm/types/src/graphql/mutations/quoteChangeDelete.d.ts +0 -6
- package/dist/esm/types/src/graphql/mutations/quoteChargeUpdate.d.ts +0 -13
- package/dist/esm/types/src/graphql/queries/getAddonPlans.d.ts +0 -37
- package/dist/esm/types/src/graphql/queries/getBillingDetails.d.ts +0 -6
- package/dist/esm/types/src/hooks/quotes/useQuoteCreate.d.ts +0 -9
- package/dist/esm/types/src/hooks/quotes/useQuoteUpdateFeatureAddon.d.ts +0 -7
- package/dist/esm/types/src/hooks/usePriceListChangeOptions.d.ts +0 -9
- package/dist/esm/types/src/hooks/useToggleAddonQuoteChange.d.ts +0 -7
- package/dist/esm/types/src/utils/GraphQLClient.d.ts +0 -2
- package/dist/esm/types/src/utils/addonPlanUtils.d.ts +0 -7
- package/dist/esm/types/src/utils/featureAddonUtils.d.ts +0 -6
- /package/dist/cjs/types/src/components/PaymentForm/{CouponEditor.d.ts → components/CouponEditor.d.ts} +0 -0
- /package/dist/cjs/types/src/components/PaymentForm/{PaymentFormTypes.d.ts → types/PaymentFormTypes.d.ts} +0 -0
- /package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/{SubscriptionCardHeader.d.ts → subscriptionCardHeader/SubscriptionCardHeader.d.ts} +0 -0
- /package/dist/cjs/types/src/utils/{apiUtils.d.ts → apiUtils/apiUtils.d.ts} +0 -0
- /package/dist/esm/types/src/components/PaymentForm/{CouponEditor.d.ts → components/CouponEditor.d.ts} +0 -0
- /package/dist/esm/types/src/components/PaymentForm/{PaymentFormTypes.d.ts → types/PaymentFormTypes.d.ts} +0 -0
- /package/dist/esm/types/src/components/Subscriptions/subscriptionsList/{SubscriptionCardHeader.d.ts → subscriptionCardHeader/SubscriptionCardHeader.d.ts} +0 -0
- /package/dist/esm/types/src/utils/{apiUtils.d.ts → apiUtils/apiUtils.d.ts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export declare const periodMonthsConverter: (period:
|
|
4
|
-
export declare const billingPeriodConverter: (period?: BillingPeriod) =>
|
|
1
|
+
import { Plan, Product } from '@bunnyapp/common';
|
|
2
|
+
import { BillingPeriod } from '@/graphql-codegen/exportedScalarTypes';
|
|
3
|
+
export declare const periodMonthsConverter: (period: number | null) => "ONCE" | "MONTHLY" | "QUARTERLY" | "SEMI_ANNUAL" | "ANNUAL" | null;
|
|
4
|
+
export declare const billingPeriodConverter: (period?: BillingPeriod) => 0 | 1 | 3 | 6 | 12;
|
|
5
5
|
export declare const createAvailableBillingPeriods: (plans?: Plan[], selectedProduct?: Product) => (0 | 1 | 3 | 6 | 12)[] | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { FormattedInvoice, FormattedQuote, Transaction, Invoice as Invoice$1, Quote as Quote$1,
|
|
2
|
+
import { FormattedInvoice, FormattedQuote, Transaction, Invoice as Invoice$1, Quote as Quote$1, TransactionKind, Subscription } from '@bunnyapp/common';
|
|
3
3
|
import { QueryClient } from '@tanstack/react-query';
|
|
4
4
|
import { ThemeConfig } from 'antd';
|
|
5
5
|
import react from 'react';
|
|
6
|
+
import * as gql_tada from 'gql.tada';
|
|
7
|
+
import { FragmentOf } from 'gql.tada';
|
|
6
8
|
|
|
7
9
|
type ShadowType = "shadow-none" | "shadow-sm" | "shadow-md" | "shadow-lg" | "shadow-xl";
|
|
8
10
|
|
|
@@ -32,13 +34,16 @@ declare global {
|
|
|
32
34
|
}
|
|
33
35
|
}
|
|
34
36
|
|
|
35
|
-
|
|
37
|
+
type QuoteProps = InvoiceQuoteContextProps & {
|
|
38
|
+
onQuoteAccepted?: () => void;
|
|
39
|
+
};
|
|
40
|
+
declare function Quote({ id, invoiceQuoteViewComponent, onInvoiceDownloadError, onPaymentSuccess, shadow, className, hideDownloadButton, onQuoteLoaded, onQuoteAccepted, }: QuoteProps): react_jsx_runtime.JSX.Element;
|
|
36
41
|
|
|
37
42
|
type TransactionListColumnType = 'date' | 'title' | 'state' | 'amount' | 'download' | 'accountName';
|
|
38
43
|
|
|
39
|
-
declare function Quotes({ className, columns, filter, filterQuotes, sort, noQuotesMessage, onQuoteClick,
|
|
40
|
-
/**
|
|
41
|
-
|
|
44
|
+
declare function Quotes({ className, columns, filter, filterQuotes, sort, noQuotesMessage, onQuoteClick, renderQuote, searchBarClassName, shadow, showSearchBar, showTitle, title, style, suppressQuoteDisplay, useModal, }: {
|
|
45
|
+
/** Render a custom quote component. Receives the quoteId as a parameter. */
|
|
46
|
+
renderQuote?: (quote: Transaction) => React.ReactNode;
|
|
42
47
|
/** Whether to show the search bar */
|
|
43
48
|
showSearchBar?: boolean;
|
|
44
49
|
/** Whether to show the title */
|
|
@@ -71,23 +76,22 @@ declare function Quotes({ className, columns, filter, filterQuotes, sort, noQuot
|
|
|
71
76
|
noQuotesMessage?: string;
|
|
72
77
|
}): react_jsx_runtime.JSX.Element;
|
|
73
78
|
|
|
74
|
-
declare
|
|
79
|
+
declare function PaymentForm({ invoice, quote, onPaymentSuccess, onPaymentHoldSuccess, accountId, onSavePaymentMethod, onRemovePaymentMethod, onSetDefaultPaymentMethod, overrideToken, customCheckoutFunction, paymentHoldOptions, }: {
|
|
75
80
|
invoice?: FormattedInvoice | Invoice$1;
|
|
76
81
|
quote?: Quote$1;
|
|
77
|
-
|
|
78
|
-
onPaymentSuccess?: () => void;
|
|
82
|
+
onPaymentSuccess?: (response: any) => void;
|
|
79
83
|
onPaymentHoldSuccess?: (response: any) => void;
|
|
80
84
|
onSavePaymentMethod?: (response: any) => void;
|
|
81
85
|
onRemovePaymentMethod?: () => void;
|
|
82
86
|
onSetDefaultPaymentMethod?: () => void;
|
|
83
87
|
accountId?: string;
|
|
84
88
|
overrideToken?: string;
|
|
85
|
-
customCheckoutFunction?: (
|
|
89
|
+
customCheckoutFunction?: (pluginId: string, paymentMethodId: string) => Promise<any>;
|
|
86
90
|
paymentHoldOptions?: {
|
|
87
91
|
payToAccept?: boolean;
|
|
88
92
|
amountToHold?: number;
|
|
89
93
|
};
|
|
90
|
-
})
|
|
94
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
91
95
|
|
|
92
96
|
declare function Signup({ companyName, priceListCode, returnUrl, couponCode, className, shadow, style, defaultFirstName, defaultLastName, defaultEmail, defaultCompanyName, defaultBillingCountry, }: {
|
|
93
97
|
/** The company name to display on the signup page */
|
|
@@ -218,15 +222,31 @@ declare const Footer: ({ className }: {
|
|
|
218
222
|
className?: string;
|
|
219
223
|
}) => react_jsx_runtime.JSX.Element;
|
|
220
224
|
|
|
221
|
-
declare const
|
|
225
|
+
declare const MiniCreditCard_PaymentMethodFragment: gql_tada.TadaDocumentNode<{
|
|
226
|
+
[$tada.fragmentRefs]: {
|
|
227
|
+
CardImage_PaymentMethodFragment: "PaymentMethod";
|
|
228
|
+
};
|
|
229
|
+
isDefault: boolean | null;
|
|
230
|
+
metadata: {
|
|
231
|
+
issuer: string | null;
|
|
232
|
+
type: string | null;
|
|
233
|
+
identifier: string | null;
|
|
234
|
+
} | null;
|
|
235
|
+
id: string;
|
|
236
|
+
}, {}, {
|
|
237
|
+
fragment: "MiniCreditCard_PaymentMethodFragment";
|
|
238
|
+
on: "PaymentMethod";
|
|
239
|
+
masked: true;
|
|
240
|
+
}>;
|
|
241
|
+
declare function MiniCreditCard({ className, buttons, hideDropdownMenu, hideDefaultTag, onClickRemove, paymentMethod: maskedPaymentMethod, onClickSetDefault, id, }: {
|
|
222
242
|
className?: string;
|
|
223
243
|
buttons?: React.ReactNode;
|
|
224
244
|
hideDropdownMenu?: boolean;
|
|
225
245
|
hideDefaultTag?: boolean;
|
|
226
246
|
onClickRemove?: () => void;
|
|
227
|
-
|
|
247
|
+
paymentMethod?: FragmentOf<typeof MiniCreditCard_PaymentMethodFragment>;
|
|
228
248
|
onClickSetDefault?: () => void;
|
|
229
249
|
id?: string;
|
|
230
|
-
})
|
|
250
|
+
}): react_jsx_runtime.JSX.Element;
|
|
231
251
|
|
|
232
252
|
export { BillingDetails, BunnyProvider, Footer, Invoice, MiniCreditCard, PaymentForm, Quote, Quotes, Signup, SubscriptionsWrapper as Subscriptions, Transactions, UpgradeWrapper as Upgrade };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bunnyapp/components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0-beta.2",
|
|
4
4
|
"description": "Components from the Bunny portal to embed Bunny UI functionality into your application.",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"dependency-cruiser": "^16.10.4",
|
|
56
56
|
"eslint-plugin-storybook": "^0.11.6",
|
|
57
57
|
"glob": "^11.0.3",
|
|
58
|
-
"gql.tada": "^1.
|
|
58
|
+
"gql.tada": "^1.9.0",
|
|
59
59
|
"less": "^4.4.2",
|
|
60
60
|
"msw": "^2.11.6",
|
|
61
61
|
"patch-package": "^8.0.1",
|
|
@@ -86,13 +86,13 @@
|
|
|
86
86
|
"graphql-request": "^6.1.0",
|
|
87
87
|
"interweave": "^13.1.0",
|
|
88
88
|
"less": "^4.2.0",
|
|
89
|
-
"rimraf": "^6.1.0",
|
|
90
89
|
"lodash-es": "^4.17.21",
|
|
91
90
|
"pluralize": "^8.0.0",
|
|
92
91
|
"react": "^18.3.1",
|
|
93
92
|
"react-dom": "^18.3.1",
|
|
94
93
|
"recharts": "^2.15.0",
|
|
95
94
|
"recoil": "^0.7.7",
|
|
95
|
+
"rimraf": "^6.1.0",
|
|
96
96
|
"styled-components": "^6.1.13"
|
|
97
97
|
},
|
|
98
98
|
"msw": {
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FormattedInvoice, Invoice, PluginData, Quote } from '@bunnyapp/common';
|
|
2
|
-
declare const CheckoutFooter: ({ quote, invoice, onPaymentSuccess, onPaymentHoldSuccess, plugin, paymentHoldOptions, }: {
|
|
3
|
-
quote?: Quote;
|
|
4
|
-
invoice?: FormattedInvoice | Invoice;
|
|
5
|
-
onPaymentSuccess?: (response: any) => void;
|
|
6
|
-
onPaymentHoldSuccess?: (response: any) => void;
|
|
7
|
-
plugin: PluginData | undefined;
|
|
8
|
-
paymentHoldOptions?: {
|
|
9
|
-
payToAccept?: boolean;
|
|
10
|
-
amountToHold?: number;
|
|
11
|
-
};
|
|
12
|
-
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
13
|
-
export default CheckoutFooter;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PluginData } from '@bunnyapp/common';
|
|
2
|
-
declare const PaymentMethodDetails: ({ onFail, plugin, onSavePaymentMethod, }: {
|
|
3
|
-
onFail: (error: any) => void;
|
|
4
|
-
plugin: PluginData;
|
|
5
|
-
onSavePaymentMethod: (response: any) => void;
|
|
6
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default PaymentMethodDetails;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PluginData } from '@bunnyapp/common';
|
|
2
|
-
declare const PaymentMethodSelector: ({ paymentMethodAllowedPlugins, onSelect, value, }: {
|
|
3
|
-
onSelect: (paymentPlugin?: PluginData) => void;
|
|
4
|
-
paymentMethodAllowedPlugins?: PluginData[];
|
|
5
|
-
value?: PluginData | null;
|
|
6
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default PaymentMethodSelector;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PluginData } from '@bunnyapp/common';
|
|
2
|
-
declare const PaymentMethodForm: ({ plugin, onFail, onSavePaymentMethod, }: {
|
|
3
|
-
plugin: PluginData;
|
|
4
|
-
onFail: (error: any) => void;
|
|
5
|
-
onSavePaymentMethod: (response: any) => void;
|
|
6
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default PaymentMethodForm;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { PaymentMethod, PluginData } from "@bunnyapp/common";
|
|
2
|
-
declare const usePaymentMethodSelectorPlugin: ({ defaultPaymentMethod, defaultPaymentMethodPlugin, paymentMethodAllowedPlugins, }: {
|
|
3
|
-
defaultPaymentMethod: PaymentMethod | undefined;
|
|
4
|
-
defaultPaymentMethodPlugin: PluginData | undefined;
|
|
5
|
-
paymentMethodAllowedPlugins: PluginData[] | undefined;
|
|
6
|
-
}) => {
|
|
7
|
-
selectorPaymentMethodPlugin: PluginData | undefined;
|
|
8
|
-
setSelectorPaymentMethodPlugin: import("react").Dispatch<import("react").SetStateAction<PluginData | undefined>>;
|
|
9
|
-
};
|
|
10
|
-
export default usePaymentMethodSelectorPlugin;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { PluginData } from '@bunnyapp/common';
|
|
2
|
-
declare function useRemovePaymentMethod(paymentPlugins: PluginData[], apiHost: string, token?: string, accountId?: string, onRemovePaymentMethod?: () => void, onError?: (message: string) => void): (data: any) => Promise<void>;
|
|
3
|
-
export default useRemovePaymentMethod;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { PluginData } from '@bunnyapp/common';
|
|
2
|
-
declare function useSetDefaultPaymentMethod(paymentPlugins: PluginData[], apiHost: string, token?: string, accountId?: string, onError?: (message: string) => void, onSuccess?: () => void): {
|
|
3
|
-
setDefaultPaymentMethod: (data: any) => Promise<void>;
|
|
4
|
-
loading: boolean;
|
|
5
|
-
};
|
|
6
|
-
export default useSetDefaultPaymentMethod;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FragmentOf } from 'gql.tada';
|
|
2
|
-
import { QuantityDrawerDesktop_SubscriptionFragment } from './quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop';
|
|
3
|
-
export type EditingQuoteDataType = {
|
|
4
|
-
id: string;
|
|
5
|
-
isTrial: boolean;
|
|
6
|
-
};
|
|
7
|
-
interface QuantityDrawerContainerProps {
|
|
8
|
-
subscriptions: (FragmentOf<typeof QuantityDrawerDesktop_SubscriptionFragment> | null)[];
|
|
9
|
-
quantityDrawerOpen: boolean;
|
|
10
|
-
setQuantityDrawerOpen: (open: boolean) => void;
|
|
11
|
-
handlePortalErrors?: (errors: any) => void;
|
|
12
|
-
setShowInactive: (showInactive: boolean) => void;
|
|
13
|
-
}
|
|
14
|
-
declare const QuantityDrawerContainer: ({ subscriptions, quantityDrawerOpen, setQuantityDrawerOpen, handlePortalErrors, setShowInactive, }: QuantityDrawerContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export default QuantityDrawerContainer;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { SubscriptionCharge } from '@bunnyapp/common';
|
|
3
|
-
declare const TieredDisplayDropdown: ({ charge, currencyId, truncatedText, }: {
|
|
4
|
-
charge: SubscriptionCharge;
|
|
5
|
-
currencyId: string;
|
|
6
|
-
truncatedText: ReactNode;
|
|
7
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export default TieredDisplayDropdown;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { BillingPeriod, Plan, PriceList, Subscription } from '@bunnyapp/common';
|
|
2
|
-
type PlanAddonsCardProps = {
|
|
3
|
-
selectedPriceList: PriceList;
|
|
4
|
-
subscriptions: Subscription[];
|
|
5
|
-
addonPlans: Plan[];
|
|
6
|
-
selectedBillingPeriod: BillingPeriod;
|
|
7
|
-
className?: string;
|
|
8
|
-
};
|
|
9
|
-
declare const PlanAddonsCard: ({ selectedPriceList, subscriptions, addonPlans, selectedBillingPeriod, className, }: PlanAddonsCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export default PlanAddonsCard;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Feature, PriceList, Subscription } from '@bunnyapp/common';
|
|
2
|
-
declare const PriceListCardDesktop: ({ hideButton, description, disableSelectCurrentPlan, feature, isPriceListCurrentSubscription, isSelected, priceList, subscriptionPlan, trialRemainingDays, noBorder, onClickPriceListCard, }: {
|
|
3
|
-
hideButton?: boolean;
|
|
4
|
-
description: string;
|
|
5
|
-
disableSelectCurrentPlan: boolean;
|
|
6
|
-
feature?: Feature;
|
|
7
|
-
isPriceListCurrentSubscription: boolean;
|
|
8
|
-
isSelected: boolean;
|
|
9
|
-
priceList: PriceList;
|
|
10
|
-
subscriptionPlan?: Subscription;
|
|
11
|
-
trialRemainingDays?: number;
|
|
12
|
-
noBorder?: boolean;
|
|
13
|
-
onClickPriceListCard?: (priceList: PriceList) => void;
|
|
14
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export default PriceListCardDesktop;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Feature, PriceList } from '@bunnyapp/common';
|
|
2
|
-
import { PeriodMonths } from '../../../../../utils/pricePickerUtils';
|
|
3
|
-
declare const PriceListCardPriceDescription: ({ feature, priceList, }: {
|
|
4
|
-
feature?: Feature;
|
|
5
|
-
priceList: PriceList;
|
|
6
|
-
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
-
export declare function PriceDescriptionString({ unitName, showPriceAsMonthly, periodMonths, doesPlanHaveFlatFeeCharges, }: {
|
|
8
|
-
unitName?: string;
|
|
9
|
-
showPriceAsMonthly?: boolean;
|
|
10
|
-
periodMonths: PeriodMonths;
|
|
11
|
-
doesPlanHaveFlatFeeCharges: boolean;
|
|
12
|
-
}): string;
|
|
13
|
-
export default PriceListCardPriceDescription;
|
package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { PriceListChangeOptions, Subscription } from '@bunnyapp/common';
|
|
2
|
-
declare const SubscriptionCardActions: ({ onChangePlanClick, onCancelSubscriptionClick, priceListChangeOptions, subscription, isPaymentMethodLoading, }: {
|
|
3
|
-
onChangePlanClick?: (subscription: Subscription) => void;
|
|
4
|
-
onCancelSubscriptionClick?: (subscription: Subscription) => void;
|
|
5
|
-
priceListChangeOptions?: PriceListChangeOptions;
|
|
6
|
-
subscription: Subscription;
|
|
7
|
-
isPaymentMethodLoading: boolean;
|
|
8
|
-
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
-
export default SubscriptionCardActions;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { PaymentMethod, PluginData } from '@bunnyapp/common';
|
|
2
|
-
export type PaymentContextValues = {
|
|
3
|
-
onClickCancel?: () => void;
|
|
4
|
-
accountId?: string;
|
|
5
|
-
overrideToken?: string;
|
|
6
|
-
storedPaymentMethods?: PaymentMethod[];
|
|
7
|
-
defaultPaymentMethod?: PaymentMethod;
|
|
8
|
-
customCheckoutFunction?: (plugin: PluginData | undefined) => Promise<any>;
|
|
9
|
-
};
|
|
10
|
-
export declare const PaymentContext: import("react").Context<PaymentContextValues>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
declare const quoteChangeCreate: ({ parentQuoteChangeId, priceListId, apiHost, token, quoteId, }: {
|
|
2
|
-
parentQuoteChangeId: string | null;
|
|
3
|
-
priceListId: string | null;
|
|
4
|
-
apiHost: string;
|
|
5
|
-
token?: string;
|
|
6
|
-
quoteId: string;
|
|
7
|
-
}) => Promise<any>;
|
|
8
|
-
export default quoteChangeCreate;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { QuoteCharge } from '@bunnyapp/common';
|
|
2
|
-
declare const quoteChargeUpdate: ({ discount, name, price, quantity, quoteChargeId, startDate, subtotal, apiHost, token, }: {
|
|
3
|
-
discount?: number;
|
|
4
|
-
name?: string;
|
|
5
|
-
price?: number;
|
|
6
|
-
quantity?: number;
|
|
7
|
-
quoteChargeId: string;
|
|
8
|
-
startDate?: string;
|
|
9
|
-
subtotal?: number;
|
|
10
|
-
apiHost: string;
|
|
11
|
-
token: string;
|
|
12
|
-
}) => Promise<QuoteCharge>;
|
|
13
|
-
export default quoteChargeUpdate;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Plan } from '@bunnyapp/common';
|
|
2
|
-
declare const getAddonPlans: ({ token, id, apiHost, }: {
|
|
3
|
-
token?: string;
|
|
4
|
-
id: string;
|
|
5
|
-
apiHost: string;
|
|
6
|
-
}) => Promise<{
|
|
7
|
-
priceLists: import("@bunnyapp/common").PriceList[];
|
|
8
|
-
addon?: boolean;
|
|
9
|
-
compatiblePlans?: Plan[];
|
|
10
|
-
addonPlans?: Plan[];
|
|
11
|
-
availableFrom?: string;
|
|
12
|
-
availableTo?: string;
|
|
13
|
-
basePrice?: number;
|
|
14
|
-
code?: string;
|
|
15
|
-
contactUsLabel?: string;
|
|
16
|
-
contactUsUrl?: string;
|
|
17
|
-
createdAt: string;
|
|
18
|
-
description?: string;
|
|
19
|
-
features?: import("@bunnyapp/common").Feature[];
|
|
20
|
-
id: string;
|
|
21
|
-
internalNotes?: string;
|
|
22
|
-
isAvailableNow?: boolean;
|
|
23
|
-
isVisible?: boolean;
|
|
24
|
-
name: string;
|
|
25
|
-
planFeatures?: import("@bunnyapp/common").PlanFeature[];
|
|
26
|
-
position: number;
|
|
27
|
-
pricingDescription?: string;
|
|
28
|
-
pricingStyle: import("@bunnyapp/common").PricingStyle;
|
|
29
|
-
product: import("@bunnyapp/common").Product;
|
|
30
|
-
productId: string;
|
|
31
|
-
selfServiceBuy?: boolean;
|
|
32
|
-
selfServiceCancel?: boolean;
|
|
33
|
-
selfServiceRenew?: boolean;
|
|
34
|
-
trialEndDate?: string;
|
|
35
|
-
updatedAt: string;
|
|
36
|
-
}[]>;
|
|
37
|
-
export default getAddonPlans;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { PriceList, Quote, Subscription } from '@bunnyapp/common';
|
|
2
|
-
export declare const useQuoteCreate: ({ upgradingSubscription, selectedPriceList, token, }: {
|
|
3
|
-
upgradingSubscription?: Subscription;
|
|
4
|
-
selectedPriceList?: PriceList;
|
|
5
|
-
token?: string;
|
|
6
|
-
}) => {
|
|
7
|
-
quote: Quote | undefined;
|
|
8
|
-
isQuotePending: boolean;
|
|
9
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PriceListCharge, Quote } from '@bunnyapp/common';
|
|
2
|
-
export declare const useQuoteUpdateFeatureAddon: (quote: Quote | undefined, featureAddon: PriceListCharge) => {
|
|
3
|
-
handleAddFeatureAddon: () => void;
|
|
4
|
-
handleRemoveFeatureAddon: () => void;
|
|
5
|
-
isPending: boolean;
|
|
6
|
-
isChecked: boolean;
|
|
7
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Subscription } from '@bunnyapp/common';
|
|
2
|
-
declare const usePriceListChangeOptions: ({ subscription, onChangePlanClick, }: {
|
|
3
|
-
subscription?: Subscription;
|
|
4
|
-
onChangePlanClick?: (subscription: Subscription) => void;
|
|
5
|
-
}) => {
|
|
6
|
-
priceListChangeOptions: import("@bunnyapp/common").PriceListChangeOptions | undefined;
|
|
7
|
-
arePriceListChangeOptionsLoading: boolean;
|
|
8
|
-
};
|
|
9
|
-
export default usePriceListChangeOptions;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PriceList, Quote } from '@bunnyapp/common';
|
|
2
|
-
export declare const useToggleAddonPlan: (quote: Quote | undefined, addonPriceList: PriceList, selectedPriceList: PriceList, setIsAddonPlanLoading: React.Dispatch<React.SetStateAction<boolean>>) => {
|
|
3
|
-
isPending: boolean;
|
|
4
|
-
addedQuoteChange: boolean;
|
|
5
|
-
deleteQuoteChange: () => void;
|
|
6
|
-
addAddonQuoteChange: () => void;
|
|
7
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BillingPeriod, Plan, PriceList, Subscription } from '@bunnyapp/common';
|
|
2
|
-
export declare const ADDON_INDENTATION = 64;
|
|
3
|
-
export declare function findNonAddonSubscriptions(subscriptions: Subscription[]): Subscription[];
|
|
4
|
-
export declare function findAddonSubscriptions(parentSubscription: Subscription, subscriptions: Subscription[]): Subscription[];
|
|
5
|
-
export declare function hasUnpurchasedAddonPriceLists(priceListAddonPlans: Plan[], currentSubscription: Subscription | undefined, billingPeriod: BillingPeriod): boolean;
|
|
6
|
-
export declare function addonPlanSwitchTestId(addonPlan: Plan): string;
|
|
7
|
-
export declare function getAddonsForBillingPeriod(billingPeriod: BillingPeriod, addonPlans: Plan[]): PriceList[];
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { PriceList, PriceListCharge, Quote, Subscription } from '@bunnyapp/common';
|
|
2
|
-
export declare function isAddonPurchased(featureAddon: PriceListCharge, currentSubscription: Subscription | undefined): boolean;
|
|
3
|
-
export declare function hasUnpurchasedFeatureAddons(priceList: PriceList, currentSubscription: Subscription | undefined): boolean;
|
|
4
|
-
export declare function findQuoteChangeForFeatureAddon(quote: Quote): import("@bunnyapp/common").QuoteChange | undefined;
|
|
5
|
-
export declare function featureAddonInQuote(selectedPriceList: PriceList, priceListCharge: PriceListCharge, quote?: Quote): boolean;
|
|
6
|
-
export declare function featureAddonSwitchTestId(featureAddon: PriceListCharge): string;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FormattedInvoice, Invoice, PluginData, Quote } from '@bunnyapp/common';
|
|
2
|
-
declare const CheckoutFooter: ({ quote, invoice, onPaymentSuccess, onPaymentHoldSuccess, plugin, paymentHoldOptions, }: {
|
|
3
|
-
quote?: Quote;
|
|
4
|
-
invoice?: FormattedInvoice | Invoice;
|
|
5
|
-
onPaymentSuccess?: (response: any) => void;
|
|
6
|
-
onPaymentHoldSuccess?: (response: any) => void;
|
|
7
|
-
plugin: PluginData | undefined;
|
|
8
|
-
paymentHoldOptions?: {
|
|
9
|
-
payToAccept?: boolean;
|
|
10
|
-
amountToHold?: number;
|
|
11
|
-
};
|
|
12
|
-
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
13
|
-
export default CheckoutFooter;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PluginData } from '@bunnyapp/common';
|
|
2
|
-
declare const PaymentMethodDetails: ({ onFail, plugin, onSavePaymentMethod, }: {
|
|
3
|
-
onFail: (error: any) => void;
|
|
4
|
-
plugin: PluginData;
|
|
5
|
-
onSavePaymentMethod: (response: any) => void;
|
|
6
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default PaymentMethodDetails;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PluginData } from '@bunnyapp/common';
|
|
2
|
-
declare const PaymentMethodSelector: ({ paymentMethodAllowedPlugins, onSelect, value, }: {
|
|
3
|
-
onSelect: (paymentPlugin?: PluginData) => void;
|
|
4
|
-
paymentMethodAllowedPlugins?: PluginData[];
|
|
5
|
-
value?: PluginData | null;
|
|
6
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default PaymentMethodSelector;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PluginData } from '@bunnyapp/common';
|
|
2
|
-
declare const PaymentMethodForm: ({ plugin, onFail, onSavePaymentMethod, }: {
|
|
3
|
-
plugin: PluginData;
|
|
4
|
-
onFail: (error: any) => void;
|
|
5
|
-
onSavePaymentMethod: (response: any) => void;
|
|
6
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default PaymentMethodForm;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { PaymentMethod, PluginData } from "@bunnyapp/common";
|
|
2
|
-
declare const usePaymentMethodSelectorPlugin: ({ defaultPaymentMethod, defaultPaymentMethodPlugin, paymentMethodAllowedPlugins, }: {
|
|
3
|
-
defaultPaymentMethod: PaymentMethod | undefined;
|
|
4
|
-
defaultPaymentMethodPlugin: PluginData | undefined;
|
|
5
|
-
paymentMethodAllowedPlugins: PluginData[] | undefined;
|
|
6
|
-
}) => {
|
|
7
|
-
selectorPaymentMethodPlugin: PluginData | undefined;
|
|
8
|
-
setSelectorPaymentMethodPlugin: import("react").Dispatch<import("react").SetStateAction<PluginData | undefined>>;
|
|
9
|
-
};
|
|
10
|
-
export default usePaymentMethodSelectorPlugin;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { PluginData } from '@bunnyapp/common';
|
|
2
|
-
declare function useRemovePaymentMethod(paymentPlugins: PluginData[], apiHost: string, token?: string, accountId?: string, onRemovePaymentMethod?: () => void, onError?: (message: string) => void): (data: any) => Promise<void>;
|
|
3
|
-
export default useRemovePaymentMethod;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { PluginData } from '@bunnyapp/common';
|
|
2
|
-
declare function useSetDefaultPaymentMethod(paymentPlugins: PluginData[], apiHost: string, token?: string, accountId?: string, onError?: (message: string) => void, onSuccess?: () => void): {
|
|
3
|
-
setDefaultPaymentMethod: (data: any) => Promise<void>;
|
|
4
|
-
loading: boolean;
|
|
5
|
-
};
|
|
6
|
-
export default useSetDefaultPaymentMethod;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FragmentOf } from 'gql.tada';
|
|
2
|
-
import { QuantityDrawerDesktop_SubscriptionFragment } from './quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop';
|
|
3
|
-
export type EditingQuoteDataType = {
|
|
4
|
-
id: string;
|
|
5
|
-
isTrial: boolean;
|
|
6
|
-
};
|
|
7
|
-
interface QuantityDrawerContainerProps {
|
|
8
|
-
subscriptions: (FragmentOf<typeof QuantityDrawerDesktop_SubscriptionFragment> | null)[];
|
|
9
|
-
quantityDrawerOpen: boolean;
|
|
10
|
-
setQuantityDrawerOpen: (open: boolean) => void;
|
|
11
|
-
handlePortalErrors?: (errors: any) => void;
|
|
12
|
-
setShowInactive: (showInactive: boolean) => void;
|
|
13
|
-
}
|
|
14
|
-
declare const QuantityDrawerContainer: ({ subscriptions, quantityDrawerOpen, setQuantityDrawerOpen, handlePortalErrors, setShowInactive, }: QuantityDrawerContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export default QuantityDrawerContainer;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { SubscriptionCharge } from '@bunnyapp/common';
|
|
3
|
-
declare const TieredDisplayDropdown: ({ charge, currencyId, truncatedText, }: {
|
|
4
|
-
charge: SubscriptionCharge;
|
|
5
|
-
currencyId: string;
|
|
6
|
-
truncatedText: ReactNode;
|
|
7
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export default TieredDisplayDropdown;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { BillingPeriod, Plan, PriceList, Subscription } from '@bunnyapp/common';
|
|
2
|
-
type PlanAddonsCardProps = {
|
|
3
|
-
selectedPriceList: PriceList;
|
|
4
|
-
subscriptions: Subscription[];
|
|
5
|
-
addonPlans: Plan[];
|
|
6
|
-
selectedBillingPeriod: BillingPeriod;
|
|
7
|
-
className?: string;
|
|
8
|
-
};
|
|
9
|
-
declare const PlanAddonsCard: ({ selectedPriceList, subscriptions, addonPlans, selectedBillingPeriod, className, }: PlanAddonsCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export default PlanAddonsCard;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Feature, PriceList, Subscription } from '@bunnyapp/common';
|
|
2
|
-
declare const PriceListCardDesktop: ({ hideButton, description, disableSelectCurrentPlan, feature, isPriceListCurrentSubscription, isSelected, priceList, subscriptionPlan, trialRemainingDays, noBorder, onClickPriceListCard, }: {
|
|
3
|
-
hideButton?: boolean;
|
|
4
|
-
description: string;
|
|
5
|
-
disableSelectCurrentPlan: boolean;
|
|
6
|
-
feature?: Feature;
|
|
7
|
-
isPriceListCurrentSubscription: boolean;
|
|
8
|
-
isSelected: boolean;
|
|
9
|
-
priceList: PriceList;
|
|
10
|
-
subscriptionPlan?: Subscription;
|
|
11
|
-
trialRemainingDays?: number;
|
|
12
|
-
noBorder?: boolean;
|
|
13
|
-
onClickPriceListCard?: (priceList: PriceList) => void;
|
|
14
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export default PriceListCardDesktop;
|