@bigbinary/neeto-webhooks-frontend 1.6.14 → 1.6.16

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/index.js CHANGED
@@ -8,14 +8,15 @@ import Header$2 from '@bigbinary/neeto-molecules/Header';
8
8
  import PageLoader from '@bigbinary/neeto-molecules/PageLoader';
9
9
  import TableWrapper from '@bigbinary/neeto-molecules/TableWrapper';
10
10
  import { Typography, Tag, Tab, Pane, Button, Table, NoData, Spinner, Alert } from '@bigbinary/neetoui';
11
- import { useTranslation, Trans } from 'react-i18next';
11
+ import { useTranslation } from 'react-i18next';
12
12
  import { QueryClient, QueryCache, QueryClientProvider, useQuery, useQueryClient, useMutation } from 'react-query';
13
13
  import { ReactQueryDevtools } from 'react-query/devtools';
14
14
  import axios from 'axios';
15
15
  import DateFormat from '@bigbinary/neeto-molecules/DateFormat';
16
16
  import { t as t$1 } from 'i18next';
17
17
  import { prop, pluck, assoc } from 'ramda';
18
- import { Info, Plus } from '@bigbinary/neeto-icons';
18
+ import { Plus } from '@bigbinary/neeto-icons';
19
+ import HelpPopover from '@bigbinary/neeto-molecules/HelpPopover';
19
20
  import MoreDropdown from '@bigbinary/neeto-molecules/MoreDropdown';
20
21
  import { Form, Textarea, Select, Input, Switch, ActionBlock } from '@bigbinary/neetoui/formik';
21
22
  import * as yup from 'yup';
@@ -1251,19 +1252,18 @@ var AddWebhookPane = function AddWebhookPane(_ref) {
1251
1252
  onClose: onClose,
1252
1253
  initialFocusRef: endpointRef
1253
1254
  }, /*#__PURE__*/React.createElement(Pane.Header, {
1254
- className: "flex items-center space-x-3"
1255
+ className: "flex items-center gap-x-2"
1255
1256
  }, /*#__PURE__*/React.createElement(Typography, {
1256
1257
  "data-cy": "add-new-webhook-pane-header",
1257
1258
  style: "h2",
1258
1259
  weight: "semibold"
1259
- }, editingWebhookId ? t("neetoWebhooks.webhook.edit") : t("neetoWebhooks.webhook.add")), /*#__PURE__*/React.createElement("a", {
1260
- href: WEBHOOK_HELP_URL,
1261
- rel: "noreferrer",
1262
- target: "_blank"
1263
- }, /*#__PURE__*/React.createElement(Info, {
1264
- className: "neeto-ui-text-primary-800 mt-0.5 cursor-pointer",
1265
- size: 20
1266
- }))), /*#__PURE__*/React.createElement(Form, {
1260
+ }, editingWebhookId ? t("neetoWebhooks.webhook.edit") : t("neetoWebhooks.webhook.add")), /*#__PURE__*/React.createElement(HelpPopover, {
1261
+ description: t("neetoWebhooks.webhook.helpDescription"),
1262
+ helpLinkProps: {
1263
+ href: WEBHOOK_HELP_URL
1264
+ },
1265
+ title: t("neetoWebhooks.webhook.title")
1266
+ })), /*#__PURE__*/React.createElement(Form, {
1267
1267
  formikProps: {
1268
1268
  enableReinitialize: true,
1269
1269
  validationSchema: getValidationSchema(webhooks),
@@ -1303,20 +1303,15 @@ var AddWebhookPane = function AddWebhookPane(_ref) {
1303
1303
  }, /*#__PURE__*/React.createElement(Input, {
1304
1304
  "data-cy": "secret-key-input-field",
1305
1305
  name: "secret",
1306
- label: /*#__PURE__*/React.createElement(Trans, {
1307
- i18nKey: "neetoWebhooks.webhook.secret",
1308
- components: {
1309
- helpLink: /*#__PURE__*/React.createElement("a", {
1310
- href: WEBHOOK_SECRETS_HELP_URL,
1311
- rel: "noreferrer",
1312
- target: "_blank"
1313
- }),
1314
- info: /*#__PURE__*/React.createElement(Info, {
1315
- className: "neeto-ui-text-primary-800 mt-0.5 cursor-pointer",
1316
- size: 20
1317
- })
1318
- }
1319
- }),
1306
+ label: /*#__PURE__*/React.createElement("span", {
1307
+ className: "flex items-center gap-x-2"
1308
+ }, t("neetoWebhooks.webhook.secret"), /*#__PURE__*/React.createElement(HelpPopover, {
1309
+ helpLinkProps: {
1310
+ href: WEBHOOK_SECRETS_HELP_URL
1311
+ },
1312
+ description: t("neetoWebhooks.webhook.secretkeyHelpDescription"),
1313
+ title: t("neetoWebhooks.webhook.secretkeyHelpTitle")
1314
+ })),
1320
1315
  placeholder: t("neetoWebhooks.webhook.secretPlaceholder")
1321
1316
  }), /*#__PURE__*/React.createElement("div", {
1322
1317
  className: "mt-6"