tf-checkout-react 1.3.20 → 1.3.22
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/orderDetailsContainer/index.d.ts +2 -1
- package/dist/tf-checkout-react.cjs.development.js +13 -7
- 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 +13 -7
- package/dist/tf-checkout-react.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- package/src/api/index.ts +12 -5
- package/src/components/.DS_Store +0 -0
- package/src/components/common/dist/PhoneNumberField.js +96 -0
- package/src/components/orderDetailsContainer/index.tsx +4 -2
|
@@ -19,6 +19,7 @@ interface OrderDetailsTypes {
|
|
|
19
19
|
key: keyof ITicketTypes & keyof IActionColumns;
|
|
20
20
|
label: string | number | null | undefined;
|
|
21
21
|
}>;
|
|
22
|
+
ordersPath?: string;
|
|
22
23
|
}
|
|
23
|
-
export declare const OrderDetailsContainer: ({ columns, onGetOrdersSuccess, onGetOrdersError, onRemoveFromResaleSuccess, onRemoveFromResaleError, onResaleTicketSuccess, onResaleTicketError, onReturnButtonClick, personalLinkIcon, displayColumnNameInRow, ticketsTableColumns, }: OrderDetailsTypes) => JSX.Element;
|
|
24
|
+
export declare const OrderDetailsContainer: ({ columns, onGetOrdersSuccess, onGetOrdersError, onRemoveFromResaleSuccess, onRemoveFromResaleError, onResaleTicketSuccess, onResaleTicketError, onReturnButtonClick, personalLinkIcon, displayColumnNameInRow, ticketsTableColumns, ordersPath, }: OrderDetailsTypes) => JSX.Element;
|
|
24
25
|
export {};
|
|
@@ -1351,11 +1351,16 @@ function getEvent(id, pk) {
|
|
|
1351
1351
|
}
|
|
1352
1352
|
function getTickets(id, promoCode, pk) {
|
|
1353
1353
|
var invitationHash = getQueryVariable('invitation-hash');
|
|
1354
|
+
var params = {
|
|
1355
|
+
pk: pk
|
|
1356
|
+
};
|
|
1357
|
+
|
|
1358
|
+
if (invitationHash) {
|
|
1359
|
+
params['invitation-hash'] = invitationHash;
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1354
1362
|
var response = publicRequest.get("v1/event/" + id + "/tickets", {
|
|
1355
|
-
params:
|
|
1356
|
-
pk: pk,
|
|
1357
|
-
'invitation-hash': invitationHash
|
|
1358
|
-
},
|
|
1363
|
+
params: params,
|
|
1359
1364
|
headers: promoCode ? _extends({}, ttfHeaders, {
|
|
1360
1365
|
'Promotion-Event': String(id),
|
|
1361
1366
|
'Promotion-Code': promoCode
|
|
@@ -6737,7 +6742,8 @@ var OrderDetailsContainer = function OrderDetailsContainer(_ref) {
|
|
|
6737
6742
|
personalLinkIcon = _ref$personalLinkIcon === void 0 ? '' : _ref$personalLinkIcon,
|
|
6738
6743
|
_ref$displayColumnNam = _ref.displayColumnNameInRow,
|
|
6739
6744
|
displayColumnNameInRow = _ref$displayColumnNam === void 0 ? false : _ref$displayColumnNam,
|
|
6740
|
-
ticketsTableColumns = _ref.ticketsTableColumns
|
|
6745
|
+
ticketsTableColumns = _ref.ticketsTableColumns,
|
|
6746
|
+
ordersPath = _ref.ordersPath;
|
|
6741
6747
|
|
|
6742
6748
|
var _useState = React.useState({}),
|
|
6743
6749
|
data = _useState[0],
|
|
@@ -6996,7 +7002,7 @@ var OrderDetailsContainer = function OrderDetailsContainer(_ref) {
|
|
|
6996
7002
|
className: "return-button",
|
|
6997
7003
|
onClick: function onClick() {
|
|
6998
7004
|
if (typeof window !== 'undefined') {
|
|
6999
|
-
window.location.assign('/orders');
|
|
7005
|
+
window.location.assign(ordersPath != null ? ordersPath : '/orders');
|
|
7000
7006
|
}
|
|
7001
7007
|
}
|
|
7002
7008
|
}, "Back to Orders")))), !(data != null && data.disable_referral) && React__default.createElement("div", {
|
|
@@ -7064,7 +7070,7 @@ var OrderDetailsContainer = function OrderDetailsContainer(_ref) {
|
|
|
7064
7070
|
if (onReturnButtonClick) {
|
|
7065
7071
|
onReturnButtonClick(data);
|
|
7066
7072
|
} else if (typeof window !== 'undefined') {
|
|
7067
|
-
window.location.assign('/orders');
|
|
7073
|
+
window.location.assign(ordersPath != null ? ordersPath : '/orders');
|
|
7068
7074
|
}
|
|
7069
7075
|
}
|
|
7070
7076
|
}, "Return to Order History"))), showResaleModal && React__default.createElement(TicketResaleModal, {
|