@bunnyapp/components 1.0.7 → 1.0.8
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 +730 -1052
- package/dist/cjs/playground/main.d.ts +1 -1
- package/dist/cjs/src/ajax.d.ts +1 -0
- package/dist/cjs/src/components/BunnyProvider.d.ts +9 -5
- package/dist/cjs/src/components/Checkout/Checkout.d.ts +4 -2
- package/dist/cjs/src/components/Checkout/InvoiceCheckout.d.ts +2 -1
- package/dist/cjs/src/components/Checkout/QuoteCheckout.d.ts +2 -1
- package/dist/cjs/src/components/FeatureUsageGraph.d.ts +1 -1
- package/dist/cjs/src/components/Invoice/Invoice.d.ts +2 -2
- package/dist/cjs/src/components/Invoice/InvoiceQuoteView.d.ts +1 -2
- package/dist/cjs/src/components/LegacyInvoicePDF.d.ts +2 -2
- package/dist/cjs/src/components/PaymentForm/DemoPay/demoPayUtils.d.ts +1 -1
- package/dist/cjs/src/components/PaymentForm/Finix/FinixCardForm.d.ts +1 -1
- package/dist/cjs/src/components/PaymentForm/FinixAch.d.ts +1 -1
- package/dist/cjs/src/components/PaymentForm/PaymentForm.d.ts +1 -1
- package/dist/cjs/src/components/PaymentForm/PaymentFormTypes.d.ts +1 -0
- package/dist/cjs/src/components/PaymentForm/PaymentMethod/PaymentMethod.d.ts +2 -2
- package/dist/cjs/src/components/PaymentForm/PaymentMethod/PaymentMethodContext.d.ts +0 -1
- package/dist/cjs/src/components/PaymentForm/PaymentMethodForm.d.ts +1 -1
- package/dist/cjs/src/components/PaymentForm/Stripe/StripeForm.d.ts +1 -1
- package/dist/cjs/src/components/PaymentForm/Stripe/stripeUtils.d.ts +6 -6
- package/dist/cjs/src/components/PaymentForm/paymentUtils.d.ts +2 -2
- package/dist/cjs/src/components/Quote/Quote.d.ts +2 -2
- package/dist/cjs/src/components/Quotes/Quotes.d.ts +2 -1
- package/dist/cjs/src/components/Signup/PaymentForms.d.ts +2 -2
- package/dist/cjs/src/components/Signup/PaymentSuccess.d.ts +4 -3
- package/dist/cjs/src/components/Signup/Signup.d.ts +3 -1
- package/dist/cjs/src/components/Subscriptions/Subscriptions.d.ts +4 -2
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +1 -1
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardColumnHeaders.d.ts +1 -1
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +1 -2
- package/dist/cjs/src/components/Transactions/Transactions.d.ts +3 -1
- package/dist/cjs/src/components/Transactions/TransactionsListContext.d.ts +1 -0
- package/dist/cjs/src/components/Transactions/transactionsList/TransactionDownload.d.ts +2 -2
- package/dist/cjs/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +1 -11
- package/dist/cjs/src/contexts/NavigationContext.d.ts +1 -1
- package/dist/cjs/src/graphql/mutations/accountSignup.d.ts +2 -2
- package/dist/cjs/src/graphql/mutations/accountUpdate.d.ts +2 -1
- package/dist/cjs/src/graphql/mutations/checkout.d.ts +2 -2
- package/dist/cjs/src/graphql/mutations/portalSessionCreate.d.ts +2 -2
- package/dist/cjs/src/graphql/mutations/quoteAccountSignup.d.ts +2 -2
- package/dist/cjs/src/graphql/mutations/quoteAddCoupon.d.ts +2 -1
- package/dist/cjs/src/graphql/mutations/quoteCompose.d.ts +2 -2
- package/dist/cjs/src/graphql/mutations/quoteCreate.d.ts +2 -2
- package/dist/cjs/src/graphql/mutations/quoteRecalculateTaxes.d.ts +2 -1
- package/dist/cjs/src/graphql/mutations/quoteSubscriptionReinstate.d.ts +2 -2
- package/dist/cjs/src/graphql/queries/getAccount.d.ts +2 -2
- package/dist/cjs/src/graphql/queries/getBranding.d.ts +2 -2
- package/dist/cjs/src/graphql/queries/getCurrentUserData.d.ts +2 -2
- package/dist/cjs/src/graphql/queries/getFeatureUsage.d.ts +2 -1
- package/dist/cjs/src/graphql/queries/getFormattedQuote.d.ts +2 -2
- package/dist/cjs/src/graphql/queries/getInvoice.d.ts +2 -2
- package/dist/cjs/src/graphql/queries/getPlanChangeOptions.d.ts +2 -2
- package/dist/cjs/src/graphql/queries/getPriceList.d.ts +2 -2
- package/dist/cjs/src/graphql/queries/getQuote.d.ts +2 -2
- package/dist/cjs/src/graphql/queries/getQuotes.d.ts +2 -2
- package/dist/cjs/src/graphql/queries/getSubscription.d.ts +2 -2
- package/dist/cjs/src/graphql/queries/getSubscriptions.d.ts +2 -2
- package/dist/cjs/src/graphql/queries/getTaxationRequiredAccountFields.d.ts +6 -0
- package/dist/cjs/src/graphql/queries/getTransactions.d.ts +1 -1
- package/dist/cjs/src/hooks/quotes/useSendAcceptQuote.d.ts +7 -1
- package/dist/cjs/src/hooks/useHasTaxPlugin.d.ts +3 -2
- package/dist/cjs/src/hooks/usePaymentPlugins.d.ts +11 -0
- package/dist/cjs/src/hooks/usePlugins.d.ts +6 -0
- package/dist/cjs/src/hooks/useSigningPlugins.d.ts +5 -1
- package/dist/cjs/src/index.d.ts +1 -0
- package/dist/cjs/src/utils/GraphQLClient.d.ts +2 -0
- package/dist/cjs/src/utils/quoteInvoiceUtils.d.ts +6 -0
- package/dist/esm/index.js +722 -1043
- package/dist/esm/playground/main.d.ts +1 -1
- package/dist/esm/src/ajax.d.ts +1 -0
- package/dist/esm/src/components/BunnyProvider.d.ts +9 -5
- package/dist/esm/src/components/Checkout/Checkout.d.ts +4 -2
- package/dist/esm/src/components/Checkout/InvoiceCheckout.d.ts +2 -1
- package/dist/esm/src/components/Checkout/QuoteCheckout.d.ts +2 -1
- package/dist/esm/src/components/FeatureUsageGraph.d.ts +1 -1
- package/dist/esm/src/components/Invoice/Invoice.d.ts +2 -2
- package/dist/esm/src/components/Invoice/InvoiceQuoteView.d.ts +1 -2
- package/dist/esm/src/components/LegacyInvoicePDF.d.ts +2 -2
- package/dist/esm/src/components/PaymentForm/DemoPay/demoPayUtils.d.ts +1 -1
- package/dist/esm/src/components/PaymentForm/Finix/FinixCardForm.d.ts +1 -1
- package/dist/esm/src/components/PaymentForm/FinixAch.d.ts +1 -1
- package/dist/esm/src/components/PaymentForm/PaymentForm.d.ts +1 -1
- package/dist/esm/src/components/PaymentForm/PaymentFormTypes.d.ts +1 -0
- package/dist/esm/src/components/PaymentForm/PaymentMethod/PaymentMethod.d.ts +2 -2
- package/dist/esm/src/components/PaymentForm/PaymentMethod/PaymentMethodContext.d.ts +0 -1
- package/dist/esm/src/components/PaymentForm/PaymentMethodForm.d.ts +1 -1
- package/dist/esm/src/components/PaymentForm/Stripe/StripeForm.d.ts +1 -1
- package/dist/esm/src/components/PaymentForm/Stripe/stripeUtils.d.ts +6 -6
- package/dist/esm/src/components/PaymentForm/paymentUtils.d.ts +2 -2
- package/dist/esm/src/components/Quote/Quote.d.ts +2 -2
- package/dist/esm/src/components/Quotes/Quotes.d.ts +2 -1
- package/dist/esm/src/components/Signup/PaymentForms.d.ts +2 -2
- package/dist/esm/src/components/Signup/PaymentSuccess.d.ts +4 -3
- package/dist/esm/src/components/Signup/Signup.d.ts +3 -1
- package/dist/esm/src/components/Subscriptions/Subscriptions.d.ts +4 -2
- package/dist/esm/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +1 -1
- package/dist/esm/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardColumnHeaders.d.ts +1 -1
- package/dist/esm/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +1 -2
- package/dist/esm/src/components/Transactions/Transactions.d.ts +3 -1
- package/dist/esm/src/components/Transactions/TransactionsListContext.d.ts +1 -0
- package/dist/esm/src/components/Transactions/transactionsList/TransactionDownload.d.ts +2 -2
- package/dist/esm/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +1 -11
- package/dist/esm/src/contexts/NavigationContext.d.ts +1 -1
- package/dist/esm/src/graphql/mutations/accountSignup.d.ts +2 -2
- package/dist/esm/src/graphql/mutations/accountUpdate.d.ts +2 -1
- package/dist/esm/src/graphql/mutations/checkout.d.ts +2 -2
- package/dist/esm/src/graphql/mutations/portalSessionCreate.d.ts +2 -2
- package/dist/esm/src/graphql/mutations/quoteAccountSignup.d.ts +2 -2
- package/dist/esm/src/graphql/mutations/quoteAddCoupon.d.ts +2 -1
- package/dist/esm/src/graphql/mutations/quoteCompose.d.ts +2 -2
- package/dist/esm/src/graphql/mutations/quoteCreate.d.ts +2 -2
- package/dist/esm/src/graphql/mutations/quoteRecalculateTaxes.d.ts +2 -1
- package/dist/esm/src/graphql/mutations/quoteSubscriptionReinstate.d.ts +2 -2
- package/dist/esm/src/graphql/queries/getAccount.d.ts +2 -2
- package/dist/esm/src/graphql/queries/getBranding.d.ts +2 -2
- package/dist/esm/src/graphql/queries/getCurrentUserData.d.ts +2 -2
- package/dist/esm/src/graphql/queries/getFeatureUsage.d.ts +2 -1
- package/dist/esm/src/graphql/queries/getFormattedQuote.d.ts +2 -2
- package/dist/esm/src/graphql/queries/getInvoice.d.ts +2 -2
- package/dist/esm/src/graphql/queries/getPlanChangeOptions.d.ts +2 -2
- package/dist/esm/src/graphql/queries/getPriceList.d.ts +2 -2
- package/dist/esm/src/graphql/queries/getQuote.d.ts +2 -2
- package/dist/esm/src/graphql/queries/getQuotes.d.ts +2 -2
- package/dist/esm/src/graphql/queries/getSubscription.d.ts +2 -2
- package/dist/esm/src/graphql/queries/getSubscriptions.d.ts +2 -2
- package/dist/esm/src/graphql/queries/getTaxationRequiredAccountFields.d.ts +6 -0
- package/dist/esm/src/graphql/queries/getTransactions.d.ts +1 -1
- package/dist/esm/src/hooks/quotes/useSendAcceptQuote.d.ts +7 -1
- package/dist/esm/src/hooks/useHasTaxPlugin.d.ts +3 -2
- package/dist/esm/src/hooks/usePaymentPlugins.d.ts +11 -0
- package/dist/esm/src/hooks/usePlugins.d.ts +6 -0
- package/dist/esm/src/hooks/useSigningPlugins.d.ts +5 -1
- package/dist/esm/src/index.d.ts +1 -0
- package/dist/esm/src/utils/GraphQLClient.d.ts +2 -0
- package/dist/esm/src/utils/quoteInvoiceUtils.d.ts +6 -0
- package/dist/index.d.ts +28 -14
- package/package.json +10 -7
- package/dist/cjs/src/atoms/pageContentRefAtom.d.ts +0 -1
- package/dist/cjs/src/atoms/planPickerQuoteDataAtom.d.ts +0 -2
- package/dist/cjs/src/atoms/updatingChargeQuantityIdAtom.d.ts +0 -2
- package/dist/cjs/src/components/Footer.d.ts +0 -4
- package/dist/cjs/src/components/PageContent.d.ts +0 -7
- package/dist/cjs/src/features/quantityChangeDrawer/QuantityChangeGridRow.d.ts +0 -11
- package/dist/cjs/src/features/quantityChangeDrawer/QuantityChangeGridTitle.d.ts +0 -6
- package/dist/cjs/src/features/quantityChangeDrawer/QuantityInput.d.ts +0 -21
- package/dist/cjs/src/features/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +0 -9
- package/dist/cjs/src/features/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +0 -14
- package/dist/cjs/src/graphql/QuoteRequests.d.ts +0 -6
- package/dist/cjs/src/graphql/SubscriptionRequests.d.ts +0 -2
- package/dist/cjs/src/graphql/queries/getFormattedInvoice.d.ts +0 -7
- package/dist/cjs/src/hooks/useCurrentUserData.d.ts +0 -2
- package/dist/cjs/src/hooks/useIsMobile.d.ts +0 -10
- package/dist/cjs/src/utils.d.ts +0 -9
- package/dist/esm/src/atoms/pageContentRefAtom.d.ts +0 -1
- package/dist/esm/src/atoms/planPickerQuoteDataAtom.d.ts +0 -2
- package/dist/esm/src/atoms/updatingChargeQuantityIdAtom.d.ts +0 -2
- package/dist/esm/src/components/Footer.d.ts +0 -4
- package/dist/esm/src/components/PageContent.d.ts +0 -7
- package/dist/esm/src/features/quantityChangeDrawer/QuantityChangeGridRow.d.ts +0 -11
- package/dist/esm/src/features/quantityChangeDrawer/QuantityChangeGridTitle.d.ts +0 -6
- package/dist/esm/src/features/quantityChangeDrawer/QuantityInput.d.ts +0 -21
- package/dist/esm/src/features/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +0 -9
- package/dist/esm/src/features/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +0 -14
- package/dist/esm/src/graphql/QuoteRequests.d.ts +0 -6
- package/dist/esm/src/graphql/SubscriptionRequests.d.ts +0 -2
- package/dist/esm/src/graphql/queries/getFormattedInvoice.d.ts +0 -7
- package/dist/esm/src/hooks/useCurrentUserData.d.ts +0 -2
- package/dist/esm/src/hooks/useIsMobile.d.ts +0 -10
- package/dist/esm/src/utils.d.ts +0 -9
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Quote } from "@bunnyapp/common";
|
|
2
|
-
declare const getQuote: ({ id, token,
|
|
2
|
+
declare const getQuote: ({ id, token, apiHost, }: {
|
|
3
3
|
id: string;
|
|
4
4
|
token: string;
|
|
5
|
-
|
|
5
|
+
apiHost: string;
|
|
6
6
|
}) => Promise<Quote>;
|
|
7
7
|
export default getQuote;
|
|
@@ -4,9 +4,9 @@ interface SubscriptionExtended extends Subscription {
|
|
|
4
4
|
id?: string;
|
|
5
5
|
}[];
|
|
6
6
|
}
|
|
7
|
-
declare const getSubscription: ({ token, id,
|
|
7
|
+
declare const getSubscription: ({ token, id, apiHost, }: {
|
|
8
8
|
token: string;
|
|
9
9
|
id: string;
|
|
10
|
-
|
|
10
|
+
apiHost: string;
|
|
11
11
|
}) => Promise<SubscriptionExtended>;
|
|
12
12
|
export default getSubscription;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare const getSubscriptions: ({ entityId, isInPreviewMode, token,
|
|
1
|
+
declare const getSubscriptions: ({ entityId, isInPreviewMode, token, apiHost, }: {
|
|
2
2
|
entityId: string;
|
|
3
3
|
isInPreviewMode?: boolean | undefined;
|
|
4
4
|
token: string;
|
|
5
|
-
|
|
5
|
+
apiHost: string;
|
|
6
6
|
}) => Promise<any>;
|
|
7
7
|
export default getSubscriptions;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TaxationRequiredAccountFields } from "@bunnyapp/common";
|
|
2
|
+
declare const getTaxationRequiredAccountFields: ({ token, apiHost, }: {
|
|
3
|
+
token: string;
|
|
4
|
+
apiHost: string;
|
|
5
|
+
}) => Promise<TaxationRequiredAccountFields | null>;
|
|
6
|
+
export default getTaxationRequiredAccountFields;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TransactionKind } from "@bunnyapp/common";
|
|
2
|
-
declare const getTransactions: (filter: string, token: string,
|
|
2
|
+
declare const getTransactions: (filter: string, token: string, apiHost: string, kindsToShow: TransactionKind[]) => Promise<any>;
|
|
3
3
|
export default getTransactions;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const useSendAcceptQuote: (
|
|
2
|
+
declare const useSendAcceptQuote: ({ entityId, onErrorNavigate, quoteId, apiHost, token, }: {
|
|
3
|
+
entityId: string;
|
|
4
|
+
onErrorNavigate: (url: string) => void;
|
|
5
|
+
quoteId?: string | undefined;
|
|
6
|
+
apiHost: string;
|
|
7
|
+
token: string;
|
|
8
|
+
}) => {
|
|
3
9
|
acceptBoxVisible: boolean;
|
|
4
10
|
isAccepting: boolean;
|
|
5
11
|
sendAccept: (changedFormItems: {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PluginData } from "@bunnyapp/common";
|
|
2
|
+
export declare const usePaymentPlugins: ({ entityId, apiHost, token, }: {
|
|
3
|
+
entityId: string;
|
|
4
|
+
apiHost: string;
|
|
5
|
+
token: string;
|
|
6
|
+
}) => {
|
|
7
|
+
paymentPlugins: PluginData[] | undefined;
|
|
8
|
+
paymentMethodAllowedPlugins: PluginData[] | undefined;
|
|
9
|
+
isFetched: boolean;
|
|
10
|
+
};
|
|
11
|
+
export default usePaymentPlugins;
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import { PluginData } from "@bunnyapp/common";
|
|
2
|
-
export declare const useSigningPlugins: (
|
|
2
|
+
export declare const useSigningPlugins: ({ entityId, apiHost, token, }: {
|
|
3
|
+
entityId: string;
|
|
4
|
+
apiHost: string;
|
|
5
|
+
token: string;
|
|
6
|
+
}) => PluginData[] | undefined;
|
package/dist/cjs/src/index.d.ts
CHANGED