@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/README.md +4 -0
- package/app/javascript/src/translations/en.json +5 -2
- package/dist/Daily.cjs.js +114 -95
- package/dist/Daily.cjs.js.map +1 -1
- package/dist/Daily.js +109 -93
- package/dist/Daily.js.map +1 -1
- package/dist/GoogleCalender.cjs.js +80 -62
- package/dist/GoogleCalender.cjs.js.map +1 -1
- package/dist/GoogleCalender.js +76 -61
- package/dist/GoogleCalender.js.map +1 -1
- package/dist/ZapierForm.cjs.js +7 -11
- package/dist/ZapierForm.cjs.js.map +1 -1
- package/dist/ZapierForm.js +7 -12
- package/dist/ZapierForm.js.map +1 -1
- package/dist/Zoom.cjs.js +68 -49
- package/dist/Zoom.cjs.js.map +1 -1
- package/dist/Zoom.js +65 -49
- package/dist/Zoom.js.map +1 -1
- package/dist/index.cjs.js +93 -80
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +89 -79
- package/dist/index.js.map +1 -1
- package/package.json +13 -12
package/dist/Daily.js
CHANGED
|
@@ -6,19 +6,22 @@ import { useMutationWithInvalidation, withT, withTitle, useQueryParams } from '@
|
|
|
6
6
|
import { DEFAULT_STALE_TIME } from '@bigbinary/neeto-commons-frontend/constants';
|
|
7
7
|
import { useQuery } from 'react-query';
|
|
8
8
|
import axios from 'axios';
|
|
9
|
+
import Container from '@bigbinary/neeto-molecules/Container';
|
|
10
|
+
import Header from '@bigbinary/neeto-molecules/Header';
|
|
11
|
+
import HelpPopover from '@bigbinary/neeto-molecules/HelpPopover';
|
|
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';
|
|
15
|
+
import { Trans, useTranslation } from 'react-i18next';
|
|
16
|
+
import classnames from 'classnames';
|
|
9
17
|
import '@bigbinary/neeto-molecules/IntegrationCard';
|
|
10
18
|
import DisconnectAlert from '@bigbinary/neeto-molecules/IntegrationDisconnectAlert';
|
|
11
19
|
import WalkthroughModal from '@bigbinary/neeto-molecules/IntegrationWalkthroughModal';
|
|
12
|
-
import
|
|
20
|
+
import { Check } from '@bigbinary/neeto-icons';
|
|
13
21
|
import { buildUrl } from '@bigbinary/neeto-commons-frontend/utils';
|
|
14
22
|
import { Daily as Daily$1 } from '@bigbinary/neeto-icons/misc';
|
|
15
|
-
import PageLoader from '@bigbinary/neeto-molecules/PageLoader';
|
|
16
|
-
import { Trans, useTranslation } from 'react-i18next';
|
|
17
|
-
import { Typography, Button, Tooltip } from '@bigbinary/neetoui';
|
|
18
|
-
import { Form as Form$2, Input } from '@bigbinary/neetoui/formik';
|
|
19
23
|
import 'ramda';
|
|
20
24
|
import * as yup from 'yup';
|
|
21
|
-
import { Check } from '@bigbinary/neeto-icons';
|
|
22
25
|
|
|
23
26
|
function _typeof(o) {
|
|
24
27
|
"@babel/helpers - typeof";
|
|
@@ -179,6 +182,48 @@ function _extends$1() {
|
|
|
179
182
|
return _extends$1.apply(this, arguments);
|
|
180
183
|
}
|
|
181
184
|
|
|
185
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
186
|
+
if (source == null) return {};
|
|
187
|
+
var target = {};
|
|
188
|
+
var sourceKeys = Object.keys(source);
|
|
189
|
+
var key, i;
|
|
190
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
191
|
+
key = sourceKeys[i];
|
|
192
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
193
|
+
target[key] = source[key];
|
|
194
|
+
}
|
|
195
|
+
return target;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
function _objectWithoutProperties(source, excluded) {
|
|
199
|
+
if (source == null) return {};
|
|
200
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
201
|
+
var key, i;
|
|
202
|
+
if (Object.getOwnPropertySymbols) {
|
|
203
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
204
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
205
|
+
key = sourceSymbolKeys[i];
|
|
206
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
207
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
208
|
+
target[key] = source[key];
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
return target;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
var _excluded = ["className", "children"];
|
|
215
|
+
var ExternalLink = function ExternalLink(_ref) {
|
|
216
|
+
var _ref$className = _ref.className,
|
|
217
|
+
className = _ref$className === void 0 ? "" : _ref$className,
|
|
218
|
+
_ref$children = _ref.children,
|
|
219
|
+
children = _ref$children === void 0 ? null : _ref$children,
|
|
220
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
221
|
+
return /*#__PURE__*/React__default.createElement("a", _extends$1({
|
|
222
|
+
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);
|
|
224
|
+
};
|
|
225
|
+
var ExternalLink$1 = /*#__PURE__*/React__default.memo(ExternalLink);
|
|
226
|
+
|
|
182
227
|
var Manage$1 = withT(function (_ref) {
|
|
183
228
|
var t = _ref.t,
|
|
184
229
|
_ref$title = _ref.title,
|
|
@@ -229,7 +274,7 @@ var Manage$1 = withT(function (_ref) {
|
|
|
229
274
|
className: "neeto-ui-border-gray-300 neeto-ui-rounded-xl mt-10 w-full space-y-4 border p-6"
|
|
230
275
|
}, Icon && /*#__PURE__*/React__default.createElement(Icon, {
|
|
231
276
|
className: "neeto-ui-text-gray-600",
|
|
232
|
-
size:
|
|
277
|
+
size: 48
|
|
233
278
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
234
279
|
className: "space-y-2"
|
|
235
280
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -416,23 +461,23 @@ var Connect = withT(function (_ref) {
|
|
|
416
461
|
children = _ref.children,
|
|
417
462
|
secondaryButtonProps = _ref.secondaryButtonProps;
|
|
418
463
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
419
|
-
className: "mx-auto w-full max-w-
|
|
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"
|
|
420
467
|
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
421
468
|
size: 48
|
|
422
|
-
}), /*#__PURE__*/React__default.createElement(
|
|
423
|
-
className: "
|
|
424
|
-
|
|
425
|
-
|
|
469
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
470
|
+
className: "flex flex-col gap-y-1"
|
|
471
|
+
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
472
|
+
style: "h2"
|
|
426
473
|
}, title), /*#__PURE__*/React__default.createElement(Typography, {
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
}, description), children, /*#__PURE__*/React__default.createElement("div", {
|
|
431
|
-
className: "flex w-full items-start space-x-4"
|
|
474
|
+
style: "body2"
|
|
475
|
+
}, description))), children, /*#__PURE__*/React__default.createElement("div", {
|
|
476
|
+
className: "flex w-full items-center gap-x-3"
|
|
432
477
|
}, /*#__PURE__*/React__default.createElement(Button, _extends$1({
|
|
433
478
|
label: t("neetoIntegrations.common.connect"),
|
|
434
479
|
onClick: onConnect
|
|
435
|
-
}, buttonProps)),
|
|
480
|
+
}, buttonProps)), secondaryButtonProps && /*#__PURE__*/React__default.createElement(Button, _extends$1({
|
|
436
481
|
style: "secondary"
|
|
437
482
|
}, secondaryButtonProps))));
|
|
438
483
|
});
|
|
@@ -440,23 +485,23 @@ Connect.prototypes = {
|
|
|
440
485
|
/**
|
|
441
486
|
* To specify the Icon to be shown
|
|
442
487
|
*/
|
|
443
|
-
Icon:
|
|
488
|
+
Icon: PropTypes.node,
|
|
444
489
|
/**
|
|
445
490
|
* To specify the title of the connect component
|
|
446
491
|
*/
|
|
447
|
-
title:
|
|
492
|
+
title: PropTypes.string,
|
|
448
493
|
/**
|
|
449
494
|
* To specify the description for connect component
|
|
450
495
|
*/
|
|
451
|
-
description:
|
|
496
|
+
description: PropTypes.string,
|
|
452
497
|
/**
|
|
453
498
|
* To specify the props for the connect button
|
|
454
499
|
*/
|
|
455
|
-
buttonProps:
|
|
500
|
+
buttonProps: PropTypes.object,
|
|
456
501
|
/**
|
|
457
502
|
* Handler function that is triggered when the connect button is clicked.
|
|
458
503
|
*/
|
|
459
|
-
onConnect:
|
|
504
|
+
onConnect: PropTypes.func
|
|
460
505
|
};
|
|
461
506
|
|
|
462
507
|
({
|
|
@@ -520,13 +565,13 @@ var Finish = withT(function (_ref) {
|
|
|
520
565
|
secondaryButtonProps = _ref$secondaryButtonP === void 0 ? {} : _ref$secondaryButtonP,
|
|
521
566
|
children = _ref.children;
|
|
522
567
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
523
|
-
className: "
|
|
568
|
+
className: "mx-auto w-full max-w-3xl"
|
|
524
569
|
}, /*#__PURE__*/React__default.createElement(SvgSuccess, null), /*#__PURE__*/React__default.createElement(Typography, {
|
|
525
|
-
className: "
|
|
570
|
+
className: "mb-6 mt-4",
|
|
526
571
|
style: "h2",
|
|
527
572
|
weight: "semibold"
|
|
528
573
|
}, title), children, /*#__PURE__*/React__default.createElement("div", {
|
|
529
|
-
className: "flex w-full items-
|
|
574
|
+
className: "flex w-full items-center gap-x-2"
|
|
530
575
|
}, /*#__PURE__*/React__default.createElement(Button, _extends$1({
|
|
531
576
|
onClick: onClick,
|
|
532
577
|
label: t("neetoIntegrations.common.continue")
|
|
@@ -578,48 +623,6 @@ function n(n, r) {
|
|
|
578
623
|
var css = ".intrinsic-container{height:0;overflow:hidden;position:relative}.intrinsic-container-16x9{padding-bottom:56.25%}.intrinsic-container-4x3{padding-bottom:75%}.intrinsic-container iframe{height:100%;left:0;position:absolute;top:0;width:100%}";
|
|
579
624
|
n(css,{});
|
|
580
625
|
|
|
581
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
582
|
-
if (source == null) return {};
|
|
583
|
-
var target = {};
|
|
584
|
-
var sourceKeys = Object.keys(source);
|
|
585
|
-
var key, i;
|
|
586
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
587
|
-
key = sourceKeys[i];
|
|
588
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
589
|
-
target[key] = source[key];
|
|
590
|
-
}
|
|
591
|
-
return target;
|
|
592
|
-
}
|
|
593
|
-
|
|
594
|
-
function _objectWithoutProperties(source, excluded) {
|
|
595
|
-
if (source == null) return {};
|
|
596
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
597
|
-
var key, i;
|
|
598
|
-
if (Object.getOwnPropertySymbols) {
|
|
599
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
600
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
601
|
-
key = sourceSymbolKeys[i];
|
|
602
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
603
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
604
|
-
target[key] = source[key];
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
return target;
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
var _excluded = ["className", "children"];
|
|
611
|
-
var ExternalLink = function ExternalLink(_ref) {
|
|
612
|
-
var _ref$className = _ref.className,
|
|
613
|
-
className = _ref$className === void 0 ? "" : _ref$className,
|
|
614
|
-
_ref$children = _ref.children,
|
|
615
|
-
children = _ref$children === void 0 ? null : _ref$children,
|
|
616
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
617
|
-
return /*#__PURE__*/React__default.createElement("a", _extends$1({
|
|
618
|
-
className: classnames(["neeto-ui-text-primary-800 hover:neeto-ui-text-primary-800 visited:neeto-ui-text-primary-600 font-medium", className])
|
|
619
|
-
}, props), children);
|
|
620
|
-
};
|
|
621
|
-
var ExternalLink$1 = /*#__PURE__*/React__default.memo(ExternalLink);
|
|
622
|
-
|
|
623
626
|
var MANAGE_DAILY_CO_FORM_INITIAL_VALUES = {
|
|
624
627
|
apiKey: ""
|
|
625
628
|
};
|
|
@@ -632,7 +635,8 @@ var DAILY_CO_VALIDATION_SCHEMA = yup.object().shape({
|
|
|
632
635
|
var Form = function Form(_ref) {
|
|
633
636
|
var helpDocUrl = _ref.helpDocUrl,
|
|
634
637
|
videoUrl = _ref.videoUrl,
|
|
635
|
-
onConnect = _ref.onConnect
|
|
638
|
+
onConnect = _ref.onConnect,
|
|
639
|
+
breadcrumbs = _ref.breadcrumbs;
|
|
636
640
|
var _useTranslation = useTranslation(),
|
|
637
641
|
t = _useTranslation.t;
|
|
638
642
|
var _useState = useState(false),
|
|
@@ -652,7 +656,37 @@ var Form = function Form(_ref) {
|
|
|
652
656
|
if (isConnecting) {
|
|
653
657
|
return /*#__PURE__*/React__default.createElement(PageLoader, null);
|
|
654
658
|
}
|
|
655
|
-
return /*#__PURE__*/React__default.createElement(
|
|
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);
|
|
685
|
+
}
|
|
686
|
+
})
|
|
687
|
+
}
|
|
688
|
+
}))
|
|
689
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
656
690
|
className: "mx-auto w-full max-w-md"
|
|
657
691
|
}, /*#__PURE__*/React__default.createElement(Form$2, {
|
|
658
692
|
formikProps: {
|
|
@@ -663,32 +697,14 @@ var Form = function Form(_ref) {
|
|
|
663
697
|
}, function (_ref2) {
|
|
664
698
|
var dirty = _ref2.dirty;
|
|
665
699
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
666
|
-
className: "mt-
|
|
700
|
+
className: "mt-14 w-full space-y-5"
|
|
667
701
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
668
|
-
className: "block"
|
|
702
|
+
className: "block min-h-20"
|
|
669
703
|
}, /*#__PURE__*/React__default.createElement(Input, {
|
|
670
704
|
autoFocus: true,
|
|
671
705
|
required: true,
|
|
672
706
|
label: t("neetoIntegrations.daily.apiKey"),
|
|
673
|
-
name: "apiKey"
|
|
674
|
-
helpText: /*#__PURE__*/React__default.createElement(Trans, {
|
|
675
|
-
i18nKey: "neetoIntegrations.daily.helpDoc",
|
|
676
|
-
components: {
|
|
677
|
-
externalLink: /*#__PURE__*/React__default.createElement(ExternalLink$1, {
|
|
678
|
-
"data-cy": "api-key-help-doc-link",
|
|
679
|
-
href: helpDocUrl,
|
|
680
|
-
rel: "noreferrer",
|
|
681
|
-
target: "_blank"
|
|
682
|
-
})
|
|
683
|
-
}
|
|
684
|
-
})
|
|
685
|
-
}), /*#__PURE__*/React__default.createElement(Button, {
|
|
686
|
-
className: "mt-8",
|
|
687
|
-
label: t("neetoIntegrations.daily.walkthroughText"),
|
|
688
|
-
style: "link",
|
|
689
|
-
onClick: function onClick() {
|
|
690
|
-
return setIsDemoModalOpen(true);
|
|
691
|
-
}
|
|
707
|
+
name: "apiKey"
|
|
692
708
|
})), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Button, {
|
|
693
709
|
disabled: isConnecting || !dirty,
|
|
694
710
|
label: t("neetoIntegrations.common.connect"),
|
|
@@ -701,7 +717,7 @@ var Form = function Form(_ref) {
|
|
|
701
717
|
onClose: function onClose() {
|
|
702
718
|
return setIsDemoModalOpen(false);
|
|
703
719
|
}
|
|
704
|
-
}));
|
|
720
|
+
})));
|
|
705
721
|
};
|
|
706
722
|
var Form$1 = withTitle(Form, i18next.t("neetoIntegrations.browserTitles.integrations.dailyco"));
|
|
707
723
|
|
|
@@ -757,7 +773,7 @@ var Manage = function Manage(_ref) {
|
|
|
757
773
|
apiKey: apiKey
|
|
758
774
|
}
|
|
759
775
|
}) : description,
|
|
760
|
-
title: isConnected ? t("neetoIntegrations.daily.connected") : t("neetoIntegrations.daily.connect"),
|
|
776
|
+
title: isConnected ? t("neetoIntegrations.daily.connected") : t("neetoIntegrations.daily.connect.account"),
|
|
761
777
|
onClose: function onClose() {
|
|
762
778
|
return setIsDisconnectAlertOpen(false);
|
|
763
779
|
},
|