tf-checkout-react 1.3.19 → 1.3.20
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 +5 -0
- package/dist/components/ticketResale/index.d.ts +2 -1
- package/dist/components/ticketsContainer/index.d.ts +2 -1
- package/dist/tf-checkout-react.cjs.development.js +6 -4
- 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 +6 -4
- package/dist/tf-checkout-react.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ticketResale/index.tsx +14 -9
- package/src/components/ticketsContainer/index.tsx +3 -1
package/README.md
CHANGED
|
@@ -49,6 +49,11 @@ This package containes Ticketfairy checkout functionality. Besides that package
|
|
|
49
49
|
|
|
50
50
|
## [WebFlow](/webflow/public/INTEGRATION.md)
|
|
51
51
|
|
|
52
|
+
## Clients (Minimal version required)
|
|
53
|
+
|
|
54
|
+
- Mana Common (1.3.19)
|
|
55
|
+
- Restlesnites (1.3.3)
|
|
56
|
+
|
|
52
57
|
|
|
53
58
|
|
|
54
59
|
# Getting started
|
|
@@ -6,5 +6,6 @@ export interface ITicketResaleContainer {
|
|
|
6
6
|
onDeclineTicketPurchaseSuccess: (res: any) => void;
|
|
7
7
|
onDeclineTicketPurchaseError: (e: AxiosError) => void;
|
|
8
8
|
orderHash?: string;
|
|
9
|
+
billingPath?: string;
|
|
9
10
|
}
|
|
10
|
-
export declare const TicketResaleContainer: ({ onProcessTicketSuccess, onProcessTicketError, onDeclineTicketPurchaseSuccess, onDeclineTicketPurchaseError, orderHash, }: ITicketResaleContainer) => JSX.Element;
|
|
11
|
+
export declare const TicketResaleContainer: ({ onProcessTicketSuccess, onProcessTicketError, onDeclineTicketPurchaseSuccess, onDeclineTicketPurchaseError, orderHash, billingPath, }: ITicketResaleContainer) => JSX.Element;
|
|
@@ -50,6 +50,7 @@ export interface IGetTickets {
|
|
|
50
50
|
hideTicketsHeader?: boolean;
|
|
51
51
|
enableInfluencersSection?: boolean;
|
|
52
52
|
enableAddOns?: boolean;
|
|
53
|
+
ordersPath?: string;
|
|
53
54
|
}
|
|
54
55
|
export interface ITicket {
|
|
55
56
|
id: string | number;
|
|
@@ -58,5 +59,5 @@ export interface ITicket {
|
|
|
58
59
|
export interface ISelectedTickets {
|
|
59
60
|
[key: string]: string | number;
|
|
60
61
|
}
|
|
61
|
-
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, enableAddOns, handleNotInvitedModalClose, handleInvalidLinkModalClose, }: IGetTickets) => JSX.Element;
|
|
62
|
+
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, enableAddOns, handleNotInvitedModalClose, handleInvalidLinkModalClose, ordersPath, }: IGetTickets) => JSX.Element;
|
|
62
63
|
export {};
|
|
@@ -5519,7 +5519,8 @@ var TicketsContainer = function TicketsContainer(_ref) {
|
|
|
5519
5519
|
_ref$handleNotInvited = _ref.handleNotInvitedModalClose,
|
|
5520
5520
|
handleNotInvitedModalClose = _ref$handleNotInvited === void 0 ? _identity : _ref$handleNotInvited,
|
|
5521
5521
|
_ref$handleInvalidLin = _ref.handleInvalidLinkModalClose,
|
|
5522
|
-
handleInvalidLinkModalClose = _ref$handleInvalidLin === void 0 ? _identity : _ref$handleInvalidLin
|
|
5522
|
+
handleInvalidLinkModalClose = _ref$handleInvalidLin === void 0 ? _identity : _ref$handleInvalidLin,
|
|
5523
|
+
ordersPath = _ref.ordersPath;
|
|
5523
5524
|
|
|
5524
5525
|
var _useState = React.useState({}),
|
|
5525
5526
|
selectedTickets = _useState[0],
|
|
@@ -5762,7 +5763,7 @@ var TicketsContainer = function TicketsContainer(_ref) {
|
|
|
5762
5763
|
|
|
5763
5764
|
var handleOrdersClick = function handleOrdersClick() {
|
|
5764
5765
|
if (isWindowDefined) {
|
|
5765
|
-
window.location.href = '/orders';
|
|
5766
|
+
window.location.href = ordersPath != null ? ordersPath : '/orders';
|
|
5766
5767
|
}
|
|
5767
5768
|
};
|
|
5768
5769
|
|
|
@@ -7202,7 +7203,8 @@ var TicketResaleContainer = function TicketResaleContainer(_ref) {
|
|
|
7202
7203
|
onDeclineTicketPurchaseSuccess = _ref$onDeclineTicketP === void 0 ? function () {} : _ref$onDeclineTicketP,
|
|
7203
7204
|
_ref$onDeclineTicketP2 = _ref.onDeclineTicketPurchaseError,
|
|
7204
7205
|
onDeclineTicketPurchaseError = _ref$onDeclineTicketP2 === void 0 ? function () {} : _ref$onDeclineTicketP2,
|
|
7205
|
-
orderHash = _ref.orderHash
|
|
7206
|
+
orderHash = _ref.orderHash,
|
|
7207
|
+
billingPath = _ref.billingPath;
|
|
7206
7208
|
var isWindowDefined = typeof window !== 'undefined';
|
|
7207
7209
|
|
|
7208
7210
|
var _useState = React.useState(''),
|
|
@@ -7272,7 +7274,7 @@ var TicketResaleContainer = function TicketResaleContainer(_ref) {
|
|
|
7272
7274
|
names_required = _get(data, 'names_required', false);
|
|
7273
7275
|
event_id = _get(data, 'event_id');
|
|
7274
7276
|
onProcessTicketSuccess(_response.data);
|
|
7275
|
-
window.location.href =
|
|
7277
|
+
window.location.href = (billingPath != null ? billingPath : '/billing/billing-info/') + "?age_required=" + age_required + "&names_required=" + names_required + "&event_id=" + event_id;
|
|
7276
7278
|
_context.next = 35;
|
|
7277
7279
|
break;
|
|
7278
7280
|
|