@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.cjs.js CHANGED
@@ -55,31 +55,31 @@ function _arrayWithHoles(arr) {
55
55
  if (Array.isArray(arr)) return arr;
56
56
  }
57
57
 
58
- function _iterableToArrayLimit(arr, i) {
59
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
60
- if (null != _i) {
61
- var _s,
62
- _e,
63
- _x,
64
- _r,
65
- _arr = [],
66
- _n = !0,
67
- _d = !1;
58
+ function _iterableToArrayLimit(r, l) {
59
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
60
+ if (null != t) {
61
+ var e,
62
+ n,
63
+ i,
64
+ u,
65
+ a = [],
66
+ f = !0,
67
+ o = !1;
68
68
  try {
69
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
70
- if (Object(_i) !== _i) return;
71
- _n = !1;
72
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
73
- } catch (err) {
74
- _d = !0, _e = err;
69
+ if (i = (t = t.call(r)).next, 0 === l) {
70
+ if (Object(t) !== t) return;
71
+ f = !1;
72
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
73
+ } catch (r) {
74
+ o = !0, n = r;
75
75
  } finally {
76
76
  try {
77
- if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
77
+ if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
78
78
  } finally {
79
- if (_d) throw _e;
79
+ if (o) throw n;
80
80
  }
81
81
  }
82
- return _arr;
82
+ return a;
83
83
  }
84
84
  }
85
85
 
@@ -106,14 +106,14 @@ function _slicedToArray(arr, i) {
106
106
  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
107
107
  }
108
108
 
109
- function _typeof(obj) {
109
+ function _typeof(o) {
110
110
  "@babel/helpers - typeof";
111
111
 
112
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
113
- return typeof obj;
114
- } : function (obj) {
115
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
116
- }, _typeof(obj);
112
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
113
+ return typeof o;
114
+ } : function (o) {
115
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
116
+ }, _typeof(o);
117
117
  }
118
118
 
119
119
  function _toPrimitive(input, hint) {
@@ -176,8 +176,8 @@ var QUERY_KEYS = {
176
176
  ZOOM_DETAILS: "zoom-details"
177
177
  };
178
178
 
179
- 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; }
180
- 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; }
179
+ 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; }
180
+ 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; }
181
181
  var useCreateDaily = function useCreateDaily() {
182
182
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
183
183
  return reactUtils.useMutationWithInvalidation(dailiesApi.create, _objectSpread({
@@ -360,7 +360,7 @@ var Manage$1 = function Manage$1(_ref) {
360
360
  var _useDestroyDaily = useDestroyDaily({
361
361
  onSuccess: function onSuccess() {
362
362
  setIsDisconnectAlertOpen(false);
363
- onDisconnect === null || onDisconnect === void 0 ? void 0 : onDisconnect();
363
+ onDisconnect === null || onDisconnect === void 0 || onDisconnect();
364
364
  }
365
365
  }),
366
366
  destroyIntegration = _useDestroyDaily.mutate,
@@ -720,7 +720,7 @@ var Manage = reactUtils.withT(function (_ref) {
720
720
  _ref$isDisconnecting = _ref.isDisconnecting,
721
721
  isDisconnecting = _ref$isDisconnecting === void 0 ? false : _ref$isDisconnecting,
722
722
  _ref$onDisconnect = _ref.onDisconnect,
723
- onDisconnect = _ref$onDisconnect === void 0 ? neetoCist.noop : _ref$onDisconnect,
723
+ onDisconnect = _ref$onDisconnect === void 0 ? undefined : _ref$onDisconnect,
724
724
  _ref$onClose = _ref.onClose,
725
725
  onClose = _ref$onClose === void 0 ? neetoCist.noop : _ref$onClose,
726
726
  _ref$Icon = _ref.Icon,
@@ -771,38 +771,42 @@ var Manage = reactUtils.withT(function (_ref) {
771
771
  style: "body2",
772
772
  weight: "normal"
773
773
  }, /*#__PURE__*/React__default["default"].createElement(reactI18next.Trans, {
774
- i18nKey: "settings.integrations.common.helpDocUrl",
774
+ i18nKey: "neetoIntegrations.common.helpDocUrl",
775
775
  components: {
776
776
  helpLink: /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
777
777
  href: helpDocUrl,
778
- style: "link"
778
+ style: "link",
779
+ target: "_blank"
779
780
  })
780
781
  },
781
782
  values: {
782
- integration: integrationName !== null && integrationName !== void 0 ? integrationName : neetoCist.humanize(integration)
783
+ integration: integrationName || neetoCist.humanize(integration)
783
784
  }
784
785
  }))), isConnected ? /*#__PURE__*/React__default["default"].createElement("div", {
785
786
  className: "space-x-2"
786
787
  }, managePath && /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
788
+ "data-cy": "manage-button",
787
789
  to: managePath,
788
- label: t("settings.integrations.common.manageIntegration", {
789
- integration: integrationName !== null && integrationName !== void 0 ? integrationName : neetoCist.humanize(integration)
790
+ label: t("neetoIntegrations.common.manageIntegration", {
791
+ integration: integrationName || neetoCist.humanize(integration)
790
792
  })
791
793
  }), onDisconnect && /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
792
- style: "danger",
793
- label: t("settings.integrations.common.disconnectIntegration", {
794
- integration: integrationName !== null && integrationName !== void 0 ? integrationName : neetoCist.humanize(integration)
794
+ "data-cy": "disconnect-button",
795
+ style: "secondary",
796
+ label: t("neetoIntegrations.common.disconnectIntegration", {
797
+ integration: integrationName || neetoCist.humanize(integration)
795
798
  }),
796
799
  onClick: function onClick() {
797
800
  return setIsDisconnectAlertOpen(true);
798
801
  }
799
802
  })) : /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
803
+ "data-cy": "connect-button",
800
804
  disabled: isConnectDisabled,
801
805
  href: connectUrl,
802
806
  to: connectPath,
803
807
  tooltipProps: connectTooltipProps,
804
- label: t("settings.integrations.common.connectIntegration", {
805
- integration: integrationName !== null && integrationName !== void 0 ? integrationName : neetoCist.humanize(integration)
808
+ label: t("neetoIntegrations.common.connectIntegration", {
809
+ integration: integrationName || neetoCist.humanize(integration)
806
810
  })
807
811
  }))), /*#__PURE__*/React__default["default"].createElement(DisconnectAlert__default["default"], {
808
812
  isDisconnecting: isDisconnecting,
@@ -810,7 +814,7 @@ var Manage = reactUtils.withT(function (_ref) {
810
814
  onDisconnect: onDisconnect,
811
815
  isOpen: isDisconnectAlertOpen,
812
816
  title: t("settings.integrations.".concat(integration, ".disconnect.title")),
813
- message: disconnectMessage !== null && disconnectMessage !== void 0 ? disconnectMessage : t("settings.integrations.".concat(integration, ".disconnect.message"))
817
+ message: disconnectMessage || t("settings.integrations.".concat(integration, ".disconnect.message"))
814
818
  }));
815
819
  });
816
820
 
@@ -868,7 +872,7 @@ var Zoom = function Zoom(_ref) {
868
872
  var _useDestroyZoom = useDestroyZoom({
869
873
  onSuccess: function onSuccess() {
870
874
  setIsDisconnectAlertOpen(false);
871
- onDisconnect === null || onDisconnect === void 0 ? void 0 : onDisconnect();
875
+ onDisconnect === null || onDisconnect === void 0 || onDisconnect();
872
876
  }
873
877
  }),
874
878
  destroyIntegration = _useDestroyZoom.mutate,