@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/GoogleCalender.js
CHANGED
|
@@ -12,7 +12,7 @@ import { useQuery } from 'react-query';
|
|
|
12
12
|
import axios from 'axios';
|
|
13
13
|
import { buildUrl, getQueryParams } from '@bigbinary/neeto-commons-frontend/utils';
|
|
14
14
|
import { Daily as Daily$1, GoogleCalendar as GoogleCalendar$1, Google } from '@bigbinary/neeto-icons/misc';
|
|
15
|
-
import { Typography, Button, Modal as Modal$1, Callout } from '@bigbinary/neetoui';
|
|
15
|
+
import { Typography, Button, Tooltip, Modal as Modal$1, Callout } from '@bigbinary/neetoui';
|
|
16
16
|
import { Trans, useTranslation } from 'react-i18next';
|
|
17
17
|
import { Form as Form$2, Input } from '@bigbinary/neetoui/formik';
|
|
18
18
|
import 'ramda';
|
|
@@ -132,6 +132,21 @@ function _slicedToArray(arr, i) {
|
|
|
132
132
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
+
function _extends$1() {
|
|
136
|
+
_extends$1 = Object.assign ? Object.assign.bind() : function (target) {
|
|
137
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
138
|
+
var source = arguments[i];
|
|
139
|
+
for (var key in source) {
|
|
140
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
141
|
+
target[key] = source[key];
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
return target;
|
|
146
|
+
};
|
|
147
|
+
return _extends$1.apply(this, arguments);
|
|
148
|
+
}
|
|
149
|
+
|
|
135
150
|
var Manage$1 = withT(function (_ref) {
|
|
136
151
|
var t = _ref.t,
|
|
137
152
|
_ref$title = _ref.title,
|
|
@@ -236,17 +251,18 @@ var Manage$1 = withT(function (_ref) {
|
|
|
236
251
|
onClick: function onClick() {
|
|
237
252
|
return setIsDisconnectAlertOpen(true);
|
|
238
253
|
}
|
|
239
|
-
})) : /*#__PURE__*/React__default.createElement(
|
|
254
|
+
})) : /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Tooltip, _extends$1({
|
|
255
|
+
disabled: !isConnectDisabled
|
|
256
|
+
}, connectTooltipProps), /*#__PURE__*/React__default.createElement("span", null, (connectPath || connectUrl || onConnect) && /*#__PURE__*/React__default.createElement(Button, {
|
|
240
257
|
"data-cy": "connect-button",
|
|
241
258
|
disabled: isConnectDisabled,
|
|
242
259
|
href: connectUrl,
|
|
243
260
|
to: connectPath,
|
|
244
|
-
tooltipProps: connectTooltipProps,
|
|
245
261
|
label: t("neetoIntegrations.common.connectIntegration", {
|
|
246
262
|
integration: integrationName || humanize(integration)
|
|
247
263
|
}),
|
|
248
264
|
onClick: onConnect
|
|
249
|
-
})))), /*#__PURE__*/React__default.createElement(DisconnectAlert, {
|
|
265
|
+
})))))), /*#__PURE__*/React__default.createElement(DisconnectAlert, {
|
|
250
266
|
isDisconnecting: isDisconnecting,
|
|
251
267
|
onClose: onClose,
|
|
252
268
|
onDisconnect: onDisconnect,
|
|
@@ -304,21 +320,6 @@ var useDestroyDaily = function useDestroyDaily(_ref) {
|
|
|
304
320
|
});
|
|
305
321
|
};
|
|
306
322
|
|
|
307
|
-
function _extends$1() {
|
|
308
|
-
_extends$1 = Object.assign ? Object.assign.bind() : function (target) {
|
|
309
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
310
|
-
var source = arguments[i];
|
|
311
|
-
for (var key in source) {
|
|
312
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
313
|
-
target[key] = source[key];
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
return target;
|
|
318
|
-
};
|
|
319
|
-
return _extends$1.apply(this, arguments);
|
|
320
|
-
}
|
|
321
|
-
|
|
322
323
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
323
324
|
if (source == null) return {};
|
|
324
325
|
var target = {};
|
|
@@ -702,7 +703,8 @@ var Connect = withT(function (_ref) {
|
|
|
702
703
|
buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
|
|
703
704
|
_ref$onConnect = _ref.onConnect,
|
|
704
705
|
onConnect = _ref$onConnect === void 0 ? noop : _ref$onConnect,
|
|
705
|
-
children = _ref.children
|
|
706
|
+
children = _ref.children,
|
|
707
|
+
secondaryButtonProps = _ref.secondaryButtonProps;
|
|
706
708
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
707
709
|
className: "mx-auto w-full max-w-lg"
|
|
708
710
|
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
@@ -715,10 +717,14 @@ var Connect = withT(function (_ref) {
|
|
|
715
717
|
className: "neeto-ui-text-gray-700 mb-8",
|
|
716
718
|
style: "body1",
|
|
717
719
|
weight: "normal"
|
|
718
|
-
}, description), children, /*#__PURE__*/React__default.createElement(
|
|
720
|
+
}, description), children, /*#__PURE__*/React__default.createElement("div", {
|
|
721
|
+
className: "flex w-full items-start space-x-4"
|
|
722
|
+
}, /*#__PURE__*/React__default.createElement(Button, _extends$1({
|
|
719
723
|
label: t("neetoIntegrations.common.connect"),
|
|
720
724
|
onClick: onConnect
|
|
721
|
-
}, buttonProps)))
|
|
725
|
+
}, buttonProps)), isNotEmpty(secondaryButtonProps) && /*#__PURE__*/React__default.createElement(Button, _extends$1({
|
|
726
|
+
style: "secondary"
|
|
727
|
+
}, secondaryButtonProps))));
|
|
722
728
|
});
|
|
723
729
|
Connect.prototypes = {
|
|
724
730
|
/**
|