tf-checkout-react 1.4.25 → 1.4.26-beta.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.
- package/dist/adapters/customFields.d.ts +11 -0
- package/dist/adapters/index.d.ts +1 -0
- package/dist/api/auth.d.ts +1 -1
- package/dist/api/checkout.d.ts +1 -1
- package/dist/api/index.d.ts +8 -3
- package/dist/api/preRegistrationComplete.d.ts +3 -0
- package/dist/api/publicRequest.d.ts +0 -1
- package/dist/components/billing-info-container/index.d.ts +7 -4
- package/dist/components/billing-info-container/utils.d.ts +8 -5
- package/dist/components/common/Checkbox.d.ts +11 -0
- package/dist/components/common/CheckboxField/index.d.ts +9 -0
- package/dist/components/common/CopyField.d.ts +12 -0
- package/dist/components/common/CopyMessageModal.d.ts +7 -0
- package/dist/components/common/CustomField.d.ts +3 -2
- package/dist/components/common/index.d.ts +2 -0
- package/dist/components/common/socials.d.ts +10 -0
- package/dist/components/confirmationContainer/index.d.ts +7 -7
- package/dist/components/confirmationContainer/social-buttons.d.ts +5 -2
- package/dist/components/forgotPasswordModal/index.d.ts +2 -3
- package/dist/components/idVerificationContainer/constants.d.ts +4 -0
- package/dist/components/idVerificationContainer/index.d.ts +1 -1
- package/dist/components/loginForm/index.d.ts +1 -0
- package/dist/components/loginModal/index.d.ts +2 -3
- package/dist/components/orderDetailsContainer/CustomFieldsForm.d.ts +12 -0
- package/dist/components/orderDetailsContainer/TicketHolderCustomFields.d.ts +10 -0
- package/dist/components/orderDetailsContainer/index.d.ts +29 -1
- package/dist/components/orderDetailsContainer/ticketsTable.d.ts +4 -1
- package/dist/components/orderDetailsContainer/utils/index.d.ts +6 -0
- package/dist/components/paymentContainer/index.d.ts +1 -1
- package/dist/components/preRegistration/FieldsSection.d.ts +13 -0
- package/dist/components/preRegistration/Influancers.d.ts +2 -0
- package/dist/components/preRegistration/PreRegistrationComplete.d.ts +5 -0
- package/dist/components/preRegistration/PreRegistrationInformations.d.ts +2 -0
- package/dist/components/preRegistration/Prewards.d.ts +2 -0
- package/dist/components/preRegistration/ShareOptions.d.ts +2 -0
- package/dist/components/preRegistration/constants.d.ts +2 -0
- package/dist/components/preRegistration/index.d.ts +17 -0
- package/dist/components/preRegistration/utils.d.ts +12 -0
- package/dist/components/seatMapContainer/addToCart.d.ts +0 -7
- package/dist/components/signupModal/index.d.ts +1 -4
- package/dist/components/stripePayment/index.d.ts +3 -1
- package/dist/components/ticketsContainer/TicketRow.d.ts +3 -2
- package/dist/components/ticketsContainer/index.d.ts +0 -7
- package/dist/components/ticketsContainer/utils.d.ts +9 -0
- package/dist/hoc/CustomFields/index.d.ts +3 -0
- package/dist/hoc/index.d.ts +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useEventListener.d.ts +1 -0
- package/dist/hooks/useLocalStorageListener.d.ts +1 -0
- package/dist/images/edit.svg +10 -0
- package/dist/images/instagram.svg +5 -0
- package/dist/images/spotify.svg +6 -0
- package/dist/index.d.ts +4 -1
- package/dist/tf-checkout-react.cjs.development.js +2839 -752
- 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 +2841 -753
- package/dist/tf-checkout-react.esm.js.map +1 -1
- package/dist/types/billing-info-data.d.ts +2 -2
- package/dist/types/verification.d.ts +2 -1
- package/dist/utils/adaptStripeErrors.d.ts +8 -0
- package/dist/utils/createCheckoutDataBodyWithDefaultHolder.d.ts +3 -0
- package/dist/utils/customFields.d.ts +24 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/isValidNumber.d.ts +1 -0
- package/package.json +1 -1
- package/src/adapters/customFields.ts +79 -0
- package/src/adapters/index.ts +1 -0
- package/src/api/auth.ts +2 -8
- package/src/api/checkout.ts +1 -8
- package/src/api/index.ts +76 -14
- package/src/api/interceptors.ts +0 -11
- package/src/api/orders.ts +3 -3
- package/src/api/preRegistrationComplete.ts +37 -0
- package/src/api/publicRequest.ts +0 -4
- package/src/api/resale.ts +2 -2
- package/src/assets/images/edit.svg +10 -0
- package/src/assets/images/instagram.svg +5 -0
- package/src/assets/images/spotify.svg +6 -0
- package/src/components/addonsContainer/index.tsx +0 -20
- package/src/components/billing-info-container/index.tsx +124 -85
- package/src/components/billing-info-container/utils.ts +41 -14
- package/src/components/common/{CheckboxField.tsx → Checkbox.tsx} +3 -3
- package/src/components/common/CheckboxField/index.tsx +41 -0
- package/src/components/common/CopyField.tsx +53 -0
- package/src/components/common/CopyMessageModal.tsx +34 -0
- package/src/components/common/CustomField.tsx +4 -1
- package/src/components/common/NativeSelectFeild/index.tsx +1 -1
- package/src/components/common/RadioGroupField/index.tsx +1 -1
- package/src/components/common/SelectField/index.tsx +1 -1
- package/src/components/common/index.tsx +2 -0
- package/src/components/common/socials.tsx +33 -0
- package/src/components/confirmationContainer/config.ts +62 -55
- package/src/components/confirmationContainer/index.tsx +11 -31
- package/src/components/confirmationContainer/social-buttons.tsx +43 -20
- package/src/components/forgotPasswordModal/index.tsx +4 -4
- package/src/components/idVerificationContainer/constants.ts +5 -0
- package/src/components/idVerificationContainer/index.tsx +81 -29
- package/src/components/loginForm/index.tsx +4 -0
- package/src/components/loginModal/index.tsx +5 -4
- package/src/components/myTicketsContainer/index.tsx +2 -3
- package/src/components/orderDetailsContainer/CustomFieldsForm.tsx +75 -0
- package/src/components/orderDetailsContainer/TicketHolderCustomFields.tsx +100 -0
- package/src/components/orderDetailsContainer/index.tsx +175 -20
- package/src/components/orderDetailsContainer/ticketsTable.tsx +55 -33
- package/src/components/orderDetailsContainer/utils/index.tsx +55 -0
- package/src/components/paymentContainer/PaymentPlanSection.tsx +52 -35
- package/src/components/paymentContainer/index.tsx +12 -6
- package/src/components/preRegistration/FieldsSection.tsx +142 -0
- package/src/components/preRegistration/Influancers.tsx +34 -0
- package/src/components/preRegistration/PreRegistrationComplete.tsx +164 -0
- package/src/components/preRegistration/PreRegistrationInformations.tsx +54 -0
- package/src/components/preRegistration/Prewards.tsx +41 -0
- package/src/components/preRegistration/ShareOptions.tsx +77 -0
- package/src/components/preRegistration/constants.tsx +161 -0
- package/src/components/preRegistration/index.tsx +276 -0
- package/src/components/preRegistration/utils.ts +155 -0
- package/src/components/seatMapContainer/addToCart.ts +1 -14
- package/src/components/signupModal/index.tsx +3 -12
- package/src/components/stripePayment/index.tsx +22 -8
- package/src/components/ticketResale/index.tsx +2 -7
- package/src/components/ticketsContainer/ReferralLogic.tsx +1 -1
- package/src/components/ticketsContainer/TicketRow.tsx +17 -14
- package/src/components/ticketsContainer/TicketsSection.tsx +2 -0
- package/src/components/ticketsContainer/index.tsx +78 -47
- package/src/components/ticketsContainer/utils.ts +30 -6
- package/src/components/waitingList/index.tsx +87 -64
- package/src/env.ts +1 -1
- package/src/hoc/CustomFields/index.tsx +77 -0
- package/src/hoc/index.ts +1 -0
- package/src/hooks/index.ts +1 -0
- package/src/hooks/useEventListener.ts +32 -0
- package/src/hooks/useLocalStorageListener.ts +27 -0
- package/src/index.ts +6 -2
- package/src/types/api/common.d.ts +7 -5
- package/src/types/api/payment.d.ts +7 -1
- package/src/types/api/preRegistration.d.ts +11 -0
- package/src/types/api/preRegistrationComplete.d.ts +95 -0
- package/src/types/billing-info-data.ts +2 -2
- package/src/types/pre-registration-complete.d.ts +42 -0
- package/src/types/verification.ts +2 -1
- package/src/utils/adaptStripeErrors.ts +26 -0
- package/src/utils/cookies.ts +7 -7
- package/src/utils/createCheckoutDataBodyWithDefaultHolder.ts +3 -0
- package/src/utils/customFields.ts +58 -0
- package/src/utils/downloadPDF.tsx +2 -12
- package/src/utils/index.ts +1 -0
- package/src/utils/isValidNumber.ts +8 -0
- package/dist/components/common/CheckboxField.d.ts +0 -11
- package/src/components/common/dist/PhoneNumberField.js +0 -96
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IGroupItem } from '../types';
|
|
2
|
+
export declare const optionsAdapter: (options: any) => {
|
|
3
|
+
id: any;
|
|
4
|
+
label: any;
|
|
5
|
+
value: any;
|
|
6
|
+
}[];
|
|
7
|
+
export declare const fieldDataAdapter: (field: IGroupItem) => IGroupItem;
|
|
8
|
+
export declare const customFieldsDataAdapter: (data: any) => {
|
|
9
|
+
ticketsFields: IGroupItem[];
|
|
10
|
+
orderFields: IGroupItem[];
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { customFieldsDataAdapter } from './customFields';
|
package/dist/api/auth.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const authorize: (data: IAuthorizeRequestData) => Promise<IProfileResponse>;
|
|
2
2
|
export declare const signUp: (data: ISignupRequestData) => Promise<IProfileResponse>;
|
|
3
3
|
export declare const register: (data: FormData) => Promise<IProfileResponse>;
|
|
4
|
-
export declare const getProfileData: (
|
|
4
|
+
export declare const getProfileData: () => Promise<IProfileResponse>;
|
|
5
5
|
export declare const logout: () => Promise<IAxiosResponseData>;
|
package/dist/api/checkout.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const postOnCheckout: (data: any,
|
|
1
|
+
export declare const postOnCheckout: (data: any, freeTicket?: boolean) => Promise<ICheckoutResponse>;
|
package/dist/api/index.d.ts
CHANGED
|
@@ -11,8 +11,6 @@ export { getPaymentData, getConditions, handlePaymentSuccess, handleFreeSuccess,
|
|
|
11
11
|
export { resaleTicket, removeFromResale, processTicket, declineInvitation, } from './resale';
|
|
12
12
|
export { issueTicket, getDelegationTickets } from './guestTicketDelegation';
|
|
13
13
|
export declare const setCustomHeader: (response: any) => void;
|
|
14
|
-
export declare const handleSetAccessToken: (token: string) => void;
|
|
15
|
-
export declare const getAccessToken: (data: FormData) => Promise<AxiosResponse<any, any>>;
|
|
16
14
|
export declare const handlePaymentData: (orderHash: string, data: any) => Promise<AxiosResponse<any, any>>;
|
|
17
15
|
export declare const createPaymentPlan: (orderHash: string, stripePaymentMethodId: string) => Promise<AxiosResponse<any, any>>;
|
|
18
16
|
export declare const forgotPassword: (email: string) => Promise<AxiosResponse<any, any>>;
|
|
@@ -58,6 +56,13 @@ export interface ResponseConfigs {
|
|
|
58
56
|
status: number;
|
|
59
57
|
}
|
|
60
58
|
export declare const getCheckoutPageConfigs: () => Promise<ResponseConfigs>;
|
|
59
|
+
export declare const getCustomFields: (eventId: string) => Promise<{
|
|
60
|
+
ticketsFields: import("../types").IGroupItem[];
|
|
61
|
+
orderFields: import("../types").IGroupItem[];
|
|
62
|
+
}>;
|
|
63
|
+
export declare const updateOrderCustomFields: (eventId: string, orderId: string, customFieldsData: Record<string, any>) => Promise<AxiosResponse<any, any>>;
|
|
64
|
+
export declare const updateTicketHoldersCustomFields: (eventId: string, customFieldsData: Record<string, any>, ticketHash: string) => Promise<AxiosResponse<any, any>>;
|
|
65
|
+
export declare const confirmPreRegistration: (eventId: string | number, data: IConfirmPreRegistrationRequestData) => Promise<any>;
|
|
61
66
|
export declare const getSeatMapData: (eventId: string | number) => Promise<SeatMapDataResponse>;
|
|
62
67
|
export declare const getSeatMapStatuses: (eventId: string | number) => Promise<SeatMapStatusesResponse>;
|
|
63
68
|
export declare const reserveSeat: (eventId: string | number, tierId: string, seatId: string) => Promise<any>;
|
|
@@ -71,4 +76,4 @@ export declare const updateVerificationStatus: () => Promise<{
|
|
|
71
76
|
data: UpdateVerificationStatusResponseData;
|
|
72
77
|
}>;
|
|
73
78
|
export declare const checkCustomerOrder: (orderHash: string) => Promise<any>;
|
|
74
|
-
export declare const refreshSeatReservation: (eventId: string) => Promise<AxiosResponse<any, AxiosRequestConfig<any>>>;
|
|
79
|
+
export declare const refreshSeatReservation: (eventId: string, orderId: string) => Promise<AxiosResponse<any, AxiosRequestConfig<any>>>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const getPreRegistrationInfluancers: (data: IInfluancersRequestData) => Promise<IInfluancersResponseData>;
|
|
2
|
+
export declare const getPreRegistrationShareOptions: (data: IShareOptionsRequestData) => Promise<IShareOptionsResponseData>;
|
|
3
|
+
export declare const submitShareAction: (data: ISubmitShareActionRequestData) => Promise<ISubmitShareActionResponseData>;
|
|
@@ -3,7 +3,6 @@ export declare const setAxiosHeader: (key: string, value: string | number) => vo
|
|
|
3
3
|
interface IPublicRequest extends AxiosInstance {
|
|
4
4
|
setBaseUrl: (baseUrl: string) => void;
|
|
5
5
|
setGuestToken: (guestToken: string) => void;
|
|
6
|
-
setAccessToken: (token: string) => void;
|
|
7
6
|
}
|
|
8
7
|
export declare const publicRequest: IPublicRequest;
|
|
9
8
|
export declare const setBaseUrl: (baseUrl: string) => void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import './style.css';
|
|
2
3
|
import { ThemeOptions } from '@mui/material';
|
|
3
4
|
import { CSSProperties } from '@mui/styles';
|
|
4
5
|
import { AxiosError } from 'axios';
|
|
5
6
|
import { FormikHelpers, FormikValues } from 'formik';
|
|
6
|
-
import React from 'react';
|
|
7
7
|
import { IBillingInfoData } from '../../types';
|
|
8
8
|
export interface IBillingInfoPage {
|
|
9
9
|
data?: IBillingInfoData[];
|
|
@@ -20,8 +20,8 @@ export interface IBillingInfoPage {
|
|
|
20
20
|
onGetStatesError?: (e: AxiosError) => void;
|
|
21
21
|
onGetProfileDataSuccess?: (res: any) => void;
|
|
22
22
|
onGetProfileDataError?: (e: AxiosError) => void;
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
onGetCheckoutConfigsSuccess?: (res: any) => void;
|
|
24
|
+
onGetCheckoutConfigsError?: (e: AxiosError) => void;
|
|
25
25
|
onLogin?: () => void;
|
|
26
26
|
onLoginSuccess?: () => void;
|
|
27
27
|
onErrorClose?: () => void;
|
|
@@ -50,6 +50,9 @@ export interface IBillingInfoPage {
|
|
|
50
50
|
brandOptIn?: boolean;
|
|
51
51
|
showPoweredByImage?: boolean;
|
|
52
52
|
isCountryCodeEditable?: boolean;
|
|
53
|
+
customFieldsOrderKeys?: string[];
|
|
54
|
+
customFieldsTicketHolderKeys?: string[];
|
|
53
55
|
onPendingVerification?: () => void;
|
|
54
56
|
}
|
|
55
|
-
|
|
57
|
+
declare const WithCustomFieldsBillingInfoContainer: (props: any) => JSX.Element;
|
|
58
|
+
export { WithCustomFieldsBillingInfoContainer as BillingInfoContainer };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { FormikErrors, FormikValues } from 'formik';
|
|
3
|
+
import { AttributesConfig } from '../../api';
|
|
3
4
|
import { IGroupItem } from '../../types';
|
|
4
5
|
export interface ILoggedInValues {
|
|
5
6
|
emailLogged?: string;
|
|
@@ -9,23 +10,25 @@ export interface ILoggedInValues {
|
|
|
9
10
|
export interface IValues {
|
|
10
11
|
[key: string]: any;
|
|
11
12
|
}
|
|
12
|
-
export declare const getInitialValues: (data?: any, propsInitialValues?: IValues, userValues?: any) => IValues;
|
|
13
|
+
export declare const getInitialValues: (data?: any, propsInitialValues?: IValues, userValues?: any, ticketHoldersFields?: any, ticketsQuantity?: any) => IValues;
|
|
13
14
|
export declare const createRegisterFormData: (values: IValues | undefined, checkoutBody: {
|
|
14
15
|
attributes: {
|
|
15
16
|
[key: string]: any;
|
|
16
17
|
};
|
|
17
18
|
}, flagFreeTicket?: boolean) => FormData;
|
|
18
|
-
interface ICheckoutBody {
|
|
19
|
+
export interface ICheckoutBody {
|
|
19
20
|
attributes: {
|
|
20
21
|
[key: string]: any;
|
|
21
22
|
};
|
|
23
|
+
data_capture?: {
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
};
|
|
22
26
|
}
|
|
23
27
|
export declare const createCheckoutDataBody: (ticketsQuantity: number, values?: IValues, logedInValues?: ILoggedInValues, includeDob?: boolean) => ICheckoutBody;
|
|
24
28
|
export declare const getValidateFunctions: (element: IGroupItem, states: {
|
|
25
29
|
[key: string]: any;
|
|
26
30
|
}[], values: FormikValues, errors: FormikErrors<any>) => (...value: any) => any;
|
|
27
31
|
export declare const assingUniqueIds: (data: any) => any;
|
|
28
|
-
export declare const isRequiredField: (element: IGroupItem) => boolean;
|
|
29
|
-
export declare const getFieldLabel: (element: IGroupItem) => string | JSX.Element;
|
|
32
|
+
export declare const isRequiredField: (element: IGroupItem, configs?: AttributesConfig | null | undefined) => boolean;
|
|
33
|
+
export declare const getFieldLabel: (element: IGroupItem, configs?: AttributesConfig | null | undefined) => string | JSX.Element;
|
|
30
34
|
export declare const getFieldComponent: (element: IGroupItem) => any;
|
|
31
|
-
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FieldInputProps } from 'formik';
|
|
3
|
+
export interface ICheckboxField {
|
|
4
|
+
label: string | number | JSX.Element;
|
|
5
|
+
field?: FieldInputProps<any>;
|
|
6
|
+
}
|
|
7
|
+
interface IOtherProps {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}
|
|
10
|
+
export declare const Checkbox: ({ label, field, selectOptions, theme, setFieldValue, disableDropdown, setPhoneValidationIsLoading, defaultCountry, required, uniqueId, dateFormat, datePlaceholder, isCountryCodeEditable, ...rest }: ICheckboxField & IOtherProps) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FieldInputProps, FormikProps } from 'formik';
|
|
3
|
+
interface ICheckboxField {
|
|
4
|
+
label: string | number | JSX.Element;
|
|
5
|
+
field: FieldInputProps<any>;
|
|
6
|
+
form: FormikProps<any>;
|
|
7
|
+
}
|
|
8
|
+
export declare const CheckboxField: ({ label, field, form: { touched, errors }, }: ICheckboxField) => JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface ICopyFieldProps {
|
|
3
|
+
copyValue: string;
|
|
4
|
+
onLinkCopied?: () => void;
|
|
5
|
+
copyIconSrc?: string;
|
|
6
|
+
copyTitle?: string;
|
|
7
|
+
hasCopyIcon: boolean;
|
|
8
|
+
classNamePrefix?: string;
|
|
9
|
+
messageText?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const CopyField: (props: ICopyFieldProps) => JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FieldInputProps, FormikProps } from 'formik';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
export interface ISelectOption {
|
|
4
4
|
label: string | number;
|
|
5
5
|
value?: string | number;
|
|
6
6
|
[key: string]: any;
|
|
7
7
|
}
|
|
8
8
|
export interface ICustomField {
|
|
9
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
9
10
|
label: string;
|
|
10
11
|
field: FieldInputProps<any>;
|
|
11
12
|
form: FormikProps<any>;
|
|
@@ -22,4 +23,4 @@ export interface ICustomField {
|
|
|
22
23
|
export interface IOtherProps {
|
|
23
24
|
[key: string]: any;
|
|
24
25
|
}
|
|
25
|
-
export declare const CustomField: ({ label, type, field, selectOptions, form: { touched, errors, submitCount }, theme, inputProps: pInputProps, InputProps, inputRef, multiline, minRows, maxRows, disabled, }: ICustomField & IOtherProps) => JSX.Element;
|
|
26
|
+
export declare const CustomField: ({ label, type, field, selectOptions, form: { touched, errors, submitCount }, theme, inputProps: pInputProps, InputProps, inputRef, onChange, multiline, minRows, maxRows, disabled, }: ICustomField & IOtherProps) => JSX.Element;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export { CheckboxField } from './CheckboxField';
|
|
2
|
+
export { Checkbox } from './Checkbox';
|
|
2
3
|
export { CustomField } from './CustomField';
|
|
3
4
|
export { FormikPhoneNumberField } from './FormikPhoneNumberField';
|
|
4
5
|
export { PhoneNumberField } from './PhoneNumberField';
|
|
5
6
|
export { Loader } from './Loader';
|
|
6
7
|
export { SelectField } from './SelectField';
|
|
8
|
+
export { CopyMessageModal } from './CopyMessageModal';
|
|
7
9
|
export { DatePickerField } from './DatePickerField';
|
|
8
10
|
export { NativeSelectField } from './NativeSelectFeild';
|
|
9
11
|
export { RadioGroupField } from './RadioGroupField';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface IShareButtonProps {
|
|
3
|
+
url: string;
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
children: Node;
|
|
6
|
+
}
|
|
7
|
+
export declare const SpotifyIcon: () => JSX.Element;
|
|
8
|
+
export declare const InstagramIcon: () => JSX.Element;
|
|
9
|
+
export declare const SocialButton: (props: IShareButtonProps) => JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import './style.css';
|
|
3
2
|
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
|
-
shareData:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
shareData: any;
|
|
9
|
+
points?: number | string;
|
|
10
|
+
onAfterShare?: (event: SyntheticEvent) => void;
|
|
11
|
+
eventActionId?: string;
|
|
12
|
+
oneTimeAction?: boolean;
|
|
13
|
+
alreadyApplied?: boolean;
|
|
14
14
|
}
|
|
15
15
|
export interface IConfirmationLabels {
|
|
16
16
|
confirmationTitle?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
2
|
import { IShareButton } from './index';
|
|
3
3
|
interface SocialButtonsTypes {
|
|
4
4
|
shareLink: string;
|
|
@@ -6,8 +6,11 @@ interface SocialButtonsTypes {
|
|
|
6
6
|
appId: string;
|
|
7
7
|
showDefaultShareButtons: boolean;
|
|
8
8
|
shareButtons: IShareButton[];
|
|
9
|
+
titleText?: string;
|
|
10
|
+
footerText?: string | ReactElement;
|
|
9
11
|
clientLabel?: string;
|
|
10
12
|
showReferralsInfoText?: boolean;
|
|
13
|
+
onAfterShare?: (eventActionId: string | undefined) => void;
|
|
11
14
|
}
|
|
12
|
-
declare const SocialButtons: ({ showDefaultShareButtons, shareLink, name, appId, shareButtons, clientLabel, showReferralsInfoText, }: SocialButtonsTypes) => JSX.Element;
|
|
15
|
+
declare const SocialButtons: ({ showDefaultShareButtons, shareLink, name, appId, shareButtons, titleText, footerText, clientLabel, onAfterShare, showReferralsInfoText, }: SocialButtonsTypes) => JSX.Element;
|
|
13
16
|
export default SocialButtons;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import './style.css';
|
|
2
2
|
import { AxiosError } from 'axios';
|
|
3
3
|
import { FC } from 'react';
|
|
4
|
-
interface IForgotPasswordProps {
|
|
4
|
+
export interface IForgotPasswordProps {
|
|
5
5
|
onClose: () => void;
|
|
6
|
-
|
|
6
|
+
onLoginButtonClick: () => 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 {};
|
|
@@ -4,6 +4,10 @@ export declare const VERIFICATION_STATUSES: {
|
|
|
4
4
|
FAILED: string;
|
|
5
5
|
WRONG_CUSTOMER: string;
|
|
6
6
|
};
|
|
7
|
+
export declare const VERIFICATION_PROVIDERS: {
|
|
8
|
+
JUMIO: string;
|
|
9
|
+
STRIPE: string;
|
|
10
|
+
};
|
|
7
11
|
export declare const TRANSACTION_STATUSES: {
|
|
8
12
|
ERROR: string;
|
|
9
13
|
SUCCESS: string;
|
|
@@ -10,7 +10,7 @@ interface IDVerificationProps {
|
|
|
10
10
|
onGetVerificationStatusError?: (error: AxiosError) => void;
|
|
11
11
|
onVerificationMessageModalClose?: (status: string | null) => void;
|
|
12
12
|
onPassVerificationStepsSuccess?: () => void;
|
|
13
|
-
onPassVerificationStepsError?: (error: AxiosError) => void;
|
|
13
|
+
onPassVerificationStepsError?: (error: AxiosError | null) => void;
|
|
14
14
|
}
|
|
15
15
|
export declare const IDVerification: (props: IDVerificationProps) => JSX.Element;
|
|
16
16
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import './style.css';
|
|
2
2
|
import { AxiosError } from 'axios';
|
|
3
3
|
import { FC } from 'react';
|
|
4
|
-
interface Props {
|
|
4
|
+
export interface Props {
|
|
5
5
|
onClose: () => void;
|
|
6
|
-
onLogin: () => void;
|
|
6
|
+
onLogin: (res: IProfileData) => void;
|
|
7
7
|
alreadyHasUser?: boolean;
|
|
8
8
|
userExpired?: boolean;
|
|
9
9
|
onAuthorizeSuccess?: (res: any) => void;
|
|
@@ -19,4 +19,3 @@ interface Props {
|
|
|
19
19
|
showPoweredByImage?: boolean;
|
|
20
20
|
}
|
|
21
21
|
export declare const LoginModal: FC<Props>;
|
|
22
|
-
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CustomFieldTypes } from './index';
|
|
3
|
+
interface HolderCustomFieldsProps {
|
|
4
|
+
initialValues: {
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
};
|
|
7
|
+
fields: Array<CustomFieldTypes>;
|
|
8
|
+
handleFormSubmit?: (values: Record<string, any>) => void;
|
|
9
|
+
handleFormClose?: () => void;
|
|
10
|
+
}
|
|
11
|
+
declare const CustomFieldsForm: ({ initialValues, fields, handleFormSubmit, handleFormClose, }: HolderCustomFieldsProps) => JSX.Element;
|
|
12
|
+
export { CustomFieldsForm };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CustomFieldTypes } from './index';
|
|
3
|
+
import { ITicketTypes } from './ticketsTable';
|
|
4
|
+
interface HolderCustomFieldsProps {
|
|
5
|
+
ticket: ITicketTypes;
|
|
6
|
+
holderCustomFields: CustomFieldTypes[];
|
|
7
|
+
handleTicketHoldersUpdate: (values: Record<string, any>, ticketHash: string) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const TicketHolderCustomFields: ({ ticket, holderCustomFields, handleTicketHoldersUpdate, }: HolderCustomFieldsProps) => JSX.Element;
|
|
10
|
+
export { TicketHolderCustomFields };
|
|
@@ -12,6 +12,10 @@ interface OrderDetailsTypes {
|
|
|
12
12
|
onRemoveFromResaleError: (err: any) => void;
|
|
13
13
|
onResaleTicketSuccess: () => void;
|
|
14
14
|
onResaleTicketError: (err: any) => void;
|
|
15
|
+
onUpdateOrderCustomFieldsSuccess: (val: any) => void;
|
|
16
|
+
onUpdateOrderCustomFieldsError: (err: any) => void;
|
|
17
|
+
onUpdateTicketHolderCustomFieldsSuccess: (val: any) => void;
|
|
18
|
+
onUpdateTicketHolderCustomFieldsError: (err: any) => void;
|
|
15
19
|
personalLinkIcon?: string;
|
|
16
20
|
displayColumnNameInRow?: boolean;
|
|
17
21
|
canSellTicket?: boolean;
|
|
@@ -26,5 +30,29 @@ interface OrderDetailsTypes {
|
|
|
26
30
|
itemsTitle?: string;
|
|
27
31
|
ticketsTitle?: string;
|
|
28
32
|
}
|
|
29
|
-
export
|
|
33
|
+
export interface CustomFieldOption {
|
|
34
|
+
id: string;
|
|
35
|
+
name: string;
|
|
36
|
+
value: string;
|
|
37
|
+
order: string;
|
|
38
|
+
}
|
|
39
|
+
export interface CustomFieldTypes {
|
|
40
|
+
description: string;
|
|
41
|
+
enabled: string;
|
|
42
|
+
id: string;
|
|
43
|
+
label: string;
|
|
44
|
+
name: string;
|
|
45
|
+
orderId: string;
|
|
46
|
+
required: boolean;
|
|
47
|
+
settings: {
|
|
48
|
+
showOnMyTickets: boolean;
|
|
49
|
+
allowUpdate: boolean;
|
|
50
|
+
className: string;
|
|
51
|
+
};
|
|
52
|
+
type: string;
|
|
53
|
+
value: string | Array<string>;
|
|
54
|
+
ticketHash?: string;
|
|
55
|
+
options?: CustomFieldOption[];
|
|
56
|
+
}
|
|
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;
|
|
30
58
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { CustomFieldTypes } from './index';
|
|
2
3
|
interface IAddOnTypes {
|
|
3
4
|
name: string;
|
|
4
5
|
groupName: string;
|
|
@@ -35,9 +36,11 @@ interface TicketsTableTypes {
|
|
|
35
36
|
}>;
|
|
36
37
|
handleSellTicket: (ticket: ITicketTypes) => void;
|
|
37
38
|
handleRemoveFromResale: (ticket: ITicketTypes) => void;
|
|
39
|
+
handleTicketHoldersUpdate: (values: Record<string, any>, ticketHash: string) => void;
|
|
38
40
|
icon?: string;
|
|
39
41
|
displayColumnNameInRow?: boolean;
|
|
40
42
|
ticketsTitle?: string;
|
|
43
|
+
ticketHoldersCustomFields?: Array<CustomFieldTypes>;
|
|
41
44
|
}
|
|
42
|
-
declare const TicketsTable: ({ tickets, columns,
|
|
45
|
+
declare const TicketsTable: ({ tickets, columns, icon, displayColumnNameInRow, canSellTicket, ticketsTitle, ticketHoldersCustomFields, handleSellTicket, handleRemoveFromResale, handleTicketHoldersUpdate, }: TicketsTableTypes) => JSX.Element;
|
|
43
46
|
export default TicketsTable;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CustomFieldTypes } from '../index';
|
|
2
|
+
export declare const renderCustomFieldValue: (customField: CustomFieldTypes) => string | string[];
|
|
3
|
+
export declare const isFieldUpdatable: (field: CustomFieldTypes) => boolean;
|
|
4
|
+
export declare const createCustomFieldsUpdateBody: (updatedValues: Record<string, any>, notUpdatableCustomFieldsValues?: Array<CustomFieldTypes>) => {
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
};
|
|
@@ -14,7 +14,7 @@ export interface IPaymentPage {
|
|
|
14
14
|
onErrorClose?: () => void;
|
|
15
15
|
onGetPaymentDataSuccess: (value: any) => void;
|
|
16
16
|
onGetPaymentDataError: (value: AxiosError) => void;
|
|
17
|
-
onPaymentError: (value: AxiosError) => void;
|
|
17
|
+
onPaymentError: (value: AxiosError, slug?: string) => void;
|
|
18
18
|
stripeCardOptions?: StripeCardNumberElementOptions;
|
|
19
19
|
disableZipSection: boolean;
|
|
20
20
|
themeOptions?: ThemeOptions & {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormikValues } from 'formik';
|
|
3
|
+
export interface IFieldsSectionProps {
|
|
4
|
+
formFields?: IFormFieldsSection[];
|
|
5
|
+
values: FormikValues;
|
|
6
|
+
setFieldValue: (field: string, value: FormikValues, shouldValidate?: boolean | undefined) => void;
|
|
7
|
+
countries?: {
|
|
8
|
+
[key: string]: string | number;
|
|
9
|
+
}[];
|
|
10
|
+
theme?: 'dark' | 'light';
|
|
11
|
+
containerClass?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const FieldsSection: ({ formFields, countries, values, setFieldValue, theme, containerClass, }: IFieldsSectionProps) => JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AxiosError } from 'axios';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
import { IForgotPasswordProps } from '../forgotPasswordModal';
|
|
4
|
+
import { Props } from '../loginModal';
|
|
5
|
+
interface IPreRegistrationProps extends Props, IForgotPasswordProps {
|
|
6
|
+
eventId: string | number;
|
|
7
|
+
formFields?: IFormFieldsSection[];
|
|
8
|
+
additionalFieldAttribute?: IFieldAttribute;
|
|
9
|
+
isPreregistrationStarted: boolean;
|
|
10
|
+
onGetCountriesSuccess?: (res: any) => void;
|
|
11
|
+
onGetCountriesError?: (e: AxiosError) => void;
|
|
12
|
+
onConfirmationSuccess?: (res: any) => void;
|
|
13
|
+
onConfirmationError?: (e: AxiosError) => void;
|
|
14
|
+
onLoginSuccess?: (res: any) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const PreRegistration: FC<IPreRegistrationProps>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FormikValues } from 'formik';
|
|
2
|
+
import { IShareButton } from '../confirmationContainer';
|
|
3
|
+
export declare const getValidateFunctions: ({ element, values, }: {
|
|
4
|
+
element: IFormField;
|
|
5
|
+
values: FormikValues;
|
|
6
|
+
}) => (...value: any) => any;
|
|
7
|
+
export declare const getFormInitialValues: (fieldsSections: IFormFieldsSection[]) => {
|
|
8
|
+
[key: string]: string | number | boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const updateFormFieldsAttributes: (formFields: IFormFieldsSection[], attributes?: IFieldAttribute | undefined) => IFormFieldsSection[];
|
|
11
|
+
export declare const shareOptionsAdapter: (data: Array<IShareOptionsActionData>, shareUrl: string) => IShareButton[];
|
|
12
|
+
export declare const getShuffleMethodByName: (tokenShuffleMethod: string) => (value: string) => string;
|
|
@@ -6,13 +6,6 @@ interface IAddToCartFuncProps {
|
|
|
6
6
|
}
|
|
7
7
|
export declare const addToCartFunc: ({ eventId, data, ticketQuantity, enableBillingInfoAutoCreate, }: IAddToCartFuncProps) => Promise<{
|
|
8
8
|
skip_billing_page: any;
|
|
9
|
-
names_required: any;
|
|
10
|
-
phone_required: any;
|
|
11
|
-
age_required: any;
|
|
12
|
-
hide_phone_field: any;
|
|
13
|
-
free_ticket: any;
|
|
14
|
-
collect_optional_wallet_address: any;
|
|
15
|
-
collect_mandatory_wallet_address: any;
|
|
16
9
|
event_id: string;
|
|
17
10
|
hash: string | number;
|
|
18
11
|
total: string | number;
|
|
@@ -4,10 +4,7 @@ import { FC } from 'react';
|
|
|
4
4
|
interface ISignupProps {
|
|
5
5
|
onClose: () => void;
|
|
6
6
|
onLogin: () => void;
|
|
7
|
-
onRegisterSuccess: (
|
|
8
|
-
accessToken: string;
|
|
9
|
-
refreshToken: string;
|
|
10
|
-
}) => void;
|
|
7
|
+
onRegisterSuccess: (res: any) => void;
|
|
11
8
|
onRegisterError: (e: AxiosError, email: string) => void;
|
|
12
9
|
showPoweredByImage?: boolean;
|
|
13
10
|
}
|
|
@@ -17,6 +17,8 @@ export interface ICheckoutForm {
|
|
|
17
17
|
disableZipSection: boolean;
|
|
18
18
|
paymentButtonText?: string;
|
|
19
19
|
forPaymentPlan?: boolean;
|
|
20
|
+
orderId?: string;
|
|
21
|
+
hasSeatMapActions: boolean;
|
|
20
22
|
}
|
|
21
|
-
declare const CheckoutForm: ({ total, onSubmit, stripeCardOptions, error, stripe_client_secret, currency, billing_info, isLoading, handleSetLoading, conditions, disableZipSection, paymentButtonText, forPaymentPlan, }: ICheckoutForm) => JSX.Element;
|
|
23
|
+
declare const CheckoutForm: ({ total, orderId, onSubmit, stripeCardOptions, error, stripe_client_secret, currency, billing_info, isLoading, handleSetLoading, conditions, disableZipSection, paymentButtonText, forPaymentPlan, hasSeatMapActions, }: ICheckoutForm) => JSX.Element;
|
|
22
24
|
export default CheckoutForm;
|
|
@@ -5,8 +5,9 @@ interface ITicketRowProps {
|
|
|
5
5
|
prevTicketTier: any;
|
|
6
6
|
selectedTickets: any;
|
|
7
7
|
handleTicketSelect: any;
|
|
8
|
-
|
|
8
|
+
event: any;
|
|
9
|
+
isSeatMapAllowed?: boolean;
|
|
9
10
|
tableType?: boolean;
|
|
10
11
|
}
|
|
11
|
-
export declare const TicketRow: ({ ticketTier, prevTicketTier, selectedTickets, handleTicketSelect, isSeatMapAllowed, tableType, }: ITicketRowProps) => JSX.Element;
|
|
12
|
+
export declare const TicketRow: ({ ticketTier, prevTicketTier, selectedTickets, handleTicketSelect, event, isSeatMapAllowed, tableType, }: ITicketRowProps) => JSX.Element;
|
|
12
13
|
export {};
|
|
@@ -5,17 +5,10 @@ import { AxiosError } from 'axios';
|
|
|
5
5
|
import React, { ReactNode } from 'react';
|
|
6
6
|
interface CartSuccess {
|
|
7
7
|
skip_billing_page: boolean;
|
|
8
|
-
names_required: boolean;
|
|
9
|
-
age_required: boolean;
|
|
10
|
-
phone_required: boolean;
|
|
11
|
-
hide_phone_field: boolean;
|
|
12
8
|
event_id: string;
|
|
13
9
|
hash?: string | number;
|
|
14
10
|
total?: string | number;
|
|
15
11
|
hasAddOn?: boolean;
|
|
16
|
-
free_ticket: boolean;
|
|
17
|
-
collect_optional_wallet_address?: boolean;
|
|
18
|
-
collect_mandatory_wallet_address?: boolean;
|
|
19
12
|
}
|
|
20
13
|
export interface IGetTickets {
|
|
21
14
|
eventId: number;
|
|
@@ -2,3 +2,12 @@ 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
|
+
presalesEnabled: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const defineIsSalesClosed: (eventDatesInfo: eventDatesInfo) => boolean;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { withCustomFields } from './CustomFields';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useCookieListener } from './useCookieListener';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useEventListener: (eventName: string, handler: () => void, element?: Window & typeof globalThis) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useLocalStorageListener(key: string, callback: (value: string | null) => void): string | null;
|