@bigbinary/neeto-webhooks-frontend 1.6.1 → 1.6.3
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.cjs.js +11 -12
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +8 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { useState, useRef, useCallback } from 'react';
|
|
2
2
|
import { useParams, useRouteMatch, Switch as Switch$1, Route } from 'react-router-dom';
|
|
3
3
|
import { isPresent, removeBy, isNotEmpty, removeById, findBy } from '@bigbinary/neeto-cist';
|
|
4
|
+
import { DEFAULT_STALE_TIME, SINGULAR, DEFAULT_PAGE_SIZE, PLURAL } from '@bigbinary/neeto-commons-frontend/constants';
|
|
4
5
|
import Container from '@bigbinary/neeto-molecules/Container';
|
|
5
6
|
import Header$2 from '@bigbinary/neeto-molecules/Header';
|
|
6
7
|
import PageLoader from '@bigbinary/neeto-molecules/PageLoader';
|
|
@@ -9,13 +10,12 @@ import { Spinner, Typography, Tag, Tab, Pane, Button, Table, NoData, Dropdown, A
|
|
|
9
10
|
import { useTranslation, Trans } from 'react-i18next';
|
|
10
11
|
import { QueryClient, QueryCache, QueryClientProvider, useQuery, useQueryClient, useMutation } from 'react-query';
|
|
11
12
|
import { ReactQueryDevtools } from 'react-query/devtools';
|
|
12
|
-
import { DEFAULT_STALE_TIME, SINGULAR, PLURAL } from '@bigbinary/neeto-commons-frontend/constants';
|
|
13
13
|
import axios from 'axios';
|
|
14
14
|
import DateFormat from '@bigbinary/neeto-molecules/DateFormat';
|
|
15
15
|
import { t as t$1 } from 'i18next';
|
|
16
16
|
import { prop, pluck, assoc } from 'ramda';
|
|
17
17
|
import { MenuHorizontal, Info } from '@bigbinary/neeto-icons';
|
|
18
|
-
import { Form,
|
|
18
|
+
import { Form, Textarea, Select, Input, Switch, ActionBlock } from '@bigbinary/neetoui/formik';
|
|
19
19
|
import { buildUrl } from '@bigbinary/neeto-commons-frontend/utils';
|
|
20
20
|
import * as yup from 'yup';
|
|
21
21
|
|
|
@@ -170,8 +170,6 @@ var useRedeliverWebhook = function useRedeliverWebhook() {
|
|
|
170
170
|
});
|
|
171
171
|
};
|
|
172
172
|
|
|
173
|
-
var DEFAULT_PAGE_SIZE = 10;
|
|
174
|
-
|
|
175
173
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
176
174
|
try {
|
|
177
175
|
var info = gen[key](arg);
|
|
@@ -792,7 +790,7 @@ var Deliveries = function Deliveries(_ref) {
|
|
|
792
790
|
var _useFetchDeliveries = useFetchDeliveries({
|
|
793
791
|
webhookId: webhookId,
|
|
794
792
|
page: pageNumber,
|
|
795
|
-
|
|
793
|
+
pageSize: DEFAULT_PAGE_SIZE
|
|
796
794
|
}),
|
|
797
795
|
isLoading = _useFetchDeliveries.isLoading,
|
|
798
796
|
isFetching = _useFetchDeliveries.isFetching,
|
|
@@ -1176,13 +1174,14 @@ var AddWebhookPane = function AddWebhookPane(_ref) {
|
|
|
1176
1174
|
className: "flex items-center justify-center"
|
|
1177
1175
|
}, /*#__PURE__*/React.createElement(Spinner, null)) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Pane.Body, null, /*#__PURE__*/React.createElement("div", {
|
|
1178
1176
|
className: "w-full space-y-4"
|
|
1179
|
-
}, /*#__PURE__*/React.createElement(
|
|
1177
|
+
}, /*#__PURE__*/React.createElement(Textarea, {
|
|
1180
1178
|
required: true,
|
|
1181
1179
|
"data-cy": "endpoint-input-field",
|
|
1182
1180
|
label: t("neetoWebhooks.webhook.endpoint"),
|
|
1183
1181
|
name: "endpoint",
|
|
1184
1182
|
placeholder: t("neetoWebhooks.webhook.endpointPlaceholder"),
|
|
1185
|
-
ref: endpointRef
|
|
1183
|
+
ref: endpointRef,
|
|
1184
|
+
rows: 1
|
|
1186
1185
|
}), !isLoading && /*#__PURE__*/React.createElement(Select, {
|
|
1187
1186
|
isMulti: true,
|
|
1188
1187
|
required: true,
|
|
@@ -1197,7 +1196,7 @@ var AddWebhookPane = function AddWebhookPane(_ref) {
|
|
|
1197
1196
|
name: "secret",
|
|
1198
1197
|
placeholder: t("neetoWebhooks.webhook.secretPlaceholder"),
|
|
1199
1198
|
label: /*#__PURE__*/React.createElement(Trans, {
|
|
1200
|
-
i18nKey: "webhook.secret",
|
|
1199
|
+
i18nKey: "neetoWebhooks.webhook.secret",
|
|
1201
1200
|
components: {
|
|
1202
1201
|
helpLink: /*#__PURE__*/React.createElement("a", {
|
|
1203
1202
|
href: WEBHOOK_HELP_URL,
|
|
@@ -1285,7 +1284,7 @@ var Webhooks = function Webhooks(_ref) {
|
|
|
1285
1284
|
var _useFetchWebhooks = useFetchWebhooks({
|
|
1286
1285
|
entityId: entityId,
|
|
1287
1286
|
page: pageNumber,
|
|
1288
|
-
|
|
1287
|
+
pageSize: DEFAULT_PAGE_SIZE
|
|
1289
1288
|
}),
|
|
1290
1289
|
isLoading = _useFetchWebhooks.isLoading,
|
|
1291
1290
|
isFetching = _useFetchWebhooks.isFetching,
|