tf-checkout-react 1.2.0 → 1.2.3

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.
@@ -1,10 +1,10 @@
1
1
  /// <reference types="react" />
2
- import { AxiosError } from 'axios';
3
- import { FormikHelpers, FormikValues } from 'formik';
4
2
  import './style.css';
5
- import { IBillingInfoData } from '../../types';
6
3
  import { ThemeOptions } from '@mui/material';
7
4
  import { CSSProperties } from '@mui/styles';
5
+ import { AxiosError } from 'axios';
6
+ import { FormikHelpers, FormikValues } from 'formik';
7
+ import { IBillingInfoData } from '../../types';
8
8
  export interface IBillingInfoPage {
9
9
  data?: IBillingInfoData[];
10
10
  ticketHoldersFields?: IBillingInfoData;
@@ -48,4 +48,4 @@ export interface IBillingInfoPage {
48
48
  showForgotPasswordButton?: boolean;
49
49
  showSignUpButton?: boolean;
50
50
  }
51
- export declare const BillingInfoContainer: ({ data, ticketHoldersFields, initialValues, buttonName, handleSubmit, theme, onRegisterSuccess, onRegisterError, onSubmitError, onGetCartSuccess, onGetCartError, onGetCountriesSuccess, onGetCountriesError, onGetStatesSuccess, onGetStatesError, onGetProfileDataSuccess, onGetProfileDataError, onAuthorizeSuccess, onAuthorizeError, onLogin, onLoginSuccess, isLoggedIn: pIsLoggedIn, accountInfoTitle, hideLogo, themeOptions, onErrorClose, hideErrorsAlertSection, onSkipBillingPage, skipPage, canSkipHolderNames, onForgotPasswordSuccess, onForgotPasswordError, shouldFetchCountries, onCountdownFinish, enableTimer, logo, showForgotPasswordButton, showSignUpButton }: IBillingInfoPage) => JSX.Element;
51
+ export declare const BillingInfoContainer: ({ data, ticketHoldersFields, initialValues, buttonName, handleSubmit, theme, onRegisterSuccess, onRegisterError, onSubmitError, onGetCartSuccess, onGetCartError, onGetCountriesSuccess, onGetCountriesError, onGetStatesSuccess, onGetStatesError, onGetProfileDataSuccess, onGetProfileDataError, onAuthorizeSuccess, onAuthorizeError, onLogin, onLoginSuccess, isLoggedIn: pIsLoggedIn, accountInfoTitle, hideLogo, themeOptions, onErrorClose, hideErrorsAlertSection, onSkipBillingPage, skipPage, canSkipHolderNames, onForgotPasswordSuccess, onForgotPasswordError, shouldFetchCountries, onCountdownFinish, enableTimer, logo, showForgotPasswordButton, showSignUpButton, }: IBillingInfoPage) => JSX.Element;
@@ -7,5 +7,5 @@ export interface ICheckboxField {
7
7
  interface IOtherProps {
8
8
  [key: string]: any;
9
9
  }
10
- export declare const CheckboxField: ({ label, field, selectOptions, theme, setFieldValue, ...rest }: ICheckboxField & IOtherProps) => JSX.Element;
10
+ export declare const CheckboxField: ({ label, field, selectOptions, theme, setFieldValue, disableDropdown, ...rest }: ICheckboxField & IOtherProps) => JSX.Element;
11
11
  export {};
@@ -5,5 +5,6 @@ export interface IPhoneNumberField {
5
5
  field: FieldInputProps<any>;
6
6
  form: FormikProps<any>;
7
7
  type: string;
8
+ disableDropdown: boolean;
8
9
  }
9
- export declare const PhoneNumberField: ({ label, type, field, form: { errors, setFieldError, setStatus }, }: IPhoneNumberField) => JSX.Element;
10
+ export declare const PhoneNumberField: ({ label, field, form: { errors, touched, setFieldError, setStatus, initialValues, setFieldValue }, disableDropdown }: IPhoneNumberField) => JSX.Element;
@@ -7,5 +7,5 @@ export interface IRadioField {
7
7
  interface IOtherProps {
8
8
  [key: string]: any;
9
9
  }
10
- export declare const RadioField: ({ label, field, theme, ...rest }: IRadioField & IOtherProps) => JSX.Element;
10
+ export declare const RadioField: ({ label, field, theme, disableDropdown, ...rest }: IRadioField & IOtherProps) => JSX.Element;
11
11
  export {};
@@ -26,5 +26,6 @@ export interface IPaymentPage {
26
26
  onCountdownFinish?: () => void;
27
27
  enableTimer?: boolean;
28
28
  enablePaymentPlan?: boolean;
29
+ paymentButtonText?: string;
29
30
  }
30
- export declare const PaymentContainer: ({ paymentFields, handlePayment, formTitle, errorText, checkoutData, onErrorClose, onGetPaymentDataSuccess, onGetPaymentDataError, onPaymentError, stripeCardOptions, disableZipSection, themeOptions, elementsOptions, onCountdownFinish, enableTimer, enablePaymentPlan, }: IPaymentPage) => JSX.Element;
31
+ export declare const PaymentContainer: ({ paymentFields, handlePayment, formTitle, errorText, checkoutData, onErrorClose, onGetPaymentDataSuccess, onGetPaymentDataError, onPaymentError, stripeCardOptions, disableZipSection, themeOptions, elementsOptions, onCountdownFinish, enableTimer, enablePaymentPlan, paymentButtonText }: IPaymentPage) => JSX.Element;
@@ -15,6 +15,7 @@ export interface ICheckoutForm {
15
15
  handleSetLoading: (loading: any) => void;
16
16
  conditions: any;
17
17
  disableZipSection: boolean;
18
+ paymentButtonText?: string;
18
19
  }
19
- declare const CheckoutForm: ({ total, onSubmit, stripeCardOptions, error, stripe_client_secret, currency, billing_info, isLoading, handleSetLoading, conditions, disableZipSection, }: ICheckoutForm) => JSX.Element;
20
+ declare const CheckoutForm: ({ total, onSubmit, stripeCardOptions, error, stripe_client_secret, currency, billing_info, isLoading, handleSetLoading, conditions, disableZipSection, paymentButtonText }: ICheckoutForm) => JSX.Element;
20
21
  export default CheckoutForm;
@@ -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;
@@ -41,6 +41,7 @@ export interface IGetTickets {
41
41
  actionsSectionComponent?: any;
42
42
  ticketsHeaderComponent?: ReactNode;
43
43
  hideTicketsHeader?: boolean;
44
+ enableInfluencersSection?: boolean;
44
45
  }
45
46
  export interface ITicket {
46
47
  id: string | number;
@@ -49,5 +50,5 @@ export interface ITicket {
49
50
  export interface ISelectedTickets {
50
51
  [key: string]: string | number;
51
52
  }
52
- 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 }: 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;
53
54
  export {};