@bigbinary/neeto-integrations-frontend 2.12.8 → 3.0.0
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/Daily.cjs.js +17 -10
- package/dist/Daily.cjs.js.map +1 -1
- package/dist/Daily.js +14 -9
- package/dist/Daily.js.map +1 -1
- package/dist/GoogleCalender.cjs.js +21 -12
- package/dist/GoogleCalender.cjs.js.map +1 -1
- package/dist/GoogleCalender.js +15 -10
- package/dist/GoogleCalender.js.map +1 -1
- package/dist/Twilio.cjs.js +15 -11
- package/dist/Twilio.cjs.js.map +1 -1
- package/dist/Twilio.js +15 -11
- package/dist/Twilio.js.map +1 -1
- package/dist/Zoom.cjs.js +24 -14
- package/dist/Zoom.cjs.js.map +1 -1
- package/dist/Zoom.js +20 -13
- package/dist/Zoom.js.map +1 -1
- package/dist/index.cjs.js +42 -26
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +35 -24
- package/dist/index.js.map +1 -1
- package/package.json +13 -13
package/dist/Zoom.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { useState } from 'react';
|
|
3
3
|
import { isPresent, noop, humanize, isNotEmpty } from '@bigbinary/neeto-cist';
|
|
4
|
-
import
|
|
4
|
+
import ZoomIcon from '@bigbinary/neeto-icons/misc/Zoom';
|
|
5
5
|
import PageLoader from '@bigbinary/neeto-molecules/PageLoader';
|
|
6
6
|
import { useTranslation, Trans } from 'react-i18next';
|
|
7
7
|
import classnames from 'classnames';
|
|
8
8
|
import { useMutationWithInvalidation, withTitle, useQueryParams, withT } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
9
|
-
import
|
|
9
|
+
import Check from '@bigbinary/neeto-icons/Check';
|
|
10
10
|
import Button from '@bigbinary/neetoui/Button';
|
|
11
11
|
import Tooltip from '@bigbinary/neetoui/Tooltip';
|
|
12
12
|
import Typography from '@bigbinary/neetoui/Typography';
|
|
@@ -14,8 +14,8 @@ import '@bigbinary/neeto-molecules/IntegrationCard';
|
|
|
14
14
|
import DisconnectAlert from '@bigbinary/neeto-molecules/IntegrationDisconnectAlert';
|
|
15
15
|
import WalkthroughModal from '@bigbinary/neeto-molecules/IntegrationWalkthroughModal';
|
|
16
16
|
import i18next, { t as t$1 } from 'i18next';
|
|
17
|
+
import { useQuery } from '@tanstack/react-query';
|
|
17
18
|
import { DEFAULT_STALE_TIME } from '@bigbinary/neeto-commons-frontend/constants';
|
|
18
|
-
import { useQuery } from 'react-query';
|
|
19
19
|
import axios from 'axios';
|
|
20
20
|
import Container from '@bigbinary/neeto-molecules/Container';
|
|
21
21
|
import Header from '@bigbinary/neeto-molecules/Header';
|
|
@@ -26,11 +26,14 @@ import ActionBlock from '@bigbinary/neetoui/formik/ActionBlock';
|
|
|
26
26
|
import { useHistory } from 'react-router-dom';
|
|
27
27
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
28
28
|
import { buildUrl } from '@bigbinary/neeto-commons-frontend/utils';
|
|
29
|
+
import '@bigbinary/neeto-icons/misc/GoogleCalendar';
|
|
30
|
+
import '@bigbinary/neeto-icons/misc/Google';
|
|
29
31
|
import '@bigbinary/neetoui/Callout';
|
|
30
32
|
import 'ramda';
|
|
31
33
|
import '@bigbinary/neetoui/formik/Select';
|
|
32
34
|
import * as yup from 'yup';
|
|
33
35
|
import '@bigbinary/neetoui/Modal';
|
|
36
|
+
import DailyIcon from '@bigbinary/neeto-icons/misc/Daily';
|
|
34
37
|
import CopyToClipboardButton from '@bigbinary/neeto-molecules/CopyToClipboardButton';
|
|
35
38
|
|
|
36
39
|
function _arrayWithHoles(arr) {
|
|
@@ -163,18 +166,20 @@ function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t
|
|
|
163
166
|
var useCreateDaily = function useCreateDaily() {
|
|
164
167
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
165
168
|
return useMutationWithInvalidation(dailiesApi.create, _objectSpread$4({
|
|
166
|
-
keysToInvalidate: [QUERY_KEYS.DAILY_CO_DETAILS]
|
|
169
|
+
keysToInvalidate: [[QUERY_KEYS.DAILY_CO_DETAILS]]
|
|
167
170
|
}, options));
|
|
168
171
|
};
|
|
169
172
|
var useFetchDaily = function useFetchDaily() {
|
|
170
|
-
return useQuery(
|
|
173
|
+
return useQuery({
|
|
174
|
+
queryKey: [QUERY_KEYS.DAILY_CO_DETAILS],
|
|
175
|
+
queryFn: dailiesApi.show,
|
|
171
176
|
staleTime: DEFAULT_STALE_TIME
|
|
172
177
|
});
|
|
173
178
|
};
|
|
174
179
|
var useDestroyDaily = function useDestroyDaily(_ref) {
|
|
175
180
|
var onSuccess = _ref.onSuccess;
|
|
176
181
|
return useMutationWithInvalidation(dailiesApi.destroy, {
|
|
177
|
-
keysToInvalidate: [QUERY_KEYS.DAILY_CO_DETAILS],
|
|
182
|
+
keysToInvalidate: [[QUERY_KEYS.DAILY_CO_DETAILS]],
|
|
178
183
|
onSuccess: onSuccess
|
|
179
184
|
});
|
|
180
185
|
};
|
|
@@ -252,7 +257,7 @@ var Form = function Form(_ref) {
|
|
|
252
257
|
}
|
|
253
258
|
}),
|
|
254
259
|
createDaily = _useCreateDaily.mutate,
|
|
255
|
-
isConnecting = _useCreateDaily.
|
|
260
|
+
isConnecting = _useCreateDaily.isPending;
|
|
256
261
|
var handleSubmit = function handleSubmit(payload) {
|
|
257
262
|
return createDaily(payload);
|
|
258
263
|
};
|
|
@@ -357,7 +362,7 @@ var Manage$1 = function Manage$1(_ref) {
|
|
|
357
362
|
}
|
|
358
363
|
}),
|
|
359
364
|
destroyIntegration = _useDestroyDaily.mutate,
|
|
360
|
-
isDisconnecting = _useDestroyDaily.
|
|
365
|
+
isDisconnecting = _useDestroyDaily.isPending;
|
|
361
366
|
var isConnected = isPresent(apiKey);
|
|
362
367
|
var handleDisconnect = function handleDisconnect() {
|
|
363
368
|
return destroyIntegration("daily");
|
|
@@ -368,7 +373,7 @@ var Manage$1 = function Manage$1(_ref) {
|
|
|
368
373
|
isDisconnectAlertOpen: isDisconnectAlertOpen,
|
|
369
374
|
isDisconnecting: isDisconnecting,
|
|
370
375
|
setIsDisconnectAlertOpen: setIsDisconnectAlertOpen,
|
|
371
|
-
Icon:
|
|
376
|
+
Icon: DailyIcon,
|
|
372
377
|
connectPath: buildUrl(window.location.pathname, {
|
|
373
378
|
connect: true
|
|
374
379
|
}),
|
|
@@ -912,14 +917,16 @@ var zoomApi = {
|
|
|
912
917
|
};
|
|
913
918
|
|
|
914
919
|
var useShowZoom = function useShowZoom() {
|
|
915
|
-
return useQuery(
|
|
920
|
+
return useQuery({
|
|
921
|
+
queryKey: [QUERY_KEYS.ZOOM_DETAILS],
|
|
922
|
+
queryFn: zoomApi.show,
|
|
916
923
|
staleTime: DEFAULT_STALE_TIME
|
|
917
924
|
});
|
|
918
925
|
};
|
|
919
926
|
var useDestroyZoom = function useDestroyZoom(_ref) {
|
|
920
927
|
var _onSuccess = _ref.onSuccess;
|
|
921
928
|
return useMutationWithInvalidation(zoomApi.destroy, {
|
|
922
|
-
keysToInvalidate: [QUERY_KEYS.ZOOM_DETAILS],
|
|
929
|
+
keysToInvalidate: [[QUERY_KEYS.ZOOM_DETAILS]],
|
|
923
930
|
onSuccess: function onSuccess() {
|
|
924
931
|
return _onSuccess === null || _onSuccess === void 0 ? void 0 : _onSuccess();
|
|
925
932
|
}
|
|
@@ -954,7 +961,7 @@ var Zoom = function Zoom(_ref) {
|
|
|
954
961
|
}
|
|
955
962
|
}),
|
|
956
963
|
destroyIntegration = _useDestroyZoom.mutate,
|
|
957
|
-
isDisconnecting = _useDestroyZoom.
|
|
964
|
+
isDisconnecting = _useDestroyZoom.isPending;
|
|
958
965
|
var isConnected = isPresent(email);
|
|
959
966
|
var handleDisconnect = function handleDisconnect() {
|
|
960
967
|
return destroyIntegration("zoom");
|
|
@@ -966,7 +973,7 @@ var Zoom = function Zoom(_ref) {
|
|
|
966
973
|
isDisconnectAlertOpen: isDisconnectAlertOpen,
|
|
967
974
|
isDisconnecting: isDisconnecting,
|
|
968
975
|
setIsDisconnectAlertOpen: setIsDisconnectAlertOpen,
|
|
969
|
-
Icon:
|
|
976
|
+
Icon: ZoomIcon,
|
|
970
977
|
integration: "zoom",
|
|
971
978
|
description: isConnected ? /*#__PURE__*/jsx(Trans, {
|
|
972
979
|
components: {
|