@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.
@@ -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, 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 | {
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;
@@ -0,0 +1,2 @@
1
+ import { FragmentOf, ResultOf, TadaDocumentNode } from 'gql.tada';
2
+ export declare function readNullableFragment<Doc extends TadaDocumentNode<any, any, any>>(fragment: Doc, data: FragmentOf<Doc> | null | undefined): ResultOf<Doc> | null | undefined;
package/dist/index.d.ts CHANGED
@@ -104,6 +104,8 @@ type Props = {
104
104
  };
105
105
  declare function CheckoutNoPayment(props?: Props): react.JSX.Element;
106
106
 
107
+ declare function NoPaymentPluginsAlert(): react.JSX.Element;
108
+
107
109
  type PayProps = {
108
110
  disabled?: boolean;
109
111
  onClickPrecondition?: () => boolean | Promise<boolean>;
@@ -208,6 +210,7 @@ declare const PaymentForm: typeof PaymentFormInternal & {
208
210
  Pay: typeof Pay;
209
211
  CheckoutNoPayment: typeof CheckoutNoPayment;
210
212
  PaymentMethodDetails: typeof PaymentMethodDetails;
213
+ NoPaymentPluginsAlert: typeof NoPaymentPluginsAlert;
211
214
  };
212
215
 
213
216
  type DefaultSignupValues = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bunnyapp/components",
3
- "version": "1.8.0-beta.41",
3
+ "version": "1.8.0-beta.43",
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,7 +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/react-query-devtools": "5.75.4",
45
+ "@tanstack/react-query-devtools": "^5.75.4",
46
46
  "@types/lodash": "^4.17.20",
47
47
  "@types/lodash-es": "^4.17.12",
48
48
  "@types/node": "^24.10.0",
@@ -83,7 +83,7 @@
83
83
  "@sentry/react": "^10.53.1",
84
84
  "@stripe/react-stripe-js": "^3.8.1",
85
85
  "@stripe/stripe-js": "^7.7.0",
86
- "@tanstack/react-query": "5.75.4",
86
+ "@tanstack/react-query": "^5.101.2",
87
87
  "antd": "^5.28.0",
88
88
  "graphql": "^16.11.0",
89
89
  "graphql-request": "^6.1.0",