@bigbinary/neeto-integrations-frontend 2.12.2 → 2.12.4
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 +1 -1
- package/dist/Daily.cjs.js +70 -70
- package/dist/Daily.cjs.js.map +1 -1
- package/dist/Daily.js +68 -68
- package/dist/Daily.js.map +1 -1
- package/dist/GoogleCalender.cjs.js +36 -37
- package/dist/GoogleCalender.cjs.js.map +1 -1
- package/dist/GoogleCalender.js +35 -36
- package/dist/GoogleCalender.js.map +1 -1
- package/dist/ZapierForm.cjs.js +3 -4
- package/dist/ZapierForm.cjs.js.map +1 -1
- package/dist/ZapierForm.js +3 -4
- package/dist/ZapierForm.js.map +1 -1
- package/dist/Zoom.cjs.js +24 -24
- package/dist/Zoom.cjs.js.map +1 -1
- package/dist/Zoom.js +24 -24
- package/dist/Zoom.js.map +1 -1
- package/dist/index.cjs.js +50 -55
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +49 -55
- package/dist/index.js.map +1 -1
- package/package.json +13 -12
package/dist/GoogleCalender.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { useState, useEffect } from 'react';
|
|
3
|
+
import { humanize, noop, isPresent, isNotEmpty } from '@bigbinary/neeto-cist';
|
|
4
|
+
import { buildUrl, getQueryParams } from '@bigbinary/neeto-commons-frontend/utils';
|
|
5
|
+
import { Daily as Daily$1, GoogleCalendar as GoogleCalendar$1, Google } from '@bigbinary/neeto-icons/misc';
|
|
6
|
+
import { Typography, Button, Tooltip, Modal as Modal$1, Callout } from '@bigbinary/neetoui';
|
|
7
|
+
import { Trans, useTranslation } from 'react-i18next';
|
|
3
8
|
import '@bigbinary/neeto-molecules/IntegrationCard';
|
|
4
9
|
import DisconnectAlert from '@bigbinary/neeto-molecules/IntegrationDisconnectAlert';
|
|
5
10
|
import WalkthroughModal from '@bigbinary/neeto-molecules/IntegrationWalkthroughModal';
|
|
6
11
|
import classnames from 'classnames';
|
|
7
|
-
import i18next, { t as t$1 } from 'i18next';
|
|
8
|
-
import { humanize, noop, isPresent, isNotEmpty } from '@bigbinary/neeto-cist';
|
|
9
12
|
import { withT, useMutationWithInvalidation, withTitle, useQueryParams } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
13
|
+
import { Check } from '@bigbinary/neeto-icons';
|
|
14
|
+
import i18next, { t as t$1 } from 'i18next';
|
|
10
15
|
import { DEFAULT_STALE_TIME } from '@bigbinary/neeto-commons-frontend/constants';
|
|
11
16
|
import { useQuery } from 'react-query';
|
|
12
17
|
import axios from 'axios';
|
|
13
|
-
import
|
|
14
|
-
import { Daily as Daily$1, GoogleCalendar as GoogleCalendar$1, Google } from '@bigbinary/neeto-icons/misc';
|
|
15
|
-
import { Typography, Button, Tooltip, Modal as Modal$1, Callout } from '@bigbinary/neetoui';
|
|
16
|
-
import { Trans, useTranslation } from 'react-i18next';
|
|
18
|
+
import PageLoader from '@bigbinary/neeto-molecules/PageLoader';
|
|
17
19
|
import { Form as Form$2, Input } from '@bigbinary/neetoui/formik';
|
|
18
20
|
import 'ramda';
|
|
19
21
|
import * as yup from 'yup';
|
|
20
|
-
import PageLoader from '@bigbinary/neeto-molecules/PageLoader';
|
|
21
|
-
import { Check } from '@bigbinary/neeto-icons';
|
|
22
22
|
|
|
23
23
|
function _typeof(o) {
|
|
24
24
|
"@babel/helpers - typeof";
|
|
@@ -197,7 +197,7 @@ var Manage$1 = withT(function (_ref) {
|
|
|
197
197
|
className: "neeto-ui-border-gray-300 neeto-ui-rounded-xl mt-10 w-full space-y-4 border p-6"
|
|
198
198
|
}, Icon && /*#__PURE__*/React__default.createElement(Icon, {
|
|
199
199
|
className: "neeto-ui-text-gray-600",
|
|
200
|
-
size:
|
|
200
|
+
size: 48
|
|
201
201
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
202
202
|
className: "space-y-2"
|
|
203
203
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -604,7 +604,7 @@ var Modal = function Modal(_ref) {
|
|
|
604
604
|
}, /*#__PURE__*/React__default.createElement(Modal$1.Header, null, /*#__PURE__*/React__default.createElement(Stepper, {
|
|
605
605
|
steps: steps
|
|
606
606
|
})), /*#__PURE__*/React__default.createElement(Modal$1.Body, {
|
|
607
|
-
className: "neeto-ui-flex neeto-ui-justify-center neeto-ui-
|
|
607
|
+
className: "neeto-ui-flex neeto-ui-justify-center neeto-ui-flex-grow"
|
|
608
608
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
609
609
|
className: "neeto-ui-w-full py-10"
|
|
610
610
|
}, children)));
|
|
@@ -706,23 +706,23 @@ var Connect = withT(function (_ref) {
|
|
|
706
706
|
children = _ref.children,
|
|
707
707
|
secondaryButtonProps = _ref.secondaryButtonProps;
|
|
708
708
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
709
|
-
className: "mx-auto w-full max-w-
|
|
709
|
+
className: "mx-auto w-full max-w-3xl"
|
|
710
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
711
|
+
className: "mb-6 flex flex-col gap-y-2"
|
|
710
712
|
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
711
713
|
size: 48
|
|
712
|
-
}), /*#__PURE__*/React__default.createElement(
|
|
713
|
-
className: "
|
|
714
|
-
|
|
715
|
-
|
|
714
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
715
|
+
className: "flex flex-col gap-y-1"
|
|
716
|
+
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
717
|
+
style: "h2"
|
|
716
718
|
}, title), /*#__PURE__*/React__default.createElement(Typography, {
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
}, description), children, /*#__PURE__*/React__default.createElement("div", {
|
|
721
|
-
className: "flex w-full items-start space-x-4"
|
|
719
|
+
style: "body2"
|
|
720
|
+
}, description))), children, /*#__PURE__*/React__default.createElement("div", {
|
|
721
|
+
className: "flex w-full items-center gap-x-3"
|
|
722
722
|
}, /*#__PURE__*/React__default.createElement(Button, _extends$1({
|
|
723
723
|
label: t("neetoIntegrations.common.connect"),
|
|
724
724
|
onClick: onConnect
|
|
725
|
-
}, buttonProps)),
|
|
725
|
+
}, buttonProps)), secondaryButtonProps && /*#__PURE__*/React__default.createElement(Button, _extends$1({
|
|
726
726
|
style: "secondary"
|
|
727
727
|
}, secondaryButtonProps))));
|
|
728
728
|
});
|
|
@@ -730,23 +730,23 @@ Connect.prototypes = {
|
|
|
730
730
|
/**
|
|
731
731
|
* To specify the Icon to be shown
|
|
732
732
|
*/
|
|
733
|
-
Icon:
|
|
733
|
+
Icon: PropTypes.node,
|
|
734
734
|
/**
|
|
735
735
|
* To specify the title of the connect component
|
|
736
736
|
*/
|
|
737
|
-
title:
|
|
737
|
+
title: PropTypes.string,
|
|
738
738
|
/**
|
|
739
739
|
* To specify the description for connect component
|
|
740
740
|
*/
|
|
741
|
-
description:
|
|
741
|
+
description: PropTypes.string,
|
|
742
742
|
/**
|
|
743
743
|
* To specify the props for the connect button
|
|
744
744
|
*/
|
|
745
|
-
buttonProps:
|
|
745
|
+
buttonProps: PropTypes.object,
|
|
746
746
|
/**
|
|
747
747
|
* Handler function that is triggered when the connect button is clicked.
|
|
748
748
|
*/
|
|
749
|
-
onConnect:
|
|
749
|
+
onConnect: PropTypes.func
|
|
750
750
|
};
|
|
751
751
|
|
|
752
752
|
({
|
|
@@ -810,13 +810,13 @@ var Finish = withT(function (_ref) {
|
|
|
810
810
|
secondaryButtonProps = _ref$secondaryButtonP === void 0 ? {} : _ref$secondaryButtonP,
|
|
811
811
|
children = _ref.children;
|
|
812
812
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
813
|
-
className: "
|
|
813
|
+
className: "mx-auto w-full max-w-3xl"
|
|
814
814
|
}, /*#__PURE__*/React__default.createElement(SvgSuccess, null), /*#__PURE__*/React__default.createElement(Typography, {
|
|
815
|
-
className: "
|
|
815
|
+
className: "mb-6 mt-4",
|
|
816
816
|
style: "h2",
|
|
817
817
|
weight: "semibold"
|
|
818
818
|
}, title), children, /*#__PURE__*/React__default.createElement("div", {
|
|
819
|
-
className: "flex w-full items-
|
|
819
|
+
className: "flex w-full items-center gap-x-2"
|
|
820
820
|
}, /*#__PURE__*/React__default.createElement(Button, _extends$1({
|
|
821
821
|
onClick: onClick,
|
|
822
822
|
label: t("neetoIntegrations.common.continue")
|
|
@@ -919,15 +919,14 @@ var GoogleCalendar = function GoogleCalendar(_ref) {
|
|
|
919
919
|
isOpen: true,
|
|
920
920
|
onClose: handleClose
|
|
921
921
|
}, activeTab === STEPS.connect && /*#__PURE__*/React__default.createElement("div", {
|
|
922
|
-
className: "w-full max-w-
|
|
922
|
+
className: "mx-auto w-full max-w-3xl"
|
|
923
923
|
}, /*#__PURE__*/React__default.createElement(GoogleCalendar$1, {
|
|
924
|
-
size:
|
|
924
|
+
size: 48
|
|
925
925
|
}), /*#__PURE__*/React__default.createElement(Typography, {
|
|
926
|
-
className: "
|
|
927
|
-
style: "h2"
|
|
928
|
-
weight: "semibold"
|
|
926
|
+
className: "mb-4 mt-2",
|
|
927
|
+
style: "h2"
|
|
929
928
|
}, t("neetoIntegrations.google.connect.title")), /*#__PURE__*/React__default.createElement("div", {
|
|
930
|
-
className: "flex flex-col items-start
|
|
929
|
+
className: "flex w-full flex-col items-start"
|
|
931
930
|
}, /*#__PURE__*/React__default.createElement(Callout, {
|
|
932
931
|
className: "block leading-5"
|
|
933
932
|
}, /*#__PURE__*/React__default.createElement(Trans, {
|
|
@@ -939,7 +938,7 @@ var GoogleCalendar = function GoogleCalendar(_ref) {
|
|
|
939
938
|
selectCheckbox: t("neetoIntegrations.google.connect.selectCheckbox")
|
|
940
939
|
}
|
|
941
940
|
})), permissionImage && /*#__PURE__*/React__default.createElement("div", {
|
|
942
|
-
className: "
|
|
941
|
+
className: "neeto-ui-border-gray-300 neeto-ui-rounded-md my-4 overflow-hidden border"
|
|
943
942
|
}, /*#__PURE__*/React__default.createElement("img", {
|
|
944
943
|
src: permissionImage
|
|
945
944
|
}))), /*#__PURE__*/React__default.createElement(Button, {
|