@bigbinary/neeto-integrations-frontend 4.0.30 → 4.0.32
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/.ready +1 -1
- package/dist/Zoom.js +14 -11
- package/dist/Zoom.js.map +1 -1
- package/dist/cjs/Zoom.js +14 -11
- package/dist/cjs/Zoom.js.map +1 -1
- package/dist/cjs/index.js +10 -10
- package/dist/cjs/index.js.map +1 -1
- package/dist/index.js +10 -10
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/.ready
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Built at 2026-05-
|
|
1
|
+
Built at 2026-05-06T13:21:30.185Z
|
package/dist/Zoom.js
CHANGED
|
@@ -3,6 +3,7 @@ import { useState } from 'react';
|
|
|
3
3
|
import { isPresent, noop } from '@bigbinary/neeto-cist';
|
|
4
4
|
import ZoomIcon from '@bigbinary/neeto-icons/misc/Zoom';
|
|
5
5
|
import Spinner from '@bigbinary/neetoui/Spinner';
|
|
6
|
+
import Typography from '@bigbinary/neetoui/Typography';
|
|
6
7
|
import { useTranslation, Trans } from 'react-i18next';
|
|
7
8
|
import Manage from './Manage.js';
|
|
8
9
|
import { u as useShowZoom, a as useDestroyZoom } from './useZoomApi-CazQYmYH.js';
|
|
@@ -14,7 +15,6 @@ import '@bigbinary/neeto-icons/ExternalLink';
|
|
|
14
15
|
import '@bigbinary/neetoui/Button';
|
|
15
16
|
import '@bigbinary/neetoui/Callout';
|
|
16
17
|
import '@bigbinary/neetoui/Tooltip';
|
|
17
|
-
import '@bigbinary/neetoui/Typography';
|
|
18
18
|
import './DisconnectAlert.js';
|
|
19
19
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
20
20
|
import '@bigbinary/neeto-commons-frontend/react-utils/withT';
|
|
@@ -71,16 +71,19 @@ var Zoom = function Zoom(_ref) {
|
|
|
71
71
|
setIsDisconnectAlertOpen: setIsDisconnectAlertOpen,
|
|
72
72
|
Icon: ZoomIcon,
|
|
73
73
|
integration: "zoom",
|
|
74
|
-
description: isConnected ? /*#__PURE__*/jsx(
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
74
|
+
description: isConnected ? /*#__PURE__*/jsx(Typography, {
|
|
75
|
+
style: "body1",
|
|
76
|
+
children: /*#__PURE__*/jsx(Trans, {
|
|
77
|
+
components: {
|
|
78
|
+
underline: /*#__PURE__*/jsx("u", {
|
|
79
|
+
className: "font-medium"
|
|
80
|
+
})
|
|
81
|
+
},
|
|
82
|
+
i18nKey: "neetoIntegrations.zoom.account",
|
|
83
|
+
values: {
|
|
84
|
+
email: email
|
|
85
|
+
}
|
|
86
|
+
})
|
|
84
87
|
}) : description,
|
|
85
88
|
title: isConnected ? t("neetoIntegrations.zoom.connected") : t("neetoIntegrations.zoom.connect"),
|
|
86
89
|
onClose: function onClose() {
|
package/dist/Zoom.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Zoom.js","sources":["../app/javascript/src/components/Integrations/Zoom/index.jsx"],"sourcesContent":["import { useState } from \"react\";\n\nimport { isPresent, noop } from \"neetocist\";\nimport { Zoom as ZoomIcon } from \"neetoicons/misc\";\nimport { Spinner } from \"neetoui\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nimport ManageIntegrations from \"components/commons/Manage\";\nimport { useDestroyZoom, useShowZoom } from \"hooks/reactQuery/useZoomApi\";\n\nconst Zoom = ({ connectUrl = \"\", description = \"\", onDisconnect = noop }) => {\n const { t } = useTranslation();\n\n const [isDisconnectAlertOpen, setIsDisconnectAlertOpen] = useState(false);\n\n const { data: { metadata: { email = \"\" } = {} } = {}, isLoading } =\n useShowZoom();\n\n const { mutate: destroyIntegration, isPending: isDisconnecting } =\n useDestroyZoom({\n onSuccess: () => {\n setIsDisconnectAlertOpen(false);\n onDisconnect?.();\n },\n });\n\n const isConnected = isPresent(email);\n\n const handleDisconnect = () => destroyIntegration(\"zoom\");\n\n if (isLoading) {\n return (\n <div className=\"flex h-full w-full items-center justify-center\">\n <Spinner />\n </div>\n );\n }\n\n return (\n <ManageIntegrations\n {...{\n connectUrl,\n isConnected,\n isDisconnectAlertOpen,\n isDisconnecting,\n setIsDisconnectAlertOpen,\n }}\n Icon={ZoomIcon}\n integration=\"zoom\"\n description={\n isConnected ? (\n <Trans\n
|
|
1
|
+
{"version":3,"file":"Zoom.js","sources":["../app/javascript/src/components/Integrations/Zoom/index.jsx"],"sourcesContent":["import { useState } from \"react\";\n\nimport { isPresent, noop } from \"neetocist\";\nimport { Zoom as ZoomIcon } from \"neetoicons/misc\";\nimport { Spinner, Typography } from \"neetoui\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nimport ManageIntegrations from \"components/commons/Manage\";\nimport { useDestroyZoom, useShowZoom } from \"hooks/reactQuery/useZoomApi\";\n\nconst Zoom = ({ connectUrl = \"\", description = \"\", onDisconnect = noop }) => {\n const { t } = useTranslation();\n\n const [isDisconnectAlertOpen, setIsDisconnectAlertOpen] = useState(false);\n\n const { data: { metadata: { email = \"\" } = {} } = {}, isLoading } =\n useShowZoom();\n\n const { mutate: destroyIntegration, isPending: isDisconnecting } =\n useDestroyZoom({\n onSuccess: () => {\n setIsDisconnectAlertOpen(false);\n onDisconnect?.();\n },\n });\n\n const isConnected = isPresent(email);\n\n const handleDisconnect = () => destroyIntegration(\"zoom\");\n\n if (isLoading) {\n return (\n <div className=\"flex h-full w-full items-center justify-center\">\n <Spinner />\n </div>\n );\n }\n\n return (\n <ManageIntegrations\n {...{\n connectUrl,\n isConnected,\n isDisconnectAlertOpen,\n isDisconnecting,\n setIsDisconnectAlertOpen,\n }}\n Icon={ZoomIcon}\n integration=\"zoom\"\n description={\n isConnected ? (\n <Typography style=\"body1\">\n <Trans\n components={{ underline: <u className=\"font-medium\" /> }}\n i18nKey=\"neetoIntegrations.zoom.account\"\n values={{ email }}\n />\n </Typography>\n ) : (\n description\n )\n }\n title={\n isConnected\n ? t(\"neetoIntegrations.zoom.connected\")\n : t(\"neetoIntegrations.zoom.connect\")\n }\n onClose={() => setIsDisconnectAlertOpen(false)}\n onDisconnect={() => handleDisconnect()}\n />\n );\n};\n\nexport default Zoom;\n"],"names":["Zoom","_ref","_ref$connectUrl","connectUrl","_ref$description","description","_ref$onDisconnect","onDisconnect","noop","_useTranslation","useTranslation","t","_useState","useState","_useState2","_slicedToArray","isDisconnectAlertOpen","setIsDisconnectAlertOpen","_useShowZoom","useShowZoom","_useShowZoom$data","data","_useShowZoom$data2","_useShowZoom$data2$me","metadata","_useShowZoom$data2$me2","_useShowZoom$data2$me3","email","isLoading","_useDestroyZoom","useDestroyZoom","onSuccess","destroyIntegration","mutate","isDisconnecting","isPending","isConnected","isPresent","handleDisconnect","_jsx","className","children","Spinner","ManageIntegrations","Icon","ZoomIcon","integration","Typography","style","Trans","components","underline","i18nKey","values","title","onClose"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,IAAMA,IAAI,GAAG,SAAPA,IAAIA,CAAAC,IAAA,EAAmE;AAAA,EAAA,IAAAC,eAAA,GAAAD,IAAA,CAA7DE,UAAU;AAAVA,IAAAA,UAAU,GAAAD,eAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,eAAA;IAAAE,gBAAA,GAAAH,IAAA,CAAEI,WAAW;AAAXA,IAAAA,WAAW,GAAAD,gBAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,gBAAA;IAAAE,iBAAA,GAAAL,IAAA,CAAEM,YAAY;AAAZA,IAAAA,YAAY,GAAAD,iBAAA,KAAA,MAAA,GAAGE,IAAI,GAAAF,iBAAA;AACpE,EAAA,IAAAG,eAAA,GAAcC,cAAc,EAAE;IAAtBC,CAAC,GAAAF,eAAA,CAADE,CAAC;AAET,EAAA,IAAAC,SAAA,GAA0DC,QAAQ,CAAC,KAAK,CAAC;IAAAC,UAAA,GAAAC,cAAA,CA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KACR,CAAC;AAEV,EAAA;EAEA,oBACEH,GAAA,CAACI,MAAkB,EAAA;AAEfxC,IAAAA,UAAU,EAAVA,UAAU;AACViC,IAAAA,WAAW,EAAXA,WAAW;AACXpB,IAAAA,qBAAqB,EAArBA,qBAAqB;AACrBkB,IAAAA,eAAe,EAAfA,eAAe;AACfjB,IAAAA,wBAAwB,EAAxBA,wBAAwB;AAE1B2B,IAAAA,IAAI,EAAEC,QAAS;AACfC,IAAAA,WAAW,EAAC,MAAM;AAClBzC,IAAAA,WAAW,EACT+B,WAAW,gBACTG,GAAA,CAACQ,UAAU,EAAA;AAACC,MAAAA,KAAK,EAAC,OAAO;MAAAP,QAAA,eACvBF,GAAA,CAACU,KAAK,EAAA;AACJC,QAAAA,UAAU,EAAE;AAAEC,UAAAA,SAAS,eAAEZ,GAAA,CAAA,GAAA,EAAA;AAAGC,YAAAA,SAAS,EAAC;WAAe;SAAI;AACzDY,QAAAA,OAAO,EAAC,gCAAgC;AACxCC,QAAAA,MAAM,EAAE;AAAE1B,UAAAA,KAAK,EAALA;AAAM;OACjB;KACS,CAAC,GAEbtB,WAEH;IACDiD,KAAK,EACHlB,WAAW,GACPzB,CAAC,CAAC,kCAAkC,CAAC,GACrCA,CAAC,CAAC,gCAAgC,CACvC;IACD4C,OAAO,EAAE,SAATA,OAAOA,GAAA;MAAA,OAAQtC,wBAAwB,CAAC,KAAK,CAAC;IAAA,CAAC;IAC/CV,YAAY,EAAE,SAAdA,YAAYA,GAAA;MAAA,OAAQ+B,gBAAgB,EAAE;AAAA,IAAA;AAAC,GACxC,CAAC;AAEN;;;;"}
|
package/dist/cjs/Zoom.js
CHANGED
|
@@ -5,6 +5,7 @@ var React = require('react');
|
|
|
5
5
|
var neetoCist = require('@bigbinary/neeto-cist');
|
|
6
6
|
var ZoomIcon = require('@bigbinary/neeto-icons/misc/Zoom');
|
|
7
7
|
var Spinner = require('@bigbinary/neetoui/Spinner');
|
|
8
|
+
var Typography = require('@bigbinary/neetoui/Typography');
|
|
8
9
|
var reactI18next = require('react-i18next');
|
|
9
10
|
var Manage = require('./Manage.js');
|
|
10
11
|
var useZoomApi = require('../useZoomApi-B127NAGl.js');
|
|
@@ -16,7 +17,6 @@ require('@bigbinary/neeto-icons/ExternalLink');
|
|
|
16
17
|
require('@bigbinary/neetoui/Button');
|
|
17
18
|
require('@bigbinary/neetoui/Callout');
|
|
18
19
|
require('@bigbinary/neetoui/Tooltip');
|
|
19
|
-
require('@bigbinary/neetoui/Typography');
|
|
20
20
|
require('./DisconnectAlert.js');
|
|
21
21
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
22
22
|
require('@bigbinary/neeto-commons-frontend/react-utils/withT');
|
|
@@ -73,16 +73,19 @@ var Zoom = function Zoom(_ref) {
|
|
|
73
73
|
setIsDisconnectAlertOpen: setIsDisconnectAlertOpen,
|
|
74
74
|
Icon: ZoomIcon,
|
|
75
75
|
integration: "zoom",
|
|
76
|
-
description: isConnected ? /*#__PURE__*/jsxRuntime.jsx(
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
76
|
+
description: isConnected ? /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
77
|
+
style: "body1",
|
|
78
|
+
children: /*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
|
|
79
|
+
components: {
|
|
80
|
+
underline: /*#__PURE__*/jsxRuntime.jsx("u", {
|
|
81
|
+
className: "font-medium"
|
|
82
|
+
})
|
|
83
|
+
},
|
|
84
|
+
i18nKey: "neetoIntegrations.zoom.account",
|
|
85
|
+
values: {
|
|
86
|
+
email: email
|
|
87
|
+
}
|
|
88
|
+
})
|
|
86
89
|
}) : description,
|
|
87
90
|
title: isConnected ? t("neetoIntegrations.zoom.connected") : t("neetoIntegrations.zoom.connect"),
|
|
88
91
|
onClose: function onClose() {
|
package/dist/cjs/Zoom.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Zoom.js","sources":["../../app/javascript/src/components/Integrations/Zoom/index.jsx"],"sourcesContent":["import { useState } from \"react\";\n\nimport { isPresent, noop } from \"neetocist\";\nimport { Zoom as ZoomIcon } from \"neetoicons/misc\";\nimport { Spinner } from \"neetoui\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nimport ManageIntegrations from \"components/commons/Manage\";\nimport { useDestroyZoom, useShowZoom } from \"hooks/reactQuery/useZoomApi\";\n\nconst Zoom = ({ connectUrl = \"\", description = \"\", onDisconnect = noop }) => {\n const { t } = useTranslation();\n\n const [isDisconnectAlertOpen, setIsDisconnectAlertOpen] = useState(false);\n\n const { data: { metadata: { email = \"\" } = {} } = {}, isLoading } =\n useShowZoom();\n\n const { mutate: destroyIntegration, isPending: isDisconnecting } =\n useDestroyZoom({\n onSuccess: () => {\n setIsDisconnectAlertOpen(false);\n onDisconnect?.();\n },\n });\n\n const isConnected = isPresent(email);\n\n const handleDisconnect = () => destroyIntegration(\"zoom\");\n\n if (isLoading) {\n return (\n <div className=\"flex h-full w-full items-center justify-center\">\n <Spinner />\n </div>\n );\n }\n\n return (\n <ManageIntegrations\n {...{\n connectUrl,\n isConnected,\n isDisconnectAlertOpen,\n isDisconnecting,\n setIsDisconnectAlertOpen,\n }}\n Icon={ZoomIcon}\n integration=\"zoom\"\n description={\n isConnected ? (\n <Trans\n
|
|
1
|
+
{"version":3,"file":"Zoom.js","sources":["../../app/javascript/src/components/Integrations/Zoom/index.jsx"],"sourcesContent":["import { useState } from \"react\";\n\nimport { isPresent, noop } from \"neetocist\";\nimport { Zoom as ZoomIcon } from \"neetoicons/misc\";\nimport { Spinner, Typography } from \"neetoui\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nimport ManageIntegrations from \"components/commons/Manage\";\nimport { useDestroyZoom, useShowZoom } from \"hooks/reactQuery/useZoomApi\";\n\nconst Zoom = ({ connectUrl = \"\", description = \"\", onDisconnect = noop }) => {\n const { t } = useTranslation();\n\n const [isDisconnectAlertOpen, setIsDisconnectAlertOpen] = useState(false);\n\n const { data: { metadata: { email = \"\" } = {} } = {}, isLoading } =\n useShowZoom();\n\n const { mutate: destroyIntegration, isPending: isDisconnecting } =\n useDestroyZoom({\n onSuccess: () => {\n setIsDisconnectAlertOpen(false);\n onDisconnect?.();\n },\n });\n\n const isConnected = isPresent(email);\n\n const handleDisconnect = () => destroyIntegration(\"zoom\");\n\n if (isLoading) {\n return (\n <div className=\"flex h-full w-full items-center justify-center\">\n <Spinner />\n </div>\n );\n }\n\n return (\n <ManageIntegrations\n {...{\n connectUrl,\n isConnected,\n isDisconnectAlertOpen,\n isDisconnecting,\n setIsDisconnectAlertOpen,\n }}\n Icon={ZoomIcon}\n integration=\"zoom\"\n description={\n isConnected ? (\n <Typography style=\"body1\">\n <Trans\n components={{ underline: <u className=\"font-medium\" /> }}\n i18nKey=\"neetoIntegrations.zoom.account\"\n values={{ email }}\n />\n </Typography>\n ) : (\n description\n )\n }\n title={\n isConnected\n ? t(\"neetoIntegrations.zoom.connected\")\n : t(\"neetoIntegrations.zoom.connect\")\n }\n onClose={() => setIsDisconnectAlertOpen(false)}\n onDisconnect={() => handleDisconnect()}\n />\n );\n};\n\nexport default Zoom;\n"],"names":["Zoom","_ref","_ref$connectUrl","connectUrl","_ref$description","description","_ref$onDisconnect","onDisconnect","noop","_useTranslation","useTranslation","t","_useState","useState","_useState2","_slicedToArray","isDisconnectAlertOpen","setIsDisconnectAlertOpen","_useShowZoom","useShowZoom","_useShowZoom$data","data","_useShowZoom$data2","_useShowZoom$data2$me","metadata","_useShowZoom$data2$me2","_useShowZoom$data2$me3","email","isLoading","_useDestroyZoom","useDestroyZoom","onSuccess","destroyIntegration","mutate","isDisconnecting","isPending","isConnected","isPresent","handleDisconnect","_jsx","className","children","Spinner","ManageIntegrations","Icon","ZoomIcon","integration","Typography","style","Trans","components","underline","i18nKey","values","title","onClose"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;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B,UAAAA,KAAK,EAALA;AAAM;OACjB;KACS,CAAC,GAEbtB,WAEH;IACDiD,KAAK,EACHlB,WAAW,GACPzB,CAAC,CAAC,kCAAkC,CAAC,GACrCA,CAAC,CAAC,gCAAgC,CACvC;IACD4C,OAAO,EAAE,SAATA,OAAOA,GAAA;MAAA,OAAQtC,wBAAwB,CAAC,KAAK,CAAC;IAAA,CAAC;IAC/CV,YAAY,EAAE,SAAdA,YAAYA,GAAA;MAAA,OAAQ+B,gBAAgB,EAAE;AAAA,IAAA;AAAC,GACxC,CAAC;AAEN;;;;"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var Manage = require('./Manage.js');
|
|
4
4
|
var DisconnectAlert = require('./DisconnectAlert.js');
|
|
5
|
+
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
6
|
+
var React = require('react');
|
|
5
7
|
var Tag = require('@bigbinary/neetoui/Tag');
|
|
6
8
|
var ramda = require('ramda');
|
|
7
9
|
var reactI18next = require('react-i18next');
|
|
@@ -14,12 +16,12 @@ var GoogleCalendar = require('./GoogleCalendar.js');
|
|
|
14
16
|
var Telnyx = require('./Telnyx.js');
|
|
15
17
|
var Twilio = require('./Twilio.js');
|
|
16
18
|
var Zoom = require('./Zoom.js');
|
|
17
|
-
var query = require('../query-CySi2Ki7.js');
|
|
18
19
|
var Modal = require('./Modal.js');
|
|
19
20
|
var Connect = require('./Connect.js');
|
|
20
21
|
var Demo = require('./Demo.js');
|
|
21
22
|
var Finish = require('./Finish.js');
|
|
22
23
|
var WalkthroughModal = require('./WalkthroughModal.js');
|
|
24
|
+
var query = require('../query-CySi2Ki7.js');
|
|
23
25
|
require('@babel/runtime/helpers/defineProperty');
|
|
24
26
|
require('@bigbinary/neeto-cist');
|
|
25
27
|
require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
@@ -37,8 +39,6 @@ require('@bigbinary/neeto-commons-frontend/constants');
|
|
|
37
39
|
require('axios');
|
|
38
40
|
require('i18next');
|
|
39
41
|
require('../useDailiesApi-BjcmweuZ.js');
|
|
40
|
-
require('@babel/runtime/helpers/slicedToArray');
|
|
41
|
-
require('react');
|
|
42
42
|
require('@bigbinary/neeto-commons-frontend/utils');
|
|
43
43
|
require('@bigbinary/neeto-icons/misc/Daily');
|
|
44
44
|
require('@bigbinary/neeto-molecules/CopyToClipboardButton');
|
|
@@ -84,27 +84,27 @@ var IntegrationLinks = function IntegrationLinks(_ref) {
|
|
|
84
84
|
var DisconnectedIntegrationsRibbon = function DisconnectedIntegrationsRibbon(_ref2) {
|
|
85
85
|
var _ref2$integrationRout = _ref2.integrationRouteMap,
|
|
86
86
|
integrationRouteMap = _ref2$integrationRout === void 0 ? {} : _ref2$integrationRout;
|
|
87
|
+
var _useState = React.useState(false),
|
|
88
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
89
|
+
isClosed = _useState2[0],
|
|
90
|
+
setIsClosed = _useState2[1];
|
|
87
91
|
reactI18next.useTranslation();
|
|
88
92
|
var _useFetchDisconnectio = useDisconnectionAlertsApi.useFetchDisconnectionAlerts(),
|
|
89
93
|
_useFetchDisconnectio2 = _useFetchDisconnectio.data,
|
|
90
94
|
_useFetchDisconnectio3 = _useFetchDisconnectio2 === void 0 ? {} : _useFetchDisconnectio2,
|
|
91
95
|
_useFetchDisconnectio4 = _useFetchDisconnectio3.disconnectionAlerts,
|
|
92
96
|
alerts = _useFetchDisconnectio4 === void 0 ? [] : _useFetchDisconnectio4;
|
|
93
|
-
var _useDismissDisconnect = useDisconnectionAlertsApi.useDismissDisconnectionAlerts(),
|
|
94
|
-
dismissAlerts = _useDismissDisconnect.mutate;
|
|
95
97
|
var knownAlerts = alerts.filter(function (alert) {
|
|
96
98
|
return integrationRouteMap[alert.serviceName];
|
|
97
99
|
});
|
|
98
|
-
if (ramda.isEmpty(knownAlerts)) return null;
|
|
100
|
+
if (isClosed || ramda.isEmpty(knownAlerts)) return null;
|
|
99
101
|
return /*#__PURE__*/jsxRuntime.jsx(Tag, {
|
|
100
102
|
className: "neeto-molecules-sticky-ribbon w-full p-2.5 text-center",
|
|
101
103
|
"data-testid": "disconnected-integrations-ribbon",
|
|
102
104
|
size: "large",
|
|
103
105
|
style: "warning",
|
|
104
106
|
onClose: function onClose() {
|
|
105
|
-
return
|
|
106
|
-
return alert.id;
|
|
107
|
-
}));
|
|
107
|
+
return setIsClosed(true);
|
|
108
108
|
},
|
|
109
109
|
children: /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
110
110
|
className: "w-full",
|
|
@@ -131,11 +131,11 @@ exports.GoogleCalendar = GoogleCalendar;
|
|
|
131
131
|
exports.Telnyx = Telnyx;
|
|
132
132
|
exports.Twilio = Twilio;
|
|
133
133
|
exports.Zoom = Zoom;
|
|
134
|
-
exports.disconnectionAlertsQueryKey = query.disconnectionAlertsQueryKey;
|
|
135
134
|
exports.Modal = Modal;
|
|
136
135
|
exports.Connect = Connect;
|
|
137
136
|
exports.Demo = Demo;
|
|
138
137
|
exports.Finish = Finish;
|
|
139
138
|
exports.WalkthroughModal = WalkthroughModal;
|
|
139
|
+
exports.disconnectionAlertsQueryKey = query.disconnectionAlertsQueryKey;
|
|
140
140
|
exports.DisconnectedIntegrationsRibbon = DisconnectedIntegrationsRibbon;
|
|
141
141
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../app/javascript/src/components/DisconnectedIntegrationsRibbon/index.jsx"],"sourcesContent":["import { Tag } from \"neetoui\";\nimport { isEmpty } from \"ramda\";\nimport { Trans, useTranslation } from \"react-i18next\";\nimport { Link } from \"react-router-dom\";\n\nimport {
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../app/javascript/src/components/DisconnectedIntegrationsRibbon/index.jsx"],"sourcesContent":["import { useState } from \"react\";\n\nimport { Tag } from \"neetoui\";\nimport { isEmpty } from \"ramda\";\nimport { Trans, useTranslation } from \"react-i18next\";\nimport { Link } from \"react-router-dom\";\n\nimport { useFetchDisconnectionAlerts } from \"hooks/reactQuery/useDisconnectionAlertsApi\";\n\nconst IntegrationLinks = ({ alerts, integrationRouteMap }) =>\n alerts.map((alert, index) => {\n const { label, path } = integrationRouteMap[alert.serviceName];\n const linkPath = alert.redirectPath || path;\n\n return (\n <span key={alert.id}>\n {index > 0 && \", \"}\n <Link className=\"font-semibold underline\" to={linkPath}>\n {label}\n </Link>\n </span>\n );\n });\n\nconst DisconnectedIntegrationsRibbon = ({ integrationRouteMap = {} }) => {\n const [isClosed, setIsClosed] = useState(false);\n\n useTranslation();\n\n const { data: { disconnectionAlerts: alerts = [] } = {} } =\n useFetchDisconnectionAlerts();\n\n const knownAlerts = alerts.filter(\n alert => integrationRouteMap[alert.serviceName]\n );\n\n if (isClosed || isEmpty(knownAlerts)) return null;\n\n return (\n <Tag\n className=\"neeto-molecules-sticky-ribbon w-full p-2.5 text-center\"\n data-testid=\"disconnected-integrations-ribbon\"\n size=\"large\"\n style=\"warning\"\n onClose={() => setIsClosed(true)}\n >\n <span className=\"w-full\">\n <Trans\n count={knownAlerts.length}\n defaults=\"Your <integrations /> integration has been disconnected due to a permission issue. Connect it now.\"\n i18nKey=\"neetoIntegrations.disconnectionRibbon.message\"\n components={{\n integrations: (\n <IntegrationLinks\n {...{ integrationRouteMap }}\n alerts={knownAlerts}\n />\n ),\n }}\n />\n </span>\n </Tag>\n );\n};\n\nexport default DisconnectedIntegrationsRibbon;\n"],"names":["IntegrationLinks","_ref","alerts","integrationRouteMap","map","alert","index","_integrationRouteMap$","serviceName","label","path","linkPath","redirectPath","_jsxs","children","_jsx","Link","className","to","id","DisconnectedIntegrationsRibbon","_ref2","_ref2$integrationRout","_useState","useState","_useState2","_slicedToArray","isClosed","setIsClosed","useTranslation","_useFetchDisconnectio","useFetchDisconnectionAlerts","_useFetchDisconnectio2","data","_useFetchDisconnectio3","_useFetchDisconnectio4","disconnectionAlerts","knownAlerts","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YAAAA,mBAAmB,EAAnBA,mBAAmB;AACzBD,YAAAA,MAAM,EAAEmC;WACT;AAEL;OACD;KACG;AAAC,GACJ,CAAC;AAEV;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export { default as Manage } from './Manage.js';
|
|
2
2
|
export { default as DisconnectAlert } from './DisconnectAlert.js';
|
|
3
|
+
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
4
|
+
import { useState } from 'react';
|
|
3
5
|
import Tag from '@bigbinary/neetoui/Tag';
|
|
4
6
|
import { isEmpty } from 'ramda';
|
|
5
7
|
import { useTranslation, Trans } from 'react-i18next';
|
|
6
8
|
import { Link } from 'react-router-dom';
|
|
7
|
-
import { u as useFetchDisconnectionAlerts
|
|
9
|
+
import { u as useFetchDisconnectionAlerts } from './useDisconnectionAlertsApi-BnfMKA7s.js';
|
|
8
10
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
9
11
|
export { default as Daily } from './Daily.js';
|
|
10
12
|
export { default as DailyForm } from './DailyForm.js';
|
|
@@ -12,12 +14,12 @@ export { default as GoogleCalendar } from './GoogleCalendar.js';
|
|
|
12
14
|
export { default as Telnyx } from './Telnyx.js';
|
|
13
15
|
export { default as Twilio } from './Twilio.js';
|
|
14
16
|
export { default as Zoom } from './Zoom.js';
|
|
15
|
-
export { d as disconnectionAlertsQueryKey } from './query-B3RhGrNb.js';
|
|
16
17
|
export { default as Modal } from './Modal.js';
|
|
17
18
|
export { default as Connect } from './Connect.js';
|
|
18
19
|
export { default as Demo } from './Demo.js';
|
|
19
20
|
export { default as Finish } from './Finish.js';
|
|
20
21
|
export { default as WalkthroughModal } from './WalkthroughModal.js';
|
|
22
|
+
export { d as disconnectionAlertsQueryKey } from './query-B3RhGrNb.js';
|
|
21
23
|
import '@babel/runtime/helpers/defineProperty';
|
|
22
24
|
import '@bigbinary/neeto-cist';
|
|
23
25
|
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
@@ -35,8 +37,6 @@ import '@bigbinary/neeto-commons-frontend/constants';
|
|
|
35
37
|
import 'axios';
|
|
36
38
|
import 'i18next';
|
|
37
39
|
import './useDailiesApi-C78LSYFo.js';
|
|
38
|
-
import '@babel/runtime/helpers/slicedToArray';
|
|
39
|
-
import 'react';
|
|
40
40
|
import '@bigbinary/neeto-commons-frontend/utils';
|
|
41
41
|
import '@bigbinary/neeto-icons/misc/Daily';
|
|
42
42
|
import '@bigbinary/neeto-molecules/CopyToClipboardButton';
|
|
@@ -82,27 +82,27 @@ var IntegrationLinks = function IntegrationLinks(_ref) {
|
|
|
82
82
|
var DisconnectedIntegrationsRibbon = function DisconnectedIntegrationsRibbon(_ref2) {
|
|
83
83
|
var _ref2$integrationRout = _ref2.integrationRouteMap,
|
|
84
84
|
integrationRouteMap = _ref2$integrationRout === void 0 ? {} : _ref2$integrationRout;
|
|
85
|
+
var _useState = useState(false),
|
|
86
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
87
|
+
isClosed = _useState2[0],
|
|
88
|
+
setIsClosed = _useState2[1];
|
|
85
89
|
useTranslation();
|
|
86
90
|
var _useFetchDisconnectio = useFetchDisconnectionAlerts(),
|
|
87
91
|
_useFetchDisconnectio2 = _useFetchDisconnectio.data,
|
|
88
92
|
_useFetchDisconnectio3 = _useFetchDisconnectio2 === void 0 ? {} : _useFetchDisconnectio2,
|
|
89
93
|
_useFetchDisconnectio4 = _useFetchDisconnectio3.disconnectionAlerts,
|
|
90
94
|
alerts = _useFetchDisconnectio4 === void 0 ? [] : _useFetchDisconnectio4;
|
|
91
|
-
var _useDismissDisconnect = useDismissDisconnectionAlerts(),
|
|
92
|
-
dismissAlerts = _useDismissDisconnect.mutate;
|
|
93
95
|
var knownAlerts = alerts.filter(function (alert) {
|
|
94
96
|
return integrationRouteMap[alert.serviceName];
|
|
95
97
|
});
|
|
96
|
-
if (isEmpty(knownAlerts)) return null;
|
|
98
|
+
if (isClosed || isEmpty(knownAlerts)) return null;
|
|
97
99
|
return /*#__PURE__*/jsx(Tag, {
|
|
98
100
|
className: "neeto-molecules-sticky-ribbon w-full p-2.5 text-center",
|
|
99
101
|
"data-testid": "disconnected-integrations-ribbon",
|
|
100
102
|
size: "large",
|
|
101
103
|
style: "warning",
|
|
102
104
|
onClose: function onClose() {
|
|
103
|
-
return
|
|
104
|
-
return alert.id;
|
|
105
|
-
}));
|
|
105
|
+
return setIsClosed(true);
|
|
106
106
|
},
|
|
107
107
|
children: /*#__PURE__*/jsx("span", {
|
|
108
108
|
className: "w-full",
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../app/javascript/src/components/DisconnectedIntegrationsRibbon/index.jsx"],"sourcesContent":["import { Tag } from \"neetoui\";\nimport { isEmpty } from \"ramda\";\nimport { Trans, useTranslation } from \"react-i18next\";\nimport { Link } from \"react-router-dom\";\n\nimport {
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../app/javascript/src/components/DisconnectedIntegrationsRibbon/index.jsx"],"sourcesContent":["import { useState } from \"react\";\n\nimport { Tag } from \"neetoui\";\nimport { isEmpty } from \"ramda\";\nimport { Trans, useTranslation } from \"react-i18next\";\nimport { Link } from \"react-router-dom\";\n\nimport { useFetchDisconnectionAlerts } from \"hooks/reactQuery/useDisconnectionAlertsApi\";\n\nconst IntegrationLinks = ({ alerts, integrationRouteMap }) =>\n alerts.map((alert, index) => {\n const { label, path } = integrationRouteMap[alert.serviceName];\n const linkPath = alert.redirectPath || path;\n\n return (\n <span key={alert.id}>\n {index > 0 && \", \"}\n <Link className=\"font-semibold underline\" to={linkPath}>\n {label}\n </Link>\n </span>\n );\n });\n\nconst DisconnectedIntegrationsRibbon = ({ integrationRouteMap = {} }) => {\n const [isClosed, setIsClosed] = useState(false);\n\n useTranslation();\n\n const { data: { disconnectionAlerts: alerts = [] } = {} } =\n useFetchDisconnectionAlerts();\n\n const knownAlerts = alerts.filter(\n alert => integrationRouteMap[alert.serviceName]\n );\n\n if (isClosed || isEmpty(knownAlerts)) return null;\n\n return (\n <Tag\n className=\"neeto-molecules-sticky-ribbon w-full p-2.5 text-center\"\n data-testid=\"disconnected-integrations-ribbon\"\n size=\"large\"\n style=\"warning\"\n onClose={() => setIsClosed(true)}\n >\n <span className=\"w-full\">\n <Trans\n count={knownAlerts.length}\n defaults=\"Your <integrations /> integration has been disconnected due to a permission issue. Connect it now.\"\n i18nKey=\"neetoIntegrations.disconnectionRibbon.message\"\n components={{\n integrations: (\n <IntegrationLinks\n {...{ integrationRouteMap }}\n alerts={knownAlerts}\n />\n ),\n }}\n />\n </span>\n </Tag>\n );\n};\n\nexport default DisconnectedIntegrationsRibbon;\n"],"names":["IntegrationLinks","_ref","alerts","integrationRouteMap","map","alert","index","_integrationRouteMap$","serviceName","label","path","linkPath","redirectPath","_jsxs","children","_jsx","Link","className","to","id","DisconnectedIntegrationsRibbon","_ref2","_ref2$integrationRout","_useState","useState","_useState2","_slicedToArray","isClosed","setIsClosed","useTranslation","_useFetchDisconnectio","useFetchDisconnectionAlerts","_useFetchDisconnectio2","data","_useFetchDisconnectio3","_useFetchDisconnectio4","disconnectionAlerts","knownAlerts","filter","isEmpty","Tag","size","style","onClose","Trans","count","length","defaults","i18nKey","components","integrations"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,MAAM,GAAAD,IAAA,CAANC,MAAM;IAAEC,mBAAmB,GAAAF,IAAA,CAAnBE,mBAAmB;EAAA,OACrDD,MAAM,CAACE,GAAG,CAAC,UAACC,KAAK,EAAEC,KAAK,EAAK;AAC3B,IAAA,IAAAC,qBAAA,GAAwBJ,mBAAmB,CAACE,KAAK,CAACG,WAAW,CAAC;MAAtDC,KAAK,GAAAF,qBAAA,CAALE,KAAK;MAAE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EAAA;AAAA,IAAA,OAAIF,mBAAmB,CAACE,KAAK,CAACG,WAAW,CAAC;AAAA,EAAA,CACjD,CAAC;EAED,IAAImB,QAAQ,IAAIY,OAAO,CAACF,WAAW,CAAC,EAAE,OAAO,IAAI;EAEjD,oBACEtB,GAAA,CAACyB,GAAG,EAAA;AACFvB,IAAAA,SAAS,EAAC,wDAAwD;AAClE,IAAA,aAAA,EAAY,kCAAkC;AAC9CwB,IAAAA,IAAI,EAAC,OAAO;AACZC,IAAAA,KAAK,EAAC,SAAS;IACfC,OAAO,EAAE,SAATA,OAAOA,GAAA;MAAA,OAAQf,WAAW,CAAC,IAAI,CAAC;IAAA,CAAC;AAAAd,IAAAA,QAAA,eAEjCC,GAAA,CAAA,MAAA,EAAA;AAAME,MAAAA,SAAS,EAAC,QAAQ;MAAAH,QAAA,eACtBC,GAAA,CAAC6B,KAAK,EAAA;QACJC,KAAK,EAAER,WAAW,CAACS,MAAO;AAC1BC,QAAAA,QAAQ,EAAC,oGAAoG;AAC7GC,QAAAA,OAAO,EAAC,+CAA+C;AACvDC,QAAAA,UAAU,EAAE;UACVC,YAAY,eACVnC,GAAA,CAACf,gBAAgB,EAAA;AACTG,YAAAA,mBAAmB,EAAnBA,mBAAmB;AACzBD,YAAAA,MAAM,EAAEmC;WACT;AAEL;OACD;KACG;AAAC,GACJ,CAAC;AAEV;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-integrations-frontend",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.32",
|
|
4
4
|
"description": "UI for integrations in neeto products",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"homepage": "https://github.com/bigbinary/neeto-integrations-nano",
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
"@bigbinary/eslint-plugin-neeto": "1.9.0",
|
|
76
76
|
"@bigbinary/neeto-atoms": "latest",
|
|
77
77
|
"@bigbinary/neeto-cist": "1.0.17",
|
|
78
|
-
"@bigbinary/neeto-commons-frontend": "4.13.
|
|
79
|
-
"@bigbinary/neeto-filters-frontend": "4.3.
|
|
78
|
+
"@bigbinary/neeto-commons-frontend": "4.13.125",
|
|
79
|
+
"@bigbinary/neeto-filters-frontend": "4.3.37",
|
|
80
80
|
"@bigbinary/neeto-icons": "1.20.87",
|
|
81
81
|
"@bigbinary/neeto-molecules": "4.1.72",
|
|
82
82
|
"@bigbinary/neetoui": "8.6.0",
|
|
@@ -189,8 +189,8 @@
|
|
|
189
189
|
"@babel/runtime": "7.29.2",
|
|
190
190
|
"@bigbinary/neeto-atoms": "latest",
|
|
191
191
|
"@bigbinary/neeto-cist": "1.0.17",
|
|
192
|
-
"@bigbinary/neeto-commons-frontend": "4.13.
|
|
193
|
-
"@bigbinary/neeto-filters-frontend": "4.3.
|
|
192
|
+
"@bigbinary/neeto-commons-frontend": "4.13.125",
|
|
193
|
+
"@bigbinary/neeto-filters-frontend": "4.3.37",
|
|
194
194
|
"@bigbinary/neeto-icons": "1.20.87",
|
|
195
195
|
"@bigbinary/neeto-molecules": "4.1.72",
|
|
196
196
|
"@bigbinary/neetoui": "8.6.0",
|