tf-checkout-react 1.5.6 → 1.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/auth.d.ts +1 -1
- package/dist/api/checkout.d.ts +1 -1
- package/dist/api/index.d.ts +0 -2
- package/dist/api/publicRequest.d.ts +0 -1
- package/dist/components/billing-info-container/utils.d.ts +3 -2
- package/dist/components/seatMapContainer/addToCart.d.ts +0 -7
- package/dist/components/signupModal/index.d.ts +1 -4
- package/dist/components/ticketsContainer/index.d.ts +0 -7
- package/dist/tf-checkout-react.cjs.development.js +115 -216
- 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 +115 -216
- package/dist/tf-checkout-react.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/api/auth.ts +2 -8
- package/src/api/checkout.ts +1 -8
- package/src/api/index.ts +0 -12
- package/src/api/interceptors.ts +0 -11
- package/src/api/publicRequest.ts +0 -4
- package/src/components/addonsContainer/index.tsx +0 -20
- package/src/components/billing-info-container/index.tsx +11 -18
- package/src/components/billing-info-container/utils.ts +14 -11
- package/src/components/myTicketsContainer/index.tsx +0 -1
- package/src/components/seatMapContainer/addToCart.ts +1 -14
- package/src/components/signupModal/index.tsx +3 -12
- package/src/components/ticketResale/index.tsx +1 -9
- package/src/components/ticketsContainer/index.tsx +1 -40
- package/src/utils/downloadPDF.tsx +2 -12
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>>;
|
|
@@ -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,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;
|
|
@@ -25,7 +26,7 @@ export declare const getValidateFunctions: (element: IGroupItem, states: {
|
|
|
25
26
|
[key: string]: any;
|
|
26
27
|
}[], values: FormikValues, errors: FormikErrors<any>) => (...value: any) => any;
|
|
27
28
|
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;
|
|
29
|
+
export declare const isRequiredField: (element: IGroupItem, configs: null | AttributesConfig) => boolean;
|
|
30
|
+
export declare const getFieldLabel: (element: IGroupItem, configs: null | AttributesConfig) => string | JSX.Element;
|
|
30
31
|
export declare const getFieldComponent: (element: IGroupItem) => any;
|
|
31
32
|
export {};
|
|
@@ -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
|
}
|
|
@@ -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;
|