@bunnyapp/components 1.0.45 → 1.0.47

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 (70) hide show
  1. package/dist/cjs/index.js +289 -222
  2. package/dist/cjs/src/components/BillingDetails/BillingDetails.d.ts +1 -2
  3. package/dist/cjs/src/components/BillingDetails/BillingDetailsForm.d.ts +1 -2
  4. package/dist/cjs/src/components/Checkout/Checkout.d.ts +1 -2
  5. package/dist/cjs/src/components/Checkout/QuoteCheckout.d.ts +1 -2
  6. package/dist/cjs/src/components/CustomizedAntdComponents/Tag.d.ts +36 -0
  7. package/dist/cjs/src/components/Invoice/Invoice.d.ts +1 -1
  8. package/dist/cjs/src/components/Invoice/Invoice.stories.d.ts +0 -1
  9. package/dist/cjs/src/components/Invoice/InvoiceQuoteContext.d.ts +0 -1
  10. package/dist/cjs/src/components/PaymentForm/PaymentForm.d.ts +1 -2
  11. package/dist/cjs/src/components/PaymentForm/PaymentMethod/PaymentMethod.d.ts +1 -2
  12. package/dist/cjs/src/components/PaymentForm/useRemovePaymentMethod.d.ts +1 -1
  13. package/dist/cjs/src/components/Quote/Quote.d.ts +1 -1
  14. package/dist/cjs/src/components/Quote/Quote.stories.d.ts +0 -10
  15. package/dist/cjs/src/components/Quotes/Quotes.d.ts +1 -2
  16. package/dist/cjs/src/components/Signup/PaymentForms.d.ts +1 -2
  17. package/dist/cjs/src/components/Signup/Signup.d.ts +1 -3
  18. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/CheckoutBarSummarySection.d.ts +1 -2
  19. package/dist/cjs/src/components/Subscriptions/Subscriptions.d.ts +1 -2
  20. package/dist/cjs/src/components/Subscriptions/Subscriptions.stories.d.ts +2 -0
  21. package/dist/cjs/src/components/Subscriptions/SubscriptionsContext.d.ts +0 -1
  22. package/dist/cjs/src/components/Transactions/Transactions.d.ts +1 -3
  23. package/dist/cjs/src/components/Transactions/Transactions.stories.d.ts +0 -1
  24. package/dist/cjs/src/components/Transactions/TransactionsListContext.d.ts +0 -1
  25. package/dist/cjs/src/graphql/mutations/accountSignup.d.ts +1 -2
  26. package/dist/cjs/src/graphql/mutations/quoteAccountSignup.d.ts +1 -2
  27. package/dist/cjs/src/graphql/mutations/quoteChargeCreate.d.ts +13 -0
  28. package/dist/cjs/src/graphql/queries/getSubscriptions.d.ts +1 -2
  29. package/dist/cjs/src/hooks/quotes/useSendAcceptQuote.d.ts +1 -2
  30. package/dist/cjs/src/hooks/useHasTaxPlugin.d.ts +1 -2
  31. package/dist/cjs/src/hooks/usePaymentMethod.d.ts +1 -2
  32. package/dist/cjs/src/hooks/usePaymentPlugins.d.ts +1 -2
  33. package/dist/cjs/src/hooks/usePlugins.d.ts +1 -2
  34. package/dist/cjs/src/hooks/useSigningPlugins.d.ts +1 -2
  35. package/dist/esm/index.js +290 -223
  36. package/dist/esm/src/components/BillingDetails/BillingDetails.d.ts +1 -2
  37. package/dist/esm/src/components/BillingDetails/BillingDetailsForm.d.ts +1 -2
  38. package/dist/esm/src/components/Checkout/Checkout.d.ts +1 -2
  39. package/dist/esm/src/components/Checkout/QuoteCheckout.d.ts +1 -2
  40. package/dist/esm/src/components/CustomizedAntdComponents/Tag.d.ts +36 -0
  41. package/dist/esm/src/components/Invoice/Invoice.d.ts +1 -1
  42. package/dist/esm/src/components/Invoice/Invoice.stories.d.ts +0 -1
  43. package/dist/esm/src/components/Invoice/InvoiceQuoteContext.d.ts +0 -1
  44. package/dist/esm/src/components/PaymentForm/PaymentForm.d.ts +1 -2
  45. package/dist/esm/src/components/PaymentForm/PaymentMethod/PaymentMethod.d.ts +1 -2
  46. package/dist/esm/src/components/PaymentForm/useRemovePaymentMethod.d.ts +1 -1
  47. package/dist/esm/src/components/Quote/Quote.d.ts +1 -1
  48. package/dist/esm/src/components/Quote/Quote.stories.d.ts +0 -10
  49. package/dist/esm/src/components/Quotes/Quotes.d.ts +1 -2
  50. package/dist/esm/src/components/Signup/PaymentForms.d.ts +1 -2
  51. package/dist/esm/src/components/Signup/Signup.d.ts +1 -3
  52. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/CheckoutBarSummarySection.d.ts +1 -2
  53. package/dist/esm/src/components/Subscriptions/Subscriptions.d.ts +1 -2
  54. package/dist/esm/src/components/Subscriptions/Subscriptions.stories.d.ts +2 -0
  55. package/dist/esm/src/components/Subscriptions/SubscriptionsContext.d.ts +0 -1
  56. package/dist/esm/src/components/Transactions/Transactions.d.ts +1 -3
  57. package/dist/esm/src/components/Transactions/Transactions.stories.d.ts +0 -1
  58. package/dist/esm/src/components/Transactions/TransactionsListContext.d.ts +0 -1
  59. package/dist/esm/src/graphql/mutations/accountSignup.d.ts +1 -2
  60. package/dist/esm/src/graphql/mutations/quoteAccountSignup.d.ts +1 -2
  61. package/dist/esm/src/graphql/mutations/quoteChargeCreate.d.ts +13 -0
  62. package/dist/esm/src/graphql/queries/getSubscriptions.d.ts +1 -2
  63. package/dist/esm/src/hooks/quotes/useSendAcceptQuote.d.ts +1 -2
  64. package/dist/esm/src/hooks/useHasTaxPlugin.d.ts +1 -2
  65. package/dist/esm/src/hooks/usePaymentMethod.d.ts +1 -2
  66. package/dist/esm/src/hooks/usePaymentPlugins.d.ts +1 -2
  67. package/dist/esm/src/hooks/usePlugins.d.ts +1 -2
  68. package/dist/esm/src/hooks/useSigningPlugins.d.ts +1 -2
  69. package/dist/index.d.ts +9 -19
  70. package/package.json +2 -2
@@ -1,7 +1,6 @@
1
1
  import "../../styles/index.less";
2
2
  import { ShadowType } from "../../types/shadowType";
3
- declare const BillingDetails: ({ entityId, isCardEnabled, shadow, className, hidePaymentMethodForm, hideBillingDetailsForm, countryListFilter, }: {
4
- entityId: string;
3
+ declare const BillingDetails: ({ isCardEnabled, shadow, className, hidePaymentMethodForm, hideBillingDetailsForm, countryListFilter, }: {
5
4
  isCardEnabled?: boolean | undefined;
6
5
  shadow?: ShadowType | undefined;
7
6
  className?: string | undefined;
@@ -1,6 +1,5 @@
1
1
  import "../../styles/index.less";
2
- export default function BillingDetailsSection({ entityId, hidePaymentMethodForm, countryListFilter, }: {
3
- entityId: string;
2
+ export default function BillingDetailsSection({ hidePaymentMethodForm, countryListFilter, }: {
4
3
  hidePaymentMethodForm: boolean;
5
4
  countryListFilter?: (country: {
6
5
  value: string;
@@ -1,11 +1,10 @@
1
1
  import { PaymentMethod } from "@bunnyapp/common";
2
2
  import { CheckoutProps } from "../PaymentForm/PaymentFormTypes";
3
3
  interface CheckoutComponentProps extends CheckoutProps {
4
- entityId: string;
5
4
  isMobile: boolean;
6
5
  token: string;
7
6
  storedPaymentMethod?: PaymentMethod;
8
7
  quantity?: number;
9
8
  }
10
- declare const Checkout: ({ entityId, onCancel, onSuccess, onFail, invoice, open, quote, selectedPriceList, token, quantity, }: CheckoutComponentProps) => import("react/jsx-runtime").JSX.Element | null;
9
+ declare const Checkout: ({ onCancel, onSuccess, onFail, invoice, open, quote, selectedPriceList, token, quantity, }: CheckoutComponentProps) => import("react/jsx-runtime").JSX.Element | null;
11
10
  export default Checkout;
@@ -6,7 +6,6 @@ interface QuoteCheckoutProps extends InvoiceQuoteParentProps {
6
6
  taxationRequiredAccountFields?: TaxationRequiredAccountFields | null;
7
7
  token: string;
8
8
  storedPaymentMethod?: PaymentMethod;
9
- entityId: string;
10
9
  }
11
- declare const QuoteCheckout: ({ account, onSuccess, onFail, quote, taxationRequiredAccountFields, entityId, }: QuoteCheckoutProps) => import("react/jsx-runtime").JSX.Element;
10
+ declare const QuoteCheckout: ({ account, onSuccess, onFail, quote, taxationRequiredAccountFields, }: QuoteCheckoutProps) => import("react/jsx-runtime").JSX.Element;
12
11
  export default QuoteCheckout;
@@ -0,0 +1,36 @@
1
+ declare const tagStyleMap: {
2
+ blue: {
3
+ color: string;
4
+ background: string;
5
+ };
6
+ green: {
7
+ color: string;
8
+ background: string;
9
+ };
10
+ red: {
11
+ color: string;
12
+ background: string;
13
+ };
14
+ orange: {
15
+ color: string;
16
+ background: string;
17
+ };
18
+ yellow: {
19
+ color: string;
20
+ background: string;
21
+ };
22
+ purple: {
23
+ color: string;
24
+ background: string;
25
+ };
26
+ black: {
27
+ color: string;
28
+ background: string;
29
+ };
30
+ };
31
+ declare const CustomizedTag: ({ children, color, className, }: {
32
+ children: React.ReactNode;
33
+ color?: "blue" | "purple" | "green" | "red" | "orange" | "yellow" | "black" | undefined;
34
+ className?: string | undefined;
35
+ }) => import("react/jsx-runtime").JSX.Element;
36
+ export default CustomizedTag;
@@ -1,3 +1,3 @@
1
1
  import "../../styles/index.less";
2
2
  import { InvoiceQuoteContextProps } from "./InvoiceQuoteContext";
3
- export default function Invoice({ id, invoiceQuoteViewComponent, backButtonName, onBackButtonClick, onInvoiceDownloadError, onPaymentSuccess, entityId, shadow, className, hideDownloadButton, onInvoiceLoaded, }: InvoiceQuoteContextProps): import("react/jsx-runtime").JSX.Element;
3
+ export default function Invoice({ id, invoiceQuoteViewComponent, backButtonName, onBackButtonClick, onInvoiceDownloadError, onPaymentSuccess, shadow, className, hideDownloadButton, onInvoiceLoaded, }: InvoiceQuoteContextProps): import("react/jsx-runtime").JSX.Element;
@@ -6,7 +6,6 @@ type Story = StoryObj<typeof meta>;
6
6
  export declare const basicArgs: {
7
7
  token: string;
8
8
  id: string;
9
- entityId: string;
10
9
  };
11
10
  export declare const Default: Story;
12
11
  export declare const NoShadow: Story;
@@ -8,7 +8,6 @@ export type InvoiceQuoteContextProps = {
8
8
  onBackButtonClick?: () => void;
9
9
  onInvoiceDownloadError?: () => void;
10
10
  onPaymentSuccess?: (savePaymentMethod?: boolean) => void;
11
- entityId: string;
12
11
  shadow?: ShadowType;
13
12
  className?: string;
14
13
  hideDownloadButton?: boolean;
@@ -1,8 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { FormattedInvoice, PluginData, Quote } from "@bunnyapp/common";
3
3
  import { GraphQLClient } from "graphql-request";
4
- export declare const PaymentForm: ({ entityId, invoice, onFail, onPaymentSuccess, quote, accountId, onSavePaymentMethod, overrideToken, graphQLClient, customCheckoutFunction, currencyId: currencyIdFromProps, customPaymentForms, useAllPaymentPlugins, }: {
5
- entityId: string;
4
+ export declare const PaymentForm: ({ invoice, onFail, onPaymentSuccess, quote, accountId, onSavePaymentMethod, overrideToken, graphQLClient, customCheckoutFunction, currencyId: currencyIdFromProps, customPaymentForms, useAllPaymentPlugins, }: {
6
5
  invoice?: FormattedInvoice | undefined;
7
6
  quote?: Quote | undefined;
8
7
  onFail: (error: any) => void;
@@ -1,7 +1,6 @@
1
1
  import "../../../styles/index.less";
2
2
  import { ShadowType } from "../../../types/shadowType";
3
- export declare const PaymentMethod: ({ entityId, className, shadow, cardEnabled, useModal, }: {
4
- entityId: string;
3
+ export declare const PaymentMethod: ({ className, shadow, cardEnabled, useModal, }: {
5
4
  className?: string | undefined;
6
5
  shadow?: ShadowType | undefined;
7
6
  cardEnabled?: boolean | undefined;
@@ -1,3 +1,3 @@
1
1
  import { PluginData } from "@bunnyapp/common";
2
- declare function useRemovePaymentMethod(paymentPlugins: PluginData[], apiHost: string, entityId: string, token: string, accountId?: string): (data: any) => Promise<void>;
2
+ declare function useRemovePaymentMethod(paymentPlugins: PluginData[], apiHost: string, token: string, accountId?: string): (data: any) => Promise<void>;
3
3
  export default useRemovePaymentMethod;
@@ -1,3 +1,3 @@
1
1
  import { InvoiceQuoteContextProps } from "../Invoice/InvoiceQuoteContext";
2
2
  export declare const MarkupContainer: any;
3
- export default function Quote({ id, invoiceQuoteViewComponent, onInvoiceDownloadError, onPaymentSuccess, entityId, shadow, className, hideDownloadButton, onQuoteLoaded, }: InvoiceQuoteContextProps): import("react/jsx-runtime").JSX.Element;
3
+ export default function Quote({ id, invoiceQuoteViewComponent, onInvoiceDownloadError, onPaymentSuccess, shadow, className, hideDownloadButton, onQuoteLoaded, }: InvoiceQuoteContextProps): import("react/jsx-runtime").JSX.Element;
@@ -11,7 +11,6 @@ export declare const Default: import("@storybook/core/csf").StoryAnnotations<imp
11
11
  onBackButtonClick?: (() => void) | undefined;
12
12
  onInvoiceDownloadError?: (() => void) | undefined;
13
13
  onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
14
- entityId: string;
15
14
  shadow?: import("../../types/shadowType").ShadowType | undefined;
16
15
  className?: string | undefined;
17
16
  hideDownloadButton?: boolean | undefined;
@@ -24,7 +23,6 @@ export declare const Default: import("@storybook/core/csf").StoryAnnotations<imp
24
23
  onBackButtonClick?: (() => void) | undefined;
25
24
  shadow?: import("../../types/shadowType").ShadowType | undefined;
26
25
  hideDownloadButton?: boolean | undefined;
27
- entityId?: string | undefined;
28
26
  onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
29
27
  invoiceQuoteViewComponent?: import("react").ReactNode;
30
28
  onInvoiceDownloadError?: (() => void) | undefined;
@@ -38,7 +36,6 @@ export declare const NoShadow: import("@storybook/core/csf").StoryAnnotations<im
38
36
  onBackButtonClick?: (() => void) | undefined;
39
37
  onInvoiceDownloadError?: (() => void) | undefined;
40
38
  onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
41
- entityId: string;
42
39
  shadow?: import("../../types/shadowType").ShadowType | undefined;
43
40
  className?: string | undefined;
44
41
  hideDownloadButton?: boolean | undefined;
@@ -51,7 +48,6 @@ export declare const NoShadow: import("@storybook/core/csf").StoryAnnotations<im
51
48
  onBackButtonClick?: (() => void) | undefined;
52
49
  shadow?: import("../../types/shadowType").ShadowType | undefined;
53
50
  hideDownloadButton?: boolean | undefined;
54
- entityId?: string | undefined;
55
51
  onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
56
52
  invoiceQuoteViewComponent?: import("react").ReactNode;
57
53
  onInvoiceDownloadError?: (() => void) | undefined;
@@ -65,7 +61,6 @@ export declare const Mobile: import("@storybook/core/csf").StoryAnnotations<impo
65
61
  onBackButtonClick?: (() => void) | undefined;
66
62
  onInvoiceDownloadError?: (() => void) | undefined;
67
63
  onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
68
- entityId: string;
69
64
  shadow?: import("../../types/shadowType").ShadowType | undefined;
70
65
  className?: string | undefined;
71
66
  hideDownloadButton?: boolean | undefined;
@@ -78,7 +73,6 @@ export declare const Mobile: import("@storybook/core/csf").StoryAnnotations<impo
78
73
  onBackButtonClick?: (() => void) | undefined;
79
74
  shadow?: import("../../types/shadowType").ShadowType | undefined;
80
75
  hideDownloadButton?: boolean | undefined;
81
- entityId?: string | undefined;
82
76
  onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
83
77
  invoiceQuoteViewComponent?: import("react").ReactNode;
84
78
  onInvoiceDownloadError?: (() => void) | undefined;
@@ -92,7 +86,6 @@ export declare const CustomClassName: import("@storybook/core/csf").StoryAnnotat
92
86
  onBackButtonClick?: (() => void) | undefined;
93
87
  onInvoiceDownloadError?: (() => void) | undefined;
94
88
  onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
95
- entityId: string;
96
89
  shadow?: import("../../types/shadowType").ShadowType | undefined;
97
90
  className?: string | undefined;
98
91
  hideDownloadButton?: boolean | undefined;
@@ -105,7 +98,6 @@ export declare const CustomClassName: import("@storybook/core/csf").StoryAnnotat
105
98
  onBackButtonClick?: (() => void) | undefined;
106
99
  shadow?: import("../../types/shadowType").ShadowType | undefined;
107
100
  hideDownloadButton?: boolean | undefined;
108
- entityId?: string | undefined;
109
101
  onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
110
102
  invoiceQuoteViewComponent?: import("react").ReactNode;
111
103
  onInvoiceDownloadError?: (() => void) | undefined;
@@ -122,7 +114,6 @@ export declare const DarkMode: import("@storybook/core/csf").StoryAnnotations<im
122
114
  onBackButtonClick?: (() => void) | undefined;
123
115
  onInvoiceDownloadError?: (() => void) | undefined;
124
116
  onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
125
- entityId: string;
126
117
  shadow?: import("../../types/shadowType").ShadowType | undefined;
127
118
  className?: string | undefined;
128
119
  hideDownloadButton?: boolean | undefined;
@@ -135,7 +126,6 @@ export declare const DarkMode: import("@storybook/core/csf").StoryAnnotations<im
135
126
  onBackButtonClick?: (() => void) | undefined;
136
127
  shadow?: import("../../types/shadowType").ShadowType | undefined;
137
128
  hideDownloadButton?: boolean | undefined;
138
- entityId?: string | undefined;
139
129
  onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
140
130
  invoiceQuoteViewComponent?: import("react").ReactNode;
141
131
  onInvoiceDownloadError?: (() => void) | undefined;
@@ -2,7 +2,7 @@
2
2
  import { FrontendTransaction as T } from "@bunnyapp/common";
3
3
  import { ShadowType } from "../../types/shadowType";
4
4
  import { TransactionListColumnType } from "../Transactions/transactionsList/TransactionsListDesktop";
5
- declare function Quotes({ className, columns, entityId, filter, filterQuotes, sort, noQuotesMessage, onQuoteClick, quoteComponent, searchBarClassName, shadow, showSearchBar, showTitle, title, style, suppressQuoteDisplay, useModal, }: {
5
+ declare function Quotes({ className, columns, filter, filterQuotes, sort, noQuotesMessage, onQuoteClick, quoteComponent, searchBarClassName, shadow, showSearchBar, showTitle, title, style, suppressQuoteDisplay, useModal, }: {
6
6
  /** A custom component to render instead of the default invoice component */
7
7
  quoteComponent?: React.ReactNode;
8
8
  /** Whether to show the search bar */
@@ -35,6 +35,5 @@ declare function Quotes({ className, columns, entityId, filter, filterQuotes, so
35
35
  sort?: (a: T.Transaction, b: T.Transaction) => number;
36
36
  /** Message to display when there are no quotes */
37
37
  noQuotesMessage?: string;
38
- entityId: string;
39
38
  }): import("react/jsx-runtime").JSX.Element;
40
39
  export default Quotes;
@@ -1,11 +1,10 @@
1
1
  import { PluginData, Quote } from "@bunnyapp/common";
2
- export default function PaymentForms({ quote, handlePaymentSuccess, handlePaymentFail, handleSubmit, proceedingToPayment, entityId, accountId, overrideToken, customCheckoutFunction, }: {
2
+ export default function PaymentForms({ quote, handlePaymentSuccess, handlePaymentFail, handleSubmit, proceedingToPayment, accountId, overrideToken, customCheckoutFunction, }: {
3
3
  quote?: Quote;
4
4
  handlePaymentSuccess: () => void;
5
5
  handlePaymentFail: (error: any) => void;
6
6
  handleSubmit: (formData: FormData) => void;
7
7
  proceedingToPayment: boolean;
8
- entityId: string;
9
8
  accountId?: string;
10
9
  overrideToken?: string;
11
10
  customCheckoutFunction?: (plugin: PluginData | undefined) => Promise<any>;
@@ -1,11 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import "../../styles/index.less";
3
3
  import { ShadowType } from "../../types/shadowType";
4
- export default function Signup({ companyName, entityId, priceListCode, returnUrl, isCardEnabled, className, shadow, style, }: {
4
+ export default function Signup({ companyName, priceListCode, returnUrl, isCardEnabled, className, shadow, style, }: {
5
5
  /** The company name to display on the signup page */
6
6
  companyName: string;
7
- /** The entity ID to use for the signup */
8
- entityId: string;
9
7
  /** The price list code to use for the signup */
10
8
  priceListCode: string;
11
9
  /** The return URL to that customers can be redirected to after signup */
@@ -1,11 +1,10 @@
1
1
  import { PriceList, Quote, QuotePreviewData, Subscription } from "@bunnyapp/common";
2
- declare const CheckoutBarSummarySection: ({ open, quantityLocal, quote, selectedPriceList, onClickCheckout, entityId, upgradingSubscription, quotePreviewData, }: {
2
+ declare const CheckoutBarSummarySection: ({ open, quantityLocal, quote, selectedPriceList, onClickCheckout, upgradingSubscription, quotePreviewData, }: {
3
3
  open: boolean;
4
4
  quantityLocal: number;
5
5
  quote?: Quote | undefined;
6
6
  selectedPriceList: PriceList;
7
7
  onClickCheckout: () => void;
8
- entityId: string;
9
8
  upgradingSubscription?: Subscription | undefined;
10
9
  quotePreviewData?: QuotePreviewData | undefined;
11
10
  }) => import("react/jsx-runtime").JSX.Element;
@@ -3,9 +3,8 @@ export type EditingQuoteDataType = {
3
3
  id: string;
4
4
  isTrial: boolean;
5
5
  };
6
- declare const SubscriptionsWrapper: ({ handlePortalErrors, entityId, companyName, isInPreviewMode, productId, className, styles: userStyles, noSubscriptionsComponent, hideTitle, }: {
6
+ declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPreviewMode, productId, className, styles: userStyles, noSubscriptionsComponent, hideTitle, }: {
7
7
  handlePortalErrors: (errors: any) => void;
8
- entityId: string;
9
8
  companyName: string;
10
9
  isInPreviewMode?: boolean | undefined;
11
10
  productId?: string | undefined;
@@ -8,3 +8,5 @@ export declare const Mobile: Story;
8
8
  export declare const NoShadow: Story;
9
9
  export declare const CustomClassName: Story;
10
10
  export declare const DarkMode: Story;
11
+ export declare const PreviewMode: Story;
12
+ export declare const PreviewModeWithClassName: Story;
@@ -7,7 +7,6 @@ export type SubscriptionsContextValues = {
7
7
  className?: string;
8
8
  subscriptionProductNameStyle?: React.CSSProperties;
9
9
  productId?: string;
10
- entityId: string;
11
10
  isInPreviewMode: boolean;
12
11
  upgradingSubscription?: Subscription;
13
12
  setUpgradingSubscription: React.Dispatch<React.SetStateAction<Subscription | undefined>>;
@@ -3,7 +3,7 @@ import { FrontendTransaction as T, TransactionKind } from "@bunnyapp/common";
3
3
  import { ShadowType } from "../../types/shadowType";
4
4
  import { TransactionListColumnType } from "./transactionsList/TransactionsListDesktop";
5
5
  import { TransactionDateType } from "./TransactionsListContext";
6
- export default function Transactions({ transactionComponent, showSearchBar, showTitle, title, columns, className, shadow, searchBarClassName, useModal, onTransactionClick, suppressTransactionDisplay, kindsToShow, style, filter, noTransactionsMessage, entityId, filterTransactions, sortTransactions, transactionDateType, }: {
6
+ export default function Transactions({ transactionComponent, showSearchBar, showTitle, title, columns, className, shadow, searchBarClassName, useModal, onTransactionClick, suppressTransactionDisplay, kindsToShow, style, filter, noTransactionsMessage, filterTransactions, sortTransactions, transactionDateType, }: {
7
7
  /** A custom component to render instead of the default invoice component */
8
8
  transactionComponent?: React.ReactNode;
9
9
  /** Whether to show the search bar */
@@ -36,8 +36,6 @@ export default function Transactions({ transactionComponent, showSearchBar, show
36
36
  filter?: string;
37
37
  /** Message to display when there are no transactions */
38
38
  noTransactionsMessage?: string;
39
- /** The entity id to pass to the invoice component */
40
- entityId: string;
41
39
  /** A function to filter the transactions
42
40
  * Filtering is applied on the client side.
43
41
  * This is useful to have more control over the filtering logic.
@@ -5,7 +5,6 @@ export default meta;
5
5
  type Story = StoryObj<typeof meta>;
6
6
  export declare const basicArgs: {
7
7
  token: string;
8
- entityId: string;
9
8
  };
10
9
  export declare const Default: Story;
11
10
  export declare const Padding0BGRed: Story;
@@ -21,7 +21,6 @@ export type TransactionsContextValues = {
21
21
  filter?: string;
22
22
  noTransactionsMessage?: string;
23
23
  downloadTransactionLink?: (id: string) => string;
24
- entityId: string;
25
24
  filterTransactions?: (transaction: T.Transaction) => boolean;
26
25
  sortTransactions?: (transactionA: T.Transaction, transactionB: T.Transaction) => number;
27
26
  transactionDateType: TransactionDateType;
@@ -1,7 +1,6 @@
1
- declare const accountSignup: ({ token, apiHost, entityId, accountId, quoteId, paymentToken, paymentMethodId, pluginId, priceListCode, }: {
1
+ declare const accountSignup: ({ token, apiHost, accountId, quoteId, paymentToken, paymentMethodId, pluginId, priceListCode, }: {
2
2
  token: string;
3
3
  apiHost: string;
4
- entityId: string;
5
4
  accountId: string;
6
5
  quoteId?: string | undefined;
7
6
  paymentToken?: string | undefined;
@@ -3,10 +3,9 @@ type BillingContact = {
3
3
  lastName: string;
4
4
  email: string;
5
5
  };
6
- declare const quoteAccountSignup: ({ token, apiHost, entityId, priceListCode, accountName, billingContact, }: {
6
+ declare const quoteAccountSignup: ({ token, apiHost, priceListCode, accountName, billingContact, }: {
7
7
  token?: string | undefined;
8
8
  apiHost: string;
9
- entityId: string;
10
9
  priceListCode: string;
11
10
  accountName: string;
12
11
  billingContact: BillingContact;
@@ -0,0 +1,13 @@
1
+ type QuoteChangeCreateChargeProps = {
2
+ apiHost: string;
3
+ endDate: string;
4
+ price?: number;
5
+ priceListChargeId?: string;
6
+ quantity?: number;
7
+ quoteChangeId: string;
8
+ startDate: string;
9
+ subscriptionChargeId?: string;
10
+ token: string;
11
+ };
12
+ declare const quoteChargeCreate: ({ endDate, price, priceListChargeId, quantity, quoteChangeId, startDate, subscriptionChargeId, token, apiHost, }: QuoteChangeCreateChargeProps) => Promise<unknown>;
13
+ export default quoteChargeCreate;
@@ -1,6 +1,5 @@
1
- declare const getSubscriptions: ({ apiHost, entityId, isInPreviewMode, token, }: {
1
+ declare const getSubscriptions: ({ apiHost, isInPreviewMode, token, }: {
2
2
  apiHost: string;
3
- entityId: string;
4
3
  isInPreviewMode?: boolean | undefined;
5
4
  token?: string | undefined;
6
5
  }) => Promise<any>;
@@ -1,6 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare const useSendAcceptQuote: ({ entityId, onTokenExpired, quoteId, apiHost, token, }: {
3
- entityId: string;
2
+ declare const useSendAcceptQuote: ({ onTokenExpired, quoteId, apiHost, token, }: {
4
3
  onTokenExpired?: (() => void) | undefined;
5
4
  quoteId?: string | undefined;
6
5
  apiHost: string;
@@ -1,5 +1,4 @@
1
- declare const useHasTaxPlugin: ({ entityId, apiHost, token, }: {
2
- entityId: string;
1
+ declare const useHasTaxPlugin: ({ apiHost, token, }: {
3
2
  apiHost: string;
4
3
  token: string;
5
4
  }) => boolean;
@@ -1,7 +1,6 @@
1
1
  import { GraphQLClient } from "graphql-request";
2
- export declare const usePaymentMethod: ({ accountId, entityId, graphQLClient, token, }: {
2
+ export declare const usePaymentMethod: ({ accountId, graphQLClient, token, }: {
3
3
  accountId?: string | undefined;
4
- entityId?: string | undefined;
5
4
  graphQLClient: GraphQLClient;
6
5
  token: string;
7
6
  }) => {
@@ -1,6 +1,5 @@
1
1
  import { PluginData } from "@bunnyapp/common";
2
- export declare const usePaymentPlugins: ({ entityId, apiHost, token, }: {
3
- entityId: string;
2
+ export declare const usePaymentPlugins: ({ apiHost, token, }: {
4
3
  apiHost: string;
5
4
  token: string;
6
5
  }) => {
@@ -1,5 +1,4 @@
1
- declare const usePlugins: ({ entityId, apiHost, token }: {
2
- entityId: string;
1
+ declare const usePlugins: ({ apiHost, token }: {
3
2
  apiHost: string;
4
3
  token: string;
5
4
  }) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<any, Error>;
@@ -1,6 +1,5 @@
1
1
  import { PluginData } from "@bunnyapp/common";
2
- export declare const useSigningPlugins: ({ entityId, apiHost, token, }: {
3
- entityId: string;
2
+ export declare const useSigningPlugins: ({ apiHost, token, }: {
4
3
  apiHost: string;
5
4
  token: string;
6
5
  }) => PluginData[] | undefined;