tf-checkout-react 1.3.27 → 1.3.28
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/ticketsContainer/PromoCodeSection.d.ts +2 -1
- package/dist/components/ticketsContainer/index.d.ts +2 -1
- package/dist/tf-checkout-react.cjs.development.js +12 -9
- 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 +12 -9
- package/dist/tf-checkout-react.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/billing-info-container/index.tsx +2 -2
- package/src/components/loginModal/index.tsx +2 -2
- package/src/components/signupModal/index.tsx +1 -1
- package/src/components/ticketsContainer/PromoCodeSection.tsx +4 -2
- package/src/components/ticketsContainer/index.tsx +3 -0
|
@@ -9,5 +9,6 @@ export interface IPromoCodeSectionProps {
|
|
|
9
9
|
setCodeIsApplied: (value: boolean) => void;
|
|
10
10
|
codeIsInvalid: boolean;
|
|
11
11
|
setCodeIsInvalid: (value: boolean) => void;
|
|
12
|
+
promoText?: string;
|
|
12
13
|
}
|
|
13
|
-
export declare const PromoCodeSection: ({ code, codeIsApplied, showPromoInput, setCode, setShowPromoInput, updateTickets, setCodeIsApplied, codeIsInvalid, setCodeIsInvalid }: IPromoCodeSectionProps) => JSX.Element;
|
|
14
|
+
export declare const PromoCodeSection: ({ code, codeIsApplied, showPromoInput, setCode, setShowPromoInput, updateTickets, setCodeIsApplied, codeIsInvalid, setCodeIsInvalid, promoText, }: IPromoCodeSectionProps) => JSX.Element;
|
|
@@ -51,6 +51,7 @@ export interface IGetTickets {
|
|
|
51
51
|
enableInfluencersSection?: boolean;
|
|
52
52
|
enableAddOns?: boolean;
|
|
53
53
|
ordersPath?: string;
|
|
54
|
+
promoText?: string;
|
|
54
55
|
}
|
|
55
56
|
export interface ITicket {
|
|
56
57
|
id: string | number;
|
|
@@ -59,5 +60,5 @@ export interface ITicket {
|
|
|
59
60
|
export interface ISelectedTickets {
|
|
60
61
|
[key: string]: string | number;
|
|
61
62
|
}
|
|
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;
|
|
63
|
+
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, promoText, }: IGetTickets) => JSX.Element;
|
|
63
64
|
export {};
|
|
@@ -2311,7 +2311,7 @@ var LoginModal = function LoginModal(_ref) {
|
|
|
2311
2311
|
onSubmit: props.handleSubmit
|
|
2312
2312
|
}, React__default.createElement("div", {
|
|
2313
2313
|
className: "modal-title"
|
|
2314
|
-
}, "
|
|
2314
|
+
}, "Log in"), React__default.createElement("div", {
|
|
2315
2315
|
className: 'login-logo-container'
|
|
2316
2316
|
}, React__default.createElement("img", {
|
|
2317
2317
|
className: "login-logo-tff",
|
|
@@ -2359,7 +2359,7 @@ var LoginModal = function LoginModal(_ref) {
|
|
|
2359
2359
|
className: "login-action-button"
|
|
2360
2360
|
}, React__default.createElement("button", {
|
|
2361
2361
|
type: "submit"
|
|
2362
|
-
}, "
|
|
2362
|
+
}, "Log in")), showForgotPasswordButton && React__default.createElement("div", {
|
|
2363
2363
|
className: "forgot-password"
|
|
2364
2364
|
}, React__default.createElement("span", {
|
|
2365
2365
|
"aria-hidden": "true",
|
|
@@ -2546,7 +2546,7 @@ var SignupModal = function SignupModal(_ref) {
|
|
|
2546
2546
|
className: "login"
|
|
2547
2547
|
}, React__default.createElement("span", {
|
|
2548
2548
|
onClick: onLogin
|
|
2549
|
-
}, "
|
|
2549
|
+
}, "Log in")), showPoweredByImage ? React__default.createElement(PoweredBy, null) : null);
|
|
2550
2550
|
}))));
|
|
2551
2551
|
};
|
|
2552
2552
|
|
|
@@ -3660,7 +3660,7 @@ var BillingInfoContainer = /*#__PURE__*/React__default.memo(function (_ref4) {
|
|
|
3660
3660
|
className: "account-actions-block"
|
|
3661
3661
|
}, React__default.createElement("div", {
|
|
3662
3662
|
className: "action-item"
|
|
3663
|
-
}, React__default.createElement("div", null, accountInfoTitle), React__default.createElement("div", null, "
|
|
3663
|
+
}, React__default.createElement("div", null, accountInfoTitle), React__default.createElement("div", null, "Log in & skip ahead:")), React__default.createElement("div", {
|
|
3664
3664
|
className: "action-item login-block"
|
|
3665
3665
|
}, React__default.createElement("button", {
|
|
3666
3666
|
className: "login-register-button",
|
|
@@ -3673,7 +3673,7 @@ var BillingInfoContainer = /*#__PURE__*/React__default.memo(function (_ref4) {
|
|
|
3673
3673
|
setShowModalLogin(true);
|
|
3674
3674
|
}
|
|
3675
3675
|
}
|
|
3676
|
-
}, "
|
|
3676
|
+
}, "Log in"), !hideLogo && React__default.createElement("div", {
|
|
3677
3677
|
className: "logo-image-container"
|
|
3678
3678
|
}, React__default.createElement("img", {
|
|
3679
3679
|
src: theme === 'dark' ? 'https://www.ticketfairy.com/resources/images/logo-ttf.svg' : 'https://www.ticketfairy.com/resources/images/logo-ttf-black.svg',
|
|
@@ -5275,7 +5275,8 @@ var PromoCodeSection = function PromoCodeSection(_ref) {
|
|
|
5275
5275
|
updateTickets = _ref.updateTickets,
|
|
5276
5276
|
setCodeIsApplied = _ref.setCodeIsApplied,
|
|
5277
5277
|
codeIsInvalid = _ref.codeIsInvalid,
|
|
5278
|
-
setCodeIsInvalid = _ref.setCodeIsInvalid
|
|
5278
|
+
setCodeIsInvalid = _ref.setCodeIsInvalid,
|
|
5279
|
+
promoText = _ref.promoText;
|
|
5279
5280
|
var isPromoCodeHasValue = !!code.trim();
|
|
5280
5281
|
|
|
5281
5282
|
var renderInputField = function renderInputField() {
|
|
@@ -5331,7 +5332,7 @@ var PromoCodeSection = function PromoCodeSection(_ref) {
|
|
|
5331
5332
|
setShowPromoInput(true);
|
|
5332
5333
|
setCodeIsInvalid(false);
|
|
5333
5334
|
}
|
|
5334
|
-
},
|
|
5335
|
+
}, promoText != null ? promoText : 'Got a promo code? Click here'), showPromoInput && renderInputField());
|
|
5335
5336
|
};
|
|
5336
5337
|
|
|
5337
5338
|
var ReferralLogic = function ReferralLogic(props) {
|
|
@@ -5574,7 +5575,8 @@ var TicketsContainer = function TicketsContainer(_ref) {
|
|
|
5574
5575
|
handleNotInvitedModalClose = _ref$handleNotInvited === void 0 ? _identity : _ref$handleNotInvited,
|
|
5575
5576
|
_ref$handleInvalidLin = _ref.handleInvalidLinkModalClose,
|
|
5576
5577
|
handleInvalidLinkModalClose = _ref$handleInvalidLin === void 0 ? _identity : _ref$handleInvalidLin,
|
|
5577
|
-
ordersPath = _ref.ordersPath
|
|
5578
|
+
ordersPath = _ref.ordersPath,
|
|
5579
|
+
promoText = _ref.promoText;
|
|
5578
5580
|
|
|
5579
5581
|
var _useState = React.useState({}),
|
|
5580
5582
|
selectedTickets = _useState[0],
|
|
@@ -6130,7 +6132,8 @@ var TicketsContainer = function TicketsContainer(_ref) {
|
|
|
6130
6132
|
setCode: setCode,
|
|
6131
6133
|
updateTickets: updateTickets,
|
|
6132
6134
|
codeIsInvalid: codeIsInvalid,
|
|
6133
|
-
setCodeIsInvalid: setCodeIsInvalid
|
|
6135
|
+
setCodeIsInvalid: setCodeIsInvalid,
|
|
6136
|
+
promoText: promoText
|
|
6134
6137
|
}) : null, wrappedActionsSectionComponent, canShowGetTicketBtn() && React__default.createElement(Button$1, {
|
|
6135
6138
|
"aria-hidden": true,
|
|
6136
6139
|
className: "book-button \n " + (bookButtonIsDisabled ? 'disabled' : '') + " \n " + (isButtonScrollable ? 'is-scrollable' : '') + "\n " + (!isLoggedIn ? 'on-bottom' : '') + "\n ",
|