@bigbinary/neeto-webhooks-frontend 1.6.9 → 1.6.11
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 +82 -48
- package/dist/index.cjs.js +10 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/package.json +12 -12
package/dist/index.js
CHANGED
|
@@ -593,6 +593,13 @@ var TransactionDetails = function TransactionDetails(_ref) {
|
|
|
593
593
|
className: "flex w-full items-center justify-center py-6"
|
|
594
594
|
}, /*#__PURE__*/React.createElement(Spinner, null));
|
|
595
595
|
}
|
|
596
|
+
var renderPayload = function renderPayload() {
|
|
597
|
+
try {
|
|
598
|
+
return JSON.stringify(JSON.parse(deliveryDetails.requestBody), null, 2);
|
|
599
|
+
} catch (_unused) {
|
|
600
|
+
return "";
|
|
601
|
+
}
|
|
602
|
+
};
|
|
596
603
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
597
604
|
className: "neeto-ui-bg-white sticky top-0 mb-2 flex w-full flex-col"
|
|
598
605
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -622,7 +629,7 @@ var TransactionDetails = function TransactionDetails(_ref) {
|
|
|
622
629
|
return setActiveHeader(DELIVERY_TAB.response);
|
|
623
630
|
}
|
|
624
631
|
}, t("neetoWebhooks.delivery.response")))), /*#__PURE__*/React.createElement("div", {
|
|
625
|
-
className: "mt-2"
|
|
632
|
+
className: "mt-2 w-full"
|
|
626
633
|
}, activeHeader === DELIVERY_TAB.request ? /*#__PURE__*/React.createElement("div", {
|
|
627
634
|
className: "space-y-4"
|
|
628
635
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Typography, {
|
|
@@ -633,7 +640,7 @@ var TransactionDetails = function TransactionDetails(_ref) {
|
|
|
633
640
|
style: "h5"
|
|
634
641
|
}, t("neetoWebhooks.delivery.payload")), /*#__PURE__*/React.createElement(Snippet, {
|
|
635
642
|
dataCy: "delivery-request-payload"
|
|
636
|
-
},
|
|
643
|
+
}, renderPayload()))) : /*#__PURE__*/React.createElement("div", {
|
|
637
644
|
className: "space-y-4"
|
|
638
645
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Typography, {
|
|
639
646
|
style: "h5"
|
|
@@ -1328,6 +1335,7 @@ var AddWebhookPane = function AddWebhookPane(_ref) {
|
|
|
1328
1335
|
label: t("neetoWebhooks.webhook.active"),
|
|
1329
1336
|
name: "isActive"
|
|
1330
1337
|
}), !isSecretInputFieldVisible && /*#__PURE__*/React.createElement(Button, {
|
|
1338
|
+
"data-cy": "add-secret-key",
|
|
1331
1339
|
icon: Plus,
|
|
1332
1340
|
label: t("neetoWebhooks.buttons.addSecretKey"),
|
|
1333
1341
|
style: "text",
|