@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.js
CHANGED
|
@@ -24,31 +24,31 @@ function _arrayWithHoles(arr) {
|
|
|
24
24
|
if (Array.isArray(arr)) return arr;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
function _iterableToArrayLimit(
|
|
28
|
-
var
|
|
29
|
-
if (null !=
|
|
30
|
-
var
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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 (
|
|
39
|
-
if (Object(
|
|
40
|
-
|
|
41
|
-
} else for (; !(
|
|
42
|
-
} catch (
|
|
43
|
-
|
|
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 (!
|
|
46
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
47
47
|
} finally {
|
|
48
|
-
if (
|
|
48
|
+
if (o) throw n;
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
return
|
|
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(
|
|
78
|
+
function _typeof(o) {
|
|
79
79
|
"@babel/helpers - typeof";
|
|
80
80
|
|
|
81
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
82
|
-
return typeof
|
|
83
|
-
} : function (
|
|
84
|
-
return
|
|
85
|
-
}, _typeof(
|
|
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(
|
|
149
|
-
function _objectSpread(
|
|
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
|
|
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 ?
|
|
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: "
|
|
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
|
|
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("
|
|
758
|
-
integration: integrationName
|
|
759
|
+
label: t("neetoIntegrations.common.manageIntegration", {
|
|
760
|
+
integration: integrationName || humanize(integration)
|
|
759
761
|
})
|
|
760
762
|
}), onDisconnect && /*#__PURE__*/React__default.createElement(Button, {
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
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("
|
|
774
|
-
integration: integrationName
|
|
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
|
|
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
|
|
844
|
+
onDisconnect === null || onDisconnect === void 0 || onDisconnect();
|
|
841
845
|
}
|
|
842
846
|
}),
|
|
843
847
|
destroyIntegration = _useDestroyZoom.mutate,
|