@bunnyapp/components 1.8.0-beta.41 → 1.8.0-beta.43
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 +13 -13
- package/dist/cjs/types/src/components/PaymentForm/PaymentForm.d.ts +2 -0
- package/dist/cjs/types/src/components/PaymentForm/components/NoPaymentPluginsAlert.d.ts +1 -0
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteCreate.d.ts +2 -2
- package/dist/cjs/types/src/components/Signup/hooks/useSignupQuoteQueryData.d.ts +2 -2
- package/dist/cjs/types/src/hooks/useCurrentUserData.d.ts +2 -2
- package/dist/cjs/types/src/hooks/usePaymentMethod.d.ts +2 -2
- package/dist/cjs/types/src/utils/readNullableFragment.d.ts +2 -0
- package/dist/esm/index.js +27 -27
- package/dist/esm/types/src/components/PaymentForm/PaymentForm.d.ts +2 -0
- package/dist/esm/types/src/components/PaymentForm/components/NoPaymentPluginsAlert.d.ts +1 -0
- package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteCreate.d.ts +2 -2
- package/dist/esm/types/src/components/Signup/hooks/useSignupQuoteQueryData.d.ts +2 -2
- package/dist/esm/types/src/hooks/useCurrentUserData.d.ts +2 -2
- package/dist/esm/types/src/hooks/usePaymentMethod.d.ts +2 -2
- package/dist/esm/types/src/utils/readNullableFragment.d.ts +2 -0
- package/dist/index.d.ts +3 -0
- package/package.json +3 -3
|
@@ -2,6 +2,7 @@ import { FragmentOf, ResultOf } from 'gql.tada';
|
|
|
2
2
|
import type { ComponentProps } from 'react';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
4
|
import { CheckoutNoPayment } from './components/CheckoutNoPayment';
|
|
5
|
+
import { NoPaymentPluginsAlert } from './components/NoPaymentPluginsAlert';
|
|
5
6
|
import { Pay } from './components/Pay';
|
|
6
7
|
import { PaymentMethodDetails } from './components/PaymentMethodDetails/PaymentMethodDetails';
|
|
7
8
|
import { StoredPaymentMethods } from './components/StoredPaymentMethods';
|
|
@@ -54,5 +55,6 @@ export declare const PaymentForm: typeof PaymentFormInternal & {
|
|
|
54
55
|
Pay: typeof Pay;
|
|
55
56
|
CheckoutNoPayment: typeof CheckoutNoPayment;
|
|
56
57
|
PaymentMethodDetails: typeof PaymentMethodDetails;
|
|
58
|
+
NoPaymentPluginsAlert: typeof NoPaymentPluginsAlert;
|
|
57
59
|
};
|
|
58
60
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function NoPaymentPluginsAlert(): import("react").JSX.Element;
|
|
@@ -16,7 +16,7 @@ export declare const useQuoteCreate: ({ maskedUpgradingSubscription, selectedPri
|
|
|
16
16
|
selectedPriceList?: PriceList;
|
|
17
17
|
token?: string;
|
|
18
18
|
}) => {
|
|
19
|
-
quote: {
|
|
19
|
+
quote: NoInfer<{
|
|
20
20
|
[$tada.fragmentRefs]: {
|
|
21
21
|
QuoteContext_QuoteFragment: "Quote";
|
|
22
22
|
};
|
|
@@ -26,6 +26,6 @@ export declare const useQuoteCreate: ({ maskedUpgradingSubscription, selectedPri
|
|
|
26
26
|
} & {
|
|
27
27
|
FormattedQuoteFields_QuoteFragment: "Quote";
|
|
28
28
|
};
|
|
29
|
-
} | null | undefined;
|
|
29
|
+
} | null> | undefined;
|
|
30
30
|
isQuotePending: boolean;
|
|
31
31
|
};
|
|
@@ -4,9 +4,9 @@ export declare const useSignupQuoteQueryData: ({ tokenOverride, }: {
|
|
|
4
4
|
tokenOverride?: string;
|
|
5
5
|
}) => {
|
|
6
6
|
data: ResultOf<typeof Signup_QuoteFragment> | undefined;
|
|
7
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<{
|
|
7
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<NoInfer<{
|
|
8
8
|
[$tada.fragmentRefs]: {
|
|
9
9
|
Signup_QuoteFragment: "Quote";
|
|
10
10
|
};
|
|
11
|
-
} | undefined
|
|
11
|
+
} | undefined>, Error>>;
|
|
12
12
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import CurrentUser from '@/types/frontendTypes/currentUser';
|
|
2
2
|
declare const useCurrentUserData: (token: string | undefined) => {
|
|
3
|
-
currentUser: CurrentUser | {
|
|
3
|
+
currentUser: CurrentUser | NoInfer<{
|
|
4
4
|
authObjectName: string | null;
|
|
5
5
|
account: {
|
|
6
6
|
billingCountry: string | null;
|
|
@@ -12,7 +12,7 @@ declare const useCurrentUserData: (token: string | undefined) => {
|
|
|
12
12
|
privacyUrl: string | null;
|
|
13
13
|
termsUrl: string | null;
|
|
14
14
|
entityId: string | null;
|
|
15
|
-
}
|
|
15
|
+
}>;
|
|
16
16
|
isCurrentUserDataLoading: boolean;
|
|
17
17
|
};
|
|
18
18
|
export default useCurrentUserData;
|
|
@@ -2,7 +2,7 @@ export declare const usePaymentMethod: ({ accountId, enabled, }: {
|
|
|
2
2
|
accountId?: string;
|
|
3
3
|
enabled?: boolean;
|
|
4
4
|
}) => {
|
|
5
|
-
paymentMethods: {
|
|
5
|
+
paymentMethods: NoInfer<{
|
|
6
6
|
id: string;
|
|
7
7
|
pluginId: string | null;
|
|
8
8
|
accountId: string | null;
|
|
@@ -26,7 +26,7 @@ export declare const usePaymentMethod: ({ accountId, enabled, }: {
|
|
|
26
26
|
} & {
|
|
27
27
|
StoredPaymentMethods_PaymentMethodsFragment: "PaymentMethod";
|
|
28
28
|
};
|
|
29
|
-
}[] | undefined;
|
|
29
|
+
}[]> | undefined;
|
|
30
30
|
defaultPaymentMethod: {
|
|
31
31
|
id: string;
|
|
32
32
|
pluginId: string | null;
|