tf-checkout-react 1.4.23-beta.3 → 1.4.23
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 +2 -2
- package/dist/components/billing-info-container/index.d.ts +3 -1
- package/dist/components/common/index.d.ts +0 -1
- package/dist/components/confirmationContainer/index.d.ts +1 -6
- package/dist/components/confirmationContainer/social-buttons.d.ts +2 -5
- package/dist/components/forgotPasswordModal/index.d.ts +3 -2
- package/dist/components/loginForm/index.d.ts +0 -1
- package/dist/components/loginModal/index.d.ts +44 -5
- package/dist/components/ticketsContainer/TicketRow.d.ts +2 -3
- package/dist/components/ticketsContainer/utils.d.ts +0 -8
- package/dist/hooks/useOnline.d.ts +1 -0
- package/dist/index.d.ts +1 -4
- package/dist/tf-checkout-react.cjs.development.js +3159 -4210
- 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 +3161 -4213
- package/dist/tf-checkout-react.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/api/index.ts +49 -51
- package/src/components/billing-info-container/index.tsx +7 -1
- package/src/components/common/NativeSelectFeild/index.tsx +1 -1
- package/src/components/common/SelectField/index.tsx +3 -1
- package/src/components/common/index.tsx +0 -1
- package/src/components/confirmationContainer/config.ts +55 -62
- package/src/components/confirmationContainer/index.tsx +25 -10
- package/src/components/confirmationContainer/social-buttons.tsx +20 -43
- package/src/components/forgotPasswordModal/index.tsx +4 -4
- package/src/components/loginForm/index.tsx +1 -5
- package/src/components/loginModal/index.tsx +188 -39
- package/src/components/seatMapContainer/index.tsx +74 -52
- package/src/components/stripePayment/index.tsx +4 -1
- package/src/components/ticketsContainer/ReferralLogic.tsx +1 -1
- package/src/components/ticketsContainer/TicketRow.tsx +14 -13
- package/src/components/ticketsContainer/TicketsSection.tsx +33 -13
- package/src/components/ticketsContainer/index.tsx +39 -71
- package/src/components/ticketsContainer/utils.ts +6 -23
- package/src/components/timerWidget/index.tsx +7 -11
- package/src/hooks/useOnline.ts +21 -0
- package/src/index.ts +2 -6
- package/src/utils/cookies.ts +7 -7
- package/dist/api/preRegistrationComplete.d.ts +0 -3
- package/dist/components/common/CopyField.d.ts +0 -12
- package/dist/components/common/CopyMessageModal.d.ts +0 -7
- package/dist/components/common/socials.d.ts +0 -10
- package/dist/components/preRegistration/FieldsSection.d.ts +0 -13
- package/dist/components/preRegistration/Influancers.d.ts +0 -2
- package/dist/components/preRegistration/PreRegistrationComplete.d.ts +0 -5
- package/dist/components/preRegistration/PreRegistrationInformations.d.ts +0 -2
- package/dist/components/preRegistration/Prewards.d.ts +0 -2
- package/dist/components/preRegistration/ShareOptions.d.ts +0 -2
- package/dist/components/preRegistration/constants.d.ts +0 -2
- package/dist/components/preRegistration/index.d.ts +0 -15
- package/dist/components/preRegistration/utils.d.ts +0 -12
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/useEventListener.d.ts +0 -1
- package/dist/images/instagram.svg +0 -5
- package/dist/images/spotify.svg +0 -6
- package/dist/utils/isValidNumber.d.ts +0 -1
- package/src/api/preRegistrationComplete.ts +0 -37
- package/src/assets/images/instagram.svg +0 -5
- package/src/assets/images/spotify.svg +0 -6
- package/src/components/common/CopyField.tsx +0 -53
- package/src/components/common/CopyMessageModal.tsx +0 -34
- package/src/components/common/socials.tsx +0 -33
- package/src/components/preRegistration/FieldsSection.tsx +0 -142
- package/src/components/preRegistration/Influancers.tsx +0 -31
- package/src/components/preRegistration/PreRegistrationComplete.tsx +0 -164
- package/src/components/preRegistration/PreRegistrationInformations.tsx +0 -45
- package/src/components/preRegistration/Prewards.tsx +0 -38
- package/src/components/preRegistration/ShareOptions.tsx +0 -63
- package/src/components/preRegistration/constants.tsx +0 -155
- package/src/components/preRegistration/index.tsx +0 -252
- package/src/components/preRegistration/utils.ts +0 -155
- package/src/hooks/index.ts +0 -1
- package/src/hooks/useEventListener.ts +0 -32
- package/src/types/api/axiosResponse.d.ts +0 -6
- package/src/types/api/preRegistration.d.ts +0 -11
- package/src/types/api/preRegistrationComplete.d.ts +0 -95
- package/src/types/pre-registration-complete.d.ts +0 -39
- package/src/utils/isValidNumber.ts +0 -8
package/dist/api/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosResponse } from 'axios';
|
|
1
|
+
import { AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
2
2
|
import { pageOptions } from '../hooks/usePixel';
|
|
3
3
|
import { GetNetverifyUrlResponseData, UpdateVerificationStatusResponseData, VerificationStatusResponseData } from '../types/verification';
|
|
4
4
|
export { issueTicket, getDelegationTickets } from './guestTicketDelegation';
|
|
@@ -79,7 +79,6 @@ export interface ResponseConfigs {
|
|
|
79
79
|
status: number;
|
|
80
80
|
}
|
|
81
81
|
export declare const getCheckoutPageConfigs: () => Promise<ResponseConfigs>;
|
|
82
|
-
export declare const confirmPreRegistration: (eventId: string | number, data: IConfirmPreRegistrationRequestData) => Promise<any>;
|
|
83
82
|
export declare const getSeatMapData: (eventId: string | number) => Promise<SeatMapDataResponse>;
|
|
84
83
|
export declare const getSeatMapStatuses: (eventId: string | number) => Promise<SeatMapStatusesResponse>;
|
|
85
84
|
export declare const reserveSeat: (eventId: string | number, tierId: string, seatId: string) => Promise<any>;
|
|
@@ -93,3 +92,4 @@ export declare const updateVerificationStatus: () => Promise<{
|
|
|
93
92
|
data: UpdateVerificationStatusResponseData;
|
|
94
93
|
}>;
|
|
95
94
|
export declare const checkCustomerOrder: (orderHash: string) => Promise<any>;
|
|
95
|
+
export declare const refreshSeatReservation: (eventId: string) => Promise<AxiosResponse<any, AxiosRequestConfig<any>>>;
|
|
@@ -20,6 +20,8 @@ export interface IBillingInfoPage {
|
|
|
20
20
|
onGetStatesError?: (e: AxiosError) => void;
|
|
21
21
|
onGetProfileDataSuccess?: (res: any) => void;
|
|
22
22
|
onGetProfileDataError?: (e: AxiosError) => void;
|
|
23
|
+
onAuthorizeSuccess?: () => void;
|
|
24
|
+
onAuthorizeError?: (e: AxiosError) => void;
|
|
23
25
|
onLogin?: () => void;
|
|
24
26
|
onLoginSuccess?: () => void;
|
|
25
27
|
onErrorClose?: () => void;
|
|
@@ -50,4 +52,4 @@ export interface IBillingInfoPage {
|
|
|
50
52
|
isCountryCodeEditable?: boolean;
|
|
51
53
|
onPendingVerification?: () => void;
|
|
52
54
|
}
|
|
53
|
-
export declare const BillingInfoContainer: React.MemoExoticComponent<({ data, ticketHoldersFields, initialValues, buttonName, handleSubmit, theme, onRegisterSuccess, onRegisterError, onSubmitError, onGetCartSuccess, onGetCartError, onGetCountriesSuccess, onGetCountriesError, onGetStatesSuccess, onGetStatesError, onGetProfileDataSuccess, onGetProfileDataError, onLogin, onLoginSuccess, isLoggedIn: pIsLoggedIn, accountInfoTitle, hideLogo, themeOptions, onErrorClose, hideErrorsAlertSection, onSkipBillingPage, skipPage, canSkipHolderNames, onForgotPasswordSuccess, onForgotPasswordError, shouldFetchCountries, onCountdownFinish, enableTimer, logo, showForgotPasswordButton, showSignUpButton, brandOptIn, showPoweredByImage, isCountryCodeEditable, onPendingVerification, }: IBillingInfoPage) => JSX.Element>;
|
|
55
|
+
export declare const BillingInfoContainer: React.MemoExoticComponent<({ 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, shouldFetchCountries, onCountdownFinish, enableTimer, logo, showForgotPasswordButton, showSignUpButton, brandOptIn, showPoweredByImage, isCountryCodeEditable, onPendingVerification, }: IBillingInfoPage) => JSX.Element>;
|
|
@@ -4,7 +4,6 @@ export { FormikPhoneNumberField } from './FormikPhoneNumberField';
|
|
|
4
4
|
export { PhoneNumberField } from './PhoneNumberField';
|
|
5
5
|
export { Loader } from './Loader';
|
|
6
6
|
export { SelectField } from './SelectField';
|
|
7
|
-
export { CopyMessageModal } from './CopyMessageModal';
|
|
8
7
|
export { DatePickerField } from './DatePickerField';
|
|
9
8
|
export { NativeSelectField } from './NativeSelectFeild';
|
|
10
9
|
export { RadioGroupField } from './RadioGroupField';
|
|
@@ -1,16 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import './style.css';
|
|
2
3
|
import { AxiosError } from 'axios';
|
|
3
|
-
import { SyntheticEvent } from 'react';
|
|
4
4
|
export interface IShareButton {
|
|
5
5
|
mainLabel: string;
|
|
6
6
|
subLabel: string;
|
|
7
7
|
platform: string;
|
|
8
8
|
shareData: any;
|
|
9
|
-
points?: number | string;
|
|
10
|
-
onAfterShare?: (event: SyntheticEvent) => void;
|
|
11
|
-
eventActionId?: string;
|
|
12
|
-
oneTimeAction?: boolean;
|
|
13
|
-
alreadyApplied?: boolean;
|
|
14
9
|
}
|
|
15
10
|
export interface IConfirmationLabels {
|
|
16
11
|
confirmationTitle?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { IShareButton } from './index';
|
|
3
3
|
interface SocialButtonsTypes {
|
|
4
4
|
shareLink: string;
|
|
@@ -6,11 +6,8 @@ interface SocialButtonsTypes {
|
|
|
6
6
|
appId: string;
|
|
7
7
|
showDefaultShareButtons: boolean;
|
|
8
8
|
shareButtons: IShareButton[];
|
|
9
|
-
titleText?: string;
|
|
10
|
-
footerText?: string | ReactElement;
|
|
11
9
|
clientLabel?: string;
|
|
12
10
|
showReferralsInfoText?: boolean;
|
|
13
|
-
onAfterShare?: (eventActionId: string | undefined) => void;
|
|
14
11
|
}
|
|
15
|
-
declare const SocialButtons: ({ showDefaultShareButtons, shareLink, name, appId, shareButtons,
|
|
12
|
+
declare const SocialButtons: ({ showDefaultShareButtons, shareLink, name, appId, shareButtons, clientLabel, showReferralsInfoText, }: SocialButtonsTypes) => JSX.Element;
|
|
16
13
|
export default SocialButtons;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import './style.css';
|
|
2
2
|
import { AxiosError } from 'axios';
|
|
3
3
|
import { FC } from 'react';
|
|
4
|
-
|
|
4
|
+
interface IForgotPasswordProps {
|
|
5
5
|
onClose: () => void;
|
|
6
|
-
|
|
6
|
+
onLogin: () => void;
|
|
7
7
|
onForgotPasswordSuccess: (res: any) => void;
|
|
8
8
|
onForgotPasswordError: (e: AxiosError) => void;
|
|
9
9
|
showPoweredByImage?: boolean;
|
|
10
10
|
}
|
|
11
11
|
export declare const ForgotPasswordModal: FC<IForgotPasswordProps>;
|
|
12
|
+
export {};
|
|
@@ -1,11 +1,50 @@
|
|
|
1
1
|
import './style.css';
|
|
2
|
+
import { AxiosError } from 'axios';
|
|
2
3
|
import { FC } from 'react';
|
|
3
|
-
|
|
4
|
-
export interface ILoginModalProps extends ILoginFormProps {
|
|
5
|
-
onLogin: (res: IProfileData) => void;
|
|
4
|
+
interface Props {
|
|
6
5
|
onClose: () => void;
|
|
7
|
-
|
|
6
|
+
onLogin: () => void;
|
|
7
|
+
alreadyHasUser?: boolean;
|
|
8
|
+
userExpired?: boolean;
|
|
9
|
+
onAuthorizeSuccess?: (res: any) => void;
|
|
10
|
+
onAuthorizeError?: (e: AxiosError) => void;
|
|
11
|
+
onGetProfileDataSuccess?: (res: any) => void;
|
|
12
|
+
onGetProfileDataError?: (e: AxiosError) => void;
|
|
8
13
|
onForgotPassword?: () => void;
|
|
9
14
|
onSignup?: () => void;
|
|
15
|
+
modalClassname?: string;
|
|
16
|
+
logo?: string;
|
|
17
|
+
showForgotPasswordButton?: boolean;
|
|
18
|
+
showSignUpButton?: boolean;
|
|
19
|
+
showPoweredByImage?: boolean;
|
|
20
|
+
}
|
|
21
|
+
interface IUserData {
|
|
22
|
+
id: string;
|
|
23
|
+
firstName: string;
|
|
24
|
+
lastName: string;
|
|
25
|
+
email: string;
|
|
26
|
+
city?: string;
|
|
27
|
+
country?: string;
|
|
28
|
+
countryId?: string;
|
|
29
|
+
phone?: string;
|
|
30
|
+
streetAddress?: string;
|
|
31
|
+
state?: string;
|
|
32
|
+
zip?: string;
|
|
33
|
+
zipCode?: string;
|
|
34
|
+
stateId?: string;
|
|
10
35
|
}
|
|
11
|
-
export declare const
|
|
36
|
+
export declare const setLoggedUserData: (data: IUserData) => {
|
|
37
|
+
id: string;
|
|
38
|
+
first_name: string;
|
|
39
|
+
last_name: string;
|
|
40
|
+
email: string;
|
|
41
|
+
confirmEmail: string;
|
|
42
|
+
city: string;
|
|
43
|
+
country: string;
|
|
44
|
+
phone: string;
|
|
45
|
+
street_address: string;
|
|
46
|
+
state: string;
|
|
47
|
+
zip: string;
|
|
48
|
+
};
|
|
49
|
+
export declare const LoginModal: FC<Props>;
|
|
50
|
+
export {};
|
|
@@ -5,9 +5,8 @@ interface ITicketRowProps {
|
|
|
5
5
|
prevTicketTier: any;
|
|
6
6
|
selectedTickets: any;
|
|
7
7
|
handleTicketSelect: any;
|
|
8
|
-
|
|
9
|
-
isSeatMapAllowed?: boolean;
|
|
8
|
+
isSeatMapAllowed?: any;
|
|
10
9
|
tableType?: boolean;
|
|
11
10
|
}
|
|
12
|
-
export declare const TicketRow: ({ ticketTier, prevTicketTier, selectedTickets, handleTicketSelect,
|
|
11
|
+
export declare const TicketRow: ({ ticketTier, prevTicketTier, selectedTickets, handleTicketSelect, isSeatMapAllowed, tableType, }: ITicketRowProps) => JSX.Element;
|
|
13
12
|
export {};
|
|
@@ -2,11 +2,3 @@ export declare const getTicketSelectOptions: (maxCount?: number, minCount?: numb
|
|
|
2
2
|
label: number;
|
|
3
3
|
value: number;
|
|
4
4
|
}[];
|
|
5
|
-
interface eventDatesInfo {
|
|
6
|
-
salesStarted: boolean;
|
|
7
|
-
salesEnded: boolean;
|
|
8
|
-
presalesStarted: boolean;
|
|
9
|
-
presalesEnded: boolean;
|
|
10
|
-
}
|
|
11
|
-
export declare const defineIsSalesClosed: (eventDatesInfo: eventDatesInfo) => boolean;
|
|
12
|
-
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useOnline: (handler: (value: boolean) => void) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -13,12 +13,9 @@ export { RsvpContainer } from './components/rsvpContainer';
|
|
|
13
13
|
export { ResetPasswordContainer } from './components/resetPasswordContainer';
|
|
14
14
|
export { ForgotPasswordModal } from './components/forgotPasswordModal';
|
|
15
15
|
export { AddonsContainter } from './components/addonsContainer';
|
|
16
|
-
export { PreRegistration } from './components/preRegistration';
|
|
17
|
-
export { PreRegistrationComplete } from './components/preRegistration/PreRegistrationComplete';
|
|
18
|
-
export { PreRegistrationInformations } from './components/preRegistration/PreRegistrationInformations';
|
|
19
|
-
export { useCookieListener } from './hooks';
|
|
20
16
|
export { DelegationsContainer } from './components/delegationsContainer';
|
|
21
17
|
export { PoweredBy } from './components/common/PoweredBy';
|
|
22
18
|
export { SeatMapContainer } from './components/seatMapContainer';
|
|
23
19
|
export { IDVerification } from './components/idVerificationContainer';
|
|
24
20
|
export { VERIFICATION_STATUSES } from './components/idVerificationContainer/constants';
|
|
21
|
+
export { useCookieListener } from './hooks/useCookieListener';
|