@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/GoogleCalender.js
CHANGED
|
@@ -2,7 +2,8 @@ import * as React from 'react';
|
|
|
2
2
|
import React__default, { useState, useEffect } from 'react';
|
|
3
3
|
import { humanize, noop, isPresent, isNotEmpty } from '@bigbinary/neeto-cist';
|
|
4
4
|
import { buildUrl, getQueryParams } from '@bigbinary/neeto-commons-frontend/utils';
|
|
5
|
-
import
|
|
5
|
+
import GoogleCalendarIcon from '@bigbinary/neeto-icons/misc/GoogleCalendar';
|
|
6
|
+
import Google from '@bigbinary/neeto-icons/misc/Google';
|
|
6
7
|
import Typography from '@bigbinary/neetoui/Typography';
|
|
7
8
|
import Callout from '@bigbinary/neetoui/Callout';
|
|
8
9
|
import Button from '@bigbinary/neetoui/Button';
|
|
@@ -12,11 +13,11 @@ import DisconnectAlert from '@bigbinary/neeto-molecules/IntegrationDisconnectAle
|
|
|
12
13
|
import WalkthroughModal from '@bigbinary/neeto-molecules/IntegrationWalkthroughModal';
|
|
13
14
|
import classnames from 'classnames';
|
|
14
15
|
import { withT, useMutationWithInvalidation, withTitle, useQueryParams } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
15
|
-
import
|
|
16
|
+
import Check from '@bigbinary/neeto-icons/Check';
|
|
16
17
|
import Tooltip from '@bigbinary/neetoui/Tooltip';
|
|
17
18
|
import i18next, { t as t$1 } from 'i18next';
|
|
19
|
+
import { useQuery } from '@tanstack/react-query';
|
|
18
20
|
import { DEFAULT_STALE_TIME } from '@bigbinary/neeto-commons-frontend/constants';
|
|
19
|
-
import { useQuery } from 'react-query';
|
|
20
21
|
import axios from 'axios';
|
|
21
22
|
import Container from '@bigbinary/neeto-molecules/Container';
|
|
22
23
|
import Header from '@bigbinary/neeto-molecules/Header';
|
|
@@ -30,7 +31,9 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
|
30
31
|
import 'ramda';
|
|
31
32
|
import '@bigbinary/neetoui/formik/Select';
|
|
32
33
|
import * as yup from 'yup';
|
|
34
|
+
import '@bigbinary/neeto-icons/misc/Zoom';
|
|
33
35
|
import NeetoUIModal from '@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 _typeof(o) {
|
|
@@ -325,18 +328,20 @@ function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t
|
|
|
325
328
|
var useCreateDaily = function useCreateDaily() {
|
|
326
329
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
327
330
|
return useMutationWithInvalidation(dailiesApi.create, _objectSpread$4({
|
|
328
|
-
keysToInvalidate: [QUERY_KEYS.DAILY_CO_DETAILS]
|
|
331
|
+
keysToInvalidate: [[QUERY_KEYS.DAILY_CO_DETAILS]]
|
|
329
332
|
}, options));
|
|
330
333
|
};
|
|
331
334
|
var useFetchDaily = function useFetchDaily() {
|
|
332
|
-
return useQuery(
|
|
335
|
+
return useQuery({
|
|
336
|
+
queryKey: [QUERY_KEYS.DAILY_CO_DETAILS],
|
|
337
|
+
queryFn: dailiesApi.show,
|
|
333
338
|
staleTime: DEFAULT_STALE_TIME
|
|
334
339
|
});
|
|
335
340
|
};
|
|
336
341
|
var useDestroyDaily = function useDestroyDaily(_ref) {
|
|
337
342
|
var onSuccess = _ref.onSuccess;
|
|
338
343
|
return useMutationWithInvalidation(dailiesApi.destroy, {
|
|
339
|
-
keysToInvalidate: [QUERY_KEYS.DAILY_CO_DETAILS],
|
|
344
|
+
keysToInvalidate: [[QUERY_KEYS.DAILY_CO_DETAILS]],
|
|
340
345
|
onSuccess: onSuccess
|
|
341
346
|
});
|
|
342
347
|
};
|
|
@@ -414,7 +419,7 @@ var Form = function Form(_ref) {
|
|
|
414
419
|
}
|
|
415
420
|
}),
|
|
416
421
|
createDaily = _useCreateDaily.mutate,
|
|
417
|
-
isConnecting = _useCreateDaily.
|
|
422
|
+
isConnecting = _useCreateDaily.isPending;
|
|
418
423
|
var handleSubmit = function handleSubmit(payload) {
|
|
419
424
|
return createDaily(payload);
|
|
420
425
|
};
|
|
@@ -519,7 +524,7 @@ var Manage = function Manage(_ref) {
|
|
|
519
524
|
}
|
|
520
525
|
}),
|
|
521
526
|
destroyIntegration = _useDestroyDaily.mutate,
|
|
522
|
-
isDisconnecting = _useDestroyDaily.
|
|
527
|
+
isDisconnecting = _useDestroyDaily.isPending;
|
|
523
528
|
var isConnected = isPresent(apiKey);
|
|
524
529
|
var handleDisconnect = function handleDisconnect() {
|
|
525
530
|
return destroyIntegration("daily");
|
|
@@ -530,7 +535,7 @@ var Manage = function Manage(_ref) {
|
|
|
530
535
|
isDisconnectAlertOpen: isDisconnectAlertOpen,
|
|
531
536
|
isDisconnecting: isDisconnecting,
|
|
532
537
|
setIsDisconnectAlertOpen: setIsDisconnectAlertOpen,
|
|
533
|
-
Icon:
|
|
538
|
+
Icon: DailyIcon,
|
|
534
539
|
connectPath: buildUrl(window.location.pathname, {
|
|
535
540
|
connect: true
|
|
536
541
|
}),
|
|
@@ -1021,7 +1026,7 @@ var GoogleCalendar = function GoogleCalendar(_ref) {
|
|
|
1021
1026
|
onClose: handleClose,
|
|
1022
1027
|
children: [activeTab === STEPS.connect && /*#__PURE__*/jsxs("div", {
|
|
1023
1028
|
className: "mx-auto w-full max-w-3xl",
|
|
1024
|
-
children: [/*#__PURE__*/jsx(
|
|
1029
|
+
children: [/*#__PURE__*/jsx(GoogleCalendarIcon, {
|
|
1025
1030
|
size: 48
|
|
1026
1031
|
}), /*#__PURE__*/jsx(Typography, {
|
|
1027
1032
|
className: "mb-4 mt-2",
|