tf-checkout-react 1.6.6-beta.27 → 1.6.6-beta.29
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/addonsContainer/SimpleAddonsContainer.d.ts +1 -1
- package/dist/components/addonsContainer/index.d.ts +1 -1
- package/dist/components/billing-info-container/index.d.ts +1 -0
- package/dist/components/myTicketsContainer/index.d.ts +3 -2
- package/dist/components/paymentContainer/OrderDetails.d.ts +7 -1
- package/dist/components/paymentContainer/index.d.ts +2 -1
- package/dist/tf-checkout-react.cjs.development.js +310 -157
- 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 +310 -157
- package/dist/tf-checkout-react.esm.js.map +1 -1
- package/dist/tf-checkout-styles.css +1 -1
- package/dist/utils/getDomain.d.ts +1 -1
- package/package.json +2 -2
- package/src/components/addonsContainer/SimpleAddonsContainer.tsx +4 -0
- package/src/components/addonsContainer/index.tsx +4 -0
- package/src/components/billing-info-container/index.tsx +84 -27
- package/src/components/common/SnackbarAlert.tsx +32 -34
- package/src/components/loginModal/style.css +3 -1
- package/src/components/myTicketsContainer/index.tsx +12 -8
- package/src/components/paymentContainer/OrderDetails.tsx +43 -3
- package/src/components/paymentContainer/index.tsx +25 -23
- package/src/components/paymentContainer/style.css +113 -0
- package/src/types/api/payment.d.ts +2 -2
- package/src/utils/cookies.ts +43 -12
- package/src/utils/getDomain.ts +10 -4
|
@@ -13,5 +13,5 @@ export interface ISimpleAddonContainerProps {
|
|
|
13
13
|
export interface ObjectLiteral {
|
|
14
14
|
[key: string]: any;
|
|
15
15
|
}
|
|
16
|
-
export declare const SimpleAddonsContainer: ({ classNamePrefix, onGetAddonsPageInfoSuccess, onGetAddonsPageInfoError, descriptionTrigger, addOnDataWithCustomFields, configs, eventId, onAddOnSelect, handleConfirm, }: ISimpleAddonContainerProps) => JSX.Element;
|
|
16
|
+
export declare const SimpleAddonsContainer: ({ classNamePrefix, onGetAddonsPageInfoSuccess, onGetAddonsPageInfoError, descriptionTrigger, addOnDataWithCustomFields, configs, eventId, onAddOnSelect, handleConfirm, }: ISimpleAddonContainerProps) => JSX.Element | null;
|
|
17
17
|
export default SimpleAddonsContainer;
|
|
@@ -20,4 +20,4 @@ export interface IAddonContainterProps {
|
|
|
20
20
|
export interface ObjectLiteral {
|
|
21
21
|
[key: string]: any;
|
|
22
22
|
}
|
|
23
|
-
export declare const AddonsContainter: ({ classNamePrefix, enableBillingInfoAutoCreate, enableTimer, onGetAddonsPageInfoSuccess, onGetAddonsPageInfoError, onPostCheckoutSuccess, onPostCheckoutError, onConfirmSelectionSuccess, onConfirmSelectionError, onCountdownFinish, onPendingVerification, samePage, descriptionTrigger, addOnDataWithCustomFields, configs, onAddOnSelect, }: IAddonContainterProps) => JSX.Element;
|
|
23
|
+
export declare const AddonsContainter: ({ classNamePrefix, enableBillingInfoAutoCreate, enableTimer, onGetAddonsPageInfoSuccess, onGetAddonsPageInfoError, onPostCheckoutSuccess, onPostCheckoutError, onConfirmSelectionSuccess, onConfirmSelectionError, onCountdownFinish, onPendingVerification, samePage, descriptionTrigger, addOnDataWithCustomFields, configs, onAddOnSelect, }: IAddonContainterProps) => JSX.Element | null;
|
|
@@ -31,6 +31,7 @@ export interface IBillingInfoPage {
|
|
|
31
31
|
onCheckoutUpdateError?: (e: AxiosError) => void;
|
|
32
32
|
initialValues?: FormikValues;
|
|
33
33
|
buttonName?: string;
|
|
34
|
+
freeOrderButtonName?: string;
|
|
34
35
|
theme?: 'light' | 'dark';
|
|
35
36
|
isLoggedIn?: boolean;
|
|
36
37
|
accountInfoTitle?: string | JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import './style.css';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
interface MyTicketsTypes {
|
|
4
4
|
handleDetailsInfo: (id: string | number) => void;
|
|
5
5
|
onGetOrdersSuccess: (res: any) => void;
|
|
@@ -9,7 +9,8 @@ interface MyTicketsTypes {
|
|
|
9
9
|
selectEventsLabel?: string;
|
|
10
10
|
openLoginModal?: () => void;
|
|
11
11
|
hideDetailsButton?: boolean;
|
|
12
|
+
customNoOrderContent?: React.ReactNode;
|
|
12
13
|
columns?: IColumnData[];
|
|
13
14
|
}
|
|
14
|
-
export declare const MyTicketsContainer: ({ handleDetailsInfo, onGetOrdersSuccess, onGetOrdersError, theme, selectEventsLabel, logo, hideDetailsButton, columns, openLoginModal, }: MyTicketsTypes) => JSX.Element;
|
|
15
|
+
export declare const MyTicketsContainer: ({ handleDetailsInfo, onGetOrdersSuccess, onGetOrdersError, theme, selectEventsLabel, logo, hideDetailsButton, columns, openLoginModal, customNoOrderContent, }: MyTicketsTypes) => JSX.Element;
|
|
15
16
|
export {};
|
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
interface OrderDetailsProps {
|
|
3
|
+
orderData: any;
|
|
4
|
+
paymentFieldsData: any[];
|
|
5
|
+
customMobileText?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const OrderDetails: ({ orderData, paymentFieldsData, customMobileText }: OrderDetailsProps) => JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -31,5 +31,6 @@ export interface IPaymentPage {
|
|
|
31
31
|
hideFieldsBlock?: boolean;
|
|
32
32
|
isSinglePageCheckout?: boolean;
|
|
33
33
|
stripePaymentProps?: Partial<ICheckoutForm>;
|
|
34
|
+
stripePublishableKey?: string;
|
|
34
35
|
}
|
|
35
|
-
export declare const PaymentContainer: ({ paymentFields, handlePayment, formTitle, errorText, checkoutData, onErrorClose, onGetPaymentDataSuccess, onGetPaymentDataError, onPaymentError, themeOptions, elementsOptions, onCountdownFinish, enableTimer, enablePaymentPlan, orderInfoLabel, paymentInfoLabel, displayPaymentButton, hidePaymentForm, hideFieldsBlock, isSinglePageCheckout, stripePaymentProps, }: IPaymentPage) => JSX.Element;
|
|
36
|
+
export declare const PaymentContainer: ({ paymentFields, handlePayment, formTitle, errorText, checkoutData, onErrorClose, onGetPaymentDataSuccess, onGetPaymentDataError, onPaymentError, themeOptions, elementsOptions, onCountdownFinish, enableTimer, enablePaymentPlan, orderInfoLabel, paymentInfoLabel, displayPaymentButton, hidePaymentForm, hideFieldsBlock, isSinglePageCheckout, stripePaymentProps, stripePublishableKey: stripePublishableKeyProps, }: IPaymentPage) => JSX.Element;
|