@bigbinary/neeto-webhooks-frontend 2.1.4 → 2.2.1
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/NeetoWebhooks.js +17 -7
- package/dist/NeetoWebhooks.js.map +1 -1
- package/dist/cjs/NeetoWebhooks.js +28 -20
- package/dist/cjs/NeetoWebhooks.js.map +1 -1
- package/dist/cjs/index.js +2 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/package.json +16 -16
package/dist/NeetoWebhooks.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React, { useState, useRef, useEffect, useCallback } from 'react';
|
|
2
1
|
import { useRouteMatch, useHistory, useParams, Switch as Switch$1, Route } from 'react-router-dom';
|
|
3
2
|
import { isPresent, removeBy, isNotEmpty, removeById, findBy } from '@bigbinary/neeto-cist';
|
|
4
3
|
import { DEFAULT_STALE_TIME, SINGULAR, DEFAULT_PAGE_SIZE, DEFAULT_PAGE_INDEX, PLURAL } from '@bigbinary/neeto-commons-frontend/constants';
|
|
@@ -6,9 +5,9 @@ import { useQueryParams, useMutationWithInvalidation, withT } from '@bigbinary/n
|
|
|
6
5
|
import Container from '@bigbinary/neeto-molecules/Container';
|
|
7
6
|
import Header$2 from '@bigbinary/neeto-molecules/Header';
|
|
8
7
|
import HelpPopover from '@bigbinary/neeto-molecules/HelpPopover';
|
|
9
|
-
import PageLoader from '@bigbinary/neeto-molecules/PageLoader';
|
|
10
8
|
import TableWrapper from '@bigbinary/neeto-molecules/TableWrapper';
|
|
11
9
|
import NoData from '@bigbinary/neetoui/NoData';
|
|
10
|
+
import Spinner from '@bigbinary/neetoui/Spinner';
|
|
12
11
|
import Table from '@bigbinary/neetoui/Table';
|
|
13
12
|
import { useTranslation } from 'react-i18next';
|
|
14
13
|
import { QueryClient, QueryCache, QueryClientProvider, useQuery, useQueryClient, useMutation } from '@tanstack/react-query';
|
|
@@ -19,6 +18,7 @@ import { globalProps } from '@bigbinary/neeto-commons-frontend/initializers';
|
|
|
19
18
|
import DateFormat from '@bigbinary/neeto-molecules/DateFormat';
|
|
20
19
|
import Button from '@bigbinary/neetoui/Button';
|
|
21
20
|
import Pane from '@bigbinary/neetoui/Pane';
|
|
21
|
+
import { useState, useRef, useEffect, memo, useCallback } from 'react';
|
|
22
22
|
import Typography from '@bigbinary/neetoui/Typography';
|
|
23
23
|
import Tab from '@bigbinary/neetoui/Tab';
|
|
24
24
|
import Tag from '@bigbinary/neetoui/Tag';
|
|
@@ -28,7 +28,6 @@ import { prop, pluck, assoc } from 'ramda';
|
|
|
28
28
|
import Alert from '@bigbinary/neetoui/Alert';
|
|
29
29
|
import Plus from '@bigbinary/neeto-icons/Plus';
|
|
30
30
|
import MoreDropdown from '@bigbinary/neeto-molecules/MoreDropdown';
|
|
31
|
-
import Spinner from '@bigbinary/neetoui/Spinner';
|
|
32
31
|
import Input from '@bigbinary/neetoui/formik/Input';
|
|
33
32
|
import Form from '@bigbinary/neetoui/formik/Form';
|
|
34
33
|
import ActionBlock from '@bigbinary/neetoui/formik/ActionBlock';
|
|
@@ -798,7 +797,10 @@ var Details = function Details(_ref) {
|
|
|
798
797
|
isOpen: isPresent(deliveryId),
|
|
799
798
|
size: "large",
|
|
800
799
|
children: /*#__PURE__*/jsx(Fragment, {
|
|
801
|
-
children: isLoading ? /*#__PURE__*/jsx(
|
|
800
|
+
children: isLoading ? /*#__PURE__*/jsx("div", {
|
|
801
|
+
className: "flex h-full w-full items-center justify-center",
|
|
802
|
+
children: /*#__PURE__*/jsx(Spinner, {})
|
|
803
|
+
}) : /*#__PURE__*/jsxs(Fragment, {
|
|
802
804
|
children: [/*#__PURE__*/jsx(Pane.Header, {
|
|
803
805
|
children: /*#__PURE__*/jsxs(Fragment, {
|
|
804
806
|
children: [/*#__PURE__*/jsx(DateFormat.Date, {
|
|
@@ -949,7 +951,12 @@ var Deliveries = function Deliveries(_ref) {
|
|
|
949
951
|
link: window.location.pathname,
|
|
950
952
|
text: endpoint
|
|
951
953
|
}]);
|
|
952
|
-
if (isLoading)
|
|
954
|
+
if (isLoading) {
|
|
955
|
+
return /*#__PURE__*/jsx("div", {
|
|
956
|
+
className: "flex h-full w-full items-center justify-center",
|
|
957
|
+
children: /*#__PURE__*/jsx(Spinner, {})
|
|
958
|
+
});
|
|
959
|
+
}
|
|
953
960
|
return /*#__PURE__*/jsxs(Container, {
|
|
954
961
|
className: "w-full",
|
|
955
962
|
children: [/*#__PURE__*/jsx(Header$2, {
|
|
@@ -1496,7 +1503,7 @@ var Header = withT(function (_ref) {
|
|
|
1496
1503
|
})]
|
|
1497
1504
|
});
|
|
1498
1505
|
});
|
|
1499
|
-
var Header$1 = /*#__PURE__*/
|
|
1506
|
+
var Header$1 = /*#__PURE__*/memo(Header);
|
|
1500
1507
|
|
|
1501
1508
|
var Webhooks = function Webhooks(_ref) {
|
|
1502
1509
|
var deliveriesPath = _ref.deliveriesPath,
|
|
@@ -1564,7 +1571,10 @@ var Webhooks = function Webhooks(_ref) {
|
|
|
1564
1571
|
setIsDeleteAlertOpen(true);
|
|
1565
1572
|
}, []);
|
|
1566
1573
|
if (isLoading) {
|
|
1567
|
-
return /*#__PURE__*/jsx(
|
|
1574
|
+
return /*#__PURE__*/jsx("div", {
|
|
1575
|
+
className: "flex h-full w-full items-center justify-center",
|
|
1576
|
+
children: /*#__PURE__*/jsx(Spinner, {})
|
|
1577
|
+
});
|
|
1568
1578
|
}
|
|
1569
1579
|
return /*#__PURE__*/jsxs(Container, {
|
|
1570
1580
|
className: containerClassName,
|