@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/Zoom.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 { Form as Form$2, Input } from '@bigbinary/neetoui/formik';
19
22
  import { buildUrl } from '@bigbinary/neeto-commons-frontend/utils';
20
23
  import 'ramda';
@@ -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
  },