@bigbinary/neeto-integrations-frontend 2.12.3 → 2.12.5

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/Zoom.js CHANGED
@@ -5,20 +5,23 @@ import { Daily as Daily$1, Zoom as Zoom$1 } from '@bigbinary/neeto-icons/misc';
5
5
  import PageLoader from '@bigbinary/neeto-molecules/PageLoader';
6
6
  import { useTranslation, Trans } from 'react-i18next';
7
7
  import classnames from 'classnames';
8
+ import { useMutationWithInvalidation, withTitle, useQueryParams, withT } from '@bigbinary/neeto-commons-frontend/react-utils';
9
+ import { Check } from '@bigbinary/neeto-icons';
10
+ import { Button, Typography, Tooltip } from '@bigbinary/neetoui';
8
11
  import '@bigbinary/neeto-molecules/IntegrationCard';
9
12
  import DisconnectAlert from '@bigbinary/neeto-molecules/IntegrationDisconnectAlert';
10
13
  import WalkthroughModal from '@bigbinary/neeto-molecules/IntegrationWalkthroughModal';
11
14
  import i18next, { t as t$1 } from 'i18next';
12
- import { useMutationWithInvalidation, withTitle, useQueryParams, withT } from '@bigbinary/neeto-commons-frontend/react-utils';
13
15
  import { DEFAULT_STALE_TIME } from '@bigbinary/neeto-commons-frontend/constants';
14
16
  import { useQuery } from 'react-query';
15
17
  import axios from 'axios';
16
- import { buildUrl } from '@bigbinary/neeto-commons-frontend/utils';
17
- import { Button, Typography, Tooltip } from '@bigbinary/neetoui';
18
+ import Container from '@bigbinary/neeto-molecules/Container';
19
+ import Header from '@bigbinary/neeto-molecules/Header';
20
+ import HelpPopover from '@bigbinary/neeto-molecules/HelpPopover';
18
21
  import { Form as Form$2, Input } from '@bigbinary/neetoui/formik';
22
+ import { buildUrl } from '@bigbinary/neeto-commons-frontend/utils';
19
23
  import 'ramda';
20
24
  import * as yup from 'yup';
21
- import { Check } from '@bigbinary/neeto-icons';
22
25
 
23
26
  function _arrayWithHoles(arr) {
24
27
  if (Array.isArray(arr)) return arr;
@@ -235,7 +238,8 @@ var DAILY_CO_VALIDATION_SCHEMA = yup.object().shape({
235
238
  var Form = function Form(_ref) {
236
239
  var helpDocUrl = _ref.helpDocUrl,
237
240
  videoUrl = _ref.videoUrl,
238
- onConnect = _ref.onConnect;
241
+ onConnect = _ref.onConnect,
242
+ breadcrumbs = _ref.breadcrumbs;
239
243
  var _useTranslation = useTranslation(),
240
244
  t = _useTranslation.t;
241
245
  var _useState = useState(false),
@@ -255,7 +259,37 @@ var Form = function Form(_ref) {
255
259
  if (isConnecting) {
256
260
  return /*#__PURE__*/React__default.createElement(PageLoader, null);
257
261
  }
258
- return /*#__PURE__*/React__default.createElement("div", {
262
+ return /*#__PURE__*/React__default.createElement(Container, {
263
+ isHeaderFixed: true
264
+ }, /*#__PURE__*/React__default.createElement(Header, {
265
+ breadcrumbs: breadcrumbs,
266
+ title: /*#__PURE__*/React__default.createElement("span", {
267
+ className: "flex items-center gap-2"
268
+ }, t("neetoIntegrations.daily.connect.title"), /*#__PURE__*/React__default.createElement(HelpPopover, {
269
+ title: t("neetoIntegrations.daily.connect.title"),
270
+ description: /*#__PURE__*/React__default.createElement(Trans, {
271
+ i18nKey: "neetoIntegrations.daily.helpDoc",
272
+ components: {
273
+ externalLink: /*#__PURE__*/React__default.createElement(ExternalLink$1, {
274
+ "data-cy": "api-key-help-doc-link",
275
+ href: helpDocUrl,
276
+ rel: "noreferrer",
277
+ target: "_blank"
278
+ })
279
+ }
280
+ }),
281
+ helpLinkProps: {
282
+ label: /*#__PURE__*/React__default.createElement(Button, {
283
+ className: "mt-8",
284
+ label: t("neetoIntegrations.daily.walkthroughText"),
285
+ style: "link",
286
+ onClick: function onClick() {
287
+ return setIsDemoModalOpen(true);
288
+ }
289
+ })
290
+ }
291
+ }))
292
+ }), /*#__PURE__*/React__default.createElement("div", {
259
293
  className: "mx-auto w-full max-w-md"
260
294
  }, /*#__PURE__*/React__default.createElement(Form$2, {
261
295
  formikProps: {
@@ -266,32 +300,14 @@ var Form = function Form(_ref) {
266
300
  }, function (_ref2) {
267
301
  var dirty = _ref2.dirty;
268
302
  return /*#__PURE__*/React__default.createElement("div", {
269
- className: "mt-10 w-full space-y-5"
303
+ className: "mt-14 w-full space-y-5"
270
304
  }, /*#__PURE__*/React__default.createElement("div", {
271
- className: "block"
305
+ className: "block min-h-20"
272
306
  }, /*#__PURE__*/React__default.createElement(Input, {
273
307
  autoFocus: true,
274
308
  required: true,
275
309
  label: t("neetoIntegrations.daily.apiKey"),
276
- name: "apiKey",
277
- helpText: /*#__PURE__*/React__default.createElement(Trans, {
278
- i18nKey: "neetoIntegrations.daily.helpDoc",
279
- components: {
280
- externalLink: /*#__PURE__*/React__default.createElement(ExternalLink$1, {
281
- "data-cy": "api-key-help-doc-link",
282
- href: helpDocUrl,
283
- rel: "noreferrer",
284
- target: "_blank"
285
- })
286
- }
287
- })
288
- }), /*#__PURE__*/React__default.createElement(Button, {
289
- className: "mt-8",
290
- label: t("neetoIntegrations.daily.walkthroughText"),
291
- style: "link",
292
- onClick: function onClick() {
293
- return setIsDemoModalOpen(true);
294
- }
310
+ name: "apiKey"
295
311
  })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Button, {
296
312
  disabled: isConnecting || !dirty,
297
313
  label: t("neetoIntegrations.common.connect"),
@@ -304,7 +320,7 @@ var Form = function Form(_ref) {
304
320
  onClose: function onClose() {
305
321
  return setIsDemoModalOpen(false);
306
322
  }
307
- }));
323
+ })));
308
324
  };
309
325
  var Form$1 = withTitle(Form, i18next.t("neetoIntegrations.browserTitles.integrations.dailyco"));
310
326
 
@@ -360,7 +376,7 @@ var Manage$1 = function Manage$1(_ref) {
360
376
  apiKey: apiKey
361
377
  }
362
378
  }) : description,
363
- title: isConnected ? t("neetoIntegrations.daily.connected") : t("neetoIntegrations.daily.connect"),
379
+ title: isConnected ? t("neetoIntegrations.daily.connected") : t("neetoIntegrations.daily.connect.account"),
364
380
  onClose: function onClose() {
365
381
  return setIsDisconnectAlertOpen(false);
366
382
  },
@@ -517,23 +533,23 @@ var Connect = withT(function (_ref) {
517
533
  children = _ref.children,
518
534
  secondaryButtonProps = _ref.secondaryButtonProps;
519
535
  return /*#__PURE__*/React__default.createElement("div", {
520
- className: "mx-auto w-full max-w-lg"
536
+ className: "mx-auto w-full max-w-3xl"
537
+ }, /*#__PURE__*/React__default.createElement("div", {
538
+ className: "mb-6 flex flex-col gap-y-2"
521
539
  }, /*#__PURE__*/React__default.createElement(Icon, {
522
540
  size: 48
523
- }), /*#__PURE__*/React__default.createElement(Typography, {
524
- className: "neeto-ui-text-gray-800 mb-0.5 mt-6",
525
- style: "h2",
526
- weight: "semibold"
541
+ }), /*#__PURE__*/React__default.createElement("div", {
542
+ className: "flex flex-col gap-y-1"
543
+ }, /*#__PURE__*/React__default.createElement(Typography, {
544
+ style: "h2"
527
545
  }, title), /*#__PURE__*/React__default.createElement(Typography, {
528
- className: "neeto-ui-text-gray-700 mb-8",
529
- style: "body1",
530
- weight: "normal"
531
- }, description), children, /*#__PURE__*/React__default.createElement("div", {
532
- className: "flex w-full items-start space-x-4"
546
+ style: "body2"
547
+ }, description))), children, /*#__PURE__*/React__default.createElement("div", {
548
+ className: "flex w-full items-center gap-x-3"
533
549
  }, /*#__PURE__*/React__default.createElement(Button, _extends$1({
534
550
  label: t("neetoIntegrations.common.connect"),
535
551
  onClick: onConnect
536
- }, buttonProps)), isNotEmpty(secondaryButtonProps) && /*#__PURE__*/React__default.createElement(Button, _extends$1({
552
+ }, buttonProps)), secondaryButtonProps && /*#__PURE__*/React__default.createElement(Button, _extends$1({
537
553
  style: "secondary"
538
554
  }, secondaryButtonProps))));
539
555
  });
@@ -541,23 +557,23 @@ Connect.prototypes = {
541
557
  /**
542
558
  * To specify the Icon to be shown
543
559
  */
544
- Icon: propTypesExports.PropTypes.node,
560
+ Icon: PropTypes.node,
545
561
  /**
546
562
  * To specify the title of the connect component
547
563
  */
548
- title: propTypesExports.PropTypes.string,
564
+ title: PropTypes.string,
549
565
  /**
550
566
  * To specify the description for connect component
551
567
  */
552
- description: propTypesExports.PropTypes.string,
568
+ description: PropTypes.string,
553
569
  /**
554
570
  * To specify the props for the connect button
555
571
  */
556
- buttonProps: propTypesExports.PropTypes.object,
572
+ buttonProps: PropTypes.object,
557
573
  /**
558
574
  * Handler function that is triggered when the connect button is clicked.
559
575
  */
560
- onConnect: propTypesExports.PropTypes.func
576
+ onConnect: PropTypes.func
561
577
  };
562
578
 
563
579
  ({
@@ -621,13 +637,13 @@ var Finish = withT(function (_ref) {
621
637
  secondaryButtonProps = _ref$secondaryButtonP === void 0 ? {} : _ref$secondaryButtonP,
622
638
  children = _ref.children;
623
639
  return /*#__PURE__*/React__default.createElement("div", {
624
- className: "neeto-ui-w-full mx-auto max-w-lg"
640
+ className: "mx-auto w-full max-w-3xl"
625
641
  }, /*#__PURE__*/React__default.createElement(SvgSuccess, null), /*#__PURE__*/React__default.createElement(Typography, {
626
- className: "neeto-ui-text-gray-800 mb-8 mt-4",
642
+ className: "mb-6 mt-4",
627
643
  style: "h2",
628
644
  weight: "semibold"
629
645
  }, title), children, /*#__PURE__*/React__default.createElement("div", {
630
- className: "flex w-full items-start space-x-2"
646
+ className: "flex w-full items-center gap-x-2"
631
647
  }, /*#__PURE__*/React__default.createElement(Button, _extends$1({
632
648
  onClick: onClick,
633
649
  label: t("neetoIntegrations.common.continue")
@@ -729,7 +745,7 @@ var Manage = withT(function (_ref) {
729
745
  className: "neeto-ui-border-gray-300 neeto-ui-rounded-xl mt-10 w-full space-y-4 border p-6"
730
746
  }, Icon && /*#__PURE__*/React__default.createElement(Icon, {
731
747
  className: "neeto-ui-text-gray-600",
732
- size: 60
748
+ size: 48
733
749
  }), /*#__PURE__*/React__default.createElement("div", {
734
750
  className: "space-y-2"
735
751
  }, /*#__PURE__*/React__default.createElement("div", {