@bunnyapp/components 1.0.48 → 1.0.50
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.
- package/dist/cjs/index.js +161 -110
- package/dist/cjs/src/components/Signup/Signup.d.ts +3 -1
- package/dist/cjs/src/components/icons/Amex.d.ts +4 -0
- package/dist/cjs/src/components/icons/ChinaUnionPay.d.ts +4 -0
- package/dist/cjs/src/components/icons/CreditCard.d.ts +4 -0
- package/dist/cjs/src/components/icons/DinersClub.d.ts +4 -0
- package/dist/cjs/src/components/icons/Discover.d.ts +4 -0
- package/dist/cjs/src/components/icons/JSB.d.ts +4 -0
- package/dist/cjs/src/components/icons/Mastercard.d.ts +4 -0
- package/dist/cjs/src/components/icons/Visa.d.ts +4 -0
- package/dist/cjs/src/graphql/mutations/accountSignup.d.ts +2 -1
- package/dist/cjs/src/graphql/mutations/quoteAccountSignup.d.ts +2 -1
- package/dist/esm/index.js +161 -110
- package/dist/esm/src/components/Signup/Signup.d.ts +3 -1
- package/dist/esm/src/components/icons/Amex.d.ts +4 -0
- package/dist/esm/src/components/icons/ChinaUnionPay.d.ts +4 -0
- package/dist/esm/src/components/icons/CreditCard.d.ts +4 -0
- package/dist/esm/src/components/icons/DinersClub.d.ts +4 -0
- package/dist/esm/src/components/icons/Discover.d.ts +4 -0
- package/dist/esm/src/components/icons/JSB.d.ts +4 -0
- package/dist/esm/src/components/icons/Mastercard.d.ts +4 -0
- package/dist/esm/src/components/icons/Visa.d.ts +4 -0
- package/dist/esm/src/graphql/mutations/accountSignup.d.ts +2 -1
- package/dist/esm/src/graphql/mutations/quoteAccountSignup.d.ts +2 -1
- package/dist/index.d.ts +3 -1
- package/package.json +1 -1
|
@@ -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, isCardEnabled, className, shadow, style, }: {
|
|
4
|
+
export default function Signup({ companyName, priceListCode, returnUrl, isCardEnabled, 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, isCardEn
|
|
|
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
|
-
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;
|
package/dist/index.d.ts
CHANGED
|
@@ -94,7 +94,7 @@ declare const PaymentForm: ({ invoice, onFail, onPaymentSuccess, quote, accountI
|
|
|
94
94
|
useAllPaymentPlugins?: boolean | undefined;
|
|
95
95
|
}) => react_jsx_runtime.JSX.Element;
|
|
96
96
|
|
|
97
|
-
declare function Signup({ companyName, priceListCode, returnUrl, isCardEnabled, className, shadow, style, }: {
|
|
97
|
+
declare function Signup({ companyName, priceListCode, returnUrl, isCardEnabled, className, shadow, style, entityId, }: {
|
|
98
98
|
/** The company name to display on the signup page */
|
|
99
99
|
companyName: string;
|
|
100
100
|
/** The price list code to use for the signup */
|
|
@@ -109,6 +109,8 @@ declare function Signup({ companyName, priceListCode, returnUrl, isCardEnabled,
|
|
|
109
109
|
shadow?: ShadowType;
|
|
110
110
|
/** A custom style to apply to the component */
|
|
111
111
|
style?: React.CSSProperties;
|
|
112
|
+
/** The entity ID to use for the signup */
|
|
113
|
+
entityId: string;
|
|
112
114
|
}): react_jsx_runtime.JSX.Element;
|
|
113
115
|
|
|
114
116
|
declare function BunnyProvider({ children, darkMode, queryClient, apiHost, token, onTokenExpired, configProviderProps, }: {
|
package/package.json
CHANGED