@bunnyapp/components 1.0.76 → 1.1.0-beta.1
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 +881 -536
- package/dist/cjs/src/components/BillingDetails/BillingDetails.d.ts +7 -5
- package/dist/cjs/src/components/PaymentForm/CheckoutFooter.d.ts +2 -2
- package/dist/cjs/src/components/PaymentForm/DemoPay/demoPayUtils.d.ts +2 -2
- package/dist/cjs/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +2 -2
- package/dist/cjs/src/components/PaymentForm/PaymentForm.d.ts +4 -5
- package/dist/cjs/src/components/PaymentForm/PaymentMethodDetails.d.ts +1 -1
- package/dist/cjs/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +2 -2
- package/dist/cjs/src/components/QuotePreviewProvider.d.ts +17 -0
- package/dist/cjs/src/components/Quotes/Quotes.d.ts +6 -6
- package/dist/cjs/src/components/Quotes/Quotes.stories.d.ts +2 -2
- package/dist/cjs/src/components/Signup/PaymentForms.d.ts +9 -1
- package/dist/cjs/src/components/Signup/Signup.d.ts +11 -1
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/PlanPicker.d.ts +0 -5
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/PriceListGrid.d.ts +2 -2
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/PriceListSelector.d.ts +2 -3
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/CheckoutBarSummarySection.d.ts +1 -3
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/EverythingPlanFeatures.d.ts +62 -2
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/FeatureAddons.d.ts +9 -0
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PlanFeatures.d.ts +3 -3
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +2 -2
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerUtils.d.ts +3 -3
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardPriceDescription.d.ts +7 -0
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/priceListCardUtils.d.ts +3 -3
- package/dist/cjs/src/components/Subscriptions/SubscriptionRequests.d.ts +0 -1
- package/dist/cjs/src/components/Subscriptions/SubscriptionsContext.d.ts +0 -3
- package/dist/cjs/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +2 -2
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +1 -1
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +2 -1
- package/dist/cjs/src/components/TaxationForm.d.ts +2 -2
- package/dist/cjs/src/components/Transactions/Transactions.d.ts +5 -5
- package/dist/cjs/src/components/Transactions/TransactionsListContext.d.ts +8 -8
- package/dist/cjs/src/components/Transactions/transactionsList/TransactionDownload.d.ts +2 -2
- package/dist/cjs/src/components/Transactions/transactionsList/TransactionTitle.d.ts +3 -3
- package/dist/cjs/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +4 -4
- package/dist/cjs/src/components/Transactions/transactionsList/TransactionsListMobile.d.ts +3 -3
- package/dist/cjs/src/components/Transactions/transactionsList/utils.d.ts +3 -3
- package/dist/cjs/src/components/icons/Bancontact.d.ts +4 -0
- package/dist/cjs/src/components/icons/IDeal.d.ts +4 -0
- package/dist/cjs/src/components/icons/Sepa.d.ts +4 -0
- package/dist/cjs/src/graphql/QuoteRequests.d.ts +1 -0
- package/dist/cjs/src/graphql/mutations/quoteChargeCreate.d.ts +2 -1
- package/dist/cjs/src/graphql/mutations/quoteChargeDelete.d.ts +7 -0
- package/dist/cjs/src/graphql/mutations/subscriptionTrialConvert.d.ts +7 -0
- package/dist/cjs/src/graphql/queries/getFeatureUsage.d.ts +1 -4
- package/dist/cjs/src/graphql/queries/getFormattedQuote.d.ts +2 -4
- package/dist/cjs/src/graphql/queries/getTransactions.d.ts +2 -2
- package/dist/cjs/src/hooks/quotes/useQuoteUpdateFeatureAddon.d.ts +8 -0
- package/dist/cjs/src/hooks/usePaymentPlugins.d.ts +2 -2
- package/dist/cjs/src/utils/couponUtils.d.ts +2 -0
- package/dist/cjs/src/utils/featureAddonUtils.d.ts +3 -0
- package/dist/esm/index.js +884 -539
- package/dist/esm/src/components/BillingDetails/BillingDetails.d.ts +7 -5
- package/dist/esm/src/components/PaymentForm/CheckoutFooter.d.ts +2 -2
- package/dist/esm/src/components/PaymentForm/DemoPay/demoPayUtils.d.ts +2 -2
- package/dist/esm/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +2 -2
- package/dist/esm/src/components/PaymentForm/PaymentForm.d.ts +4 -5
- package/dist/esm/src/components/PaymentForm/PaymentMethodDetails.d.ts +1 -1
- package/dist/esm/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +2 -2
- package/dist/esm/src/components/QuotePreviewProvider.d.ts +17 -0
- package/dist/esm/src/components/Quotes/Quotes.d.ts +6 -6
- package/dist/esm/src/components/Quotes/Quotes.stories.d.ts +2 -2
- package/dist/esm/src/components/Signup/PaymentForms.d.ts +9 -1
- package/dist/esm/src/components/Signup/Signup.d.ts +11 -1
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/PlanPicker.d.ts +0 -5
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/PriceListGrid.d.ts +2 -2
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/PriceListSelector.d.ts +2 -3
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/CheckoutBarSummarySection.d.ts +1 -3
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/EverythingPlanFeatures.d.ts +62 -2
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/FeatureAddons.d.ts +9 -0
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PlanFeatures.d.ts +3 -3
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +2 -2
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerUtils.d.ts +3 -3
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardPriceDescription.d.ts +7 -0
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/priceListCardUtils.d.ts +3 -3
- package/dist/esm/src/components/Subscriptions/SubscriptionRequests.d.ts +0 -1
- package/dist/esm/src/components/Subscriptions/SubscriptionsContext.d.ts +0 -3
- package/dist/esm/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +2 -2
- package/dist/esm/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +1 -1
- package/dist/esm/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +2 -1
- package/dist/esm/src/components/TaxationForm.d.ts +2 -2
- package/dist/esm/src/components/Transactions/Transactions.d.ts +5 -5
- package/dist/esm/src/components/Transactions/TransactionsListContext.d.ts +8 -8
- package/dist/esm/src/components/Transactions/transactionsList/TransactionDownload.d.ts +2 -2
- package/dist/esm/src/components/Transactions/transactionsList/TransactionTitle.d.ts +3 -3
- package/dist/esm/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +4 -4
- package/dist/esm/src/components/Transactions/transactionsList/TransactionsListMobile.d.ts +3 -3
- package/dist/esm/src/components/Transactions/transactionsList/utils.d.ts +3 -3
- package/dist/esm/src/components/icons/Bancontact.d.ts +4 -0
- package/dist/esm/src/components/icons/IDeal.d.ts +4 -0
- package/dist/esm/src/components/icons/Sepa.d.ts +4 -0
- package/dist/esm/src/graphql/QuoteRequests.d.ts +1 -0
- package/dist/esm/src/graphql/mutations/quoteChargeCreate.d.ts +2 -1
- package/dist/esm/src/graphql/mutations/quoteChargeDelete.d.ts +7 -0
- package/dist/esm/src/graphql/mutations/subscriptionTrialConvert.d.ts +7 -0
- package/dist/esm/src/graphql/queries/getFeatureUsage.d.ts +1 -4
- package/dist/esm/src/graphql/queries/getFormattedQuote.d.ts +2 -4
- package/dist/esm/src/graphql/queries/getTransactions.d.ts +2 -2
- package/dist/esm/src/hooks/quotes/useQuoteUpdateFeatureAddon.d.ts +8 -0
- package/dist/esm/src/hooks/usePaymentPlugins.d.ts +2 -2
- package/dist/esm/src/utils/couponUtils.d.ts +2 -0
- package/dist/esm/src/utils/featureAddonUtils.d.ts +3 -0
- package/dist/index.d.ts +30 -19
- package/package.json +3 -3
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { QuoteCharge } from '@bunnyapp/common';
|
|
1
2
|
type QuoteChangeCreateChargeProps = {
|
|
2
3
|
apiHost: string;
|
|
3
4
|
price?: number;
|
|
@@ -8,5 +9,5 @@ type QuoteChangeCreateChargeProps = {
|
|
|
8
9
|
subscriptionChargeId?: string;
|
|
9
10
|
token?: string;
|
|
10
11
|
};
|
|
11
|
-
declare const quoteChargeCreate: ({ price, priceListChargeId, quantity, quoteChangeId, startDate, subscriptionChargeId, token, apiHost, }: QuoteChangeCreateChargeProps) => Promise<
|
|
12
|
+
declare const quoteChargeCreate: ({ price, priceListChargeId, quantity, quoteChangeId, startDate, subscriptionChargeId, token, apiHost, }: QuoteChangeCreateChargeProps) => Promise<QuoteCharge>;
|
|
12
13
|
export default quoteChargeCreate;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const subscriptionTrialConvert: ({ subscriptionId, paymentMethodId, apiHost, token, }: {
|
|
2
|
+
subscriptionId: string;
|
|
3
|
+
paymentMethodId?: string | undefined;
|
|
4
|
+
apiHost: string;
|
|
5
|
+
token?: string | undefined;
|
|
6
|
+
}) => Promise<any>;
|
|
7
|
+
export default subscriptionTrialConvert;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { FeatureUsage } from '@bunnyapp/common';
|
|
2
|
-
declare const getFeatureUsage: ({ subscriptionChargeId,
|
|
2
|
+
declare const getFeatureUsage: ({ subscriptionChargeId, token, apiHost, }: {
|
|
3
3
|
subscriptionChargeId: string;
|
|
4
|
-
startDate?: string | undefined;
|
|
5
|
-
endDate?: string | undefined;
|
|
6
|
-
dataInterval?: number | undefined;
|
|
7
4
|
token?: string | undefined;
|
|
8
5
|
apiHost: string;
|
|
9
6
|
}) => Promise<FeatureUsage>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
declare const getFormattedQuote: ({ id, token, apiHost, }: {
|
|
3
|
-
id?: string | undefined;
|
|
1
|
+
declare const getFormattedQuote: ({ token, apiHost }: {
|
|
4
2
|
apiHost: string;
|
|
5
3
|
token?: string | undefined;
|
|
6
|
-
}) => Promise<
|
|
4
|
+
}) => Promise<any>;
|
|
7
5
|
export default getFormattedQuote;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const getTransactions: (filter: string, apiHost: string, token?: string) => Promise<
|
|
1
|
+
import { Transaction } from '@bunnyapp/common';
|
|
2
|
+
declare const getTransactions: (filter: string, apiHost: string, token?: string) => Promise<Transaction[]>;
|
|
3
3
|
export default getTransactions;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PriceListCharge } from '@bunnyapp/common';
|
|
2
|
+
export declare const useQuoteUpdateFeatureAddon: (quoteId: string | undefined, featureAddon: PriceListCharge) => {
|
|
3
|
+
handleAddFeatureAddon: () => void;
|
|
4
|
+
handleRemoveFeatureAddon: () => void;
|
|
5
|
+
isPending: boolean;
|
|
6
|
+
isChecked: boolean;
|
|
7
|
+
editingQuoteLoaded: boolean;
|
|
8
|
+
};
|
|
@@ -19,10 +19,10 @@ type PaymentPlugin = {
|
|
|
19
19
|
}[];
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
-
export declare const usePaymentPlugins: ({ apiHost, token,
|
|
22
|
+
export declare const usePaymentPlugins: ({ apiHost, token, accountId, }: {
|
|
23
23
|
apiHost: string;
|
|
24
24
|
token?: string | undefined;
|
|
25
|
-
|
|
25
|
+
accountId?: string | undefined;
|
|
26
26
|
}) => {
|
|
27
27
|
paymentPlugins: PaymentPlugin[];
|
|
28
28
|
isFetched: boolean;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { PriceList, PriceListCharge, Subscription } from '@bunnyapp/common';
|
|
2
|
+
export declare function isAddonPurchased(featureAddon: PriceListCharge, currentSubscription: Subscription | undefined): boolean;
|
|
3
|
+
export declare function priceListHasUnpurchasedFeatureAddons(priceList: PriceList, currentSubscription: Subscription | undefined): boolean;
|