@bigbinary/neeto-webhooks-frontend 1.6.29 → 1.6.30
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/app/javascript/src/translations/en.json +2 -1
- package/dist/index.cjs.js +17 -13
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +17 -13
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
"header": "Header",
|
|
40
40
|
"body": "Body",
|
|
41
41
|
"payload": "Payload",
|
|
42
|
-
"
|
|
42
|
+
"deliveryId": "Delivery ID",
|
|
43
|
+
"sid": "ID",
|
|
43
44
|
"empty": {
|
|
44
45
|
"title": "There are no deliveries to show.",
|
|
45
46
|
"description": "No events have been sent to this webhook"
|
package/dist/index.cjs.js
CHANGED
|
@@ -697,7 +697,8 @@ var TransactionDetails = function TransactionDetails(_ref) {
|
|
|
697
697
|
t = _useTranslation.t;
|
|
698
698
|
var status = delivery.status,
|
|
699
699
|
identifier = delivery.identifier,
|
|
700
|
-
responseStatusCode = delivery.responseStatusCode
|
|
700
|
+
responseStatusCode = delivery.responseStatusCode,
|
|
701
|
+
sid = delivery.sid;
|
|
701
702
|
var renderPayload = function renderPayload() {
|
|
702
703
|
try {
|
|
703
704
|
return JSON.stringify(JSON.parse(delivery.requestBody), null, 2);
|
|
@@ -712,7 +713,15 @@ var TransactionDetails = function TransactionDetails(_ref) {
|
|
|
712
713
|
className: "flex w-full flex-col space-y-2 pb-4",
|
|
713
714
|
children: [/*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
714
715
|
className: "flex items-center space-x-1",
|
|
715
|
-
children: [t("neetoWebhooks.delivery.
|
|
716
|
+
children: [t("neetoWebhooks.delivery.sid"), ":", /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
|
|
717
|
+
className: "px-2 font-bold",
|
|
718
|
+
"data-cy": "delivery-sid",
|
|
719
|
+
style: "body2",
|
|
720
|
+
children: sid
|
|
721
|
+
})]
|
|
722
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
723
|
+
className: "flex items-center space-x-1",
|
|
724
|
+
children: [t("neetoWebhooks.delivery.deliveryId"), ":", /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
|
|
716
725
|
className: "px-2 font-bold",
|
|
717
726
|
"data-cy": "delivery-identifier",
|
|
718
727
|
style: "body2",
|
|
@@ -878,9 +887,9 @@ var Details = function Details(_ref) {
|
|
|
878
887
|
};
|
|
879
888
|
|
|
880
889
|
var buildColumns$1 = function buildColumns(_ref) {
|
|
881
|
-
var
|
|
890
|
+
var deliveryDetailsPath = _ref.deliveryDetailsPath;
|
|
882
891
|
return [{
|
|
883
|
-
title: i18next.t("neetoWebhooks.delivery.
|
|
892
|
+
title: i18next.t("neetoWebhooks.delivery.deliveryId"),
|
|
884
893
|
key: "identifier",
|
|
885
894
|
dataIndex: "identifier",
|
|
886
895
|
width: 390,
|
|
@@ -889,10 +898,10 @@ var buildColumns$1 = function buildColumns(_ref) {
|
|
|
889
898
|
className: "flex items-center gap-x-3",
|
|
890
899
|
children: [/*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
|
|
891
900
|
style: "link",
|
|
901
|
+
to: utils.buildUrl(deliveryDetailsPath, {
|
|
902
|
+
deliveryId: delivery.sid
|
|
903
|
+
}),
|
|
892
904
|
weight: "semibold",
|
|
893
|
-
onClick: function onClick() {
|
|
894
|
-
return handleDetailsClick(delivery.sid);
|
|
895
|
-
},
|
|
896
905
|
children: delivery.identifier
|
|
897
906
|
}), delivery.redelivery && /*#__PURE__*/jsxRuntime.jsx(Tag__default["default"], {
|
|
898
907
|
style: "info",
|
|
@@ -982,11 +991,6 @@ var Deliveries = function Deliveries(_ref) {
|
|
|
982
991
|
link: window.location.pathname,
|
|
983
992
|
text: endpoint
|
|
984
993
|
}]);
|
|
985
|
-
var handleDetailsClick = function handleDetailsClick(sid) {
|
|
986
|
-
return history.push(utils.buildUrl(deliveryDetailsPath, {
|
|
987
|
-
deliveryId: sid
|
|
988
|
-
}));
|
|
989
|
-
};
|
|
990
994
|
var handleClose = function handleClose() {
|
|
991
995
|
history.push(utils.buildUrl(deliveriesPath, {
|
|
992
996
|
webhookId: webhookId
|
|
@@ -1004,7 +1008,7 @@ var Deliveries = function Deliveries(_ref) {
|
|
|
1004
1008
|
totalCount: totalCount,
|
|
1005
1009
|
fixedHeight: true,
|
|
1006
1010
|
columnData: buildColumns$1({
|
|
1007
|
-
|
|
1011
|
+
deliveryDetailsPath: deliveryDetailsPath
|
|
1008
1012
|
}),
|
|
1009
1013
|
currentPageNumber: pageNumber,
|
|
1010
1014
|
defaultPageSize: constants.DEFAULT_PAGE_SIZE,
|