tf-checkout-react 1.0.104 → 1.0.105
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/TicketsSection.d.ts +2 -1
- package/dist/components/ticketsContainer/index.d.ts +2 -1
- package/dist/images/done.svg +3 -3
- package/dist/tf-checkout-react.cjs.development.js +8 -6
- 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 -6
- package/dist/tf-checkout-react.esm.js.map +1 -1
- package/package.json +89 -89
- package/src/.d.ts +2 -2
- package/src/api/index.ts +293 -293
- package/src/assets/images/done.svg +3 -3
- package/src/components/billing-info-container/index.tsx +796 -796
- package/src/components/billing-info-container/style.css +105 -105
- package/src/components/billing-info-container/utils.ts +224 -224
- package/src/components/common/CheckboxField.tsx +41 -41
- package/src/components/common/CustomField.tsx +84 -84
- package/src/components/common/FormikPhoneNumberField.tsx +51 -51
- package/src/components/common/Loader.tsx +9 -9
- package/src/components/common/RadioField.tsx +35 -35
- package/src/components/common/RedirectModal.tsx +43 -43
- package/src/components/common/SelectField.tsx +80 -80
- package/src/components/common/SnackbarAlert.tsx +53 -53
- package/src/components/common/index.tsx +4 -4
- package/src/components/confirmModal/index.tsx +51 -51
- package/src/components/confirmModal/style.css +21 -21
- package/src/components/confirmationContainer/config.ts +72 -72
- package/src/components/confirmationContainer/index.tsx +197 -197
- package/src/components/confirmationContainer/social-buttons.tsx +94 -94
- package/src/components/confirmationContainer/style.css +202 -202
- package/src/components/countdown/index.tsx +89 -89
- package/src/components/countdown/style.css +9 -9
- package/src/components/index.ts +7 -7
- package/src/components/loginModal/index.tsx +209 -209
- package/src/components/loginModal/style.css +71 -71
- package/src/components/myTicketsContainer/index.tsx +196 -196
- package/src/components/myTicketsContainer/row.tsx +41 -41
- package/src/components/myTicketsContainer/style.css +39 -39
- package/src/components/myTicketsContainer/tableConfig.tsx +34 -34
- package/src/components/orderDetailsContainer/index.tsx +249 -249
- package/src/components/orderDetailsContainer/style.css +72 -72
- package/src/components/orderDetailsContainer/ticketsTable.tsx +124 -124
- package/src/components/paymentContainer/index.tsx +284 -284
- package/src/components/registerModal/index.tsx +190 -190
- package/src/components/stripePayment/index.tsx +253 -253
- package/src/components/stripePayment/style.css +59 -59
- package/src/components/ticketResale/index.tsx +56 -56
- package/src/components/ticketResaleModal/index.tsx +210 -210
- package/src/components/ticketResaleModal/style.css +28 -28
- package/src/components/ticketsContainer/PromoCodeSection.tsx +99 -99
- package/src/components/ticketsContainer/ReferralLogic.tsx +33 -33
- package/src/components/ticketsContainer/TicketRow.tsx +83 -83
- package/src/components/ticketsContainer/TicketsSection.tsx +85 -81
- package/src/components/ticketsContainer/index.tsx +430 -427
- package/src/components/ticketsContainer/style.css +181 -181
- package/src/components/ticketsContainer/utils.ts +11 -11
- package/src/components/timerWidget/index.tsx +70 -70
- package/src/components/timerWidget/style.css +26 -26
- package/src/components/waitingList/index.tsx +178 -178
- package/src/components/waitingList/style.css +26 -26
- package/src/env.ts +20 -20
- package/src/index.ts +14 -14
- package/src/normalizers/index.ts +45 -45
- package/src/types/billing-info-data.ts +37 -37
- package/src/types/payment-field.ts +7 -7
- package/src/types/referral-promotion.ts +7 -7
- package/src/utils/createCheckoutDataBodyWithDefaultHolder.ts +59 -59
- package/src/utils/downloadPDF.tsx +30 -30
- package/src/utils/formikErrorFocus.ts +24 -24
- package/src/utils/getImage.ts +14 -14
- package/src/utils/getQueryVariable.ts +13 -13
- package/src/utils/index.ts +5 -5
- package/src/utils/setConfigs.ts +26 -26
- package/src/utils/showZero.tsx +10 -10
- package/src/validators/index.ts +20 -20
- package/src/.DS_Store +0 -0
- package/src/components/.DS_Store +0 -0
|
@@ -5,6 +5,7 @@ interface ITicketsSectionProps {
|
|
|
5
5
|
selectedTickets: any;
|
|
6
6
|
handleTicketSelect: any;
|
|
7
7
|
promoCodeIsApplied: boolean;
|
|
8
|
+
sortBySoldOut: boolean;
|
|
8
9
|
}
|
|
9
|
-
export declare const TicketsSection: ({ ticketsList, selectedTickets, handleTicketSelect, promoCodeIsApplied, }: ITicketsSectionProps) => JSX.Element;
|
|
10
|
+
export declare const TicketsSection: ({ ticketsList, selectedTickets, handleTicketSelect, promoCodeIsApplied, sortBySoldOut, }: ITicketsSectionProps) => JSX.Element;
|
|
10
11
|
export {};
|
|
@@ -31,6 +31,7 @@ export interface IGetTickets {
|
|
|
31
31
|
hideSessionButtons?: boolean;
|
|
32
32
|
hideWaitingList?: boolean;
|
|
33
33
|
isButtonScrollable?: boolean;
|
|
34
|
+
sortBySoldOut?: boolean;
|
|
34
35
|
}
|
|
35
36
|
export interface ITicket {
|
|
36
37
|
id: string | number;
|
|
@@ -39,5 +40,5 @@ export interface ITicket {
|
|
|
39
40
|
export interface ISelectedTickets {
|
|
40
41
|
[key: string]: string | number;
|
|
41
42
|
}
|
|
42
|
-
export declare const TicketsContainer: ({ onLoginSuccess, getTicketsLabel, eventId, onAddToCartSuccess, contentStyle, onAddToCartError, onGetTicketsSuccess, onGetTicketsError, theme, queryPromoCode, isPromotionsEnabled, themeOptions, isAccessCodeEnabled, hideSessionButtons, hideWaitingList, isButtonScrollable }: IGetTickets) => JSX.Element;
|
|
43
|
+
export declare const TicketsContainer: ({ onLoginSuccess, getTicketsLabel, eventId, onAddToCartSuccess, contentStyle, onAddToCartError, onGetTicketsSuccess, onGetTicketsError, theme, queryPromoCode, isPromotionsEnabled, themeOptions, isAccessCodeEnabled, hideSessionButtons, hideWaitingList, isButtonScrollable, sortBySoldOut, }: IGetTickets) => JSX.Element;
|
|
43
44
|
export {};
|
package/dist/images/done.svg
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M10 20C15.5228 20 20 15.5228 20 10C20 4.47717 15.5228 0 10 0C4.47717 0 0 4.47717 0 10C0 15.5228 4.47717 20 10 20ZM8.14661 15.8678L16.8782 6.39722C16.9561 6.31335 17 6.19922 17 6.08008C17 5.96094 16.9561 5.8468 16.8782 5.76282L16.3016 5.12854C16.1386 4.95715 15.8796 4.95715 15.7167 5.12854L7.85004 13.661L4.28326 9.79236C4.20593 9.70776 4.10071 9.66016 3.99084 9.66016C3.9353 9.66016 3.88086 9.67236 3.83069 9.69531C3.78168 9.71777 3.73663 9.75061 3.69843 9.79236L3.12183 10.4177C3.07635 10.4667 3.04248 10.5259 3.02216 10.5905C3.00763 10.6365 3 10.6853 3 10.735C3 10.8541 3.04388 10.9683 3.12183 11.0521L7.56177 15.8678C7.6391 15.9524 7.74438 16 7.85419 16C7.96399 16 8.06927 15.9524 8.14661 15.8678Z" fill="#569F44"/>
|
|
3
|
-
</svg>
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M10 20C15.5228 20 20 15.5228 20 10C20 4.47717 15.5228 0 10 0C4.47717 0 0 4.47717 0 10C0 15.5228 4.47717 20 10 20ZM8.14661 15.8678L16.8782 6.39722C16.9561 6.31335 17 6.19922 17 6.08008C17 5.96094 16.9561 5.8468 16.8782 5.76282L16.3016 5.12854C16.1386 4.95715 15.8796 4.95715 15.7167 5.12854L7.85004 13.661L4.28326 9.79236C4.20593 9.70776 4.10071 9.66016 3.99084 9.66016C3.9353 9.66016 3.88086 9.67236 3.83069 9.69531C3.78168 9.71777 3.73663 9.75061 3.69843 9.79236L3.12183 10.4177C3.07635 10.4667 3.04248 10.5259 3.02216 10.5905C3.00763 10.6365 3 10.6853 3 10.735C3 10.8541 3.04388 10.9683 3.12183 11.0521L7.56177 15.8678C7.6391 15.9524 7.74438 16 7.85419 16C7.96399 16 8.06927 15.9524 8.14661 15.8678Z" fill="#569F44"/>
|
|
3
|
+
</svg>
|
|
@@ -4157,10 +4157,9 @@ var TicketsSection = function TicketsSection(_ref) {
|
|
|
4157
4157
|
var ticketsList = _ref.ticketsList,
|
|
4158
4158
|
selectedTickets = _ref.selectedTickets,
|
|
4159
4159
|
handleTicketSelect = _ref.handleTicketSelect,
|
|
4160
|
-
promoCodeIsApplied = _ref.promoCodeIsApplied
|
|
4161
|
-
|
|
4162
|
-
var sortedTicketsList = _sortBy(ticketsList, 'sortOrder');
|
|
4163
|
-
|
|
4160
|
+
promoCodeIsApplied = _ref.promoCodeIsApplied,
|
|
4161
|
+
sortBySoldOut = _ref.sortBySoldOut;
|
|
4162
|
+
var sortedTicketsList = sortBySoldOut ? _sortBy(_sortBy(ticketsList, 'sortOrder'), 'soldOut') : _sortBy(ticketsList, 'sortOrder');
|
|
4164
4163
|
return React__default.createElement(React__default.Fragment, null, sortedTicketsList.map(function (ticket, i, arr) {
|
|
4165
4164
|
var isSoldOut = ticket.sold_out || !ticket.displayTicket || ticket.soldOut;
|
|
4166
4165
|
|
|
@@ -4588,7 +4587,9 @@ var TicketsContainer = function TicketsContainer(_ref) {
|
|
|
4588
4587
|
_ref$hideWaitingList = _ref.hideWaitingList,
|
|
4589
4588
|
hideWaitingList = _ref$hideWaitingList === void 0 ? false : _ref$hideWaitingList,
|
|
4590
4589
|
_ref$isButtonScrollab = _ref.isButtonScrollable,
|
|
4591
|
-
isButtonScrollable = _ref$isButtonScrollab === void 0 ? false : _ref$isButtonScrollab
|
|
4590
|
+
isButtonScrollable = _ref$isButtonScrollab === void 0 ? false : _ref$isButtonScrollab,
|
|
4591
|
+
_ref$sortBySoldOut = _ref.sortBySoldOut,
|
|
4592
|
+
sortBySoldOut = _ref$sortBySoldOut === void 0 ? false : _ref$sortBySoldOut;
|
|
4592
4593
|
|
|
4593
4594
|
var _useState = React.useState({}),
|
|
4594
4595
|
selectedTickets = _useState[0],
|
|
@@ -4948,7 +4949,8 @@ var TicketsContainer = function TicketsContainer(_ref) {
|
|
|
4948
4949
|
ticketsList: tickets,
|
|
4949
4950
|
selectedTickets: selectedTickets,
|
|
4950
4951
|
handleTicketSelect: handleTicketSelect,
|
|
4951
|
-
promoCodeIsApplied: promoCodeIsApplied
|
|
4952
|
+
promoCodeIsApplied: promoCodeIsApplied,
|
|
4953
|
+
sortBySoldOut: sortBySoldOut
|
|
4952
4954
|
}), event != null && event.salesEnded ? React__default.createElement("p", {
|
|
4953
4955
|
className: 'event-closed-message'
|
|
4954
4956
|
}, "Sales for this event are closed.") : !(event != null && event.salesStarted) && event != null && event.salesStart ? React__default.createElement(Countdown, {
|