@bigbinary/neeto-integrations-frontend 2.12.4 → 2.12.6

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/index.js CHANGED
@@ -15,6 +15,9 @@ import i18next, { t as t$1 } from 'i18next';
15
15
  import { DEFAULT_STALE_TIME } from '@bigbinary/neeto-commons-frontend/constants';
16
16
  import { useQuery } from 'react-query';
17
17
  import axios from 'axios';
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 PageLoader from '@bigbinary/neeto-molecules/PageLoader';
19
22
  import { Form as Form$2, Input, Select, ActionBlock } from '@bigbinary/neetoui/formik';
20
23
  import { buildUrl, getQueryParams } from '@bigbinary/neeto-commons-frontend/utils';
@@ -363,7 +366,8 @@ var DAILY_CO_VALIDATION_SCHEMA = yup.object().shape({
363
366
  var Form = function Form(_ref) {
364
367
  var helpDocUrl = _ref.helpDocUrl,
365
368
  videoUrl = _ref.videoUrl,
366
- onConnect = _ref.onConnect;
369
+ onConnect = _ref.onConnect,
370
+ breadcrumbs = _ref.breadcrumbs;
367
371
  var _useTranslation = useTranslation(),
368
372
  t = _useTranslation.t;
369
373
  var _useState = useState(false),
@@ -383,7 +387,37 @@ var Form = function Form(_ref) {
383
387
  if (isConnecting) {
384
388
  return /*#__PURE__*/React__default.createElement(PageLoader, null);
385
389
  }
386
- return /*#__PURE__*/React__default.createElement("div", {
390
+ return /*#__PURE__*/React__default.createElement(Container, {
391
+ isHeaderFixed: true
392
+ }, /*#__PURE__*/React__default.createElement(Header, {
393
+ breadcrumbs: breadcrumbs,
394
+ title: /*#__PURE__*/React__default.createElement("span", {
395
+ className: "flex items-center gap-2"
396
+ }, t("neetoIntegrations.daily.connect.title"), /*#__PURE__*/React__default.createElement(HelpPopover, {
397
+ title: t("neetoIntegrations.daily.connect.title"),
398
+ description: /*#__PURE__*/React__default.createElement(Trans, {
399
+ i18nKey: "neetoIntegrations.daily.helpDoc",
400
+ components: {
401
+ externalLink: /*#__PURE__*/React__default.createElement(ExternalLink$1, {
402
+ "data-cy": "api-key-help-doc-link",
403
+ href: helpDocUrl,
404
+ rel: "noreferrer",
405
+ target: "_blank"
406
+ })
407
+ }
408
+ }),
409
+ helpLinkProps: {
410
+ label: /*#__PURE__*/React__default.createElement(Button, {
411
+ className: "mt-8",
412
+ label: t("neetoIntegrations.daily.walkthroughText"),
413
+ style: "link",
414
+ onClick: function onClick() {
415
+ return setIsDemoModalOpen(true);
416
+ }
417
+ })
418
+ }
419
+ }))
420
+ }), /*#__PURE__*/React__default.createElement("div", {
387
421
  className: "mx-auto w-full max-w-md"
388
422
  }, /*#__PURE__*/React__default.createElement(Form$2, {
389
423
  formikProps: {
@@ -394,32 +428,14 @@ var Form = function Form(_ref) {
394
428
  }, function (_ref2) {
395
429
  var dirty = _ref2.dirty;
396
430
  return /*#__PURE__*/React__default.createElement("div", {
397
- className: "mt-10 w-full space-y-5"
431
+ className: "mt-14 w-full space-y-5"
398
432
  }, /*#__PURE__*/React__default.createElement("div", {
399
- className: "block"
433
+ className: "block min-h-20"
400
434
  }, /*#__PURE__*/React__default.createElement(Input, {
401
435
  autoFocus: true,
402
436
  required: true,
403
437
  label: t("neetoIntegrations.daily.apiKey"),
404
- name: "apiKey",
405
- helpText: /*#__PURE__*/React__default.createElement(Trans, {
406
- i18nKey: "neetoIntegrations.daily.helpDoc",
407
- components: {
408
- externalLink: /*#__PURE__*/React__default.createElement(ExternalLink$1, {
409
- "data-cy": "api-key-help-doc-link",
410
- href: helpDocUrl,
411
- rel: "noreferrer",
412
- target: "_blank"
413
- })
414
- }
415
- })
416
- }), /*#__PURE__*/React__default.createElement(Button, {
417
- className: "mt-8",
418
- label: t("neetoIntegrations.daily.walkthroughText"),
419
- style: "link",
420
- onClick: function onClick() {
421
- return setIsDemoModalOpen(true);
422
- }
438
+ name: "apiKey"
423
439
  })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Button, {
424
440
  disabled: isConnecting || !dirty,
425
441
  label: t("neetoIntegrations.common.connect"),
@@ -432,7 +448,7 @@ var Form = function Form(_ref) {
432
448
  onClose: function onClose() {
433
449
  return setIsDemoModalOpen(false);
434
450
  }
435
- }));
451
+ })));
436
452
  };
437
453
  var Form$1 = withTitle(Form, i18next.t("neetoIntegrations.browserTitles.integrations.dailyco"));
438
454
 
@@ -488,7 +504,7 @@ var Manage = function Manage(_ref) {
488
504
  apiKey: apiKey
489
505
  }
490
506
  }) : description,
491
- title: isConnected ? t("neetoIntegrations.daily.connected") : t("neetoIntegrations.daily.connect"),
507
+ title: isConnected ? t("neetoIntegrations.daily.connected") : t("neetoIntegrations.daily.connect.account"),
492
508
  onClose: function onClose() {
493
509
  return setIsDisconnectAlertOpen(false);
494
510
  },