tf-checkout-react 1.0.106-beta.7 → 1.0.106-beta.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.
- package/dist/api/index.d.ts +7 -0
- package/dist/components/billing-info-container/index.d.ts +5 -1
- package/dist/components/forgotPasswordModal/index.d.ts +11 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/loginModal/index.d.ts +4 -0
- package/dist/components/resetPasswordContainer/index.d.ts +10 -0
- package/dist/components/signupModal/index.d.ts +14 -0
- package/dist/tf-checkout-react.cjs.development.js +423 -276
- package/dist/tf-checkout-react.cjs.development.js.map +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js.map +1 -1
- package/dist/tf-checkout-react.esm.js +422 -275
- package/dist/tf-checkout-react.esm.js.map +1 -1
- package/dist/tf-checkout-styles.css +1 -1
- package/package.json +1 -1
- package/src/api/index.ts +13 -0
- package/src/components/billing-info-container/index.tsx +43 -12
- package/src/components/forgotPasswordModal/index.tsx +107 -0
- package/src/components/forgotPasswordModal/style.css +47 -0
- package/src/components/index.ts +1 -0
- package/src/components/loginModal/index.tsx +19 -9
- package/src/components/orderDetailsContainer/ticketsTable.tsx +11 -13
- package/src/components/resetPasswordContainer/index.tsx +96 -0
- package/src/components/resetPasswordContainer/style.css +36 -0
- package/src/components/signupModal/index.tsx +195 -0
- package/src/components/signupModal/style.css +58 -0
- package/dist/components/registerModal/index.d.ts +0 -11
- package/src/components/registerModal/index.tsx +0 -190
- package/src/components/registerModal/style.css +0 -18
package/dist/api/index.d.ts
CHANGED
|
@@ -31,6 +31,13 @@ export declare const getConditions: (eventId: string) => Promise<AxiosResponse<a
|
|
|
31
31
|
export declare const resaleTicket: (data: any, hash: string) => Promise<AxiosResponse<any, any>>;
|
|
32
32
|
export declare const removeFromResale: (hash: string) => Promise<AxiosResponse<any, any>>;
|
|
33
33
|
export declare const postReferralVisits: (eventId: string, referralId: string) => Promise<AxiosResponse<any, any>>;
|
|
34
|
+
export declare const forgotPassword: (email: string) => Promise<AxiosResponse<any, any>>;
|
|
35
|
+
interface IResetPasswordData {
|
|
36
|
+
token: string;
|
|
37
|
+
password: string;
|
|
38
|
+
confirmPassword: string;
|
|
39
|
+
}
|
|
40
|
+
export declare const resetPassword: (data: IResetPasswordData) => Promise<AxiosResponse<any, any>>;
|
|
34
41
|
export declare const processTicket: (hash: string) => Promise<AxiosResponse<any, any>>;
|
|
35
42
|
export declare const declineInvitation: (hash: string) => Promise<AxiosResponse<any, any>>;
|
|
36
43
|
export declare const sendRSVPInfo: (eventId: number, data: any) => Promise<AxiosResponse<any, any>>;
|
|
@@ -42,8 +42,12 @@ export interface IBillingInfoPage {
|
|
|
42
42
|
onSkipBillingPage: (data: any) => void;
|
|
43
43
|
skipPage?: boolean;
|
|
44
44
|
canSkipHolderNames?: boolean;
|
|
45
|
+
onForgotPasswordSuccess?: (res: any) => void;
|
|
46
|
+
onForgotPasswordError?: (e: AxiosError) => void;
|
|
45
47
|
onCountdownFinish?: () => void;
|
|
46
48
|
enableTimer?: boolean;
|
|
47
49
|
logo?: string;
|
|
50
|
+
showForgotPasswordButton?: boolean;
|
|
51
|
+
showSignUpButton?: boolean;
|
|
48
52
|
}
|
|
49
|
-
export declare const BillingInfoContainer: ({ data, ticketHoldersFields, initialValues, buttonName, handleSubmit, theme, onRegisterSuccess, onRegisterError, onSubmitError, onGetCartSuccess, onGetCartError, onGetCountriesSuccess, onGetCountriesError, onGetStatesSuccess, onGetStatesError, onGetProfileDataSuccess, onGetProfileDataError, onAuthorizeSuccess, onAuthorizeError, onLogin, onLoginSuccess, isLoggedIn: pIsLoggedIn, accountInfoTitle, hideLogo, themeOptions, onErrorClose, hideErrorsAlertSection, onSkipBillingPage, skipPage, canSkipHolderNames, onCountdownFinish, enableTimer, logo }: IBillingInfoPage) => JSX.Element;
|
|
53
|
+
export declare const BillingInfoContainer: ({ data, ticketHoldersFields, initialValues, buttonName, handleSubmit, theme, onRegisterSuccess, onRegisterError, onSubmitError, onGetCartSuccess, onGetCartError, onGetCountriesSuccess, onGetCountriesError, onGetStatesSuccess, onGetStatesError, onGetProfileDataSuccess, onGetProfileDataError, onAuthorizeSuccess, onAuthorizeError, onLogin, onLoginSuccess, isLoggedIn: pIsLoggedIn, accountInfoTitle, hideLogo, themeOptions, onErrorClose, hideErrorsAlertSection, onSkipBillingPage, skipPage, canSkipHolderNames, onForgotPasswordSuccess, onForgotPasswordError, onCountdownFinish, enableTimer, logo, showForgotPasswordButton, showSignUpButton }: IBillingInfoPage) => JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { AxiosError } from 'axios';
|
|
3
|
+
import './style.css';
|
|
4
|
+
interface IForgotPasswordProps {
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
onLogin: () => void;
|
|
7
|
+
onForgotPasswordSuccess: (res: any) => void;
|
|
8
|
+
onForgotPasswordError: (e: AxiosError) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const ForgotPasswordModal: FC<IForgotPasswordProps>;
|
|
11
|
+
export {};
|
|
@@ -4,4 +4,5 @@ export { PaymentContainer } from './paymentContainer';
|
|
|
4
4
|
export { TicketsContainer } from './ticketsContainer';
|
|
5
5
|
export { MyTicketsContainer } from './myTicketsContainer';
|
|
6
6
|
export { OrderDetailsContainer } from './orderDetailsContainer';
|
|
7
|
+
export { ResetPasswordContainer } from './resetPasswordContainer';
|
|
7
8
|
export { TicketResaleContainer } from './ticketResale';
|
|
@@ -10,8 +10,12 @@ interface Props {
|
|
|
10
10
|
onAuthorizeError?: (e: AxiosError) => void;
|
|
11
11
|
onGetProfileDataSuccess?: (res: any) => void;
|
|
12
12
|
onGetProfileDataError?: (e: AxiosError) => void;
|
|
13
|
+
onForgotPassword?: () => void;
|
|
14
|
+
onSignup?: () => void;
|
|
13
15
|
modalClassname?: string;
|
|
14
16
|
logo?: string;
|
|
17
|
+
showForgotPasswordButton?: boolean;
|
|
18
|
+
showSignUpButton?: boolean;
|
|
15
19
|
}
|
|
16
20
|
export declare const LoginModal: FC<Props>;
|
|
17
21
|
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { AxiosError } from 'axios';
|
|
3
|
+
import './style.css';
|
|
4
|
+
interface IResetPasswordProps {
|
|
5
|
+
token?: string;
|
|
6
|
+
onResetPasswordSuccess?: (res: any) => void;
|
|
7
|
+
onResetPasswordError?: (e: AxiosError) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const ResetPasswordContainer: FC<IResetPasswordProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { AxiosError } from 'axios';
|
|
3
|
+
import './style.css';
|
|
4
|
+
interface ISignupProps {
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
onLogin: () => void;
|
|
7
|
+
onRegisterSuccess: (value: {
|
|
8
|
+
accessToken: string;
|
|
9
|
+
refreshToken: string;
|
|
10
|
+
}) => void;
|
|
11
|
+
onRegisterError: (e: AxiosError, email: string) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const SignupModal: FC<ISignupProps>;
|
|
14
|
+
export {};
|