tf-checkout-react 1.5.7 → 1.5.8
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/components/billing-info-container/index.d.ts +3 -1
- package/dist/tf-checkout-react.cjs.development.js +8 -2
- 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 +8 -2
- package/dist/tf-checkout-react.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/billing-info-container/index.tsx +7 -1
|
@@ -20,6 +20,8 @@ export interface IBillingInfoPage {
|
|
|
20
20
|
onGetStatesError?: (e: AxiosError) => void;
|
|
21
21
|
onGetProfileDataSuccess?: (res: any) => void;
|
|
22
22
|
onGetProfileDataError?: (e: AxiosError) => void;
|
|
23
|
+
onGetCheckoutConfigsSuccess?: (res: any) => void;
|
|
24
|
+
onGetCheckoutConfigsError?: (e: AxiosError) => void;
|
|
23
25
|
onLogin?: () => void;
|
|
24
26
|
onLoginSuccess?: () => void;
|
|
25
27
|
onErrorClose?: () => void;
|
|
@@ -50,4 +52,4 @@ export interface IBillingInfoPage {
|
|
|
50
52
|
isCountryCodeEditable?: boolean;
|
|
51
53
|
onPendingVerification?: () => void;
|
|
52
54
|
}
|
|
53
|
-
export declare const BillingInfoContainer: React.MemoExoticComponent<({ data, ticketHoldersFields, initialValues, buttonName, handleSubmit, theme, onRegisterSuccess, onRegisterError, onSubmitError, onGetCartSuccess, onGetCartError, onGetCountriesSuccess, onGetCountriesError, onGetStatesSuccess, onGetStatesError, onGetProfileDataSuccess, onGetProfileDataError, onLogin, onLoginSuccess, isLoggedIn: pIsLoggedIn, accountInfoTitle, hideLogo, themeOptions, onErrorClose, hideErrorsAlertSection, onSkipBillingPage, skipPage, canSkipHolderNames, onForgotPasswordSuccess, onForgotPasswordError, shouldFetchCountries, onCountdownFinish, enableTimer, logo, showForgotPasswordButton, showSignUpButton, brandOptIn, showPoweredByImage, isCountryCodeEditable, onPendingVerification, }: IBillingInfoPage) => JSX.Element>;
|
|
55
|
+
export declare const BillingInfoContainer: React.MemoExoticComponent<({ data, ticketHoldersFields, initialValues, buttonName, handleSubmit, theme, onRegisterSuccess, onRegisterError, onSubmitError, onGetCartSuccess, onGetCartError, onGetCountriesSuccess, onGetCountriesError, onGetStatesSuccess, onGetStatesError, onGetProfileDataSuccess, onGetProfileDataError, onLogin, onLoginSuccess, isLoggedIn: pIsLoggedIn, accountInfoTitle, hideLogo, themeOptions, onErrorClose, hideErrorsAlertSection, onSkipBillingPage, skipPage, canSkipHolderNames, onForgotPasswordSuccess, onForgotPasswordError, shouldFetchCountries, onCountdownFinish, enableTimer, logo, showForgotPasswordButton, showSignUpButton, brandOptIn, showPoweredByImage, isCountryCodeEditable, onPendingVerification, onGetCheckoutConfigsSuccess, onGetCheckoutConfigsError, }: IBillingInfoPage) => JSX.Element>;
|
|
@@ -3480,7 +3480,11 @@ var BillingInfoContainer = /*#__PURE__*/React__default.memo(function (_ref4) {
|
|
|
3480
3480
|
_ref4$isCountryCodeEd = _ref4.isCountryCodeEditable,
|
|
3481
3481
|
isCountryCodeEditable = _ref4$isCountryCodeEd === void 0 ? true : _ref4$isCountryCodeEd,
|
|
3482
3482
|
_ref4$onPendingVerifi = _ref4.onPendingVerification,
|
|
3483
|
-
onPendingVerification = _ref4$onPendingVerifi === void 0 ? _identity : _ref4$onPendingVerifi
|
|
3483
|
+
onPendingVerification = _ref4$onPendingVerifi === void 0 ? _identity : _ref4$onPendingVerifi,
|
|
3484
|
+
_ref4$onGetCheckoutCo = _ref4.onGetCheckoutConfigsSuccess,
|
|
3485
|
+
onGetCheckoutConfigsSuccess = _ref4$onGetCheckoutCo === void 0 ? _identity : _ref4$onGetCheckoutCo,
|
|
3486
|
+
_ref4$onGetCheckoutCo2 = _ref4.onGetCheckoutConfigsError,
|
|
3487
|
+
onGetCheckoutConfigsError = _ref4$onGetCheckoutCo2 === void 0 ? _identity : _ref4$onGetCheckoutCo2;
|
|
3484
3488
|
var _useState = React.useState(null),
|
|
3485
3489
|
extraData = _useState[0],
|
|
3486
3490
|
setExtraData = _useState[1];
|
|
@@ -3507,8 +3511,10 @@ var BillingInfoContainer = /*#__PURE__*/React__default.memo(function (_ref4) {
|
|
|
3507
3511
|
setConfigs(data.data.attributes);
|
|
3508
3512
|
setIsConfigLoading(false);
|
|
3509
3513
|
}
|
|
3510
|
-
|
|
3514
|
+
onGetCheckoutConfigsSuccess(data);
|
|
3515
|
+
})["catch"](function (e) {
|
|
3511
3516
|
setIsConfigLoading(false);
|
|
3517
|
+
onGetCheckoutConfigsError(e);
|
|
3512
3518
|
});
|
|
3513
3519
|
}, [isBrowser]);
|
|
3514
3520
|
var defaultCountry = isBrowser ? window.localStorage.getItem('eventCountry') : '';
|