@bigbinary/neeto-email-delivery-frontend 1.0.33 → 1.0.35

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.
Files changed (96) hide show
  1. package/README.md +4 -4
  2. package/app/javascript/src/translations/ar.json +4 -3
  3. package/app/javascript/src/translations/bg.json +4 -3
  4. package/app/javascript/src/translations/ca.json +4 -3
  5. package/app/javascript/src/translations/cs.json +4 -3
  6. package/app/javascript/src/translations/da.json +4 -3
  7. package/app/javascript/src/translations/de.json +4 -3
  8. package/app/javascript/src/translations/en.json +1 -1
  9. package/app/javascript/src/translations/es-MX.json +4 -3
  10. package/app/javascript/src/translations/es.json +4 -3
  11. package/app/javascript/src/translations/et.json +4 -3
  12. package/app/javascript/src/translations/fi.json +4 -3
  13. package/app/javascript/src/translations/fil.json +4 -3
  14. package/app/javascript/src/translations/fr.json +4 -3
  15. package/app/javascript/src/translations/he.json +4 -3
  16. package/app/javascript/src/translations/hi.json +4 -3
  17. package/app/javascript/src/translations/hr.json +4 -3
  18. package/app/javascript/src/translations/hu.json +4 -3
  19. package/app/javascript/src/translations/id.json +4 -3
  20. package/app/javascript/src/translations/it.json +4 -3
  21. package/app/javascript/src/translations/ja.json +4 -3
  22. package/app/javascript/src/translations/ko.json +4 -3
  23. package/app/javascript/src/translations/nl.json +4 -3
  24. package/app/javascript/src/translations/pl.json +4 -3
  25. package/app/javascript/src/translations/pt-BR.json +4 -3
  26. package/app/javascript/src/translations/pt.json +4 -3
  27. package/app/javascript/src/translations/ro.json +4 -3
  28. package/app/javascript/src/translations/ru.json +4 -3
  29. package/app/javascript/src/translations/sk.json +4 -3
  30. package/app/javascript/src/translations/sl.json +4 -3
  31. package/app/javascript/src/translations/sv.json +4 -3
  32. package/app/javascript/src/translations/th.json +4 -3
  33. package/app/javascript/src/translations/tr.json +4 -3
  34. package/app/javascript/src/translations/uk.json +4 -3
  35. package/app/javascript/src/translations/vi.json +4 -3
  36. package/app/javascript/src/translations/zh-CN.json +4 -3
  37. package/app/javascript/src/translations/zh-TW.json +4 -3
  38. package/dist/.ready +1 -1
  39. package/dist/EmailDeliveryScreen.js +193 -14
  40. package/dist/EmailDeliveryScreen.js.map +1 -1
  41. package/dist/PageLayout-B_USy8hj.js +75 -0
  42. package/dist/PageLayout-B_USy8hj.js.map +1 -0
  43. package/dist/PageLayout-pMKr_80l.js +103 -0
  44. package/dist/PageLayout-pMKr_80l.js.map +1 -0
  45. package/dist/SparkpostDomainSetup.js +3 -3
  46. package/dist/SparkpostDomainVerify.js +4 -4
  47. package/dist/Verify-80b6NK1q.js +295 -0
  48. package/dist/Verify-80b6NK1q.js.map +1 -0
  49. package/dist/{Verify-Cbn8WE7T.js → Verify-D0bZSCRH.js} +4 -4
  50. package/dist/{Verify-Cbn8WE7T.js.map → Verify-D0bZSCRH.js.map} +1 -1
  51. package/dist/Verify-Dnvx5OTi.js +292 -0
  52. package/dist/Verify-Dnvx5OTi.js.map +1 -0
  53. package/dist/cjs/EmailDeliveryScreen.js +189 -14
  54. package/dist/cjs/EmailDeliveryScreen.js.map +1 -1
  55. package/dist/cjs/index.js +7 -6
  56. package/dist/cjs/index.js.map +1 -1
  57. package/dist/cjs/v2/EmailDeliveryScreen.js +201 -0
  58. package/dist/cjs/v2/EmailDeliveryScreen.js.map +1 -0
  59. package/dist/cjs/v2/SparkpostDomainSetup.js +140 -0
  60. package/dist/cjs/v2/SparkpostDomainSetup.js.map +1 -0
  61. package/dist/cjs/v2/SparkpostDomainVerify.js +35 -0
  62. package/dist/cjs/v2/SparkpostDomainVerify.js.map +1 -0
  63. package/dist/cjs/v2/hooks.js +17 -0
  64. package/dist/cjs/v2/hooks.js.map +1 -0
  65. package/dist/cjs/v2/index.js +522 -0
  66. package/dist/cjs/v2/index.js.map +1 -0
  67. package/dist/hooks.js +2 -2
  68. package/dist/index.js +8 -8
  69. package/dist/{useEmailDeliveryIntegrationApi-Dk9WPotT.js → useEmailDeliveryIntegrationApi-CfgmbuRA.js} +2 -2
  70. package/dist/{useEmailDeliveryIntegrationApi-Dk9WPotT.js.map → useEmailDeliveryIntegrationApi-CfgmbuRA.js.map} +1 -1
  71. package/dist/useSmtp-BCcRaVYr.js +136 -0
  72. package/dist/useSmtp-BCcRaVYr.js.map +1 -0
  73. package/dist/useSmtp-DxZlXdtr.js +132 -0
  74. package/dist/useSmtp-DxZlXdtr.js.map +1 -0
  75. package/dist/{useSparkpostApi-B-D8RNRF.js → useSparkpostApi-CQT4JD8-.js} +2 -2
  76. package/dist/{useSparkpostApi-B-D8RNRF.js.map → useSparkpostApi-CQT4JD8-.js.map} +1 -1
  77. package/dist/useSparkpostDomain-DDjj-dyF.js +99 -0
  78. package/dist/useSparkpostDomain-DDjj-dyF.js.map +1 -0
  79. package/dist/{useSparkpostDomain-DA1nrWS3.js → useSparkpostDomain-Dt4Q3GSP.js} +2 -2
  80. package/dist/{useSparkpostDomain-DA1nrWS3.js.map → useSparkpostDomain-Dt4Q3GSP.js.map} +1 -1
  81. package/dist/useSparkpostDomain-IJPoCQ0f.js +101 -0
  82. package/dist/useSparkpostDomain-IJPoCQ0f.js.map +1 -0
  83. package/dist/{index-BbOAmk2e.js → v2/EmailDeliveryScreen.js} +27 -148
  84. package/dist/v2/EmailDeliveryScreen.js.map +1 -0
  85. package/dist/v2/SparkpostDomainSetup.js +138 -0
  86. package/dist/v2/SparkpostDomainSetup.js.map +1 -0
  87. package/dist/v2/SparkpostDomainVerify.js +29 -0
  88. package/dist/v2/SparkpostDomainVerify.js.map +1 -0
  89. package/dist/v2/hooks.js +11 -0
  90. package/dist/v2/hooks.js.map +1 -0
  91. package/dist/v2/index.js +499 -0
  92. package/dist/v2/index.js.map +1 -0
  93. package/package.json +34 -22
  94. package/dist/index-BbOAmk2e.js.map +0 -1
  95. package/dist/index-YMe54v79.js +0 -325
  96. package/dist/index-YMe54v79.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-email-delivery-frontend",
3
- "version": "1.0.33",
3
+ "version": "1.0.35",
4
4
  "description": "This repo is for implementing custom email delivery functionality for the Neeto platform.",
5
5
  "license": "UNLICENSED",
6
6
  "homepage": "https://github.com/bigbinary/neeto-email-delivery-nano",
@@ -26,10 +26,20 @@
26
26
  "require": "./dist/cjs/index.js",
27
27
  "types": "./types.d.ts"
28
28
  },
29
+ "./v2": {
30
+ "import": "./dist/v2/index.js",
31
+ "require": "./dist/cjs/v2/index.js",
32
+ "types": "./types.d.ts"
33
+ },
29
34
  "./*": {
30
35
  "import": "./dist/*.js",
31
36
  "require": "./dist/cjs/*.js",
32
37
  "types": "./types.d.ts"
38
+ },
39
+ "./v2/*": {
40
+ "import": "./dist/v2/*.js",
41
+ "require": "./dist/cjs/v2/*.js",
42
+ "types": "./types.d.ts"
33
43
  }
34
44
  },
35
45
  "main": "dist/index.cjs.js",
@@ -58,21 +68,22 @@
58
68
  ]
59
69
  },
60
70
  "devDependencies": {
61
- "@babel/core": "7.26.0",
71
+ "@babel/core": "7.29.7",
62
72
  "@babel/eslint-parser": "7.25.9",
63
73
  "@babel/plugin-transform-runtime": "7.25.9",
64
74
  "@babel/preset-env": "7.26.0",
65
75
  "@babel/preset-react": "7.25.9",
66
76
  "@babel/preset-typescript": "7.26.0",
67
- "@babel/runtime": "7.29.2",
77
+ "@babel/runtime": "7.29.7",
68
78
  "@bigbinary/babel-preset-neeto": "^1.0.3",
69
- "@bigbinary/eslint-plugin-neeto": "1.9.0",
79
+ "@bigbinary/eslint-plugin-neeto": "1.9.1",
80
+ "@bigbinary/neeto-atoms": "^1.0.99",
70
81
  "@bigbinary/neeto-cist": "1.0.17",
71
- "@bigbinary/neeto-commons-frontend": "4.13.121",
72
- "@bigbinary/neeto-filters-frontend": "4.3.32",
73
- "@bigbinary/neeto-icons": "1.20.86",
74
- "@bigbinary/neeto-molecules": "4.1.56",
75
- "@bigbinary/neetoui": "8.6.0",
82
+ "@bigbinary/neeto-commons-frontend": "4.13.147",
83
+ "@bigbinary/neeto-filters-frontend": "4.3.42",
84
+ "@bigbinary/neeto-icons": "1.20.89",
85
+ "@bigbinary/neeto-molecules": "5.2.17",
86
+ "@bigbinary/neetoui": "8.8.3",
76
87
  "@emotion/is-prop-valid": "1.2.0",
77
88
  "@faker-js/faker": "8.2.0",
78
89
  "@honeybadger-io/js": "6.10.1",
@@ -89,7 +100,7 @@
89
100
  "@tanstack/react-query-devtools": "5.59.20",
90
101
  "antd": "5.22.1",
91
102
  "autoprefixer": "^10.4.5",
92
- "axios": "1.15.0",
103
+ "axios": "1.18.0",
93
104
  "babel-loader": "^8.2.5",
94
105
  "babel-plugin-istanbul": "^6.1.1",
95
106
  "babel-plugin-js-logger": "1.0.17",
@@ -104,7 +115,7 @@
104
115
  "classnames": "2.5.1",
105
116
  "crypto-browserify": "3.12.1",
106
117
  "css-loader": "6.8.1",
107
- "dompurify": "3.3.2",
118
+ "dompurify": "3.4.11",
108
119
  "dotenv-webpack": "^8.0.1",
109
120
  "eslint": "^9.25.1",
110
121
  "eslint-config-prettier": "^10.1.2",
@@ -134,14 +145,14 @@
134
145
  "mixpanel-browser": "2.47.0",
135
146
  "os-browserify": "0.3.0",
136
147
  "path-browserify": "^1.0.1",
137
- "postcss": "8.4.49",
148
+ "postcss": "8.5.15",
138
149
  "postcss-import": "^15.0.0",
139
150
  "postcss-loader": "^7.0.1",
140
151
  "postcss-preset-env": "7.8.2",
141
152
  "prettier": "3",
142
153
  "prettier-plugin-tailwindcss": "^0.7.1",
143
154
  "process": "0.11.10",
144
- "qs": "6.15.0",
155
+ "qs": "6.15.2",
145
156
  "ramda": "0.29.0",
146
157
  "react": "18.3.1",
147
158
  "react-dom": "18.3.1",
@@ -174,23 +185,24 @@
174
185
  "zustand": "4.4.2"
175
186
  },
176
187
  "peerDependencies": {
177
- "@babel/runtime": "7.29.2",
188
+ "@babel/runtime": "7.29.7",
189
+ "@bigbinary/neeto-atoms": "^1.0.99",
178
190
  "@bigbinary/neeto-cist": "1.0.17",
179
- "@bigbinary/neeto-commons-frontend": "4.13.121",
180
- "@bigbinary/neeto-filters-frontend": "4.3.32",
181
- "@bigbinary/neeto-icons": "1.20.86",
182
- "@bigbinary/neeto-molecules": "4.1.56",
183
- "@bigbinary/neetoui": "8.6.0",
191
+ "@bigbinary/neeto-commons-frontend": "4.13.147",
192
+ "@bigbinary/neeto-filters-frontend": "4.3.42",
193
+ "@bigbinary/neeto-icons": "1.20.89",
194
+ "@bigbinary/neeto-molecules": "5.2.17",
195
+ "@bigbinary/neetoui": "8.8.3",
184
196
  "@honeybadger-io/js": "6.10.1",
185
197
  "@honeybadger-io/react": "6.1.25",
186
198
  "@tanstack/react-query": "5.59.20",
187
199
  "@tanstack/react-query-devtools": "5.59.20",
188
200
  "antd": "5.22.1",
189
- "axios": "1.15.0",
201
+ "axios": "1.18.0",
190
202
  "buffer": "^6.0.3",
191
203
  "classnames": "2.5.1",
192
204
  "crypto-browserify": "3.12.1",
193
- "dompurify": "3.3.2",
205
+ "dompurify": "3.4.11",
194
206
  "formik": "2.4.6",
195
207
  "https-browserify": "1.0.0",
196
208
  "i18next": "22.5.1",
@@ -198,7 +210,7 @@
198
210
  "mixpanel-browser": "^2.45.0",
199
211
  "os-browserify": "0.3.0",
200
212
  "path-browserify": "^1.0.1",
201
- "qs": "6.15.0",
213
+ "qs": "6.15.2",
202
214
  "ramda": "0.29.0",
203
215
  "react": "18.3.1",
204
216
  "react-dom": "18.3.1",
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-BbOAmk2e.js","sources":["../app/javascript/src/hooks/integrations/useGmail.js","../app/javascript/src/hooks/integrations/useOutlook.js","../app/javascript/src/hooks/integrations/useSmtp.js","../app/javascript/src/components/EmailDeliveryScreen/constants.js","../app/javascript/src/components/EmailDeliveryScreen/IntegrationCard.jsx","../app/javascript/src/components/EmailDeliveryScreen/index.jsx"],"sourcesContent":["import { useState } from \"react\";\n\nimport { useQueryClient } from \"@tanstack/react-query\";\nimport { showThumbsUpToastr } from \"neetocommons/utils\";\nimport { useHistory } from \"react-router-dom\";\n\nimport {\n useFetchGmail,\n useDestroyGmail,\n} from \"hooks/reactQuery/integrations/useGmailIntegrationApi\";\nimport { invalidateAllIntegrationQueries } from \"src/utils\";\n\nconst useGmail = ({ ownerId, indexRoute, canManageIntegrations }) => {\n const [isDisconnectAlertOpen, setIsDisconnectAlertOpen] = useState(false);\n\n const history = useHistory();\n\n const queryClient = useQueryClient();\n\n const { isLoading, data = {} } = useFetchGmail(ownerId, {\n enabled: canManageIntegrations,\n });\n\n const { isPending: isDestroying, mutate: destroyIntegration } =\n useDestroyGmail({ ownerId });\n\n const onClose = () => history.replace(indexRoute);\n\n const onDisconnect = () => {\n destroyIntegration(false, {\n onSuccess: () => {\n showThumbsUpToastr();\n setIsDisconnectAlertOpen(false);\n invalidateAllIntegrationQueries(queryClient, ownerId);\n history.replace(indexRoute);\n },\n });\n };\n\n return {\n data,\n isLoading,\n isDestroying,\n exists: data?.exists,\n isConnected: data?.connected,\n isDisconnectAlertOpen,\n setIsDisconnectAlertOpen,\n onDisconnect,\n onClose,\n errorMessage: data?.error,\n };\n};\n\nexport default useGmail;\n","import { useState } from \"react\";\n\nimport { useQueryClient } from \"@tanstack/react-query\";\nimport { showThumbsUpToastr } from \"neetocommons/utils\";\nimport { useHistory } from \"react-router-dom\";\n\nimport {\n useFetchOutlook,\n useDestroyOutlook,\n} from \"hooks/reactQuery/integrations/useOutlookIntegrationApi\";\nimport { invalidateAllIntegrationQueries } from \"src/utils\";\n\nconst useOutlook = ({ ownerId, indexRoute, canManageIntegrations }) => {\n const [isDisconnectAlertOpen, setIsDisconnectAlertOpen] = useState(false);\n\n const history = useHistory();\n\n const queryClient = useQueryClient();\n\n const { isLoading, data = {} } = useFetchOutlook(ownerId, {\n enabled: canManageIntegrations,\n });\n\n const { isPending: isDestroying, mutate: destroyIntegration } =\n useDestroyOutlook({ ownerId });\n\n const onClose = () => history.replace(indexRoute);\n\n const onDisconnect = () => {\n destroyIntegration(false, {\n onSuccess: () => {\n showThumbsUpToastr();\n setIsDisconnectAlertOpen(false);\n invalidateAllIntegrationQueries(queryClient, ownerId);\n history.replace(indexRoute);\n },\n });\n };\n\n return {\n data,\n isLoading,\n exists: data?.exists,\n status: data?.status,\n shadowAccount: data?.shadowAccount,\n isWaitingForTestEmail: data?.status === \"inactive\" && !data?.connected,\n isDestroying,\n isConnected: data?.connected,\n isDisconnectAlertOpen,\n setIsDisconnectAlertOpen,\n onDisconnect,\n onClose,\n errorMessage: data?.error,\n };\n};\n\nexport default useOutlook;\n","import {\n useFetchSmtp,\n useDestroySmtp,\n} from \"hooks/reactQuery/integrations/useSmtpIntegrationApi\";\n\nconst useSmtp = ({ ownerId, canManageIntegrations }) => {\n const { isLoading, data = {} } = useFetchSmtp(ownerId, {\n enabled: canManageIntegrations,\n });\n\n const { isPending: isDestroying, mutate: onDisconnect } = useDestroySmtp({\n ownerId,\n });\n\n return {\n data,\n isConnected: data?.connected,\n isLoading,\n isDestroying,\n onDisconnect,\n exists: data?.exists,\n };\n};\n\nexport default useSmtp;\n","import { Check, Warning } from \"neetoicons\";\n\nexport const STATUS_TAG_CONFIG = {\n connected: {\n labelKey: \"neetoEmailDelivery.sparkpost.emailDelivery.connected\",\n style: \"success\",\n icon: Check,\n },\n pending: {\n labelKey: \"neetoEmailDelivery.integrationDetail.pending\",\n style: \"warning\",\n icon: Warning,\n },\n error: {\n labelKey: \"neetoEmailDelivery.integrationDetail.error\",\n style: \"danger\",\n icon: Warning,\n },\n};\n","import { Tag, Typography } from \"neetoui\";\nimport { useTranslation } from \"react-i18next\";\nimport { Link } from \"react-router-dom\";\n\nimport { STATUS_TAG_CONFIG } from \"./constants\";\n\nconst IntegrationCard = ({\n icon: Icon,\n title,\n description,\n status,\n path,\n \"data-testid\": dataTestId,\n}) => {\n const { t } = useTranslation();\n\n const tagConfig = STATUS_TAG_CONFIG[status];\n\n return (\n <Link\n className=\"neeto-ui-rounded-lg neeto-ui-border-gray-200 flex cursor-pointer flex-col gap-y-4 border p-6 no-underline outline-none transition-shadow duration-300 ease-in-out\"\n data-testid={dataTestId}\n to={path}\n >\n <div>\n <div className=\"mb-2.5 flex items-center gap-3\">\n {Icon && <Icon className=\"neeto-ui-text-gray-500\" size={24} />}\n <Typography\n className=\"neeto-ui-text-black text-lg leading-6\"\n style=\"h3\"\n weight=\"semibold\"\n >\n {title}\n </Typography>\n </div>\n <Typography className=\"neeto-ui-text-gray-600\" style=\"body2\">\n {description}\n </Typography>\n </div>\n {tagConfig && (\n <div className=\"neeto-ui-border-gray-300 border-t pt-3\">\n <Tag\n className=\"flex-row-reverse\"\n icon={tagConfig.icon}\n label={t(tagConfig.labelKey)}\n style={tagConfig.style}\n />\n </div>\n )}\n </Link>\n );\n};\n\nexport default IntegrationCard;\n","import { MailSend } from \"neetoicons\";\nimport { Gmail as GmailIcon, Outlook as OutlookIcon } from \"neetoicons/misc\";\nimport { Spinner } from \"neetoui\";\nimport { useTranslation } from \"react-i18next\";\n\nimport useGmail from \"hooks/integrations/useGmail\";\nimport useOutlook from \"hooks/integrations/useOutlook\";\nimport useSmtp from \"hooks/integrations/useSmtp\";\nimport useSparkpostDomain from \"hooks/integrations/useSparkpostDomain\";\n\nimport IntegrationCard from \"./IntegrationCard\";\n\nconst EmailDeliveryScreen = ({\n indexRoute,\n ownerId,\n canManageIntegrations,\n gmailRoute,\n outlookRoute,\n customEmailProviderRoute,\n smtpRoute,\n}) => {\n const { t } = useTranslation();\n\n const gmailIntegration = useGmail({\n ownerId,\n indexRoute,\n canManageIntegrations,\n });\n\n const outlookIntegration = useOutlook({\n ownerId,\n indexRoute,\n canManageIntegrations,\n });\n\n const sparkpostIntegration = useSparkpostDomain({\n ownerId,\n canManageIntegrations,\n });\n\n const smtpIntegration = useSmtp({ ownerId, canManageIntegrations });\n\n const {\n isConnected: isGmailConnected,\n isLoading: isGmailLoading,\n errorMessage: gmailError,\n } = gmailIntegration;\n\n const {\n isConnected: isOutlookConnected,\n isLoading: isOutlookLoading,\n isWaitingForTestEmail: isOutlookPending,\n errorMessage: outlookError,\n } = outlookIntegration;\n\n const {\n isConnected: isSparkpostConnected,\n isLoading: isSparkpostLoading,\n exists: sparkpostExists,\n } = sparkpostIntegration;\n\n const { isConnected: isSmtpConnected, isLoading: isSmtpLoading } =\n smtpIntegration;\n\n const getCardStatus = ({ isConnected, isPending, hasError }) => {\n if (isConnected) return \"connected\";\n\n if (hasError) return \"error\";\n\n if (isPending) return \"pending\";\n\n return null;\n };\n\n const isLoading =\n isGmailLoading || isOutlookLoading || isSparkpostLoading || isSmtpLoading;\n\n const gmailTitle = t(\"neetoEmailDelivery.gmail.title\");\n const gmailDescription = t(\"neetoEmailDelivery.gmail.description\");\n\n const outlookTitle = t(\"neetoEmailDelivery.outlook.title\");\n const outlookDescription = t(\"neetoEmailDelivery.outlook.description\");\n\n const ownDomainTitle = t(\n \"neetoEmailDelivery.sparkpost.emailDelivery.ownDomainTitle\"\n );\n\n const ownDomainDescription = t(\n \"neetoEmailDelivery.sparkpost.emailDelivery.ownDomainDescription\"\n );\n\n const smtpTitle = t(\"neetoEmailDelivery.smtp.title\");\n const smtpDescription = t(\"neetoEmailDelivery.smtp.description\");\n\n if (isLoading) {\n return (\n <div className=\"flex grow items-center justify-center w-full\">\n <Spinner />\n </div>\n );\n }\n\n return (\n <div className=\"min-h-0 w-full grow\">\n <div className=\"@container mx-auto space-y-6\">\n <div className=\"grid grid-cols-1 gap-3 py-1 @lg:grid-cols-2 @lg:gap-6 @3xl:grid-cols-3 @7xl:grid-cols-4\">\n <IntegrationCard\n data-testid=\"gmail-integration-card\"\n description={gmailDescription}\n icon={GmailIcon}\n path={gmailRoute}\n title={gmailTitle}\n status={getCardStatus({\n isConnected: isGmailConnected,\n hasError: !!gmailError,\n })}\n />\n <IntegrationCard\n data-testid=\"outlook-integration-card\"\n description={outlookDescription}\n icon={OutlookIcon}\n path={outlookRoute}\n title={outlookTitle}\n status={getCardStatus({\n isConnected: isOutlookConnected,\n isPending: isOutlookPending,\n hasError: !!outlookError,\n })}\n />\n <IntegrationCard\n data-testid=\"custom-email-provider-integration-card\"\n description={ownDomainDescription}\n icon={MailSend}\n path={customEmailProviderRoute}\n title={ownDomainTitle}\n status={getCardStatus({\n isConnected: isSparkpostConnected,\n isPending: sparkpostExists && !isSparkpostConnected,\n })}\n />\n <IntegrationCard\n data-testid=\"smtp-integration-card\"\n description={smtpDescription}\n icon={MailSend}\n path={smtpRoute}\n status={getCardStatus({ isConnected: isSmtpConnected })}\n title={smtpTitle}\n />\n </div>\n </div>\n </div>\n );\n};\n\nexport default EmailDeliveryScreen;\n"],"names":["useGmail","_ref","ownerId","indexRoute","canManageIntegrations","_useState","useState","_useState2","_slicedToArray","isDisconnectAlertOpen","setIsDisconnectAlertOpen","history","useHistory","queryClient","useQueryClient","_useFetchGmail","useFetchGmail","enabled","isLoading","_useFetchGmail$data","data","_useDestroyGmail","useDestroyGmail","isDestroying","isPending","destroyIntegration","mutate","onClose","replace","onDisconnect","onSuccess","showThumbsUpToastr","invalidateAllIntegrationQueries","exists","isConnected","connected","errorMessage","error","useOutlook","_useFetchOutlook","useFetchOutlook","_useFetchOutlook$data","_useDestroyOutlook","useDestroyOutlook","status","shadowAccount","isWaitingForTestEmail","useSmtp","_useFetchSmtp","useFetchSmtp","_useFetchSmtp$data","_useDestroySmtp","useDestroySmtp","STATUS_TAG_CONFIG","labelKey","style","icon","Check","pending","Warning","IntegrationCard","Icon","title","description","path","dataTestId","_useTranslation","useTranslation","t","tagConfig","_jsxs","Link","className","to","children","_jsx","size","Typography","weight","Tag","label","EmailDeliveryScreen","gmailRoute","outlookRoute","customEmailProviderRoute","smtpRoute","gmailIntegration","outlookIntegration","sparkpostIntegration","useSparkpostDomain","smtpIntegration","isGmailConnected","isGmailLoading","gmailError","isOutlookConnected","isOutlookLoading","isOutlookPending","outlookError","isSparkpostConnected","isSparkpostLoading","sparkpostExists","isSmtpConnected","isSmtpLoading","getCardStatus","_ref2","hasError","gmailTitle","gmailDesc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B;AAChCrD,UAAAA,IAAI,EAAE4D,WAAY;AAClBpD,UAAAA,IAAI,EAAEmB,YAAa;AACnBrB,UAAAA,KAAK,EAAE8C,YAAa;UACpBhE,MAAM,EAAE2D,aAAa,CAAC;AACpBrE,YAAAA,WAAW,EAAE4D,kBAAkB;AAC/BtE,YAAAA,SAAS,EAAEwE,gBAAgB;YAC3BS,QAAQ,EAAE,CAAC,CAACR;WACb;AAAE,SACJ,CAAC,eACFtB,GAAA,CAACf,eAAe,EAAA;AACd,UAAA,aAAA,EAAY,wCAAwC;AACpDG,UAAAA,WAAW,EAAEgD,oBAAqB;AAClCvD,UAAAA,IAAI,EAAE6D,QAAS;AACfrD,UAAAA,IAAI,EAAEoB,wBAAyB;AAC/BtB,UAAAA,KAAK,EAAEgD,cAAe;UACtBlE,MAAM,EAAE2D,aAAa,CAAC;AACpBrE,YAAAA,WAAW,EAAEgE,oBAAoB;YACjC1E,SAAS,EAAE4E,eAAe,IAAI,CAACF;WAChC;AAAE,SACJ,CAAC,eACFvB,GAAA,CAACf,eAAe,EAAA;AACd,UAAA,aAAA,EAAY,uBAAuB;AACnCG,UAAAA,WAAW,EAAEkD,eAAgB;AAC7BzD,UAAAA,IAAI,EAAE6D,QAAS;AACfrD,UAAAA,IAAI,EAAEqB,SAAU;UAChBzC,MAAM,EAAE2D,aAAa,CAAC;AAAErE,YAAAA,WAAW,EAAEmE;AAAgB,WAAC,CAAE;AACxDvC,UAAAA,KAAK,EAAEkD;AAAU,SAClB,CAAC;OACC;KACF;AAAC,GACH,CAAC;AAEV;;;;"}
@@ -1,325 +0,0 @@
1
- 'use strict';
2
-
3
- var MailSend = require('@bigbinary/neeto-icons/MailSend');
4
- var GmailIcon = require('@bigbinary/neeto-icons/misc/Gmail');
5
- var OutlookIcon = require('@bigbinary/neeto-icons/misc/Outlook');
6
- var Spinner = require('@bigbinary/neetoui/Spinner');
7
- var reactI18next = require('react-i18next');
8
- var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
9
- var react = require('react');
10
- var reactQuery = require('@tanstack/react-query');
11
- var utils = require('@bigbinary/neeto-commons-frontend/utils');
12
- var reactRouterDom = require('react-router-dom');
13
- var useSparkpostApi = require('./useSparkpostApi-DlgW14Wu.js');
14
- var useSparkpostDomain = require('./useSparkpostDomain-CXs_VuGP.js');
15
- var Tag = require('@bigbinary/neetoui/Tag');
16
- var Typography = require('@bigbinary/neetoui/Typography');
17
- var Check = require('@bigbinary/neeto-icons/Check');
18
- var Warning = require('@bigbinary/neeto-icons/Warning');
19
- var jsxRuntime = require('react/jsx-runtime');
20
-
21
- var useGmail = function useGmail(_ref) {
22
- var ownerId = _ref.ownerId,
23
- indexRoute = _ref.indexRoute,
24
- canManageIntegrations = _ref.canManageIntegrations;
25
- var _useState = react.useState(false),
26
- _useState2 = _slicedToArray(_useState, 2),
27
- isDisconnectAlertOpen = _useState2[0],
28
- setIsDisconnectAlertOpen = _useState2[1];
29
- var history = reactRouterDom.useHistory();
30
- var queryClient = reactQuery.useQueryClient();
31
- var _useFetchGmail = useSparkpostApi.useFetchGmail(ownerId, {
32
- enabled: canManageIntegrations
33
- }),
34
- isLoading = _useFetchGmail.isLoading,
35
- _useFetchGmail$data = _useFetchGmail.data,
36
- data = _useFetchGmail$data === void 0 ? {} : _useFetchGmail$data;
37
- var _useDestroyGmail = useSparkpostApi.useDestroyGmail({
38
- ownerId: ownerId
39
- }),
40
- isDestroying = _useDestroyGmail.isPending,
41
- destroyIntegration = _useDestroyGmail.mutate;
42
- var onClose = function onClose() {
43
- return history.replace(indexRoute);
44
- };
45
- var onDisconnect = function onDisconnect() {
46
- destroyIntegration(false, {
47
- onSuccess: function onSuccess() {
48
- utils.showThumbsUpToastr();
49
- setIsDisconnectAlertOpen(false);
50
- useSparkpostApi.invalidateAllIntegrationQueries(queryClient, ownerId);
51
- history.replace(indexRoute);
52
- }
53
- });
54
- };
55
- return {
56
- data: data,
57
- isLoading: isLoading,
58
- isDestroying: isDestroying,
59
- exists: data === null || data === void 0 ? void 0 : data.exists,
60
- isConnected: data === null || data === void 0 ? void 0 : data.connected,
61
- isDisconnectAlertOpen: isDisconnectAlertOpen,
62
- setIsDisconnectAlertOpen: setIsDisconnectAlertOpen,
63
- onDisconnect: onDisconnect,
64
- onClose: onClose,
65
- errorMessage: data === null || data === void 0 ? void 0 : data.error
66
- };
67
- };
68
-
69
- var useOutlook = function useOutlook(_ref) {
70
- var ownerId = _ref.ownerId,
71
- indexRoute = _ref.indexRoute,
72
- canManageIntegrations = _ref.canManageIntegrations;
73
- var _useState = react.useState(false),
74
- _useState2 = _slicedToArray(_useState, 2),
75
- isDisconnectAlertOpen = _useState2[0],
76
- setIsDisconnectAlertOpen = _useState2[1];
77
- var history = reactRouterDom.useHistory();
78
- var queryClient = reactQuery.useQueryClient();
79
- var _useFetchOutlook = useSparkpostApi.useFetchOutlook(ownerId, {
80
- enabled: canManageIntegrations
81
- }),
82
- isLoading = _useFetchOutlook.isLoading,
83
- _useFetchOutlook$data = _useFetchOutlook.data,
84
- data = _useFetchOutlook$data === void 0 ? {} : _useFetchOutlook$data;
85
- var _useDestroyOutlook = useSparkpostApi.useDestroyOutlook({
86
- ownerId: ownerId
87
- }),
88
- isDestroying = _useDestroyOutlook.isPending,
89
- destroyIntegration = _useDestroyOutlook.mutate;
90
- var onClose = function onClose() {
91
- return history.replace(indexRoute);
92
- };
93
- var onDisconnect = function onDisconnect() {
94
- destroyIntegration(false, {
95
- onSuccess: function onSuccess() {
96
- utils.showThumbsUpToastr();
97
- setIsDisconnectAlertOpen(false);
98
- useSparkpostApi.invalidateAllIntegrationQueries(queryClient, ownerId);
99
- history.replace(indexRoute);
100
- }
101
- });
102
- };
103
- return {
104
- data: data,
105
- isLoading: isLoading,
106
- exists: data === null || data === void 0 ? void 0 : data.exists,
107
- status: data === null || data === void 0 ? void 0 : data.status,
108
- shadowAccount: data === null || data === void 0 ? void 0 : data.shadowAccount,
109
- isWaitingForTestEmail: (data === null || data === void 0 ? void 0 : data.status) === "inactive" && !(data !== null && data !== void 0 && data.connected),
110
- isDestroying: isDestroying,
111
- isConnected: data === null || data === void 0 ? void 0 : data.connected,
112
- isDisconnectAlertOpen: isDisconnectAlertOpen,
113
- setIsDisconnectAlertOpen: setIsDisconnectAlertOpen,
114
- onDisconnect: onDisconnect,
115
- onClose: onClose,
116
- errorMessage: data === null || data === void 0 ? void 0 : data.error
117
- };
118
- };
119
-
120
- var useSmtp = function useSmtp(_ref) {
121
- var ownerId = _ref.ownerId,
122
- canManageIntegrations = _ref.canManageIntegrations;
123
- var _useFetchSmtp = useSparkpostApi.useFetchSmtp(ownerId, {
124
- enabled: canManageIntegrations
125
- }),
126
- isLoading = _useFetchSmtp.isLoading,
127
- _useFetchSmtp$data = _useFetchSmtp.data,
128
- data = _useFetchSmtp$data === void 0 ? {} : _useFetchSmtp$data;
129
- var _useDestroySmtp = useSparkpostApi.useDestroySmtp({
130
- ownerId: ownerId
131
- }),
132
- isDestroying = _useDestroySmtp.isPending,
133
- onDisconnect = _useDestroySmtp.mutate;
134
- return {
135
- data: data,
136
- isConnected: data === null || data === void 0 ? void 0 : data.connected,
137
- isLoading: isLoading,
138
- isDestroying: isDestroying,
139
- onDisconnect: onDisconnect,
140
- exists: data === null || data === void 0 ? void 0 : data.exists
141
- };
142
- };
143
-
144
- var STATUS_TAG_CONFIG = {
145
- connected: {
146
- labelKey: "neetoEmailDelivery.sparkpost.emailDelivery.connected",
147
- style: "success",
148
- icon: Check
149
- },
150
- pending: {
151
- labelKey: "neetoEmailDelivery.integrationDetail.pending",
152
- style: "warning",
153
- icon: Warning
154
- },
155
- error: {
156
- labelKey: "neetoEmailDelivery.integrationDetail.error",
157
- style: "danger",
158
- icon: Warning
159
- }
160
- };
161
-
162
- var IntegrationCard = function IntegrationCard(_ref) {
163
- var Icon = _ref.icon,
164
- title = _ref.title,
165
- description = _ref.description,
166
- status = _ref.status,
167
- path = _ref.path,
168
- dataTestId = _ref["data-testid"];
169
- var _useTranslation = reactI18next.useTranslation(),
170
- t = _useTranslation.t;
171
- var tagConfig = STATUS_TAG_CONFIG[status];
172
- return /*#__PURE__*/jsxRuntime.jsxs(reactRouterDom.Link, {
173
- className: "neeto-ui-rounded-lg neeto-ui-border-gray-200 flex cursor-pointer flex-col gap-y-4 border p-6 no-underline outline-none transition-shadow duration-300 ease-in-out",
174
- "data-testid": dataTestId,
175
- to: path,
176
- children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
177
- children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
178
- className: "mb-2.5 flex items-center gap-3",
179
- children: [Icon && /*#__PURE__*/jsxRuntime.jsx(Icon, {
180
- className: "neeto-ui-text-gray-500",
181
- size: 24
182
- }), /*#__PURE__*/jsxRuntime.jsx(Typography, {
183
- className: "neeto-ui-text-black text-lg leading-6",
184
- style: "h3",
185
- weight: "semibold",
186
- children: title
187
- })]
188
- }), /*#__PURE__*/jsxRuntime.jsx(Typography, {
189
- className: "neeto-ui-text-gray-600",
190
- style: "body2",
191
- children: description
192
- })]
193
- }), tagConfig && /*#__PURE__*/jsxRuntime.jsx("div", {
194
- className: "neeto-ui-border-gray-300 border-t pt-3",
195
- children: /*#__PURE__*/jsxRuntime.jsx(Tag, {
196
- className: "flex-row-reverse",
197
- icon: tagConfig.icon,
198
- label: t(tagConfig.labelKey),
199
- style: tagConfig.style
200
- })
201
- })]
202
- });
203
- };
204
-
205
- var EmailDeliveryScreen = function EmailDeliveryScreen(_ref) {
206
- var indexRoute = _ref.indexRoute,
207
- ownerId = _ref.ownerId,
208
- canManageIntegrations = _ref.canManageIntegrations,
209
- gmailRoute = _ref.gmailRoute,
210
- outlookRoute = _ref.outlookRoute,
211
- customEmailProviderRoute = _ref.customEmailProviderRoute,
212
- smtpRoute = _ref.smtpRoute;
213
- var _useTranslation = reactI18next.useTranslation(),
214
- t = _useTranslation.t;
215
- var gmailIntegration = useGmail({
216
- ownerId: ownerId,
217
- indexRoute: indexRoute,
218
- canManageIntegrations: canManageIntegrations
219
- });
220
- var outlookIntegration = useOutlook({
221
- ownerId: ownerId,
222
- indexRoute: indexRoute,
223
- canManageIntegrations: canManageIntegrations
224
- });
225
- var sparkpostIntegration = useSparkpostDomain.useSparkpostDomain({
226
- ownerId: ownerId,
227
- canManageIntegrations: canManageIntegrations
228
- });
229
- var smtpIntegration = useSmtp({
230
- ownerId: ownerId,
231
- canManageIntegrations: canManageIntegrations
232
- });
233
- var isGmailConnected = gmailIntegration.isConnected,
234
- isGmailLoading = gmailIntegration.isLoading,
235
- gmailError = gmailIntegration.errorMessage;
236
- var isOutlookConnected = outlookIntegration.isConnected,
237
- isOutlookLoading = outlookIntegration.isLoading,
238
- isOutlookPending = outlookIntegration.isWaitingForTestEmail,
239
- outlookError = outlookIntegration.errorMessage;
240
- var isSparkpostConnected = sparkpostIntegration.isConnected,
241
- isSparkpostLoading = sparkpostIntegration.isLoading,
242
- sparkpostExists = sparkpostIntegration.exists;
243
- var isSmtpConnected = smtpIntegration.isConnected,
244
- isSmtpLoading = smtpIntegration.isLoading;
245
- var getCardStatus = function getCardStatus(_ref2) {
246
- var isConnected = _ref2.isConnected,
247
- isPending = _ref2.isPending,
248
- hasError = _ref2.hasError;
249
- if (isConnected) return "connected";
250
- if (hasError) return "error";
251
- if (isPending) return "pending";
252
- return null;
253
- };
254
- var isLoading = isGmailLoading || isOutlookLoading || isSparkpostLoading || isSmtpLoading;
255
- var gmailTitle = t("neetoEmailDelivery.gmail.title");
256
- var gmailDescription = t("neetoEmailDelivery.gmail.description");
257
- var outlookTitle = t("neetoEmailDelivery.outlook.title");
258
- var outlookDescription = t("neetoEmailDelivery.outlook.description");
259
- var ownDomainTitle = t("neetoEmailDelivery.sparkpost.emailDelivery.ownDomainTitle");
260
- var ownDomainDescription = t("neetoEmailDelivery.sparkpost.emailDelivery.ownDomainDescription");
261
- var smtpTitle = t("neetoEmailDelivery.smtp.title");
262
- var smtpDescription = t("neetoEmailDelivery.smtp.description");
263
- if (isLoading) {
264
- return /*#__PURE__*/jsxRuntime.jsx("div", {
265
- className: "flex grow items-center justify-center w-full",
266
- children: /*#__PURE__*/jsxRuntime.jsx(Spinner, {})
267
- });
268
- }
269
- return /*#__PURE__*/jsxRuntime.jsx("div", {
270
- className: "min-h-0 w-full grow",
271
- children: /*#__PURE__*/jsxRuntime.jsx("div", {
272
- className: "@container mx-auto space-y-6",
273
- children: /*#__PURE__*/jsxRuntime.jsxs("div", {
274
- className: "grid grid-cols-1 gap-3 py-1 @lg:grid-cols-2 @lg:gap-6 @3xl:grid-cols-3 @7xl:grid-cols-4",
275
- children: [/*#__PURE__*/jsxRuntime.jsx(IntegrationCard, {
276
- "data-testid": "gmail-integration-card",
277
- description: gmailDescription,
278
- icon: GmailIcon,
279
- path: gmailRoute,
280
- title: gmailTitle,
281
- status: getCardStatus({
282
- isConnected: isGmailConnected,
283
- hasError: !!gmailError
284
- })
285
- }), /*#__PURE__*/jsxRuntime.jsx(IntegrationCard, {
286
- "data-testid": "outlook-integration-card",
287
- description: outlookDescription,
288
- icon: OutlookIcon,
289
- path: outlookRoute,
290
- title: outlookTitle,
291
- status: getCardStatus({
292
- isConnected: isOutlookConnected,
293
- isPending: isOutlookPending,
294
- hasError: !!outlookError
295
- })
296
- }), /*#__PURE__*/jsxRuntime.jsx(IntegrationCard, {
297
- "data-testid": "custom-email-provider-integration-card",
298
- description: ownDomainDescription,
299
- icon: MailSend,
300
- path: customEmailProviderRoute,
301
- title: ownDomainTitle,
302
- status: getCardStatus({
303
- isConnected: isSparkpostConnected,
304
- isPending: sparkpostExists && !isSparkpostConnected
305
- })
306
- }), /*#__PURE__*/jsxRuntime.jsx(IntegrationCard, {
307
- "data-testid": "smtp-integration-card",
308
- description: smtpDescription,
309
- icon: MailSend,
310
- path: smtpRoute,
311
- status: getCardStatus({
312
- isConnected: isSmtpConnected
313
- }),
314
- title: smtpTitle
315
- })]
316
- })
317
- })
318
- });
319
- };
320
-
321
- exports.EmailDeliveryScreen = EmailDeliveryScreen;
322
- exports.useGmail = useGmail;
323
- exports.useOutlook = useOutlook;
324
- exports.useSmtp = useSmtp;
325
- //# sourceMappingURL=index-YMe54v79.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-YMe54v79.js","sources":["../app/javascript/src/hooks/integrations/useGmail.js","../app/javascript/src/hooks/integrations/useOutlook.js","../app/javascript/src/hooks/integrations/useSmtp.js","../app/javascript/src/components/EmailDeliveryScreen/constants.js","../app/javascript/src/components/EmailDeliveryScreen/IntegrationCard.jsx","../app/javascript/src/components/EmailDeliveryScreen/index.jsx"],"sourcesContent":["import { useState } from \"react\";\n\nimport { useQueryClient } from \"@tanstack/react-query\";\nimport { showThumbsUpToastr } from \"neetocommons/utils\";\nimport { useHistory } from \"react-router-dom\";\n\nimport {\n useFetchGmail,\n useDestroyGmail,\n} from \"hooks/reactQuery/integrations/useGmailIntegrationApi\";\nimport { invalidateAllIntegrationQueries } from \"src/utils\";\n\nconst useGmail = ({ ownerId, indexRoute, canManageIntegrations }) => {\n const [isDisconnectAlertOpen, setIsDisconnectAlertOpen] = useState(false);\n\n const history = useHistory();\n\n const queryClient = useQueryClient();\n\n const { isLoading, data = {} } = useFetchGmail(ownerId, {\n enabled: canManageIntegrations,\n });\n\n const { isPending: isDestroying, mutate: destroyIntegration } =\n useDestroyGmail({ ownerId });\n\n const onClose = () => history.replace(indexRoute);\n\n const onDisconnect = () => {\n destroyIntegration(false, {\n onSuccess: () => {\n showThumbsUpToastr();\n setIsDisconnectAlertOpen(false);\n invalidateAllIntegrationQueries(queryClient, ownerId);\n history.replace(indexRoute);\n },\n });\n };\n\n return {\n data,\n isLoading,\n isDestroying,\n exists: data?.exists,\n isConnected: data?.connected,\n isDisconnectAlertOpen,\n setIsDisconnectAlertOpen,\n onDisconnect,\n onClose,\n errorMessage: data?.error,\n };\n};\n\nexport default useGmail;\n","import { useState } from \"react\";\n\nimport { useQueryClient } from \"@tanstack/react-query\";\nimport { showThumbsUpToastr } from \"neetocommons/utils\";\nimport { useHistory } from \"react-router-dom\";\n\nimport {\n useFetchOutlook,\n useDestroyOutlook,\n} from \"hooks/reactQuery/integrations/useOutlookIntegrationApi\";\nimport { invalidateAllIntegrationQueries } from \"src/utils\";\n\nconst useOutlook = ({ ownerId, indexRoute, canManageIntegrations }) => {\n const [isDisconnectAlertOpen, setIsDisconnectAlertOpen] = useState(false);\n\n const history = useHistory();\n\n const queryClient = useQueryClient();\n\n const { isLoading, data = {} } = useFetchOutlook(ownerId, {\n enabled: canManageIntegrations,\n });\n\n const { isPending: isDestroying, mutate: destroyIntegration } =\n useDestroyOutlook({ ownerId });\n\n const onClose = () => history.replace(indexRoute);\n\n const onDisconnect = () => {\n destroyIntegration(false, {\n onSuccess: () => {\n showThumbsUpToastr();\n setIsDisconnectAlertOpen(false);\n invalidateAllIntegrationQueries(queryClient, ownerId);\n history.replace(indexRoute);\n },\n });\n };\n\n return {\n data,\n isLoading,\n exists: data?.exists,\n status: data?.status,\n shadowAccount: data?.shadowAccount,\n isWaitingForTestEmail: data?.status === \"inactive\" && !data?.connected,\n isDestroying,\n isConnected: data?.connected,\n isDisconnectAlertOpen,\n setIsDisconnectAlertOpen,\n onDisconnect,\n onClose,\n errorMessage: data?.error,\n };\n};\n\nexport default useOutlook;\n","import {\n useFetchSmtp,\n useDestroySmtp,\n} from \"hooks/reactQuery/integrations/useSmtpIntegrationApi\";\n\nconst useSmtp = ({ ownerId, canManageIntegrations }) => {\n const { isLoading, data = {} } = useFetchSmtp(ownerId, {\n enabled: canManageIntegrations,\n });\n\n const { isPending: isDestroying, mutate: onDisconnect } = useDestroySmtp({\n ownerId,\n });\n\n return {\n data,\n isConnected: data?.connected,\n isLoading,\n isDestroying,\n onDisconnect,\n exists: data?.exists,\n };\n};\n\nexport default useSmtp;\n","import { Check, Warning } from \"neetoicons\";\n\nexport const STATUS_TAG_CONFIG = {\n connected: {\n labelKey: \"neetoEmailDelivery.sparkpost.emailDelivery.connected\",\n style: \"success\",\n icon: Check,\n },\n pending: {\n labelKey: \"neetoEmailDelivery.integrationDetail.pending\",\n style: \"warning\",\n icon: Warning,\n },\n error: {\n labelKey: \"neetoEmailDelivery.integrationDetail.error\",\n style: \"danger\",\n icon: Warning,\n },\n};\n","import { Tag, Typography } from \"neetoui\";\nimport { useTranslation } from \"react-i18next\";\nimport { Link } from \"react-router-dom\";\n\nimport { STATUS_TAG_CONFIG } from \"./constants\";\n\nconst IntegrationCard = ({\n icon: Icon,\n title,\n description,\n status,\n path,\n \"data-testid\": dataTestId,\n}) => {\n const { t } = useTranslation();\n\n const tagConfig = STATUS_TAG_CONFIG[status];\n\n return (\n <Link\n className=\"neeto-ui-rounded-lg neeto-ui-border-gray-200 flex cursor-pointer flex-col gap-y-4 border p-6 no-underline outline-none transition-shadow duration-300 ease-in-out\"\n data-testid={dataTestId}\n to={path}\n >\n <div>\n <div className=\"mb-2.5 flex items-center gap-3\">\n {Icon && <Icon className=\"neeto-ui-text-gray-500\" size={24} />}\n <Typography\n className=\"neeto-ui-text-black text-lg leading-6\"\n style=\"h3\"\n weight=\"semibold\"\n >\n {title}\n </Typography>\n </div>\n <Typography className=\"neeto-ui-text-gray-600\" style=\"body2\">\n {description}\n </Typography>\n </div>\n {tagConfig && (\n <div className=\"neeto-ui-border-gray-300 border-t pt-3\">\n <Tag\n className=\"flex-row-reverse\"\n icon={tagConfig.icon}\n label={t(tagConfig.labelKey)}\n style={tagConfig.style}\n />\n </div>\n )}\n </Link>\n );\n};\n\nexport default IntegrationCard;\n","import { MailSend } from \"neetoicons\";\nimport { Gmail as GmailIcon, Outlook as OutlookIcon } from \"neetoicons/misc\";\nimport { Spinner } from \"neetoui\";\nimport { useTranslation } from \"react-i18next\";\n\nimport useGmail from \"hooks/integrations/useGmail\";\nimport useOutlook from \"hooks/integrations/useOutlook\";\nimport useSmtp from \"hooks/integrations/useSmtp\";\nimport useSparkpostDomain from \"hooks/integrations/useSparkpostDomain\";\n\nimport IntegrationCard from \"./IntegrationCard\";\n\nconst EmailDeliveryScreen = ({\n indexRoute,\n ownerId,\n canManageIntegrations,\n gmailRoute,\n outlookRoute,\n customEmailProviderRoute,\n smtpRoute,\n}) => {\n const { t } = useTranslation();\n\n const gmailIntegration = useGmail({\n ownerId,\n indexRoute,\n canManageIntegrations,\n });\n\n const outlookIntegration = useOutlook({\n ownerId,\n indexRoute,\n canManageIntegrations,\n });\n\n const sparkpostIntegration = useSparkpostDomain({\n ownerId,\n canManageIntegrations,\n });\n\n const smtpIntegration = useSmtp({ ownerId, canManageIntegrations });\n\n const {\n isConnected: isGmailConnected,\n isLoading: isGmailLoading,\n errorMessage: gmailError,\n } = gmailIntegration;\n\n const {\n isConnected: isOutlookConnected,\n isLoading: isOutlookLoading,\n isWaitingForTestEmail: isOutlookPending,\n errorMessage: outlookError,\n } = outlookIntegration;\n\n const {\n isConnected: isSparkpostConnected,\n isLoading: isSparkpostLoading,\n exists: sparkpostExists,\n } = sparkpostIntegration;\n\n const { isConnected: isSmtpConnected, isLoading: isSmtpLoading } =\n smtpIntegration;\n\n const getCardStatus = ({ isConnected, isPending, hasError }) => {\n if (isConnected) return \"connected\";\n\n if (hasError) return \"error\";\n\n if (isPending) return \"pending\";\n\n return null;\n };\n\n const isLoading =\n isGmailLoading || isOutlookLoading || isSparkpostLoading || isSmtpLoading;\n\n const gmailTitle = t(\"neetoEmailDelivery.gmail.title\");\n const gmailDescription = t(\"neetoEmailDelivery.gmail.description\");\n\n const outlookTitle = t(\"neetoEmailDelivery.outlook.title\");\n const outlookDescription = t(\"neetoEmailDelivery.outlook.description\");\n\n const ownDomainTitle = t(\n \"neetoEmailDelivery.sparkpost.emailDelivery.ownDomainTitle\"\n );\n\n const ownDomainDescription = t(\n \"neetoEmailDelivery.sparkpost.emailDelivery.ownDomainDescription\"\n );\n\n const smtpTitle = t(\"neetoEmailDelivery.smtp.title\");\n const smtpDescription = t(\"neetoEmailDelivery.smtp.description\");\n\n if (isLoading) {\n return (\n <div className=\"flex grow items-center justify-center w-full\">\n <Spinner />\n </div>\n );\n }\n\n return (\n <div className=\"min-h-0 w-full grow\">\n <div className=\"@container mx-auto space-y-6\">\n <div className=\"grid grid-cols-1 gap-3 py-1 @lg:grid-cols-2 @lg:gap-6 @3xl:grid-cols-3 @7xl:grid-cols-4\">\n <IntegrationCard\n data-testid=\"gmail-integration-card\"\n description={gmailDescription}\n icon={GmailIcon}\n path={gmailRoute}\n title={gmailTitle}\n status={getCardStatus({\n isConnected: isGmailConnected,\n hasError: !!gmailError,\n })}\n />\n <IntegrationCard\n data-testid=\"outlook-integration-card\"\n description={outlookDescription}\n icon={OutlookIcon}\n path={outlookRoute}\n title={outlookTitle}\n status={getCardStatus({\n isConnected: isOutlookConnected,\n isPending: isOutlookPending,\n hasError: !!outlookError,\n })}\n />\n <IntegrationCard\n data-testid=\"custom-email-provider-integration-card\"\n description={ownDomainDescription}\n icon={MailSend}\n path={customEmailProviderRoute}\n title={ownDomainTitle}\n status={getCardStatus({\n isConnected: isSparkpostConnected,\n isPending: sparkpostExists && !isSparkpostConnected,\n })}\n />\n <IntegrationCard\n data-testid=\"smtp-integration-card\"\n description={smtpDescription}\n icon={MailSend}\n path={smtpRoute}\n status={getCardStatus({ isConnected: isSmtpConnected })}\n title={smtpTitle}\n />\n </div>\n </div>\n </div>\n );\n};\n\nexport default EmailDeliveryScreen;\n"],"names":["useGmail","_ref","ownerId","indexRoute","canManageIntegrations","_useState","useState","_useState2","_slicedToArray","isDisconnectAlertOpen","setIsDisconnectAlertOpen","history","useHistory","queryClient","useQueryClient","_useFetchGmail","useFetchGmail","enabled","isLoading","_useFetchGmail$data","data","_useDestroyGmail","useDestroyGmail","isDestroying","isPending","destroyIntegration","mutate","onClose","replace","onDisconnect","onSuccess","showThumbsUpToastr","invalidateAllIntegrationQueries","exists","isConnected","connected","errorMessage","error","useOutlook","_useFetchOutlook","useFetchOutlook","_useFetchOutlook$data","_useDestroyOutlook","useDestroyOutlook","status","shadowAccount","isWaitingForTestEmail","useSmtp","_useFetchSmtp","useFetchSmtp","_useFetchSmtp$data","_useDestroySmtp","useDestroySmtp","STATUS_TAG_CONFIG","labelKey","style","icon","Check","pending","Warning","IntegrationCard","Icon","title","description","path","dataTestId","_useTranslation","useTranslation","t","tagConfig","_jsxs","Link","className","to","children","_jsx","size","Typography","weight","Tag","label","EmailDeliveryScreen","gmailRoute","outlookRoute","customEmailProviderRoute","smtpRoute","gmailIntegration","outlookIntegration","sparkpostIntegration","useSparkpostDomain","smtpIntegration","isGmailConnected","isGmailLoading","gmailError","isOutlookConnected","isOutlookLoading","isOutlookPending","outlookError","isSparkpostConnected","isSparkpostLoading","sparkpostExists","isSmtpConnected","isSmtpLoading","getCardStatus","_ref2","hasError","gmailTitle","gmailDescription","outlookTitle","outlookDescription","ownDomainTitle","ownDomainDescription","smtpTitle","smtpDescription","Spinner","GmailIcon","OutlookIcon","MailSend"],"mappings":";;;;;;;;;;;;;;;;;;;;AAYA,IAAMA,QAAQ,GAAG,SAAXA,QAAQA,CAAAC,IAAA,EAAuD;AAAA,EAAA,IAAjDC,OAAO,GAAAD,IAAA,CAAPC,OAAO;IAAEC,UAAU,GAAAF,IAAA,CAAVE,UAAU;IAAEC,qBAAqB,GAAAH,IAAA,CAArBG,qBAAqB;AAC5D,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,IAAMI,OAAO,GAAGC,yBAAU,EAAE;AAE5B,EAAA,IAAMC,WAAW,GAAGC,yBAAc,EAAE;AAEpC,EAAA,IAAAC,cAAA,GAAiCC,6BAAa,CAACd,OAAO,EAAE;AACtDe,MAAAA,OAAO,EAAEb;AACX,KAAC,CAAC;IAFMc,SAAS,GAAAH,cAAA,CAATG,SAAS;IAAAC,mBAAA,GAAAJ,cAAA,CAAEK,IAAI;A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