@bigbinary/neeto-integrations-frontend 2.10.5 → 2.11.0
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.cjs.js +30 -14
- package/dist/Daily.cjs.js.map +1 -1
- package/dist/Daily.js +29 -13
- package/dist/Daily.js.map +1 -1
- package/dist/GoogleCalender.cjs.js +30 -14
- package/dist/GoogleCalender.cjs.js.map +1 -1
- package/dist/GoogleCalender.js +29 -13
- package/dist/GoogleCalender.js.map +1 -1
- package/dist/Zoom.cjs.js +30 -14
- package/dist/Zoom.cjs.js.map +1 -1
- package/dist/Zoom.js +29 -13
- package/dist/Zoom.js.map +1 -1
- package/dist/index.cjs.js +30 -14
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +29 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/types.d.ts +1 -0
package/dist/Zoom.js
CHANGED
|
@@ -4,6 +4,7 @@ import { isPresent, noop, isNotEmpty, humanize } from '@bigbinary/neeto-cist';
|
|
|
4
4
|
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
|
+
import classnames from 'classnames';
|
|
7
8
|
import '@bigbinary/neeto-molecules/IntegrationCard';
|
|
8
9
|
import DisconnectAlert from '@bigbinary/neeto-molecules/IntegrationDisconnectAlert';
|
|
9
10
|
import WalkthroughModal from '@bigbinary/neeto-molecules/IntegrationWalkthroughModal';
|
|
@@ -17,7 +18,6 @@ import { Button, Typography } from '@bigbinary/neetoui';
|
|
|
17
18
|
import { Form as Form$2, Input } from '@bigbinary/neetoui/formik';
|
|
18
19
|
import 'ramda';
|
|
19
20
|
import * as yup from 'yup';
|
|
20
|
-
import classnames from 'classnames';
|
|
21
21
|
import { Check } from '@bigbinary/neeto-icons';
|
|
22
22
|
|
|
23
23
|
function _arrayWithHoles(arr) {
|
|
@@ -514,7 +514,8 @@ var Connect = withT(function (_ref) {
|
|
|
514
514
|
buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
|
|
515
515
|
_ref$onConnect = _ref.onConnect,
|
|
516
516
|
onConnect = _ref$onConnect === void 0 ? noop : _ref$onConnect,
|
|
517
|
-
children = _ref.children
|
|
517
|
+
children = _ref.children,
|
|
518
|
+
secondaryButtonProps = _ref.secondaryButtonProps;
|
|
518
519
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
519
520
|
className: "mx-auto w-full max-w-lg"
|
|
520
521
|
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
@@ -527,10 +528,14 @@ var Connect = withT(function (_ref) {
|
|
|
527
528
|
className: "neeto-ui-text-gray-700 mb-8",
|
|
528
529
|
style: "body1",
|
|
529
530
|
weight: "normal"
|
|
530
|
-
}, description), children, /*#__PURE__*/React__default.createElement(
|
|
531
|
+
}, description), children, /*#__PURE__*/React__default.createElement("div", {
|
|
532
|
+
className: "flex w-full items-start space-x-4"
|
|
533
|
+
}, /*#__PURE__*/React__default.createElement(Button, _extends$1({
|
|
531
534
|
label: t("neetoIntegrations.common.connect"),
|
|
532
535
|
onClick: onConnect
|
|
533
|
-
}, buttonProps)))
|
|
536
|
+
}, buttonProps)), isNotEmpty(secondaryButtonProps) && /*#__PURE__*/React__default.createElement(Button, _extends$1({
|
|
537
|
+
style: "secondary"
|
|
538
|
+
}, secondaryButtonProps))));
|
|
534
539
|
});
|
|
535
540
|
Connect.prototypes = {
|
|
536
541
|
/**
|
|
@@ -688,6 +693,8 @@ var Manage = withT(function (_ref) {
|
|
|
688
693
|
setIsDisconnectAlertOpen = _ref$setIsDisconnectA === void 0 ? noop : _ref$setIsDisconnectA,
|
|
689
694
|
_ref$isDisconnecting = _ref.isDisconnecting,
|
|
690
695
|
isDisconnecting = _ref$isDisconnecting === void 0 ? false : _ref$isDisconnecting,
|
|
696
|
+
_ref$onConnect = _ref.onConnect,
|
|
697
|
+
onConnect = _ref$onConnect === void 0 ? undefined : _ref$onConnect,
|
|
691
698
|
_ref$onDisconnect = _ref.onDisconnect,
|
|
692
699
|
onDisconnect = _ref$onDisconnect === void 0 ? undefined : _ref$onDisconnect,
|
|
693
700
|
_ref$onClose = _ref.onClose,
|
|
@@ -704,10 +711,14 @@ var Manage = withT(function (_ref) {
|
|
|
704
711
|
helpDocUrl = _ref$helpDocUrl === void 0 ? "" : _ref$helpDocUrl,
|
|
705
712
|
_ref$managePath = _ref.managePath,
|
|
706
713
|
managePath = _ref$managePath === void 0 ? "" : _ref$managePath,
|
|
714
|
+
_ref$manageUrl = _ref.manageUrl,
|
|
715
|
+
manageUrl = _ref$manageUrl === void 0 ? "" : _ref$manageUrl,
|
|
707
716
|
_ref$integrationName = _ref.integrationName,
|
|
708
717
|
integrationName = _ref$integrationName === void 0 ? "" : _ref$integrationName,
|
|
709
718
|
_ref$disconnectMessag = _ref.disconnectMessage,
|
|
710
719
|
disconnectMessage = _ref$disconnectMessag === void 0 ? "" : _ref$disconnectMessag,
|
|
720
|
+
_ref$disconnectTitle = _ref.disconnectTitle,
|
|
721
|
+
disconnectTitle = _ref$disconnectTitle === void 0 ? "" : _ref$disconnectTitle,
|
|
711
722
|
_ref$isConnectDisable = _ref.isConnectDisabled,
|
|
712
723
|
isConnectDisabled = _ref$isConnectDisable === void 0 ? false : _ref$isConnectDisable,
|
|
713
724
|
_ref$connectTooltipPr = _ref.connectTooltipProps,
|
|
@@ -732,11 +743,13 @@ var Manage = withT(function (_ref) {
|
|
|
732
743
|
}, /*#__PURE__*/React__default.createElement(Check, {
|
|
733
744
|
size: 24
|
|
734
745
|
}))), /*#__PURE__*/React__default.createElement(Typography, {
|
|
735
|
-
className: "neeto-ui-text-gray-800 break-all",
|
|
736
746
|
style: "body1",
|
|
737
|
-
weight: "normal"
|
|
747
|
+
weight: "normal",
|
|
748
|
+
className: classnames("neeto-ui-text-gray-800", {
|
|
749
|
+
"break-all": isConnected
|
|
750
|
+
})
|
|
738
751
|
}, description), helpDocUrl && /*#__PURE__*/React__default.createElement(Typography, {
|
|
739
|
-
className: "neeto-ui-text-gray-800
|
|
752
|
+
className: "neeto-ui-text-gray-800",
|
|
740
753
|
style: "body2",
|
|
741
754
|
weight: "normal"
|
|
742
755
|
}, /*#__PURE__*/React__default.createElement(Trans, {
|
|
@@ -753,8 +766,10 @@ var Manage = withT(function (_ref) {
|
|
|
753
766
|
}
|
|
754
767
|
}))), isConnected ? /*#__PURE__*/React__default.createElement("div", {
|
|
755
768
|
className: "space-x-2"
|
|
756
|
-
}, managePath && /*#__PURE__*/React__default.createElement(Button, {
|
|
769
|
+
}, (managePath || manageUrl) && /*#__PURE__*/React__default.createElement(Button, {
|
|
757
770
|
"data-cy": "manage-button",
|
|
771
|
+
href: manageUrl,
|
|
772
|
+
target: manageUrl ? "_blank" : "_self",
|
|
758
773
|
to: managePath,
|
|
759
774
|
label: t("neetoIntegrations.common.manageIntegration", {
|
|
760
775
|
integration: integrationName || humanize(integration)
|
|
@@ -768,7 +783,7 @@ var Manage = withT(function (_ref) {
|
|
|
768
783
|
onClick: function onClick() {
|
|
769
784
|
return setIsDisconnectAlertOpen(true);
|
|
770
785
|
}
|
|
771
|
-
})) : /*#__PURE__*/React__default.createElement(Button, {
|
|
786
|
+
})) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, (connectPath || connectUrl || onConnect) && /*#__PURE__*/React__default.createElement(Button, {
|
|
772
787
|
"data-cy": "connect-button",
|
|
773
788
|
disabled: isConnectDisabled,
|
|
774
789
|
href: connectUrl,
|
|
@@ -776,14 +791,15 @@ var Manage = withT(function (_ref) {
|
|
|
776
791
|
tooltipProps: connectTooltipProps,
|
|
777
792
|
label: t("neetoIntegrations.common.connectIntegration", {
|
|
778
793
|
integration: integrationName || humanize(integration)
|
|
779
|
-
})
|
|
780
|
-
|
|
794
|
+
}),
|
|
795
|
+
onClick: onConnect
|
|
796
|
+
})))), /*#__PURE__*/React__default.createElement(DisconnectAlert, {
|
|
781
797
|
isDisconnecting: isDisconnecting,
|
|
782
798
|
onClose: onClose,
|
|
783
799
|
onDisconnect: onDisconnect,
|
|
784
800
|
isOpen: isDisconnectAlertOpen,
|
|
785
|
-
|
|
786
|
-
|
|
801
|
+
message: disconnectMessage || t("settings.integrations.".concat(integration, ".disconnect.message")),
|
|
802
|
+
title: disconnectTitle || t("settings.integrations.".concat(integration, ".disconnect.title"))
|
|
787
803
|
}));
|
|
788
804
|
});
|
|
789
805
|
|