tf-checkout-react 1.6.6 → 1.7.2

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 (137) hide show
  1. package/README.md +401 -59
  2. package/dist/adapters/customFields.d.ts +1 -0
  3. package/dist/api/checkout.d.ts +2 -0
  4. package/dist/api/common.d.ts +1 -0
  5. package/dist/api/index.d.ts +2 -0
  6. package/dist/api/preRegistrationComplete.d.ts +1 -1
  7. package/dist/components/addonsContainer/AddonComponent.d.ts +6 -1
  8. package/dist/components/addonsContainer/SimpleAddonsContainer.d.ts +17 -0
  9. package/dist/components/addonsContainer/index.d.ts +6 -1
  10. package/dist/components/billing-info-container/hooks/index.d.ts +3 -0
  11. package/dist/components/billing-info-container/hooks/usePaymentContext.d.ts +5 -0
  12. package/dist/components/billing-info-container/hooks/usePaymentRedirect.d.ts +14 -0
  13. package/dist/components/billing-info-container/hooks/useStripePayment.d.ts +18 -0
  14. package/dist/components/billing-info-container/index.d.ts +13 -2
  15. package/dist/components/billing-info-container/utils.d.ts +26 -1
  16. package/dist/components/common/DatePickerField.d.ts +7 -1
  17. package/dist/components/common/PhoneNumberField.d.ts +1 -1
  18. package/dist/components/confirmationContainer/index.d.ts +4 -1
  19. package/dist/components/countdown/index.d.ts +1 -1
  20. package/dist/components/forgotPasswordModal/index.d.ts +2 -1
  21. package/dist/components/myTicketsContainer/index.d.ts +3 -2
  22. package/dist/components/orderDetailsContainer/index.d.ts +8 -1
  23. package/dist/components/paymentContainer/OrderDetails.d.ts +9 -0
  24. package/dist/components/paymentContainer/handlePayment.d.ts +15 -0
  25. package/dist/components/paymentContainer/index.d.ts +12 -6
  26. package/dist/components/preRegistration/FieldsSection.d.ts +7 -1
  27. package/dist/components/preRegistration/PreRegistrationComplete.d.ts +8 -0
  28. package/dist/components/preRegistration/constants.d.ts +2 -2
  29. package/dist/components/preRegistration/index.d.ts +6 -0
  30. package/dist/components/resetPasswordContainer/index.d.ts +2 -2
  31. package/dist/components/ticketsContainer/InfoIcon.d.ts +5 -0
  32. package/dist/components/ticketsContainer/TicketsSection.d.ts +3 -2
  33. package/dist/components/ticketsContainer/TimeSlotsSection.d.ts +25 -0
  34. package/dist/components/ticketsContainer/index.d.ts +29 -5
  35. package/dist/components/timerWidget/index.d.ts +2 -1
  36. package/dist/constants/index.d.ts +5 -0
  37. package/dist/index.d.ts +4 -1
  38. package/dist/tf-checkout-react.cjs.development.js +11284 -9565
  39. package/dist/tf-checkout-react.cjs.development.js.map +1 -1
  40. package/dist/tf-checkout-react.cjs.production.min.js +1 -1
  41. package/dist/tf-checkout-react.cjs.production.min.js.map +1 -1
  42. package/dist/tf-checkout-react.esm.js +11293 -9577
  43. package/dist/tf-checkout-react.esm.js.map +1 -1
  44. package/dist/tf-checkout-styles.css +1 -1
  45. package/dist/types/add_on.d.ts +1 -0
  46. package/dist/types/checkoutPageConfigs.d.ts +1 -1
  47. package/dist/types/order-data.d.ts +3 -1
  48. package/dist/utils/auth.d.ts +8 -0
  49. package/dist/utils/createCheckoutDataBodyWithDefaultHolder.d.ts +1 -0
  50. package/dist/utils/customFields.d.ts +11 -0
  51. package/dist/utils/getDomain.d.ts +1 -1
  52. package/dist/utils/index.d.ts +1 -1
  53. package/dist/utils/setConfigs.d.ts +1 -0
  54. package/package.json +14 -8
  55. package/src/adapters/customFields.ts +7 -1
  56. package/src/api/auth.ts +2 -1
  57. package/src/api/checkout.ts +9 -4
  58. package/src/api/common.ts +49 -2
  59. package/src/api/index.ts +1 -0
  60. package/src/api/interceptors.ts +7 -23
  61. package/src/api/preRegistrationComplete.ts +1 -1
  62. package/src/api/publicRequest.ts +10 -0
  63. package/src/components/addonsContainer/AddonComponent.tsx +96 -11
  64. package/src/components/addonsContainer/SimpleAddonsContainer.tsx +420 -0
  65. package/src/components/addonsContainer/index.tsx +198 -47
  66. package/src/components/billing-info-container/hooks/index.ts +3 -0
  67. package/src/components/billing-info-container/hooks/usePaymentContext.ts +22 -0
  68. package/src/components/billing-info-container/hooks/usePaymentRedirect.ts +147 -0
  69. package/src/components/billing-info-container/hooks/useStripePayment.ts +121 -0
  70. package/src/components/billing-info-container/index.tsx +859 -418
  71. package/src/components/billing-info-container/{utils.ts → utils.tsx} +124 -1
  72. package/src/components/common/CheckboxField/index.tsx +1 -1
  73. package/src/components/common/CustomField.tsx +39 -3
  74. package/src/components/common/DatePickerField.tsx +25 -10
  75. package/src/components/common/PhoneNumberField.tsx +4 -2
  76. package/src/components/common/SnackbarAlert.tsx +32 -34
  77. package/src/components/confirmationContainer/config.ts +3 -3
  78. package/src/components/confirmationContainer/index.tsx +20 -1
  79. package/src/components/confirmationContainer/social-buttons.tsx +5 -3
  80. package/src/components/confirmationContainer/style.css +9 -5
  81. package/src/components/countdown/index.tsx +22 -22
  82. package/src/components/delegationsContainer/IssueComponent.tsx +2 -1
  83. package/src/components/forgotPasswordModal/index.tsx +44 -13
  84. package/src/components/loginForm/index.tsx +1 -1
  85. package/src/components/loginModal/index.tsx +19 -27
  86. package/src/components/loginModal/style.css +3 -1
  87. package/src/components/myTicketsContainer/index.tsx +13 -9
  88. package/src/components/orderDetailsContainer/index.tsx +206 -174
  89. package/src/components/paymentContainer/OrderDetails.tsx +257 -0
  90. package/src/components/paymentContainer/handlePayment.ts +86 -0
  91. package/src/components/paymentContainer/index.tsx +299 -259
  92. package/src/components/paymentContainer/style.css +141 -0
  93. package/src/components/preRegistration/FieldsSection.tsx +8 -0
  94. package/src/components/preRegistration/PreRegistrationComplete.tsx +138 -118
  95. package/src/components/preRegistration/PreRegistrationInformations.tsx +21 -15
  96. package/src/components/preRegistration/constants.tsx +10 -4
  97. package/src/components/preRegistration/index.tsx +233 -179
  98. package/src/components/preRegistration/style.css +3 -0
  99. package/src/components/registerForm/constants.tsx +3 -1
  100. package/src/components/registerForm/index.tsx +3 -3
  101. package/src/components/registerModal/index.tsx +47 -72
  102. package/src/components/resetPasswordContainer/index.tsx +20 -14
  103. package/src/components/seatMapContainer/TicketsSection.tsx +2 -2
  104. package/src/components/signupModal/index.tsx +13 -6
  105. package/src/components/ticketResale/index.tsx +7 -0
  106. package/src/components/ticketsContainer/InfoIcon.tsx +35 -0
  107. package/src/components/ticketsContainer/PromoCodeSection.tsx +34 -28
  108. package/src/components/ticketsContainer/TicketRow.tsx +1 -1
  109. package/src/components/ticketsContainer/TicketsSection.tsx +189 -57
  110. package/src/components/ticketsContainer/TimeSlotsSection.tsx +120 -0
  111. package/src/components/ticketsContainer/index.tsx +268 -106
  112. package/src/components/timerWidget/index.tsx +15 -3
  113. package/src/components/timerWidget/style.css +2 -1
  114. package/src/constants/index.ts +2 -0
  115. package/src/env.ts +14 -6
  116. package/src/hoc/CustomFields/index.tsx +9 -1
  117. package/src/index.ts +7 -2
  118. package/src/types/add_on.ts +1 -0
  119. package/src/types/api/cart.d.ts +8 -0
  120. package/src/types/api/checkout.d.ts +58 -7
  121. package/src/types/api/common.d.ts +30 -0
  122. package/src/types/api/orders.d.ts +19 -3
  123. package/src/types/api/payment.d.ts +6 -2
  124. package/src/types/api/preRegistrationComplete.d.ts +2 -2
  125. package/src/types/checkoutPageConfigs.ts +1 -1
  126. package/src/types/order-data.ts +3 -1
  127. package/src/types/pre-registration-complete.d.ts +6 -1
  128. package/src/utils/auth.ts +32 -0
  129. package/src/utils/cookies.ts +42 -11
  130. package/src/utils/createCheckoutDataBodyWithDefaultHolder.ts +3 -1
  131. package/src/utils/customFields.ts +22 -0
  132. package/src/utils/getDomain.ts +10 -4
  133. package/src/utils/index.ts +1 -1
  134. package/src/utils/setConfigs.ts +3 -1
  135. package/dist/components/stripePayment/index.d.ts +0 -24
  136. package/src/components/stripePayment/index.tsx +0 -281
  137. package/src/components/stripePayment/style.css +0 -60
@@ -8,4 +8,5 @@ export declare const fieldDataAdapter: (field: IGroupItem) => IGroupItem;
8
8
  export declare const customFieldsDataAdapter: (data: any) => {
9
9
  ticketsFields: IGroupItem[];
10
10
  orderFields: IGroupItem[];
11
+ addOnFields: IGroupItem[];
11
12
  };
@@ -1 +1,3 @@
1
+ import { ICheckoutResponse } from '../types/api/checkout';
1
2
  export declare const postOnCheckout: (data: any, freeTicket?: boolean) => Promise<ICheckoutResponse>;
3
+ export declare const updateCheckout: (data: any) => Promise<ICheckoutResponse>;
@@ -1,5 +1,6 @@
1
1
  export declare const getEvent: (id: string | number, pk?: string | undefined) => Promise<IEventResponse>;
2
2
  export declare const getTickets: (eventId: string | number, promoCode: string, pk?: string | undefined) => Promise<ITicketsAdaptedResponse>;
3
+ export declare const getTimeSlotsByDate: (eventId: string | number, date: string, promoCode?: string | undefined, pk?: string | undefined) => Promise<ITimeslotsAdaptedResponse>;
3
4
  export declare const getCountries: () => Promise<ICountriesResponse>;
4
5
  export declare const getStates: (countryId: string | number) => Promise<IStatesResponse>;
5
6
  export declare const sendRSVPInfo: (eventId: number, data: {
@@ -42,6 +42,7 @@ export interface AttributesConfig {
42
42
  collect_mandatory_instagram: boolean;
43
43
  collect_optional_instagram: boolean;
44
44
  skip_billing_page: boolean;
45
+ cart: ICart[];
45
46
  }
46
47
  export interface ConfigsData {
47
48
  attributes: AttributesConfig;
@@ -59,6 +60,7 @@ export declare const getCheckoutPageConfigs: () => Promise<ResponseConfigs>;
59
60
  export declare const getCustomFields: (eventId: string) => Promise<{
60
61
  ticketsFields: import("../types").IGroupItem[];
61
62
  orderFields: import("../types").IGroupItem[];
63
+ addOnFields: import("../types").IGroupItem[];
62
64
  }>;
63
65
  export declare const updateOrderCustomFields: (eventId: string, orderId: string, customFieldsData: Record<string, any>) => Promise<AxiosResponse<any, any>>;
64
66
  export declare const updateTicketHoldersCustomFields: (eventId: string, customFieldsData: Record<string, any>, ticketHash: string) => Promise<AxiosResponse<any, any>>;
@@ -1,3 +1,3 @@
1
- export declare const getPreRegistrationInfluancers: (data: IInfluancersRequestData) => Promise<IInfluancersResponseData>;
1
+ export declare const getPreRegistrationInfluencers: (data: IInfluancersRequestData) => Promise<IInfluancersResponseData>;
2
2
  export declare const getPreRegistrationShareOptions: (data: IShareOptionsRequestData) => Promise<IShareOptionsResponseData>;
3
3
  export declare const submitShareAction: (data: ISubmitShareActionRequestData) => Promise<ISubmitShareActionResponseData>;
@@ -4,6 +4,11 @@ interface IAddonComponentProps {
4
4
  data: any;
5
5
  selectOptions: any;
6
6
  handleAddonChange?: (...res: any) => void;
7
+ addOnDataWithCustomFields: any;
8
+ configs: any;
9
+ values: any;
10
+ errors: any;
11
+ onCustomFieldChange?: (addon: any, groupId: string | number, fieldName: string, value: any) => void;
7
12
  }
8
- declare const AddonComponent: ({ classNamePrefix, data, selectOptions, handleAddonChange, }: IAddonComponentProps) => JSX.Element;
13
+ declare const AddonComponent: ({ classNamePrefix, data, selectOptions, handleAddonChange, addOnDataWithCustomFields, configs, values, errors, onCustomFieldChange, }: IAddonComponentProps) => JSX.Element;
9
14
  export default AddonComponent;
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ export interface ISimpleAddonContainerProps {
3
+ classNamePrefix?: string;
4
+ onGetAddonsPageInfoSuccess?: (res: any) => void;
5
+ onGetAddonsPageInfoError?: (error: any) => void;
6
+ descriptionTrigger?: 'click' | 'hover' | 'always';
7
+ addOnDataWithCustomFields: any;
8
+ configs: any;
9
+ eventId: string;
10
+ onAddOnSelect?: (id: string, value: string, addon: any, fieldUpdates: any) => void;
11
+ handleConfirm?: (values: any) => void;
12
+ }
13
+ export interface ObjectLiteral {
14
+ [key: string]: any;
15
+ }
16
+ export declare const SimpleAddonsContainer: ({ classNamePrefix, onGetAddonsPageInfoSuccess, onGetAddonsPageInfoError, descriptionTrigger, addOnDataWithCustomFields, configs, eventId, onAddOnSelect, handleConfirm, }: ISimpleAddonContainerProps) => JSX.Element;
17
+ export default SimpleAddonsContainer;
@@ -11,8 +11,13 @@ export interface IAddonContainterProps {
11
11
  onConfirmSelectionError?: (error: any) => void;
12
12
  onCountdownFinish?: () => void;
13
13
  onPendingVerification?: () => void;
14
+ samePage?: boolean;
15
+ descriptionTrigger?: 'click' | 'hover' | 'always';
16
+ addOnDataWithCustomFields: any;
17
+ configs: any;
18
+ onAddOnSelect?: (id: string, value: string, addon: any) => void;
14
19
  }
15
20
  export interface ObjectLiteral {
16
21
  [key: string]: any;
17
22
  }
18
- export declare const AddonsContainter: ({ classNamePrefix, enableBillingInfoAutoCreate, enableTimer, onGetAddonsPageInfoSuccess, onGetAddonsPageInfoError, onPostCheckoutSuccess, onPostCheckoutError, onConfirmSelectionSuccess, onConfirmSelectionError, onCountdownFinish, onPendingVerification, }: IAddonContainterProps) => JSX.Element;
23
+ export declare const AddonsContainter: ({ classNamePrefix, enableBillingInfoAutoCreate, enableTimer, onGetAddonsPageInfoSuccess, onGetAddonsPageInfoError, onPostCheckoutSuccess, onPostCheckoutError, onConfirmSelectionSuccess, onConfirmSelectionError, onCountdownFinish, onPendingVerification, samePage, descriptionTrigger, addOnDataWithCustomFields, configs, onAddOnSelect, }: IAddonContainterProps) => JSX.Element | null;
@@ -0,0 +1,3 @@
1
+ export { usePaymentRedirect } from './usePaymentRedirect';
2
+ export { useStripePayment } from './useStripePayment';
3
+ export { usePaymentContext } from './usePaymentContext';
@@ -0,0 +1,5 @@
1
+ export declare const usePaymentContext: () => {
2
+ storePaymentContext: (context: any) => void;
3
+ getPaymentContext: () => any;
4
+ clearPaymentContext: () => void;
5
+ };
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { Stripe } from '@stripe/stripe-js';
3
+ import { FormikHelpers } from 'formik';
4
+ interface UsePaymentRedirectProps {
5
+ stripeRef: React.MutableRefObject<Stripe | null>;
6
+ setError: (error: string | null) => void;
7
+ setLoading: (loading: boolean) => void;
8
+ removeReferralKey: () => void;
9
+ removeAdditionalConfigs: () => void;
10
+ handleSubmit: (values: any, formikHelpers: FormikHelpers<any>, eventId: any, checkoutResponse: any, checkoutUpdateResponse: any, paymentResponse: any) => void;
11
+ isBrowser: boolean;
12
+ }
13
+ export declare const usePaymentRedirect: ({ stripeRef, setError, setLoading, removeReferralKey, removeAdditionalConfigs, handleSubmit, isBrowser, }: UsePaymentRedirectProps) => void;
14
+ export {};
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ import { FormikHelpers } from 'formik';
3
+ interface PaymentData {
4
+ attributes: any;
5
+ isFreeTickets: boolean;
6
+ updatedOrderData: any;
7
+ eventId: string;
8
+ }
9
+ interface UseStripePaymentProps {
10
+ stripeRef: any;
11
+ elementsRef: React.MutableRefObject<any>;
12
+ setError: (error: string | null) => void;
13
+ isBrowser: boolean;
14
+ }
15
+ export declare const useStripePayment: ({ stripeRef, elementsRef, setError, isBrowser, }: UseStripePaymentProps) => {
16
+ processPayment: (paymentDataResponse: any, values: any, formikHelpers: FormikHelpers<any>, checkoutResponse: any, checkoutUpdateResponse: any, paymentData: PaymentData) => Promise<null>;
17
+ };
18
+ export {};
@@ -1,14 +1,16 @@
1
- /// <reference types="react" />
2
1
  import './style.css';
3
2
  import { ThemeOptions } from '@mui/material';
4
3
  import { CSSProperties } from '@mui/styles';
5
4
  import { AxiosError } from 'axios';
6
5
  import { FormikHelpers, FormikValues } from 'formik';
6
+ import React from 'react';
7
7
  import { IBillingInfoData } from '../../types';
8
+ import { IAddonContainterProps } from '../addonsContainer';
9
+ import { IPaymentPage } from '../paymentContainer';
8
10
  export interface IBillingInfoPage {
9
11
  data?: IBillingInfoData[];
10
12
  ticketHoldersFields?: IBillingInfoData;
11
- handleSubmit?: (values: FormikValues, formikHelpers: FormikHelpers<FormikValues>, eventId: any, res: any) => void;
13
+ handleSubmit?: (values: FormikValues, formikHelpers: FormikHelpers<FormikValues>, eventId: any, res: any, checkoutUpdateResponse?: any, paymentResponse?: any) => void;
12
14
  onRegisterSuccess?: (value: any) => void;
13
15
  onRegisterError?: (e: AxiosError, email: string) => void;
14
16
  onSubmitError?: (e: AxiosError) => void;
@@ -25,8 +27,11 @@ export interface IBillingInfoPage {
25
27
  onLogin?: () => void;
26
28
  onLoginSuccess?: () => void;
27
29
  onErrorClose?: () => void;
30
+ onCheckoutUpdateSuccess?: (res: any) => void;
31
+ onCheckoutUpdateError?: (e: AxiosError) => void;
28
32
  initialValues?: FormikValues;
29
33
  buttonName?: string;
34
+ freeOrderButtonName?: string;
30
35
  theme?: 'light' | 'dark';
31
36
  isLoggedIn?: boolean;
32
37
  accountInfoTitle?: string | JSX.Element;
@@ -53,6 +58,12 @@ export interface IBillingInfoPage {
53
58
  customFieldsOrderKeys?: string[];
54
59
  customFieldsTicketHolderKeys?: string[];
55
60
  onPendingVerification?: () => void;
61
+ includeAddons?: boolean;
62
+ addonsProps?: IAddonContainterProps;
63
+ addOnDataWithCustomFields?: any;
64
+ isSinglePageCheckout?: boolean;
65
+ paymentProps?: Partial<IPaymentPage>;
66
+ paymentSectionAddon?: React.ReactNode;
56
67
  }
57
68
  declare const WithCustomFieldsBillingInfoContainer: (props: any) => JSX.Element;
58
69
  export { WithCustomFieldsBillingInfoContainer as BillingInfoContainer };
@@ -1,11 +1,12 @@
1
- /// <reference types="react" />
2
1
  import { FormikErrors, FormikValues } from 'formik';
2
+ import React from 'react';
3
3
  import { AttributesConfig } from '../../api';
4
4
  import { IGroupItem } from '../../types';
5
5
  export interface ILoggedInValues {
6
6
  emailLogged?: string;
7
7
  firstNameLogged?: string;
8
8
  lastNameLogged?: string;
9
+ phoneLogged?: string;
9
10
  }
10
11
  export interface IValues {
11
12
  [key: string]: any;
@@ -32,3 +33,27 @@ export declare const assingUniqueIds: (data: any) => any;
32
33
  export declare const isRequiredField: (element: IGroupItem, configs?: AttributesConfig | null | undefined) => boolean;
33
34
  export declare const getFieldLabel: (element: IGroupItem, configs?: AttributesConfig | null | undefined) => string | JSX.Element;
34
35
  export declare const getFieldComponent: (element: IGroupItem) => any;
36
+ /**
37
+ * Renders a React component with the provided props
38
+ * @param Component - The React component to render
39
+ * @param props - The props to apply to the component
40
+ * @returns JSX element with applied props
41
+ */
42
+ export declare const renderComponentWithProps: <T extends Record<string, any>>(Component: React.ComponentType<T>, props: T) => React.ReactElement<T, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)>;
43
+ export declare const filterBillingInfoFields: (fields: IGroupItem[], options: {
44
+ showDOB: boolean;
45
+ hideTtfOptIn: boolean;
46
+ hidePhoneField: boolean;
47
+ flagRequirePhone: boolean;
48
+ collectMandatoryWalletAddress: boolean;
49
+ collectMandatoryJobTitle: boolean;
50
+ collectMandatoryBusinessCategory: boolean;
51
+ collectMandatoryCompany: boolean;
52
+ collectMandatoryInstagram: boolean;
53
+ flagFreeTicket: boolean;
54
+ hideWalletAddressField: boolean;
55
+ hideJobTitleField: boolean;
56
+ hideBusinessCategoryField: boolean;
57
+ hideCompanyField: boolean;
58
+ hideInstagramField: boolean;
59
+ }) => IGroupItem[];
@@ -1,14 +1,20 @@
1
1
  /// <reference types="react" />
2
+ import { ThemeOptions } from '@mui/material';
3
+ import { CSSProperties } from '@mui/styles';
2
4
  import { FieldInputProps, FormikProps } from 'formik';
3
5
  export interface IDatePickerFieldProps {
4
6
  label: string;
5
7
  field: FieldInputProps<any>;
6
8
  form: FormikProps<any>;
7
9
  theme: 'dark' | 'light';
10
+ themeOptions?: ThemeOptions & {
11
+ input?: CSSProperties;
12
+ checkbox?: CSSProperties;
13
+ };
8
14
  useCompact?: boolean;
9
15
  }
10
16
  interface IOtherProps {
11
17
  [key: string]: any;
12
18
  }
13
- export declare const DatePickerField: ({ label, field, form, theme, useCompact, dateFormat, placeholder, }: IDatePickerFieldProps & IOtherProps) => JSX.Element;
19
+ export declare const DatePickerField: ({ label, field, form, theme, useCompact, themeOptions, dateFormat, placeholder, }: IDatePickerFieldProps & IOtherProps) => JSX.Element;
14
20
  export {};
@@ -11,4 +11,4 @@ export interface IPhoneNumberField {
11
11
  defaultCountry?: string;
12
12
  isCountryCodeEditable?: boolean;
13
13
  }
14
- export declare const PhoneNumberField: ({ label, field, form: { errors, touched, setFieldError, values, initialValues, setFieldValue, setFieldTouched, setErrors, }, disableDropdown, defaultCountry, fill, setPhoneValidationIsLoading, isCountryCodeEditable, }: IPhoneNumberField) => JSX.Element;
14
+ export declare const PhoneNumberField: ({ label, field, form: { errors, touched, setFieldError, values, initialValues, setFieldValue, setFieldTouched, setErrors, submitCount, }, disableDropdown, defaultCountry, fill, setPhoneValidationIsLoading, isCountryCodeEditable, }: IPhoneNumberField) => JSX.Element;
@@ -11,6 +11,7 @@ export interface IShareButton {
11
11
  eventActionId?: string;
12
12
  oneTimeAction?: boolean;
13
13
  alreadyApplied?: boolean;
14
+ btnClassName?: string;
14
15
  }
15
16
  export interface IConfirmationLabels {
16
17
  confirmationTitle?: string;
@@ -35,5 +36,7 @@ export interface IConfirmationPage {
35
36
  showReferralsInfoText?: boolean;
36
37
  showCopyInfoModal?: boolean;
37
38
  showPricingNoteSection?: boolean;
39
+ showOrderDetailsBtn?: boolean;
40
+ onOrderDetailsClick?: (data: ICheckoutCompleteData) => void;
38
41
  }
39
- export declare const ConfirmationContainer: ({ confirmationLabels, hasCopyIcon, isReferralEnabled, showDefaultShareButtons, messengerAppId, shareButtons, onGetConfirmationDataSuccess, onGetConfirmationDataError, orderHash, onLinkCopied, clientLabel, showReferralsInfoText, showCopyInfoModal, showPricingNoteSection, }: IConfirmationPage) => JSX.Element;
42
+ export declare const ConfirmationContainer: ({ confirmationLabels, hasCopyIcon, isReferralEnabled, showDefaultShareButtons, messengerAppId, shareButtons, onGetConfirmationDataSuccess, onGetConfirmationDataError, orderHash, onLinkCopied, clientLabel, showReferralsInfoText, showCopyInfoModal, showPricingNoteSection, showOrderDetailsBtn, onOrderDetailsClick, }: IConfirmationPage) => JSX.Element;
@@ -10,5 +10,5 @@ interface CountdownTypes {
10
10
  callback?: () => void;
11
11
  isLoggedIn?: boolean;
12
12
  }
13
- declare function Countdown({ startDate, timezone, title, message, showMessage, disableLeadingZero, callback, isLoggedIn }: CountdownTypes): JSX.Element;
13
+ declare function Countdown({ startDate, timezone, title, message, showMessage, disableLeadingZero, callback, isLoggedIn, }: CountdownTypes): JSX.Element;
14
14
  export default Countdown;
@@ -4,8 +4,9 @@ import { FC } from 'react';
4
4
  export interface IForgotPasswordProps {
5
5
  onClose: () => void;
6
6
  onLoginButtonClick: () => void;
7
- onForgotPasswordSuccess: (res: any) => void;
7
+ onForgotPasswordSuccess: (res: IAxiosResponseData) => void;
8
8
  onForgotPasswordError: (e: AxiosError) => void;
9
9
  showPoweredByImage?: boolean;
10
+ displaySuccessMessage?: boolean;
10
11
  }
11
12
  export declare const ForgotPasswordModal: FC<IForgotPasswordProps>;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import './style.css';
2
+ import React from 'react';
3
3
  interface MyTicketsTypes {
4
4
  handleDetailsInfo: (id: string | number) => void;
5
5
  onGetOrdersSuccess: (res: any) => void;
@@ -9,7 +9,8 @@ interface MyTicketsTypes {
9
9
  selectEventsLabel?: string;
10
10
  openLoginModal?: () => void;
11
11
  hideDetailsButton?: boolean;
12
+ customNoOrderContent?: React.ReactNode;
12
13
  columns?: IColumnData[];
13
14
  }
14
- export declare const MyTicketsContainer: ({ handleDetailsInfo, onGetOrdersSuccess, onGetOrdersError, theme, selectEventsLabel, logo, hideDetailsButton, columns, openLoginModal, }: MyTicketsTypes) => JSX.Element;
15
+ export declare const MyTicketsContainer: ({ handleDetailsInfo, onGetOrdersSuccess, onGetOrdersError, theme, selectEventsLabel, logo, hideDetailsButton, columns, openLoginModal, customNoOrderContent, }: MyTicketsTypes) => JSX.Element;
15
16
  export {};
@@ -1,5 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import './style.css';
3
+ import { ThemeOptions } from '@mui/material';
4
+ import { CSSProperties } from '@mui/styles';
3
5
  import { IActionColumns, ITicketTypes } from './ticketsTable';
4
6
  interface OrderDetailsTypes {
5
7
  columns: Array<{
@@ -19,6 +21,10 @@ interface OrderDetailsTypes {
19
21
  personalLinkIcon?: string;
20
22
  displayColumnNameInRow?: boolean;
21
23
  canSellTicket?: boolean;
24
+ themeOptions?: ThemeOptions & {
25
+ input?: CSSProperties;
26
+ checkbox?: CSSProperties;
27
+ };
22
28
  ticketsTableColumns?: Array<{
23
29
  id?: string | number;
24
30
  key: keyof ITicketTypes & keyof IActionColumns;
@@ -29,6 +35,7 @@ interface OrderDetailsTypes {
29
35
  referralTitle?: string;
30
36
  itemsTitle?: string;
31
37
  ticketsTitle?: string;
38
+ displayLoading?: boolean;
32
39
  }
33
40
  export interface CustomFieldOption {
34
41
  id: string;
@@ -54,5 +61,5 @@ export interface CustomFieldTypes {
54
61
  ticketHash?: string;
55
62
  options?: CustomFieldOption[];
56
63
  }
57
- export declare const OrderDetailsContainer: ({ columns, onGetOrdersSuccess, onGetOrdersError, onRemoveFromResaleSuccess, onRemoveFromResaleError, onResaleTicketSuccess, onResaleTicketError, onUpdateOrderCustomFieldsSuccess, onUpdateOrderCustomFieldsError, onUpdateTicketHolderCustomFieldsSuccess, onUpdateTicketHolderCustomFieldsError, onReturnButtonClick, personalLinkIcon, displayColumnNameInRow, canSellTicket, ticketsTableColumns, ordersPath, orderId: pOrderId, referralTitle, itemsTitle, ticketsTitle, }: OrderDetailsTypes) => JSX.Element;
64
+ export declare const OrderDetailsContainer: ({ columns, onGetOrdersSuccess, onGetOrdersError, onRemoveFromResaleSuccess, onRemoveFromResaleError, onResaleTicketSuccess, onResaleTicketError, onUpdateOrderCustomFieldsSuccess, onUpdateOrderCustomFieldsError, onUpdateTicketHolderCustomFieldsSuccess, onUpdateTicketHolderCustomFieldsError, onReturnButtonClick, personalLinkIcon, displayColumnNameInRow, canSellTicket, ticketsTableColumns, ordersPath, orderId: pOrderId, referralTitle, itemsTitle, ticketsTitle, themeOptions, displayLoading, }: OrderDetailsTypes) => JSX.Element;
58
65
  export {};
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ interface OrderDetailsProps {
3
+ orderData: any;
4
+ paymentFieldsData: any[];
5
+ customMobileText?: string;
6
+ handleCountdownFinish?: () => void;
7
+ }
8
+ export declare const OrderDetails: ({ orderData, paymentFieldsData, customMobileText, handleCountdownFinish }: OrderDetailsProps) => JSX.Element;
9
+ export {};
@@ -0,0 +1,15 @@
1
+ interface Options {
2
+ reviewData: any;
3
+ isFreeTickets: boolean;
4
+ paymentPlanIsAvailable: boolean;
5
+ showPaymentPlanSection: boolean;
6
+ handlePayment: any;
7
+ setPaymentIsLoading: any;
8
+ setError: any;
9
+ orderData: any;
10
+ eventId: any;
11
+ isBrowser: boolean;
12
+ onPaymentError: any;
13
+ }
14
+ export declare const handlePaymentMiddleWare: (error: any, data: object, { reviewData, isFreeTickets, paymentPlanIsAvailable, showPaymentPlanSection, handlePayment, setPaymentIsLoading, setError, orderData, eventId, isBrowser, onPaymentError, }: Options) => Promise<void>;
15
+ export {};
@@ -2,7 +2,8 @@
2
2
  import './style.css';
3
3
  import { ThemeOptions } from '@mui/material';
4
4
  import { CSSProperties } from '@mui/styles';
5
- import { StripeCardNumberElementOptions, StripeElementsOptions } from '@stripe/stripe-js';
5
+ import { StripeElementsOptions } from '@stripe/stripe-js';
6
+ import { StripePaymentElementOptions } from '@stripe/stripe-js';
6
7
  import { AxiosError } from 'axios';
7
8
  import { IPaymentField } from '../../types';
8
9
  export interface IPaymentPage {
@@ -15,18 +16,23 @@ export interface IPaymentPage {
15
16
  onGetPaymentDataSuccess: (value: any) => void;
16
17
  onGetPaymentDataError: (value: AxiosError) => void;
17
18
  onPaymentError: (value: AxiosError, slug?: string) => void;
18
- stripeCardOptions?: StripeCardNumberElementOptions;
19
- disableZipSection: boolean;
20
19
  themeOptions?: ThemeOptions & {
21
20
  input?: CSSProperties;
22
21
  checkbox?: CSSProperties;
23
22
  };
24
23
  elementsOptions?: StripeElementsOptions;
24
+ paymentElementOptions?: StripePaymentElementOptions;
25
25
  onCountdownFinish?: () => void;
26
26
  enableTimer?: boolean;
27
- enablePaymentPlan?: boolean;
28
- paymentButtonText?: string;
29
27
  paymentInfoLabel?: string;
30
28
  orderInfoLabel?: string;
29
+ displayPaymentButton?: boolean;
30
+ hidePaymentForm?: boolean;
31
+ hideFieldsBlock?: boolean;
32
+ isSinglePageCheckout?: boolean;
33
+ stripePublishableKey?: string;
34
+ stripeAccountId?: string;
35
+ onStripeReady?: (stripe: any, elements: any) => void;
36
+ enablePaymentPlan?: boolean;
31
37
  }
32
- export declare const PaymentContainer: ({ paymentFields, handlePayment, formTitle, errorText, checkoutData, onErrorClose, onGetPaymentDataSuccess, onGetPaymentDataError, onPaymentError, stripeCardOptions, disableZipSection, themeOptions, elementsOptions, onCountdownFinish, enableTimer, enablePaymentPlan, paymentButtonText, orderInfoLabel, paymentInfoLabel, }: IPaymentPage) => JSX.Element;
38
+ export declare const PaymentContainer: ({ paymentFields, handlePayment, formTitle, errorText, checkoutData, onErrorClose, onGetPaymentDataSuccess, onGetPaymentDataError, onPaymentError, themeOptions, elementsOptions, paymentElementOptions, onCountdownFinish, enableTimer, orderInfoLabel, paymentInfoLabel, displayPaymentButton, hidePaymentForm, hideFieldsBlock, isSinglePageCheckout, stripePublishableKey, stripeAccountId, onStripeReady, enablePaymentPlan, }: IPaymentPage) => JSX.Element;
@@ -1,5 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { FormikValues } from 'formik';
3
+ import { ThemeOptions } from "@mui/material";
4
+ import { CSSProperties } from "@mui/styles";
3
5
  export interface IFieldsSectionProps {
4
6
  formFields?: IFormFieldsSection[];
5
7
  values: FormikValues;
@@ -8,6 +10,10 @@ export interface IFieldsSectionProps {
8
10
  [key: string]: string | number;
9
11
  }[];
10
12
  theme?: 'dark' | 'light';
13
+ themeOptions?: ThemeOptions & {
14
+ input?: CSSProperties;
15
+ checkbox?: CSSProperties;
16
+ };
11
17
  containerClass?: string;
12
18
  }
13
- export declare const FieldsSection: ({ formFields, countries, values, setFieldValue, theme, containerClass, }: IFieldsSectionProps) => JSX.Element;
19
+ export declare const FieldsSection: ({ formFields, countries, values, setFieldValue, theme, containerClass, themeOptions, }: IFieldsSectionProps) => JSX.Element;
@@ -1,5 +1,13 @@
1
+ import { ThemeOptions } from '@mui/material';
2
+ import { CSSProperties } from '@mui/styles';
1
3
  import { AxiosError } from 'axios';
2
4
  import { FC } from 'react';
5
+ import "./style.css";
3
6
  export declare const PreRegistrationComplete: FC<IPreRegistrationCompleteProps & {
4
7
  onGetConfirmationDataError?: (error: AxiosError) => void;
8
+ skipInitialValidation?: boolean;
9
+ themeOptions?: ThemeOptions & {
10
+ input?: CSSProperties;
11
+ checkbox?: CSSProperties;
12
+ };
5
13
  }>;
@@ -1,2 +1,2 @@
1
- export declare const formFieldsNotLoggedIn: IFormFieldsSection[];
2
- export declare const formFieldsLoggedIn: IFormFieldsSection[];
1
+ export declare const getFormFieldsNotLoggedIn: (clientName?: string | number | undefined) => IFormFieldsSection[];
2
+ export declare const getFormFieldsLoggedIn: (clientName?: string | number | undefined) => IFormFieldsSection[];
@@ -1,3 +1,5 @@
1
+ import { ThemeOptions } from '@mui/material';
2
+ import { CSSProperties } from '@mui/styles';
1
3
  import { AxiosError } from 'axios';
2
4
  import { FC } from 'react';
3
5
  import { IForgotPasswordProps } from '../forgotPasswordModal';
@@ -12,6 +14,10 @@ interface IPreRegistrationProps extends Props, IForgotPasswordProps {
12
14
  onConfirmationSuccess?: (res: any) => void;
13
15
  onConfirmationError?: (e: AxiosError) => void;
14
16
  onLoginSuccess?: (res: any) => void;
17
+ themeOptions?: ThemeOptions & {
18
+ input?: CSSProperties;
19
+ checkbox?: CSSProperties;
20
+ };
15
21
  }
16
22
  export declare const PreRegistration: FC<IPreRegistrationProps>;
17
23
  export {};
@@ -1,6 +1,6 @@
1
- import { FC } from 'react';
2
- import { AxiosError } from 'axios';
3
1
  import './style.css';
2
+ import { AxiosError } from 'axios';
3
+ import { FC } from 'react';
4
4
  interface IResetPasswordProps {
5
5
  token?: string;
6
6
  onResetPasswordSuccess?: (res: any) => void;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ declare const InfoIcon: ({ size }: {
3
+ size?: number | undefined;
4
+ }) => JSX.Element;
5
+ export default InfoIcon;
@@ -12,8 +12,9 @@ interface ITicketsSectionProps {
12
12
  ticketsHeaderComponent?: ReactNode;
13
13
  tableTicketsHeaderComponent?: ReactNode;
14
14
  showGroupNameBlock?: boolean;
15
- currencySybmol?: string;
15
+ currencySymbol?: string;
16
16
  isSeatMapAllowed?: boolean;
17
+ descriptionTrigger?: 'click' | 'hover';
17
18
  }
18
- export declare const TicketsSection: ({ event, ticketsList, selectedTickets, handleTicketSelect, sortBySoldOut, ticketsHeaderComponent, tableTicketsHeaderComponent, hideTicketsHeader, hideTableTicketsHeader, showGroupNameBlock, currencySybmol, isSeatMapAllowed, tableTickets, }: ITicketsSectionProps) => JSX.Element;
19
+ export declare const TicketsSection: ({ event, ticketsList, selectedTickets, handleTicketSelect, sortBySoldOut, ticketsHeaderComponent, tableTicketsHeaderComponent, hideTicketsHeader, hideTableTicketsHeader, showGroupNameBlock, currencySymbol, isSeatMapAllowed, tableTickets, descriptionTrigger, }: ITicketsSectionProps) => JSX.Element;
19
20
  export {};
@@ -0,0 +1,25 @@
1
+ import React, { ReactNode } from 'react';
2
+ interface Props {
3
+ event: any;
4
+ eventId: number;
5
+ availableDates: string[];
6
+ selectedDate: string | null;
7
+ timeSlotGroups: {
8
+ [key: string]: any[];
9
+ };
10
+ setTimeSlotGroups: (value: {
11
+ [key: string]: any[];
12
+ }) => void;
13
+ setSelectedDate: (value: string | null) => void;
14
+ getTimeSlots: (date: string | null, type?: string) => Promise<void>;
15
+ selectedTickets: any;
16
+ handleTicketSelect: any;
17
+ sortBySoldOut: boolean;
18
+ hideTicketsHeader: boolean;
19
+ ticketsHeaderComponent?: ReactNode;
20
+ showGroupNameBlock?: boolean;
21
+ currencySymbol?: string;
22
+ isSeatMapAllowed?: boolean;
23
+ }
24
+ declare const TimeSlotsSection: React.FC<Props>;
25
+ export default TimeSlotsSection;
@@ -9,6 +9,9 @@ interface CartSuccess {
9
9
  hash?: string | number;
10
10
  total?: string | number;
11
11
  hasAddOn?: boolean;
12
+ eventSlug?: string;
13
+ cart?: ICart[];
14
+ currencySymbol?: string;
12
15
  }
13
16
  export interface IGetTickets {
14
17
  eventId: number;
@@ -16,12 +19,24 @@ export interface IGetTickets {
16
19
  getTicketsLabel?: string;
17
20
  contentStyle?: React.CSSProperties;
18
21
  onAddToCartError: (e: AxiosError) => void;
19
- onGetTicketsSuccess: (response: any) => void;
22
+ onGetTicketsSuccess: (response: {
23
+ data: {
24
+ attributes: {
25
+ tickets: ITicketData[];
26
+ };
27
+ };
28
+ }) => void;
20
29
  onGetTicketsPress: () => void;
21
30
  onGetTicketsError: (e: AxiosError) => void;
22
31
  onLogoutSuccess: () => void;
23
32
  onLogoutError: (e: AxiosError) => void;
24
- onGetProfileDataSuccess: (response: any) => void;
33
+ onGetProfileDataSuccess: (response: {
34
+ data: {
35
+ attributes: {
36
+ [key: string]: string | number | boolean | null;
37
+ };
38
+ };
39
+ }) => void;
25
40
  onGetProfileDataError: (e: AxiosError) => void;
26
41
  onLoginSuccess: () => void;
27
42
  handleNotInvitedModalClose: () => void;
@@ -41,7 +56,7 @@ export interface IGetTickets {
41
56
  sortBySoldOut?: boolean;
42
57
  disableCountdownLeadingZero?: boolean;
43
58
  isLoggedIn?: boolean;
44
- actionsSectionComponent?: any;
59
+ actionsSectionComponent?: ReactNode;
45
60
  ticketsHeaderComponent?: ReactNode;
46
61
  hideTicketsHeader?: boolean;
47
62
  tableTicketsHeaderComponent?: ReactNode;
@@ -52,10 +67,19 @@ export interface IGetTickets {
52
67
  showPoweredByImage?: boolean;
53
68
  promoText?: string;
54
69
  showGroupNameBlock?: boolean;
55
- currencySybmol?: string;
70
+ currencySymbol?: string;
56
71
  onReserveButtonClick?: () => void;
57
72
  onPendingVerification?: () => void;
58
73
  showAlertIcons?: boolean;
74
+ submitMode?: 'auto' | 'click';
75
+ onPreRegistrationSuccess?: (response: any) => void;
76
+ onPreRegistrationError?: (e: AxiosError) => void;
77
+ onPreRegistrationGetCountriesSuccess?: (res: any) => void;
78
+ onPreRegistrationGetCountriesError?: (e: AxiosError) => void;
79
+ onForgotPasswordSuccess?: (res: any) => void;
80
+ onForgotPasswordError?: (e: AxiosError) => void;
81
+ showForgotPasswordButton?: boolean;
82
+ logo?: string;
59
83
  }
60
84
  export interface ITicket {
61
85
  id: string | number;
@@ -65,5 +89,5 @@ export interface ISelectedTickets {
65
89
  isTable: boolean;
66
90
  [key: string]: string | number | boolean;
67
91
  }
68
- export declare const TicketsContainer: ({ onLoginSuccess, getTicketsLabel, eventId, onAddToCartSuccess, contentStyle, onAddToCartError, onGetTicketsSuccess, onGetTicketsError, onLogoutSuccess, onLogoutError, onGetProfileDataSuccess, onGetProfileDataError, onGetTicketsPress, theme, queryPromoCode, isPromotionsEnabled, themeOptions, isAccessCodeEnabled, hideSessionButtons, hideWaitingList, enableBillingInfoAutoCreate, isButtonScrollable, sortBySoldOut, disableCountdownLeadingZero, isLoggedIn, actionsSectionComponent: ActionsSectionComponent, ticketsHeaderComponent, hideTicketsHeader, tableTicketsHeaderComponent, hideTableTicketsHeader, enableInfluencersSection, enableAddOns, handleNotInvitedModalClose, handleInvalidLinkModalClose, ordersPath, showPoweredByImage, promoText, showGroupNameBlock, currencySybmol, onReserveButtonClick, onPendingVerification, showAlertIcons, }: IGetTickets) => JSX.Element;
92
+ export declare const TicketsContainer: ({ onLoginSuccess, getTicketsLabel, eventId, onAddToCartSuccess, contentStyle, onAddToCartError, onGetTicketsSuccess, onGetTicketsError, onLogoutSuccess, onLogoutError, onGetProfileDataSuccess, onGetProfileDataError, onGetTicketsPress, theme, queryPromoCode, isPromotionsEnabled, themeOptions, isAccessCodeEnabled, hideSessionButtons, hideWaitingList, enableBillingInfoAutoCreate, isButtonScrollable, sortBySoldOut, disableCountdownLeadingZero, isLoggedIn, actionsSectionComponent: ActionsSectionComponent, ticketsHeaderComponent, hideTicketsHeader, tableTicketsHeaderComponent, hideTableTicketsHeader, enableInfluencersSection, enableAddOns, handleNotInvitedModalClose, handleInvalidLinkModalClose, ordersPath, showPoweredByImage, promoText, showGroupNameBlock, currencySymbol, onReserveButtonClick, onPendingVerification, showAlertIcons, onPreRegistrationSuccess, onPreRegistrationError, onPreRegistrationGetCountriesSuccess, onPreRegistrationGetCountriesError, onForgotPasswordSuccess, onForgotPasswordError, showForgotPasswordButton, logo, }: IGetTickets) => JSX.Element;
69
93
  export {};
@@ -4,6 +4,7 @@ export interface ITimerWidgetPage {
4
4
  expires_at: number;
5
5
  buyLoading?: boolean;
6
6
  onCountdownFinish?: () => void;
7
+ container?: string;
7
8
  }
8
9
  export interface IRenderer {
9
10
  minutes: number;
@@ -11,5 +12,5 @@ export interface IRenderer {
11
12
  completed: number;
12
13
  handleCountdownFinish: () => void;
13
14
  }
14
- declare const _default: React.MemoExoticComponent<({ expires_at, buyLoading, onCountdownFinish, }: ITimerWidgetPage) => JSX.Element | null>;
15
+ declare const _default: React.MemoExoticComponent<({ expires_at, buyLoading, onCountdownFinish, container, }: ITimerWidgetPage) => JSX.Element | null>;
15
16
  export default _default;
@@ -1 +1,6 @@
1
1
  export declare const X_TF_ECOMMERCE = "X-TF-ECOMMERCE";
2
+ export declare const FEES_STYLES: {
3
+ TRADITIONAL: string;
4
+ DISPLAY_BOTH: string;
5
+ };
6
+ export declare const DEFAULT_FEES_STYLE: string;