@bigbinary/neeto-webhooks-frontend 1.6.25 → 1.6.26
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 +32 -14
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +32 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -49,7 +49,8 @@
|
|
|
49
49
|
"title": "Webhooks",
|
|
50
50
|
"description": "All new action event details will be posted to the configured webhook URLs",
|
|
51
51
|
"helpDescription": "Receive a webhook when the specified events take place.",
|
|
52
|
-
"empty": "There are no webhooks
|
|
52
|
+
"empty": "There are no webhooks to show.",
|
|
53
|
+
"emptyHelpText": "What are webhooks?",
|
|
53
54
|
"add": "Add new webhook",
|
|
54
55
|
"endpoint": "Endpoint",
|
|
55
56
|
"event_one": "Event",
|
package/dist/index.cjs.js
CHANGED
|
@@ -24,6 +24,7 @@ var HelpPopover = require('@bigbinary/neeto-molecules/HelpPopover');
|
|
|
24
24
|
var MoreDropdown = require('@bigbinary/neeto-molecules/MoreDropdown');
|
|
25
25
|
var formik = require('@bigbinary/neetoui/formik');
|
|
26
26
|
var yup = require('yup');
|
|
27
|
+
var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
27
28
|
|
|
28
29
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
29
30
|
|
|
@@ -976,6 +977,9 @@ var useDestroyWebhook = function useDestroyWebhook(options) {
|
|
|
976
977
|
});
|
|
977
978
|
};
|
|
978
979
|
|
|
980
|
+
var WEBHOOK_HELP_URL = "https://neetocalhelp.neetokb.com/p/a-4bb6c2a2";
|
|
981
|
+
var WEBHOOK_SECRETS_HELP_URL = "https://neetocalhelp.neetokb.com/p/a-80de90bd";
|
|
982
|
+
|
|
979
983
|
function _typeof(o) {
|
|
980
984
|
"@babel/helpers - typeof";
|
|
981
985
|
|
|
@@ -1031,9 +1035,6 @@ var useFetchEvents = function useFetchEvents() {
|
|
|
1031
1035
|
});
|
|
1032
1036
|
};
|
|
1033
1037
|
|
|
1034
|
-
var WEBHOOK_HELP_URL = "https://neetocalhelp.neetokb.com/p/a-4bb6c2a2";
|
|
1035
|
-
var WEBHOOK_SECRETS_HELP_URL = "https://neetocalhelp.neetokb.com/p/a-80de90bd";
|
|
1036
|
-
|
|
1037
1038
|
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
1038
1039
|
// require the crypto API and do not support built-in fallback to lower quality random number
|
|
1039
1040
|
// generators (like Math.random()).
|
|
@@ -1386,28 +1387,35 @@ var AddWebhookPane = function AddWebhookPane(_ref) {
|
|
|
1386
1387
|
}));
|
|
1387
1388
|
};
|
|
1388
1389
|
|
|
1389
|
-
var Header = function
|
|
1390
|
-
var
|
|
1390
|
+
var Header = reactUtils.withT(function (_ref) {
|
|
1391
|
+
var t = _ref.t,
|
|
1392
|
+
breadcrumbs = _ref.breadcrumbs,
|
|
1391
1393
|
setIsAddWebhookPaneOpen = _ref.setIsAddWebhookPaneOpen;
|
|
1392
|
-
var _useTranslation = reactI18next.useTranslation(),
|
|
1393
|
-
t = _useTranslation.t;
|
|
1394
1394
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(Header__default["default"], {
|
|
1395
1395
|
breadcrumbs: breadcrumbs,
|
|
1396
|
-
title: t("neetoWebhooks.webhook.title"),
|
|
1397
1396
|
actionBlock: /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
|
|
1398
1397
|
"data-cy": "add-new-webhook-button",
|
|
1399
1398
|
label: t("neetoWebhooks.webhook.add"),
|
|
1400
1399
|
onClick: function onClick() {
|
|
1401
1400
|
return setIsAddWebhookPaneOpen(true);
|
|
1402
1401
|
}
|
|
1403
|
-
})
|
|
1402
|
+
}),
|
|
1403
|
+
title: /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1404
|
+
className: "flex items-center gap-x-2"
|
|
1405
|
+
}, t("neetoWebhooks.webhook.title"), /*#__PURE__*/React__default["default"].createElement(HelpPopover__default["default"], {
|
|
1406
|
+
description: t("neetoWebhooks.webhook.helpDescription"),
|
|
1407
|
+
helpLinkProps: {
|
|
1408
|
+
href: WEBHOOK_HELP_URL
|
|
1409
|
+
},
|
|
1410
|
+
title: t("neetoWebhooks.webhook.title")
|
|
1411
|
+
}))
|
|
1404
1412
|
}), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
1405
1413
|
className: "mb-3",
|
|
1406
1414
|
"data-cy": "webhook-description-header",
|
|
1407
1415
|
style: "h5",
|
|
1408
1416
|
weight: "normal"
|
|
1409
1417
|
}, t("neetoWebhooks.webhook.description")));
|
|
1410
|
-
};
|
|
1418
|
+
});
|
|
1411
1419
|
var Header$1 = /*#__PURE__*/React__default["default"].memo(Header);
|
|
1412
1420
|
|
|
1413
1421
|
var Webhooks = function Webhooks(_ref) {
|
|
@@ -1487,9 +1495,7 @@ var Webhooks = function Webhooks(_ref) {
|
|
|
1487
1495
|
fixedHeight: true,
|
|
1488
1496
|
currentPageNumber: pageNumber,
|
|
1489
1497
|
defaultPageSize: constants.DEFAULT_PAGE_SIZE,
|
|
1490
|
-
handlePageChange:
|
|
1491
|
-
return setPageNumber(page);
|
|
1492
|
-
},
|
|
1498
|
+
handlePageChange: setPageNumber,
|
|
1493
1499
|
loading: isFetching,
|
|
1494
1500
|
rowData: webhooks,
|
|
1495
1501
|
columnData: buildColumns({
|
|
@@ -1500,7 +1506,19 @@ var Webhooks = function Webhooks(_ref) {
|
|
|
1500
1506
|
})) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1501
1507
|
className: "flex h-full w-full items-center justify-center"
|
|
1502
1508
|
}, /*#__PURE__*/React__default["default"].createElement(neetoui.NoData, {
|
|
1503
|
-
title: t("neetoWebhooks.webhook.empty")
|
|
1509
|
+
title: t("neetoWebhooks.webhook.empty"),
|
|
1510
|
+
helpText: /*#__PURE__*/React__default["default"].createElement("a", {
|
|
1511
|
+
className: "neeto-ui-text-primary-800 hover:neeto-ui-text-primary-800 visited:neeto-ui-text-primary-600 font-medium",
|
|
1512
|
+
href: WEBHOOK_HELP_URL,
|
|
1513
|
+
rel: "noreferrer",
|
|
1514
|
+
target: "_blank"
|
|
1515
|
+
}, t("neetoWebhooks.webhook.emptyHelpText")),
|
|
1516
|
+
primaryButtonProps: {
|
|
1517
|
+
label: t("neetoWebhooks.webhook.add"),
|
|
1518
|
+
onClick: function onClick() {
|
|
1519
|
+
return setIsAddWebhookPaneOpen(true);
|
|
1520
|
+
}
|
|
1521
|
+
}
|
|
1504
1522
|
})), /*#__PURE__*/React__default["default"].createElement(AddWebhookPane, {
|
|
1505
1523
|
editingWebhookId: editingWebhookId,
|
|
1506
1524
|
entityId: entityId,
|