tf-checkout-react 1.0.106 → 1.2.1
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/README.md +278 -1
- package/dist/api/index.d.ts +40 -28
- package/dist/components/account-settings/index.d.ts +3 -0
- package/dist/components/billing-info-container/index.d.ts +11 -8
- package/dist/components/common/PhoneNumberField.d.ts +9 -0
- package/dist/components/common/index.d.ts +1 -0
- package/dist/components/confirmationContainer/index.d.ts +2 -1
- package/dist/components/countdown/index.d.ts +2 -1
- package/dist/components/forgotPasswordModal/index.d.ts +11 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/loginModal/index.d.ts +35 -2
- package/dist/components/myTicketsContainer/index.d.ts +2 -1
- package/dist/components/myTicketsContainer/tableConfig.d.ts +1 -1
- package/dist/components/orderDetailsContainer/index.d.ts +6 -1
- package/dist/components/orderDetailsContainer/ticketsTable.d.ts +2 -1
- package/dist/components/paymentContainer/index.d.ts +2 -1
- package/dist/components/resetPasswordContainer/index.d.ts +10 -0
- package/dist/components/signupModal/index.d.ts +14 -0
- package/dist/components/ticketsContainer/PromoCodeSection.d.ts +3 -2
- package/dist/components/ticketsContainer/TicketsSection.d.ts +1 -2
- package/dist/components/ticketsContainer/index.d.ts +7 -3
- package/dist/index.d.ts +2 -0
- package/dist/tf-checkout-react.cjs.development.js +2177 -1482
- 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 +2166 -1473
- package/dist/tf-checkout-react.esm.js.map +1 -1
- package/dist/tf-checkout-styles.css +1 -1
- package/dist/utils/cookies.d.ts +3 -0
- package/dist/utils/createCheckoutDataBodyWithDefaultHolder.d.ts +6 -1
- package/dist/utils/downloadPDF.d.ts +1 -1
- package/dist/utils/getDomain.d.ts +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/package.json +12 -1
- package/src/api/index.ts +100 -29
- package/src/components/account-settings/index.tsx +161 -0
- package/src/components/account-settings/style.css +200 -0
- package/src/components/billing-info-container/index.tsx +145 -99
- package/src/components/billing-info-container/style.css +1 -1
- package/src/components/billing-info-container/utils.ts +11 -3
- package/src/components/common/PhoneNumberField.tsx +68 -0
- package/src/components/common/SnackbarAlert.tsx +1 -1
- package/src/components/common/dist/PhoneNumberField.js +96 -0
- package/src/components/common/index.tsx +1 -0
- package/src/components/confirmationContainer/index.tsx +19 -9
- package/src/components/countdown/index.tsx +3 -1
- package/src/components/forgotPasswordModal/index.tsx +107 -0
- package/src/components/forgotPasswordModal/style.css +47 -0
- package/src/components/index.ts +1 -0
- package/src/components/loginModal/index.tsx +72 -71
- package/src/components/myTicketsContainer/index.tsx +99 -95
- package/src/components/myTicketsContainer/style.css +2 -2
- package/src/components/myTicketsContainer/tableConfig.tsx +3 -6
- package/src/components/orderDetailsContainer/index.tsx +80 -21
- package/src/components/orderDetailsContainer/style.css +7 -3
- package/src/components/orderDetailsContainer/ticketsTable.tsx +130 -83
- package/src/components/paymentContainer/index.tsx +114 -49
- package/src/components/registerModal/index.tsx +3 -10
- package/src/components/resetPasswordContainer/index.tsx +96 -0
- package/src/components/resetPasswordContainer/style.css +36 -0
- package/src/components/signupModal/index.tsx +195 -0
- package/src/components/signupModal/style.css +58 -0
- package/src/components/stripePayment/index.tsx +14 -12
- package/src/components/stripePayment/style.css +3 -3
- package/src/components/ticketResaleModal/index.tsx +12 -14
- package/src/components/ticketsContainer/PromoCodeSection.tsx +8 -7
- package/src/components/ticketsContainer/TicketRow.tsx +12 -6
- package/src/components/ticketsContainer/TicketsSection.tsx +0 -3
- package/src/components/ticketsContainer/index.tsx +155 -86
- package/src/env.ts +3 -3
- package/src/index.ts +3 -1
- package/src/utils/cookies.ts +42 -0
- package/src/utils/createCheckoutDataBodyWithDefaultHolder.ts +16 -4
- package/src/utils/downloadPDF.tsx +28 -6
- package/src/utils/getDomain.ts +15 -0
- package/src/utils/index.ts +2 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { AxiosError } from 'axios';
|
|
3
1
|
import './style.css';
|
|
4
2
|
import { ThemeOptions } from '@mui/material';
|
|
5
3
|
import { CSSProperties } from '@mui/styles';
|
|
4
|
+
import { AxiosError } from 'axios';
|
|
5
|
+
import React, { ReactNode } from 'react';
|
|
6
6
|
interface CartSuccess {
|
|
7
7
|
skip_billing_page: boolean;
|
|
8
8
|
names_required: boolean;
|
|
@@ -20,6 +20,8 @@ export interface IGetTickets {
|
|
|
20
20
|
onAddToCartError: (e: AxiosError) => void;
|
|
21
21
|
onGetTicketsSuccess: (response: any) => void;
|
|
22
22
|
onGetTicketsError: (e: AxiosError) => void;
|
|
23
|
+
onLogoutSuccess: () => void;
|
|
24
|
+
onLogoutError: (e: AxiosError) => void;
|
|
23
25
|
onLoginSuccess: () => void;
|
|
24
26
|
theme?: 'light' | 'dark';
|
|
25
27
|
queryPromoCode?: string;
|
|
@@ -31,6 +33,7 @@ export interface IGetTickets {
|
|
|
31
33
|
isAccessCodeEnabled?: boolean;
|
|
32
34
|
hideSessionButtons?: boolean;
|
|
33
35
|
hideWaitingList?: boolean;
|
|
36
|
+
enableBillingInfoAutoCreate?: boolean;
|
|
34
37
|
isButtonScrollable?: boolean;
|
|
35
38
|
sortBySoldOut?: boolean;
|
|
36
39
|
disableCountdownLeadingZero?: boolean;
|
|
@@ -38,6 +41,7 @@ export interface IGetTickets {
|
|
|
38
41
|
actionsSectionComponent?: any;
|
|
39
42
|
ticketsHeaderComponent?: ReactNode;
|
|
40
43
|
hideTicketsHeader?: boolean;
|
|
44
|
+
enableInfluencersSection?: boolean;
|
|
41
45
|
}
|
|
42
46
|
export interface ITicket {
|
|
43
47
|
id: string | number;
|
|
@@ -46,5 +50,5 @@ export interface ITicket {
|
|
|
46
50
|
export interface ISelectedTickets {
|
|
47
51
|
[key: string]: string | number;
|
|
48
52
|
}
|
|
49
|
-
export declare const TicketsContainer: ({ onLoginSuccess, getTicketsLabel, eventId, onAddToCartSuccess, contentStyle, onAddToCartError, onGetTicketsSuccess, onGetTicketsError, theme, queryPromoCode, isPromotionsEnabled, themeOptions, isAccessCodeEnabled, hideSessionButtons, hideWaitingList, isButtonScrollable, sortBySoldOut, disableCountdownLeadingZero, isLoggedIn, actionsSectionComponent: ActionsSectionComponent, ticketsHeaderComponent, hideTicketsHeader }: IGetTickets) => JSX.Element;
|
|
53
|
+
export declare const TicketsContainer: ({ onLoginSuccess, getTicketsLabel, eventId, onAddToCartSuccess, contentStyle, onAddToCartError, onGetTicketsSuccess, onGetTicketsError, onLogoutSuccess, onLogoutError, theme, queryPromoCode, isPromotionsEnabled, themeOptions, isAccessCodeEnabled, hideSessionButtons, hideWaitingList, enableBillingInfoAutoCreate, isButtonScrollable, sortBySoldOut, disableCountdownLeadingZero, isLoggedIn, actionsSectionComponent: ActionsSectionComponent, ticketsHeaderComponent, hideTicketsHeader, enableInfluencersSection }: IGetTickets) => JSX.Element;
|
|
50
54
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -10,3 +10,5 @@ export { setConfigs } from './utils/setConfigs';
|
|
|
10
10
|
export { TicketResaleContainer } from './components';
|
|
11
11
|
export { RedirectModal } from './components/common/RedirectModal';
|
|
12
12
|
export { RsvpContainer } from './components/rsvpContainer';
|
|
13
|
+
export { ResetPasswordContainer } from './components/resetPasswordContainer';
|
|
14
|
+
export { ForgotPasswordModal } from './components/forgotPasswordModal';
|