@bigbinary/neeto-integrations-frontend 4.0.46 → 4.0.47
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/app/javascript/src/translations/en.json +3 -3
- package/dist/.ready +1 -1
- package/dist/cjs/index.js +6 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/v2/DisconnectedIntegrationsRibbon.js +8 -2
- package/dist/cjs/v2/DisconnectedIntegrationsRibbon.js.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/v2/DisconnectedIntegrationsRibbon.js +8 -2
- package/dist/v2/DisconnectedIntegrationsRibbon.js.map +1 -1
- package/package.json +3 -3
|
@@ -167,9 +167,9 @@
|
|
|
167
167
|
}
|
|
168
168
|
},
|
|
169
169
|
"disconnectionRibbon": {
|
|
170
|
-
"message_one": "Your <integrations /> integration has been disconnected due to a permission issue. Connect it now
|
|
171
|
-
"message_other": "Your <integrations /> integrations have been disconnected due to a permission issue.
|
|
172
|
-
"non_permission_message_one": "Your <integrations /> integration has been disconnected. Connect it now
|
|
170
|
+
"message_one": "Your <integrations /> integration has been disconnected due to a permission issue. <connectLink>Connect it now</connectLink>.",
|
|
171
|
+
"message_other": "Your <integrations /> integrations have been disconnected due to a permission issue.",
|
|
172
|
+
"non_permission_message_one": "Your <integrations /> integration has been disconnected. <connectLink>Connect it now</connectLink>."
|
|
173
173
|
},
|
|
174
174
|
"google": {
|
|
175
175
|
"connect": {
|
package/dist/.ready
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Built at 2026-09-
|
|
1
|
+
Built at 2026-09-10T19:24:26.100Z
|
package/dist/cjs/index.js
CHANGED
|
@@ -113,6 +113,8 @@ var DisconnectedIntegrationsRibbon = function DisconnectedIntegrationsRibbon(_re
|
|
|
113
113
|
return integrationRouteMap[alert.serviceName];
|
|
114
114
|
});
|
|
115
115
|
if (isClosed || ramda.isEmpty(knownAlerts)) return null;
|
|
116
|
+
var singleAlert = knownAlerts.length === 1 ? knownAlerts[0] : null;
|
|
117
|
+
var connectPath = singleAlert ? singleAlert.redirectPath || integrationRouteMap[singleAlert.serviceName].path : "";
|
|
116
118
|
return /*#__PURE__*/jsxRuntime.jsx(Tag, {
|
|
117
119
|
className: "neeto-molecules-sticky-ribbon w-full p-2.5 text-center",
|
|
118
120
|
"data-testid": "disconnected-integrations-ribbon",
|
|
@@ -130,6 +132,10 @@ var DisconnectedIntegrationsRibbon = function DisconnectedIntegrationsRibbon(_re
|
|
|
130
132
|
integrations: /*#__PURE__*/jsxRuntime.jsx(IntegrationLinks, {
|
|
131
133
|
integrationRouteMap: integrationRouteMap,
|
|
132
134
|
alerts: knownAlerts
|
|
135
|
+
}),
|
|
136
|
+
connectLink: /*#__PURE__*/jsxRuntime.jsx(reactRouterDom.Link, {
|
|
137
|
+
className: "font-semibold underline",
|
|
138
|
+
to: connectPath
|
|
133
139
|
})
|
|
134
140
|
},
|
|
135
141
|
i18nKey: getDisconnectionRibbonI18nKey(knownAlerts, integrationRouteMap)
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../app/javascript/src/components/DisconnectedIntegrationsRibbon/utils.js","../../app/javascript/src/components/DisconnectedIntegrationsRibbon/index.jsx"],"sourcesContent":["import { t } from \"i18next\";\n\nconst getHasOnlyUPIIntegration = alerts =>\n alerts.length === 1 && alerts[0].serviceName === \"eupi\";\n\nexport const getDisconnectionRibbonDefaultMessage = alerts =>\n getHasOnlyUPIIntegration(alerts)\n ? t(\"neetoIntegrations.disconnectionRibbon.non_permission_message\", {\n count: alerts.length,\n })\n : t(\"neetoIntegrations.disconnectionRibbon.message\", {\n count: alerts.length,\n });\n\nexport const getDisconnectionRibbonI18nKey = (alerts, integrationRouteMap) => {\n const hasOnlyUPIIntegration =\n getHasOnlyUPIIntegration(alerts) && integrationRouteMap.eupi;\n\n return hasOnlyUPIIntegration\n ? \"neetoIntegrations.disconnectionRibbon.non_permission_message\"\n : \"neetoIntegrations.disconnectionRibbon.message\";\n};\n","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\nimport {\n getDisconnectionRibbonDefaultMessage,\n getDisconnectionRibbonI18nKey,\n} from \"./utils\";\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={getDisconnectionRibbonDefaultMessage(knownAlerts)}\n components={{\n integrations: (\n <IntegrationLinks\n {...{ integrationRouteMap }}\n alerts={knownAlerts}\n />\n ),\n }}\n i18nKey={getDisconnectionRibbonI18nKey(\n knownAlerts,\n integrationRouteMap\n )}\n />\n </span>\n </Tag>\n );\n};\n\nexport default DisconnectedIntegrationsRibbon;\n"],"names":["getHasOnlyUPIIntegration","alerts","length","serviceName","getDisconnectionRibbonDefaultMessage","t","count","getDisconnectionRibbonI18nKey","integrationRouteMap","hasOnlyUPIIntegration","eupi","IntegrationLinks","_ref","map","alert","index","_integrationRouteMap$","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","defaults","components","integrations","i18nKey"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAMA,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAGC,MAAM,EAAA;AAAA,EAAA,OACrCA,MAAM,CAACC,MAAM,KAAK,CAAC,IAAID,MAAM,CAAC,CAAC,CAAC,CAACE,WAAW,KAAK,MAAM;AAAA,CAAA;AAElD,IAAMC,oCAAoC,GAAG,SAAvCA,oCAAoCA,CAAGH,MAAM,EAAA;EAAA,OACxDD,wBAAwB,CAACC,MAAM,CAAC,GAC5BI,SAAC,CAAC,8DAA8D,EAAE;IAChEC,KAAK,EAAEL,MAAM,CAACC;AAChB,GAAC,CAAC,GACFG,SAAC,CAAC,+CAA+C,EAAE;IACjDC,KAAK,EAAEL,MAAM,CAACC;AAChB,GAAC,CAAC;AAAA,CAAA;AAED,IAAMK,6BAA6B,GAAG,SAAhCA,6BAA6BA,CAAIN,MAAM,EAAEO,mBAAmB,EAAK;EAC5E,IAAMC,qBAAqB,GACzBT,wBAAwB,CAACC,MAAM,CAAC,IAAIO,mBAAmB,CAACE,IAAI;AAE9D,EAAA,OAAOD,qBAAqB,GACxB,8DAA8D,GAC9D,+CAA+C;AACrD,CAAC;;ACPD,IAAME,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMX,MAAM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,IAAAA,sBAAA,GAAAF,sBAAA,KAAA,MAAA,GAAyC,EAAE,GAAAA,sBAAA;IAAAG,sBAAA,GAAAD,sBAAA,CAAvCE,mBAAmB;AAAE3C,IAAAA,MAAM,GAAA0C,sBAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,sBAAA;AAGhD,EAAA,IAAME,WAAW,GAAG5C,MAAM,CAAC6C,MAAM,CAC/B,UAAAhC,KAAK,EAAA;AAAA,IAAA,OAAIN,mBAAmB,CAACM,KAAK,CAACX,WAAW,CAAC;AAAA,EAAA,CACjD,CAAC;EAED,IAAIgC,QAAQ,IAAIY,aAAO,CAACF,WAAW,CAAC,EAAE,OAAO,IAAI;
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../app/javascript/src/components/DisconnectedIntegrationsRibbon/utils.js","../../app/javascript/src/components/DisconnectedIntegrationsRibbon/index.jsx"],"sourcesContent":["import { t } from \"i18next\";\n\nconst getHasOnlyUPIIntegration = alerts =>\n alerts.length === 1 && alerts[0].serviceName === \"eupi\";\n\nexport const getDisconnectionRibbonDefaultMessage = alerts =>\n getHasOnlyUPIIntegration(alerts)\n ? t(\"neetoIntegrations.disconnectionRibbon.non_permission_message\", {\n count: alerts.length,\n })\n : t(\"neetoIntegrations.disconnectionRibbon.message\", {\n count: alerts.length,\n });\n\nexport const getDisconnectionRibbonI18nKey = (alerts, integrationRouteMap) => {\n const hasOnlyUPIIntegration =\n getHasOnlyUPIIntegration(alerts) && integrationRouteMap.eupi;\n\n return hasOnlyUPIIntegration\n ? \"neetoIntegrations.disconnectionRibbon.non_permission_message\"\n : \"neetoIntegrations.disconnectionRibbon.message\";\n};\n","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\nimport {\n getDisconnectionRibbonDefaultMessage,\n getDisconnectionRibbonI18nKey,\n} from \"./utils\";\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 const singleAlert = knownAlerts.length === 1 ? knownAlerts[0] : null;\n const connectPath = singleAlert\n ? singleAlert.redirectPath ||\n integrationRouteMap[singleAlert.serviceName].path\n : \"\";\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={getDisconnectionRibbonDefaultMessage(knownAlerts)}\n components={{\n integrations: (\n <IntegrationLinks\n {...{ integrationRouteMap }}\n alerts={knownAlerts}\n />\n ),\n connectLink: (\n <Link className=\"font-semibold underline\" to={connectPath} />\n ),\n }}\n i18nKey={getDisconnectionRibbonI18nKey(\n knownAlerts,\n integrationRouteMap\n )}\n />\n </span>\n </Tag>\n );\n};\n\nexport default DisconnectedIntegrationsRibbon;\n"],"names":["getHasOnlyUPIIntegration","alerts","length","serviceName","getDisconnectionRibbonDefaultMessage","t","count","getDisconnectionRibbonI18nKey","integrationRouteMap","hasOnlyUPIIntegration","eupi","IntegrationLinks","_ref","map","alert","index","_integrationRouteMap$","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","singleAlert","connectPath","Tag","size","style","onClose","Trans","defaults","components","integrations","connectLink","i18nKey"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAMA,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAGC,MAAM,EAAA;AAAA,EAAA,OACrCA,MAAM,CAACC,MAAM,KAAK,CAAC,IAAID,MAAM,CAAC,CAAC,CAAC,CAACE,WAAW,KAAK,MAAM;AAAA,CAAA;AAElD,IAAMC,oCAAoC,GAAG,SAAvCA,oCAAoCA,CAAGH,MAAM,EAAA;EAAA,OACxDD,wBAAwB,CAACC,MAAM,CAAC,GAC5BI,SAAC,CAAC,8DAA8D,EAAE;IAChEC,KAAK,EAAEL,MAAM,CAACC;AAChB,GAAC,CAAC,GACFG,SAAC,CAAC,+CAA+C,EAAE;IACjDC,KAAK,EAAEL,MAAM,CAACC;AAChB,GAAC,CAAC;AAAA,CAAA;AAED,IAAMK,6BAA6B,GAAG,SAAhCA,6BAA6BA,CAAIN,MAAM,EAAEO,mBAAmB,EAAK;EAC5E,IAAMC,qBAAqB,GACzBT,wBAAwB,CAACC,MAAM,CAAC,IAAIO,mBAAmB,CAACE,IAAI;AAE9D,EAAA,OAAOD,qBAAqB,GACxB,8DAA8D,GAC9D,+CAA+C;AACrD,CAAC;;ACPD,IAAME,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMX,MAAM,GAAAW,IAAA,CAANX,MAAM;IAAEO,mBAAmB,GAAAI,IAAA,CAAnBJ,mBAAmB;EAAA,OACrDP,MAAM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ACrB,CACF;UACDa,WAAW,eACTnC,cAAA,CAACC,mBAAI,EAAA;AAACC,YAAAA,SAAS,EAAC,yBAAyB;AAACC,YAAAA,EAAE,EAAEuB;WAAc;SAE9D;AACFU,QAAAA,OAAO,EAAEpD,6BAA6B,CACpCsC,WAAW,EACXrC,mBACF;OACD;KACG;AAAC,GACJ,CAAC;AAEV;;;;;;;;;;;;;;;;;;"}
|
|
@@ -44,6 +44,8 @@ var DisconnectedIntegrationsRibbon = function DisconnectedIntegrationsRibbon(_re
|
|
|
44
44
|
return integrationRouteMap[alert.serviceName];
|
|
45
45
|
});
|
|
46
46
|
if (ramda.isEmpty(knownAlerts)) return null;
|
|
47
|
+
var singleAlert = knownAlerts.length === 1 ? knownAlerts[0] : null;
|
|
48
|
+
var connectPath = singleAlert ? singleAlert.redirectPath || integrationRouteMap[singleAlert.serviceName].path : "";
|
|
47
49
|
return /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Badge, {
|
|
48
50
|
className: "sticky top-0 z-50 w-full p-2.5 text-center",
|
|
49
51
|
"data-testid": "disconnected-integrations-ribbon",
|
|
@@ -58,14 +60,18 @@ var DisconnectedIntegrationsRibbon = function DisconnectedIntegrationsRibbon(_re
|
|
|
58
60
|
className: "w-full",
|
|
59
61
|
children: /*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
|
|
60
62
|
count: knownAlerts.length,
|
|
61
|
-
defaults: "Your <integrations /> integration has been disconnected due to a permission issue. Connect it now.",
|
|
62
63
|
i18nKey: "neetoIntegrations.disconnectionRibbon.message",
|
|
63
64
|
components: {
|
|
64
65
|
integrations: /*#__PURE__*/jsxRuntime.jsx(IntegrationLinks, {
|
|
65
66
|
integrationRouteMap: integrationRouteMap,
|
|
66
67
|
alerts: knownAlerts
|
|
68
|
+
}),
|
|
69
|
+
connectLink: /*#__PURE__*/jsxRuntime.jsx(reactRouterDom.Link, {
|
|
70
|
+
className: "font-semibold underline",
|
|
71
|
+
to: connectPath
|
|
67
72
|
})
|
|
68
|
-
}
|
|
73
|
+
},
|
|
74
|
+
defaults: singleAlert ? "Your <integrations /> integration has been disconnected due to a permission issue. <connectLink>Connect it now</connectLink>." : "Your <integrations /> integrations have been disconnected due to a permission issue."
|
|
69
75
|
})
|
|
70
76
|
})
|
|
71
77
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DisconnectedIntegrationsRibbon.js","sources":["../../../app/javascript/src/v2/components/DisconnectedIntegrationsRibbon/index.jsx"],"sourcesContent":["import { Badge } from \"@bigbinary/neeto-atoms\";\nimport { isEmpty } from \"ramda\";\nimport { Trans, useTranslation } from \"react-i18next\";\nimport { Link } from \"react-router-dom\";\n\nimport {\n useFetchDisconnectionAlerts,\n useDismissDisconnectionAlerts,\n} 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 useTranslation();\n\n const { data: { disconnectionAlerts: alerts = [] } = {} } =\n useFetchDisconnectionAlerts();\n\n const { mutate: dismissAlerts } = useDismissDisconnectionAlerts();\n\n const knownAlerts = alerts.filter(\n alert => integrationRouteMap[alert.serviceName]\n );\n\n if (isEmpty(knownAlerts)) return null;\n\n return (\n <Badge\n className=\"sticky top-0 z-50 w-full p-2.5 text-center\"\n data-testid=\"disconnected-integrations-ribbon\"\n size=\"lg\"\n variant=\"amber\"\n onDismiss={() => dismissAlerts(knownAlerts.map(alert => alert.id))}\n >\n <span className=\"w-full\">\n <Trans\n count={knownAlerts.length}\n
|
|
1
|
+
{"version":3,"file":"DisconnectedIntegrationsRibbon.js","sources":["../../../app/javascript/src/v2/components/DisconnectedIntegrationsRibbon/index.jsx"],"sourcesContent":["import { Badge } from \"@bigbinary/neeto-atoms\";\nimport { isEmpty } from \"ramda\";\nimport { Trans, useTranslation } from \"react-i18next\";\nimport { Link } from \"react-router-dom\";\n\nimport {\n useFetchDisconnectionAlerts,\n useDismissDisconnectionAlerts,\n} 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 useTranslation();\n\n const { data: { disconnectionAlerts: alerts = [] } = {} } =\n useFetchDisconnectionAlerts();\n\n const { mutate: dismissAlerts } = useDismissDisconnectionAlerts();\n\n const knownAlerts = alerts.filter(\n alert => integrationRouteMap[alert.serviceName]\n );\n\n if (isEmpty(knownAlerts)) return null;\n\n const singleAlert = knownAlerts.length === 1 ? knownAlerts[0] : null;\n const connectPath = singleAlert\n ? singleAlert.redirectPath ||\n integrationRouteMap[singleAlert.serviceName].path\n : \"\";\n\n return (\n <Badge\n className=\"sticky top-0 z-50 w-full p-2.5 text-center\"\n data-testid=\"disconnected-integrations-ribbon\"\n size=\"lg\"\n variant=\"amber\"\n onDismiss={() => dismissAlerts(knownAlerts.map(alert => alert.id))}\n >\n <span className=\"w-full\">\n <Trans\n count={knownAlerts.length}\n i18nKey=\"neetoIntegrations.disconnectionRibbon.message\"\n components={{\n integrations: (\n <IntegrationLinks\n {...{ integrationRouteMap }}\n alerts={knownAlerts}\n />\n ),\n connectLink: (\n <Link className=\"font-semibold underline\" to={connectPath} />\n ),\n }}\n defaults={\n singleAlert\n ? \"Your <integrations /> integration has been disconnected due to a permission issue. <connectLink>Connect it now</connectLink>.\"\n : \"Your <integrations /> integrations have been disconnected due to a permission issue.\"\n }\n />\n </span>\n </Badge>\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","useTranslation","_useFetchDisconnectio","useFetchDisconnectionAlerts","_useFetchDisconnectio2","data","_useFetchDisconnectio3","_useFetchDisconnectio4","disconnectionAlerts","_useDismissDisconnect","useDismissDisconnectionAlerts","dismissAlerts","mutate","knownAlerts","filter","isEmpty","singleAlert","length","connectPath","Badge","size","variant","onDismiss","Trans","count","i18nKey","components","integrations","connectLink","defaults"],"mappings":";;;;;;;;;;;;;;AAUA,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;MAAEC,IAAI,GAAAH,qBAAA,CAAJG,IAAI;AACnB,IAAA,IAAMC,QAAQ,GAAGN,KAAK,CAACO,YAAY,IAAIF,IAAI;AAE3C,IAAA,oBACEG,eAAA,CAAA,MAAA,EAAA;MAAAC,QAAA,EAAA,CACGR,KAAK,GAAG,CAAC,IAAI,IAAI,eAClBS,cAAA,CAACC,mBAAI,EAAA;AAACC,QAAAA,SAAS,EAAC,yBAAyB;AAACC,QAAAA,EAAE,EAAEP,QAAS;AAAAG,QAAAA,QAAA,EACpDL;AAAK,OACF,CAAC;KAAA,EAJEJ,KAAK,CAACc,EAKX,CAAC;AAEX,EAAA,C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AAI,EAAC,IAAI;AACTC,IAAAA,OAAO,EAAC,OAAO;IACfC,SAAS,EAAE,SAAXA,SAASA,GAAA;AAAA,MAAA,OAAQX,aAAa,CAACE,WAAW,CAAC/B,GAAG,CAAC,UAAAC,KAAK,EAAA;QAAA,OAAIA,KAAK,CAACc,EAAE;AAAA,MAAA,CAAA,CAAC,CAAC;IAAA,CAAC;AAAAL,IAAAA,QAAA,eAEnEC,cAAA,CAAA,MAAA,EAAA;AAAME,MAAAA,SAAS,EAAC,QAAQ;MAAAH,QAAA,eACtBC,cAAA,CAAC8B,kBAAK,EAAA;QACJC,KAAK,EAAEX,WAAW,CAACI,MAAO;AAC1BQ,QAAAA,OAAO,EAAC,+CAA+C;AACvDC,QAAAA,UAAU,EAAE;UACVC,YAAY,eACVlC,cAAA,CAACf,gBAAgB,EAAA;AACTG,YAAAA,mBAAmB,EAAnBA,mBAAmB;AACzBD,YAAAA,MAAM,EAAEiC;AAAY,WACrB,CACF;UACDe,WAAW,eACTnC,cAAA,CAACC,mBAAI,EAAA;AAACC,YAAAA,SAAS,EAAC,yBAAyB;AAACC,YAAAA,EAAE,EAAEsB;WAAc;SAE9D;AACFW,QAAAA,QAAQ,EACNb,WAAW,GACP,+HAA+H,GAC/H;OAEP;KACG;AAAC,GACF,CAAC;AAEZ;;;;"}
|
package/dist/index.js
CHANGED
|
@@ -111,6 +111,8 @@ var DisconnectedIntegrationsRibbon = function DisconnectedIntegrationsRibbon(_re
|
|
|
111
111
|
return integrationRouteMap[alert.serviceName];
|
|
112
112
|
});
|
|
113
113
|
if (isClosed || isEmpty(knownAlerts)) return null;
|
|
114
|
+
var singleAlert = knownAlerts.length === 1 ? knownAlerts[0] : null;
|
|
115
|
+
var connectPath = singleAlert ? singleAlert.redirectPath || integrationRouteMap[singleAlert.serviceName].path : "";
|
|
114
116
|
return /*#__PURE__*/jsx(Tag, {
|
|
115
117
|
className: "neeto-molecules-sticky-ribbon w-full p-2.5 text-center",
|
|
116
118
|
"data-testid": "disconnected-integrations-ribbon",
|
|
@@ -128,6 +130,10 @@ var DisconnectedIntegrationsRibbon = function DisconnectedIntegrationsRibbon(_re
|
|
|
128
130
|
integrations: /*#__PURE__*/jsx(IntegrationLinks, {
|
|
129
131
|
integrationRouteMap: integrationRouteMap,
|
|
130
132
|
alerts: knownAlerts
|
|
133
|
+
}),
|
|
134
|
+
connectLink: /*#__PURE__*/jsx(Link, {
|
|
135
|
+
className: "font-semibold underline",
|
|
136
|
+
to: connectPath
|
|
131
137
|
})
|
|
132
138
|
},
|
|
133
139
|
i18nKey: getDisconnectionRibbonI18nKey(knownAlerts, integrationRouteMap)
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../app/javascript/src/components/DisconnectedIntegrationsRibbon/utils.js","../app/javascript/src/components/DisconnectedIntegrationsRibbon/index.jsx"],"sourcesContent":["import { t } from \"i18next\";\n\nconst getHasOnlyUPIIntegration = alerts =>\n alerts.length === 1 && alerts[0].serviceName === \"eupi\";\n\nexport const getDisconnectionRibbonDefaultMessage = alerts =>\n getHasOnlyUPIIntegration(alerts)\n ? t(\"neetoIntegrations.disconnectionRibbon.non_permission_message\", {\n count: alerts.length,\n })\n : t(\"neetoIntegrations.disconnectionRibbon.message\", {\n count: alerts.length,\n });\n\nexport const getDisconnectionRibbonI18nKey = (alerts, integrationRouteMap) => {\n const hasOnlyUPIIntegration =\n getHasOnlyUPIIntegration(alerts) && integrationRouteMap.eupi;\n\n return hasOnlyUPIIntegration\n ? \"neetoIntegrations.disconnectionRibbon.non_permission_message\"\n : \"neetoIntegrations.disconnectionRibbon.message\";\n};\n","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\nimport {\n getDisconnectionRibbonDefaultMessage,\n getDisconnectionRibbonI18nKey,\n} from \"./utils\";\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={getDisconnectionRibbonDefaultMessage(knownAlerts)}\n components={{\n integrations: (\n <IntegrationLinks\n {...{ integrationRouteMap }}\n alerts={knownAlerts}\n />\n ),\n }}\n i18nKey={getDisconnectionRibbonI18nKey(\n knownAlerts,\n integrationRouteMap\n )}\n />\n </span>\n </Tag>\n );\n};\n\nexport default DisconnectedIntegrationsRibbon;\n"],"names":["getHasOnlyUPIIntegration","alerts","length","serviceName","getDisconnectionRibbonDefaultMessage","t","count","getDisconnectionRibbonI18nKey","integrationRouteMap","hasOnlyUPIIntegration","eupi","IntegrationLinks","_ref","map","alert","index","_integrationRouteMap$","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","defaults","components","integrations","i18nKey"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAMA,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAGC,MAAM,EAAA;AAAA,EAAA,OACrCA,MAAM,CAACC,MAAM,KAAK,CAAC,IAAID,MAAM,CAAC,CAAC,CAAC,CAACE,WAAW,KAAK,MAAM;AAAA,CAAA;AAElD,IAAMC,oCAAoC,GAAG,SAAvCA,oCAAoCA,CAAGH,MAAM,EAAA;EAAA,OACxDD,wBAAwB,CAACC,MAAM,CAAC,GAC5BI,CAAC,CAAC,8DAA8D,EAAE;IAChEC,KAAK,EAAEL,MAAM,CAACC;AAChB,GAAC,CAAC,GACFG,CAAC,CAAC,+CAA+C,EAAE;IACjDC,KAAK,EAAEL,MAAM,CAACC;AAChB,GAAC,CAAC;AAAA,CAAA;AAED,IAAMK,6BAA6B,GAAG,SAAhCA,6BAA6BA,CAAIN,MAAM,EAAEO,mBAAmB,EAAK;EAC5E,IAAMC,qBAAqB,GACzBT,wBAAwB,CAACC,MAAM,CAAC,IAAIO,mBAAmB,CAACE,IAAI;AAE9D,EAAA,OAAOD,qBAAqB,GACxB,8DAA8D,GAC9D,+CAA+C;AACrD,CAAC;;ACPD,IAAME,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMX,MAAM,GAAAW,IAAA,CAANX,MAAM;IAAEO,mBAAmB,GAAAI,IAAA,CAAnBJ,mBAAmB;EAAA,OACrDP,MAAM,CAACY,GAAG,CAAC,UAACC,KAAK,EAAEC,KAAK,EAAK;AAC3B,IAAA,IAAAC,qBAAA,GAAwBR,mBAAmB,CAACM,KAAK,CAACX,WAAW,CAAC;MAAtDc,KAAK,GAAAD,qBAAA,CAALC,KAAK;MAAEC,IAAI,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AAAA,IAAA,OAAIN,mBAAmB,CAACM,KAAK,CAACX,WAAW,CAAC;AAAA,EAAA,CACjD,CAAC;EAED,IAAIgC,QAAQ,IAAIY,OAAO,CAACF,WAAW,CAAC,EAAE,OAAO,IAAI;
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../app/javascript/src/components/DisconnectedIntegrationsRibbon/utils.js","../app/javascript/src/components/DisconnectedIntegrationsRibbon/index.jsx"],"sourcesContent":["import { t } from \"i18next\";\n\nconst getHasOnlyUPIIntegration = alerts =>\n alerts.length === 1 && alerts[0].serviceName === \"eupi\";\n\nexport const getDisconnectionRibbonDefaultMessage = alerts =>\n getHasOnlyUPIIntegration(alerts)\n ? t(\"neetoIntegrations.disconnectionRibbon.non_permission_message\", {\n count: alerts.length,\n })\n : t(\"neetoIntegrations.disconnectionRibbon.message\", {\n count: alerts.length,\n });\n\nexport const getDisconnectionRibbonI18nKey = (alerts, integrationRouteMap) => {\n const hasOnlyUPIIntegration =\n getHasOnlyUPIIntegration(alerts) && integrationRouteMap.eupi;\n\n return hasOnlyUPIIntegration\n ? \"neetoIntegrations.disconnectionRibbon.non_permission_message\"\n : \"neetoIntegrations.disconnectionRibbon.message\";\n};\n","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\nimport {\n getDisconnectionRibbonDefaultMessage,\n getDisconnectionRibbonI18nKey,\n} from \"./utils\";\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 const singleAlert = knownAlerts.length === 1 ? knownAlerts[0] : null;\n const connectPath = singleAlert\n ? singleAlert.redirectPath ||\n integrationRouteMap[singleAlert.serviceName].path\n : \"\";\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={getDisconnectionRibbonDefaultMessage(knownAlerts)}\n components={{\n integrations: (\n <IntegrationLinks\n {...{ integrationRouteMap }}\n alerts={knownAlerts}\n />\n ),\n connectLink: (\n <Link className=\"font-semibold underline\" to={connectPath} />\n ),\n }}\n i18nKey={getDisconnectionRibbonI18nKey(\n knownAlerts,\n integrationRouteMap\n )}\n />\n </span>\n </Tag>\n );\n};\n\nexport default DisconnectedIntegrationsRibbon;\n"],"names":["getHasOnlyUPIIntegration","alerts","length","serviceName","getDisconnectionRibbonDefaultMessage","t","count","getDisconnectionRibbonI18nKey","integrationRouteMap","hasOnlyUPIIntegration","eupi","IntegrationLinks","_ref","map","alert","index","_integrationRouteMap$","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","singleAlert","connectPath","Tag","size","style","onClose","Trans","defaults","components","integrations","connectLink","i18nKey"],"mappings":";;;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connectedIntegrationsRibbon(_re
|
|
|
42
42
|
return integrationRouteMap[alert.serviceName];
|
|
43
43
|
});
|
|
44
44
|
if (isEmpty(knownAlerts)) return null;
|
|
45
|
+
var singleAlert = knownAlerts.length === 1 ? knownAlerts[0] : null;
|
|
46
|
+
var connectPath = singleAlert ? singleAlert.redirectPath || integrationRouteMap[singleAlert.serviceName].path : "";
|
|
45
47
|
return /*#__PURE__*/jsx(Badge, {
|
|
46
48
|
className: "sticky top-0 z-50 w-full p-2.5 text-center",
|
|
47
49
|
"data-testid": "disconnected-integrations-ribbon",
|
|
@@ -56,14 +58,18 @@ var DisconnectedIntegrationsRibbon = function DisconnectedIntegrationsRibbon(_re
|
|
|
56
58
|
className: "w-full",
|
|
57
59
|
children: /*#__PURE__*/jsx(Trans, {
|
|
58
60
|
count: knownAlerts.length,
|
|
59
|
-
defaults: "Your <integrations /> integration has been disconnected due to a permission issue. Connect it now.",
|
|
60
61
|
i18nKey: "neetoIntegrations.disconnectionRibbon.message",
|
|
61
62
|
components: {
|
|
62
63
|
integrations: /*#__PURE__*/jsx(IntegrationLinks, {
|
|
63
64
|
integrationRouteMap: integrationRouteMap,
|
|
64
65
|
alerts: knownAlerts
|
|
66
|
+
}),
|
|
67
|
+
connectLink: /*#__PURE__*/jsx(Link, {
|
|
68
|
+
className: "font-semibold underline",
|
|
69
|
+
to: connectPath
|
|
65
70
|
})
|
|
66
|
-
}
|
|
71
|
+
},
|
|
72
|
+
defaults: singleAlert ? "Your <integrations /> integration has been disconnected due to a permission issue. <connectLink>Connect it now</connectLink>." : "Your <integrations /> integrations have been disconnected due to a permission issue."
|
|
67
73
|
})
|
|
68
74
|
})
|
|
69
75
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DisconnectedIntegrationsRibbon.js","sources":["../../app/javascript/src/v2/components/DisconnectedIntegrationsRibbon/index.jsx"],"sourcesContent":["import { Badge } from \"@bigbinary/neeto-atoms\";\nimport { isEmpty } from \"ramda\";\nimport { Trans, useTranslation } from \"react-i18next\";\nimport { Link } from \"react-router-dom\";\n\nimport {\n useFetchDisconnectionAlerts,\n useDismissDisconnectionAlerts,\n} 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 useTranslation();\n\n const { data: { disconnectionAlerts: alerts = [] } = {} } =\n useFetchDisconnectionAlerts();\n\n const { mutate: dismissAlerts } = useDismissDisconnectionAlerts();\n\n const knownAlerts = alerts.filter(\n alert => integrationRouteMap[alert.serviceName]\n );\n\n if (isEmpty(knownAlerts)) return null;\n\n return (\n <Badge\n className=\"sticky top-0 z-50 w-full p-2.5 text-center\"\n data-testid=\"disconnected-integrations-ribbon\"\n size=\"lg\"\n variant=\"amber\"\n onDismiss={() => dismissAlerts(knownAlerts.map(alert => alert.id))}\n >\n <span className=\"w-full\">\n <Trans\n count={knownAlerts.length}\n
|
|
1
|
+
{"version":3,"file":"DisconnectedIntegrationsRibbon.js","sources":["../../app/javascript/src/v2/components/DisconnectedIntegrationsRibbon/index.jsx"],"sourcesContent":["import { Badge } from \"@bigbinary/neeto-atoms\";\nimport { isEmpty } from \"ramda\";\nimport { Trans, useTranslation } from \"react-i18next\";\nimport { Link } from \"react-router-dom\";\n\nimport {\n useFetchDisconnectionAlerts,\n useDismissDisconnectionAlerts,\n} 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 useTranslation();\n\n const { data: { disconnectionAlerts: alerts = [] } = {} } =\n useFetchDisconnectionAlerts();\n\n const { mutate: dismissAlerts } = useDismissDisconnectionAlerts();\n\n const knownAlerts = alerts.filter(\n alert => integrationRouteMap[alert.serviceName]\n );\n\n if (isEmpty(knownAlerts)) return null;\n\n const singleAlert = knownAlerts.length === 1 ? knownAlerts[0] : null;\n const connectPath = singleAlert\n ? singleAlert.redirectPath ||\n integrationRouteMap[singleAlert.serviceName].path\n : \"\";\n\n return (\n <Badge\n className=\"sticky top-0 z-50 w-full p-2.5 text-center\"\n data-testid=\"disconnected-integrations-ribbon\"\n size=\"lg\"\n variant=\"amber\"\n onDismiss={() => dismissAlerts(knownAlerts.map(alert => alert.id))}\n >\n <span className=\"w-full\">\n <Trans\n count={knownAlerts.length}\n i18nKey=\"neetoIntegrations.disconnectionRibbon.message\"\n components={{\n integrations: (\n <IntegrationLinks\n {...{ integrationRouteMap }}\n alerts={knownAlerts}\n />\n ),\n connectLink: (\n <Link className=\"font-semibold underline\" to={connectPath} />\n ),\n }}\n defaults={\n singleAlert\n ? \"Your <integrations /> integration has been disconnected due to a permission issue. <connectLink>Connect it now</connectLink>.\"\n : \"Your <integrations /> integrations have been disconnected due to a permission issue.\"\n }\n />\n </span>\n </Badge>\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","useTranslation","_useFetchDisconnectio","useFetchDisconnectionAlerts","_useFetchDisconnectio2","data","_useFetchDisconnectio3","_useFetchDisconnectio4","disconnectionAlerts","_useDismissDisconnect","useDismissDisconnectionAlerts","dismissAlerts","mutate","knownAlerts","filter","isEmpty","singleAlert","length","connectPath","Badge","size","variant","onDismiss","Trans","count","i18nKey","components","integrations","connectLink","defaults"],"mappings":";;;;;;;;;;;;AAUA,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;MAAEC,IAAI,GAAAH,qBAAA,CAAJG,IAAI;AACnB,IAAA,IAAMC,QAAQ,GAAGN,KAAK,CAACO,YAAY,IAAIF,IAAI;AAE3C,IAAA,oBACEG,IAAA,CAAA,MAAA,EAAA;MAAAC,QAAA,EAAA,CACGR,KAAK,GAAG,CAAC,IAAI,IAAI,eAClBS,GAAA,CAACC,IAAI,EAAA;AAACC,QAAAA,SAAS,EAAC,yBAAyB;AAACC,QAAAA,EAAE,EAAEP,QAAS;AAAAG,QAAAA,QAAA,EACpDL;AAAK,OACF,CAAC;KAAA,EAJEJ,KAAK,CAACc,EAKX,CAAC;AAEX,EAAA,CAAC,CAAC;AAAA,CAAA;AAEJ,IAAMC,8BAA8B,GAAG,SAAjCA,8BAA8BA,CAAAC,KAAA,EAAqC;AAAA,EAAA,IAAAC,qBAAA,GAAAD,KAAA,CAA/BlB,mBAAmB;AAAnBA,IAAAA,mBAAmB,GAAAmB,qBAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,qBAAA;AAChEC,EAAAA,cAAc,EAAE;AAEhB,EAAA,IAAAC,qBAAA,GACEC,2BAA2B,EAAE;IAAAC,sBAAA,GAAAF,qBAAA,CADvBG,IAAI;AAAAC,IAAAA,sBAAA,GAAAF,sBA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K,EAAEX,WAAW,CAACI,MAAO;AAC1BQ,QAAAA,OAAO,EAAC,+CAA+C;AACvDC,QAAAA,UAAU,EAAE;UACVC,YAAY,eACVlC,GAAA,CAACf,gBAAgB,EAAA;AACTG,YAAAA,mBAAmB,EAAnBA,mBAAmB;AACzBD,YAAAA,MAAM,EAAEiC;AAAY,WACrB,CACF;UACDe,WAAW,eACTnC,GAAA,CAACC,IAAI,EAAA;AAACC,YAAAA,SAAS,EAAC,yBAAyB;AAACC,YAAAA,EAAE,EAAEsB;WAAc;SAE9D;AACFW,QAAAA,QAAQ,EACNb,WAAW,GACP,+HAA+H,GAC/H;OAEP;KACG;AAAC,GACF,CAAC;AAEZ;;;;"}
|
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.47",
|
|
4
4
|
"description": "UI for integrations in neeto products",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"homepage": "https://github.com/bigbinary/neeto-integrations-nano",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"@bigbinary/eslint-plugin-neeto": "1.9.1",
|
|
76
76
|
"@bigbinary/neeto-atoms": "1.0.128",
|
|
77
77
|
"@bigbinary/neeto-cist": "1.0.17",
|
|
78
|
-
"@bigbinary/neeto-commons-frontend": "4.13.
|
|
78
|
+
"@bigbinary/neeto-commons-frontend": "4.13.158",
|
|
79
79
|
"@bigbinary/neeto-filters-frontend": "4.3.43",
|
|
80
80
|
"@bigbinary/neeto-icons": "1.20.89",
|
|
81
81
|
"@bigbinary/neeto-molecules": "5.3.18",
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
"@babel/runtime": "7.29.7",
|
|
190
190
|
"@bigbinary/neeto-atoms": "1.0.128",
|
|
191
191
|
"@bigbinary/neeto-cist": "1.0.17",
|
|
192
|
-
"@bigbinary/neeto-commons-frontend": "4.13.
|
|
192
|
+
"@bigbinary/neeto-commons-frontend": "4.13.158",
|
|
193
193
|
"@bigbinary/neeto-filters-frontend": "4.3.43",
|
|
194
194
|
"@bigbinary/neeto-icons": "1.20.89",
|
|
195
195
|
"@bigbinary/neeto-molecules": "5.3.18",
|