@bigbinary/neeto-integrations-frontend 2.12.6 → 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/dist/Daily.js CHANGED
@@ -10,18 +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 { Typography, Button, Tooltip } from '@bigbinary/neetoui';
14
- import { Form as Form$2, Input } from '@bigbinary/neetoui/formik';
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';
29
+ import CopyToClipboardButton from '@bigbinary/neeto-molecules/CopyToClipboardButton';
30
+ import '@bigbinary/neetoui/Callout';
23
31
  import 'ramda';
32
+ import '@bigbinary/neetoui/formik/Select';
24
33
  import * as yup from 'yup';
34
+ import '@bigbinary/neetoui/Modal';
25
35
 
26
36
  function _typeof(o) {
27
37
  "@babel/helpers - typeof";
@@ -91,11 +101,11 @@ var QUERY_KEYS = {
91
101
  ZOOM_DETAILS: "zoom-details"
92
102
  };
93
103
 
94
- 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; }
95
- 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; }
96
106
  var useCreateDaily = function useCreateDaily() {
97
107
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
98
- return useMutationWithInvalidation(dailiesApi.create, _objectSpread({
108
+ return useMutationWithInvalidation(dailiesApi.create, _objectSpread$4({
99
109
  keysToInvalidate: [QUERY_KEYS.DAILY_CO_DETAILS]
100
110
  }, options));
101
111
  };
@@ -167,21 +177,6 @@ function _slicedToArray(arr, i) {
167
177
  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
168
178
  }
169
179
 
170
- function _extends$1() {
171
- _extends$1 = Object.assign ? Object.assign.bind() : function (target) {
172
- for (var i = 1; i < arguments.length; i++) {
173
- var source = arguments[i];
174
- for (var key in source) {
175
- if (Object.prototype.hasOwnProperty.call(source, key)) {
176
- target[key] = source[key];
177
- }
178
- }
179
- }
180
- return target;
181
- };
182
- return _extends$1.apply(this, arguments);
183
- }
184
-
185
180
  function _objectWithoutPropertiesLoose(source, excluded) {
186
181
  if (source == null) return {};
187
182
  var target = {};
@@ -212,18 +207,24 @@ function _objectWithoutProperties(source, excluded) {
212
207
  }
213
208
 
214
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; }
215
212
  var ExternalLink = function ExternalLink(_ref) {
216
213
  var _ref$className = _ref.className,
217
214
  className = _ref$className === void 0 ? "" : _ref$className,
218
215
  _ref$children = _ref.children,
219
216
  children = _ref$children === void 0 ? null : _ref$children,
220
217
  props = _objectWithoutProperties(_ref, _excluded);
221
- return /*#__PURE__*/React__default.createElement("a", _extends$1({
218
+ return /*#__PURE__*/jsx("a", _objectSpread$3(_objectSpread$3({
222
219
  className: classnames(["neeto-ui-text-primary-800 hover:neeto-ui-text-primary-800 visited:neeto-ui-text-primary-600 font-medium", className])
223
- }, props), children);
220
+ }, props), {}, {
221
+ children: children
222
+ }));
224
223
  };
225
224
  var ExternalLink$1 = /*#__PURE__*/React__default.memo(ExternalLink);
226
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; }
227
228
  var Manage$1 = withT(function (_ref) {
228
229
  var t = _ref.t,
229
230
  _ref$title = _ref.title,
@@ -267,86 +268,107 @@ var Manage$1 = withT(function (_ref) {
267
268
  _ref$isConnectDisable = _ref.isConnectDisabled,
268
269
  isConnectDisabled = _ref$isConnectDisable === void 0 ? false : _ref$isConnectDisable,
269
270
  _ref$connectTooltipPr = _ref.connectTooltipProps,
270
- connectTooltipProps = _ref$connectTooltipPr === void 0 ? null : _ref$connectTooltipPr;
271
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
272
- className: "mx-auto w-full max-w-3xl"
273
- }, /*#__PURE__*/React__default.createElement("div", {
274
- className: "neeto-ui-border-gray-300 neeto-ui-rounded-xl mt-10 w-full space-y-4 border p-6"
275
- }, Icon && /*#__PURE__*/React__default.createElement(Icon, {
276
- className: "neeto-ui-text-gray-600",
277
- size: 48
278
- }), /*#__PURE__*/React__default.createElement("div", {
279
- className: "space-y-2"
280
- }, /*#__PURE__*/React__default.createElement("div", {
281
- className: "flex items-center space-x-4"
282
- }, /*#__PURE__*/React__default.createElement(Typography, {
283
- className: "neeto-ui-text-gray-800 mb-0.5",
284
- style: "h2",
285
- weight: "semibold"
286
- }, title), isConnected && /*#__PURE__*/React__default.createElement("div", {
287
- className: "neeto-ui-bg-success-500 neeto-ui-text-white neeto-ui-rounded-full flex items-center justify-center p-1"
288
- }, /*#__PURE__*/React__default.createElement(Check, {
289
- size: 24
290
- }))), /*#__PURE__*/React__default.createElement(Typography, {
291
- style: "body1",
292
- weight: "normal",
293
- className: classnames("neeto-ui-text-gray-800", {
294
- "break-all": isConnected
295
- })
296
- }, description), helpDocUrl && /*#__PURE__*/React__default.createElement(Typography, {
297
- className: "neeto-ui-text-gray-800",
298
- style: "body2",
299
- weight: "normal"
300
- }, /*#__PURE__*/React__default.createElement(Trans, {
301
- i18nKey: "neetoIntegrations.common.helpDocUrl",
302
- components: {
303
- helpLink: /*#__PURE__*/React__default.createElement(Button, {
304
- href: helpDocUrl,
305
- style: "link",
306
- target: "_blank"
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
+ })]
307
362
  })
308
- },
309
- values: {
310
- integration: integrationName || humanize(integration)
311
- }
312
- }))), isConnected ? /*#__PURE__*/React__default.createElement("div", {
313
- className: "space-x-2"
314
- }, (managePath || manageUrl) && /*#__PURE__*/React__default.createElement(Button, {
315
- "data-cy": "manage-button",
316
- href: manageUrl,
317
- target: manageUrl ? "_blank" : "_self",
318
- to: managePath,
319
- label: t("neetoIntegrations.common.manageIntegration", {
320
- integration: integrationName || humanize(integration)
321
- })
322
- }), onDisconnect && /*#__PURE__*/React__default.createElement(Button, {
323
- "data-cy": "disconnect-button",
324
- style: "secondary",
325
- label: t("neetoIntegrations.common.disconnectIntegration", {
326
- integration: integrationName || humanize(integration)
327
- }),
328
- onClick: function onClick() {
329
- return setIsDisconnectAlertOpen(true);
330
- }
331
- })) : /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Tooltip, _extends$1({
332
- disabled: !isConnectDisabled
333
- }, connectTooltipProps), /*#__PURE__*/React__default.createElement("span", null, (connectPath || connectUrl || onConnect) && /*#__PURE__*/React__default.createElement(Button, {
334
- "data-cy": "connect-button",
335
- disabled: isConnectDisabled,
336
- href: connectUrl,
337
- to: connectPath,
338
- label: t("neetoIntegrations.common.connectIntegration", {
339
- integration: integrationName || humanize(integration)
340
- }),
341
- onClick: onConnect
342
- })))))), /*#__PURE__*/React__default.createElement(DisconnectAlert, {
343
- isDisconnecting: isDisconnecting,
344
- onClose: onClose,
345
- onDisconnect: onDisconnect,
346
- isOpen: isDisconnectAlertOpen,
347
- message: disconnectMessage || t("settings.integrations.".concat(integration, ".disconnect.message")),
348
- title: disconnectTitle || t("settings.integrations.".concat(integration, ".disconnect.title"))
349
- }));
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
+ });
350
372
  });
351
373
 
352
374
  [{
@@ -447,6 +469,8 @@ var factoryWithThrowingShims = function factoryWithThrowingShims() {
447
469
  var propTypesExports = propTypes.exports;
448
470
  var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
449
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; }
450
474
  var Connect = withT(function (_ref) {
451
475
  var t = _ref.t,
452
476
  Icon = _ref.Icon,
@@ -454,32 +478,61 @@ var Connect = withT(function (_ref) {
454
478
  title = _ref$title === void 0 ? "" : _ref$title,
455
479
  _ref$description = _ref.description,
456
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,
457
487
  _ref$buttonProps = _ref.buttonProps,
458
488
  buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
459
489
  _ref$onConnect = _ref.onConnect,
460
490
  onConnect = _ref$onConnect === void 0 ? noop : _ref$onConnect,
461
491
  children = _ref.children,
462
492
  secondaryButtonProps = _ref.secondaryButtonProps;
463
- return /*#__PURE__*/React__default.createElement("div", {
464
- className: "mx-auto w-full max-w-3xl"
465
- }, /*#__PURE__*/React__default.createElement("div", {
466
- className: "mb-6 flex flex-col gap-y-2"
467
- }, /*#__PURE__*/React__default.createElement(Icon, {
468
- size: 48
469
- }), /*#__PURE__*/React__default.createElement("div", {
470
- className: "flex flex-col gap-y-1"
471
- }, /*#__PURE__*/React__default.createElement(Typography, {
472
- style: "h2"
473
- }, title), /*#__PURE__*/React__default.createElement(Typography, {
474
- style: "body2"
475
- }, description))), children, /*#__PURE__*/React__default.createElement("div", {
476
- className: "flex w-full items-center gap-x-3"
477
- }, /*#__PURE__*/React__default.createElement(Button, _extends$1({
478
- label: t("neetoIntegrations.common.connect"),
479
- onClick: onConnect
480
- }, buttonProps)), secondaryButtonProps && /*#__PURE__*/React__default.createElement(Button, _extends$1({
481
- style: "secondary"
482
- }, secondaryButtonProps))));
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
+ });
483
536
  });
484
537
  Connect.prototypes = {
485
538
  /**
@@ -553,6 +606,8 @@ const SvgSuccess = props => /*#__PURE__*/React.createElement("svg", _extends({
553
606
  height: 344
554
607
  }))));
555
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; }
556
611
  var Finish = withT(function (_ref) {
557
612
  var t = _ref.t,
558
613
  _ref$onClick = _ref.onClick,
@@ -564,20 +619,23 @@ var Finish = withT(function (_ref) {
564
619
  _ref$secondaryButtonP = _ref.secondaryButtonProps,
565
620
  secondaryButtonProps = _ref$secondaryButtonP === void 0 ? {} : _ref$secondaryButtonP,
566
621
  children = _ref.children;
567
- return /*#__PURE__*/React__default.createElement("div", {
568
- className: "mx-auto w-full max-w-3xl"
569
- }, /*#__PURE__*/React__default.createElement(SvgSuccess, null), /*#__PURE__*/React__default.createElement(Typography, {
570
- className: "mb-6 mt-4",
571
- style: "h2",
572
- weight: "semibold"
573
- }, title), children, /*#__PURE__*/React__default.createElement("div", {
574
- className: "flex w-full items-center gap-x-2"
575
- }, /*#__PURE__*/React__default.createElement(Button, _extends$1({
576
- onClick: onClick,
577
- label: t("neetoIntegrations.common.continue")
578
- }, buttonProps)), isNotEmpty(secondaryButtonProps) && /*#__PURE__*/React__default.createElement(Button, _extends$1({
579
- style: "secondary"
580
- }, secondaryButtonProps))));
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
+ });
581
639
  });
582
640
  Finish.prototypes = {
583
641
  /**
@@ -639,6 +697,7 @@ var Form = function Form(_ref) {
639
697
  breadcrumbs = _ref.breadcrumbs;
640
698
  var _useTranslation = useTranslation(),
641
699
  t = _useTranslation.t;
700
+ var history = useHistory();
642
701
  var _useState = useState(false),
643
702
  _useState2 = _slicedToArray(_useState, 2),
644
703
  isDemoModalOpen = _useState2[0],
@@ -654,70 +713,78 @@ var Form = function Form(_ref) {
654
713
  return createDaily(payload);
655
714
  };
656
715
  if (isConnecting) {
657
- return /*#__PURE__*/React__default.createElement(PageLoader, null);
716
+ return /*#__PURE__*/jsx(PageLoader, {});
658
717
  }
659
- return /*#__PURE__*/React__default.createElement(Container, {
660
- isHeaderFixed: true
661
- }, /*#__PURE__*/React__default.createElement(Header, {
662
- breadcrumbs: breadcrumbs,
663
- title: /*#__PURE__*/React__default.createElement("span", {
664
- className: "flex items-center gap-2"
665
- }, t("neetoIntegrations.daily.connect.title"), /*#__PURE__*/React__default.createElement(HelpPopover, {
666
- title: t("neetoIntegrations.daily.connect.title"),
667
- description: /*#__PURE__*/React__default.createElement(Trans, {
668
- i18nKey: "neetoIntegrations.daily.helpDoc",
669
- components: {
670
- externalLink: /*#__PURE__*/React__default.createElement(ExternalLink$1, {
671
- "data-cy": "api-key-help-doc-link",
672
- href: helpDocUrl,
673
- rel: "noreferrer",
674
- target: "_blank"
675
- })
676
- }
677
- }),
678
- helpLinkProps: {
679
- label: /*#__PURE__*/React__default.createElement(Button, {
680
- className: "mt-8",
681
- label: t("neetoIntegrations.daily.walkthroughText"),
682
- style: "link",
683
- onClick: function onClick() {
684
- return setIsDemoModalOpen(true);
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
+ })
685
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
+ })]
686
778
  })
687
- }
688
- }))
689
- }), /*#__PURE__*/React__default.createElement("div", {
690
- className: "mx-auto w-full max-w-md"
691
- }, /*#__PURE__*/React__default.createElement(Form$2, {
692
- formikProps: {
693
- initialValues: MANAGE_DAILY_CO_FORM_INITIAL_VALUES,
694
- validationSchema: DAILY_CO_VALIDATION_SCHEMA,
695
- onSubmit: handleSubmit
696
- }
697
- }, function (_ref2) {
698
- var dirty = _ref2.dirty;
699
- return /*#__PURE__*/React__default.createElement("div", {
700
- className: "mt-14 w-full space-y-5"
701
- }, /*#__PURE__*/React__default.createElement("div", {
702
- className: "block min-h-20"
703
- }, /*#__PURE__*/React__default.createElement(Input, {
704
- autoFocus: true,
705
- required: true,
706
- label: t("neetoIntegrations.daily.apiKey"),
707
- name: "apiKey"
708
- })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Button, {
709
- disabled: isConnecting || !dirty,
710
- label: t("neetoIntegrations.common.connect"),
711
- loading: isConnecting,
712
- type: "submit"
713
- })));
714
- }), /*#__PURE__*/React__default.createElement(WalkthroughModal, {
715
- videoUrl: videoUrl,
716
- isOpen: isDemoModalOpen,
717
- onClose: function onClose() {
718
- return setIsDemoModalOpen(false);
719
- }
720
- })));
779
+ }), /*#__PURE__*/jsx(WalkthroughModal, {
780
+ videoUrl: videoUrl,
781
+ isOpen: isDemoModalOpen,
782
+ onClose: function onClose() {
783
+ return setIsDemoModalOpen(false);
784
+ }
785
+ })]
786
+ })]
787
+ });
721
788
  };
722
789
  var Form$1 = withTitle(Form, i18next.t("neetoIntegrations.browserTitles.integrations.dailyco"));
723
790
 
@@ -751,8 +818,8 @@ var Manage = function Manage(_ref) {
751
818
  var handleDisconnect = function handleDisconnect() {
752
819
  return destroyIntegration("daily");
753
820
  };
754
- if (isFetching || isDisconnecting) return /*#__PURE__*/React__default.createElement(PageLoader, null);
755
- return /*#__PURE__*/React__default.createElement(Manage$1, {
821
+ if (isFetching || isDisconnecting) return /*#__PURE__*/jsx(PageLoader, {});
822
+ return /*#__PURE__*/jsx(Manage$1, {
756
823
  isConnected: isConnected,
757
824
  isDisconnectAlertOpen: isDisconnectAlertOpen,
758
825
  isDisconnecting: isDisconnecting,
@@ -762,15 +829,23 @@ var Manage = function Manage(_ref) {
762
829
  connect: true
763
830
  }),
764
831
  integration: "daily",
765
- description: isConnected ? /*#__PURE__*/React__default.createElement(Trans, {
766
- components: {
767
- underline: /*#__PURE__*/React__default.createElement("u", {
768
- className: "font-medium"
769
- })
770
- },
832
+ description: isConnected ? /*#__PURE__*/jsx(Trans, {
771
833
  i18nKey: "neetoIntegrations.daily.yourApiKey",
772
834
  values: {
773
835
  apiKey: apiKey
836
+ },
837
+ components: {
838
+ wrapper: /*#__PURE__*/jsx("div", {
839
+ className: "neeto-ui-rounded-md mt-2 flex items-center justify-between gap-x-3 border px-3 py-2"
840
+ }),
841
+ span: /*#__PURE__*/jsx("span", {
842
+ className: "break-all text-sm"
843
+ }),
844
+ copy: /*#__PURE__*/jsx(CopyToClipboardButton, {
845
+ className: "flex-shrink-0 self-start",
846
+ style: "text",
847
+ value: apiKey
848
+ })
774
849
  }
775
850
  }) : description,
776
851
  title: isConnected ? t("neetoIntegrations.daily.connected") : t("neetoIntegrations.daily.connect.account"),
@@ -805,12 +880,12 @@ var Daily = function Daily(_ref) {
805
880
  _ref2$apiKey = _ref2.apiKey,
806
881
  apiKey = _ref2$apiKey === void 0 ? null : _ref2$apiKey;
807
882
  if (isPresent(apiKey) && !isOnboarding || !connect) {
808
- return /*#__PURE__*/React__default.createElement(Manage, {
883
+ return /*#__PURE__*/jsx(Manage, {
809
884
  description: description,
810
885
  onDisconnect: onDisconnect
811
886
  });
812
887
  }
813
- return /*#__PURE__*/React__default.createElement(Form$1, {
888
+ return /*#__PURE__*/jsx(Form$1, {
814
889
  helpDocUrl: helpDocUrl,
815
890
  onConnect: onConnect,
816
891
  videoUrl: videoUrl