@bigbinary/neeto-integrations-frontend 2.11.0 → 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/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(React__default.Fragment, null, (connectPath || connectUrl || onConnect) && /*#__PURE__*/React__default.createElement(Button, {
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 = {};