@bunnyapp/components 1.8.0-beta.39 → 1.8.0-beta.40
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 +15 -15
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteCreate.d.ts +2 -2
- package/dist/cjs/types/src/components/Signup/components/SignupForm/SignupForm.d.ts +1 -4
- package/dist/cjs/types/src/components/Signup/components/SignupForm/components/ExistingAccountForm.d.ts +1 -5
- package/dist/cjs/types/src/components/Signup/components/SignupForm/components/ExistingAccountLoadedEffect.d.ts +1 -6
- 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/esm/index.js +18 -18
- package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteCreate.d.ts +2 -2
- package/dist/esm/types/src/components/Signup/components/SignupForm/SignupForm.d.ts +1 -4
- package/dist/esm/types/src/components/Signup/components/SignupForm/components/ExistingAccountForm.d.ts +1 -5
- package/dist/esm/types/src/components/Signup/components/SignupForm/components/ExistingAccountLoadedEffect.d.ts +1 -6
- 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/package.json +3 -4
|
@@ -16,7 +16,7 @@ export declare const useQuoteCreate: ({ maskedUpgradingSubscription, selectedPri
|
|
|
16
16
|
selectedPriceList?: PriceList;
|
|
17
17
|
token?: string;
|
|
18
18
|
}) => {
|
|
19
|
-
quote:
|
|
19
|
+
quote: {
|
|
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
|
|
29
|
+
} | null | undefined;
|
|
30
30
|
isQuotePending: boolean;
|
|
31
31
|
};
|
|
@@ -2,12 +2,9 @@ import type { ResultOf } from 'gql.tada';
|
|
|
2
2
|
import { Signup_PriceListFragment } from '../../fragments/Signup_PriceListFragment';
|
|
3
3
|
import { type DefaultSignupValues, type RequiredBillingDetailsFlags } from '../InitialSignupFormFields';
|
|
4
4
|
type SignupFormProps = {
|
|
5
|
-
priceListCode: string;
|
|
6
5
|
priceList?: ResultOf<typeof Signup_PriceListFragment> | null;
|
|
7
6
|
defaultFormValues?: DefaultSignupValues;
|
|
8
|
-
paymentRequiredToAcceptQuote?: boolean;
|
|
9
|
-
documentTemplateId?: string;
|
|
10
7
|
requiredBillingDetails?: RequiredBillingDetailsFlags;
|
|
11
8
|
};
|
|
12
|
-
export default function SignupForm({
|
|
9
|
+
export default function SignupForm({ priceList, defaultFormValues, requiredBillingDetails, }: SignupFormProps): import("react").JSX.Element;
|
|
13
10
|
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { FragmentOf, type ResultOf } from 'gql.tada';
|
|
2
2
|
import { Signup_PriceListFragment } from '../../../fragments/Signup_PriceListFragment';
|
|
3
3
|
import { ExtraSignupFormField, type DefaultSignupValues, type RequiredBillingDetailsFlags } from '../../InitialSignupFormFields';
|
|
4
|
-
import { Signup_QuoteFragment } from '@/components/Signup/fragments/Signup_QuoteFragment';
|
|
5
4
|
export declare const ExistingAccountForm_AccountFragment: import("gql.tada").TadaDocumentNode<{
|
|
6
5
|
[$tada.fragmentRefs]: {
|
|
7
6
|
ExistingAccountLoadedEffect_AccountFragment: "Account";
|
|
@@ -16,7 +15,7 @@ export declare const ExistingAccountForm_AccountFragment: import("gql.tada").Tad
|
|
|
16
15
|
masked: true;
|
|
17
16
|
}>;
|
|
18
17
|
/** Account-details form after `quoteAccountSignup` has created an account; saves via `contactUpdate` + `accountUpdate` on blur. */
|
|
19
|
-
export default function ExistingAccountForm({ title, className, account: maskedAccount, extraFieldsToShow, requiredBillingDetails, defaultFormValues, priceList, onSelfServiceBuyDisabled,
|
|
18
|
+
export default function ExistingAccountForm({ title, className, account: maskedAccount, extraFieldsToShow, requiredBillingDetails, defaultFormValues, priceList, onSelfServiceBuyDisabled, }: {
|
|
20
19
|
title: string;
|
|
21
20
|
className?: string;
|
|
22
21
|
account: FragmentOf<typeof ExistingAccountForm_AccountFragment> | undefined | null;
|
|
@@ -25,7 +24,4 @@ export default function ExistingAccountForm({ title, className, account: maskedA
|
|
|
25
24
|
defaultFormValues?: DefaultSignupValues;
|
|
26
25
|
priceList?: ResultOf<typeof Signup_PriceListFragment> | null;
|
|
27
26
|
onSelfServiceBuyDisabled: () => void;
|
|
28
|
-
priceListCode: string;
|
|
29
|
-
documentTemplateId?: string;
|
|
30
|
-
onQuoteAccountSignupSuccess: (portalSessionToken: string, accountId: string, quote: FragmentOf<typeof Signup_QuoteFragment> | null) => void;
|
|
31
27
|
}): import("react").JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type FragmentOf, type ResultOf } from 'gql.tada';
|
|
2
2
|
import { Signup_PriceListFragment } from '../../../fragments/Signup_PriceListFragment';
|
|
3
|
-
import { Signup_QuoteFragment } from '../../../fragments/Signup_QuoteFragment';
|
|
4
3
|
import { type DefaultSignupValues } from '../../InitialSignupFormFields';
|
|
5
4
|
export declare const ExistingAccountLoadedEffect_AccountFragment: import("gql.tada").TadaDocumentNode<{
|
|
6
5
|
id: string;
|
|
@@ -22,13 +21,9 @@ export declare const ExistingAccountLoadedEffect_AccountFragment: import("gql.ta
|
|
|
22
21
|
on: "Account";
|
|
23
22
|
masked: true;
|
|
24
23
|
}>;
|
|
25
|
-
export default function ExistingAccountLoadedEffect({ account: maskedAccount, defaultFormValues, priceList, onSelfServiceBuyDisabled,
|
|
24
|
+
export default function ExistingAccountLoadedEffect({ account: maskedAccount, defaultFormValues, priceList, onSelfServiceBuyDisabled, }: {
|
|
26
25
|
account: FragmentOf<typeof ExistingAccountLoadedEffect_AccountFragment> | null | undefined;
|
|
27
26
|
defaultFormValues?: DefaultSignupValues;
|
|
28
27
|
priceList?: ResultOf<typeof Signup_PriceListFragment> | null;
|
|
29
28
|
onSelfServiceBuyDisabled: () => void;
|
|
30
|
-
priceListCode: string;
|
|
31
|
-
paymentRequiredToAcceptQuote?: boolean;
|
|
32
|
-
documentTemplateId?: string;
|
|
33
|
-
onQuoteAccountSignupSuccess: (portalSessionToken: string, accountId: string, quote: FragmentOf<typeof Signup_QuoteFragment> | null) => void;
|
|
34
29
|
}): null;
|
|
@@ -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<{
|
|
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 | {
|
|
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: {
|
|
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
|
-
}[]
|
|
29
|
+
}[] | undefined;
|
|
30
30
|
defaultPaymentMethod: {
|
|
31
31
|
id: string;
|
|
32
32
|
pluginId: string | null;
|