@bigbinary/neeto-email-delivery-frontend 1.0.1

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 (62) hide show
  1. package/README.md +150 -0
  2. package/app/javascript/src/translations/ar.json +5 -0
  3. package/app/javascript/src/translations/bg.json +5 -0
  4. package/app/javascript/src/translations/ca.json +5 -0
  5. package/app/javascript/src/translations/cs.json +5 -0
  6. package/app/javascript/src/translations/da.json +5 -0
  7. package/app/javascript/src/translations/de.json +5 -0
  8. package/app/javascript/src/translations/en.json +80 -0
  9. package/app/javascript/src/translations/es-MX.json +5 -0
  10. package/app/javascript/src/translations/es.json +5 -0
  11. package/app/javascript/src/translations/et.json +5 -0
  12. package/app/javascript/src/translations/fi.json +5 -0
  13. package/app/javascript/src/translations/fil.json +5 -0
  14. package/app/javascript/src/translations/fr.json +5 -0
  15. package/app/javascript/src/translations/hi.json +5 -0
  16. package/app/javascript/src/translations/hr.json +5 -0
  17. package/app/javascript/src/translations/id.json +5 -0
  18. package/app/javascript/src/translations/index.js +3 -0
  19. package/app/javascript/src/translations/it.json +5 -0
  20. package/app/javascript/src/translations/ja.json +5 -0
  21. package/app/javascript/src/translations/ko.json +5 -0
  22. package/app/javascript/src/translations/nl.json +5 -0
  23. package/app/javascript/src/translations/pl.json +5 -0
  24. package/app/javascript/src/translations/pt-BR.json +5 -0
  25. package/app/javascript/src/translations/pt.json +5 -0
  26. package/app/javascript/src/translations/ro.json +5 -0
  27. package/app/javascript/src/translations/ru.json +5 -0
  28. package/app/javascript/src/translations/sk.json +5 -0
  29. package/app/javascript/src/translations/sl.json +5 -0
  30. package/app/javascript/src/translations/sv.json +5 -0
  31. package/app/javascript/src/translations/th.json +5 -0
  32. package/app/javascript/src/translations/tr.json +5 -0
  33. package/app/javascript/src/translations/uk.json +5 -0
  34. package/app/javascript/src/translations/vi.json +5 -0
  35. package/app/javascript/src/translations/zh-CN.json +5 -0
  36. package/app/javascript/src/translations/zh-TW.json +5 -0
  37. package/dist/EmailDeliveryScreen.js +419 -0
  38. package/dist/EmailDeliveryScreen.js.map +1 -0
  39. package/dist/SparkpostDomainSetup.js +119 -0
  40. package/dist/SparkpostDomainSetup.js.map +1 -0
  41. package/dist/SparkpostDomainVerify.js +265 -0
  42. package/dist/SparkpostDomainVerify.js.map +1 -0
  43. package/dist/cjs/EmailDeliveryScreen.js +421 -0
  44. package/dist/cjs/EmailDeliveryScreen.js.map +1 -0
  45. package/dist/cjs/SparkpostDomainSetup.js +121 -0
  46. package/dist/cjs/SparkpostDomainSetup.js.map +1 -0
  47. package/dist/cjs/SparkpostDomainVerify.js +267 -0
  48. package/dist/cjs/SparkpostDomainVerify.js.map +1 -0
  49. package/dist/cjs/index.js +46 -0
  50. package/dist/cjs/index.js.map +1 -0
  51. package/dist/constants-9aNca_br.js +67 -0
  52. package/dist/constants-9aNca_br.js.map +1 -0
  53. package/dist/constants-DcHGgJC2.js +94 -0
  54. package/dist/constants-DcHGgJC2.js.map +1 -0
  55. package/dist/index.js +38 -0
  56. package/dist/index.js.map +1 -0
  57. package/dist/useSparkpostDomain-ByWd7ekp.js +183 -0
  58. package/dist/useSparkpostDomain-ByWd7ekp.js.map +1 -0
  59. package/dist/useSparkpostDomain-DogzCozg.js +193 -0
  60. package/dist/useSparkpostDomain-DogzCozg.js.map +1 -0
  61. package/package.json +235 -0
  62. package/types.d.ts +22 -0
@@ -0,0 +1,267 @@
1
+ 'use strict';
2
+
3
+ var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
4
+ var react = require('react');
5
+ var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
6
+ var CardLayout = require('@bigbinary/neeto-molecules/CardLayout');
7
+ var Spinner = require('@bigbinary/neetoui/Spinner');
8
+ var ramda = require('ramda');
9
+ var reactI18next = require('react-i18next');
10
+ var reactRouterDom = require('react-router-dom');
11
+ var constants = require('../constants-DcHGgJC2.js');
12
+ var useSparkpostDomain = require('../useSparkpostDomain-DogzCozg.js');
13
+ var Typography = require('@bigbinary/neetoui/Typography');
14
+ var Tag = require('@bigbinary/neetoui/Tag');
15
+ var CopyToClipboardButton = require('@bigbinary/neeto-molecules/CopyToClipboardButton');
16
+ var jsxRuntime = require('react/jsx-runtime');
17
+ var Button = require('@bigbinary/neetoui/Button');
18
+ var Callout = require('@bigbinary/neetoui/Callout');
19
+ require('@babel/runtime/helpers/defineProperty');
20
+ require('@babel/runtime/helpers/objectWithoutProperties');
21
+ require('classnames');
22
+ require('@bigbinary/neeto-molecules/Container');
23
+ require('@bigbinary/neeto-molecules/Header');
24
+ require('i18next');
25
+ require('yup');
26
+ require('@bigbinary/neetoui/Toastr');
27
+ require('@tanstack/react-query');
28
+ require('axios');
29
+ require('@bigbinary/neeto-commons-frontend/utils');
30
+
31
+ var RecordField = function RecordField(_ref) {
32
+ var label = _ref.label,
33
+ value = _ref.value;
34
+ return /*#__PURE__*/jsxRuntime.jsxs("div", {
35
+ className: "flex w-full flex-col gap-2",
36
+ children: [/*#__PURE__*/jsxRuntime.jsx("div", {
37
+ className: "flex items-center justify-between",
38
+ children: /*#__PURE__*/jsxRuntime.jsx(Typography, {
39
+ style: "h5",
40
+ children: label
41
+ })
42
+ }), /*#__PURE__*/jsxRuntime.jsxs("code", {
43
+ className: "neeto-ui-text-gray-800 neeto-ui-bg-gray-100 neeto-ui-rounded-md relative block p-4 pr-10 font-mono text-xs break-all",
44
+ children: [value, /*#__PURE__*/jsxRuntime.jsx(CopyToClipboardButton, {
45
+ value: value,
46
+ className: "absolute top-1 right-1 shrink-0",
47
+ style: "tertiary"
48
+ })]
49
+ })]
50
+ });
51
+ };
52
+
53
+ var DnsRecordsSection = function DnsRecordsSection(_ref) {
54
+ var dnsRecords = _ref.dnsRecords,
55
+ domain = _ref.domain,
56
+ sparkpostData = _ref.sparkpostData;
57
+ var _useTranslation = reactI18next.useTranslation(),
58
+ t = _useTranslation.t;
59
+ var formatPurpose = function formatPurpose(purpose) {
60
+ switch (purpose) {
61
+ case "dkim":
62
+ return t("neetoEmailDelivery.sparkpost.dnsRecords.dkimSigning");
63
+ default:
64
+ return purpose;
65
+ }
66
+ };
67
+ var formatRecordName = function formatRecordName(record) {
68
+ return record.hostname.endsWith(".".concat(domain)) ? record.hostname : "".concat(record.hostname, ".").concat(domain);
69
+ };
70
+ if (ramda.isEmpty(dnsRecords)) {
71
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
72
+ className: "p-8 text-center",
73
+ children: /*#__PURE__*/jsxRuntime.jsx(Typography, {
74
+ className: "neeto-ui-text-gray-600",
75
+ style: "body2",
76
+ children: sparkpostData !== null && sparkpostData !== void 0 && sparkpostData.connected ? t("neetoEmailDelivery.sparkpost.dnsRecords.alreadyVerified") : t("neetoEmailDelivery.sparkpost.dnsRecords.loading")
77
+ })
78
+ });
79
+ }
80
+ return /*#__PURE__*/jsxRuntime.jsxs("div", {
81
+ className: "flex flex-col gap-4",
82
+ children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
83
+ style: "h4",
84
+ weight: "medium",
85
+ children: t("neetoEmailDelivery.sparkpost.dnsRecords.title")
86
+ }), dnsRecords.map(function (record, index) {
87
+ return /*#__PURE__*/jsxRuntime.jsxs("div", {
88
+ className: "neeto-ui-rounded-lg neeto-ui-bg-white neeto-ui-border-gray-300 border p-3",
89
+ children: [/*#__PURE__*/jsxRuntime.jsx("div", {
90
+ className: "mb-4 flex items-center justify-between",
91
+ children: /*#__PURE__*/jsxRuntime.jsxs("div", {
92
+ className: "flex items-center gap-2",
93
+ children: [/*#__PURE__*/jsxRuntime.jsx(Tag, {
94
+ label: formatPurpose(record.purpose),
95
+ size: "small",
96
+ style: constants.PURPOSE_COLORS[record.purpose] || constants.DEFAULT_COLOR
97
+ }), /*#__PURE__*/jsxRuntime.jsx(Tag, {
98
+ label: record.type,
99
+ size: "small",
100
+ style: "secondary"
101
+ })]
102
+ })
103
+ }), /*#__PURE__*/jsxRuntime.jsxs("div", {
104
+ className: "flex flex-col gap-4",
105
+ children: [/*#__PURE__*/jsxRuntime.jsx(RecordField, {
106
+ label: t("neetoEmailDelivery.sparkpost.dnsRecords.nameLabel"),
107
+ value: formatRecordName(record)
108
+ }), /*#__PURE__*/jsxRuntime.jsx(RecordField, {
109
+ label: t("neetoEmailDelivery.sparkpost.dnsRecords.valueLabel"),
110
+ value: record.value
111
+ })]
112
+ })]
113
+ }, index);
114
+ })]
115
+ });
116
+ };
117
+
118
+ var VerificationActions = reactUtils.withT(function (_ref) {
119
+ var t = _ref.t,
120
+ isVerifying = _ref.isVerifying,
121
+ verificationStatus = _ref.verificationStatus,
122
+ onVerify = _ref.onVerify,
123
+ onCancel = _ref.onCancel;
124
+ return /*#__PURE__*/jsxRuntime.jsxs("div", {
125
+ className: "flex gap-3",
126
+ children: [/*#__PURE__*/jsxRuntime.jsx(Button, {
127
+ disabled: isVerifying || verificationStatus === "success",
128
+ loading: isVerifying,
129
+ onClick: onVerify,
130
+ children: isVerifying ? t("neetoEmailDelivery.sparkpost.verify.verifying") : t("neetoEmailDelivery.sparkpost.verify.verifyDomain")
131
+ }), /*#__PURE__*/jsxRuntime.jsx(Button, {
132
+ disabled: isVerifying,
133
+ style: "secondary",
134
+ onClick: onCancel,
135
+ children: t("neetoEmailDelivery.sparkpost.verify.cancel")
136
+ })]
137
+ });
138
+ });
139
+
140
+ var VerificationInstructions = function VerificationInstructions() {
141
+ var _useTranslation = reactI18next.useTranslation(),
142
+ t = _useTranslation.t;
143
+ var instructionText = t("neetoEmailDelivery.sparkpost.instructions.fullText");
144
+ var lines = instructionText.split("\n");
145
+ return /*#__PURE__*/jsxRuntime.jsx(Callout, {
146
+ style: "info",
147
+ children: /*#__PURE__*/jsxRuntime.jsx("div", {
148
+ className: "w-full",
149
+ children: /*#__PURE__*/jsxRuntime.jsx(Typography, {
150
+ style: "body2",
151
+ children: lines.map(function (line, index) {
152
+ return /*#__PURE__*/jsxRuntime.jsxs("span", {
153
+ children: [line, index < lines.length - 1 && /*#__PURE__*/jsxRuntime.jsx("br", {})]
154
+ }, index);
155
+ })
156
+ })
157
+ })
158
+ });
159
+ };
160
+
161
+ var VerificationStatusCallout = function VerificationStatusCallout(_ref) {
162
+ var verificationStatus = _ref.verificationStatus;
163
+ var _useTranslation = reactI18next.useTranslation(),
164
+ t = _useTranslation.t;
165
+ var config = constants.VERIFICATION_STATUS_CONFIG[verificationStatus];
166
+ if (!config) return null;
167
+ return /*#__PURE__*/jsxRuntime.jsx(Callout, {
168
+ style: config.style,
169
+ children: /*#__PURE__*/jsxRuntime.jsxs("div", {
170
+ className: "space-y-1",
171
+ children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
172
+ style: "body2",
173
+ weight: "medium",
174
+ children: t(config.titleKey)
175
+ }), /*#__PURE__*/jsxRuntime.jsx(Typography, {
176
+ style: "body3",
177
+ children: t(config.descriptionKey)
178
+ })]
179
+ })
180
+ });
181
+ };
182
+
183
+ var SparkpostDomainVerify = function SparkpostDomainVerify(_ref) {
184
+ var ownerId = _ref.ownerId,
185
+ canManageIntegrations = _ref.canManageIntegrations,
186
+ emailDeliveryIndexRoute = _ref.emailDeliveryIndexRoute;
187
+ var _useState = react.useState(""),
188
+ _useState2 = _slicedToArray(_useState, 2),
189
+ verificationStatus = _useState2[0],
190
+ setVerificationStatus = _useState2[1];
191
+ var _useTranslation = reactI18next.useTranslation(),
192
+ t = _useTranslation.t;
193
+ var history = reactRouterDom.useHistory();
194
+ var _useQueryParams = reactUtils.useQueryParams(),
195
+ queryDomain = _useQueryParams.domain;
196
+ var _useFetchSparkpostDom = useSparkpostDomain.useFetchSparkpostDomain(ownerId),
197
+ sparkpostData = _useFetchSparkpostDom.data,
198
+ isLoading = _useFetchSparkpostDom.isLoading;
199
+ var _useSparkpostDomain = useSparkpostDomain.useSparkpostDomain({
200
+ ownerId: ownerId,
201
+ canManageIntegrations: canManageIntegrations
202
+ }),
203
+ onVerifyDomain = _useSparkpostDomain.onVerifyDomain,
204
+ isVerifying = _useSparkpostDomain.isVerifying;
205
+ var domain = ramda.pathOr(queryDomain, ["domain"], sparkpostData);
206
+ var dnsRecords = ramda.pathOr([], ["verificationRecords"], sparkpostData);
207
+ react.useEffect(function () {
208
+ // Check if domain is already verified
209
+ if (!(sparkpostData !== null && sparkpostData !== void 0 && sparkpostData.connected)) return;
210
+ setVerificationStatus(constants.VERIFICATION_STATUSES.SUCCESS);
211
+ setTimeout(function () {
212
+ history.push(emailDeliveryIndexRoute);
213
+ }, 5000);
214
+ }, [sparkpostData, emailDeliveryIndexRoute, history]);
215
+ var handleVerify = function handleVerify() {
216
+ onVerifyDomain(function (response) {
217
+ if (response !== null && response !== void 0 && response.verified) {
218
+ setVerificationStatus(constants.VERIFICATION_STATUSES.SUCCESS);
219
+ setTimeout(function () {
220
+ history.push(emailDeliveryIndexRoute);
221
+ }, 3000);
222
+ } else {
223
+ setVerificationStatus(constants.VERIFICATION_STATUSES.PENDING);
224
+ }
225
+ }, function (_error) {
226
+ setVerificationStatus(constants.VERIFICATION_STATUSES.ERROR);
227
+ });
228
+ };
229
+ var handleCancel = function handleCancel() {
230
+ history.push(emailDeliveryIndexRoute);
231
+ };
232
+ if (isLoading) {
233
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
234
+ className: "flex justify-center p-6",
235
+ children: /*#__PURE__*/jsxRuntime.jsx(Spinner, {})
236
+ });
237
+ }
238
+ return /*#__PURE__*/jsxRuntime.jsx(constants.PageWrapper, {
239
+ children: /*#__PURE__*/jsxRuntime.jsx(constants.PageContent, {
240
+ children: /*#__PURE__*/jsxRuntime.jsx(CardLayout, {
241
+ title: t("neetoEmailDelivery.sparkpost.verify.title"),
242
+ actionBlock: /*#__PURE__*/jsxRuntime.jsx(VerificationActions, {
243
+ isVerifying: isVerifying,
244
+ verificationStatus: verificationStatus,
245
+ onCancel: handleCancel,
246
+ onVerify: handleVerify
247
+ }),
248
+ description: t("neetoEmailDelivery.sparkpost.verify.description", {
249
+ domain: domain
250
+ }).replace(/<strong>|<\/strong>/g, ""),
251
+ children: /*#__PURE__*/jsxRuntime.jsxs("div", {
252
+ className: "flex flex-col gap-4",
253
+ children: [/*#__PURE__*/jsxRuntime.jsx(VerificationStatusCallout, {
254
+ verificationStatus: verificationStatus
255
+ }), /*#__PURE__*/jsxRuntime.jsx(DnsRecordsSection, {
256
+ dnsRecords: dnsRecords,
257
+ domain: domain,
258
+ sparkpostData: sparkpostData
259
+ }), /*#__PURE__*/jsxRuntime.jsx(VerificationInstructions, {})]
260
+ })
261
+ })
262
+ })
263
+ });
264
+ };
265
+
266
+ module.exports = SparkpostDomainVerify;
267
+ //# sourceMappingURL=SparkpostDomainVerify.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SparkpostDomainVerify.js","sources":["../../app/javascript/src/components/SparkpostDomain/RecordField.jsx","../../app/javascript/src/components/SparkpostDomain/DnsRecordsSection.jsx","../../app/javascript/src/components/SparkpostDomain/VerificationActions.jsx","../../app/javascript/src/components/SparkpostDomain/VerificationInstructions.jsx","../../app/javascript/src/components/SparkpostDomain/VerificationStatusCallout.jsx","../../app/javascript/src/components/SparkpostDomain/Verify.jsx"],"sourcesContent":["import CopyToClipboardButton from \"neetomolecules/CopyToClipboardButton\";\nimport { Typography } from \"neetoui\";\n\nconst RecordField = ({ label, value }) => (\n <div className=\"flex w-full flex-col gap-2\">\n <div className=\"flex items-center justify-between\">\n <Typography style=\"h5\">{label}</Typography>\n </div>\n <code className=\"neeto-ui-text-gray-800 neeto-ui-bg-gray-100 neeto-ui-rounded-md relative block p-4 pr-10 font-mono text-xs break-all\">\n {value}\n <CopyToClipboardButton\n {...{ value }}\n className=\"absolute top-1 right-1 shrink-0\"\n style=\"tertiary\"\n />\n </code>\n </div>\n);\n\nexport default RecordField;\n","import { Typography, Tag } from \"neetoui\";\nimport { isEmpty } from \"ramda\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { PURPOSE_COLORS, DEFAULT_COLOR } from \"./constants\";\nimport RecordField from \"./RecordField\";\n\nconst DnsRecordsSection = ({ dnsRecords, domain, sparkpostData }) => {\n const { t } = useTranslation();\n\n const formatPurpose = purpose => {\n switch (purpose) {\n case \"dkim\":\n return t(\"neetoEmailDelivery.sparkpost.dnsRecords.dkimSigning\");\n default:\n return purpose;\n }\n };\n\n const formatRecordName = record =>\n record.hostname.endsWith(`.${domain}`)\n ? record.hostname\n : `${record.hostname}.${domain}`;\n\n if (isEmpty(dnsRecords)) {\n return (\n <div className=\"p-8 text-center\">\n <Typography className=\"neeto-ui-text-gray-600\" style=\"body2\">\n {sparkpostData?.connected\n ? t(\"neetoEmailDelivery.sparkpost.dnsRecords.alreadyVerified\")\n : t(\"neetoEmailDelivery.sparkpost.dnsRecords.loading\")}\n </Typography>\n </div>\n );\n }\n\n return (\n <div className=\"flex flex-col gap-4\">\n <Typography style=\"h4\" weight=\"medium\">\n {t(\"neetoEmailDelivery.sparkpost.dnsRecords.title\")}\n </Typography>\n {dnsRecords.map((record, index) => (\n <div\n className=\"neeto-ui-rounded-lg neeto-ui-bg-white neeto-ui-border-gray-300 border p-3\"\n key={index}\n >\n <div className=\"mb-4 flex items-center justify-between\">\n <div className=\"flex items-center gap-2\">\n <Tag\n label={formatPurpose(record.purpose)}\n size=\"small\"\n style={PURPOSE_COLORS[record.purpose] || DEFAULT_COLOR}\n />\n <Tag label={record.type} size=\"small\" style=\"secondary\" />\n </div>\n </div>\n <div className=\"flex flex-col gap-4\">\n <RecordField\n label={t(\"neetoEmailDelivery.sparkpost.dnsRecords.nameLabel\")}\n value={formatRecordName(record)}\n />\n <RecordField\n label={t(\"neetoEmailDelivery.sparkpost.dnsRecords.valueLabel\")}\n value={record.value}\n />\n </div>\n </div>\n ))}\n </div>\n );\n};\n\nexport default DnsRecordsSection;\n","import { withT } from \"neetocommons/react-utils\";\nimport { Button } from \"neetoui\";\n\nconst VerificationActions = withT(\n ({ t, isVerifying, verificationStatus, onVerify, onCancel }) => (\n <div className=\"flex gap-3\">\n <Button\n disabled={isVerifying || verificationStatus === \"success\"}\n loading={isVerifying}\n onClick={onVerify}\n >\n {isVerifying\n ? t(\"neetoEmailDelivery.sparkpost.verify.verifying\")\n : t(\"neetoEmailDelivery.sparkpost.verify.verifyDomain\")}\n </Button>\n <Button disabled={isVerifying} style=\"secondary\" onClick={onCancel}>\n {t(\"neetoEmailDelivery.sparkpost.verify.cancel\")}\n </Button>\n </div>\n )\n);\n\nexport default VerificationActions;\n","import { Typography, Callout } from \"neetoui\";\nimport { useTranslation } from \"react-i18next\";\n\nconst VerificationInstructions = () => {\n const { t } = useTranslation();\n\n const instructionText = t(\n \"neetoEmailDelivery.sparkpost.instructions.fullText\"\n );\n const lines = instructionText.split(\"\\n\");\n\n return (\n <Callout style=\"info\">\n <div className=\"w-full\">\n <Typography style=\"body2\">\n {lines.map((line, index) => (\n <span key={index}>\n {line}\n {index < lines.length - 1 && <br />}\n </span>\n ))}\n </Typography>\n </div>\n </Callout>\n );\n};\n\nexport default VerificationInstructions;\n","import { Callout, Typography } from \"neetoui\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { VERIFICATION_STATUS_CONFIG } from \"./constants\";\n\nconst VerificationStatusCallout = ({ verificationStatus }) => {\n const { t } = useTranslation();\n\n const config = VERIFICATION_STATUS_CONFIG[verificationStatus];\n\n if (!config) return null;\n\n return (\n <Callout style={config.style}>\n <div className=\"space-y-1\">\n <Typography style=\"body2\" weight=\"medium\">\n {t(config.titleKey)}\n </Typography>\n <Typography style=\"body3\">{t(config.descriptionKey)}</Typography>\n </div>\n </Callout>\n );\n};\n\nexport default VerificationStatusCallout;\n","import { useState, useEffect } from \"react\";\n\nimport { useQueryParams } from \"neetocommons/react-utils\";\nimport CardLayout from \"neetomolecules/CardLayout\";\nimport { Spinner } from \"neetoui\";\nimport { pathOr } from \"ramda\";\nimport { useTranslation } from \"react-i18next\";\nimport { useHistory } from \"react-router-dom\";\n\nimport { PageContent, PageWrapper } from \"components/PageLayout\";\nimport useSparkpostDomain from \"hooks/integrations/useSparkpostDomain\";\nimport { useFetchSparkpostDomain } from \"hooks/reactQuery/integrations/useSparkpostApi\";\n\nimport { VERIFICATION_STATUSES } from \"./constants\";\nimport DnsRecordsSection from \"./DnsRecordsSection\";\nimport VerificationActions from \"./VerificationActions\";\nimport VerificationInstructions from \"./VerificationInstructions\";\nimport VerificationStatusCallout from \"./VerificationStatusCallout\";\n\nconst SparkpostDomainVerify = ({\n ownerId,\n canManageIntegrations,\n emailDeliveryIndexRoute,\n}) => {\n const [verificationStatus, setVerificationStatus] = useState(\"\");\n const { t } = useTranslation();\n\n const history = useHistory();\n\n const { domain: queryDomain } = useQueryParams();\n\n const { data: sparkpostData, isLoading } = useFetchSparkpostDomain(ownerId);\n const { onVerifyDomain, isVerifying } = useSparkpostDomain({\n ownerId,\n canManageIntegrations,\n });\n\n const domain = pathOr(queryDomain, [\"domain\"], sparkpostData);\n const dnsRecords = pathOr([], [\"verificationRecords\"], sparkpostData);\n\n useEffect(() => {\n // Check if domain is already verified\n if (!sparkpostData?.connected) return;\n setVerificationStatus(VERIFICATION_STATUSES.SUCCESS);\n setTimeout(() => {\n history.push(emailDeliveryIndexRoute);\n }, 5000);\n }, [sparkpostData, emailDeliveryIndexRoute, history]);\n\n const handleVerify = () => {\n onVerifyDomain(\n response => {\n if (response?.verified) {\n setVerificationStatus(VERIFICATION_STATUSES.SUCCESS);\n setTimeout(() => {\n history.push(emailDeliveryIndexRoute);\n }, 3000);\n } else {\n setVerificationStatus(VERIFICATION_STATUSES.PENDING);\n }\n },\n _error => {\n setVerificationStatus(VERIFICATION_STATUSES.ERROR);\n }\n );\n };\n\n const handleCancel = () => {\n history.push(emailDeliveryIndexRoute);\n };\n\n if (isLoading) {\n return (\n <div className=\"flex justify-center p-6\">\n <Spinner />\n </div>\n );\n }\n\n return (\n <PageWrapper>\n <PageContent>\n <CardLayout\n title={t(\"neetoEmailDelivery.sparkpost.verify.title\")}\n actionBlock={\n <VerificationActions\n {...{ isVerifying, verificationStatus }}\n onCancel={handleCancel}\n onVerify={handleVerify}\n />\n }\n description={t(\"neetoEmailDelivery.sparkpost.verify.description\", {\n domain,\n }).replace(/<strong>|<\\/strong>/g, \"\")}\n >\n <div className=\"flex flex-col gap-4\">\n <VerificationStatusCallout {...{ verificationStatus }} />\n <DnsRecordsSection {...{ dnsRecords, domain, sparkpostData }} />\n <VerificationInstructions />\n </div>\n </CardLayout>\n </PageContent>\n </PageWrapper>\n );\n};\n\nexport default SparkpostDomainVerify;\n"],"names":["RecordField","_ref","label","value","_jsxs","className","children","_jsx","Typography","style","CopyToClipboardButton","DnsRecordsSection","dnsRecords","domain","sparkpostData","_useTranslation","useTranslation","t","formatPurpose","purpose","formatRecordName","record","hostname","endsWith","concat","isEmpty","connected","weight","map","index","Tag","size","PURPOSE_COLORS","DEFAULT_COLOR","type","VerificationActions","withT","isVerifying","verificationStatus","onVerify","onCancel","Button","disabled","loading","onClick","VerificationInstructions","instructionText","lines","split","Callout","line","length","VerificationStatusCallout","config","VERIFICATION_STATUS_CONFIG","titleKey","descriptionKey","SparkpostDomainVerify","ownerId","canManageIntegrations","emailDeliveryIndexRoute","_useState","useState","_useState2","_slicedToArray","setVerificationStatus","history","useHistory","_useQueryParams","useQueryParams","queryDomain","_useFetchSparkpostDom","useFetchSparkpostDomain","data","isLoading","_useSparkpostDomain","useSparkpostDomain","onVerifyDomain","pathOr","useEffect","VERIFICATION_STATUSES","SUCCESS","setTimeout","push","handleVerify","response","verified","PENDING","_error","ERROR","handleCancel","Spinner","PageWrapper","PageContent","CardLayout","title","actionBlock","description","replace"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,IAAMA,WAAW,GAAG,SAAdA,WAAWA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,KAAK,GAAAD,IAAA,CAALC,KAAK;IAAEC,KAAK,GAAAF,IAAA,CAALE,KAAK;AAAA,EAAA,oBACjCC,eAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,4BAA4B;AAAAC,IAAAA,QAAA,gBACzCC,cAAA,CA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C,CAACqF,OAAO,CAAC,sBAAsB,EAAE,EAAE,CAAE;AAAA5F,QAAAA,QAAA,eAEvCF,eAAA,CAAA,KAAA,EAAA;AAAKC,UAAAA,SAAS,EAAC,qBAAqB;UAAAC,QAAA,EAAA,cAClCC,cAAA,CAAC6C,yBAAyB,EAAA;AAAOd,YAAAA,kBAAkB,EAAlBA;AAAkB,WAAK,CAAC,eACzD/B,cAAA,CAACI,iBAAiB,EAAA;AAAOC,YAAAA,UAAU,EAAVA,UAAU;AAAEC,YAAAA,MAAM,EAANA,MAAM;AAAEC,YAAAA,aAAa,EAAbA;AAAa,WAAK,CAAC,eAChEP,cAAA,CAACsC,wBAAwB,IAAE,CAAC;SACzB;OACK;KACD;AAAC,GACH,CAAC;AAElB;;;;"}
@@ -0,0 +1,46 @@
1
+ 'use strict';
2
+
3
+ var EmailDeliveryScreen = require('./EmailDeliveryScreen.js');
4
+ var SparkpostDomainSetup = require('./SparkpostDomainSetup.js');
5
+ var SparkpostDomainVerify = require('./SparkpostDomainVerify.js');
6
+ require('@bigbinary/neeto-cist');
7
+ require('@bigbinary/neeto-commons-frontend/react-utils');
8
+ require('@bigbinary/neeto-commons-frontend/utils');
9
+ require('@bigbinary/neeto-icons/MailSend');
10
+ require('@bigbinary/neeto-icons/misc/Gmail');
11
+ require('@bigbinary/neeto-icons/misc/Outlook');
12
+ require('@bigbinary/neetoui/Spinner');
13
+ require('@bigbinary/neetoui/Callout');
14
+ require('@bigbinary/neetoui/Toastr');
15
+ require('ramda');
16
+ require('react-i18next');
17
+ require('react-router-dom');
18
+ require('../useSparkpostDomain-DogzCozg.js');
19
+ require('@babel/runtime/helpers/slicedToArray');
20
+ require('react');
21
+ require('@babel/runtime/helpers/defineProperty');
22
+ require('@tanstack/react-query');
23
+ require('axios');
24
+ require('i18next');
25
+ require('@bigbinary/neetoui/Button');
26
+ require('@bigbinary/neetoui/Tag');
27
+ require('@bigbinary/neetoui/Typography');
28
+ require('react/jsx-runtime');
29
+ require('@bigbinary/neeto-molecules/CardLayout');
30
+ require('@bigbinary/neetoui/formik/Input');
31
+ require('@bigbinary/neetoui/formik/ActionBlock');
32
+ require('@bigbinary/neetoui/formik/Form');
33
+ require('../constants-DcHGgJC2.js');
34
+ require('@babel/runtime/helpers/objectWithoutProperties');
35
+ require('classnames');
36
+ require('@bigbinary/neeto-molecules/Container');
37
+ require('@bigbinary/neeto-molecules/Header');
38
+ require('yup');
39
+ require('@bigbinary/neeto-molecules/CopyToClipboardButton');
40
+
41
+
42
+
43
+ exports.EmailDeliveryScreen = EmailDeliveryScreen;
44
+ exports.SparkpostDomainSetup = SparkpostDomainSetup;
45
+ exports.SparkpostDomainVerify = SparkpostDomainVerify;
46
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,67 @@
1
+ import '@babel/runtime/helpers/defineProperty';
2
+ import '@babel/runtime/helpers/objectWithoutProperties';
3
+ import { forwardRef } from 'react';
4
+ import classnames from 'classnames';
5
+ import Container from '@bigbinary/neeto-molecules/Container';
6
+ import '@bigbinary/neeto-molecules/Header';
7
+ import 'react-i18next';
8
+ import { jsx } from 'react/jsx-runtime';
9
+ import { t } from 'i18next';
10
+ import * as yup from 'yup';
11
+
12
+ var PageWrapper = function PageWrapper(_ref) {
13
+ var children = _ref.children,
14
+ _ref$className = _ref.className,
15
+ className = _ref$className === void 0 ? "" : _ref$className;
16
+ return /*#__PURE__*/jsx(Container, {
17
+ className: className,
18
+ children: children
19
+ });
20
+ };
21
+ var PageContent = /*#__PURE__*/forwardRef(function (_ref3, ref) {
22
+ var children = _ref3.children,
23
+ _ref3$className = _ref3.className,
24
+ className = _ref3$className === void 0 ? "" : _ref3$className;
25
+ return /*#__PURE__*/jsx("div", {
26
+ className: "min-h-0 w-full grow",
27
+ children: /*#__PURE__*/jsx("div", {
28
+ ref: ref,
29
+ className: classnames(["mx-auto max-w-7xl", className]),
30
+ children: children
31
+ })
32
+ });
33
+ });
34
+ PageContent.displayName = "PageContent";
35
+
36
+ var PURPOSE_COLORS = {
37
+ dkim: "info"
38
+ };
39
+ var DEFAULT_COLOR = "secondary";
40
+ var VERIFICATION_STATUSES = {
41
+ SUCCESS: "success",
42
+ ERROR: "error",
43
+ PENDING: "pending"
44
+ };
45
+ var VERIFICATION_STATUS_CONFIG = {
46
+ success: {
47
+ style: "success",
48
+ titleKey: "neetoEmailDelivery.sparkpost.status.successTitle",
49
+ descriptionKey: "neetoEmailDelivery.sparkpost.status.successDescription"
50
+ },
51
+ error: {
52
+ style: "danger",
53
+ titleKey: "neetoEmailDelivery.sparkpost.status.errorTitle",
54
+ descriptionKey: "neetoEmailDelivery.sparkpost.status.errorDescription"
55
+ },
56
+ pending: {
57
+ style: "warning",
58
+ titleKey: "neetoEmailDelivery.sparkpost.status.pendingTitle",
59
+ descriptionKey: "neetoEmailDelivery.sparkpost.status.pendingDescription"
60
+ }
61
+ };
62
+ var VALIDATION_SCHEMA = yup.object().shape({
63
+ email: yup.string().trim().required(t("neetoEmailDelivery.sparkpost.setup.validation.emailRequired")).email(t("neetoEmailDelivery.sparkpost.setup.validation.emailInvalid"))
64
+ });
65
+
66
+ export { DEFAULT_COLOR as D, PageWrapper as P, VALIDATION_SCHEMA as V, PageContent as a, PURPOSE_COLORS as b, VERIFICATION_STATUS_CONFIG as c, VERIFICATION_STATUSES as d };
67
+ //# sourceMappingURL=constants-9aNca_br.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants-9aNca_br.js","sources":["../app/javascript/src/components/PageLayout.jsx","../app/javascript/src/components/SparkpostDomain/constants.js"],"sourcesContent":["import { forwardRef, memo } from \"react\";\n\nimport classnames from \"classnames\";\nimport Container from \"neetomolecules/Container\";\nimport Header from \"neetomolecules/Header\";\nimport { useTranslation } from \"react-i18next\";\n\nconst PageWrapper = ({ children, className = \"\" }) => (\n <Container {...{ className }}>{children}</Container>\n);\n\nconst PageHeader = ({\n title,\n actionBlock,\n breadcrumbs,\n titleHelpPopoverProps,\n ...otherProps\n}) => {\n const { t } = useTranslation();\n const defaultBreadcrumbs = [\n { text: t(\"neetoEmailDelivery.settings\"), link: \"/\" },\n { text: title },\n ];\n\n return (\n <Header\n {...{ title, titleHelpPopoverProps, ...otherProps }}\n actionBlock={actionBlock && actionBlock}\n breadcrumbs={breadcrumbs ?? defaultBreadcrumbs}\n size=\"small\"\n />\n );\n};\n\nconst customPropEqualityCheck = (prevProps, nextProps) =>\n prevProps.title === nextProps.title &&\n prevProps.breadcrumbs === nextProps.breadcrumbs;\nconst MemoizedPageHeader = memo(PageHeader, customPropEqualityCheck);\n\nconst PageContent = forwardRef(({ children, className = \"\" }, ref) => (\n <div className=\"min-h-0 w-full grow\">\n <div {...{ ref }} className={classnames([\"mx-auto max-w-7xl\", className])}>\n {children}\n </div>\n </div>\n));\n\nPageContent.displayName = \"PageContent\";\n\nexport { PageWrapper, MemoizedPageHeader as PageHeader, PageContent };\n","import { t } from \"i18next\";\nimport * as yup from \"yup\";\n\nexport const PURPOSE_COLORS = { dkim: \"info\" };\nexport const DEFAULT_COLOR = \"secondary\";\n\nexport const VERIFICATION_STATUSES = {\n SUCCESS: \"success\",\n ERROR: \"error\",\n PENDING: \"pending\",\n};\n\nexport const VERIFICATION_STATUS_CONFIG = {\n success: {\n style: \"success\",\n titleKey: \"neetoEmailDelivery.sparkpost.status.successTitle\",\n descriptionKey: \"neetoEmailDelivery.sparkpost.status.successDescription\",\n },\n error: {\n style: \"danger\",\n titleKey: \"neetoEmailDelivery.sparkpost.status.errorTitle\",\n descriptionKey: \"neetoEmailDelivery.sparkpost.status.errorDescription\",\n },\n pending: {\n style: \"warning\",\n titleKey: \"neetoEmailDelivery.sparkpost.status.pendingTitle\",\n descriptionKey: \"neetoEmailDelivery.sparkpost.status.pendingDescription\",\n },\n};\n\nexport const VALIDATION_SCHEMA = yup.object().shape({\n email: yup\n .string()\n .trim()\n .required(t(\"neetoEmailDelivery.sparkpost.setup.validation.emailRequired\"))\n .email(t(\"neetoEmailDelivery.sparkpost.setup.validation.emailInvalid\")),\n});\n"],"names":["PageWrapper","_ref","children","_ref$className","className","_jsx","Container","PageContent","forwardRef","_ref3","ref","_ref3$className","classnames","displayName","PURPOSE_COLORS","dkim","DEFAULT_COLOR","VERIFICATION_STATUSES","SUCCESS","ERROR","PENDING","VERIFICATION_STATUS_CONFIG","success","style","titleKey","descriptionKey","error","pending","VALIDATION_SCHEMA","yup","object","shape","email","string","trim","required","t"],"mappings":";;;;;;;;;;;AAOA,IAAMA,WAAW,GAAG,SAAdA,WAAWA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAAC,cAAA,GAAAF,IAAA,CAAEG,SAAS;AAATA,IAAAA,SAAS,GAAAD,cAAA,KAAG,KAAA,CAAA,GAAA,EAAE,GAAAA,cAAA;EAAA,oBAC7CE,GAAA,CAACC,SAAS,EAAA;AAAOF,IAAAA,SAAS,EAATA,SAAS;AAAAF,IAAAA,QAAA,EAAKA;AAAQ,GAAY,CAAC;AAAA;AA+BtD,IAAMK,WAAW,gBAAGC,UAAU,CAAC,UAAAC,KAAA,EAA+BC,GAAG,EAAA;AAAA,EAAA,IAA/BR,QAAQ,GAAAO,KAAA,CAARP,QAAQ;IAAAS,eAAA,GAAAF,KAAA,CAAEL,SAAS;AAATA,IAAAA,SAAS,GAAAO,eAAA,KAAG,KAAA,CAAA,GAAA,EAAE,GAAAA,eAAA;AAAA,EAAA,oBACxDN,GAAA,CAAA,KAAA,EAAA;AAAKD,IAAAA,SAAS,EAAC,qBAAqB;AAAAF,IAAAA,QAAA,eAClCG,GAAA,CAAA,KAAA,EAAA;AAAWK,MAAAA,GAAG,EAAHA,GAAG;MAAIN,SAAS,EAAEQ,UAAU,CAAC,CAAC,mBAAmB,EAAER,SAAS,CAAC,CAAE;AAAAF,MAAAA,QAAA,EACvEA;KACE;AAAC,GACH,CAAC;AAAA,CACP;AAEDK,WAAW,CAACM,WAAW,GAAG,aAAa;;AC5ChC,IAAMC,cAAc,GAAG;AAAEC,EAAAA,IAAI,EAAE;AAAO;AACtC,IAAMC,aAAa,GAAG;AAEtB,IAAMC,qBAAqB,GAAG;AACnCC,EAAAA,OAAO,EAAE,SAAS;AAClBC,EAAAA,KAAK,EAAE,OAAO;AACdC,EAAAA,OAAO,EAAE;AACX;AAEO,IAAMC,0BAA0B,GAAG;AACxCC,EAAAA,OAAO,EAAE;AACPC,IAAAA,KAAK,EAAE,SAAS;AAChBC,IAAAA,QAAQ,EAAE,kDAAkD;AAC5DC,IAAAA,cAAc,EAAE;GACjB;AACDC,EAAAA,KAAK,EAAE;AACLH,IAAAA,KAAK,EAAE,QAAQ;AACfC,IAAAA,QAAQ,EAAE,gDAAgD;AAC1DC,IAAAA,cAAc,EAAE;GACjB;AACDE,EAAAA,OAAO,EAAE;AACPJ,IAAAA,KAAK,EAAE,SAAS;AAChBC,IAAAA,QAAQ,EAAE,kDAAkD;AAC5DC,IAAAA,cAAc,EAAE;AAClB;AACF;AAEO,IAAMG,iBAAiB,GAAGC,GAAG,CAACC,MAAM,EAAE,CAACC,KAAK,CAAC;EAClDC,KAAK,EAAEH,GAAG,CACPI,MAAM,EAAE,CACRC,IAAI,EAAE,CACNC,QAAQ,CAACC,CAAC,CAAC,6DAA6D,CAAC,CAAC,CAC1EJ,KAAK,CAACI,CAAC,CAAC,4DAA4D,CAAC;AAC1E,CAAC;;;;"}
@@ -0,0 +1,94 @@
1
+ 'use strict';
2
+
3
+ require('@babel/runtime/helpers/defineProperty');
4
+ require('@babel/runtime/helpers/objectWithoutProperties');
5
+ var react = require('react');
6
+ var classnames = require('classnames');
7
+ var Container = require('@bigbinary/neeto-molecules/Container');
8
+ require('@bigbinary/neeto-molecules/Header');
9
+ require('react-i18next');
10
+ var jsxRuntime = require('react/jsx-runtime');
11
+ var i18next = require('i18next');
12
+ var yup = require('yup');
13
+
14
+ function _interopNamespaceDefault(e) {
15
+ var n = Object.create(null);
16
+ if (e) {
17
+ Object.keys(e).forEach(function (k) {
18
+ if (k !== 'default') {
19
+ var d = Object.getOwnPropertyDescriptor(e, k);
20
+ Object.defineProperty(n, k, d.get ? d : {
21
+ enumerable: true,
22
+ get: function () { return e[k]; }
23
+ });
24
+ }
25
+ });
26
+ }
27
+ n.default = e;
28
+ return Object.freeze(n);
29
+ }
30
+
31
+ var yup__namespace = /*#__PURE__*/_interopNamespaceDefault(yup);
32
+
33
+ var PageWrapper = function PageWrapper(_ref) {
34
+ var children = _ref.children,
35
+ _ref$className = _ref.className,
36
+ className = _ref$className === void 0 ? "" : _ref$className;
37
+ return /*#__PURE__*/jsxRuntime.jsx(Container, {
38
+ className: className,
39
+ children: children
40
+ });
41
+ };
42
+ var PageContent = /*#__PURE__*/react.forwardRef(function (_ref3, ref) {
43
+ var children = _ref3.children,
44
+ _ref3$className = _ref3.className,
45
+ className = _ref3$className === void 0 ? "" : _ref3$className;
46
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
47
+ className: "min-h-0 w-full grow",
48
+ children: /*#__PURE__*/jsxRuntime.jsx("div", {
49
+ ref: ref,
50
+ className: classnames(["mx-auto max-w-7xl", className]),
51
+ children: children
52
+ })
53
+ });
54
+ });
55
+ PageContent.displayName = "PageContent";
56
+
57
+ var PURPOSE_COLORS = {
58
+ dkim: "info"
59
+ };
60
+ var DEFAULT_COLOR = "secondary";
61
+ var VERIFICATION_STATUSES = {
62
+ SUCCESS: "success",
63
+ ERROR: "error",
64
+ PENDING: "pending"
65
+ };
66
+ var VERIFICATION_STATUS_CONFIG = {
67
+ success: {
68
+ style: "success",
69
+ titleKey: "neetoEmailDelivery.sparkpost.status.successTitle",
70
+ descriptionKey: "neetoEmailDelivery.sparkpost.status.successDescription"
71
+ },
72
+ error: {
73
+ style: "danger",
74
+ titleKey: "neetoEmailDelivery.sparkpost.status.errorTitle",
75
+ descriptionKey: "neetoEmailDelivery.sparkpost.status.errorDescription"
76
+ },
77
+ pending: {
78
+ style: "warning",
79
+ titleKey: "neetoEmailDelivery.sparkpost.status.pendingTitle",
80
+ descriptionKey: "neetoEmailDelivery.sparkpost.status.pendingDescription"
81
+ }
82
+ };
83
+ var VALIDATION_SCHEMA = yup__namespace.object().shape({
84
+ email: yup__namespace.string().trim().required(i18next.t("neetoEmailDelivery.sparkpost.setup.validation.emailRequired")).email(i18next.t("neetoEmailDelivery.sparkpost.setup.validation.emailInvalid"))
85
+ });
86
+
87
+ exports.DEFAULT_COLOR = DEFAULT_COLOR;
88
+ exports.PURPOSE_COLORS = PURPOSE_COLORS;
89
+ exports.PageContent = PageContent;
90
+ exports.PageWrapper = PageWrapper;
91
+ exports.VALIDATION_SCHEMA = VALIDATION_SCHEMA;
92
+ exports.VERIFICATION_STATUSES = VERIFICATION_STATUSES;
93
+ exports.VERIFICATION_STATUS_CONFIG = VERIFICATION_STATUS_CONFIG;
94
+ //# sourceMappingURL=constants-DcHGgJC2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants-DcHGgJC2.js","sources":["../app/javascript/src/components/PageLayout.jsx","../app/javascript/src/components/SparkpostDomain/constants.js"],"sourcesContent":["import { forwardRef, memo } from \"react\";\n\nimport classnames from \"classnames\";\nimport Container from \"neetomolecules/Container\";\nimport Header from \"neetomolecules/Header\";\nimport { useTranslation } from \"react-i18next\";\n\nconst PageWrapper = ({ children, className = \"\" }) => (\n <Container {...{ className }}>{children}</Container>\n);\n\nconst PageHeader = ({\n title,\n actionBlock,\n breadcrumbs,\n titleHelpPopoverProps,\n ...otherProps\n}) => {\n const { t } = useTranslation();\n const defaultBreadcrumbs = [\n { text: t(\"neetoEmailDelivery.settings\"), link: \"/\" },\n { text: title },\n ];\n\n return (\n <Header\n {...{ title, titleHelpPopoverProps, ...otherProps }}\n actionBlock={actionBlock && actionBlock}\n breadcrumbs={breadcrumbs ?? defaultBreadcrumbs}\n size=\"small\"\n />\n );\n};\n\nconst customPropEqualityCheck = (prevProps, nextProps) =>\n prevProps.title === nextProps.title &&\n prevProps.breadcrumbs === nextProps.breadcrumbs;\nconst MemoizedPageHeader = memo(PageHeader, customPropEqualityCheck);\n\nconst PageContent = forwardRef(({ children, className = \"\" }, ref) => (\n <div className=\"min-h-0 w-full grow\">\n <div {...{ ref }} className={classnames([\"mx-auto max-w-7xl\", className])}>\n {children}\n </div>\n </div>\n));\n\nPageContent.displayName = \"PageContent\";\n\nexport { PageWrapper, MemoizedPageHeader as PageHeader, PageContent };\n","import { t } from \"i18next\";\nimport * as yup from \"yup\";\n\nexport const PURPOSE_COLORS = { dkim: \"info\" };\nexport const DEFAULT_COLOR = \"secondary\";\n\nexport const VERIFICATION_STATUSES = {\n SUCCESS: \"success\",\n ERROR: \"error\",\n PENDING: \"pending\",\n};\n\nexport const VERIFICATION_STATUS_CONFIG = {\n success: {\n style: \"success\",\n titleKey: \"neetoEmailDelivery.sparkpost.status.successTitle\",\n descriptionKey: \"neetoEmailDelivery.sparkpost.status.successDescription\",\n },\n error: {\n style: \"danger\",\n titleKey: \"neetoEmailDelivery.sparkpost.status.errorTitle\",\n descriptionKey: \"neetoEmailDelivery.sparkpost.status.errorDescription\",\n },\n pending: {\n style: \"warning\",\n titleKey: \"neetoEmailDelivery.sparkpost.status.pendingTitle\",\n descriptionKey: \"neetoEmailDelivery.sparkpost.status.pendingDescription\",\n },\n};\n\nexport const VALIDATION_SCHEMA = yup.object().shape({\n email: yup\n .string()\n .trim()\n .required(t(\"neetoEmailDelivery.sparkpost.setup.validation.emailRequired\"))\n .email(t(\"neetoEmailDelivery.sparkpost.setup.validation.emailInvalid\")),\n});\n"],"names":["PageWrapper","_ref","children","_ref$className","className","_jsx","Container","PageContent","forwardRef","_ref3","ref","_ref3$className","classnames","displayName","PURPOSE_COLORS","dkim","DEFAULT_COLOR","VERIFICATION_STATUSES","SUCCESS","ERROR","PENDING","VERIFICATION_STATUS_CONFIG","success","style","titleKey","descriptionKey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AACX;AAEO,IAAMC,0BAA0B,GAAG;AACxCC,EAAAA,OAAO,EAAE;AACPC,IAAAA,KAAK,EAAE,SAAS;AAChBC,IAAAA,QAAQ,EAAE,kDAAkD;AAC5DC,IAAAA,cAAc,EAAE;GACjB;AACDC,EAAAA,KAAK,EAAE;AACLH,IAAAA,KAAK,EAAE,QAAQ;AACfC,IAAAA,QAAQ,EAAE,gDAAgD;AAC1DC,IAAAA,cAAc,EAAE;GACjB;AACDE,EAAAA,OAAO,EAAE;AACPJ,IAAAA,KAAK,EAAE,SAAS;AAChBC,IAAAA,QAAQ,EAAE,kDAAkD;AAC5DC,IAAAA,cAAc,EAAE;AAClB;AACF;AAEO,IAAMG,iBAAiB,GAAGC,cAAG,CAACC,MAAM,EAAE,CAACC,KAAK,CAAC;EAClDC,KAAK,EAAEH,cAAG,CACPI,MAAM,EAAE,CACRC,IAAI,EAAE,CACNC,QAAQ,CAACC,SAAC,CAAC,6DAA6D,CAAC,CAAC,CAC1EJ,KAAK,CAACI,SAAC,CAAC,4DAA4D,CAAC;AAC1E,CAAC;;;;;;;;;;"}
package/dist/index.js ADDED
@@ -0,0 +1,38 @@
1
+ export { default as EmailDeliveryScreen } from './EmailDeliveryScreen.js';
2
+ export { default as SparkpostDomainSetup } from './SparkpostDomainSetup.js';
3
+ export { default as SparkpostDomainVerify } from './SparkpostDomainVerify.js';
4
+ import '@bigbinary/neeto-cist';
5
+ import '@bigbinary/neeto-commons-frontend/react-utils';
6
+ import '@bigbinary/neeto-commons-frontend/utils';
7
+ import '@bigbinary/neeto-icons/MailSend';
8
+ import '@bigbinary/neeto-icons/misc/Gmail';
9
+ import '@bigbinary/neeto-icons/misc/Outlook';
10
+ import '@bigbinary/neetoui/Spinner';
11
+ import '@bigbinary/neetoui/Callout';
12
+ import '@bigbinary/neetoui/Toastr';
13
+ import 'ramda';
14
+ import 'react-i18next';
15
+ import 'react-router-dom';
16
+ import './useSparkpostDomain-ByWd7ekp.js';
17
+ import '@babel/runtime/helpers/slicedToArray';
18
+ import 'react';
19
+ import '@babel/runtime/helpers/defineProperty';
20
+ import '@tanstack/react-query';
21
+ import 'axios';
22
+ import 'i18next';
23
+ import '@bigbinary/neetoui/Button';
24
+ import '@bigbinary/neetoui/Tag';
25
+ import '@bigbinary/neetoui/Typography';
26
+ import 'react/jsx-runtime';
27
+ import '@bigbinary/neeto-molecules/CardLayout';
28
+ import '@bigbinary/neetoui/formik/Input';
29
+ import '@bigbinary/neetoui/formik/ActionBlock';
30
+ import '@bigbinary/neetoui/formik/Form';
31
+ import './constants-9aNca_br.js';
32
+ import '@babel/runtime/helpers/objectWithoutProperties';
33
+ import 'classnames';
34
+ import '@bigbinary/neeto-molecules/Container';
35
+ import '@bigbinary/neeto-molecules/Header';
36
+ import 'yup';
37
+ import '@bigbinary/neeto-molecules/CopyToClipboardButton';
38
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}