@bigbinary/neeto-integrations-frontend 4.2.2 → 4.2.3
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 +4 -1
- package/dist/Zoom.js.map +1 -1
- package/dist/cjs/Zoom.js +4 -1
- package/dist/cjs/Zoom.js.map +1 -1
- package/dist/cjs/v2/Zoom.js +4 -1
- package/dist/cjs/v2/Zoom.js.map +1 -1
- package/dist/v2/Zoom.js +4 -1
- package/dist/v2/Zoom.js.map +1 -1
- package/package.json +3 -3
- package/typeTemplates-v2/index.d.ts +1 -0
- package/types.d.ts +1 -0
package/dist/.ready
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Built at 2026-11-
|
|
1
|
+
Built at 2026-11-03T19:24:38.748Z
|
package/dist/Zoom.js
CHANGED
|
@@ -30,7 +30,9 @@ var Zoom = function Zoom(_ref) {
|
|
|
30
30
|
_ref$description = _ref.description,
|
|
31
31
|
description = _ref$description === void 0 ? "" : _ref$description,
|
|
32
32
|
_ref$onDisconnect = _ref.onDisconnect,
|
|
33
|
-
onDisconnect = _ref$onDisconnect === void 0 ? noop : _ref$onDisconnect
|
|
33
|
+
onDisconnect = _ref$onDisconnect === void 0 ? noop : _ref$onDisconnect,
|
|
34
|
+
_ref$calloutProps = _ref.calloutProps,
|
|
35
|
+
calloutProps = _ref$calloutProps === void 0 ? {} : _ref$calloutProps;
|
|
34
36
|
var _useTranslation = useTranslation(),
|
|
35
37
|
t = _useTranslation.t;
|
|
36
38
|
var _useState = useState(false),
|
|
@@ -64,6 +66,7 @@ var Zoom = function Zoom(_ref) {
|
|
|
64
66
|
});
|
|
65
67
|
}
|
|
66
68
|
return /*#__PURE__*/jsx(Manage, {
|
|
69
|
+
calloutProps: calloutProps,
|
|
67
70
|
connectUrl: connectUrl,
|
|
68
71
|
isConnected: isConnected,
|
|
69
72
|
isDisconnectAlertOpen: isDisconnectAlertOpen,
|
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, 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 = ({
|
|
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 = ({\n connectUrl = \"\",\n description = \"\",\n onDisconnect = noop,\n calloutProps = {},\n}) => {\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 calloutProps,\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","_ref$calloutProps","calloutProps","_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,EAKJ;AAAA,EAAA,IAAAC,eAAA,GAAAD,IAAA,CAJJE,UAAU;AAAVA,IAAAA,UAAU,GAAAD,eAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,eAAA;IAAAE,gBAAA,GAAAH,IAAA,CACfI,WAAW;AAAXA,IAAAA,WAAW,GAAAD,gBAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,gBAAA;IAAAE,iBAAA,GAAAL,IAAA,CAChBM,YAAY;AAAZA,IAAAA,YAAY,GAAAD,iBAAA,KAAA,MAAA,GAAGE,IAAI,GAAAF,iBAAA;IAAAG,iBAAA,GAAAR,IAAA,CACnBS,YAAY;AAAZA,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AAA;AAAC,GACxC,CAAC;AAEN;;;;"}
|
package/dist/cjs/Zoom.js
CHANGED
|
@@ -32,7 +32,9 @@ var Zoom = function Zoom(_ref) {
|
|
|
32
32
|
_ref$description = _ref.description,
|
|
33
33
|
description = _ref$description === void 0 ? "" : _ref$description,
|
|
34
34
|
_ref$onDisconnect = _ref.onDisconnect,
|
|
35
|
-
onDisconnect = _ref$onDisconnect === void 0 ? neetoCist.noop : _ref$onDisconnect
|
|
35
|
+
onDisconnect = _ref$onDisconnect === void 0 ? neetoCist.noop : _ref$onDisconnect,
|
|
36
|
+
_ref$calloutProps = _ref.calloutProps,
|
|
37
|
+
calloutProps = _ref$calloutProps === void 0 ? {} : _ref$calloutProps;
|
|
36
38
|
var _useTranslation = reactI18next.useTranslation(),
|
|
37
39
|
t = _useTranslation.t;
|
|
38
40
|
var _useState = React.useState(false),
|
|
@@ -66,6 +68,7 @@ var Zoom = function Zoom(_ref) {
|
|
|
66
68
|
});
|
|
67
69
|
}
|
|
68
70
|
return /*#__PURE__*/jsxRuntime.jsx(Manage, {
|
|
71
|
+
calloutProps: calloutProps,
|
|
69
72
|
connectUrl: connectUrl,
|
|
70
73
|
isConnected: isConnected,
|
|
71
74
|
isDisconnectAlertOpen: isDisconnectAlertOpen,
|
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, 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 = ({
|
|
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 = ({\n connectUrl = \"\",\n description = \"\",\n onDisconnect = noop,\n calloutProps = {},\n}) => {\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 calloutProps,\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","_ref$calloutProps","calloutProps","_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,EAKJ;AAAA,EAAA,IAAAC,eAAA,GAAAD,IAAA,CAJJE,UAAU;AAAVA,IAAAA,UAAU,GAAAD,eAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,eAAA;IAAAE,gBAAA,GAAAH,IAAA,CACfI,WAAW;AAAXA,IAAAA,WAAW,GAAAD,gBAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,gBAAA;IAAAE,iBAAA,GAAAL,IAAA,CAChBM,YAAY;AAAZA,IAAAA,YAAY,GAAAD,iBAAA,KAAA,MAAA,GAAGE,cAAI,GAAAF,iBAAA;IAAAG,iBAAA,GAAAR,IAAA,CACnBS,YAAY;AAAZA,IAAAA,YAAY,GAAAD,iBAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,iBAAA;AAEjB,EAAA,IAAAE,eAAA,GAAcC,2BAAc,EAAE;IAAtBC,CAAC,GAAAF,eAAA,CAADE,CAAC;AAET,EAAA,IAAAC,SAAA,GAA0DC,cAAQ,CAAC,KAAK,CAAC;IAAAC,UAAA,GAAAC,cAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAAlEI,IAAAA,qBAAqB,GAAAF,UAAA,CAAA,CAAA,CAAA;AAAEG,IAAAA,wBAAwB,GAAAH,UAAA,CAAA,CAAA,CAAA;AAEtD,EAAA,IAAAI,YAAA,GACEC,sBAAW,EAAE;IAAAC,iBA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A,qBAAqB;AACrBkB,IAAAA,eAAe,EAAfA,eAAe;AACfjB,IAAAA,wBAAwB,EAAxBA,wBAAwB;AAE1B2B,IAAAA,IAAI,EAAEC,QAAS;AACfC,IAAAA,WAAW,EAAC,MAAM;AAClB3C,IAAAA,WAAW,EACTiC,WAAW,gBACTG,cAAA,CAACQ,UAAU,EAAA;AAACC,MAAAA,KAAK,EAAC,OAAO;MAAAP,QAAA,eACvBF,cAAA,CAACU,kBAAK,EAAA;AACJC,QAAAA,UAAU,EAAE;AAAEC,UAAAA,SAAS,eAAEZ,cAAA,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,GAEbxB,WAEH;IACDmD,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/CZ,YAAY,EAAE,SAAdA,YAAYA,GAAA;MAAA,OAAQiC,gBAAgB,EAAE;AAAA,IAAA;AAAC,GACxC,CAAC;AAEN;;;;"}
|
package/dist/cjs/v2/Zoom.js
CHANGED
|
@@ -26,7 +26,9 @@ var Zoom = function Zoom(_ref) {
|
|
|
26
26
|
_ref$description = _ref.description,
|
|
27
27
|
description = _ref$description === void 0 ? "" : _ref$description,
|
|
28
28
|
_ref$onDisconnect = _ref.onDisconnect,
|
|
29
|
-
onDisconnect = _ref$onDisconnect === void 0 ? neetoCist.noop : _ref$onDisconnect
|
|
29
|
+
onDisconnect = _ref$onDisconnect === void 0 ? neetoCist.noop : _ref$onDisconnect,
|
|
30
|
+
_ref$calloutProps = _ref.calloutProps,
|
|
31
|
+
calloutProps = _ref$calloutProps === void 0 ? {} : _ref$calloutProps;
|
|
30
32
|
var _useTranslation = reactI18next.useTranslation(),
|
|
31
33
|
t = _useTranslation.t;
|
|
32
34
|
var _useState = React.useState(false),
|
|
@@ -60,6 +62,7 @@ var Zoom = function Zoom(_ref) {
|
|
|
60
62
|
});
|
|
61
63
|
}
|
|
62
64
|
return /*#__PURE__*/jsxRuntime.jsx(v2_Manage, {
|
|
65
|
+
calloutProps: calloutProps,
|
|
63
66
|
connectUrl: connectUrl,
|
|
64
67
|
isConnected: isConnected,
|
|
65
68
|
isDisconnectAlertOpen: isDisconnectAlertOpen,
|
package/dist/cjs/v2/Zoom.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Zoom.js","sources":["../../../app/javascript/src/v2/components/Integrations/Zoom/index.jsx"],"sourcesContent":["import { useState } from \"react\";\n\nimport { Spinner } from \"@bigbinary/neeto-atoms\";\nimport { isPresent, noop } from \"neetocist\";\nimport { Zoom as ZoomIcon } from \"neetoicons/misc\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nimport { useDestroyZoom, useShowZoom } from \"hooks/reactQuery/useZoomApi\";\n\nimport ManageIntegrations from \"../../commons/Manage\";\n\nconst Zoom = ({
|
|
1
|
+
{"version":3,"file":"Zoom.js","sources":["../../../app/javascript/src/v2/components/Integrations/Zoom/index.jsx"],"sourcesContent":["import { useState } from \"react\";\n\nimport { Spinner } from \"@bigbinary/neeto-atoms\";\nimport { isPresent, noop } from \"neetocist\";\nimport { Zoom as ZoomIcon } from \"neetoicons/misc\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nimport { useDestroyZoom, useShowZoom } from \"hooks/reactQuery/useZoomApi\";\n\nimport ManageIntegrations from \"../../commons/Manage\";\n\nconst Zoom = ({\n connectUrl = \"\",\n description = \"\",\n onDisconnect = noop,\n calloutProps = {},\n}) => {\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 calloutProps,\n connectUrl,\n isConnected,\n isDisconnectAlertOpen,\n isDisconnecting,\n setIsDisconnectAlertOpen,\n }}\n Icon={ZoomIcon}\n integration=\"zoom\"\n description={\n isConnected ? (\n <Trans\n components={{ underline: <u className=\"font-medium\" /> }}\n i18nKey=\"neetoIntegrations.zoom.account\"\n values={{ email }}\n />\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","_ref$calloutProps","calloutProps","_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","Trans","components","underline","i18nKey","values","title","onClose"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAWA,IAAMA,IAAI,GAAG,SAAPA,IAAIA,CAAAC,IAAA,EAKJ;AAAA,EAAA,IAAAC,eAAA,GAAA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AM;KACjB,CAAC,GAEFxB,WAEH;IACDiD,KAAK,EACHhB,WAAW,GACPzB,CAAC,CAAC,kCAAkC,CAAC,GACrCA,CAAC,CAAC,gCAAgC,CACvC;IACD0C,OAAO,EAAE,SAATA,OAAOA,GAAA;MAAA,OAAQpC,wBAAwB,CAAC,KAAK,CAAC;IAAA,CAAC;IAC/CZ,YAAY,EAAE,SAAdA,YAAYA,GAAA;MAAA,OAAQiC,gBAAgB,EAAE;AAAA,IAAA;AAAC,GACxC,CAAC;AAEN;;;;"}
|
package/dist/v2/Zoom.js
CHANGED
|
@@ -24,7 +24,9 @@ var Zoom = function Zoom(_ref) {
|
|
|
24
24
|
_ref$description = _ref.description,
|
|
25
25
|
description = _ref$description === void 0 ? "" : _ref$description,
|
|
26
26
|
_ref$onDisconnect = _ref.onDisconnect,
|
|
27
|
-
onDisconnect = _ref$onDisconnect === void 0 ? noop : _ref$onDisconnect
|
|
27
|
+
onDisconnect = _ref$onDisconnect === void 0 ? noop : _ref$onDisconnect,
|
|
28
|
+
_ref$calloutProps = _ref.calloutProps,
|
|
29
|
+
calloutProps = _ref$calloutProps === void 0 ? {} : _ref$calloutProps;
|
|
28
30
|
var _useTranslation = useTranslation(),
|
|
29
31
|
t = _useTranslation.t;
|
|
30
32
|
var _useState = useState(false),
|
|
@@ -58,6 +60,7 @@ var Zoom = function Zoom(_ref) {
|
|
|
58
60
|
});
|
|
59
61
|
}
|
|
60
62
|
return /*#__PURE__*/jsx(Manage, {
|
|
63
|
+
calloutProps: calloutProps,
|
|
61
64
|
connectUrl: connectUrl,
|
|
62
65
|
isConnected: isConnected,
|
|
63
66
|
isDisconnectAlertOpen: isDisconnectAlertOpen,
|
package/dist/v2/Zoom.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Zoom.js","sources":["../../app/javascript/src/v2/components/Integrations/Zoom/index.jsx"],"sourcesContent":["import { useState } from \"react\";\n\nimport { Spinner } from \"@bigbinary/neeto-atoms\";\nimport { isPresent, noop } from \"neetocist\";\nimport { Zoom as ZoomIcon } from \"neetoicons/misc\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nimport { useDestroyZoom, useShowZoom } from \"hooks/reactQuery/useZoomApi\";\n\nimport ManageIntegrations from \"../../commons/Manage\";\n\nconst Zoom = ({
|
|
1
|
+
{"version":3,"file":"Zoom.js","sources":["../../app/javascript/src/v2/components/Integrations/Zoom/index.jsx"],"sourcesContent":["import { useState } from \"react\";\n\nimport { Spinner } from \"@bigbinary/neeto-atoms\";\nimport { isPresent, noop } from \"neetocist\";\nimport { Zoom as ZoomIcon } from \"neetoicons/misc\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nimport { useDestroyZoom, useShowZoom } from \"hooks/reactQuery/useZoomApi\";\n\nimport ManageIntegrations from \"../../commons/Manage\";\n\nconst Zoom = ({\n connectUrl = \"\",\n description = \"\",\n onDisconnect = noop,\n calloutProps = {},\n}) => {\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 calloutProps,\n connectUrl,\n isConnected,\n isDisconnectAlertOpen,\n isDisconnecting,\n setIsDisconnectAlertOpen,\n }}\n Icon={ZoomIcon}\n integration=\"zoom\"\n description={\n isConnected ? (\n <Trans\n components={{ underline: <u className=\"font-medium\" /> }}\n i18nKey=\"neetoIntegrations.zoom.account\"\n values={{ email }}\n />\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","_ref$calloutProps","calloutProps","_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","Trans","components","underline","i18nKey","values","title","onClose"],"mappings":";;;;;;;;;;;;;;;;;;;;AAWA,IAAMA,IAAI,GAAG,SAAPA,IAAIA,CAAAC,IAAA,EAKJ;AAAA,EAAA,IAAAC,eAAA,GAAAD,IAAA,CAJJE,UAAU;AAAVA,IAAAA,UAAU,GAAAD,eAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,eAAA;IAAAE,gBAAA,GAAAH,IAAA,CACfI,WAAW;AAAXA,IAAAA,WAAW,GAAAD,gBAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,gBAAA;IAAAE,iBAAA,GAAAL,IAAA,CAChBM,YAAY;AAAZA,IAAAA,YAAY,GAAAD,iBAAA,KAAA,MAAA,GAAGE,IAAI,GAAAF,iBAAA;IAAAG,iBAAA,GAAAR,IAAA,CACnBS,YAAY;AAAZA,IAAAA,YAAY,GAAAD,iBAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,iBAAA;AAEjB,EAAA,IAAAE,eAAA,GAAcC,cAAc,EAAE;IAAtBC,CAAC,GAAAF,eAAA,CAADE,CAAC;AAET,EAAA,IAAAC,SAAA,GAA0DC,QAAQ,C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A,eAC7DF,GAAA,CAACG,OAAO,EAAA,EAAE;AAAC,KACR,CAAC;AAEV,EAAA;EAEA,oBACEH,GAAA,CAACI,MAAkB,EAAA;AAEfnC,IAAAA,YAAY,EAAZA,YAAY;AACZP,IAAAA,UAAU,EAAVA,UAAU;AACVmC,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;AAClB3C,IAAAA,WAAW,EACTiC,WAAW,gBACTG,GAAA,CAACQ,KAAK,EAAA;AACJC,MAAAA,UAAU,EAAE;AAAEC,QAAAA,SAAS,eAAEV,GAAA,CAAA,GAAA,EAAA;AAAGC,UAAAA,SAAS,EAAC;SAAe;OAAI;AACzDU,MAAAA,OAAO,EAAC,gCAAgC;AACxCC,MAAAA,MAAM,EAAE;AAAExB,QAAAA,KAAK,EAALA;AAAM;KACjB,CAAC,GAEFxB,WAEH;IACDiD,KAAK,EACHhB,WAAW,GACPzB,CAAC,CAAC,kCAAkC,CAAC,GACrCA,CAAC,CAAC,gCAAgC,CACvC;IACD0C,OAAO,EAAE,SAATA,OAAOA,GAAA;MAAA,OAAQpC,wBAAwB,CAAC,KAAK,CAAC;IAAA,CAAC;IAC/CZ,YAAY,EAAE,SAAdA,YAAYA,GAAA;MAAA,OAAQiC,gBAAgB,EAAE;AAAA,IAAA;AAAC,GACxC,CAAC;AAEN;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-integrations-frontend",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.3",
|
|
4
4
|
"description": "UI for integrations in neeto products",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"homepage": "https://github.com/bigbinary/neeto-integrations-nano",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"@bigbinary/neeto-atoms": "1.1.2",
|
|
77
77
|
"@bigbinary/neeto-cist": "1.0.17",
|
|
78
78
|
"@bigbinary/neeto-commons-frontend": "4.14.8",
|
|
79
|
-
"@bigbinary/neeto-filters-frontend": "4.7.
|
|
79
|
+
"@bigbinary/neeto-filters-frontend": "4.7.1",
|
|
80
80
|
"@bigbinary/neeto-icons": "1.20.89",
|
|
81
81
|
"@bigbinary/neeto-molecules": "5.10.1",
|
|
82
82
|
"@bigbinary/neetoui": "8.8.3",
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
"@bigbinary/neeto-atoms": "1.1.2",
|
|
191
191
|
"@bigbinary/neeto-cist": "1.0.17",
|
|
192
192
|
"@bigbinary/neeto-commons-frontend": "4.14.8",
|
|
193
|
-
"@bigbinary/neeto-filters-frontend": "4.7.
|
|
193
|
+
"@bigbinary/neeto-filters-frontend": "4.7.1",
|
|
194
194
|
"@bigbinary/neeto-icons": "1.20.89",
|
|
195
195
|
"@bigbinary/neeto-molecules": "5.10.1",
|
|
196
196
|
"@bigbinary/neetoui": "8.8.3",
|