@bunnyapp/components 1.0.68-beta.8 → 1.0.68

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.
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import '../../styles/index.less';
3
3
  import { ShadowType } from '../../types/shadowType';
4
- export default function Signup({ companyName, priceListCode, returnUrl, couponCode, className, shadow, style, }: {
4
+ export default function Signup({ companyName, priceListCode, returnUrl, couponCode, className, shadow, style, entityId, }: {
5
5
  /** The company name to display on the signup page */
6
6
  companyName: string;
7
7
  /** The price list code to use for the signup */
@@ -16,4 +16,6 @@ export default function Signup({ companyName, priceListCode, returnUrl, couponCo
16
16
  shadow?: ShadowType;
17
17
  /** A custom style to apply to the component */
18
18
  style?: React.CSSProperties;
19
+ /** The entity ID to use for the signup */
20
+ entityId: string;
19
21
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { Feature, PriceList, Subscription } from '@bunnyapp/common';
1
+ import { Feature, PriceList, Subscription } from "@bunnyapp/common";
2
2
  declare const PriceListCardMobile: ({ description, disableOnClick, feature, isPriceListCurrentSubscription, isSelected, onClick, priceList, subscriptionPlan, trialRemainingDays, }: {
3
3
  description: string;
4
4
  disableOnClick: boolean;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { PaymentMethod, PluginData } from '@bunnyapp/common';
2
+ import { PaymentMethod, PluginData } from "@bunnyapp/common";
3
3
  export type PaymentContextValues = {
4
4
  onClickCancel?: () => void;
5
5
  accountId?: string;
@@ -1,4 +1,4 @@
1
- declare const accountSignup: ({ token, apiHost, accountId, quoteId, paymentToken, paymentMethodId, pluginId, priceListCode, }: {
1
+ declare const accountSignup: ({ token, apiHost, accountId, quoteId, paymentToken, paymentMethodId, pluginId, priceListCode, entityId, }: {
2
2
  token: string;
3
3
  apiHost: string;
4
4
  accountId: string;
@@ -7,5 +7,6 @@ declare const accountSignup: ({ token, apiHost, accountId, quoteId, paymentToken
7
7
  paymentMethodId?: string | undefined;
8
8
  pluginId: string;
9
9
  priceListCode: string;
10
+ entityId: string;
10
11
  }) => Promise<any>;
11
12
  export default accountSignup;
@@ -3,11 +3,12 @@ type BillingContact = {
3
3
  lastName: string;
4
4
  email: string;
5
5
  };
6
- declare const quoteAccountSignup: ({ token, apiHost, priceListCode, accountName, billingContact, }: {
6
+ declare const quoteAccountSignup: ({ token, apiHost, priceListCode, accountName, billingContact, entityId, }: {
7
7
  token?: string | undefined;
8
8
  apiHost: string;
9
9
  priceListCode: string;
10
10
  accountName: string;
11
11
  billingContact: BillingContact;
12
+ entityId: string;
12
13
  }) => Promise<any>;
13
14
  export default quoteAccountSignup;
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
- declare const useSendAcceptQuote: ({ quoteId, apiHost, token, }: {
2
+ declare const useSendAcceptQuote: ({ onTokenExpired, quoteId, apiHost, token, }: {
3
+ onTokenExpired?: (() => void) | undefined;
3
4
  quoteId?: string | undefined;
4
5
  apiHost: string;
5
6
  token?: string | undefined;
@@ -1,30 +1,9 @@
1
- type PaymentPlugin = {
2
- enabled: boolean;
3
- entities: string[];
4
- guid: string;
5
- hidden: boolean;
6
- id: string;
7
- name: string;
8
- status: string;
9
- type: string;
10
- webhookEnabled: boolean;
11
- components: {
12
- frontend: {
13
- name: string;
14
- scenarios: string[];
15
- }[];
16
- backend: {
17
- name: string;
18
- access: string[];
19
- }[];
20
- };
21
- };
22
- export declare const usePaymentPlugins: ({ apiHost, token, selectedEntityId, }: {
1
+ import { PluginData } from '@bunnyapp/common';
2
+ export declare const usePaymentPlugins: ({ apiHost, token }: {
23
3
  apiHost: string;
24
4
  token?: string | undefined;
25
- selectedEntityId?: string | null | undefined;
26
5
  }) => {
27
- paymentPlugins: PaymentPlugin[];
6
+ paymentPlugins: PluginData[] | undefined;
28
7
  isFetched: boolean;
29
8
  };
30
9
  export default usePaymentPlugins;
package/dist/index.d.ts CHANGED
@@ -71,7 +71,7 @@ declare function Quotes({ className, columns, filter, filterQuotes, sort, noQuot
71
71
  noQuotesMessage?: string;
72
72
  }): react_jsx_runtime.JSX.Element;
73
73
 
74
- declare const PaymentForm: ({ invoice, onFail, onPaymentSuccess, onPaymentHoldSuccess, quote, accountId, onSavePaymentMethod, onRemovePaymentMethod, onSetDefaultPaymentMethod, entityId, overrideToken, customCheckoutFunction, currencyId: currencyIdFromProps, paymentHoldOptions, }: {
74
+ declare const PaymentForm: ({ invoice, onFail, onPaymentSuccess, onPaymentHoldSuccess, quote, accountId, onSavePaymentMethod, onRemovePaymentMethod, onSetDefaultPaymentMethod, overrideToken, customCheckoutFunction, currencyId: currencyIdFromProps, paymentHoldOptions, }: {
75
75
  invoice?: FormattedInvoice | undefined;
76
76
  quote?: Quote$1 | undefined;
77
77
  onFail: (error: any) => void;
@@ -81,7 +81,6 @@ declare const PaymentForm: ({ invoice, onFail, onPaymentSuccess, onPaymentHoldSu
81
81
  onRemovePaymentMethod?: (() => void) | undefined;
82
82
  onSetDefaultPaymentMethod?: (() => void) | undefined;
83
83
  accountId?: string | undefined;
84
- entityId?: string | undefined;
85
84
  overrideToken?: string | undefined;
86
85
  customCheckoutFunction?: ((plugin: PluginData | undefined) => Promise<any>) | undefined;
87
86
  currencyId?: string | undefined;
@@ -91,7 +90,7 @@ declare const PaymentForm: ({ invoice, onFail, onPaymentSuccess, onPaymentHoldSu
91
90
  } | undefined;
92
91
  }) => react_jsx_runtime.JSX.Element;
93
92
 
94
- declare function Signup({ companyName, priceListCode, returnUrl, couponCode, className, shadow, style, }: {
93
+ declare function Signup({ companyName, priceListCode, returnUrl, couponCode, className, shadow, style, entityId, }: {
95
94
  /** The company name to display on the signup page */
96
95
  companyName: string;
97
96
  /** The price list code to use for the signup */
@@ -106,6 +105,8 @@ declare function Signup({ companyName, priceListCode, returnUrl, couponCode, cla
106
105
  shadow?: ShadowType;
107
106
  /** A custom style to apply to the component */
108
107
  style?: React.CSSProperties;
108
+ /** The entity ID to use for the signup */
109
+ entityId: string;
109
110
  }): react_jsx_runtime.JSX.Element;
110
111
 
111
112
  declare function BunnyProvider({ children, darkMode, queryClient, apiHost, token, onTokenExpired, configProviderProps, }: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bunnyapp/components",
3
- "version": "1.0.68-beta.8",
3
+ "version": "1.0.68",
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",
@@ -37,6 +37,7 @@
37
37
  "@storybook/test": "^8.4.7",
38
38
  "@tanstack/eslint-plugin-query": "^5.60.1",
39
39
  "@tanstack/react-query-devtools": "^5.65.1",
40
+ "@types/hellosign-embedded": "^2.0.6",
40
41
  "@types/lodash": "^4.17.13",
41
42
  "@types/lodash-es": "^4.17.12",
42
43
  "@types/pluralize": "^0.0.33",
@@ -64,7 +65,7 @@
64
65
  },
65
66
  "peerDependencies": {
66
67
  "@ant-design/icons": "^5.6.1",
67
- "@bunnyapp/common": "^1.0.66-beta.8",
68
+ "@bunnyapp/common": "^1.0.66-beta.1",
68
69
  "@fortawesome/fontawesome-svg-core": "^6.7.2",
69
70
  "@fortawesome/free-brands-svg-icons": "^6.7.2",
70
71
  "@fortawesome/free-regular-svg-icons": "^6.7.2",
@@ -75,6 +76,7 @@
75
76
  "@tanstack/react-query": "^5.59.20",
76
77
  "antd": "^5.23.2",
77
78
  "graphql-request": "^6.1.0",
79
+ "hellosign-embedded": "^2.12.2",
78
80
  "interweave": "^13.1.0",
79
81
  "less": "^4.2.0",
80
82
  "lodash-es": "^4.17.21",