@bigbinary/neeto-integrations-frontend 2.12.8 → 3.1.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/app/javascript/src/translations/en.json +1 -1
- package/dist/Daily.cjs.js +43 -85
- package/dist/Daily.cjs.js.map +1 -1
- package/dist/Daily.js +38 -81
- package/dist/Daily.js.map +1 -1
- package/dist/GoogleCalender.cjs.js +46 -86
- package/dist/GoogleCalender.cjs.js.map +1 -1
- package/dist/GoogleCalender.js +41 -84
- 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/ZapierForm.cjs.js +1 -1
- package/dist/ZapierForm.cjs.js.map +1 -1
- package/dist/ZapierForm.js +1 -1
- package/dist/ZapierForm.js.map +1 -1
- package/dist/Zoom.cjs.js +44 -83
- package/dist/Zoom.cjs.js.map +1 -1
- package/dist/Zoom.js +41 -82
- package/dist/Zoom.js.map +1 -1
- package/dist/index.cjs.js +70 -103
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +63 -100
- package/dist/index.js.map +1 -1
- package/package.json +18 -16
package/dist/Daily.js
CHANGED
|
@@ -1,36 +1,39 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import React__default, { useState } from 'react';
|
|
3
1
|
import i18next, { t as t$1 } from 'i18next';
|
|
4
2
|
import { humanize, noop, isNotEmpty, isPresent } from '@bigbinary/neeto-cist';
|
|
5
3
|
import { useMutationWithInvalidation, withT, withTitle, useQueryParams } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
6
5
|
import { DEFAULT_STALE_TIME } from '@bigbinary/neeto-commons-frontend/constants';
|
|
7
|
-
import { useQuery } from 'react-query';
|
|
8
6
|
import axios from 'axios';
|
|
7
|
+
import * as React from 'react';
|
|
8
|
+
import { useState } from 'react';
|
|
9
9
|
import Container from '@bigbinary/neeto-molecules/Container';
|
|
10
10
|
import Header from '@bigbinary/neeto-molecules/Header';
|
|
11
11
|
import HelpPopover from '@bigbinary/neeto-molecules/HelpPopover';
|
|
12
12
|
import PageLoader from '@bigbinary/neeto-molecules/PageLoader';
|
|
13
13
|
import Button from '@bigbinary/neetoui/Button';
|
|
14
|
+
import Typography from '@bigbinary/neetoui/Typography';
|
|
14
15
|
import Input from '@bigbinary/neetoui/formik/Input';
|
|
15
16
|
import FormikFormWrapper from '@bigbinary/neetoui/formik/Form';
|
|
16
17
|
import ActionBlock from '@bigbinary/neetoui/formik/ActionBlock';
|
|
17
18
|
import { Trans, useTranslation } from 'react-i18next';
|
|
18
19
|
import { useHistory } from 'react-router-dom';
|
|
19
|
-
import classnames from 'classnames';
|
|
20
|
-
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
21
20
|
import '@bigbinary/neeto-molecules/IntegrationCard';
|
|
22
21
|
import DisconnectAlert from '@bigbinary/neeto-molecules/IntegrationDisconnectAlert';
|
|
23
22
|
import WalkthroughModal from '@bigbinary/neeto-molecules/IntegrationWalkthroughModal';
|
|
24
|
-
import
|
|
23
|
+
import classnames from 'classnames';
|
|
24
|
+
import Check from '@bigbinary/neeto-icons/Check';
|
|
25
25
|
import Tooltip from '@bigbinary/neetoui/Tooltip';
|
|
26
|
-
import Typography from '@bigbinary/neetoui/Typography';
|
|
27
26
|
import { buildUrl } from '@bigbinary/neeto-commons-frontend/utils';
|
|
28
|
-
import
|
|
27
|
+
import DailyIcon from '@bigbinary/neeto-icons/misc/Daily';
|
|
29
28
|
import CopyToClipboardButton from '@bigbinary/neeto-molecules/CopyToClipboardButton';
|
|
29
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
30
|
+
import '@bigbinary/neeto-icons/misc/GoogleCalendar';
|
|
31
|
+
import '@bigbinary/neeto-icons/misc/Google';
|
|
30
32
|
import '@bigbinary/neetoui/Callout';
|
|
31
33
|
import 'ramda';
|
|
32
34
|
import '@bigbinary/neetoui/formik/Select';
|
|
33
35
|
import * as yup from 'yup';
|
|
36
|
+
import '@bigbinary/neeto-icons/misc/Zoom';
|
|
34
37
|
import '@bigbinary/neetoui/Modal';
|
|
35
38
|
|
|
36
39
|
function _typeof(o) {
|
|
@@ -101,23 +104,25 @@ var QUERY_KEYS = {
|
|
|
101
104
|
ZOOM_DETAILS: "zoom-details"
|
|
102
105
|
};
|
|
103
106
|
|
|
104
|
-
function ownKeys$
|
|
105
|
-
function _objectSpread$
|
|
107
|
+
function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
108
|
+
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
106
109
|
var useCreateDaily = function useCreateDaily() {
|
|
107
110
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
108
|
-
return useMutationWithInvalidation(dailiesApi.create, _objectSpread$
|
|
109
|
-
keysToInvalidate: [QUERY_KEYS.DAILY_CO_DETAILS]
|
|
111
|
+
return useMutationWithInvalidation(dailiesApi.create, _objectSpread$3({
|
|
112
|
+
keysToInvalidate: [[QUERY_KEYS.DAILY_CO_DETAILS]]
|
|
110
113
|
}, options));
|
|
111
114
|
};
|
|
112
115
|
var useFetchDaily = function useFetchDaily() {
|
|
113
|
-
return useQuery(
|
|
116
|
+
return useQuery({
|
|
117
|
+
queryKey: [QUERY_KEYS.DAILY_CO_DETAILS],
|
|
118
|
+
queryFn: dailiesApi.show,
|
|
114
119
|
staleTime: DEFAULT_STALE_TIME
|
|
115
120
|
});
|
|
116
121
|
};
|
|
117
122
|
var useDestroyDaily = function useDestroyDaily(_ref) {
|
|
118
123
|
var onSuccess = _ref.onSuccess;
|
|
119
124
|
return useMutationWithInvalidation(dailiesApi.destroy, {
|
|
120
|
-
keysToInvalidate: [QUERY_KEYS.DAILY_CO_DETAILS],
|
|
125
|
+
keysToInvalidate: [[QUERY_KEYS.DAILY_CO_DETAILS]],
|
|
121
126
|
onSuccess: onSuccess
|
|
122
127
|
});
|
|
123
128
|
};
|
|
@@ -177,52 +182,6 @@ function _slicedToArray(arr, i) {
|
|
|
177
182
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
178
183
|
}
|
|
179
184
|
|
|
180
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
181
|
-
if (source == null) return {};
|
|
182
|
-
var target = {};
|
|
183
|
-
var sourceKeys = Object.keys(source);
|
|
184
|
-
var key, i;
|
|
185
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
186
|
-
key = sourceKeys[i];
|
|
187
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
188
|
-
target[key] = source[key];
|
|
189
|
-
}
|
|
190
|
-
return target;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
function _objectWithoutProperties(source, excluded) {
|
|
194
|
-
if (source == null) return {};
|
|
195
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
196
|
-
var key, i;
|
|
197
|
-
if (Object.getOwnPropertySymbols) {
|
|
198
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
199
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
200
|
-
key = sourceSymbolKeys[i];
|
|
201
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
202
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
203
|
-
target[key] = source[key];
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
return target;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
var _excluded = ["className", "children"];
|
|
210
|
-
function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
211
|
-
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
212
|
-
var ExternalLink = function ExternalLink(_ref) {
|
|
213
|
-
var _ref$className = _ref.className,
|
|
214
|
-
className = _ref$className === void 0 ? "" : _ref$className,
|
|
215
|
-
_ref$children = _ref.children,
|
|
216
|
-
children = _ref$children === void 0 ? null : _ref$children,
|
|
217
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
218
|
-
return /*#__PURE__*/jsx("a", _objectSpread$3(_objectSpread$3({
|
|
219
|
-
className: classnames(["neeto-ui-text-primary-800 hover:neeto-ui-text-primary-800 visited:neeto-ui-text-primary-600 font-medium", className])
|
|
220
|
-
}, props), {}, {
|
|
221
|
-
children: children
|
|
222
|
-
}));
|
|
223
|
-
};
|
|
224
|
-
var ExternalLink$1 = /*#__PURE__*/React__default.memo(ExternalLink);
|
|
225
|
-
|
|
226
185
|
function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
227
186
|
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
228
187
|
var Manage$1 = withT(function (_ref) {
|
|
@@ -708,7 +667,7 @@ var Form = function Form(_ref) {
|
|
|
708
667
|
}
|
|
709
668
|
}),
|
|
710
669
|
createDaily = _useCreateDaily.mutate,
|
|
711
|
-
isConnecting = _useCreateDaily.
|
|
670
|
+
isConnecting = _useCreateDaily.isPending;
|
|
712
671
|
var handleSubmit = function handleSubmit(payload) {
|
|
713
672
|
return createDaily(payload);
|
|
714
673
|
};
|
|
@@ -723,26 +682,24 @@ var Form = function Form(_ref) {
|
|
|
723
682
|
className: "flex items-center gap-2",
|
|
724
683
|
children: [t("neetoIntegrations.daily.connect.title"), /*#__PURE__*/jsx(HelpPopover, {
|
|
725
684
|
title: t("neetoIntegrations.daily.connect.title"),
|
|
726
|
-
description: /*#__PURE__*/jsx(
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
label: /*#__PURE__*/jsx(Button, {
|
|
739
|
-
className: "mt-8",
|
|
740
|
-
label: t("neetoIntegrations.daily.walkthroughText"),
|
|
741
|
-
style: "link",
|
|
742
|
-
onClick: function onClick() {
|
|
743
|
-
return setIsDemoModalOpen(true);
|
|
685
|
+
description: /*#__PURE__*/jsx(Typography, {
|
|
686
|
+
lineHeight: "normal",
|
|
687
|
+
style: "body2",
|
|
688
|
+
children: /*#__PURE__*/jsx(Trans, {
|
|
689
|
+
i18nKey: "neetoIntegrations.daily.helpDoc",
|
|
690
|
+
components: {
|
|
691
|
+
videoLink: /*#__PURE__*/jsx(Button, {
|
|
692
|
+
style: "link",
|
|
693
|
+
onClick: function onClick() {
|
|
694
|
+
return setIsDemoModalOpen(true);
|
|
695
|
+
}
|
|
696
|
+
})
|
|
744
697
|
}
|
|
745
698
|
})
|
|
699
|
+
}),
|
|
700
|
+
helpLinkProps: {
|
|
701
|
+
href: helpDocUrl,
|
|
702
|
+
"data-cy": "api-key-help-doc-link"
|
|
746
703
|
}
|
|
747
704
|
})]
|
|
748
705
|
})
|
|
@@ -813,7 +770,7 @@ var Manage = function Manage(_ref) {
|
|
|
813
770
|
}
|
|
814
771
|
}),
|
|
815
772
|
destroyIntegration = _useDestroyDaily.mutate,
|
|
816
|
-
isDisconnecting = _useDestroyDaily.
|
|
773
|
+
isDisconnecting = _useDestroyDaily.isPending;
|
|
817
774
|
var isConnected = isPresent(apiKey);
|
|
818
775
|
var handleDisconnect = function handleDisconnect() {
|
|
819
776
|
return destroyIntegration("daily");
|
|
@@ -824,7 +781,7 @@ var Manage = function Manage(_ref) {
|
|
|
824
781
|
isDisconnectAlertOpen: isDisconnectAlertOpen,
|
|
825
782
|
isDisconnecting: isDisconnecting,
|
|
826
783
|
setIsDisconnectAlertOpen: setIsDisconnectAlertOpen,
|
|
827
|
-
Icon:
|
|
784
|
+
Icon: DailyIcon,
|
|
828
785
|
connectPath: buildUrl(window.location.pathname, {
|
|
829
786
|
connect: true
|
|
830
787
|
}),
|