@bigbinary/neeto-integrations-frontend 2.12.7 → 2.12.8
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 +276 -204
- package/dist/Daily.cjs.js.map +1 -1
- package/dist/Daily.js +270 -204
- package/dist/Daily.js.map +1 -1
- package/dist/GoogleCalender.cjs.js +372 -282
- package/dist/GoogleCalender.cjs.js.map +1 -1
- package/dist/GoogleCalender.js +364 -282
- package/dist/GoogleCalender.js.map +1 -1
- package/dist/Twilio.cjs.js +73 -59
- package/dist/Twilio.cjs.js.map +1 -1
- package/dist/Twilio.js +66 -55
- package/dist/Twilio.js.map +1 -1
- package/dist/ZapierForm.cjs.js +138 -105
- package/dist/ZapierForm.cjs.js.map +1 -1
- package/dist/ZapierForm.js +126 -100
- package/dist/ZapierForm.js.map +1 -1
- package/dist/Zoom.cjs.js +280 -208
- package/dist/Zoom.cjs.js.map +1 -1
- package/dist/Zoom.js +275 -209
- package/dist/Zoom.js.map +1 -1
- package/dist/index.cjs.js +514 -410
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +505 -410
- package/dist/index.js.map +1 -1
- package/package.json +14 -13
- package/types.d.ts +3 -0
package/dist/Daily.js
CHANGED
|
@@ -10,19 +10,28 @@ 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
|
-
import
|
|
14
|
-
import
|
|
13
|
+
import Button from '@bigbinary/neetoui/Button';
|
|
14
|
+
import Input from '@bigbinary/neetoui/formik/Input';
|
|
15
|
+
import FormikFormWrapper from '@bigbinary/neetoui/formik/Form';
|
|
16
|
+
import ActionBlock from '@bigbinary/neetoui/formik/ActionBlock';
|
|
15
17
|
import { Trans, useTranslation } from 'react-i18next';
|
|
18
|
+
import { useHistory } from 'react-router-dom';
|
|
16
19
|
import classnames from 'classnames';
|
|
20
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
17
21
|
import '@bigbinary/neeto-molecules/IntegrationCard';
|
|
18
22
|
import DisconnectAlert from '@bigbinary/neeto-molecules/IntegrationDisconnectAlert';
|
|
19
23
|
import WalkthroughModal from '@bigbinary/neeto-molecules/IntegrationWalkthroughModal';
|
|
20
24
|
import { Check } from '@bigbinary/neeto-icons';
|
|
25
|
+
import Tooltip from '@bigbinary/neetoui/Tooltip';
|
|
26
|
+
import Typography from '@bigbinary/neetoui/Typography';
|
|
21
27
|
import { buildUrl } from '@bigbinary/neeto-commons-frontend/utils';
|
|
22
28
|
import { Daily as Daily$1 } from '@bigbinary/neeto-icons/misc';
|
|
23
29
|
import CopyToClipboardButton from '@bigbinary/neeto-molecules/CopyToClipboardButton';
|
|
30
|
+
import '@bigbinary/neetoui/Callout';
|
|
24
31
|
import 'ramda';
|
|
32
|
+
import '@bigbinary/neetoui/formik/Select';
|
|
25
33
|
import * as yup from 'yup';
|
|
34
|
+
import '@bigbinary/neetoui/Modal';
|
|
26
35
|
|
|
27
36
|
function _typeof(o) {
|
|
28
37
|
"@babel/helpers - typeof";
|
|
@@ -92,11 +101,11 @@ var QUERY_KEYS = {
|
|
|
92
101
|
ZOOM_DETAILS: "zoom-details"
|
|
93
102
|
};
|
|
94
103
|
|
|
95
|
-
function ownKeys(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; }
|
|
96
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
104
|
+
function ownKeys$4(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; }
|
|
105
|
+
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
97
106
|
var useCreateDaily = function useCreateDaily() {
|
|
98
107
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
99
|
-
return useMutationWithInvalidation(dailiesApi.create, _objectSpread({
|
|
108
|
+
return useMutationWithInvalidation(dailiesApi.create, _objectSpread$4({
|
|
100
109
|
keysToInvalidate: [QUERY_KEYS.DAILY_CO_DETAILS]
|
|
101
110
|
}, options));
|
|
102
111
|
};
|
|
@@ -168,21 +177,6 @@ function _slicedToArray(arr, i) {
|
|
|
168
177
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
169
178
|
}
|
|
170
179
|
|
|
171
|
-
function _extends$1() {
|
|
172
|
-
_extends$1 = Object.assign ? Object.assign.bind() : function (target) {
|
|
173
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
174
|
-
var source = arguments[i];
|
|
175
|
-
for (var key in source) {
|
|
176
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
177
|
-
target[key] = source[key];
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
return target;
|
|
182
|
-
};
|
|
183
|
-
return _extends$1.apply(this, arguments);
|
|
184
|
-
}
|
|
185
|
-
|
|
186
180
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
187
181
|
if (source == null) return {};
|
|
188
182
|
var target = {};
|
|
@@ -213,18 +207,24 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
213
207
|
}
|
|
214
208
|
|
|
215
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; }
|
|
216
212
|
var ExternalLink = function ExternalLink(_ref) {
|
|
217
213
|
var _ref$className = _ref.className,
|
|
218
214
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
219
215
|
_ref$children = _ref.children,
|
|
220
216
|
children = _ref$children === void 0 ? null : _ref$children,
|
|
221
217
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
222
|
-
return /*#__PURE__*/
|
|
218
|
+
return /*#__PURE__*/jsx("a", _objectSpread$3(_objectSpread$3({
|
|
223
219
|
className: classnames(["neeto-ui-text-primary-800 hover:neeto-ui-text-primary-800 visited:neeto-ui-text-primary-600 font-medium", className])
|
|
224
|
-
}, props),
|
|
220
|
+
}, props), {}, {
|
|
221
|
+
children: children
|
|
222
|
+
}));
|
|
225
223
|
};
|
|
226
224
|
var ExternalLink$1 = /*#__PURE__*/React__default.memo(ExternalLink);
|
|
227
225
|
|
|
226
|
+
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
|
+
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
228
|
var Manage$1 = withT(function (_ref) {
|
|
229
229
|
var t = _ref.t,
|
|
230
230
|
_ref$title = _ref.title,
|
|
@@ -268,86 +268,107 @@ var Manage$1 = withT(function (_ref) {
|
|
|
268
268
|
_ref$isConnectDisable = _ref.isConnectDisabled,
|
|
269
269
|
isConnectDisabled = _ref$isConnectDisable === void 0 ? false : _ref$isConnectDisable,
|
|
270
270
|
_ref$connectTooltipPr = _ref.connectTooltipProps,
|
|
271
|
-
connectTooltipProps = _ref$connectTooltipPr === void 0 ? null : _ref$connectTooltipPr
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
271
|
+
connectTooltipProps = _ref$connectTooltipPr === void 0 ? null : _ref$connectTooltipPr,
|
|
272
|
+
_ref$buttonProps = _ref.buttonProps,
|
|
273
|
+
buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
|
|
274
|
+
_ref$secondaryButtonP = _ref.secondaryButtonProps,
|
|
275
|
+
secondaryButtonProps = _ref$secondaryButtonP === void 0 ? {} : _ref$secondaryButtonP;
|
|
276
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
277
|
+
children: [/*#__PURE__*/jsx("div", {
|
|
278
|
+
className: "mx-auto w-full max-w-3xl",
|
|
279
|
+
children: /*#__PURE__*/jsxs("div", {
|
|
280
|
+
className: "neeto-ui-border-gray-300 neeto-ui-rounded-xl mt-10 w-full space-y-4 border p-6",
|
|
281
|
+
children: [Icon && /*#__PURE__*/jsx(Icon, {
|
|
282
|
+
className: "neeto-ui-text-gray-600",
|
|
283
|
+
size: 48
|
|
284
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
285
|
+
className: "space-y-2",
|
|
286
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
287
|
+
className: "flex items-center space-x-4",
|
|
288
|
+
children: [/*#__PURE__*/jsx(Typography, {
|
|
289
|
+
className: "neeto-ui-text-gray-800 mb-0.5",
|
|
290
|
+
style: "h2",
|
|
291
|
+
weight: "semibold",
|
|
292
|
+
children: title
|
|
293
|
+
}), isConnected && /*#__PURE__*/jsx("div", {
|
|
294
|
+
className: "neeto-ui-bg-success-500 neeto-ui-text-white neeto-ui-rounded-full flex items-center justify-center p-1",
|
|
295
|
+
children: /*#__PURE__*/jsx(Check, {
|
|
296
|
+
size: 24
|
|
297
|
+
})
|
|
298
|
+
})]
|
|
299
|
+
}), /*#__PURE__*/jsx(Typography, {
|
|
300
|
+
style: "body1",
|
|
301
|
+
weight: "normal",
|
|
302
|
+
className: classnames("neeto-ui-text-gray-800", {
|
|
303
|
+
"break-all": isConnected
|
|
304
|
+
}),
|
|
305
|
+
children: description
|
|
306
|
+
}), helpDocUrl && /*#__PURE__*/jsx(Typography, {
|
|
307
|
+
className: "neeto-ui-text-gray-800",
|
|
308
|
+
style: "body2",
|
|
309
|
+
weight: "normal",
|
|
310
|
+
children: /*#__PURE__*/jsx(Trans, {
|
|
311
|
+
i18nKey: "neetoIntegrations.common.helpDocUrl",
|
|
312
|
+
components: {
|
|
313
|
+
helpLink: /*#__PURE__*/jsx(Button, {
|
|
314
|
+
href: helpDocUrl,
|
|
315
|
+
style: "link",
|
|
316
|
+
target: "_blank"
|
|
317
|
+
})
|
|
318
|
+
},
|
|
319
|
+
values: {
|
|
320
|
+
integration: integrationName || humanize(integration)
|
|
321
|
+
}
|
|
322
|
+
})
|
|
323
|
+
})]
|
|
324
|
+
}), isConnected ? /*#__PURE__*/jsxs("div", {
|
|
325
|
+
className: "space-x-2",
|
|
326
|
+
children: [(managePath || manageUrl) && /*#__PURE__*/jsx(Button, _objectSpread$2({
|
|
327
|
+
"data-cy": "manage-button",
|
|
328
|
+
href: manageUrl,
|
|
329
|
+
target: manageUrl ? "_blank" : "_self",
|
|
330
|
+
to: managePath,
|
|
331
|
+
label: t("neetoIntegrations.common.manageIntegration", {
|
|
332
|
+
integration: integrationName || humanize(integration)
|
|
333
|
+
})
|
|
334
|
+
}, buttonProps)), onDisconnect && /*#__PURE__*/jsx(Button, _objectSpread$2({
|
|
335
|
+
"data-cy": "disconnect-button",
|
|
336
|
+
style: "secondary",
|
|
337
|
+
label: t("neetoIntegrations.common.disconnectIntegration", {
|
|
338
|
+
integration: integrationName || humanize(integration)
|
|
339
|
+
}),
|
|
340
|
+
onClick: function onClick() {
|
|
341
|
+
return setIsDisconnectAlertOpen(true);
|
|
342
|
+
}
|
|
343
|
+
}, secondaryButtonProps))]
|
|
344
|
+
}) : /*#__PURE__*/jsx("div", {
|
|
345
|
+
children: /*#__PURE__*/jsx(Tooltip, _objectSpread$2(_objectSpread$2({
|
|
346
|
+
disabled: !isConnectDisabled
|
|
347
|
+
}, connectTooltipProps), {}, {
|
|
348
|
+
children: /*#__PURE__*/jsx("span", {
|
|
349
|
+
children: (connectPath || connectUrl || onConnect) && /*#__PURE__*/jsx(Button, _objectSpread$2({
|
|
350
|
+
"data-cy": "connect-button",
|
|
351
|
+
disabled: isConnectDisabled,
|
|
352
|
+
href: connectUrl,
|
|
353
|
+
to: connectPath,
|
|
354
|
+
label: t("neetoIntegrations.common.connectIntegration", {
|
|
355
|
+
integration: integrationName || humanize(integration)
|
|
356
|
+
}),
|
|
357
|
+
onClick: onConnect
|
|
358
|
+
}, buttonProps))
|
|
359
|
+
})
|
|
360
|
+
}))
|
|
361
|
+
})]
|
|
308
362
|
})
|
|
309
|
-
},
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
target: manageUrl ? "_blank" : "_self",
|
|
319
|
-
to: managePath,
|
|
320
|
-
label: t("neetoIntegrations.common.manageIntegration", {
|
|
321
|
-
integration: integrationName || humanize(integration)
|
|
322
|
-
})
|
|
323
|
-
}), onDisconnect && /*#__PURE__*/React__default.createElement(Button, {
|
|
324
|
-
"data-cy": "disconnect-button",
|
|
325
|
-
style: "secondary",
|
|
326
|
-
label: t("neetoIntegrations.common.disconnectIntegration", {
|
|
327
|
-
integration: integrationName || humanize(integration)
|
|
328
|
-
}),
|
|
329
|
-
onClick: function onClick() {
|
|
330
|
-
return setIsDisconnectAlertOpen(true);
|
|
331
|
-
}
|
|
332
|
-
})) : /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Tooltip, _extends$1({
|
|
333
|
-
disabled: !isConnectDisabled
|
|
334
|
-
}, connectTooltipProps), /*#__PURE__*/React__default.createElement("span", null, (connectPath || connectUrl || onConnect) && /*#__PURE__*/React__default.createElement(Button, {
|
|
335
|
-
"data-cy": "connect-button",
|
|
336
|
-
disabled: isConnectDisabled,
|
|
337
|
-
href: connectUrl,
|
|
338
|
-
to: connectPath,
|
|
339
|
-
label: t("neetoIntegrations.common.connectIntegration", {
|
|
340
|
-
integration: integrationName || humanize(integration)
|
|
341
|
-
}),
|
|
342
|
-
onClick: onConnect
|
|
343
|
-
})))))), /*#__PURE__*/React__default.createElement(DisconnectAlert, {
|
|
344
|
-
isDisconnecting: isDisconnecting,
|
|
345
|
-
onClose: onClose,
|
|
346
|
-
onDisconnect: onDisconnect,
|
|
347
|
-
isOpen: isDisconnectAlertOpen,
|
|
348
|
-
message: disconnectMessage || t("settings.integrations.".concat(integration, ".disconnect.message")),
|
|
349
|
-
title: disconnectTitle || t("settings.integrations.".concat(integration, ".disconnect.title"))
|
|
350
|
-
}));
|
|
363
|
+
}), /*#__PURE__*/jsx(DisconnectAlert, {
|
|
364
|
+
isDisconnecting: isDisconnecting,
|
|
365
|
+
onClose: onClose,
|
|
366
|
+
onDisconnect: onDisconnect,
|
|
367
|
+
isOpen: isDisconnectAlertOpen,
|
|
368
|
+
message: disconnectMessage || t("settings.integrations.".concat(integration, ".disconnect.message")),
|
|
369
|
+
title: disconnectTitle || t("settings.integrations.".concat(integration, ".disconnect.title"))
|
|
370
|
+
})]
|
|
371
|
+
});
|
|
351
372
|
});
|
|
352
373
|
|
|
353
374
|
[{
|
|
@@ -448,6 +469,8 @@ var factoryWithThrowingShims = function factoryWithThrowingShims() {
|
|
|
448
469
|
var propTypesExports = propTypes.exports;
|
|
449
470
|
var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
|
|
450
471
|
|
|
472
|
+
function ownKeys$1(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; }
|
|
473
|
+
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
451
474
|
var Connect = withT(function (_ref) {
|
|
452
475
|
var t = _ref.t,
|
|
453
476
|
Icon = _ref.Icon,
|
|
@@ -455,32 +478,61 @@ var Connect = withT(function (_ref) {
|
|
|
455
478
|
title = _ref$title === void 0 ? "" : _ref$title,
|
|
456
479
|
_ref$description = _ref.description,
|
|
457
480
|
description = _ref$description === void 0 ? "" : _ref$description,
|
|
481
|
+
_ref$integration = _ref.integration,
|
|
482
|
+
integration = _ref$integration === void 0 ? "" : _ref$integration,
|
|
483
|
+
_ref$integrationName = _ref.integrationName,
|
|
484
|
+
integrationName = _ref$integrationName === void 0 ? "" : _ref$integrationName,
|
|
485
|
+
_ref$helpDocUrl = _ref.helpDocUrl,
|
|
486
|
+
helpDocUrl = _ref$helpDocUrl === void 0 ? "" : _ref$helpDocUrl,
|
|
458
487
|
_ref$buttonProps = _ref.buttonProps,
|
|
459
488
|
buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
|
|
460
489
|
_ref$onConnect = _ref.onConnect,
|
|
461
490
|
onConnect = _ref$onConnect === void 0 ? noop : _ref$onConnect,
|
|
462
491
|
children = _ref.children,
|
|
463
492
|
secondaryButtonProps = _ref.secondaryButtonProps;
|
|
464
|
-
return /*#__PURE__*/
|
|
465
|
-
className: "mx-auto w-full max-w-3xl"
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
493
|
+
return /*#__PURE__*/jsxs("div", {
|
|
494
|
+
className: "mx-auto w-full max-w-3xl",
|
|
495
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
496
|
+
className: "mb-6 flex flex-col gap-y-2",
|
|
497
|
+
children: [/*#__PURE__*/jsx(Icon, {
|
|
498
|
+
size: 48
|
|
499
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
500
|
+
className: "flex flex-col gap-y-1",
|
|
501
|
+
children: [/*#__PURE__*/jsx(Typography, {
|
|
502
|
+
style: "h2",
|
|
503
|
+
children: title
|
|
504
|
+
}), /*#__PURE__*/jsx(Typography, {
|
|
505
|
+
style: "body2",
|
|
506
|
+
children: description
|
|
507
|
+
})]
|
|
508
|
+
})]
|
|
509
|
+
}), helpDocUrl && /*#__PURE__*/jsx("div", {
|
|
510
|
+
className: "mb-4",
|
|
511
|
+
children: /*#__PURE__*/jsx(Trans, {
|
|
512
|
+
i18nKey: "neetoIntegrations.common.helpDocUrl",
|
|
513
|
+
components: {
|
|
514
|
+
helpLink: /*#__PURE__*/jsx(Button, {
|
|
515
|
+
className: "text-xs",
|
|
516
|
+
href: helpDocUrl,
|
|
517
|
+
size: "small",
|
|
518
|
+
style: "link",
|
|
519
|
+
target: "_blank"
|
|
520
|
+
})
|
|
521
|
+
},
|
|
522
|
+
values: {
|
|
523
|
+
integration: integrationName || humanize(integration)
|
|
524
|
+
}
|
|
525
|
+
})
|
|
526
|
+
}), children, /*#__PURE__*/jsxs("div", {
|
|
527
|
+
className: "flex w-full items-center gap-x-3",
|
|
528
|
+
children: [/*#__PURE__*/jsx(Button, _objectSpread$1({
|
|
529
|
+
label: t("neetoIntegrations.common.connect"),
|
|
530
|
+
onClick: onConnect
|
|
531
|
+
}, buttonProps)), secondaryButtonProps && /*#__PURE__*/jsx(Button, _objectSpread$1({
|
|
532
|
+
style: "secondary"
|
|
533
|
+
}, secondaryButtonProps))]
|
|
534
|
+
})]
|
|
535
|
+
});
|
|
484
536
|
});
|
|
485
537
|
Connect.prototypes = {
|
|
486
538
|
/**
|
|
@@ -554,6 +606,8 @@ const SvgSuccess = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
|
554
606
|
height: 344
|
|
555
607
|
}))));
|
|
556
608
|
|
|
609
|
+
function ownKeys(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; }
|
|
610
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
557
611
|
var Finish = withT(function (_ref) {
|
|
558
612
|
var t = _ref.t,
|
|
559
613
|
_ref$onClick = _ref.onClick,
|
|
@@ -565,20 +619,23 @@ var Finish = withT(function (_ref) {
|
|
|
565
619
|
_ref$secondaryButtonP = _ref.secondaryButtonProps,
|
|
566
620
|
secondaryButtonProps = _ref$secondaryButtonP === void 0 ? {} : _ref$secondaryButtonP,
|
|
567
621
|
children = _ref.children;
|
|
568
|
-
return /*#__PURE__*/
|
|
569
|
-
className: "mx-auto w-full max-w-3xl"
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
622
|
+
return /*#__PURE__*/jsxs("div", {
|
|
623
|
+
className: "mx-auto w-full max-w-3xl",
|
|
624
|
+
children: [/*#__PURE__*/jsx(SvgSuccess, {}), /*#__PURE__*/jsx(Typography, {
|
|
625
|
+
className: "mb-6 mt-4",
|
|
626
|
+
style: "h2",
|
|
627
|
+
weight: "semibold",
|
|
628
|
+
children: title
|
|
629
|
+
}), children, /*#__PURE__*/jsxs("div", {
|
|
630
|
+
className: "flex w-full items-center gap-x-2",
|
|
631
|
+
children: [/*#__PURE__*/jsx(Button, _objectSpread({
|
|
632
|
+
onClick: onClick,
|
|
633
|
+
label: t("neetoIntegrations.common.continue")
|
|
634
|
+
}, buttonProps)), isNotEmpty(secondaryButtonProps) && /*#__PURE__*/jsx(Button, _objectSpread({
|
|
635
|
+
style: "secondary"
|
|
636
|
+
}, secondaryButtonProps))]
|
|
637
|
+
})]
|
|
638
|
+
});
|
|
582
639
|
});
|
|
583
640
|
Finish.prototypes = {
|
|
584
641
|
/**
|
|
@@ -640,6 +697,7 @@ var Form = function Form(_ref) {
|
|
|
640
697
|
breadcrumbs = _ref.breadcrumbs;
|
|
641
698
|
var _useTranslation = useTranslation(),
|
|
642
699
|
t = _useTranslation.t;
|
|
700
|
+
var history = useHistory();
|
|
643
701
|
var _useState = useState(false),
|
|
644
702
|
_useState2 = _slicedToArray(_useState, 2),
|
|
645
703
|
isDemoModalOpen = _useState2[0],
|
|
@@ -655,70 +713,78 @@ var Form = function Form(_ref) {
|
|
|
655
713
|
return createDaily(payload);
|
|
656
714
|
};
|
|
657
715
|
if (isConnecting) {
|
|
658
|
-
return /*#__PURE__*/
|
|
716
|
+
return /*#__PURE__*/jsx(PageLoader, {});
|
|
659
717
|
}
|
|
660
|
-
return /*#__PURE__*/
|
|
661
|
-
isHeaderFixed: true
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
718
|
+
return /*#__PURE__*/jsxs(Container, {
|
|
719
|
+
isHeaderFixed: true,
|
|
720
|
+
children: [/*#__PURE__*/jsx(Header, {
|
|
721
|
+
breadcrumbs: breadcrumbs,
|
|
722
|
+
title: /*#__PURE__*/jsxs("span", {
|
|
723
|
+
className: "flex items-center gap-2",
|
|
724
|
+
children: [t("neetoIntegrations.daily.connect.title"), /*#__PURE__*/jsx(HelpPopover, {
|
|
725
|
+
title: t("neetoIntegrations.daily.connect.title"),
|
|
726
|
+
description: /*#__PURE__*/jsx(Trans, {
|
|
727
|
+
i18nKey: "neetoIntegrations.daily.helpDoc",
|
|
728
|
+
components: {
|
|
729
|
+
externalLink: /*#__PURE__*/jsx(ExternalLink$1, {
|
|
730
|
+
"data-cy": "api-key-help-doc-link",
|
|
731
|
+
href: helpDocUrl,
|
|
732
|
+
rel: "noreferrer",
|
|
733
|
+
target: "_blank"
|
|
734
|
+
})
|
|
735
|
+
}
|
|
736
|
+
}),
|
|
737
|
+
helpLinkProps: {
|
|
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);
|
|
744
|
+
}
|
|
745
|
+
})
|
|
686
746
|
}
|
|
747
|
+
})]
|
|
748
|
+
})
|
|
749
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
750
|
+
className: "mx-auto w-full max-w-md",
|
|
751
|
+
children: [/*#__PURE__*/jsx(FormikFormWrapper, {
|
|
752
|
+
formikProps: {
|
|
753
|
+
initialValues: MANAGE_DAILY_CO_FORM_INITIAL_VALUES,
|
|
754
|
+
validationSchema: DAILY_CO_VALIDATION_SCHEMA,
|
|
755
|
+
onSubmit: handleSubmit
|
|
756
|
+
},
|
|
757
|
+
children: /*#__PURE__*/jsxs("div", {
|
|
758
|
+
className: "mt-14 w-full space-y-2",
|
|
759
|
+
children: [/*#__PURE__*/jsx("div", {
|
|
760
|
+
className: "block min-h-20",
|
|
761
|
+
children: /*#__PURE__*/jsx(Input, {
|
|
762
|
+
autoFocus: true,
|
|
763
|
+
required: true,
|
|
764
|
+
label: t("neetoIntegrations.daily.apiKey"),
|
|
765
|
+
name: "apiKey"
|
|
766
|
+
})
|
|
767
|
+
}), /*#__PURE__*/jsx(ActionBlock, {
|
|
768
|
+
cancelButtonProps: {
|
|
769
|
+
onClick: function onClick() {
|
|
770
|
+
return history.goBack();
|
|
771
|
+
}
|
|
772
|
+
},
|
|
773
|
+
isSubmitting: isConnecting,
|
|
774
|
+
submitButtonProps: {
|
|
775
|
+
label: t("neetoIntegrations.common.connect")
|
|
776
|
+
}
|
|
777
|
+
})]
|
|
687
778
|
})
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
}
|
|
698
|
-
}, function (_ref2) {
|
|
699
|
-
var dirty = _ref2.dirty;
|
|
700
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
701
|
-
className: "mt-14 w-full space-y-5"
|
|
702
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
703
|
-
className: "block min-h-20"
|
|
704
|
-
}, /*#__PURE__*/React__default.createElement(Input, {
|
|
705
|
-
autoFocus: true,
|
|
706
|
-
required: true,
|
|
707
|
-
label: t("neetoIntegrations.daily.apiKey"),
|
|
708
|
-
name: "apiKey"
|
|
709
|
-
})), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Button, {
|
|
710
|
-
disabled: isConnecting || !dirty,
|
|
711
|
-
label: t("neetoIntegrations.common.connect"),
|
|
712
|
-
loading: isConnecting,
|
|
713
|
-
type: "submit"
|
|
714
|
-
})));
|
|
715
|
-
}), /*#__PURE__*/React__default.createElement(WalkthroughModal, {
|
|
716
|
-
videoUrl: videoUrl,
|
|
717
|
-
isOpen: isDemoModalOpen,
|
|
718
|
-
onClose: function onClose() {
|
|
719
|
-
return setIsDemoModalOpen(false);
|
|
720
|
-
}
|
|
721
|
-
})));
|
|
779
|
+
}), /*#__PURE__*/jsx(WalkthroughModal, {
|
|
780
|
+
videoUrl: videoUrl,
|
|
781
|
+
isOpen: isDemoModalOpen,
|
|
782
|
+
onClose: function onClose() {
|
|
783
|
+
return setIsDemoModalOpen(false);
|
|
784
|
+
}
|
|
785
|
+
})]
|
|
786
|
+
})]
|
|
787
|
+
});
|
|
722
788
|
};
|
|
723
789
|
var Form$1 = withTitle(Form, i18next.t("neetoIntegrations.browserTitles.integrations.dailyco"));
|
|
724
790
|
|
|
@@ -752,8 +818,8 @@ var Manage = function Manage(_ref) {
|
|
|
752
818
|
var handleDisconnect = function handleDisconnect() {
|
|
753
819
|
return destroyIntegration("daily");
|
|
754
820
|
};
|
|
755
|
-
if (isFetching || isDisconnecting) return /*#__PURE__*/
|
|
756
|
-
return /*#__PURE__*/
|
|
821
|
+
if (isFetching || isDisconnecting) return /*#__PURE__*/jsx(PageLoader, {});
|
|
822
|
+
return /*#__PURE__*/jsx(Manage$1, {
|
|
757
823
|
isConnected: isConnected,
|
|
758
824
|
isDisconnectAlertOpen: isDisconnectAlertOpen,
|
|
759
825
|
isDisconnecting: isDisconnecting,
|
|
@@ -763,19 +829,19 @@ var Manage = function Manage(_ref) {
|
|
|
763
829
|
connect: true
|
|
764
830
|
}),
|
|
765
831
|
integration: "daily",
|
|
766
|
-
description: isConnected ? /*#__PURE__*/
|
|
832
|
+
description: isConnected ? /*#__PURE__*/jsx(Trans, {
|
|
767
833
|
i18nKey: "neetoIntegrations.daily.yourApiKey",
|
|
768
834
|
values: {
|
|
769
835
|
apiKey: apiKey
|
|
770
836
|
},
|
|
771
837
|
components: {
|
|
772
|
-
wrapper: /*#__PURE__*/
|
|
838
|
+
wrapper: /*#__PURE__*/jsx("div", {
|
|
773
839
|
className: "neeto-ui-rounded-md mt-2 flex items-center justify-between gap-x-3 border px-3 py-2"
|
|
774
840
|
}),
|
|
775
|
-
span: /*#__PURE__*/
|
|
841
|
+
span: /*#__PURE__*/jsx("span", {
|
|
776
842
|
className: "break-all text-sm"
|
|
777
843
|
}),
|
|
778
|
-
copy: /*#__PURE__*/
|
|
844
|
+
copy: /*#__PURE__*/jsx(CopyToClipboardButton, {
|
|
779
845
|
className: "flex-shrink-0 self-start",
|
|
780
846
|
style: "text",
|
|
781
847
|
value: apiKey
|
|
@@ -814,12 +880,12 @@ var Daily = function Daily(_ref) {
|
|
|
814
880
|
_ref2$apiKey = _ref2.apiKey,
|
|
815
881
|
apiKey = _ref2$apiKey === void 0 ? null : _ref2$apiKey;
|
|
816
882
|
if (isPresent(apiKey) && !isOnboarding || !connect) {
|
|
817
|
-
return /*#__PURE__*/
|
|
883
|
+
return /*#__PURE__*/jsx(Manage, {
|
|
818
884
|
description: description,
|
|
819
885
|
onDisconnect: onDisconnect
|
|
820
886
|
});
|
|
821
887
|
}
|
|
822
|
-
return /*#__PURE__*/
|
|
888
|
+
return /*#__PURE__*/jsx(Form$1, {
|
|
823
889
|
helpDocUrl: helpDocUrl,
|
|
824
890
|
onConnect: onConnect,
|
|
825
891
|
videoUrl: videoUrl
|