@bigbinary/neeto-integrations-frontend 2.10.3 → 2.10.5

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/Zoom.js CHANGED
@@ -24,31 +24,31 @@ function _arrayWithHoles(arr) {
24
24
  if (Array.isArray(arr)) return arr;
25
25
  }
26
26
 
27
- function _iterableToArrayLimit(arr, i) {
28
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
29
- if (null != _i) {
30
- var _s,
31
- _e,
32
- _x,
33
- _r,
34
- _arr = [],
35
- _n = !0,
36
- _d = !1;
27
+ function _iterableToArrayLimit(r, l) {
28
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
29
+ if (null != t) {
30
+ var e,
31
+ n,
32
+ i,
33
+ u,
34
+ a = [],
35
+ f = !0,
36
+ o = !1;
37
37
  try {
38
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
39
- if (Object(_i) !== _i) return;
40
- _n = !1;
41
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
42
- } catch (err) {
43
- _d = !0, _e = err;
38
+ if (i = (t = t.call(r)).next, 0 === l) {
39
+ if (Object(t) !== t) return;
40
+ f = !1;
41
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
42
+ } catch (r) {
43
+ o = !0, n = r;
44
44
  } finally {
45
45
  try {
46
- if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
46
+ if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
47
47
  } finally {
48
- if (_d) throw _e;
48
+ if (o) throw n;
49
49
  }
50
50
  }
51
- return _arr;
51
+ return a;
52
52
  }
53
53
  }
54
54
 
@@ -75,14 +75,14 @@ function _slicedToArray(arr, i) {
75
75
  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
76
76
  }
77
77
 
78
- function _typeof(obj) {
78
+ function _typeof(o) {
79
79
  "@babel/helpers - typeof";
80
80
 
81
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
82
- return typeof obj;
83
- } : function (obj) {
84
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
85
- }, _typeof(obj);
81
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
82
+ return typeof o;
83
+ } : function (o) {
84
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
85
+ }, _typeof(o);
86
86
  }
87
87
 
88
88
  function _toPrimitive(input, hint) {
@@ -145,8 +145,8 @@ var QUERY_KEYS = {
145
145
  ZOOM_DETAILS: "zoom-details"
146
146
  };
147
147
 
148
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
149
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
148
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
149
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
150
150
  var useCreateDaily = function useCreateDaily() {
151
151
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
152
152
  return useMutationWithInvalidation(dailiesApi.create, _objectSpread({
@@ -329,7 +329,7 @@ var Manage$1 = function Manage$1(_ref) {
329
329
  var _useDestroyDaily = useDestroyDaily({
330
330
  onSuccess: function onSuccess() {
331
331
  setIsDisconnectAlertOpen(false);
332
- onDisconnect === null || onDisconnect === void 0 ? void 0 : onDisconnect();
332
+ onDisconnect === null || onDisconnect === void 0 || onDisconnect();
333
333
  }
334
334
  }),
335
335
  destroyIntegration = _useDestroyDaily.mutate,
@@ -689,7 +689,7 @@ var Manage = withT(function (_ref) {
689
689
  _ref$isDisconnecting = _ref.isDisconnecting,
690
690
  isDisconnecting = _ref$isDisconnecting === void 0 ? false : _ref$isDisconnecting,
691
691
  _ref$onDisconnect = _ref.onDisconnect,
692
- onDisconnect = _ref$onDisconnect === void 0 ? noop : _ref$onDisconnect,
692
+ onDisconnect = _ref$onDisconnect === void 0 ? undefined : _ref$onDisconnect,
693
693
  _ref$onClose = _ref.onClose,
694
694
  onClose = _ref$onClose === void 0 ? noop : _ref$onClose,
695
695
  _ref$Icon = _ref.Icon,
@@ -740,38 +740,42 @@ var Manage = withT(function (_ref) {
740
740
  style: "body2",
741
741
  weight: "normal"
742
742
  }, /*#__PURE__*/React__default.createElement(Trans, {
743
- i18nKey: "settings.integrations.common.helpDocUrl",
743
+ i18nKey: "neetoIntegrations.common.helpDocUrl",
744
744
  components: {
745
745
  helpLink: /*#__PURE__*/React__default.createElement(Button, {
746
746
  href: helpDocUrl,
747
- style: "link"
747
+ style: "link",
748
+ target: "_blank"
748
749
  })
749
750
  },
750
751
  values: {
751
- integration: integrationName !== null && integrationName !== void 0 ? integrationName : humanize(integration)
752
+ integration: integrationName || humanize(integration)
752
753
  }
753
754
  }))), isConnected ? /*#__PURE__*/React__default.createElement("div", {
754
755
  className: "space-x-2"
755
756
  }, managePath && /*#__PURE__*/React__default.createElement(Button, {
757
+ "data-cy": "manage-button",
756
758
  to: managePath,
757
- label: t("settings.integrations.common.manageIntegration", {
758
- integration: integrationName !== null && integrationName !== void 0 ? integrationName : humanize(integration)
759
+ label: t("neetoIntegrations.common.manageIntegration", {
760
+ integration: integrationName || humanize(integration)
759
761
  })
760
762
  }), onDisconnect && /*#__PURE__*/React__default.createElement(Button, {
761
- style: "danger",
762
- label: t("settings.integrations.common.disconnectIntegration", {
763
- integration: integrationName !== null && integrationName !== void 0 ? integrationName : humanize(integration)
763
+ "data-cy": "disconnect-button",
764
+ style: "secondary",
765
+ label: t("neetoIntegrations.common.disconnectIntegration", {
766
+ integration: integrationName || humanize(integration)
764
767
  }),
765
768
  onClick: function onClick() {
766
769
  return setIsDisconnectAlertOpen(true);
767
770
  }
768
771
  })) : /*#__PURE__*/React__default.createElement(Button, {
772
+ "data-cy": "connect-button",
769
773
  disabled: isConnectDisabled,
770
774
  href: connectUrl,
771
775
  to: connectPath,
772
776
  tooltipProps: connectTooltipProps,
773
- label: t("settings.integrations.common.connectIntegration", {
774
- integration: integrationName !== null && integrationName !== void 0 ? integrationName : humanize(integration)
777
+ label: t("neetoIntegrations.common.connectIntegration", {
778
+ integration: integrationName || humanize(integration)
775
779
  })
776
780
  }))), /*#__PURE__*/React__default.createElement(DisconnectAlert, {
777
781
  isDisconnecting: isDisconnecting,
@@ -779,7 +783,7 @@ var Manage = withT(function (_ref) {
779
783
  onDisconnect: onDisconnect,
780
784
  isOpen: isDisconnectAlertOpen,
781
785
  title: t("settings.integrations.".concat(integration, ".disconnect.title")),
782
- message: disconnectMessage !== null && disconnectMessage !== void 0 ? disconnectMessage : t("settings.integrations.".concat(integration, ".disconnect.message"))
786
+ message: disconnectMessage || t("settings.integrations.".concat(integration, ".disconnect.message"))
783
787
  }));
784
788
  });
785
789
 
@@ -837,7 +841,7 @@ var Zoom = function Zoom(_ref) {
837
841
  var _useDestroyZoom = useDestroyZoom({
838
842
  onSuccess: function onSuccess() {
839
843
  setIsDisconnectAlertOpen(false);
840
- onDisconnect === null || onDisconnect === void 0 ? void 0 : onDisconnect();
844
+ onDisconnect === null || onDisconnect === void 0 || onDisconnect();
841
845
  }
842
846
  }),
843
847
  destroyIntegration = _useDestroyZoom.mutate,