@bigbinary/neeto-integrations-frontend 4.0.30 → 4.0.31

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 CHANGED
@@ -1 +1 @@
1
- Built at 2026-05-05T03:21:12.635Z
1
+ Built at 2026-05-05T12:29:51.162Z
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(Trans, {
75
- components: {
76
- underline: /*#__PURE__*/jsx("u", {
77
- className: "font-medium"
78
- })
79
- },
80
- i18nKey: "neetoIntegrations.zoom.account",
81
- values: {
82
- email: email
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 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","_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":";;;;;;;;;;;;;;;;;;;;;;;;;;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,CAAAH,SAAA,EAAA,CAAA,CAAA;AAAlEI,IAAAA,qBAAqB,GAAAF,UAAA,CAAA,CAAA,CAAA;AAAEG,IAAAA,wBAAwB,GAAAH,UAAA,CAAA,CAAA,CAAA;AAEt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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,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,GAEFtB,WAEH;IACD+C,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/CV,YAAY,EAAE,SAAdA,YAAYA,GAAA;MAAA,OAAQ+B,gBAAgB,EAAE;AAAA,IAAA;AAAC,GACxC,CAAC;AAEN;;;;"}
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,UA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ACrCA,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(reactI18next.Trans, {
77
- components: {
78
- underline: /*#__PURE__*/jsxRuntime.jsx("u", {
79
- className: "font-medium"
80
- })
81
- },
82
- i18nKey: "neetoIntegrations.zoom.account",
83
- values: {
84
- email: email
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() {
@@ -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 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","_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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;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,cAAI,GAAAF,iBAAA;AACpE,EAAA,IAAAG,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,I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,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,cAAA,CAACQ,kBAAK,EAAA;AACJC,MAAAA,UAAU,EAAE;AAAEC,QAAAA,SAAS,eAAEV,cAAA,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,GAEFtB,WAEH;IACD+C,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/CV,YAAY,EAAE,SAAdA,YAAYA,GAAA;MAAA,OAAQ+B,gBAAgB,EAAE;AAAA,IAAA;AAAC,GACxC,CAAC;AAEN;;;;"}
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,IAA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EH;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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-integrations-frontend",
3
- "version": "4.0.30",
3
+ "version": "4.0.31",
4
4
  "description": "UI for integrations in neeto products",
5
5
  "license": "UNLICENSED",
6
6
  "homepage": "https://github.com/bigbinary/neeto-integrations-nano",