@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.
@@ -16,7 +16,7 @@ export declare const useQuoteCreate: ({ maskedUpgradingSubscription, selectedPri
16
16
  selectedPriceList?: PriceList;
17
17
  token?: string;
18
18
  }) => {
19
- quote: NoInfer<{
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> | undefined;
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({ priceListCode, priceList, defaultFormValues, documentTemplateId, requiredBillingDetails, }: SignupFormProps): import("react").JSX.Element;
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, priceListCode, documentTemplateId, onQuoteAccountSignupSuccess, }: {
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, priceListCode, paymentRequiredToAcceptQuote, documentTemplateId, onQuoteAccountSignupSuccess, }: {
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<NoInfer<{
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>, Error>>;
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 | NoInfer<{
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: NoInfer<{
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
- }[]> | undefined;
29
+ }[] | undefined;
30
30
  defaultPaymentMethod: {
31
31
  id: string;
32
32
  pluginId: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bunnyapp/components",
3
- "version": "1.8.0-beta.39",
3
+ "version": "1.8.0-beta.40",
4
4
  "description": "Components from the Bunny portal to embed Bunny UI functionality into your application.",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -42,8 +42,7 @@
42
42
  "@storybook/addon-onboarding": "^10.4.0",
43
43
  "@storybook/react": "^10.4.0",
44
44
  "@storybook/react-vite": "^10.4.0",
45
- "@tanstack/eslint-plugin-query": "^5.91.2",
46
- "@tanstack/react-query-devtools": "^5.90.2",
45
+ "@tanstack/react-query-devtools": "5.75.4",
47
46
  "@types/lodash": "^4.17.20",
48
47
  "@types/lodash-es": "^4.17.12",
49
48
  "@types/node": "^24.10.0",
@@ -84,7 +83,7 @@
84
83
  "@sentry/react": "^10.53.1",
85
84
  "@stripe/react-stripe-js": "^3.8.1",
86
85
  "@stripe/stripe-js": "^7.7.0",
87
- "@tanstack/react-query": "^5.59.0",
86
+ "@tanstack/react-query": "5.75.4",
88
87
  "antd": "^5.28.0",
89
88
  "graphql": "^16.11.0",
90
89
  "graphql-request": "^6.1.0",