@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/README.md +77 -151
- package/app/javascript/src/translations/en.json +3 -1
- package/dist/Daily.cjs.js +44 -40
- package/dist/Daily.cjs.js.map +1 -1
- package/dist/Daily.js +44 -40
- package/dist/Daily.js.map +1 -1
- package/dist/GoogleCalender.cjs.js +46 -42
- package/dist/GoogleCalender.cjs.js.map +1 -1
- package/dist/GoogleCalender.js +46 -42
- package/dist/GoogleCalender.js.map +1 -1
- package/dist/Twilio.cjs.js +31 -31
- package/dist/Twilio.cjs.js.map +1 -1
- package/dist/Twilio.js +31 -31
- package/dist/Twilio.js.map +1 -1
- package/dist/ZapierForm.cjs.js +29 -29
- package/dist/ZapierForm.cjs.js.map +1 -1
- package/dist/ZapierForm.js +29 -29
- package/dist/ZapierForm.js.map +1 -1
- package/dist/Zoom.cjs.js +45 -41
- package/dist/Zoom.cjs.js.map +1 -1
- package/dist/Zoom.js +45 -41
- package/dist/Zoom.js.map +1 -1
- package/dist/index.cjs.js +53 -49
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +53 -49
- package/dist/index.js.map +1 -1
- package/package.json +75 -70
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(
|
|
59
|
-
var
|
|
60
|
-
if (null !=
|
|
61
|
-
var
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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 (
|
|
70
|
-
if (Object(
|
|
71
|
-
|
|
72
|
-
} else for (; !(
|
|
73
|
-
} catch (
|
|
74
|
-
|
|
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 (!
|
|
77
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
78
78
|
} finally {
|
|
79
|
-
if (
|
|
79
|
+
if (o) throw n;
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
return
|
|
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(
|
|
109
|
+
function _typeof(o) {
|
|
110
110
|
"@babel/helpers - typeof";
|
|
111
111
|
|
|
112
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
113
|
-
return typeof
|
|
114
|
-
} : function (
|
|
115
|
-
return
|
|
116
|
-
}, _typeof(
|
|
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(
|
|
180
|
-
function _objectSpread(
|
|
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
|
|
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 ?
|
|
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: "
|
|
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
|
|
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("
|
|
789
|
-
integration: integrationName
|
|
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
|
-
|
|
793
|
-
|
|
794
|
-
|
|
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("
|
|
805
|
-
integration: integrationName
|
|
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
|
|
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
|
|
875
|
+
onDisconnect === null || onDisconnect === void 0 || onDisconnect();
|
|
872
876
|
}
|
|
873
877
|
}),
|
|
874
878
|
destroyIntegration = _useDestroyZoom.mutate,
|