@bunnyapp/components 1.8.0-beta.36 → 1.8.0-beta.37
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 +7 -7
- package/dist/cjs/types/src/components/Checkout/Checkout.d.ts +12 -1
- package/dist/cjs/types/src/components/Checkout/QuoteCheckout.d.ts +2 -1
- package/dist/cjs/types/src/components/Subscriptions/context/upgradingSubscriptionContext.d.ts +2 -2
- package/dist/cjs/types/src/components/Subscriptions/fragments/UpgradingSubscriptionContext_SubscriptionFragment.d.ts +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/types/src/components/Checkout/Checkout.d.ts +12 -1
- package/dist/esm/types/src/components/Checkout/QuoteCheckout.d.ts +2 -1
- package/dist/esm/types/src/components/Subscriptions/context/upgradingSubscriptionContext.d.ts +2 -2
- package/dist/esm/types/src/components/Subscriptions/fragments/UpgradingSubscriptionContext_SubscriptionFragment.d.ts +1 -1
- package/package.json +1 -1
|
@@ -14,6 +14,16 @@ export declare const Checkout_QuoteFragment: import("gql.tada").TadaDocumentNode
|
|
|
14
14
|
on: "Quote";
|
|
15
15
|
masked: true;
|
|
16
16
|
}>;
|
|
17
|
+
export declare const Checkout_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
|
|
18
|
+
id: string;
|
|
19
|
+
[$tada.fragmentRefs]: {
|
|
20
|
+
QuoteCheckout_SubscriptionFragment: "Subscription";
|
|
21
|
+
};
|
|
22
|
+
}, {}, {
|
|
23
|
+
fragment: "Checkout_SubscriptionFragment";
|
|
24
|
+
on: "Subscription";
|
|
25
|
+
masked: true;
|
|
26
|
+
}>;
|
|
17
27
|
type CheckoutProps = {
|
|
18
28
|
invoice?: FormattedInvoice;
|
|
19
29
|
onCancel: () => void;
|
|
@@ -22,9 +32,10 @@ type CheckoutProps = {
|
|
|
22
32
|
onRecalculateTaxes: (quoteId: string) => void;
|
|
23
33
|
open: boolean;
|
|
24
34
|
quote?: FragmentOf<typeof Checkout_QuoteFragment> | null;
|
|
35
|
+
upgradingSubscription?: FragmentOf<typeof Checkout_SubscriptionFragment> | null;
|
|
25
36
|
token?: string;
|
|
26
37
|
isUpdatingQuote: boolean;
|
|
27
38
|
isRecalculatingTaxes: boolean;
|
|
28
39
|
};
|
|
29
|
-
declare const Checkout: ({ onCancel, onSuccess, onFail, onRecalculateTaxes, invoice, open, quote: maskedQuote, isUpdatingQuote, isRecalculatingTaxes, }: CheckoutProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
40
|
+
declare const Checkout: ({ onCancel, onSuccess, onFail, onRecalculateTaxes, invoice, open, quote: maskedQuote, upgradingSubscription: maskedUpgradingSubscription, isUpdatingQuote, isRecalculatingTaxes, }: CheckoutProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
30
41
|
export default Checkout;
|
|
@@ -96,6 +96,7 @@ export declare const QuoteCheckout_SubscriptionFragment: import("gql.tada").Tada
|
|
|
96
96
|
interface QuoteCheckoutProps extends InvoiceQuoteParentProps {
|
|
97
97
|
account: Account;
|
|
98
98
|
quote: FragmentOf<typeof QuoteCheckout_QuoteFragment>;
|
|
99
|
+
upgradingSubscription?: FragmentOf<typeof QuoteCheckout_SubscriptionFragment> | null;
|
|
99
100
|
taxationRequiredAccountFields?: TaxationRequiredAccountFields | null;
|
|
100
101
|
token?: string;
|
|
101
102
|
storedPaymentMethod?: PaymentMethod;
|
|
@@ -103,5 +104,5 @@ interface QuoteCheckoutProps extends InvoiceQuoteParentProps {
|
|
|
103
104
|
isUpdatingQuote: boolean;
|
|
104
105
|
isRecalculatingTaxes: boolean;
|
|
105
106
|
}
|
|
106
|
-
declare const QuoteCheckout: ({ account, onSuccess, onFail, quote: maskedQuote, taxationRequiredAccountFields, isUpdatingQuote, onRecalculateTaxes, isRecalculatingTaxes, }: QuoteCheckoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
107
|
+
declare const QuoteCheckout: ({ account, onSuccess, onFail, quote: maskedQuote, upgradingSubscription: maskedUpgradingSubscription, taxationRequiredAccountFields, isUpdatingQuote, onRecalculateTaxes, isRecalculatingTaxes, }: QuoteCheckoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
107
108
|
export default QuoteCheckout;
|
package/dist/cjs/types/src/components/Subscriptions/context/upgradingSubscriptionContext.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare const UpgradingSubscriptionProvider: ({ value, children }: {
|
|
|
14
14
|
[$tada.fragmentRefs]: {
|
|
15
15
|
SubscriptionsList_SubscriptionFragment: "Subscription";
|
|
16
16
|
} & {
|
|
17
|
-
|
|
17
|
+
Checkout_SubscriptionFragment: "Subscription";
|
|
18
18
|
} & {
|
|
19
19
|
PriceListSelectorUpgradingSubscription_SubscriptionFragment: "Subscription";
|
|
20
20
|
} & {
|
|
@@ -47,7 +47,7 @@ export declare const UpgradingSubscriptionProvider: ({ value, children }: {
|
|
|
47
47
|
[$tada.fragmentRefs]: {
|
|
48
48
|
SubscriptionsList_SubscriptionFragment: "Subscription";
|
|
49
49
|
} & {
|
|
50
|
-
|
|
50
|
+
Checkout_SubscriptionFragment: "Subscription";
|
|
51
51
|
} & {
|
|
52
52
|
PriceListSelectorUpgradingSubscription_SubscriptionFragment: "Subscription";
|
|
53
53
|
} & {
|
|
@@ -13,7 +13,7 @@ export declare const UpgradingSubscriptionContext_SubscriptionFragment: import("
|
|
|
13
13
|
[$tada.fragmentRefs]: {
|
|
14
14
|
SubscriptionsList_SubscriptionFragment: "Subscription";
|
|
15
15
|
} & {
|
|
16
|
-
|
|
16
|
+
Checkout_SubscriptionFragment: "Subscription";
|
|
17
17
|
} & {
|
|
18
18
|
PriceListSelectorUpgradingSubscription_SubscriptionFragment: "Subscription";
|
|
19
19
|
} & {
|