@bigbinary/neeto-integrations-frontend 2.12.3 → 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 +49 -55
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +48 -54
- package/dist/index.js.map +1 -1
- package/package.json +13 -12
package/dist/index.js
CHANGED
|
@@ -6,21 +6,21 @@ export { default as WalkthroughModal } from '@bigbinary/neeto-molecules/Integrat
|
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import React__default, { useState, useEffect, useRef } from 'react';
|
|
8
8
|
import classnames from 'classnames';
|
|
9
|
-
import i18next, { t as t$1 } from 'i18next';
|
|
10
9
|
import { humanize, noop, isPresent, keysToSnakeCase, _findBy, isNotEmpty } from '@bigbinary/neeto-cist';
|
|
11
10
|
import { withT, useMutationWithInvalidation, withTitle, useQueryParams, useStateWithDependency } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
11
|
+
import { Check } from '@bigbinary/neeto-icons';
|
|
12
|
+
import { Typography, Button, Tooltip, Callout, Modal as Modal$1 } from '@bigbinary/neetoui';
|
|
13
|
+
import { Trans, useTranslation } from 'react-i18next';
|
|
14
|
+
import i18next, { t as t$1 } from 'i18next';
|
|
12
15
|
import { DEFAULT_STALE_TIME } from '@bigbinary/neeto-commons-frontend/constants';
|
|
13
16
|
import { useQuery } from 'react-query';
|
|
14
17
|
import axios from 'axios';
|
|
18
|
+
import PageLoader from '@bigbinary/neeto-molecules/PageLoader';
|
|
19
|
+
import { Form as Form$2, Input, Select, ActionBlock } from '@bigbinary/neetoui/formik';
|
|
15
20
|
import { buildUrl, getQueryParams } from '@bigbinary/neeto-commons-frontend/utils';
|
|
16
21
|
import { Daily as Daily$1, GoogleCalendar as GoogleCalendar$1, Google, Zoom as Zoom$1 } from '@bigbinary/neeto-icons/misc';
|
|
17
|
-
import { Typography, Button, Tooltip, Callout, Modal as Modal$1 } from '@bigbinary/neetoui';
|
|
18
|
-
import { Trans, useTranslation } from 'react-i18next';
|
|
19
|
-
import { Form as Form$2, Input, Select, ActionBlock } from '@bigbinary/neetoui/formik';
|
|
20
22
|
import { prop, equals, isEmpty } from 'ramda';
|
|
21
23
|
import * as yup from 'yup';
|
|
22
|
-
import PageLoader from '@bigbinary/neeto-molecules/PageLoader';
|
|
23
|
-
import { Check } from '@bigbinary/neeto-icons';
|
|
24
24
|
|
|
25
25
|
function _extends$1() {
|
|
26
26
|
_extends$1 = Object.assign ? Object.assign.bind() : function (target) {
|
|
@@ -87,7 +87,7 @@ var Manage$1 = withT(function (_ref) {
|
|
|
87
87
|
className: "neeto-ui-border-gray-300 neeto-ui-rounded-xl mt-10 w-full space-y-4 border p-6"
|
|
88
88
|
}, Icon && /*#__PURE__*/React__default.createElement(Icon, {
|
|
89
89
|
className: "neeto-ui-text-gray-600",
|
|
90
|
-
size:
|
|
90
|
+
size: 48
|
|
91
91
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
92
92
|
className: "space-y-2"
|
|
93
93
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -600,15 +600,14 @@ var GoogleCalendar = function GoogleCalendar(_ref) {
|
|
|
600
600
|
isOpen: true,
|
|
601
601
|
onClose: handleClose
|
|
602
602
|
}, activeTab === STEPS.connect && /*#__PURE__*/React__default.createElement("div", {
|
|
603
|
-
className: "w-full max-w-
|
|
603
|
+
className: "mx-auto w-full max-w-3xl"
|
|
604
604
|
}, /*#__PURE__*/React__default.createElement(GoogleCalendar$1, {
|
|
605
|
-
size:
|
|
605
|
+
size: 48
|
|
606
606
|
}), /*#__PURE__*/React__default.createElement(Typography, {
|
|
607
|
-
className: "
|
|
608
|
-
style: "h2"
|
|
609
|
-
weight: "semibold"
|
|
607
|
+
className: "mb-4 mt-2",
|
|
608
|
+
style: "h2"
|
|
610
609
|
}, t("neetoIntegrations.google.connect.title")), /*#__PURE__*/React__default.createElement("div", {
|
|
611
|
-
className: "flex flex-col items-start
|
|
610
|
+
className: "flex w-full flex-col items-start"
|
|
612
611
|
}, /*#__PURE__*/React__default.createElement(Callout, {
|
|
613
612
|
className: "block leading-5"
|
|
614
613
|
}, /*#__PURE__*/React__default.createElement(Trans, {
|
|
@@ -620,7 +619,7 @@ var GoogleCalendar = function GoogleCalendar(_ref) {
|
|
|
620
619
|
selectCheckbox: t("neetoIntegrations.google.connect.selectCheckbox")
|
|
621
620
|
}
|
|
622
621
|
})), permissionImage && /*#__PURE__*/React__default.createElement("div", {
|
|
623
|
-
className: "
|
|
622
|
+
className: "neeto-ui-border-gray-300 neeto-ui-rounded-md my-4 overflow-hidden border"
|
|
624
623
|
}, /*#__PURE__*/React__default.createElement("img", {
|
|
625
624
|
src: permissionImage
|
|
626
625
|
}))), /*#__PURE__*/React__default.createElement(Button, {
|
|
@@ -1048,7 +1047,7 @@ var Modal = function Modal(_ref) {
|
|
|
1048
1047
|
}, /*#__PURE__*/React__default.createElement(Modal$1.Header, null, /*#__PURE__*/React__default.createElement(Stepper, {
|
|
1049
1048
|
steps: steps
|
|
1050
1049
|
})), /*#__PURE__*/React__default.createElement(Modal$1.Body, {
|
|
1051
|
-
className: "neeto-ui-flex neeto-ui-justify-center neeto-ui-
|
|
1050
|
+
className: "neeto-ui-flex neeto-ui-justify-center neeto-ui-flex-grow"
|
|
1052
1051
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1053
1052
|
className: "neeto-ui-w-full py-10"
|
|
1054
1053
|
}, children)));
|
|
@@ -1150,23 +1149,23 @@ var Connect = withT(function (_ref) {
|
|
|
1150
1149
|
children = _ref.children,
|
|
1151
1150
|
secondaryButtonProps = _ref.secondaryButtonProps;
|
|
1152
1151
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
1153
|
-
className: "mx-auto w-full max-w-
|
|
1152
|
+
className: "mx-auto w-full max-w-3xl"
|
|
1153
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1154
|
+
className: "mb-6 flex flex-col gap-y-2"
|
|
1154
1155
|
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
1155
1156
|
size: 48
|
|
1156
|
-
}), /*#__PURE__*/React__default.createElement(
|
|
1157
|
-
className: "
|
|
1158
|
-
|
|
1159
|
-
|
|
1157
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
1158
|
+
className: "flex flex-col gap-y-1"
|
|
1159
|
+
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
1160
|
+
style: "h2"
|
|
1160
1161
|
}, title), /*#__PURE__*/React__default.createElement(Typography, {
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
}, description), children, /*#__PURE__*/React__default.createElement("div", {
|
|
1165
|
-
className: "flex w-full items-start space-x-4"
|
|
1162
|
+
style: "body2"
|
|
1163
|
+
}, description))), children, /*#__PURE__*/React__default.createElement("div", {
|
|
1164
|
+
className: "flex w-full items-center gap-x-3"
|
|
1166
1165
|
}, /*#__PURE__*/React__default.createElement(Button, _extends$1({
|
|
1167
1166
|
label: t("neetoIntegrations.common.connect"),
|
|
1168
1167
|
onClick: onConnect
|
|
1169
|
-
}, buttonProps)),
|
|
1168
|
+
}, buttonProps)), secondaryButtonProps && /*#__PURE__*/React__default.createElement(Button, _extends$1({
|
|
1170
1169
|
style: "secondary"
|
|
1171
1170
|
}, secondaryButtonProps))));
|
|
1172
1171
|
});
|
|
@@ -1174,23 +1173,23 @@ Connect.prototypes = {
|
|
|
1174
1173
|
/**
|
|
1175
1174
|
* To specify the Icon to be shown
|
|
1176
1175
|
*/
|
|
1177
|
-
Icon:
|
|
1176
|
+
Icon: PropTypes.node,
|
|
1178
1177
|
/**
|
|
1179
1178
|
* To specify the title of the connect component
|
|
1180
1179
|
*/
|
|
1181
|
-
title:
|
|
1180
|
+
title: PropTypes.string,
|
|
1182
1181
|
/**
|
|
1183
1182
|
* To specify the description for connect component
|
|
1184
1183
|
*/
|
|
1185
|
-
description:
|
|
1184
|
+
description: PropTypes.string,
|
|
1186
1185
|
/**
|
|
1187
1186
|
* To specify the props for the connect button
|
|
1188
1187
|
*/
|
|
1189
|
-
buttonProps:
|
|
1188
|
+
buttonProps: PropTypes.object,
|
|
1190
1189
|
/**
|
|
1191
1190
|
* Handler function that is triggered when the connect button is clicked.
|
|
1192
1191
|
*/
|
|
1193
|
-
onConnect:
|
|
1192
|
+
onConnect: PropTypes.func
|
|
1194
1193
|
};
|
|
1195
1194
|
|
|
1196
1195
|
var isYouTubeLink = function isYouTubeLink(videoUrl) {
|
|
@@ -1216,43 +1215,38 @@ var Demo = function Demo(_ref) {
|
|
|
1216
1215
|
var _useTranslation = useTranslation(),
|
|
1217
1216
|
t = _useTranslation.t;
|
|
1218
1217
|
var renderVideo = function renderVideo(videoUrl) {
|
|
1219
|
-
return isYouTubeLink(videoUrl) ? /*#__PURE__*/React__default.createElement("
|
|
1220
|
-
className: "intrinsic-container intrinsic-container-16x9"
|
|
1221
|
-
}, /*#__PURE__*/React__default.createElement("iframe", {
|
|
1218
|
+
return isYouTubeLink(videoUrl) ? /*#__PURE__*/React__default.createElement("iframe", {
|
|
1222
1219
|
allowFullScreen: true,
|
|
1223
|
-
className: "border-none",
|
|
1220
|
+
className: "aspect-video border-none",
|
|
1224
1221
|
frameBorder: "0",
|
|
1225
1222
|
id: "ytplayer",
|
|
1226
1223
|
src: videoUrl,
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
})
|
|
1224
|
+
title: renderText(iframeTitle, t("neetoIntegrations.demo.iFrameTitle")),
|
|
1225
|
+
type: "text/html"
|
|
1226
|
+
}) : /*#__PURE__*/React__default.createElement("video", {
|
|
1230
1227
|
autoPlay: true,
|
|
1231
1228
|
controls: true,
|
|
1232
1229
|
muted: true,
|
|
1233
|
-
className: "max-w-3xl cursor-pointer
|
|
1230
|
+
className: "neeto-ui-rounded-xl aspect-video w-full max-w-3xl cursor-pointer",
|
|
1234
1231
|
id: "walkthrough-video"
|
|
1235
1232
|
}, /*#__PURE__*/React__default.createElement("source", {
|
|
1236
1233
|
src: videoUrl
|
|
1237
1234
|
}));
|
|
1238
1235
|
};
|
|
1239
1236
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
1240
|
-
className: "mx-auto
|
|
1237
|
+
className: "mx-auto w-full max-w-3xl"
|
|
1238
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1239
|
+
className: "mb-6 flex flex-col gap-y-1"
|
|
1241
1240
|
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
1242
|
-
|
|
1243
|
-
style: "h2",
|
|
1244
|
-
weight: "semibold"
|
|
1241
|
+
style: "h2"
|
|
1245
1242
|
}, renderText(title, t("neetoIntegrations.demo.title"))), /*#__PURE__*/React__default.createElement(Typography, {
|
|
1246
|
-
style: "body2"
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
}, renderVideo(videoUrl)), /*#__PURE__*/React__default.createElement("div", {
|
|
1251
|
-
className: "flex w-full items-start space-x-2"
|
|
1252
|
-
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
1243
|
+
style: "body2"
|
|
1244
|
+
}, renderText(subtitle, t("neetoIntegrations.demo.subtitle")))), children, videoUrl && /*#__PURE__*/React__default.createElement("div", {
|
|
1245
|
+
className: "mb-8"
|
|
1246
|
+
}, renderVideo(videoUrl)), /*#__PURE__*/React__default.createElement(Button, {
|
|
1253
1247
|
label: t("neetoIntegrations.common.finish"),
|
|
1254
1248
|
onClick: onClose
|
|
1255
|
-
}))
|
|
1249
|
+
}));
|
|
1256
1250
|
};
|
|
1257
1251
|
Demo.prototypes = {
|
|
1258
1252
|
/**
|
|
@@ -1315,13 +1309,13 @@ var Finish = withT(function (_ref) {
|
|
|
1315
1309
|
secondaryButtonProps = _ref$secondaryButtonP === void 0 ? {} : _ref$secondaryButtonP,
|
|
1316
1310
|
children = _ref.children;
|
|
1317
1311
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
1318
|
-
className: "
|
|
1312
|
+
className: "mx-auto w-full max-w-3xl"
|
|
1319
1313
|
}, /*#__PURE__*/React__default.createElement(SvgSuccess, null), /*#__PURE__*/React__default.createElement(Typography, {
|
|
1320
|
-
className: "
|
|
1314
|
+
className: "mb-6 mt-4",
|
|
1321
1315
|
style: "h2",
|
|
1322
1316
|
weight: "semibold"
|
|
1323
1317
|
}, title), children, /*#__PURE__*/React__default.createElement("div", {
|
|
1324
|
-
className: "flex w-full items-
|
|
1318
|
+
className: "flex w-full items-center gap-x-2"
|
|
1325
1319
|
}, /*#__PURE__*/React__default.createElement(Button, _extends$1({
|
|
1326
1320
|
onClick: onClick,
|
|
1327
1321
|
label: t("neetoIntegrations.common.continue")
|