@bigbinary/neeto-email-notifications-frontend 2.2.22 → 2.2.24

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.
@@ -0,0 +1,237 @@
1
+ import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
+ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
3
+ import { useRef } from 'react';
4
+ import { Spinner } from '@bigbinary/neeto-atoms';
5
+ import { isNotEmpty, isNotPresent, noop } from '@bigbinary/neeto-cist';
6
+ import EmailForm from '@bigbinary/neeto-molecules/v2/EmailForm';
7
+ import { pick, mergeLeft, isEmpty, prop, mergeDeepLeft } from 'ramda';
8
+ import { useTranslation } from 'react-i18next';
9
+ import { u as useFetchEmailNotifications, a as useUpdateEmailNotification, b as useResetEmailNotificationToDefault } from '../emailNotificationApi-234PRG05.js';
10
+ import * as yup from 'yup';
11
+ import { string } from 'yup';
12
+ import { jsx } from 'react/jsx-runtime';
13
+ import '@tanstack/react-query';
14
+ import '@bigbinary/neeto-commons-frontend/constants';
15
+ import '@bigbinary/neeto-commons-frontend/react-utils';
16
+ import 'axios';
17
+
18
+ var FORM_VALIDATION_SCHEMA = {
19
+ isEnabled: yup["boolean"]()
20
+ };
21
+ var DEFAULT_FIELDS_VISIBILITY = {
22
+ showSendToField: true,
23
+ showReplyToField: false,
24
+ showSendToAsRadio: false,
25
+ showBccField: false,
26
+ showCcField: false
27
+ };
28
+
29
+ var _excluded$1 = ["notifyEmails", "notifyCcEmails", "notifyBccEmails", "replyToId", "customFields"],
30
+ _excluded2 = ["id", "isEnabled", "sendTo", "sendToCc", "sendToBcc", "showCopyEmails", "replyTo", "message", "subject", "sendFrom", "sendToId"];
31
+ function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
32
+ function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
33
+ var isValidEmail = function isValidEmail(email) {
34
+ return string().email().isValidSync(email);
35
+ };
36
+ var createEmailOptions = function createEmailOptions() {
37
+ var emails = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
38
+ return emails.map(function (email) {
39
+ return {
40
+ label: email,
41
+ value: email,
42
+ valid: isValidEmail(email)
43
+ };
44
+ });
45
+ };
46
+ var parseEmailsOptions = function parseEmailsOptions() {
47
+ var emailOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
48
+ return emailOptions.map(prop("label"));
49
+ };
50
+ var parseEmailNotificationData = function parseEmailNotificationData(data, sendToOptions) {
51
+ var _sendToOptions$;
52
+ var notifyEmails = data.notifyEmails,
53
+ notifyCcEmails = data.notifyCcEmails,
54
+ notifyBccEmails = data.notifyBccEmails,
55
+ replyToId = data.replyToId,
56
+ customFields = data.customFields,
57
+ rest = _objectWithoutProperties(data, _excluded$1);
58
+ var parsed = _objectSpread$1(_objectSpread$1({}, customFields), rest);
59
+ parsed.sendTo = notifyEmails ? createEmailOptions(notifyEmails) : [];
60
+ parsed.sendToCc = notifyCcEmails ? createEmailOptions(notifyCcEmails) : [];
61
+ parsed.sendToBcc = notifyCcEmails ? createEmailOptions(notifyBccEmails) : [];
62
+ parsed.replyTo = replyToId || customFields["replyTo"];
63
+ parsed.sendToId = customFields["sendToId"] || (sendToOptions === null || sendToOptions === void 0 || (_sendToOptions$ = sendToOptions[0]) === null || _sendToOptions$ === void 0 ? void 0 : _sendToOptions$.value) || "";
64
+ parsed.showCopyEmails = !!(notifyCcEmails !== null && notifyCcEmails !== void 0 && notifyCcEmails.length || notifyBccEmails !== null && notifyBccEmails !== void 0 && notifyBccEmails.length);
65
+ return parsed;
66
+ };
67
+ var packEmailPayload = function packEmailPayload(values, isReplyToDropdownField, isDisabledByUser) {
68
+ values.id;
69
+ var isEnabled = values.isEnabled,
70
+ sendTo = values.sendTo,
71
+ sendToCc = values.sendToCc,
72
+ sendToBcc = values.sendToBcc,
73
+ showCopyEmails = values.showCopyEmails,
74
+ replyTo = values.replyTo,
75
+ message = values.message,
76
+ subject = values.subject,
77
+ sendFrom = values.sendFrom,
78
+ sendToId = values.sendToId,
79
+ rest = _objectWithoutProperties(values, _excluded2);
80
+ var payload = {
81
+ isEnabled: isEnabled
82
+ };
83
+ if (isEnabled) {
84
+ payload = _objectSpread$1({}, payload);
85
+ payload.notifyEmails = parseEmailsOptions(sendTo);
86
+ payload.notifyBccEmails = showCopyEmails ? parseEmailsOptions(sendToBcc) : [];
87
+ payload.notifyCcEmails = showCopyEmails ? parseEmailsOptions(sendToCc) : [];
88
+ if (isReplyToDropdownField) {
89
+ payload.replyToId = replyTo;
90
+ } else {
91
+ rest.replyTo = replyTo;
92
+ }
93
+ payload.message = message;
94
+ payload.subject = subject;
95
+ payload.customFields = _objectSpread$1(_objectSpread$1({}, rest), {}, {
96
+ disabledByUser: false
97
+ });
98
+ if (isNotEmpty(sendToId)) {
99
+ payload.customFields = mergeLeft(payload.customFields, {
100
+ sendToId: sendToId
101
+ });
102
+ }
103
+ payload.sendFrom = sendFrom;
104
+ } else {
105
+ payload.customFields = {
106
+ disabledByUser: isDisabledByUser
107
+ };
108
+ }
109
+ return payload;
110
+ };
111
+ var renderText = function renderText(text, fallbackTranslation) {
112
+ return isEmpty(text) ? fallbackTranslation : text;
113
+ };
114
+ var generateDefaultValues = function generateDefaultValues(data) {
115
+ var _data$defaultAttribut, _data$defaultAttribut2;
116
+ if (!(data !== null && data !== void 0 && data.defaultAttributes)) {
117
+ return null;
118
+ }
119
+ var currentDataFields = ["id", "customFields", "notifyCcEmails", "notifyBccEmails", "replyToId"];
120
+ var currentDataOverlay = pick(currentDataFields, data);
121
+ var normalizedDefaults = _objectSpread$1(_objectSpread$1({}, data.defaultAttributes), {}, {
122
+ message: ((_data$defaultAttribut = data.defaultAttributes.message) === null || _data$defaultAttribut === void 0 || (_data$defaultAttribut2 = _data$defaultAttribut.replaceAll) === null || _data$defaultAttribut2 === void 0 ? void 0 : _data$defaultAttribut2.call(_data$defaultAttribut, "<br />", "<br>")) || data.defaultAttributes.message
123
+ });
124
+ return mergeLeft(currentDataOverlay, normalizedDefaults);
125
+ };
126
+
127
+ var _excluded = ["validationSchema"];
128
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
129
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
130
+ var NeetoEmailNotificationForm = function NeetoEmailNotificationForm(_ref) {
131
+ var _emailFormProps$sendT, _emailFormProps$sendT2;
132
+ var _ref$emailNotificatio = _ref.emailNotificationParams,
133
+ emailNotificationParams = _ref$emailNotificatio === void 0 ? {} : _ref$emailNotificatio,
134
+ _ref$emailPreviewProp = _ref.emailPreviewProps,
135
+ emailPreviewProps = _ref$emailPreviewProp === void 0 ? {} : _ref$emailPreviewProp,
136
+ _ref$emailFormProps = _ref.emailFormProps,
137
+ emailFormProps = _ref$emailFormProps === void 0 ? {} : _ref$emailFormProps,
138
+ _ref$emailFormikProps = _ref.emailFormikProps,
139
+ emailFormikProps = _ref$emailFormikProps === void 0 ? {} : _ref$emailFormikProps,
140
+ _ref$title = _ref.title,
141
+ title = _ref$title === void 0 ? "" : _ref$title,
142
+ _ref$notificationTogg = _ref.notificationToggleLabel,
143
+ notificationToggleLabel = _ref$notificationTogg === void 0 ? "" : _ref$notificationTogg,
144
+ _ref$breadcrumbs = _ref.breadcrumbs,
145
+ breadcrumbs = _ref$breadcrumbs === void 0 ? [] : _ref$breadcrumbs,
146
+ _ref$helpPopoverProps = _ref.helpPopoverProps,
147
+ helpPopoverProps = _ref$helpPopoverProps === void 0 ? {} : _ref$helpPopoverProps,
148
+ _ref$tooltipProps = _ref.tooltipProps,
149
+ tooltipProps = _ref$tooltipProps === void 0 ? {} : _ref$tooltipProps,
150
+ _ref$disabled = _ref.disabled,
151
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
152
+ _ref$fieldsVisibility = _ref.fieldsVisibility,
153
+ fieldsVisibility = _ref$fieldsVisibility === void 0 ? {} : _ref$fieldsVisibility,
154
+ _ref$blockNavigation = _ref.blockNavigation,
155
+ blockNavigation = _ref$blockNavigation === void 0 ? false : _ref$blockNavigation,
156
+ _ref$onSuccess = _ref.onSuccess,
157
+ onSuccess = _ref$onSuccess === void 0 ? noop : _ref$onSuccess,
158
+ children = _ref.children;
159
+ var editorRef = useRef();
160
+ var _useTranslation = useTranslation(),
161
+ t = _useTranslation.t;
162
+ var _useFetchEmailNotific = useFetchEmailNotifications(emailNotificationParams),
163
+ _useFetchEmailNotific2 = _useFetchEmailNotific.data,
164
+ data = _useFetchEmailNotific2 === void 0 ? {} : _useFetchEmailNotific2,
165
+ isLoading = _useFetchEmailNotific.isLoading;
166
+ var _useUpdateEmailNotifi = useUpdateEmailNotification(),
167
+ updateEmailNotification = _useUpdateEmailNotifi.mutate,
168
+ isSubmitting = _useUpdateEmailNotifi.isPending;
169
+ var _useResetEmailNotific = useResetEmailNotificationToDefault(),
170
+ resetToDefault = _useResetEmailNotific.mutate,
171
+ isResetting = _useResetEmailNotific.isPending;
172
+ var handleSubmit = function handleSubmit(values) {
173
+ var _emailFormProps$reply;
174
+ var isDisabledByUser = data.isEnabled && !values.isEnabled;
175
+ var isReplyToDropdownField = (emailFormProps === null || emailFormProps === void 0 || (_emailFormProps$reply = emailFormProps.replyToFieldProps) === null || _emailFormProps$reply === void 0 ? void 0 : _emailFormProps$reply.options) !== undefined;
176
+ var body = mergeDeepLeft(packEmailPayload(values, isReplyToDropdownField, isDisabledByUser), emailNotificationParams);
177
+ updateEmailNotification(body, {
178
+ onSuccess: onSuccess
179
+ });
180
+ };
181
+ if (isLoading || isNotPresent(data)) {
182
+ return /*#__PURE__*/jsx("div", {
183
+ className: "flex h-full w-full items-center justify-center",
184
+ children: /*#__PURE__*/jsx(Spinner, {})
185
+ });
186
+ }
187
+ var newDefaultAttributes = generateDefaultValues(data);
188
+ var defaultValues = parseEmailNotificationData(newDefaultAttributes, emailFormProps === null || emailFormProps === void 0 || (_emailFormProps$sendT = emailFormProps.sendToFieldProps) === null || _emailFormProps$sendT === void 0 ? void 0 : _emailFormProps$sendT.options);
189
+ defaultValues.defaultAttributes = data.defaultAttributes;
190
+ var formattedTitle = renderText(title, t("neetoEmailNotifications.emailNotification.title"));
191
+ var formattedNotificationToggleLabel = renderText(notificationToggleLabel, t("neetoEmailNotifications.emailNotification.notificationToggleLabel"));
192
+ var customValidationSchema = emailFormikProps.validationSchema,
193
+ formikProps = _objectWithoutProperties(emailFormikProps, _excluded);
194
+ var handleResetToDefault = function handleResetToDefault() {
195
+ resetToDefault(emailNotificationParams, {
196
+ onSuccess: function onSuccess(_ref2) {
197
+ var _editorRef$current;
198
+ var emailNotification = _ref2.emailNotification;
199
+ return editorRef === null || editorRef === void 0 || (_editorRef$current = editorRef.current) === null || _editorRef$current === void 0 || (_editorRef$current = _editorRef$current.editor) === null || _editorRef$current === void 0 || (_editorRef$current = _editorRef$current.commands) === null || _editorRef$current === void 0 ? void 0 : _editorRef$current.setContent(emailNotification.message);
200
+ }
201
+ });
202
+ };
203
+ return /*#__PURE__*/jsx("div", {
204
+ className: "min-w-0 grow overflow-y-auto",
205
+ children: /*#__PURE__*/jsx(EmailForm, _objectSpread(_objectSpread({}, _objectSpread({
206
+ blockNavigation: blockNavigation,
207
+ emailPreviewProps: emailPreviewProps,
208
+ formikProps: formikProps,
209
+ tooltipProps: tooltipProps
210
+ }, mergeLeft(fieldsVisibility, DEFAULT_FIELDS_VISIBILITY))), {}, {
211
+ isLoading: isSubmitting,
212
+ validationSchema: customValidationSchema || FORM_VALIDATION_SCHEMA,
213
+ emailFormProps: _objectSpread({
214
+ editorRef: editorRef,
215
+ handleResetToDefault: handleResetToDefault,
216
+ isResetting: isResetting,
217
+ defaultValues: defaultValues
218
+ }, emailFormProps),
219
+ headerProps: {
220
+ title: formattedTitle,
221
+ titleHelpPopoverProps: helpPopoverProps,
222
+ breadcrumbs: breadcrumbs
223
+ },
224
+ initialValues: parseEmailNotificationData(data, emailFormProps === null || emailFormProps === void 0 || (_emailFormProps$sendT2 = emailFormProps.sendToFieldProps) === null || _emailFormProps$sendT2 === void 0 ? void 0 : _emailFormProps$sendT2.options),
225
+ switchProps: {
226
+ label: formattedNotificationToggleLabel,
227
+ disabled: disabled,
228
+ "data-testid": "receive-email-notification-switch"
229
+ },
230
+ onSubmit: handleSubmit,
231
+ children: children
232
+ }))
233
+ });
234
+ };
235
+
236
+ export { NeetoEmailNotificationForm as default };
237
+ //# sourceMappingURL=NeetoEmailNotificationForm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NeetoEmailNotificationForm.js","sources":["../../app/javascript/src/v2/components/EmailNotificationForm/constants.js","../../app/javascript/src/v2/components/EmailNotificationForm/utils.js","../../app/javascript/src/v2/components/EmailNotificationForm/index.jsx"],"sourcesContent":["import * as yup from \"yup\";\n\nexport const FORM_VALIDATION_SCHEMA = { isEnabled: yup.boolean() };\n\nexport const DEFAULT_FIELDS_VISIBILITY = {\n showSendToField: true,\n showReplyToField: false,\n showSendToAsRadio: false,\n showBccField: false,\n showCcField: false,\n};\n","import { isNotEmpty } from \"neetocist\";\nimport { isEmpty, mergeLeft, prop, pick } from \"ramda\";\nimport { string } from \"yup\";\n\nconst isValidEmail = email => string().email().isValidSync(email);\n\nconst createEmailOptions = (emails = []) =>\n emails.map(email => ({\n label: email,\n value: email,\n valid: isValidEmail(email),\n }));\n\nexport const parseEmailsOptions = (emailOptions = []) =>\n emailOptions.map(prop(\"label\"));\n\nexport const parseEmailNotificationData = (data, sendToOptions) => {\n const {\n notifyEmails,\n notifyCcEmails,\n notifyBccEmails,\n replyToId,\n customFields,\n ...rest\n } = data;\n\n const parsed = { ...customFields, ...rest };\n parsed.sendTo = notifyEmails ? createEmailOptions(notifyEmails) : [];\n parsed.sendToCc = notifyCcEmails ? createEmailOptions(notifyCcEmails) : [];\n parsed.sendToBcc = notifyCcEmails ? createEmailOptions(notifyBccEmails) : [];\n parsed.replyTo = replyToId || customFields[\"replyTo\"];\n parsed.sendToId = customFields[\"sendToId\"] || sendToOptions?.[0]?.value || \"\";\n parsed.showCopyEmails = !!(notifyCcEmails?.length || notifyBccEmails?.length);\n\n return parsed;\n};\n\nexport const packEmailPayload = (\n values,\n isReplyToDropdownField,\n isDisabledByUser\n) => {\n const {\n // eslint-disable-next-line no-unused-vars\n id: _,\n isEnabled,\n sendTo,\n sendToCc,\n sendToBcc,\n showCopyEmails,\n replyTo,\n message,\n subject,\n sendFrom,\n sendToId,\n ...rest\n } = values;\n let payload = { isEnabled };\n\n if (isEnabled) {\n payload = { ...payload };\n payload.notifyEmails = parseEmailsOptions(sendTo);\n payload.notifyBccEmails = showCopyEmails\n ? parseEmailsOptions(sendToBcc)\n : [];\n\n payload.notifyCcEmails = showCopyEmails ? parseEmailsOptions(sendToCc) : [];\n if (isReplyToDropdownField) {\n payload.replyToId = replyTo;\n } else {\n rest.replyTo = replyTo;\n }\n payload.message = message;\n payload.subject = subject;\n payload.customFields = { ...rest, disabledByUser: false };\n\n if (isNotEmpty(sendToId)) {\n payload.customFields = mergeLeft(payload.customFields, { sendToId });\n }\n payload.sendFrom = sendFrom;\n } else {\n payload.customFields = { disabledByUser: isDisabledByUser };\n }\n\n return payload;\n};\n\nexport const renderText = (text, fallbackTranslation) =>\n isEmpty(text) ? fallbackTranslation : text;\n\nexport const generateDefaultValues = data => {\n if (!data?.defaultAttributes) {\n return null;\n }\n\n const currentDataFields = [\n \"id\",\n \"customFields\",\n \"notifyCcEmails\",\n \"notifyBccEmails\",\n \"replyToId\",\n ];\n\n const currentDataOverlay = pick(currentDataFields, data);\n\n const normalizedDefaults = {\n ...data.defaultAttributes,\n message:\n data.defaultAttributes.message?.replaceAll?.(\"<br />\", \"<br>\") ||\n data.defaultAttributes.message,\n };\n\n return mergeLeft(currentDataOverlay, normalizedDefaults);\n};\n","import { useRef } from \"react\";\n\nimport { Spinner } from \"@bigbinary/neeto-atoms\";\nimport { isNotPresent, noop } from \"neetocist\";\nimport EmailForm from \"neetomolecules/v2/EmailForm\";\nimport { mergeDeepLeft, mergeLeft } from \"ramda\";\nimport { useTranslation } from \"react-i18next\";\n\nimport {\n useFetchEmailNotifications,\n useUpdateEmailNotification,\n useResetEmailNotificationToDefault,\n} from \"src/hooks/reactQuery/emailNotificationApi\";\n\nimport { DEFAULT_FIELDS_VISIBILITY, FORM_VALIDATION_SCHEMA } from \"./constants\";\nimport {\n packEmailPayload,\n parseEmailNotificationData,\n renderText,\n generateDefaultValues,\n} from \"./utils\";\n\nconst NeetoEmailNotificationForm = ({\n emailNotificationParams = {},\n emailPreviewProps = {},\n emailFormProps = {},\n emailFormikProps = {},\n title = \"\",\n notificationToggleLabel = \"\",\n breadcrumbs = [],\n helpPopoverProps = {},\n tooltipProps = {},\n disabled = false,\n fieldsVisibility = {},\n blockNavigation = false,\n onSuccess = noop,\n children,\n}) => {\n const editorRef = useRef();\n\n const { t } = useTranslation();\n\n const { data = {}, isLoading } = useFetchEmailNotifications(\n emailNotificationParams\n );\n\n const { mutate: updateEmailNotification, isPending: isSubmitting } =\n useUpdateEmailNotification();\n\n const { mutate: resetToDefault, isPending: isResetting } =\n useResetEmailNotificationToDefault();\n\n const handleSubmit = values => {\n const isDisabledByUser = data.isEnabled && !values.isEnabled;\n const isReplyToDropdownField =\n emailFormProps?.replyToFieldProps?.options !== undefined;\n\n const body = mergeDeepLeft(\n packEmailPayload(values, isReplyToDropdownField, isDisabledByUser),\n emailNotificationParams\n );\n updateEmailNotification(body, { onSuccess });\n };\n\n if (isLoading || isNotPresent(data)) {\n return (\n <div className=\"flex h-full w-full items-center justify-center\">\n <Spinner />\n </div>\n );\n }\n\n const newDefaultAttributes = generateDefaultValues(data);\n\n const defaultValues = parseEmailNotificationData(\n newDefaultAttributes,\n emailFormProps?.sendToFieldProps?.options\n );\n\n defaultValues.defaultAttributes = data.defaultAttributes;\n\n const formattedTitle = renderText(\n title,\n t(\"neetoEmailNotifications.emailNotification.title\")\n );\n\n const formattedNotificationToggleLabel = renderText(\n notificationToggleLabel,\n t(\"neetoEmailNotifications.emailNotification.notificationToggleLabel\")\n );\n\n const { validationSchema: customValidationSchema, ...formikProps } =\n emailFormikProps;\n\n const handleResetToDefault = () => {\n resetToDefault(emailNotificationParams, {\n onSuccess: ({ emailNotification }) =>\n editorRef?.current?.editor?.commands?.setContent(\n emailNotification.message\n ),\n });\n };\n\n return (\n <div className=\"min-w-0 grow overflow-y-auto\">\n <EmailForm\n {...{\n blockNavigation,\n emailPreviewProps,\n formikProps,\n tooltipProps,\n ...mergeLeft(fieldsVisibility, DEFAULT_FIELDS_VISIBILITY),\n }}\n isLoading={isSubmitting}\n validationSchema={customValidationSchema || FORM_VALIDATION_SCHEMA}\n emailFormProps={{\n editorRef,\n handleResetToDefault,\n isResetting,\n defaultValues,\n ...emailFormProps,\n }}\n headerProps={{\n title: formattedTitle,\n titleHelpPopoverProps: helpPopoverProps,\n breadcrumbs,\n }}\n initialValues={parseEmailNotificationData(\n data,\n emailFormProps?.sendToFieldProps?.options\n )}\n switchProps={{\n label: formattedNotificationToggleLabel,\n disabled,\n \"data-testid\": \"receive-email-notification-switch\",\n }}\n onSubmit={handleSubmit}\n >\n {children}\n </EmailForm>\n </div>\n );\n};\n\nexport default NeetoEmailNotificationForm;\n"],"names":["FORM_VALIDATION_SCHEMA","isEnabled","yup","DEFAULT_FIELDS_VISIBILITY","showSendToField","showReplyToField","showSendToAsRadio","showBccField","showCcField","isValidEmail","email","string","isValidSync","createEmailOptions","emails","arguments","length","undefined","map","label","value","valid","parseEmailsOptions","emailOptions","prop","parseEmailNotificationData","data","sendToOptions","_sendToOptions$","notifyEmails","notifyCcEmails","notifyBccEmails","replyToId","customFields","rest","_objectWithoutProperties","_excluded","parsed","_objectSpread","sendTo","sendToCc","sendToBcc","replyTo","sendToId","showCopyEmails","packEmailPayload","values","isReplyToDropdownField","isDisabledByUser","id","message","subject","sendFrom","_excluded2","payload","disabledByUser","isNotEmpty","mergeLeft","renderText","text","fallbackTranslation","isEmpty","generateDefaultValues","_data$defaultAttribut","_data$defaultAttribut2","defaultAttributes","currentDataFields","currentDataOverlay","pick","normalizedDefaults","replaceAll","call","NeetoEmailNotificationForm","_ref","_emailFormProps$sendT","_emailFormProps$sendT2","_ref$emailNotificatio","emailNotificationParams","_ref$emailPreviewProp","emailPreviewProps","_ref$emailFormProps","emailFormProps","_ref$emailFormikProps","emailFormikProps","_ref$title","title","_ref$notificationTogg","notificationToggleLabel","_ref$breadcrumbs","breadcrumbs","_ref$helpPopoverProps","helpPopoverProps","_ref$tooltipProps","tooltipProps","_ref$disabled","disabled","_ref$fieldsVisibility","fieldsVisibility","_ref$blockNavigation","blockNavigation","_ref$onSuccess","onSuccess","noop","children","editorRef","useRef","_useTranslation","useTranslation","t","_useFetchEmailNotific","useFetchEmailNotifications","_useFetchEmailNotific2","isLoading","_useUpdateEmailNotifi","useUpdateEmailNotification","updateEmailNotification","mutate","isSubmitting","isPending","_useResetEmailNotific","useResetEmailNotificationToDefault","resetToDefault","isResetting","handleSubmit","_emailFormProps$reply","replyToFieldProps","options","body","mergeDeepLeft","isNotPresent","_jsx","className","Spinner","newDefaultAttributes","defaultValues","sendToFieldProps","formattedTitle","formattedNotificationToggleLabel","customValidationSchema","validationSchema","formikProps","handleResetToDefault","_ref2","_editorRef$current","emailNotification","current","editor","commands","setContent","EmailForm","headerProps","titleHelpPopoverProps","initialValues","switchProps","onSubmit"],"mappings":";;;;;;;;;;;;;;;;;AAEO,IAAMA,sBAAsB,GAAG;EAAEC,SAAS,EAAEC,GAAG,CAAA,SAAA,CAAQ;AAAG,CAAC;AAE3D,IAAMC,yBAAyB,GAAG;AACvCC,EAAAA,eAAe,EAAE,IAAI;AACrBC,EAAAA,gBAAgB,EAAE,KAAK;AACvBC,EAAAA,iBAAiB,EAAE,KAAK;AACxBC,EAAAA,YAAY,EAAE,KAAK;AACnBC,EAAAA,WAAW,EAAE;AACf,CAAC;;;;;;ACND,IAAMC,YAAY,GAAG,SAAfA,YAAYA,CAAGC,KAAK,EAAA;EAAA,OAAIC,MAAM,EAAE,CAACD,KAAK,EAAE,CAACE,WAAW,CAACF,KAAK,CAAC;AAAA,CAAA;AAEjE,IAAMG,kBAAkB,GAAG,SAArBA,kBAAkBA,GAAA;AAAA,EAAA,IAAIC,MAAM,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAG,EAAE;AAAA,EAAA,OACrCD,MAAM,CAACI,GAAG,CAAC,UAAAR,KAAK,EAAA;IAAA,OAAK;AACnBS,MAAAA,KAAK,EAAET,KAAK;AACZU,MAAAA,KAAK,EAAEV,KAAK;MACZW,KAAK,EAAEZ,YAAY,CAACC,KAAK;KAC1B;AAAA,EAAA,CAAC,CAAC;AAAA,CAAA;AAEE,IAAMY,kBAAkB,GAAG,SAArBA,kBAAkBA,GAAA;AAAA,EAAA,IAAIC,YAAY,GAAAR,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,C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AAEsH,gCAAgC;AACvC1C,QAAAA,QAAQ,EAARA,QAAQ;AACR,QAAA,aAAa,EAAE;OACf;AACF2D,MAAAA,QAAQ,EAAE/B,YAAa;AAAApB,MAAAA,QAAA,EAEtBA;KAAQ,CACA;AAAC,GACT,CAAC;AAEV;;;;"}
@@ -0,0 +1,17 @@
1
+ export { default as NeetoEmailNotificationForm } from './NeetoEmailNotificationForm.js';
2
+ import '@babel/runtime/helpers/defineProperty';
3
+ import '@babel/runtime/helpers/objectWithoutProperties';
4
+ import 'react';
5
+ import '@bigbinary/neeto-atoms';
6
+ import '@bigbinary/neeto-cist';
7
+ import '@bigbinary/neeto-molecules/v2/EmailForm';
8
+ import 'ramda';
9
+ import 'react-i18next';
10
+ import '../emailNotificationApi-234PRG05.js';
11
+ import '@tanstack/react-query';
12
+ import '@bigbinary/neeto-commons-frontend/constants';
13
+ import '@bigbinary/neeto-commons-frontend/react-utils';
14
+ import 'axios';
15
+ import 'yup';
16
+ import 'react/jsx-runtime';
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-email-notifications-frontend",
3
- "version": "2.2.22",
3
+ "version": "2.2.24",
4
4
  "description": "A repo acts as the source of truth for the new nano's structure, configs, data etc.",
5
5
  "license": "UNLICENSED",
6
6
  "homepage": "https://github.com/bigbinary/neeto-email-notifications-nano",
@@ -33,6 +33,16 @@
33
33
  "import": "./dist/*.js",
34
34
  "require": "./dist/cjs/*.js",
35
35
  "types": "./types.d.ts"
36
+ },
37
+ "./v2": {
38
+ "import": "./dist/v2/index.js",
39
+ "require": "./dist/cjs/v2/index.js",
40
+ "types": "./types.d.ts"
41
+ },
42
+ "./v2/*": {
43
+ "import": "./dist/v2/*.js",
44
+ "require": "./dist/cjs/v2/*.js",
45
+ "types": "./types.d.ts"
36
46
  }
37
47
  },
38
48
  "lint-staged": {
@@ -52,31 +62,32 @@
52
62
  ]
53
63
  },
54
64
  "devDependencies": {
55
- "@babel/core": "7.26.0",
65
+ "@babel/core": "7.29.7",
56
66
  "@babel/eslint-parser": "7.25.9",
57
67
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
58
68
  "@babel/plugin-transform-runtime": "7.25.9",
59
69
  "@babel/preset-env": "7.26.0",
60
70
  "@babel/preset-react": "7.25.9",
61
71
  "@babel/preset-typescript": "7.26.0",
62
- "@babel/runtime": "7.26.10",
72
+ "@babel/runtime": "7.29.7",
63
73
  "@bigbinary/babel-preset-neeto": "^1.0.3",
64
- "@bigbinary/eslint-plugin-neeto": "1.8.1",
74
+ "@bigbinary/eslint-plugin-neeto": "1.9.1",
75
+ "@bigbinary/neeto-atoms": "1.0.110",
65
76
  "@bigbinary/neeto-cist": "1.0.17",
66
- "@bigbinary/neeto-commons-frontend": "4.13.105",
67
- "@bigbinary/neeto-editor": "1.47.90",
68
- "@bigbinary/neeto-filters-frontend": "4.3.31",
69
- "@bigbinary/neeto-icons": "1.20.80",
70
- "@bigbinary/neeto-molecules": "4.1.10",
71
- "@bigbinary/neetoui": "8.3.75",
77
+ "@bigbinary/neeto-commons-frontend": "4.13.152",
78
+ "@bigbinary/neeto-editor": "1.47.133",
79
+ "@bigbinary/neeto-filters-frontend": "4.3.42",
80
+ "@bigbinary/neeto-icons": "1.20.89",
81
+ "@bigbinary/neeto-molecules": "5.3.0",
82
+ "@bigbinary/neetoui": "8.8.3",
72
83
  "@emotion/is-prop-valid": "1.2.0",
73
84
  "@faker-js/faker": "8.2.0",
74
85
  "@honeybadger-io/js": "6.10.1",
75
86
  "@honeybadger-io/react": "6.1.25",
76
87
  "@rails/actiontext": "^7.0.8",
77
88
  "@rollup/plugin-alias": "5.1.1",
78
- "@rollup/plugin-babel": "6.0.4",
79
- "@rollup/plugin-commonjs": "25.0.7",
89
+ "@rollup/plugin-babel": "6.1.0",
90
+ "@rollup/plugin-commonjs": "25.0.8",
80
91
  "@rollup/plugin-json": "6.1.0",
81
92
  "@rollup/plugin-node-resolve": "15.3.0",
82
93
  "@rollup/plugin-replace": "5.0.4",
@@ -88,12 +99,12 @@
88
99
  "antd": "5.22.1",
89
100
  "assert": "^2.1.0",
90
101
  "autoprefixer": "^10.4.5",
91
- "axios": "1.13.5",
102
+ "axios": "1.18.1",
92
103
  "babel-loader": "^8.2.5",
93
104
  "babel-plugin-istanbul": "^6.1.1",
94
105
  "babel-plugin-js-logger": "1.0.17",
95
106
  "babel-plugin-macros": "3.1.0",
96
- "babel-plugin-module-resolver": "^5.0.0",
107
+ "babel-plugin-module-resolver": "5.0.3",
97
108
  "babel-plugin-preval": "^5.1.0",
98
109
  "babel-plugin-transform-imports": "^2.0.0",
99
110
  "babel-plugin-transform-react-remove-prop-types": "0.4.24",
@@ -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.2.4",
118
+ "dompurify": "3.4.12",
108
119
  "dotenv-webpack": "^8.0.1",
109
120
  "eslint": "^9.25.1",
110
121
  "eslint-config-prettier": "^10.1.2",
@@ -117,7 +128,7 @@
117
128
  "eslint-plugin-react": "^7.37.5",
118
129
  "eslint-plugin-react-hooks": "^5.2.0",
119
130
  "eslint-plugin-security": "^3.0.1",
120
- "eslint-plugin-sonarjs": "^3.0.2",
131
+ "eslint-plugin-sonarjs": "^4.0.2",
121
132
  "eslint-plugin-unused-imports": "^4.1.4",
122
133
  "eslint-plugin-xss": "^0.1.12",
123
134
  "formik": "2.4.6",
@@ -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.23",
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",
@@ -150,14 +161,13 @@
150
161
  "react-router-dom": "5.3.3",
151
162
  "react-router-nav-prompt": "0.4.1",
152
163
  "react-toastify": "8.0.2",
153
- "react_ujs": "^3.1.1",
154
- "rollup": "4.25.0",
164
+ "rollup": "4.59.0",
155
165
  "rollup-plugin-analyzer": "4.0.0",
156
166
  "rollup-plugin-cleaner": "1.0.0",
157
167
  "rollup-plugin-copy": "3.5.0",
158
168
  "rollup-plugin-peer-deps-external": "2.2.4",
159
169
  "rollup-plugin-styles": "4.0.0",
160
- "sass": "1.89.0",
170
+ "sass": "1.98.0",
161
171
  "sass-loader": "^13.0.2",
162
172
  "source-map-loader": "4.0.1",
163
173
  "stream-browserify": "^3.0.0",
@@ -165,36 +175,37 @@
165
175
  "style-loader": "^3.3.1",
166
176
  "tailwindcss": "^4.1.17",
167
177
  "tty-browserify": "0.0.1",
168
- "url": "^0.11.0",
178
+ "url": "0.11.4",
169
179
  "util": "^0.12.5",
170
180
  "vm-browserify": "1.1.2",
171
- "webpack": "5.94.0",
181
+ "webpack": "5.104.1",
172
182
  "webpack-assets-manifest": "5.1.0",
173
183
  "webpack-cli": "5.1.4",
174
- "webpack-dev-server": "5.2.1",
184
+ "webpack-dev-server": "5.2.6",
175
185
  "yup": "0.32.11",
176
186
  "zustand": "4.4.2"
177
187
  },
178
188
  "peerDependencies": {
179
- "@babel/runtime": "7.26.10",
189
+ "@babel/runtime": "7.29.7",
190
+ "@bigbinary/neeto-atoms": "1.0.110",
180
191
  "@bigbinary/neeto-cist": "1.0.17",
181
- "@bigbinary/neeto-commons-frontend": "4.13.105",
182
- "@bigbinary/neeto-editor": "1.47.90",
183
- "@bigbinary/neeto-filters-frontend": "4.3.31",
184
- "@bigbinary/neeto-icons": "1.20.80",
185
- "@bigbinary/neeto-molecules": "4.1.10",
186
- "@bigbinary/neetoui": "8.3.75",
192
+ "@bigbinary/neeto-commons-frontend": "4.13.152",
193
+ "@bigbinary/neeto-editor": "1.47.133",
194
+ "@bigbinary/neeto-filters-frontend": "4.3.42",
195
+ "@bigbinary/neeto-icons": "1.20.89",
196
+ "@bigbinary/neeto-molecules": "5.3.0",
197
+ "@bigbinary/neetoui": "8.8.3",
187
198
  "@honeybadger-io/js": "6.10.1",
188
199
  "@honeybadger-io/react": "6.1.25",
189
200
  "@tailwindcss/container-queries": "^0.1.1",
190
201
  "@tanstack/react-query": "5.59.20",
191
202
  "@tanstack/react-query-devtools": "5.59.20",
192
203
  "antd": "5.22.1",
193
- "axios": "1.13.5",
204
+ "axios": "1.18.1",
194
205
  "buffer": "^6.0.3",
195
206
  "classnames": "2.5.1",
196
207
  "crypto-browserify": "3.12.1",
197
- "dompurify": "^3.2.4",
208
+ "dompurify": "3.4.12",
198
209
  "formik": "2.4.6",
199
210
  "https-browserify": "1.0.0",
200
211
  "i18next": "22.5.1",
@@ -202,7 +213,7 @@
202
213
  "mixpanel-browser": "^2.45.0",
203
214
  "os-browserify": "0.3.0",
204
215
  "path-browserify": "^1.0.1",
205
- "qs": "6.15.0",
216
+ "qs": "6.15.2",
206
217
  "ramda": "0.29.0",
207
218
  "react": "18.3.1",
208
219
  "react-dom": "18.3.1",
@@ -215,7 +226,7 @@
215
226
  "stream-http": "3.2.0",
216
227
  "tailwindcss": "3.4.14",
217
228
  "tty-browserify": "0.0.1",
218
- "url": "^0.11.0",
229
+ "url": "0.11.4",
219
230
  "util": "^0.12.5",
220
231
  "vm-browserify": "1.1.2",
221
232
  "yup": "0.32.11",