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.
Files changed (81) hide show
  1. package/dist/api/index.d.ts +2 -2
  2. package/dist/components/billing-info-container/index.d.ts +3 -1
  3. package/dist/components/common/index.d.ts +0 -1
  4. package/dist/components/confirmationContainer/index.d.ts +1 -6
  5. package/dist/components/confirmationContainer/social-buttons.d.ts +2 -5
  6. package/dist/components/forgotPasswordModal/index.d.ts +3 -2
  7. package/dist/components/loginForm/index.d.ts +0 -1
  8. package/dist/components/loginModal/index.d.ts +44 -5
  9. package/dist/components/ticketsContainer/TicketRow.d.ts +2 -3
  10. package/dist/components/ticketsContainer/utils.d.ts +0 -8
  11. package/dist/hooks/useOnline.d.ts +1 -0
  12. package/dist/index.d.ts +1 -4
  13. package/dist/tf-checkout-react.cjs.development.js +3159 -4210
  14. package/dist/tf-checkout-react.cjs.development.js.map +1 -1
  15. package/dist/tf-checkout-react.cjs.production.min.js +1 -1
  16. package/dist/tf-checkout-react.cjs.production.min.js.map +1 -1
  17. package/dist/tf-checkout-react.esm.js +3161 -4213
  18. package/dist/tf-checkout-react.esm.js.map +1 -1
  19. package/package.json +1 -1
  20. package/src/api/index.ts +49 -51
  21. package/src/components/billing-info-container/index.tsx +7 -1
  22. package/src/components/common/NativeSelectFeild/index.tsx +1 -1
  23. package/src/components/common/SelectField/index.tsx +3 -1
  24. package/src/components/common/index.tsx +0 -1
  25. package/src/components/confirmationContainer/config.ts +55 -62
  26. package/src/components/confirmationContainer/index.tsx +25 -10
  27. package/src/components/confirmationContainer/social-buttons.tsx +20 -43
  28. package/src/components/forgotPasswordModal/index.tsx +4 -4
  29. package/src/components/loginForm/index.tsx +1 -5
  30. package/src/components/loginModal/index.tsx +188 -39
  31. package/src/components/seatMapContainer/index.tsx +74 -52
  32. package/src/components/stripePayment/index.tsx +4 -1
  33. package/src/components/ticketsContainer/ReferralLogic.tsx +1 -1
  34. package/src/components/ticketsContainer/TicketRow.tsx +14 -13
  35. package/src/components/ticketsContainer/TicketsSection.tsx +33 -13
  36. package/src/components/ticketsContainer/index.tsx +39 -71
  37. package/src/components/ticketsContainer/utils.ts +6 -23
  38. package/src/components/timerWidget/index.tsx +7 -11
  39. package/src/hooks/useOnline.ts +21 -0
  40. package/src/index.ts +2 -6
  41. package/src/utils/cookies.ts +7 -7
  42. package/dist/api/preRegistrationComplete.d.ts +0 -3
  43. package/dist/components/common/CopyField.d.ts +0 -12
  44. package/dist/components/common/CopyMessageModal.d.ts +0 -7
  45. package/dist/components/common/socials.d.ts +0 -10
  46. package/dist/components/preRegistration/FieldsSection.d.ts +0 -13
  47. package/dist/components/preRegistration/Influancers.d.ts +0 -2
  48. package/dist/components/preRegistration/PreRegistrationComplete.d.ts +0 -5
  49. package/dist/components/preRegistration/PreRegistrationInformations.d.ts +0 -2
  50. package/dist/components/preRegistration/Prewards.d.ts +0 -2
  51. package/dist/components/preRegistration/ShareOptions.d.ts +0 -2
  52. package/dist/components/preRegistration/constants.d.ts +0 -2
  53. package/dist/components/preRegistration/index.d.ts +0 -15
  54. package/dist/components/preRegistration/utils.d.ts +0 -12
  55. package/dist/hooks/index.d.ts +0 -1
  56. package/dist/hooks/useEventListener.d.ts +0 -1
  57. package/dist/images/instagram.svg +0 -5
  58. package/dist/images/spotify.svg +0 -6
  59. package/dist/utils/isValidNumber.d.ts +0 -1
  60. package/src/api/preRegistrationComplete.ts +0 -37
  61. package/src/assets/images/instagram.svg +0 -5
  62. package/src/assets/images/spotify.svg +0 -6
  63. package/src/components/common/CopyField.tsx +0 -53
  64. package/src/components/common/CopyMessageModal.tsx +0 -34
  65. package/src/components/common/socials.tsx +0 -33
  66. package/src/components/preRegistration/FieldsSection.tsx +0 -142
  67. package/src/components/preRegistration/Influancers.tsx +0 -31
  68. package/src/components/preRegistration/PreRegistrationComplete.tsx +0 -164
  69. package/src/components/preRegistration/PreRegistrationInformations.tsx +0 -45
  70. package/src/components/preRegistration/Prewards.tsx +0 -38
  71. package/src/components/preRegistration/ShareOptions.tsx +0 -63
  72. package/src/components/preRegistration/constants.tsx +0 -155
  73. package/src/components/preRegistration/index.tsx +0 -252
  74. package/src/components/preRegistration/utils.ts +0 -155
  75. package/src/hooks/index.ts +0 -1
  76. package/src/hooks/useEventListener.ts +0 -32
  77. package/src/types/api/axiosResponse.d.ts +0 -6
  78. package/src/types/api/preRegistration.d.ts +0 -11
  79. package/src/types/api/preRegistrationComplete.d.ts +0 -95
  80. package/src/types/pre-registration-complete.d.ts +0 -39
  81. package/src/utils/isValidNumber.ts +0 -8
@@ -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
- import { ReactElement } from 'react';
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, titleText, footerText, clientLabel, onAfterShare, showReferralsInfoText, }: SocialButtonsTypes) => JSX.Element;
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
- export interface IForgotPasswordProps {
4
+ interface IForgotPasswordProps {
5
5
  onClose: () => void;
6
- onLoginButtonClick: () => void;
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 {};
@@ -12,7 +12,6 @@ export interface ILoginFormProps {
12
12
  logo?: string;
13
13
  showForgotPasswordButton?: boolean;
14
14
  showSignUpButton?: boolean;
15
- showPoweredByImage?: boolean;
16
15
  }
17
16
  interface IUserData {
18
17
  id: string;
@@ -1,11 +1,50 @@
1
1
  import './style.css';
2
+ import { AxiosError } from 'axios';
2
3
  import { FC } from 'react';
3
- import { ILoginFormProps } from '../loginForm';
4
- export interface ILoginModalProps extends ILoginFormProps {
5
- onLogin: (res: IProfileData) => void;
4
+ interface Props {
6
5
  onClose: () => void;
7
- modalClassname?: string;
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 LoginModal: FC<ILoginModalProps>;
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
- event: any;
9
- isSeatMapAllowed?: boolean;
8
+ isSeatMapAllowed?: any;
10
9
  tableType?: boolean;
11
10
  }
12
- export declare const TicketRow: ({ ticketTier, prevTicketTier, selectedTickets, handleTicketSelect, event, isSeatMapAllowed, tableType, }: ITicketRowProps) => JSX.Element;
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';