@bunnyapp/components 1.0.7 → 1.0.8

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.
Files changed (170) hide show
  1. package/dist/cjs/index.js +730 -1052
  2. package/dist/cjs/playground/main.d.ts +1 -1
  3. package/dist/cjs/src/ajax.d.ts +1 -0
  4. package/dist/cjs/src/components/BunnyProvider.d.ts +9 -5
  5. package/dist/cjs/src/components/Checkout/Checkout.d.ts +4 -2
  6. package/dist/cjs/src/components/Checkout/InvoiceCheckout.d.ts +2 -1
  7. package/dist/cjs/src/components/Checkout/QuoteCheckout.d.ts +2 -1
  8. package/dist/cjs/src/components/FeatureUsageGraph.d.ts +1 -1
  9. package/dist/cjs/src/components/Invoice/Invoice.d.ts +2 -2
  10. package/dist/cjs/src/components/Invoice/InvoiceQuoteView.d.ts +1 -2
  11. package/dist/cjs/src/components/LegacyInvoicePDF.d.ts +2 -2
  12. package/dist/cjs/src/components/PaymentForm/DemoPay/demoPayUtils.d.ts +1 -1
  13. package/dist/cjs/src/components/PaymentForm/Finix/FinixCardForm.d.ts +1 -1
  14. package/dist/cjs/src/components/PaymentForm/FinixAch.d.ts +1 -1
  15. package/dist/cjs/src/components/PaymentForm/PaymentForm.d.ts +1 -1
  16. package/dist/cjs/src/components/PaymentForm/PaymentFormTypes.d.ts +1 -0
  17. package/dist/cjs/src/components/PaymentForm/PaymentMethod/PaymentMethod.d.ts +2 -2
  18. package/dist/cjs/src/components/PaymentForm/PaymentMethod/PaymentMethodContext.d.ts +0 -1
  19. package/dist/cjs/src/components/PaymentForm/PaymentMethodForm.d.ts +1 -1
  20. package/dist/cjs/src/components/PaymentForm/Stripe/StripeForm.d.ts +1 -1
  21. package/dist/cjs/src/components/PaymentForm/Stripe/stripeUtils.d.ts +6 -6
  22. package/dist/cjs/src/components/PaymentForm/paymentUtils.d.ts +2 -2
  23. package/dist/cjs/src/components/Quote/Quote.d.ts +2 -2
  24. package/dist/cjs/src/components/Quotes/Quotes.d.ts +2 -1
  25. package/dist/cjs/src/components/Signup/PaymentForms.d.ts +2 -2
  26. package/dist/cjs/src/components/Signup/PaymentSuccess.d.ts +4 -3
  27. package/dist/cjs/src/components/Signup/Signup.d.ts +3 -1
  28. package/dist/cjs/src/components/Subscriptions/Subscriptions.d.ts +4 -2
  29. package/dist/cjs/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +1 -1
  30. package/dist/cjs/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardColumnHeaders.d.ts +1 -1
  31. package/dist/cjs/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +1 -2
  32. package/dist/cjs/src/components/Transactions/Transactions.d.ts +3 -1
  33. package/dist/cjs/src/components/Transactions/TransactionsListContext.d.ts +1 -0
  34. package/dist/cjs/src/components/Transactions/transactionsList/TransactionDownload.d.ts +2 -2
  35. package/dist/cjs/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +1 -11
  36. package/dist/cjs/src/contexts/NavigationContext.d.ts +1 -1
  37. package/dist/cjs/src/graphql/mutations/accountSignup.d.ts +2 -2
  38. package/dist/cjs/src/graphql/mutations/accountUpdate.d.ts +2 -1
  39. package/dist/cjs/src/graphql/mutations/checkout.d.ts +2 -2
  40. package/dist/cjs/src/graphql/mutations/portalSessionCreate.d.ts +2 -2
  41. package/dist/cjs/src/graphql/mutations/quoteAccountSignup.d.ts +2 -2
  42. package/dist/cjs/src/graphql/mutations/quoteAddCoupon.d.ts +2 -1
  43. package/dist/cjs/src/graphql/mutations/quoteCompose.d.ts +2 -2
  44. package/dist/cjs/src/graphql/mutations/quoteCreate.d.ts +2 -2
  45. package/dist/cjs/src/graphql/mutations/quoteRecalculateTaxes.d.ts +2 -1
  46. package/dist/cjs/src/graphql/mutations/quoteSubscriptionReinstate.d.ts +2 -2
  47. package/dist/cjs/src/graphql/queries/getAccount.d.ts +2 -2
  48. package/dist/cjs/src/graphql/queries/getBranding.d.ts +2 -2
  49. package/dist/cjs/src/graphql/queries/getCurrentUserData.d.ts +2 -2
  50. package/dist/cjs/src/graphql/queries/getFeatureUsage.d.ts +2 -1
  51. package/dist/cjs/src/graphql/queries/getFormattedQuote.d.ts +2 -2
  52. package/dist/cjs/src/graphql/queries/getInvoice.d.ts +2 -2
  53. package/dist/cjs/src/graphql/queries/getPlanChangeOptions.d.ts +2 -2
  54. package/dist/cjs/src/graphql/queries/getPriceList.d.ts +2 -2
  55. package/dist/cjs/src/graphql/queries/getQuote.d.ts +2 -2
  56. package/dist/cjs/src/graphql/queries/getQuotes.d.ts +2 -2
  57. package/dist/cjs/src/graphql/queries/getSubscription.d.ts +2 -2
  58. package/dist/cjs/src/graphql/queries/getSubscriptions.d.ts +2 -2
  59. package/dist/cjs/src/graphql/queries/getTaxationRequiredAccountFields.d.ts +6 -0
  60. package/dist/cjs/src/graphql/queries/getTransactions.d.ts +1 -1
  61. package/dist/cjs/src/hooks/quotes/useSendAcceptQuote.d.ts +7 -1
  62. package/dist/cjs/src/hooks/useHasTaxPlugin.d.ts +3 -2
  63. package/dist/cjs/src/hooks/usePaymentPlugins.d.ts +11 -0
  64. package/dist/cjs/src/hooks/usePlugins.d.ts +6 -0
  65. package/dist/cjs/src/hooks/useSigningPlugins.d.ts +5 -1
  66. package/dist/cjs/src/index.d.ts +1 -0
  67. package/dist/cjs/src/utils/GraphQLClient.d.ts +2 -0
  68. package/dist/cjs/src/utils/quoteInvoiceUtils.d.ts +6 -0
  69. package/dist/esm/index.js +722 -1043
  70. package/dist/esm/playground/main.d.ts +1 -1
  71. package/dist/esm/src/ajax.d.ts +1 -0
  72. package/dist/esm/src/components/BunnyProvider.d.ts +9 -5
  73. package/dist/esm/src/components/Checkout/Checkout.d.ts +4 -2
  74. package/dist/esm/src/components/Checkout/InvoiceCheckout.d.ts +2 -1
  75. package/dist/esm/src/components/Checkout/QuoteCheckout.d.ts +2 -1
  76. package/dist/esm/src/components/FeatureUsageGraph.d.ts +1 -1
  77. package/dist/esm/src/components/Invoice/Invoice.d.ts +2 -2
  78. package/dist/esm/src/components/Invoice/InvoiceQuoteView.d.ts +1 -2
  79. package/dist/esm/src/components/LegacyInvoicePDF.d.ts +2 -2
  80. package/dist/esm/src/components/PaymentForm/DemoPay/demoPayUtils.d.ts +1 -1
  81. package/dist/esm/src/components/PaymentForm/Finix/FinixCardForm.d.ts +1 -1
  82. package/dist/esm/src/components/PaymentForm/FinixAch.d.ts +1 -1
  83. package/dist/esm/src/components/PaymentForm/PaymentForm.d.ts +1 -1
  84. package/dist/esm/src/components/PaymentForm/PaymentFormTypes.d.ts +1 -0
  85. package/dist/esm/src/components/PaymentForm/PaymentMethod/PaymentMethod.d.ts +2 -2
  86. package/dist/esm/src/components/PaymentForm/PaymentMethod/PaymentMethodContext.d.ts +0 -1
  87. package/dist/esm/src/components/PaymentForm/PaymentMethodForm.d.ts +1 -1
  88. package/dist/esm/src/components/PaymentForm/Stripe/StripeForm.d.ts +1 -1
  89. package/dist/esm/src/components/PaymentForm/Stripe/stripeUtils.d.ts +6 -6
  90. package/dist/esm/src/components/PaymentForm/paymentUtils.d.ts +2 -2
  91. package/dist/esm/src/components/Quote/Quote.d.ts +2 -2
  92. package/dist/esm/src/components/Quotes/Quotes.d.ts +2 -1
  93. package/dist/esm/src/components/Signup/PaymentForms.d.ts +2 -2
  94. package/dist/esm/src/components/Signup/PaymentSuccess.d.ts +4 -3
  95. package/dist/esm/src/components/Signup/Signup.d.ts +3 -1
  96. package/dist/esm/src/components/Subscriptions/Subscriptions.d.ts +4 -2
  97. package/dist/esm/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +1 -1
  98. package/dist/esm/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardColumnHeaders.d.ts +1 -1
  99. package/dist/esm/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +1 -2
  100. package/dist/esm/src/components/Transactions/Transactions.d.ts +3 -1
  101. package/dist/esm/src/components/Transactions/TransactionsListContext.d.ts +1 -0
  102. package/dist/esm/src/components/Transactions/transactionsList/TransactionDownload.d.ts +2 -2
  103. package/dist/esm/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +1 -11
  104. package/dist/esm/src/contexts/NavigationContext.d.ts +1 -1
  105. package/dist/esm/src/graphql/mutations/accountSignup.d.ts +2 -2
  106. package/dist/esm/src/graphql/mutations/accountUpdate.d.ts +2 -1
  107. package/dist/esm/src/graphql/mutations/checkout.d.ts +2 -2
  108. package/dist/esm/src/graphql/mutations/portalSessionCreate.d.ts +2 -2
  109. package/dist/esm/src/graphql/mutations/quoteAccountSignup.d.ts +2 -2
  110. package/dist/esm/src/graphql/mutations/quoteAddCoupon.d.ts +2 -1
  111. package/dist/esm/src/graphql/mutations/quoteCompose.d.ts +2 -2
  112. package/dist/esm/src/graphql/mutations/quoteCreate.d.ts +2 -2
  113. package/dist/esm/src/graphql/mutations/quoteRecalculateTaxes.d.ts +2 -1
  114. package/dist/esm/src/graphql/mutations/quoteSubscriptionReinstate.d.ts +2 -2
  115. package/dist/esm/src/graphql/queries/getAccount.d.ts +2 -2
  116. package/dist/esm/src/graphql/queries/getBranding.d.ts +2 -2
  117. package/dist/esm/src/graphql/queries/getCurrentUserData.d.ts +2 -2
  118. package/dist/esm/src/graphql/queries/getFeatureUsage.d.ts +2 -1
  119. package/dist/esm/src/graphql/queries/getFormattedQuote.d.ts +2 -2
  120. package/dist/esm/src/graphql/queries/getInvoice.d.ts +2 -2
  121. package/dist/esm/src/graphql/queries/getPlanChangeOptions.d.ts +2 -2
  122. package/dist/esm/src/graphql/queries/getPriceList.d.ts +2 -2
  123. package/dist/esm/src/graphql/queries/getQuote.d.ts +2 -2
  124. package/dist/esm/src/graphql/queries/getQuotes.d.ts +2 -2
  125. package/dist/esm/src/graphql/queries/getSubscription.d.ts +2 -2
  126. package/dist/esm/src/graphql/queries/getSubscriptions.d.ts +2 -2
  127. package/dist/esm/src/graphql/queries/getTaxationRequiredAccountFields.d.ts +6 -0
  128. package/dist/esm/src/graphql/queries/getTransactions.d.ts +1 -1
  129. package/dist/esm/src/hooks/quotes/useSendAcceptQuote.d.ts +7 -1
  130. package/dist/esm/src/hooks/useHasTaxPlugin.d.ts +3 -2
  131. package/dist/esm/src/hooks/usePaymentPlugins.d.ts +11 -0
  132. package/dist/esm/src/hooks/usePlugins.d.ts +6 -0
  133. package/dist/esm/src/hooks/useSigningPlugins.d.ts +5 -1
  134. package/dist/esm/src/index.d.ts +1 -0
  135. package/dist/esm/src/utils/GraphQLClient.d.ts +2 -0
  136. package/dist/esm/src/utils/quoteInvoiceUtils.d.ts +6 -0
  137. package/dist/index.d.ts +28 -14
  138. package/package.json +10 -7
  139. package/dist/cjs/src/atoms/pageContentRefAtom.d.ts +0 -1
  140. package/dist/cjs/src/atoms/planPickerQuoteDataAtom.d.ts +0 -2
  141. package/dist/cjs/src/atoms/updatingChargeQuantityIdAtom.d.ts +0 -2
  142. package/dist/cjs/src/components/Footer.d.ts +0 -4
  143. package/dist/cjs/src/components/PageContent.d.ts +0 -7
  144. package/dist/cjs/src/features/quantityChangeDrawer/QuantityChangeGridRow.d.ts +0 -11
  145. package/dist/cjs/src/features/quantityChangeDrawer/QuantityChangeGridTitle.d.ts +0 -6
  146. package/dist/cjs/src/features/quantityChangeDrawer/QuantityInput.d.ts +0 -21
  147. package/dist/cjs/src/features/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +0 -9
  148. package/dist/cjs/src/features/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +0 -14
  149. package/dist/cjs/src/graphql/QuoteRequests.d.ts +0 -6
  150. package/dist/cjs/src/graphql/SubscriptionRequests.d.ts +0 -2
  151. package/dist/cjs/src/graphql/queries/getFormattedInvoice.d.ts +0 -7
  152. package/dist/cjs/src/hooks/useCurrentUserData.d.ts +0 -2
  153. package/dist/cjs/src/hooks/useIsMobile.d.ts +0 -10
  154. package/dist/cjs/src/utils.d.ts +0 -9
  155. package/dist/esm/src/atoms/pageContentRefAtom.d.ts +0 -1
  156. package/dist/esm/src/atoms/planPickerQuoteDataAtom.d.ts +0 -2
  157. package/dist/esm/src/atoms/updatingChargeQuantityIdAtom.d.ts +0 -2
  158. package/dist/esm/src/components/Footer.d.ts +0 -4
  159. package/dist/esm/src/components/PageContent.d.ts +0 -7
  160. package/dist/esm/src/features/quantityChangeDrawer/QuantityChangeGridRow.d.ts +0 -11
  161. package/dist/esm/src/features/quantityChangeDrawer/QuantityChangeGridTitle.d.ts +0 -6
  162. package/dist/esm/src/features/quantityChangeDrawer/QuantityInput.d.ts +0 -21
  163. package/dist/esm/src/features/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +0 -9
  164. package/dist/esm/src/features/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +0 -14
  165. package/dist/esm/src/graphql/QuoteRequests.d.ts +0 -6
  166. package/dist/esm/src/graphql/SubscriptionRequests.d.ts +0 -2
  167. package/dist/esm/src/graphql/queries/getFormattedInvoice.d.ts +0 -7
  168. package/dist/esm/src/hooks/useCurrentUserData.d.ts +0 -2
  169. package/dist/esm/src/hooks/useIsMobile.d.ts +0 -10
  170. package/dist/esm/src/utils.d.ts +0 -9
@@ -1 +1 @@
1
- import "../src/styles/index.less";
1
+ import "../src/styles/output.css";
@@ -0,0 +1 @@
1
+ export declare const useDownloadFile: (id?: string, onError?: ((error: any) => void) | undefined) => (url: string, token: string) => Promise<any>;
@@ -1,21 +1,25 @@
1
1
  /// <reference types="react" />
2
+ import { QueryClient } from "@tanstack/react-query";
2
3
  import { GraphQLClient } from "graphql-request";
3
4
  export type BunnyContextValues = {
4
- subdomain: string;
5
+ apiHost: string;
5
6
  graphQLClient: GraphQLClient;
6
7
  window: Window;
7
8
  token: string;
8
9
  accountId?: string;
9
10
  displayPayButtonNameAnyways?: boolean;
10
11
  darkMode?: boolean;
12
+ onErrorNavigate?: (url: string) => void;
11
13
  };
12
14
  export declare const BunnyContext: import("react").Context<BunnyContextValues>;
13
- declare function BunnyProvider({ children, token, subdomain, window, accountId, darkMode, }: {
15
+ declare function BunnyProvider({ accountId, children, darkMode, onErrorNavigate, queryClient, apiHost, token, window, }: {
16
+ accountId?: string;
14
17
  children: React.ReactNode;
18
+ darkMode?: boolean;
19
+ onErrorNavigate?: (url: string) => void;
20
+ queryClient?: QueryClient;
21
+ apiHost: string;
15
22
  token: string;
16
- subdomain: string;
17
23
  window: Window;
18
- accountId?: string;
19
- darkMode?: boolean;
20
24
  }): import("react/jsx-runtime").JSX.Element;
21
25
  export default BunnyProvider;
@@ -1,9 +1,11 @@
1
- import { CheckoutProps } from "../PaymentForm/PaymentFormTypes";
2
1
  import { PaymentMethod } from "@bunnyapp/common";
2
+ import { CheckoutProps } from "../PaymentForm/PaymentFormTypes";
3
3
  interface CheckoutComponentProps extends CheckoutProps {
4
+ entityId: string;
4
5
  isMobile: boolean;
5
6
  token: string;
6
7
  storedPaymentMethod?: PaymentMethod;
8
+ quantity?: number;
7
9
  }
8
- declare const Checkout: ({ onCancel, onSuccess, onFail, invoice, open, quote, selectedPriceList, isMobile, token, storedPaymentMethod, }: CheckoutComponentProps) => import("react/jsx-runtime").JSX.Element | null;
10
+ declare const Checkout: ({ entityId, onCancel, onSuccess, onFail, invoice, open, quote, selectedPriceList, token, quantity, }: CheckoutComponentProps) => import("react/jsx-runtime").JSX.Element | null;
9
11
  export default Checkout;
@@ -11,6 +11,7 @@ interface InvoiceCheckoutProps extends InvoiceQuoteParentProps {
11
11
  notIsSaving: string;
12
12
  isSaving: string;
13
13
  };
14
+ entityId: string;
14
15
  }
15
16
  export declare const InvoiceCheckoutContext: import("react").Context<{
16
17
  preCheckout?: (() => void) | undefined;
@@ -23,5 +24,5 @@ export declare const InvoiceCheckoutContext: import("react").Context<{
23
24
  } | undefined;
24
25
  invoice?: FormattedInvoice | undefined;
25
26
  }>;
26
- declare const InvoiceCheckout: ({ isSaving, onSuccess, onFail, invoice, setIsSaving, preCheckout, setIsPreCheckoutLoading, isPreCheckoutLoading, payImmediatelyGivenInvoice, checkoutButtonName, }: InvoiceCheckoutProps) => import("react/jsx-runtime").JSX.Element;
27
+ declare const InvoiceCheckout: ({ isSaving, onSuccess, onFail, invoice, setIsSaving, preCheckout, setIsPreCheckoutLoading, isPreCheckoutLoading, payImmediatelyGivenInvoice, checkoutButtonName, entityId, }: InvoiceCheckoutProps) => import("react/jsx-runtime").JSX.Element;
27
28
  export default InvoiceCheckout;
@@ -6,6 +6,7 @@ interface QuoteCheckoutProps extends InvoiceQuoteParentProps {
6
6
  taxationRequiredAccountFields?: TaxationRequiredAccountFields | null;
7
7
  token: string;
8
8
  storedPaymentMethod?: PaymentMethod;
9
+ entityId: string;
9
10
  }
10
- declare const QuoteCheckout: ({ account, isSaving, onSuccess, onFail, quote, setIsSaving, taxationRequiredAccountFields, storedPaymentMethod, }: QuoteCheckoutProps) => import("react/jsx-runtime").JSX.Element;
11
+ declare const QuoteCheckout: ({ account, isSaving, onSuccess, onFail, quote, setIsSaving, taxationRequiredAccountFields, entityId, }: QuoteCheckoutProps) => import("react/jsx-runtime").JSX.Element;
11
12
  export default QuoteCheckout;
@@ -2,5 +2,5 @@ import { FeatureUsage, SubscriptionCharge } from "@bunnyapp/common";
2
2
  declare const FeatureUsageGraph: ({ charge, featureUsage, }: {
3
3
  charge: SubscriptionCharge;
4
4
  featureUsage: FeatureUsage;
5
- }) => import("react/jsx-runtime").JSX.Element | "no usage";
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
6
  export default FeatureUsageGraph;
@@ -1,10 +1,10 @@
1
1
  import React from "react";
2
- import "../../styles/index.less";
3
- export default function Invoice({ id, invoiceQuoteViewComponent, backButtonName, onBackButtonClick, onInvoiceDownloadError, onPaymentSuccess, }: {
2
+ export default function Invoice({ id, invoiceQuoteViewComponent, backButtonName, onBackButtonClick, onInvoiceDownloadError, onPaymentSuccess, entityId, }: {
4
3
  id?: string;
5
4
  invoiceQuoteViewComponent?: React.ReactNode;
6
5
  backButtonName?: string;
7
6
  onBackButtonClick?: () => void;
8
7
  onInvoiceDownloadError?: () => void;
9
8
  onPaymentSuccess?: (savePaymentMethod?: boolean) => void;
9
+ entityId: string;
10
10
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,7 @@
1
1
  import { ReactNode } from "react";
2
2
  import { FormattedInvoice } from "@bunnyapp/common";
3
- declare const InvoiceQuoteView: ({ children, formattedInvoice, html, isMobile, backButtonName, onBackButtonClick, onDownloadError, }: {
3
+ declare const InvoiceQuoteView: ({ children, formattedInvoice, html, backButtonName, onBackButtonClick, onDownloadError, }: {
4
4
  html: string;
5
- isMobile: boolean;
6
5
  children?: ReactNode;
7
6
  formattedInvoice?: FormattedInvoice | undefined;
8
7
  backButtonName?: string | undefined;
@@ -1,4 +1,4 @@
1
- export default function InvoicePDF({ invoiceUuid, subdomain, }: {
1
+ export default function InvoicePDF({ invoiceUuid, apiHost, }: {
2
2
  invoiceUuid?: string;
3
- subdomain?: string;
3
+ apiHost: string;
4
4
  }): import("react/jsx-runtime").JSX.Element;
@@ -20,4 +20,4 @@ export declare const storePayment: (options: {
20
20
  testCreditCardExpirationDate: string;
21
21
  testCreditCardNumber: string;
22
22
  token: string;
23
- }, plugin: PluginData, accountId?: string, subdomain?: string) => Promise<any>;
23
+ }, plugin: PluginData, apiHost: string, accountId?: string) => Promise<any>;
@@ -1,4 +1,4 @@
1
1
  import { PluginFormProps } from "../PaymentFormTypes";
2
2
  export declare const formatFinixError: (response: any) => any;
3
- declare const FinixForm: ({ invoice, isSaving, onFail, onPaymentSuccess, plugin, quote, setIsSaving, }: PluginFormProps) => import("react/jsx-runtime").JSX.Element | null;
3
+ declare const FinixForm: ({ invoice, isSaving, onFail, onPaymentSuccess, plugin, quote, setIsSaving, entityId, }: PluginFormProps) => import("react/jsx-runtime").JSX.Element | null;
4
4
  export default FinixForm;
@@ -1,3 +1,3 @@
1
1
  import { PluginFormProps } from "./PaymentFormTypes";
2
- declare const FinixAchPayment: ({ invoice, isSaving, onFail, onPaymentSuccess, plugin, quote, setIsSaving, }: PluginFormProps) => import("react/jsx-runtime").JSX.Element | null;
2
+ declare const FinixAchPayment: ({ invoice, isSaving, onFail, onPaymentSuccess, plugin, quote, setIsSaving, entityId, }: PluginFormProps) => import("react/jsx-runtime").JSX.Element | null;
3
3
  export default FinixAchPayment;
@@ -4,4 +4,4 @@ export declare const PaymentFormWrapper: ({ children, setMaxHeight, }: {
4
4
  children: ReactNode | ReactNode[];
5
5
  setMaxHeight: boolean;
6
6
  }) => import("react/jsx-runtime").JSX.Element;
7
- export declare const PaymentForm: ({ invoice, isSaving, onFail, onPaymentSuccess, quote, setIsSaving, }: GeneralPaymentFormProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const PaymentForm: ({ entityId, invoice, isSaving, onFail, onPaymentSuccess, quote, setIsSaving, }: GeneralPaymentFormProps) => import("react/jsx-runtime").JSX.Element;
@@ -34,6 +34,7 @@ export type OnPaymentSuccessType = {
34
34
  savedPaymentMethodResponse?: SavedPaymentMethodResponse;
35
35
  };
36
36
  export type GeneralPaymentFormProps = {
37
+ entityId: string;
37
38
  payable?: Payable;
38
39
  invoice?: FormattedInvoice;
39
40
  quote?: Quote;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import "../../../styles/index.less";
3
- export declare function PaymentMethod({ footer, processPublicUrl, }: {
3
+ export declare function PaymentMethod({ entityId, footer, }: {
4
+ entityId: string;
4
5
  footer?: React.ReactNode;
5
- processPublicUrl: string;
6
6
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  export type PaymentMethodContextValues = {
3
3
  footer?: React.ReactNode;
4
- processPublicUrl: string;
5
4
  };
6
5
  export declare const PaymentMethodContext: import("react").Context<PaymentMethodContextValues>;
@@ -1,3 +1,3 @@
1
1
  import { PaymentMethodFormProps } from "./PaymentFormTypes";
2
- declare const PaymentMethodForm: ({ invoice, isPlugin, isSaving, onFail, onPaymentSuccess, paymentMethod, quote, setIsSaving, }: PaymentMethodFormProps) => import("react/jsx-runtime").JSX.Element | null;
2
+ declare const PaymentMethodForm: ({ entityId, invoice, isPlugin, isSaving, onFail, onPaymentSuccess, paymentMethod, quote, setIsSaving, }: PaymentMethodFormProps) => import("react/jsx-runtime").JSX.Element | null;
3
3
  export default PaymentMethodForm;
@@ -1,3 +1,3 @@
1
1
  import { PluginFormProps } from "../PaymentFormTypes";
2
- declare const StripeForm: ({ payable, plugin, isSaving, setIsSaving, onFail, onPaymentSuccess, }: PluginFormProps) => import("react/jsx-runtime").JSX.Element | null;
2
+ declare const StripeForm: ({ entityId, payable, plugin, isSaving, setIsSaving, onFail, onPaymentSuccess, }: PluginFormProps) => import("react/jsx-runtime").JSX.Element | null;
3
3
  export default StripeForm;
@@ -1,20 +1,20 @@
1
1
  import { Stripe } from "@stripe/stripe-js";
2
2
  import { PluginData, Payable } from "@bunnyapp/common";
3
- export declare const createPaymentMethod: ({ paymentMethodId, plugin, token, subdomain, accountId, }: {
3
+ export declare const createPaymentMethod: ({ paymentMethodId, plugin, token, apiHost, accountId, }: {
4
4
  paymentMethodId: string;
5
5
  plugin: PluginData;
6
6
  token: string;
7
- subdomain?: string | undefined;
7
+ apiHost: string;
8
8
  accountId?: string | undefined;
9
9
  }) => Promise<any>;
10
- export declare const createSetupIntent: (plugin: PluginData, token: string, accountId?: string, subdomain?: string) => Promise<any>;
11
- export declare const createPaymentIntent: ({ payable, savePaymentMethod, memo, plugin, token, subdomain, accountId, }: {
10
+ export declare const createSetupIntent: (plugin: PluginData, token: string, apiHost: string, accountId?: string) => Promise<any>;
11
+ export declare const createPaymentIntent: ({ payable, savePaymentMethod, memo, plugin, token, apiHost, accountId, }: {
12
12
  payable: Payable;
13
13
  savePaymentMethod: boolean;
14
14
  memo?: string | undefined;
15
15
  plugin: PluginData;
16
16
  token: string;
17
- subdomain: string;
17
+ apiHost: string;
18
18
  accountId?: string | undefined;
19
19
  }) => Promise<any>;
20
- export declare const useStripePlugin: (plugin: PluginData, token: string, subdomain?: string, accountId?: string) => Stripe | null;
20
+ export declare const useStripePlugin: (plugin: PluginData, token: string, apiHost: string, accountId?: string) => Stripe | null;
@@ -1,7 +1,7 @@
1
1
  import { PluginData } from "@bunnyapp/common";
2
- export declare const retrieveConfig: ({ plugin, token, subdomain, accountId, }: {
2
+ export declare const retrieveConfig: ({ plugin, token, apiHost, accountId, }: {
3
3
  plugin: PluginData;
4
4
  token: string;
5
- subdomain?: string | undefined;
5
+ apiHost: string;
6
6
  accountId?: string | undefined;
7
7
  }) => Promise<any>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import "../../styles/index.less";
3
2
  export declare const MarkupContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
- export default function Quote({ id }: {
3
+ export default function Quote({ entityId, id, }: {
4
+ entityId: string;
5
5
  id?: string;
6
6
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { FrontendTransaction as T } from "@bunnyapp/common";
3
- declare function Quotes({ filter, quoteComponent, showSearchBar, showTitle, columns, className, shadow, searchBarClassName, useModal, onQuoteClick, suppressQuoteDisplay, style, noQuotesMessage, }: {
3
+ declare function Quotes({ className, columns, entityId, filter, noQuotesMessage, onQuoteClick, quoteComponent, searchBarClassName, shadow, showSearchBar, showTitle, style, suppressQuoteDisplay, useModal, }: {
4
4
  /** A custom component to render instead of the default invoice component */
5
5
  quoteComponent?: React.ReactNode;
6
6
  /** Whether to show the search bar */
@@ -27,5 +27,6 @@ declare function Quotes({ filter, quoteComponent, showSearchBar, showTitle, colu
27
27
  filter?: string;
28
28
  /** Message to display when there are no quotes */
29
29
  noQuotesMessage?: string;
30
+ entityId: string;
30
31
  }): import("react/jsx-runtime").JSX.Element;
31
32
  export default Quotes;
@@ -1,7 +1,6 @@
1
- import "../../styles/index.less";
2
1
  import { Quote } from "@bunnyapp/common";
3
2
  import { OnPaymentSuccessType } from "../PaymentForm/PaymentFormTypes";
4
- export default function PaymentForms({ quote, paying, setIsPaying, handlePaymentSaveSuccess, handlePaymentFail, handleSubmit, proceedingToPayment, accountId, }: {
3
+ export default function PaymentForms({ quote, paying, setIsPaying, handlePaymentSaveSuccess, handlePaymentFail, handleSubmit, proceedingToPayment, accountId, entityId, }: {
5
4
  quote?: Quote;
6
5
  paying: boolean;
7
6
  setIsPaying: (paying: boolean) => void;
@@ -10,6 +9,7 @@ export default function PaymentForms({ quote, paying, setIsPaying, handlePayment
10
9
  handleSubmit: (formData: FormData) => void;
11
10
  proceedingToPayment: boolean;
12
11
  accountId?: string;
12
+ entityId: string;
13
13
  }): import("react/jsx-runtime").JSX.Element;
14
14
  export type FormData = {
15
15
  firstName: string;
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
- export default function PaymentSuccessDisplay({ className, amountPaid, style, returnUrl, }: {
3
- className: string;
2
+ export default function PaymentSuccessDisplay({ amountPaid, className, companyName, returnUrl, style, }: {
4
3
  amountPaid: number;
5
- style?: React.CSSProperties;
4
+ className: string;
5
+ companyName: string;
6
6
  returnUrl?: string;
7
+ style?: React.CSSProperties;
7
8
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,7 @@
1
1
  import "../../styles/index.less";
2
- export default function Signup({ priceListCode, returnUrl, }: {
2
+ export default function Signup({ companyName, entityId, priceListCode, returnUrl, }: {
3
+ companyName: string;
4
+ entityId: string;
3
5
  priceListCode: string;
4
6
  returnUrl?: string;
5
7
  }): import("react/jsx-runtime").JSX.Element;
@@ -13,9 +13,11 @@ export type EditingQuoteDataType = {
13
13
  id: string;
14
14
  isTrial: boolean;
15
15
  };
16
- declare const Subscriptions: ({ shadow, gap, showTitle, }: {
17
- shadow?: "none" | "lg" | "md" | "sm" | undefined;
16
+ declare const Subscriptions: ({ companyName, entityId, gap, shadow, showTitle, }: {
17
+ companyName: string;
18
+ entityId: string;
18
19
  gap?: number | undefined;
20
+ shadow?: "none" | "lg" | "md" | "sm" | undefined;
19
21
  showTitle?: boolean | undefined;
20
22
  }) => import("react/jsx-runtime").JSX.Element;
21
23
  export default Subscriptions;
@@ -6,5 +6,5 @@ declare const SubscriptionsList: ({ hideExpired, planChangeOptions, setEditingQu
6
6
  setEditingQuoteData: (value: any) => void;
7
7
  setPayModalVisible: (value: any) => void;
8
8
  subscriptions: Subscription[];
9
- }) => (import("react/jsx-runtime").JSX.Element | null)[];
9
+ }) => import("react/jsx-runtime").JSX.Element;
10
10
  export default SubscriptionsList;
@@ -8,5 +8,5 @@ declare const SubscriptionCardColumnHeaders: ({ columns, }: {
8
8
  title: string;
9
9
  width: string;
10
10
  })[];
11
- }) => import("react/jsx-runtime").JSX.Element[];
11
+ }) => import("react/jsx-runtime").JSX.Element;
12
12
  export default SubscriptionCardColumnHeaders;
@@ -1,7 +1,6 @@
1
1
  import { Plan, Product, Quote, Subscription, SubscriptionCharge } from "@bunnyapp/common";
2
- import { EditingSubscriptionType } from "../../../features/quantityChangeDrawer/QuantityInput";
3
2
  export declare const canShowQuantitiesInput: (charge: SubscriptionCharge, subscription: Subscription) => boolean | undefined;
4
- export declare const createQuoteParams: (quote: Quote, subscriptionQuantity: number, editedSubscription?: EditingSubscriptionType) => {
3
+ export declare const createQuoteParams: (quote: Quote, subscriptionQuantity: number, editedSubscription?: any) => {
5
4
  charges: {
6
5
  id: string;
7
6
  quantity: number;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { FrontendTransaction as T, TransactionKind } from "@bunnyapp/common";
3
- export default function Transactions({ transactionComponent, showSearchBar, showTitle, columns, className, shadow, searchBarClassName, useModal, onTransactionClick, suppressTransactionDisplay, kindsToShow, style, filter, noTransactionsMessage, }: {
3
+ export default function Transactions({ transactionComponent, showSearchBar, showTitle, columns, className, shadow, searchBarClassName, useModal, onTransactionClick, suppressTransactionDisplay, kindsToShow, style, filter, noTransactionsMessage, entityId, }: {
4
4
  /** A custom component to render instead of the default invoice component */
5
5
  transactionComponent?: React.ReactNode;
6
6
  /** Whether to show the search bar */
@@ -29,6 +29,8 @@ export default function Transactions({ transactionComponent, showSearchBar, show
29
29
  filter?: string;
30
30
  /** Message to display when there are no transactions */
31
31
  noTransactionsMessage?: string;
32
+ /** The entity id to pass to the invoice component */
33
+ entityId: string;
32
34
  }): import("react/jsx-runtime").JSX.Element;
33
35
  export declare function TransactionsDisplay({ transactions, onSearchValueChanged, search, title, }: {
34
36
  transactions: T.Transaction[];
@@ -17,5 +17,6 @@ export type TransactionsContextValues = {
17
17
  filter?: string;
18
18
  noTransactionsMessage?: string;
19
19
  downloadTransactionLink?: (id: string) => string;
20
+ entityId: string;
20
21
  };
21
22
  export declare const TransactionsListContext: import("react").Context<TransactionsContextValues>;
@@ -1,7 +1,7 @@
1
1
  import { FrontendTransaction as T } from "@bunnyapp/common";
2
- declare const TransactionDownload: ({ transaction, token, subdomain, }: {
2
+ declare const TransactionDownload: ({ transaction, token, apiHost, }: {
3
3
  transaction: T.Transaction;
4
4
  token: string;
5
- subdomain: string;
5
+ apiHost: string;
6
6
  }) => import("react/jsx-runtime").JSX.Element | null;
7
7
  export default TransactionDownload;
@@ -1,14 +1,4 @@
1
- import { FrontendTransaction as T, TransactionState } from "@bunnyapp/common";
2
- export type Generic = {
3
- amount: number;
4
- createdAt: string;
5
- currencyId: string;
6
- description: string;
7
- kind: string;
8
- state: TransactionState;
9
- transactionable?: any;
10
- id: string;
11
- };
1
+ import { FrontendTransaction as T } from "@bunnyapp/common";
12
2
  export type TransactionListColumnType = "date-and-title" | "state" | "amount" | "download" | "actions";
13
3
  declare const TransactionsListDesktop: ({ transactions, onTransactionClick, }: {
14
4
  transactions: T.Transaction[];
@@ -2,7 +2,7 @@
2
2
  export type NavigationContextValues = {
3
3
  searchParams: URLSearchParams;
4
4
  location: Location;
5
- subdomain?: string;
5
+ apiHost: string;
6
6
  navigate?: (url: string) => void;
7
7
  navigateBackAfterDownload?: () => void;
8
8
  };
@@ -1,6 +1,6 @@
1
- declare const accountSignup: ({ token, subdomain, entityId, accountId, quoteId, paymentToken, paymentMethodId, pluginId, priceListCode, }: {
1
+ declare const accountSignup: ({ token, apiHost, entityId, accountId, quoteId, paymentToken, paymentMethodId, pluginId, priceListCode, }: {
2
2
  token: string;
3
- subdomain?: string | undefined;
3
+ apiHost: string;
4
4
  entityId: string;
5
5
  accountId: string;
6
6
  quoteId?: string | undefined;
@@ -1,6 +1,7 @@
1
- declare const accountUpdate: ({ accountId, attributes, token, }: {
1
+ declare const accountUpdate: ({ accountId, attributes, token, apiHost, }: {
2
2
  accountId: string;
3
3
  attributes: Record<string, string>;
4
4
  token: string;
5
+ apiHost: string;
5
6
  }) => Promise<any>;
6
7
  export default accountUpdate;
@@ -5,7 +5,7 @@ export type CheckoutResponse = {
5
5
  paymentApplication: PaymentApplication;
6
6
  transaction: Transaction;
7
7
  };
8
- declare const checkout: ({ quoteId, invoiceId, paymentMethodId, paymentMethodData, token, subdomain, }: {
8
+ declare const checkout: ({ quoteId, invoiceId, paymentMethodId, paymentMethodData, token, apiHost, }: {
9
9
  quoteId?: string | undefined;
10
10
  invoiceId?: string | undefined;
11
11
  paymentMethodId?: string | undefined;
@@ -16,7 +16,7 @@ declare const checkout: ({ quoteId, invoiceId, paymentMethodId, paymentMethodDat
16
16
  metadata?: Record<string, any> | undefined;
17
17
  } | undefined;
18
18
  token: string;
19
- subdomain?: string | undefined;
19
+ apiHost: string;
20
20
  }) => Promise<{
21
21
  savePaymentMethod: boolean | undefined;
22
22
  }>;
@@ -1,8 +1,8 @@
1
- declare const portalSessionCreate: ({ tenantCode, expiry, returnUrl, token, subdomain, }: {
1
+ declare const portalSessionCreate: ({ tenantCode, expiry, returnUrl, token, apiHost, }: {
2
2
  tenantCode: string;
3
3
  expiry: number;
4
4
  returnUrl: string;
5
5
  token: string;
6
- subdomain?: string | undefined;
6
+ apiHost: string;
7
7
  }) => Promise<any>;
8
8
  export default portalSessionCreate;
@@ -3,9 +3,9 @@ type BillingContact = {
3
3
  lastName: string;
4
4
  email: string;
5
5
  };
6
- declare const quoteAccountSignup: ({ token, subdomain, entityId, priceListCode, accountName, billingContact, }: {
6
+ declare const quoteAccountSignup: ({ token, apiHost, entityId, priceListCode, accountName, billingContact, }: {
7
7
  token: string;
8
- subdomain?: string | undefined;
8
+ apiHost: string;
9
9
  entityId: string;
10
10
  priceListCode: string;
11
11
  accountName: string;
@@ -1,7 +1,8 @@
1
1
  import { Quote } from "@bunnyapp/common";
2
- declare const quoteAddCoupon: ({ quoteId, couponCode, token, }: {
2
+ declare const quoteAddCoupon: ({ quoteId, couponCode, token, apiHost, }: {
3
3
  quoteId?: string | undefined;
4
4
  couponCode?: string | undefined;
5
5
  token: string;
6
+ apiHost: string;
6
7
  }) => Promise<Quote>;
7
8
  export default quoteAddCoupon;
@@ -7,7 +7,7 @@ type Options = {
7
7
  quantity: number;
8
8
  accountId?: string;
9
9
  token: string;
10
- subdomain?: string;
10
+ apiHost: string;
11
11
  };
12
- declare const quoteCompose: ({ quoteId, priceListId, subscriptionId, quantity, accountId, token, subdomain, }: Options) => Promise<Quote>;
12
+ declare const quoteCompose: ({ quoteId, priceListId, subscriptionId, quantity, accountId, token, apiHost, }: Options) => Promise<Quote>;
13
13
  export default quoteCompose;
@@ -1,7 +1,7 @@
1
1
  import { Quote } from "@bunnyapp/common";
2
- declare const quoteCreate: ({ token, subdomain, quoteName, accountId, contactId, }: {
2
+ declare const quoteCreate: ({ token, apiHost, quoteName, accountId, contactId, }: {
3
3
  token: string;
4
- subdomain?: string | undefined;
4
+ apiHost: string;
5
5
  quoteName: string;
6
6
  accountId: string;
7
7
  contactId: string;
@@ -1,5 +1,6 @@
1
- declare const quoteRecalculateTaxes: ({ quoteId, token, }: {
1
+ declare const quoteRecalculateTaxes: ({ quoteId, token, apiHost, }: {
2
2
  quoteId: string;
3
3
  token: string;
4
+ apiHost: string;
4
5
  }) => Promise<any>;
5
6
  export default quoteRecalculateTaxes;
@@ -1,7 +1,7 @@
1
1
  import { Quote } from "@bunnyapp/common";
2
- declare const getGuoteSubscriptionReinstate: ({ ids, token, subdomain, }: {
2
+ declare const getGuoteSubscriptionReinstate: ({ ids, token, apiHost, }: {
3
3
  ids: string[];
4
4
  token: string;
5
- subdomain: string;
5
+ apiHost: string;
6
6
  }) => Promise<Quote>;
7
7
  export default getGuoteSubscriptionReinstate;
@@ -1,7 +1,7 @@
1
1
  import { Account } from "@bunnyapp/common";
2
- declare const getAccount: ({ id, token, subdomain, }: {
2
+ declare const getAccount: ({ id, token, apiHost, }: {
3
3
  id: string;
4
4
  token: string;
5
- subdomain?: string | undefined;
5
+ apiHost: string;
6
6
  }) => Promise<Account>;
7
7
  export default getAccount;
@@ -1,6 +1,6 @@
1
1
  import { EntityBranding } from "@bunnyapp/common";
2
- declare const getBranding: ({ token, subdomain, }: {
2
+ declare const getBranding: ({ token, apiHost, }: {
3
3
  token: string;
4
- subdomain?: string | undefined;
4
+ apiHost: string;
5
5
  }) => Promise<EntityBranding>;
6
6
  export default getBranding;
@@ -1,6 +1,6 @@
1
- declare const getCurrentUserData: ({ token, subdomain, }: {
1
+ declare const getCurrentUserData: ({ token, apiHost, }: {
2
2
  token: string;
3
- subdomain?: string | undefined;
3
+ apiHost: string;
4
4
  }) => Promise<{
5
5
  authObjectName: any;
6
6
  companyName: any;
@@ -1,9 +1,10 @@
1
1
  import { FeatureUsage } from "@bunnyapp/common";
2
- declare const getFeatureUsage: ({ subscriptionChargeId, startDate, endDate, dataInterval, token, }: {
2
+ declare const getFeatureUsage: ({ subscriptionChargeId, startDate, endDate, dataInterval, token, apiHost, }: {
3
3
  subscriptionChargeId: string;
4
4
  startDate?: string | undefined;
5
5
  endDate?: string | undefined;
6
6
  dataInterval?: number | undefined;
7
7
  token: string;
8
+ apiHost: string;
8
9
  }) => Promise<FeatureUsage>;
9
10
  export default getFeatureUsage;
@@ -1,7 +1,7 @@
1
1
  import { FormattedQuote } from "@bunnyapp/common";
2
- declare const getFormattedQuote: ({ id, token, subdomain, }: {
2
+ declare const getFormattedQuote: ({ id, token, apiHost, }: {
3
3
  id?: string | undefined;
4
- subdomain?: string | undefined;
4
+ apiHost: string;
5
5
  token: string;
6
6
  }) => Promise<FormattedQuote>;
7
7
  export default getFormattedQuote;
@@ -1,7 +1,7 @@
1
1
  import { Invoice } from "@bunnyapp/common";
2
- declare const getInvoice: ({ token, id, subdomain, }: {
2
+ declare const getInvoice: ({ token, id, apiHost, }: {
3
3
  token: string;
4
4
  id?: string | undefined;
5
- subdomain?: string | undefined;
5
+ apiHost: string;
6
6
  }) => Promise<Invoice>;
7
7
  export default getInvoice;
@@ -1,8 +1,8 @@
1
1
  import { Subscription } from "@bunnyapp/common";
2
- declare const getPlanChangeOptions: ({ isInPreviewMode, token, upgradingSubscription, subdomain, }: {
2
+ declare const getPlanChangeOptions: ({ isInPreviewMode, token, upgradingSubscription, apiHost, }: {
3
3
  isInPreviewMode?: boolean | undefined;
4
4
  token: string;
5
5
  upgradingSubscription?: Subscription | undefined;
6
- subdomain: string;
6
+ apiHost: string;
7
7
  }) => Promise<any>;
8
8
  export default getPlanChangeOptions;
@@ -1,7 +1,7 @@
1
1
  import { PriceList } from "@bunnyapp/common";
2
- declare const getPriceList: ({ token, code, subdomain, }: {
2
+ declare const getPriceList: ({ token, code, apiHost, }: {
3
3
  token: string;
4
4
  code: string;
5
- subdomain?: string | undefined;
5
+ apiHost: string;
6
6
  }) => Promise<PriceList>;
7
7
  export default getPriceList;