@bigbinary/neeto-integrations-frontend 2.10.6 → 2.12.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 +27 -21
- package/dist/Daily.cjs.js.map +1 -1
- package/dist/Daily.js +28 -22
- package/dist/Daily.js.map +1 -1
- package/dist/GoogleCalender.cjs.js +27 -21
- package/dist/GoogleCalender.cjs.js.map +1 -1
- package/dist/GoogleCalender.js +28 -22
- package/dist/GoogleCalender.js.map +1 -1
- package/dist/Zoom.cjs.js +27 -21
- package/dist/Zoom.cjs.js.map +1 -1
- package/dist/Zoom.js +28 -22
- package/dist/Zoom.js.map +1 -1
- package/dist/index.cjs.js +27 -21
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +28 -22
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/types.d.ts +1 -0
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import { useQuery } from 'react-query';
|
|
|
14
14
|
import axios from 'axios';
|
|
15
15
|
import { buildUrl, getQueryParams } from '@bigbinary/neeto-commons-frontend/utils';
|
|
16
16
|
import { Daily as Daily$1, GoogleCalendar as GoogleCalendar$1, Google, Zoom as Zoom$1 } from '@bigbinary/neeto-icons/misc';
|
|
17
|
-
import { Typography, Button, Callout, Modal as Modal$1 } from '@bigbinary/neetoui';
|
|
17
|
+
import { Typography, Button, Tooltip, Callout, Modal as Modal$1 } from '@bigbinary/neetoui';
|
|
18
18
|
import { Trans, useTranslation } from 'react-i18next';
|
|
19
19
|
import { Form as Form$2, Input, Select, ActionBlock } from '@bigbinary/neetoui/formik';
|
|
20
20
|
import { prop, equals, isEmpty } from 'ramda';
|
|
@@ -22,6 +22,21 @@ import * as yup from 'yup';
|
|
|
22
22
|
import PageLoader from '@bigbinary/neeto-molecules/PageLoader';
|
|
23
23
|
import { Check } from '@bigbinary/neeto-icons';
|
|
24
24
|
|
|
25
|
+
function _extends$1() {
|
|
26
|
+
_extends$1 = Object.assign ? Object.assign.bind() : function (target) {
|
|
27
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
28
|
+
var source = arguments[i];
|
|
29
|
+
for (var key in source) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
31
|
+
target[key] = source[key];
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return target;
|
|
36
|
+
};
|
|
37
|
+
return _extends$1.apply(this, arguments);
|
|
38
|
+
}
|
|
39
|
+
|
|
25
40
|
var Manage$1 = withT(function (_ref) {
|
|
26
41
|
var t = _ref.t,
|
|
27
42
|
_ref$title = _ref.title,
|
|
@@ -126,17 +141,18 @@ var Manage$1 = withT(function (_ref) {
|
|
|
126
141
|
onClick: function onClick() {
|
|
127
142
|
return setIsDisconnectAlertOpen(true);
|
|
128
143
|
}
|
|
129
|
-
})) : /*#__PURE__*/React__default.createElement(
|
|
144
|
+
})) : /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Tooltip, _extends$1({
|
|
145
|
+
disabled: !isConnectDisabled
|
|
146
|
+
}, connectTooltipProps), /*#__PURE__*/React__default.createElement("span", null, (connectPath || connectUrl || onConnect) && /*#__PURE__*/React__default.createElement(Button, {
|
|
130
147
|
"data-cy": "connect-button",
|
|
131
148
|
disabled: isConnectDisabled,
|
|
132
149
|
href: connectUrl,
|
|
133
150
|
to: connectPath,
|
|
134
|
-
tooltipProps: connectTooltipProps,
|
|
135
151
|
label: t("neetoIntegrations.common.connectIntegration", {
|
|
136
152
|
integration: integrationName || humanize(integration)
|
|
137
153
|
}),
|
|
138
154
|
onClick: onConnect
|
|
139
|
-
})))), /*#__PURE__*/React__default.createElement(DisconnectAlert, {
|
|
155
|
+
})))))), /*#__PURE__*/React__default.createElement(DisconnectAlert, {
|
|
140
156
|
isDisconnecting: isDisconnecting,
|
|
141
157
|
onClose: onClose,
|
|
142
158
|
onDisconnect: onDisconnect,
|
|
@@ -293,21 +309,6 @@ function _slicedToArray(arr, i) {
|
|
|
293
309
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
294
310
|
}
|
|
295
311
|
|
|
296
|
-
function _extends$1() {
|
|
297
|
-
_extends$1 = Object.assign ? Object.assign.bind() : function (target) {
|
|
298
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
299
|
-
var source = arguments[i];
|
|
300
|
-
for (var key in source) {
|
|
301
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
302
|
-
target[key] = source[key];
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
return target;
|
|
307
|
-
};
|
|
308
|
-
return _extends$1.apply(this, arguments);
|
|
309
|
-
}
|
|
310
|
-
|
|
311
312
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
312
313
|
if (source == null) return {};
|
|
313
314
|
var target = {};
|
|
@@ -1145,7 +1146,8 @@ var Connect = withT(function (_ref) {
|
|
|
1145
1146
|
buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
|
|
1146
1147
|
_ref$onConnect = _ref.onConnect,
|
|
1147
1148
|
onConnect = _ref$onConnect === void 0 ? noop : _ref$onConnect,
|
|
1148
|
-
children = _ref.children
|
|
1149
|
+
children = _ref.children,
|
|
1150
|
+
secondaryButtonProps = _ref.secondaryButtonProps;
|
|
1149
1151
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
1150
1152
|
className: "mx-auto w-full max-w-lg"
|
|
1151
1153
|
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
@@ -1158,10 +1160,14 @@ var Connect = withT(function (_ref) {
|
|
|
1158
1160
|
className: "neeto-ui-text-gray-700 mb-8",
|
|
1159
1161
|
style: "body1",
|
|
1160
1162
|
weight: "normal"
|
|
1161
|
-
}, description), children, /*#__PURE__*/React__default.createElement(
|
|
1163
|
+
}, description), children, /*#__PURE__*/React__default.createElement("div", {
|
|
1164
|
+
className: "flex w-full items-start space-x-4"
|
|
1165
|
+
}, /*#__PURE__*/React__default.createElement(Button, _extends$1({
|
|
1162
1166
|
label: t("neetoIntegrations.common.connect"),
|
|
1163
1167
|
onClick: onConnect
|
|
1164
|
-
}, buttonProps)))
|
|
1168
|
+
}, buttonProps)), isNotEmpty(secondaryButtonProps) && /*#__PURE__*/React__default.createElement(Button, _extends$1({
|
|
1169
|
+
style: "secondary"
|
|
1170
|
+
}, secondaryButtonProps))));
|
|
1165
1171
|
});
|
|
1166
1172
|
Connect.prototypes = {
|
|
1167
1173
|
/**
|