tf-checkout-react 1.6.2-beta.3 → 1.6.2-beta.4

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,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 { ReactNode } from 'react';
7
7
  import { IBillingInfoData } from '../../types';
8
8
  export interface IBillingInfoPage {
9
9
  data?: IBillingInfoData[];
@@ -53,7 +53,6 @@ export interface IBillingInfoPage {
53
53
  customFieldsOrderKeys?: string[];
54
54
  customFieldsTicketHolderKeys?: string[];
55
55
  onPendingVerification?: () => void;
56
- CustomLogin?: ReactNode;
57
56
  }
58
57
  declare const WithCustomFieldsBillingInfoContainer: (props: any) => JSX.Element;
59
58
  export { WithCustomFieldsBillingInfoContainer as BillingInfoContainer };
@@ -2592,7 +2592,7 @@ function isFalsy(item) {
2592
2592
  }
2593
2593
  var requiredValidator = function requiredValidator(value, message) {
2594
2594
  var errorMessage = '';
2595
- if (isFalsy(value)) {
2595
+ if (isFalsy(typeof value === 'string' ? value.trim() : value)) {
2596
2596
  errorMessage = message || 'Required';
2597
2597
  }
2598
2598
  return errorMessage;
@@ -3846,8 +3846,7 @@ var BillingInfoContainer = /*#__PURE__*/React__default.memo(function (_ref4) {
3846
3846
  _ref4$onGetCheckoutCo = _ref4.onGetCheckoutConfigsSuccess,
3847
3847
  onGetCheckoutConfigsSuccess = _ref4$onGetCheckoutCo === void 0 ? _identity : _ref4$onGetCheckoutCo,
3848
3848
  _ref4$onGetCheckoutCo2 = _ref4.onGetCheckoutConfigsError,
3849
- onGetCheckoutConfigsError = _ref4$onGetCheckoutCo2 === void 0 ? _identity : _ref4$onGetCheckoutCo2,
3850
- CustomLogin = _ref4.CustomLogin;
3849
+ onGetCheckoutConfigsError = _ref4$onGetCheckoutCo2 === void 0 ? _identity : _ref4$onGetCheckoutCo2;
3851
3850
  var _useState = React.useState(null),
3852
3851
  extraData = _useState[0],
3853
3852
  setExtraData = _useState[1];
@@ -4646,7 +4645,7 @@ var BillingInfoContainer = /*#__PURE__*/React__default.memo(function (_ref4) {
4646
4645
  }, props.isSubmitting ? React__default.createElement(material.CircularProgress, {
4647
4646
  size: 26
4648
4647
  }) : buttonName))));
4649
- }), CustomLogin ? CustomLogin : null, showModalLogin && !CustomLogin ? React__default.createElement(LoginModal, {
4648
+ }), showModalLogin && React__default.createElement(LoginModal, {
4650
4649
  logo: logo,
4651
4650
  onClose: function onClose() {
4652
4651
  setShowModalLogin(false);
@@ -4674,7 +4673,7 @@ var BillingInfoContainer = /*#__PURE__*/React__default.memo(function (_ref4) {
4674
4673
  setShowModalSignup(true);
4675
4674
  },
4676
4675
  showPoweredByImage: showPoweredByImage
4677
- }) : null, showModalSignup && React__default.createElement(SignupModal, {
4676
+ }), showModalSignup && React__default.createElement(SignupModal, {
4678
4677
  onClose: function onClose() {
4679
4678
  setShowModalSignup(false);
4680
4679
  },
@@ -9027,7 +9026,7 @@ var TicketResaleContainer = function TicketResaleContainer(_ref) {
9027
9026
  orderHash = _ref.orderHash,
9028
9027
  billingPath = _ref.billingPath,
9029
9028
  _ref$defaultRedirecti = _ref.defaultRedirection,
9030
- defaultRedirection = _ref$defaultRedirecti === void 0 ? false : _ref$defaultRedirecti;
9029
+ defaultRedirection = _ref$defaultRedirecti === void 0 ? true : _ref$defaultRedirecti;
9031
9030
  var isWindowDefined = typeof window !== 'undefined';
9032
9031
  var _useState = React.useState(''),
9033
9032
  error = _useState[0],