tf-checkout-react 1.3.18 → 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 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 {};
@@ -3681,6 +3681,10 @@ var BillingInfoContainer = /*#__PURE__*/React__default.memo(function (_ref4) {
3681
3681
  }
3682
3682
  }
3683
3683
 
3684
+ if (hideWalletAddressField && el.name === 'wallet-address-info') {
3685
+ return false;
3686
+ }
3687
+
3684
3688
  return true;
3685
3689
  }), function (element) {
3686
3690
  return ['password', 'confirmPassword', 'password-info'].includes(element.name) && isLoggedIn ? null : ['data_capture[wallet_address]'].includes(element.name) && hideWalletAddressField ? null : React__default.createElement(React__default.Fragment, {
@@ -5515,7 +5519,8 @@ var TicketsContainer = function TicketsContainer(_ref) {
5515
5519
  _ref$handleNotInvited = _ref.handleNotInvitedModalClose,
5516
5520
  handleNotInvitedModalClose = _ref$handleNotInvited === void 0 ? _identity : _ref$handleNotInvited,
5517
5521
  _ref$handleInvalidLin = _ref.handleInvalidLinkModalClose,
5518
- handleInvalidLinkModalClose = _ref$handleInvalidLin === void 0 ? _identity : _ref$handleInvalidLin;
5522
+ handleInvalidLinkModalClose = _ref$handleInvalidLin === void 0 ? _identity : _ref$handleInvalidLin,
5523
+ ordersPath = _ref.ordersPath;
5519
5524
 
5520
5525
  var _useState = React.useState({}),
5521
5526
  selectedTickets = _useState[0],
@@ -5758,7 +5763,7 @@ var TicketsContainer = function TicketsContainer(_ref) {
5758
5763
 
5759
5764
  var handleOrdersClick = function handleOrdersClick() {
5760
5765
  if (isWindowDefined) {
5761
- window.location.href = '/orders';
5766
+ window.location.href = ordersPath != null ? ordersPath : '/orders';
5762
5767
  }
5763
5768
  };
5764
5769
 
@@ -7198,7 +7203,8 @@ var TicketResaleContainer = function TicketResaleContainer(_ref) {
7198
7203
  onDeclineTicketPurchaseSuccess = _ref$onDeclineTicketP === void 0 ? function () {} : _ref$onDeclineTicketP,
7199
7204
  _ref$onDeclineTicketP2 = _ref.onDeclineTicketPurchaseError,
7200
7205
  onDeclineTicketPurchaseError = _ref$onDeclineTicketP2 === void 0 ? function () {} : _ref$onDeclineTicketP2,
7201
- orderHash = _ref.orderHash;
7206
+ orderHash = _ref.orderHash,
7207
+ billingPath = _ref.billingPath;
7202
7208
  var isWindowDefined = typeof window !== 'undefined';
7203
7209
 
7204
7210
  var _useState = React.useState(''),
@@ -7268,7 +7274,7 @@ var TicketResaleContainer = function TicketResaleContainer(_ref) {
7268
7274
  names_required = _get(data, 'names_required', false);
7269
7275
  event_id = _get(data, 'event_id');
7270
7276
  onProcessTicketSuccess(_response.data);
7271
- window.location.href = "/billing/billing-info/?age_required=" + age_required + "&names_required=" + names_required + "&event_id=" + event_id;
7277
+ window.location.href = (billingPath != null ? billingPath : '/billing/billing-info/') + "?age_required=" + age_required + "&names_required=" + names_required + "&event_id=" + event_id;
7272
7278
  _context.next = 35;
7273
7279
  break;
7274
7280