@bunnyapp/components 1.5.0-beta.1 → 1.5.0-beta.3
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/dist/cjs/index.js +2841 -2624
- package/dist/cjs/src/components/BunnyProvider.d.ts +0 -1
- package/dist/cjs/src/components/Checkout/Checkout.d.ts +12 -6
- package/dist/cjs/src/components/Invoice/Invoice.d.ts +1 -1
- package/dist/cjs/src/components/PaymentForm/PaymentForm.d.ts +1 -2
- package/dist/cjs/src/components/PaymentForm/PaymentFormTypes.d.ts +1 -11
- package/dist/cjs/src/components/Quote/Quote.d.ts +1 -1
- package/dist/cjs/src/components/QuoteProvider.d.ts +22 -0
- package/dist/cjs/src/components/Subscriptions/PageTitle.d.ts +1 -1
- package/dist/cjs/src/components/Subscriptions/QuantityDrawerContainer.d.ts +14 -0
- package/dist/cjs/src/components/Subscriptions/Subscriptions.d.ts +1 -2
- package/dist/cjs/src/components/Subscriptions/Upgrade/PlanPicker/PlanPicker.d.ts +5 -0
- package/dist/cjs/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/PriceListGrid.d.ts +3 -3
- package/dist/cjs/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput.d.ts +8 -0
- package/dist/cjs/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/checkoutBar/CheckoutBarSummarySection.d.ts +2 -3
- package/dist/cjs/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +7 -0
- package/dist/cjs/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanAddonsCard.d.ts +10 -0
- package/dist/{esm/src/components/Subscriptions/PlanManager → cjs/src/components/Subscriptions/Upgrade}/PlanPicker/planPickerDesktop/PriceListCardDesktop.d.ts +2 -1
- package/dist/{esm/src/components/Subscriptions/PlanManager → cjs/src/components/Subscriptions/Upgrade}/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +2 -1
- package/dist/cjs/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/planManagerUtils.d.ts +2 -0
- package/dist/cjs/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +3 -2
- package/dist/{esm/src/components/Subscriptions/PlanManager → cjs/src/components/Subscriptions/Upgrade}/PlanPicker/planPickerMobile/PriceListGridMobile.d.ts +2 -1
- package/dist/cjs/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/priceListCard/PriceListCard.d.ts +2 -1
- package/dist/cjs/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/priceListCard/priceListCardUtils.d.ts +1 -1
- package/dist/cjs/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/PriceListSelector.d.ts +8 -0
- package/dist/cjs/src/components/Subscriptions/Upgrade/Upgrade.d.ts +7 -0
- package/dist/cjs/src/components/Subscriptions/Upgrade/index.d.ts +1 -0
- package/dist/cjs/src/components/Subscriptions/index.d.ts +2 -1
- package/dist/cjs/src/components/Subscriptions/quantityChangeDrawer/QuantityChangeGridRow.d.ts +4 -2
- package/dist/cjs/src/components/Subscriptions/quantityChangeDrawer/QuantityInput.d.ts +4 -2
- package/dist/cjs/src/components/Subscriptions/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +3 -1
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/ChangeQuantitiesButton.d.ts +2 -3
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +2 -1
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/SubscriptionCardHeader.d.ts +2 -3
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +2 -3
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktop.d.ts +2 -3
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +2 -0
- package/dist/cjs/src/components/Subscriptions/tagConsts.d.ts +1 -0
- package/dist/cjs/src/components/Transactions/Transactions.d.ts +2 -2
- package/dist/cjs/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +1 -1
- package/dist/cjs/src/components/Transactions/transactionsList/TransactionsListMobile.d.ts +1 -1
- package/dist/cjs/src/components/Transactions/transactionsList/utils.d.ts +1 -1
- package/dist/cjs/src/components/index.d.ts +1 -0
- package/dist/cjs/src/{components/Invoice → contexts}/InvoiceQuoteContext.d.ts +2 -2
- package/dist/cjs/src/{components/Subscriptions → contexts}/SubscriptionsContext.d.ts +0 -4
- package/dist/{esm/src/components/Transactions → cjs/src/contexts}/TransactionsListContext.d.ts +2 -2
- package/dist/cjs/src/graphql/QuoteRequests.d.ts +5 -0
- package/dist/cjs/src/graphql/mutations/quoteChargeUpdate.d.ts +2 -1
- package/dist/cjs/src/graphql/queries/getAddonPlans.d.ts +37 -0
- package/dist/cjs/src/graphql/queries/getFormattedInvoice.d.ts +7 -0
- package/dist/cjs/src/graphql/queries/getFormattedQuote.d.ts +2 -1
- package/dist/cjs/src/graphql/queries/getPriceListChangeOptions.d.ts +2 -2
- package/dist/cjs/src/hooks/quotes/useQuoteCreate.d.ts +1 -4
- package/dist/cjs/src/hooks/quotes/useQuoteQuantities.d.ts +14 -0
- package/dist/cjs/src/hooks/useCurrentUserData.d.ts +11 -8
- package/dist/cjs/src/hooks/usePaymentMethod.d.ts +2 -1
- package/dist/cjs/src/hooks/usePriceListChangeOptions.d.ts +6 -0
- package/dist/cjs/src/hooks/useToggleAddonQuoteChange.d.ts +2 -2
- package/dist/cjs/src/utils/addonPlanUtils.d.ts +4 -1
- package/dist/cjs/src/utils/apiUtils.d.ts +5 -0
- package/dist/cjs/src/utils/chargeUtils.d.ts +2 -0
- package/dist/cjs/src/utils/featureAddonUtils.d.ts +5 -2
- package/dist/esm/index.js +2803 -2587
- package/dist/esm/src/components/BunnyProvider.d.ts +0 -1
- package/dist/esm/src/components/Checkout/Checkout.d.ts +12 -6
- package/dist/esm/src/components/Invoice/Invoice.d.ts +1 -1
- package/dist/esm/src/components/PaymentForm/PaymentForm.d.ts +1 -2
- package/dist/esm/src/components/PaymentForm/PaymentFormTypes.d.ts +1 -11
- package/dist/esm/src/components/Quote/Quote.d.ts +1 -1
- package/dist/esm/src/components/QuoteProvider.d.ts +22 -0
- package/dist/esm/src/components/Subscriptions/PageTitle.d.ts +1 -1
- package/dist/esm/src/components/Subscriptions/QuantityDrawerContainer.d.ts +14 -0
- package/dist/esm/src/components/Subscriptions/Subscriptions.d.ts +1 -2
- package/dist/esm/src/components/Subscriptions/Upgrade/PlanPicker/PlanPicker.d.ts +5 -0
- package/dist/esm/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/PriceListGrid.d.ts +3 -3
- package/dist/esm/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput.d.ts +8 -0
- package/dist/esm/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/checkoutBar/CheckoutBarSummarySection.d.ts +2 -3
- package/dist/esm/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +7 -0
- package/dist/esm/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanAddonsCard.d.ts +10 -0
- package/dist/{cjs/src/components/Subscriptions/PlanManager → esm/src/components/Subscriptions/Upgrade}/PlanPicker/planPickerDesktop/PriceListCardDesktop.d.ts +2 -1
- package/dist/{cjs/src/components/Subscriptions/PlanManager → esm/src/components/Subscriptions/Upgrade}/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +2 -1
- package/dist/esm/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/planManagerUtils.d.ts +2 -0
- package/dist/esm/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +3 -2
- package/dist/{cjs/src/components/Subscriptions/PlanManager → esm/src/components/Subscriptions/Upgrade}/PlanPicker/planPickerMobile/PriceListGridMobile.d.ts +2 -1
- package/dist/esm/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/priceListCard/PriceListCard.d.ts +2 -1
- package/dist/esm/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/priceListCard/priceListCardUtils.d.ts +1 -1
- package/dist/esm/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/PriceListSelector.d.ts +8 -0
- package/dist/esm/src/components/Subscriptions/Upgrade/Upgrade.d.ts +7 -0
- package/dist/esm/src/components/Subscriptions/Upgrade/index.d.ts +1 -0
- package/dist/esm/src/components/Subscriptions/index.d.ts +2 -1
- package/dist/esm/src/components/Subscriptions/quantityChangeDrawer/QuantityChangeGridRow.d.ts +4 -2
- package/dist/esm/src/components/Subscriptions/quantityChangeDrawer/QuantityInput.d.ts +4 -2
- package/dist/esm/src/components/Subscriptions/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +3 -1
- package/dist/esm/src/components/Subscriptions/subscriptionsList/ChangeQuantitiesButton.d.ts +2 -3
- package/dist/esm/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +2 -1
- package/dist/esm/src/components/Subscriptions/subscriptionsList/SubscriptionCardHeader.d.ts +2 -3
- package/dist/esm/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +2 -3
- package/dist/esm/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktop.d.ts +2 -3
- package/dist/esm/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +2 -0
- package/dist/esm/src/components/Subscriptions/tagConsts.d.ts +1 -0
- package/dist/esm/src/components/Transactions/Transactions.d.ts +2 -2
- package/dist/esm/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +1 -1
- package/dist/esm/src/components/Transactions/transactionsList/TransactionsListMobile.d.ts +1 -1
- package/dist/esm/src/components/Transactions/transactionsList/utils.d.ts +1 -1
- package/dist/esm/src/components/index.d.ts +1 -0
- package/dist/esm/src/{components/Invoice → contexts}/InvoiceQuoteContext.d.ts +2 -2
- package/dist/esm/src/{components/Subscriptions → contexts}/SubscriptionsContext.d.ts +0 -4
- package/dist/{cjs/src/components/Transactions → esm/src/contexts}/TransactionsListContext.d.ts +2 -2
- package/dist/esm/src/graphql/QuoteRequests.d.ts +5 -0
- package/dist/esm/src/graphql/mutations/quoteChargeUpdate.d.ts +2 -1
- package/dist/esm/src/graphql/queries/getAddonPlans.d.ts +37 -0
- package/dist/esm/src/graphql/queries/getFormattedInvoice.d.ts +7 -0
- package/dist/esm/src/graphql/queries/getFormattedQuote.d.ts +2 -1
- package/dist/esm/src/graphql/queries/getPriceListChangeOptions.d.ts +2 -2
- package/dist/esm/src/hooks/quotes/useQuoteCreate.d.ts +1 -4
- package/dist/esm/src/hooks/quotes/useQuoteQuantities.d.ts +14 -0
- package/dist/esm/src/hooks/useCurrentUserData.d.ts +11 -8
- package/dist/esm/src/hooks/usePaymentMethod.d.ts +2 -1
- package/dist/esm/src/hooks/usePriceListChangeOptions.d.ts +6 -0
- package/dist/esm/src/hooks/useToggleAddonQuoteChange.d.ts +2 -2
- package/dist/esm/src/utils/addonPlanUtils.d.ts +4 -1
- package/dist/esm/src/utils/apiUtils.d.ts +5 -0
- package/dist/esm/src/utils/chargeUtils.d.ts +2 -0
- package/dist/esm/src/utils/featureAddonUtils.d.ts +5 -2
- package/dist/index.d.ts +10 -6
- package/package.json +2 -2
- package/dist/cjs/src/components/PlanManagerQuoteProvider.d.ts +0 -19
- package/dist/cjs/src/components/QuotePreviewProvider.d.ts +0 -15
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanManager.d.ts +0 -5
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/PlanPicker.d.ts +0 -2
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/CheckoutBarInput.d.ts +0 -9
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +0 -7
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PlanAddonsCard.d.ts +0 -11
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/planManagerUtils.d.ts +0 -2
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListSelector/PriceListSelector.d.ts +0 -9
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListSelector/PriceListSelectorContext.d.ts +0 -9
- package/dist/cjs/src/components/Subscriptions/QuotePreviewData.d.ts +0 -6
- package/dist/cjs/src/enums/SubscriptionState.d.ts +0 -8
- package/dist/esm/src/components/PlanManagerQuoteProvider.d.ts +0 -19
- package/dist/esm/src/components/QuotePreviewProvider.d.ts +0 -15
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanManager.d.ts +0 -5
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/PlanPicker.d.ts +0 -2
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/CheckoutBarInput.d.ts +0 -9
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +0 -7
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PlanAddonsCard.d.ts +0 -11
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/planManagerUtils.d.ts +0 -2
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListSelector/PriceListSelector.d.ts +0 -9
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListSelector/PriceListSelectorContext.d.ts +0 -9
- package/dist/esm/src/components/Subscriptions/QuotePreviewData.d.ts +0 -6
- package/dist/esm/src/enums/SubscriptionState.d.ts +0 -8
- /package/dist/cjs/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/NextPriceListButton.d.ts +0 -0
- /package/dist/cjs/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/checkoutBar/CheckoutButton.d.ts +0 -0
- /package/dist/cjs/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/checkoutBar/CheckoutPrice.d.ts +0 -0
- /package/dist/cjs/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/planPickerDesktop/BillingPeriodSelector.d.ts +0 -0
- /package/dist/cjs/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/planPickerDesktop/EverythingPlanFeatures.d.ts +0 -0
- /package/dist/cjs/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/planPickerDesktop/FeatureAddons.d.ts +0 -0
- /package/dist/cjs/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/planPickerDesktop/FeatureGridCell.d.ts +0 -0
- /package/dist/cjs/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/planPickerDesktop/PlanFeatures.d.ts +0 -0
- /package/dist/cjs/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/planPickerDesktop/PlanPickerGridCell.d.ts +0 -0
- /package/dist/cjs/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/planPickerUtils.d.ts +0 -0
- /package/dist/cjs/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/priceListCard/PriceListCardButton.d.ts +0 -0
- /package/dist/cjs/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/priceListCard/PriceListCardDescription.d.ts +0 -0
- /package/dist/cjs/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/priceListCard/PriceListCardFeature.d.ts +0 -0
- /package/dist/cjs/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/priceListCard/PriceListCardPrice.d.ts +0 -0
- /package/dist/cjs/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/priceListCard/PriceListCardPriceDescription.d.ts +0 -0
- /package/dist/cjs/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/priceListCard/PriceListCardTitle.d.ts +0 -0
- /package/dist/cjs/src/components/Subscriptions/{PlanManager → Upgrade}/PreviewModeAdvisary.d.ts +0 -0
- /package/dist/esm/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/NextPriceListButton.d.ts +0 -0
- /package/dist/esm/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/checkoutBar/CheckoutButton.d.ts +0 -0
- /package/dist/esm/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/checkoutBar/CheckoutPrice.d.ts +0 -0
- /package/dist/esm/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/planPickerDesktop/BillingPeriodSelector.d.ts +0 -0
- /package/dist/esm/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/planPickerDesktop/EverythingPlanFeatures.d.ts +0 -0
- /package/dist/esm/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/planPickerDesktop/FeatureAddons.d.ts +0 -0
- /package/dist/esm/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/planPickerDesktop/FeatureGridCell.d.ts +0 -0
- /package/dist/esm/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/planPickerDesktop/PlanFeatures.d.ts +0 -0
- /package/dist/esm/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/planPickerDesktop/PlanPickerGridCell.d.ts +0 -0
- /package/dist/esm/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/planPickerUtils.d.ts +0 -0
- /package/dist/esm/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/priceListCard/PriceListCardButton.d.ts +0 -0
- /package/dist/esm/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/priceListCard/PriceListCardDescription.d.ts +0 -0
- /package/dist/esm/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/priceListCard/PriceListCardFeature.d.ts +0 -0
- /package/dist/esm/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/priceListCard/PriceListCardPrice.d.ts +0 -0
- /package/dist/esm/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/priceListCard/PriceListCardPriceDescription.d.ts +0 -0
- /package/dist/esm/src/components/Subscriptions/{PlanManager → Upgrade}/PlanPicker/priceListCard/PriceListCardTitle.d.ts +0 -0
- /package/dist/esm/src/components/Subscriptions/{PlanManager → Upgrade}/PreviewModeAdvisary.d.ts +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Subscription } from '@bunnyapp/common';
|
|
1
|
+
import { PriceListChangeOptions, Subscription } from '@bunnyapp/common';
|
|
2
2
|
declare const getPriceListChangeOptions: ({ apiHost, isInPreviewMode, productId, token, upgradingSubscription, }: {
|
|
3
3
|
apiHost: string;
|
|
4
4
|
isInPreviewMode?: boolean | undefined;
|
|
5
5
|
productId?: string | undefined;
|
|
6
6
|
token?: string | undefined;
|
|
7
7
|
upgradingSubscription?: Subscription | undefined;
|
|
8
|
-
}) => Promise<
|
|
8
|
+
}) => Promise<PriceListChangeOptions>;
|
|
9
9
|
export default getPriceListChangeOptions;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { PriceList, Quote, Subscription } from '@bunnyapp/common';
|
|
2
|
-
|
|
3
|
-
export declare const useQuoteCreate: ({ editingQuote, setEditingQuoteData, upgradingSubscription, selectedPriceList, token, }: {
|
|
4
|
-
editingQuote?: EditingQuoteDataType | undefined;
|
|
5
|
-
setEditingQuoteData: (quoteId?: string, isTrial?: boolean) => void;
|
|
2
|
+
export declare const useQuoteCreate: ({ upgradingSubscription, selectedPriceList, token, }: {
|
|
6
3
|
upgradingSubscription?: Subscription | undefined;
|
|
7
4
|
selectedPriceList?: PriceList | undefined;
|
|
8
5
|
token?: string | undefined;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PriceList, Quote } from '@bunnyapp/common';
|
|
2
|
+
export declare const useQuoteQuantities: ({ selectedPriceList, quote, }: {
|
|
3
|
+
selectedPriceList: PriceList;
|
|
4
|
+
quote?: Quote | undefined;
|
|
5
|
+
}) => {
|
|
6
|
+
onChangeQuantity: (priceListChargeId: string, quantity: number) => void;
|
|
7
|
+
getFeatureQuantity: (featureId: string) => number | undefined;
|
|
8
|
+
isUpdatingCharges: boolean;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Hook to manage feature quantities using a dictionary keyed by feature ID
|
|
12
|
+
* This tracks quantities for each unique feature.
|
|
13
|
+
*/
|
|
14
|
+
export type FeatureQuantitiesDict = Record<string, number | undefined>;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { currentUser as CurrentUser } from '@bunnyapp/common';
|
|
2
2
|
declare const useCurrentUserData: (token: string | undefined) => {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
currentUser: {
|
|
4
|
+
authObjectName: any;
|
|
5
|
+
account: any;
|
|
6
|
+
companyName: any;
|
|
7
|
+
returnUrl: any;
|
|
8
|
+
privacyUrl: any;
|
|
9
|
+
termsUrl: any;
|
|
10
|
+
entityId: any;
|
|
11
|
+
} | CurrentUser;
|
|
12
|
+
isCurrentUserDataLoading: boolean;
|
|
13
|
+
};
|
|
11
14
|
export default useCurrentUserData;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { PaymentMethod } from '@bunnyapp/common';
|
|
2
|
-
export declare const usePaymentMethod: ({ accountId, token, apiHost, }: {
|
|
2
|
+
export declare const usePaymentMethod: ({ accountId, token, apiHost, enabled, }: {
|
|
3
3
|
accountId?: string | undefined;
|
|
4
4
|
token?: string | undefined;
|
|
5
5
|
apiHost: string;
|
|
6
|
+
enabled?: boolean | undefined;
|
|
6
7
|
}) => {
|
|
7
8
|
paymentMethods: PaymentMethod[];
|
|
8
9
|
defaultPaymentMethod: PaymentMethod | undefined;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Subscription } from '@bunnyapp/common';
|
|
2
|
+
declare const usePriceListChangeOptions: (onChangePlanClick?: ((subscription: Subscription) => void) | undefined) => {
|
|
3
|
+
priceListChangeOptions: import("@bunnyapp/common").PriceListChangeOptions | undefined;
|
|
4
|
+
arePriceListChangeOptionsLoading: boolean;
|
|
5
|
+
};
|
|
6
|
+
export default usePriceListChangeOptions;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const useToggleAddonPlan: (quote: Quote | undefined,
|
|
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
3
|
isPending: boolean;
|
|
4
4
|
addedQuoteChange: boolean;
|
|
5
5
|
deleteQuoteChange: () => void;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { Subscription } from '@bunnyapp/common';
|
|
1
|
+
import { BillingPeriod, Plan, PriceList, Subscription } from '@bunnyapp/common';
|
|
2
2
|
export declare const ADDON_INDENTATION = 64;
|
|
3
3
|
export declare function findNonAddonSubscriptions(subscriptions: Subscription[]): Subscription[];
|
|
4
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[];
|
|
@@ -8,3 +8,8 @@ export declare const gqlRequest: ({ query, apiHost, token, vars, isInPreviewMode
|
|
|
8
8
|
vars?: any;
|
|
9
9
|
isInPreviewMode?: boolean | undefined;
|
|
10
10
|
}) => Promise<unknown>;
|
|
11
|
+
export declare const createClientDevHeaders: ({ token, componentsVersion, }: {
|
|
12
|
+
token?: string | null | undefined;
|
|
13
|
+
componentsVersion?: string | undefined;
|
|
14
|
+
}) => Record<string, string>;
|
|
15
|
+
export declare const devHeaders: () => Record<string, string>;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
import { PriceList, PriceListCharge, Subscription } from '@bunnyapp/common';
|
|
1
|
+
import { PriceList, PriceListCharge, Quote, Subscription } from '@bunnyapp/common';
|
|
2
2
|
export declare function isAddonPurchased(featureAddon: PriceListCharge, currentSubscription: Subscription | undefined): boolean;
|
|
3
|
-
export declare function
|
|
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;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
import { FormattedInvoice, FormattedQuote, Transaction, Invoice as Invoice$1, Quote as Quote$1, PluginData, TransactionKind, PaymentMethod } from '@bunnyapp/common';
|
|
3
|
+
import { FormattedInvoice, FormattedQuote, Transaction, Invoice as Invoice$1, Quote as Quote$1, PluginData, TransactionKind, Subscription, PaymentMethod } from '@bunnyapp/common';
|
|
4
4
|
import { QueryClient } from '@tanstack/react-query';
|
|
5
5
|
import { ThemeConfig } from 'antd';
|
|
6
6
|
import * as react from 'react';
|
|
@@ -73,7 +73,7 @@ declare function Quotes({ className, columns, filter, filterQuotes, sort, noQuot
|
|
|
73
73
|
noQuotesMessage?: string;
|
|
74
74
|
}): react_jsx_runtime.JSX.Element;
|
|
75
75
|
|
|
76
|
-
declare const PaymentForm: ({ invoice, onFail, onPaymentSuccess, onPaymentHoldSuccess, quote, accountId, onSavePaymentMethod, onRemovePaymentMethod, onSetDefaultPaymentMethod, overrideToken, customCheckoutFunction,
|
|
76
|
+
declare const PaymentForm: ({ invoice, onFail, onPaymentSuccess, onPaymentHoldSuccess, quote, accountId, onSavePaymentMethod, onRemovePaymentMethod, onSetDefaultPaymentMethod, overrideToken, customCheckoutFunction, paymentHoldOptions, }: {
|
|
77
77
|
invoice?: FormattedInvoice | Invoice$1 | undefined;
|
|
78
78
|
quote?: Quote$1 | undefined;
|
|
79
79
|
onFail: (error: any) => void;
|
|
@@ -85,7 +85,6 @@ declare const PaymentForm: ({ invoice, onFail, onPaymentSuccess, onPaymentHoldSu
|
|
|
85
85
|
accountId?: string | undefined;
|
|
86
86
|
overrideToken?: string | undefined;
|
|
87
87
|
customCheckoutFunction?: ((plugin: PluginData | undefined) => Promise<any>) | undefined;
|
|
88
|
-
currencyId?: string | undefined;
|
|
89
88
|
paymentHoldOptions?: {
|
|
90
89
|
payToAccept?: boolean | undefined;
|
|
91
90
|
amountToHold?: number | undefined;
|
|
@@ -177,7 +176,7 @@ declare function Transactions({ transactionComponent, showSearchBar, showTitle,
|
|
|
177
176
|
hidePaymentForm?: boolean;
|
|
178
177
|
}): react_jsx_runtime.JSX.Element;
|
|
179
178
|
|
|
180
|
-
declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPreviewMode, productId, className, styles: userStyles, noSubscriptionsComponent,
|
|
179
|
+
declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPreviewMode, productId, className, styles: userStyles, noSubscriptionsComponent, hideExpired, hideExpiredToggle, }: {
|
|
181
180
|
handlePortalErrors?: ((errors: any) => void) | undefined;
|
|
182
181
|
companyName: string;
|
|
183
182
|
isInPreviewMode?: boolean | undefined;
|
|
@@ -189,11 +188,16 @@ declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPrev
|
|
|
189
188
|
subscriptionProductNameStyle?: react.CSSProperties | undefined;
|
|
190
189
|
} | undefined;
|
|
191
190
|
noSubscriptionsComponent?: React.ReactNode;
|
|
192
|
-
hideTitle?: boolean | undefined;
|
|
193
191
|
hideExpired?: boolean | undefined;
|
|
194
192
|
hideExpiredToggle?: boolean | undefined;
|
|
195
193
|
}) => react_jsx_runtime.JSX.Element;
|
|
196
194
|
|
|
195
|
+
declare const UpgradeWrapper: ({ onChangePlanCancel, handlePortalErrors, upgradingSubscription, }: {
|
|
196
|
+
onChangePlanCancel: () => void;
|
|
197
|
+
handlePortalErrors?: ((error: any) => void) | undefined;
|
|
198
|
+
upgradingSubscription?: Subscription | undefined;
|
|
199
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
200
|
+
|
|
197
201
|
declare const BillingDetails: ({ className, countryListFilter, hideBillingDetailsForm, hidePaymentMethodForm, isCardEnabled, isUpgradeFromTrial, shadow, onSavePaymentMethod, }: {
|
|
198
202
|
className?: string | undefined;
|
|
199
203
|
countryListFilter?: ((country: {
|
|
@@ -223,4 +227,4 @@ declare const MiniCreditCard: ({ className, buttons, hideDropdownMenu, hideDefau
|
|
|
223
227
|
id?: string | undefined;
|
|
224
228
|
}) => react_jsx_runtime.JSX.Element;
|
|
225
229
|
|
|
226
|
-
export { BillingDetails, BunnyProvider, Footer, Invoice, MiniCreditCard, PaymentForm, Quote, Quotes, Signup, SubscriptionsWrapper as Subscriptions, Transactions };
|
|
230
|
+
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.5.0-beta.
|
|
3
|
+
"version": "1.5.0-beta.3",
|
|
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",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"@ant-design/icons": "^5.6.1",
|
|
67
|
-
"@bunnyapp/common": "1.
|
|
67
|
+
"@bunnyapp/common": "1.5.0-beta.3",
|
|
68
68
|
"@fortawesome/fontawesome-svg-core": "^6.7.2",
|
|
69
69
|
"@fortawesome/free-brands-svg-icons": "^6.7.2",
|
|
70
70
|
"@fortawesome/free-regular-svg-icons": "^6.7.2",
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Quote } from '@bunnyapp/common';
|
|
3
|
-
import { EditingQuoteDataType } from './Subscriptions/SubscriptionsListContainer';
|
|
4
|
-
export type PlanManagerQuoteContextValues = {
|
|
5
|
-
quote: Quote | undefined;
|
|
6
|
-
isQuotePending: boolean;
|
|
7
|
-
isAddonPlanLoading: boolean;
|
|
8
|
-
setIsAddonPlanLoading: React.Dispatch<React.SetStateAction<boolean>>;
|
|
9
|
-
isFeatureAddonsLoading: boolean;
|
|
10
|
-
addFeatureAddonLoading: (featureAddonId: string) => void;
|
|
11
|
-
removeFeatureAddonLoading: (featureAddonId: string) => void;
|
|
12
|
-
};
|
|
13
|
-
export declare const PlanManagerQuoteContext: import("react").Context<PlanManagerQuoteContextValues>;
|
|
14
|
-
declare function PlanManagerQuoteProvider({ children, editingQuoteData, setEditingQuoteData, }: {
|
|
15
|
-
children: React.ReactNode;
|
|
16
|
-
editingQuoteData: EditingQuoteDataType | undefined;
|
|
17
|
-
setEditingQuoteData: React.Dispatch<React.SetStateAction<EditingQuoteDataType | undefined>>;
|
|
18
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
export default PlanManagerQuoteProvider;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { PriceList } from '@bunnyapp/common';
|
|
3
|
-
export type QuotePreviewData = {
|
|
4
|
-
priceList?: PriceList;
|
|
5
|
-
quantity?: number;
|
|
6
|
-
};
|
|
7
|
-
export type QuotePreviewContextValues = {
|
|
8
|
-
quotePreviewData?: QuotePreviewData;
|
|
9
|
-
setQuotePreviewData: React.Dispatch<React.SetStateAction<QuotePreviewData | undefined>>;
|
|
10
|
-
};
|
|
11
|
-
export declare const QuotePreviewContext: import("react").Context<QuotePreviewContextValues>;
|
|
12
|
-
declare function QuotePreviewProvider({ children }: {
|
|
13
|
-
children: React.ReactNode;
|
|
14
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export default QuotePreviewProvider;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { PriceList, PriceListCharge } from "@bunnyapp/common";
|
|
2
|
-
declare const CheckoutBarInput: ({ disabled, charge, quantity, selectedPriceList, onQuantityChanged, }: {
|
|
3
|
-
disabled?: boolean | undefined;
|
|
4
|
-
charge: PriceListCharge;
|
|
5
|
-
quantity: number;
|
|
6
|
-
selectedPriceList?: PriceList | undefined;
|
|
7
|
-
onQuantityChanged: (quantity: number) => void;
|
|
8
|
-
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
-
export default CheckoutBarInput;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { EditingQuoteDataType } from '../../../Subscriptions';
|
|
2
|
-
declare const PlanPickerCheckoutBarWrapper: ({ editingQuote, handlePortalErrors, onCheckoutSuccess, }: {
|
|
3
|
-
editingQuote?: EditingQuoteDataType | undefined;
|
|
4
|
-
handlePortalErrors?: ((errors: any) => void) | undefined;
|
|
5
|
-
onCheckoutSuccess: () => void;
|
|
6
|
-
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
-
export default PlanPickerCheckoutBarWrapper;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BillingPeriod, Plan, PriceList, PriceListChangeOptions, Product, Subscription } from '@bunnyapp/common';
|
|
2
|
-
type PlanAddonsCardProps = {
|
|
3
|
-
selectedPriceList: PriceList;
|
|
4
|
-
subscriptions: Subscription[];
|
|
5
|
-
addonPlans: Plan[];
|
|
6
|
-
selectedProduct: Product | undefined;
|
|
7
|
-
priceListChangeOptions: PriceListChangeOptions | undefined;
|
|
8
|
-
selectedBillingPeriod: BillingPeriod | undefined;
|
|
9
|
-
};
|
|
10
|
-
declare const PlanAddonsCard: ({ selectedPriceList, subscriptions, addonPlans, selectedProduct, priceListChangeOptions, selectedBillingPeriod, }: PlanAddonsCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export default PlanAddonsCard;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { PriceList, PriceListChangeOptions, Subscription } from '@bunnyapp/common';
|
|
2
|
-
declare const PriceListSelector: ({ arePlanChangeOptionsLoading, areSubscriptionsLoading, priceListChangeOptions, selectedPriceList, subscriptions, }: {
|
|
3
|
-
arePlanChangeOptionsLoading: boolean;
|
|
4
|
-
areSubscriptionsLoading: boolean;
|
|
5
|
-
priceListChangeOptions?: PriceListChangeOptions | undefined;
|
|
6
|
-
selectedPriceList?: PriceList | undefined;
|
|
7
|
-
subscriptions: Subscription[];
|
|
8
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export default PriceListSelector;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { PriceList } from '@bunnyapp/common';
|
|
3
|
-
export type PriceListSelectorContextValues = {
|
|
4
|
-
onChangePriceList: (selectedPriceList: PriceList) => void;
|
|
5
|
-
};
|
|
6
|
-
export declare const PriceListSelectorContext: import("react").Context<PriceListSelectorContextValues>;
|
|
7
|
-
export declare function PriceListSelectorProvider({ children }: {
|
|
8
|
-
children: React.ReactNode;
|
|
9
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Quote } from '@bunnyapp/common';
|
|
3
|
-
import { EditingQuoteDataType } from './Subscriptions/SubscriptionsListContainer';
|
|
4
|
-
export type PlanManagerQuoteContextValues = {
|
|
5
|
-
quote: Quote | undefined;
|
|
6
|
-
isQuotePending: boolean;
|
|
7
|
-
isAddonPlanLoading: boolean;
|
|
8
|
-
setIsAddonPlanLoading: React.Dispatch<React.SetStateAction<boolean>>;
|
|
9
|
-
isFeatureAddonsLoading: boolean;
|
|
10
|
-
addFeatureAddonLoading: (featureAddonId: string) => void;
|
|
11
|
-
removeFeatureAddonLoading: (featureAddonId: string) => void;
|
|
12
|
-
};
|
|
13
|
-
export declare const PlanManagerQuoteContext: import("react").Context<PlanManagerQuoteContextValues>;
|
|
14
|
-
declare function PlanManagerQuoteProvider({ children, editingQuoteData, setEditingQuoteData, }: {
|
|
15
|
-
children: React.ReactNode;
|
|
16
|
-
editingQuoteData: EditingQuoteDataType | undefined;
|
|
17
|
-
setEditingQuoteData: React.Dispatch<React.SetStateAction<EditingQuoteDataType | undefined>>;
|
|
18
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
export default PlanManagerQuoteProvider;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { PriceList } from '@bunnyapp/common';
|
|
3
|
-
export type QuotePreviewData = {
|
|
4
|
-
priceList?: PriceList;
|
|
5
|
-
quantity?: number;
|
|
6
|
-
};
|
|
7
|
-
export type QuotePreviewContextValues = {
|
|
8
|
-
quotePreviewData?: QuotePreviewData;
|
|
9
|
-
setQuotePreviewData: React.Dispatch<React.SetStateAction<QuotePreviewData | undefined>>;
|
|
10
|
-
};
|
|
11
|
-
export declare const QuotePreviewContext: import("react").Context<QuotePreviewContextValues>;
|
|
12
|
-
declare function QuotePreviewProvider({ children }: {
|
|
13
|
-
children: React.ReactNode;
|
|
14
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export default QuotePreviewProvider;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { PriceList, PriceListCharge } from "@bunnyapp/common";
|
|
2
|
-
declare const CheckoutBarInput: ({ disabled, charge, quantity, selectedPriceList, onQuantityChanged, }: {
|
|
3
|
-
disabled?: boolean | undefined;
|
|
4
|
-
charge: PriceListCharge;
|
|
5
|
-
quantity: number;
|
|
6
|
-
selectedPriceList?: PriceList | undefined;
|
|
7
|
-
onQuantityChanged: (quantity: number) => void;
|
|
8
|
-
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
-
export default CheckoutBarInput;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { EditingQuoteDataType } from '../../../Subscriptions';
|
|
2
|
-
declare const PlanPickerCheckoutBarWrapper: ({ editingQuote, handlePortalErrors, onCheckoutSuccess, }: {
|
|
3
|
-
editingQuote?: EditingQuoteDataType | undefined;
|
|
4
|
-
handlePortalErrors?: ((errors: any) => void) | undefined;
|
|
5
|
-
onCheckoutSuccess: () => void;
|
|
6
|
-
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
-
export default PlanPickerCheckoutBarWrapper;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BillingPeriod, Plan, PriceList, PriceListChangeOptions, Product, Subscription } from '@bunnyapp/common';
|
|
2
|
-
type PlanAddonsCardProps = {
|
|
3
|
-
selectedPriceList: PriceList;
|
|
4
|
-
subscriptions: Subscription[];
|
|
5
|
-
addonPlans: Plan[];
|
|
6
|
-
selectedProduct: Product | undefined;
|
|
7
|
-
priceListChangeOptions: PriceListChangeOptions | undefined;
|
|
8
|
-
selectedBillingPeriod: BillingPeriod | undefined;
|
|
9
|
-
};
|
|
10
|
-
declare const PlanAddonsCard: ({ selectedPriceList, subscriptions, addonPlans, selectedProduct, priceListChangeOptions, selectedBillingPeriod, }: PlanAddonsCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export default PlanAddonsCard;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { PriceList, PriceListChangeOptions, Subscription } from '@bunnyapp/common';
|
|
2
|
-
declare const PriceListSelector: ({ arePlanChangeOptionsLoading, areSubscriptionsLoading, priceListChangeOptions, selectedPriceList, subscriptions, }: {
|
|
3
|
-
arePlanChangeOptionsLoading: boolean;
|
|
4
|
-
areSubscriptionsLoading: boolean;
|
|
5
|
-
priceListChangeOptions?: PriceListChangeOptions | undefined;
|
|
6
|
-
selectedPriceList?: PriceList | undefined;
|
|
7
|
-
subscriptions: Subscription[];
|
|
8
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export default PriceListSelector;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { PriceList } from '@bunnyapp/common';
|
|
3
|
-
export type PriceListSelectorContextValues = {
|
|
4
|
-
onChangePriceList: (selectedPriceList: PriceList) => void;
|
|
5
|
-
};
|
|
6
|
-
export declare const PriceListSelectorContext: import("react").Context<PriceListSelectorContextValues>;
|
|
7
|
-
export declare function PriceListSelectorProvider({ children }: {
|
|
8
|
-
children: React.ReactNode;
|
|
9
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/cjs/src/components/Subscriptions/{PlanManager → Upgrade}/PreviewModeAdvisary.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/esm/src/components/Subscriptions/{PlanManager → Upgrade}/PreviewModeAdvisary.d.ts
RENAMED
|
File without changes
|