@bigbinary/neeto-email-notifications-frontend 1.4.2 → 1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +102 -37
- package/app/javascript/src/translations/en.json +2 -1
- package/dist/index.cjs.js +21 -14
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +21 -14
- package/dist/index.js.map +1 -1
- package/package.json +79 -72
package/README.md
CHANGED
|
@@ -1,19 +1,70 @@
|
|
|
1
1
|
# neeto-email-notifications-nano
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
The neeto-email-notifications-nano enables the management of email notifications
|
|
4
|
+
within neeto applications. The nano exports the
|
|
5
|
+
@bigbinary/neeto-email-notifications-frontend NPM package and
|
|
6
|
+
neeto-email-notifications-engine Rails engine for development.
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
across neeto products
|
|
8
|
+
## Contents
|
|
9
9
|
|
|
10
|
-
#
|
|
10
|
+
1. [Development with Host Application](#development-with-host-application)
|
|
11
|
+
- [Engine](#engine)
|
|
12
|
+
- [Installation](#installation)
|
|
13
|
+
- [Usage](#usage)
|
|
14
|
+
- [Frontend package](#frontend-package)
|
|
15
|
+
- [Installation](#installation-1)
|
|
16
|
+
- [Usage](#usage-1)
|
|
17
|
+
2. [Instructions for Publishing](#instructions-for-publishing)
|
|
11
18
|
|
|
12
|
-
|
|
19
|
+
## Development with Host Application
|
|
13
20
|
|
|
14
|
-
|
|
21
|
+
### Engine
|
|
15
22
|
|
|
16
|
-
|
|
23
|
+
The engine is used to manage email notifications across neeto products.
|
|
24
|
+
|
|
25
|
+
#### Installation
|
|
26
|
+
|
|
27
|
+
1. Add this line to your application's Gemfile:
|
|
28
|
+
|
|
29
|
+
```ruby
|
|
30
|
+
source "NEETO_GEM_SERVER_URL" do
|
|
31
|
+
# Rails engine to manage email notifications
|
|
32
|
+
gem "neeto-email-notifications-engine"
|
|
33
|
+
end
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
2. And then execute:
|
|
37
|
+
|
|
38
|
+
```shell
|
|
39
|
+
bundle install
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
3. Add this line to your application's `config/routes.rb` file (replace `at` to
|
|
43
|
+
your desired route):
|
|
44
|
+
|
|
45
|
+
```ruby
|
|
46
|
+
mount NeetoEmailNotificationsEngine::Engine, at: "/neeto_email_notifications"
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
4. Add required migrations in the `db/migrate` folder. Run the following
|
|
50
|
+
commands to generate the migrations.
|
|
51
|
+
|
|
52
|
+
```shell
|
|
53
|
+
rails g neeto_fields_engine:install
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
This will generate the migration to create the
|
|
57
|
+
`neeto_email_notifications_engine_email_notifications` table, which holds the
|
|
58
|
+
data for the email notifications, and have `custom_fields` column to include
|
|
59
|
+
custom attributes
|
|
60
|
+
|
|
61
|
+
5. Run the following command to create the tables.
|
|
62
|
+
|
|
63
|
+
```shell
|
|
64
|
+
rails db:migrate
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
#### Usage
|
|
17
68
|
|
|
18
69
|
1. Create required email notification models inherited from
|
|
19
70
|
`NeetoEmailNotificationsEngine::EmailNotification`. For example,
|
|
@@ -38,16 +89,38 @@ across neeto products
|
|
|
38
89
|
|
|
39
90
|
```ruby
|
|
40
91
|
class Form < ApplicationRecord
|
|
41
|
-
|
|
92
|
+
....
|
|
42
93
|
|
|
43
|
-
|
|
44
|
-
|
|
94
|
+
has_many :email_notifications, as: :notification_holder, class_name: "::NeetoEmailNotificationsEngine::EmailNotification", dependent: :destroy
|
|
95
|
+
has_one :push_email_notification, as: :notification_holder
|
|
45
96
|
|
|
46
|
-
|
|
97
|
+
....
|
|
47
98
|
end
|
|
48
99
|
```
|
|
49
100
|
|
|
50
|
-
|
|
101
|
+
You can learn more about the setup and usage here:
|
|
102
|
+
|
|
103
|
+
1. [Models](/docs/engine/models.md)
|
|
104
|
+
2. [Services](/docs/engine/services.md)
|
|
105
|
+
|
|
106
|
+
### Frontend package
|
|
107
|
+
|
|
108
|
+
#### Installation
|
|
109
|
+
|
|
110
|
+
1. Add the `neeto-email-notifications-frontend` package to the `package.json`
|
|
111
|
+
|
|
112
|
+
```shell
|
|
113
|
+
yarn add @bigbinary/neeto-email-notifications-frontend
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
This package will provide a single component `NeetoEmailNotification`, which
|
|
117
|
+
uses components from `neeto-molecules`.
|
|
118
|
+
|
|
119
|
+
#### Instructions for development
|
|
120
|
+
|
|
121
|
+
Check the [Frontend package development guide](https://neeto-engineering.neetokb.com/p/a-d34cb4b0) for step-by-step instructions to develop the frontend package.
|
|
122
|
+
|
|
123
|
+
#### Usage
|
|
51
124
|
|
|
52
125
|
1. Add the component to the host application. For example,
|
|
53
126
|
```js
|
|
@@ -63,33 +136,25 @@ across neeto products
|
|
|
63
136
|
/>
|
|
64
137
|
```
|
|
65
138
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
| Prop | Type | Default Value | Description |
|
|
69
|
-
| ----------------------- | -------- | ------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------- |
|
|
70
|
-
| title | String | "Email notification" | The title of the component. |
|
|
71
|
-
| subtitle | String | "Send an email notification when a new event occurred" | The subtitle of the component. |
|
|
72
|
-
| disabled | Boolean | false | Disables the component |
|
|
73
|
-
| emailFormikProps | Object | {} | Props for [`<EmailFormProvider />`](https://github.com/bigbinary/neeto-molecules/blob/main/docs/components.md#emailformprovider) |
|
|
74
|
-
| emailFormProps | Object | {} | Props for [`<EmailForm />`](https://github.com/bigbinary/neeto-molecules/blob/main/docs/components.md#emailform) |
|
|
75
|
-
| emailPreviewProps | Object | {} | Props for [`<EmailPreview />`](https://github.com/bigbinary/neeto-molecules/blob/main/docs/components.md#emailpreview) |
|
|
76
|
-
| emailNotificationParams | Object | {} | Contains params required for fetching email notification |
|
|
77
|
-
| onSuccess | Function | noop | Function that will be called when the email notification is updated successfully |
|
|
78
|
-
| tooltipProps | Object | {} | Props for `<Tooltip>` for showing toolTip content when disabled |
|
|
79
|
-
| children | Node | undefined | Additional content to be displayed inside the component |
|
|
139
|
+
##### NeetoEmailNotificationForm
|
|
80
140
|
|
|
81
|
-
|
|
141
|
+
The component is a form-based interface for adding or editing team members.
|
|
82
142
|
|
|
83
|
-
|
|
143
|
+
###### Props
|
|
84
144
|
|
|
85
|
-
|
|
86
|
-
|
|
145
|
+
- `title`: The title of the component.
|
|
146
|
+
- `subtitle`: The subtitle of the component.
|
|
147
|
+
- `onSuccess`: Function that will be called when the email notification is
|
|
148
|
+
updated successfully.
|
|
149
|
+
- `disabled`: Disables the component.
|
|
87
150
|
|
|
88
|
-
|
|
151
|
+
You can learn more about the NeetoEmailNotificationForm component and usage
|
|
152
|
+
here:
|
|
89
153
|
|
|
90
|
-
|
|
91
|
-
and password `welcome`.
|
|
154
|
+
1. [NeetoEmailNotificationForm component](./docs/frontend/neeto_email_notification_form.md)
|
|
92
155
|
|
|
93
|
-
|
|
156
|
+
## Instructions for Publishing
|
|
94
157
|
|
|
95
|
-
|
|
158
|
+
Consult the
|
|
159
|
+
[building and releasing packages](https://neeto-engineering.neetokb.com/articles/building-and-releasing-packages)
|
|
160
|
+
guide for details on how to publish.
|
package/dist/index.cjs.js
CHANGED
|
@@ -58,14 +58,14 @@ function _extends() {
|
|
|
58
58
|
return _extends.apply(this, arguments);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
function _typeof(
|
|
61
|
+
function _typeof(o) {
|
|
62
62
|
"@babel/helpers - typeof";
|
|
63
63
|
|
|
64
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
65
|
-
return typeof
|
|
66
|
-
} : function (
|
|
67
|
-
return
|
|
68
|
-
}, _typeof(
|
|
64
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
65
|
+
return typeof o;
|
|
66
|
+
} : function (o) {
|
|
67
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
68
|
+
}, _typeof(o);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
function _toPrimitive(input, hint) {
|
|
@@ -173,8 +173,8 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
173
173
|
|
|
174
174
|
var _excluded = ["notifyEmails", "notifyCcEmails", "notifyBccEmails", "replyToId", "customFields"],
|
|
175
175
|
_excluded2 = ["id", "isEnabled", "sendTo", "sendToCc", "sendToBcc", "showCopyEmails", "replyTo", "message", "subject", "sendFrom"];
|
|
176
|
-
function ownKeys$1(
|
|
177
|
-
function _objectSpread$1(
|
|
176
|
+
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; }
|
|
177
|
+
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), !0).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; }
|
|
178
178
|
var isValidEmail = function isValidEmail(email) {
|
|
179
179
|
return yup.string().email().isValidSync(email);
|
|
180
180
|
};
|
|
@@ -243,8 +243,8 @@ var renderText = function renderText(text, fallbackTranslation) {
|
|
|
243
243
|
return ramda.isEmpty(text) ? fallbackTranslation : text;
|
|
244
244
|
};
|
|
245
245
|
|
|
246
|
-
function ownKeys(
|
|
247
|
-
function _objectSpread(
|
|
246
|
+
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; }
|
|
247
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).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; }
|
|
248
248
|
var NeetoEmailNotificationForm = function NeetoEmailNotificationForm(_ref) {
|
|
249
249
|
var _ref$emailNotificatio = _ref.emailNotificationParams,
|
|
250
250
|
emailNotificationParams = _ref$emailNotificatio === void 0 ? {} : _ref$emailNotificatio,
|
|
@@ -298,7 +298,7 @@ var NeetoEmailNotificationForm = function NeetoEmailNotificationForm(_ref) {
|
|
|
298
298
|
}, emailFormikProps), function (_ref2) {
|
|
299
299
|
var values = _ref2.values;
|
|
300
300
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
301
|
-
className: "grid grid-cols-
|
|
301
|
+
className: "grid grid-cols-1 items-stretch gap-10 lg:grid-cols-2 lg:gap-6 xl:gap-8"
|
|
302
302
|
}, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
303
303
|
className: "flex items-center justify-between gap-6"
|
|
304
304
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -316,7 +316,7 @@ var NeetoEmailNotificationForm = function NeetoEmailNotificationForm(_ref) {
|
|
|
316
316
|
component: "span",
|
|
317
317
|
"data-cy": "receive-email-notification-label",
|
|
318
318
|
lineHeight: "normal",
|
|
319
|
-
style: "
|
|
319
|
+
style: "h3",
|
|
320
320
|
weight: "semibold"
|
|
321
321
|
}, renderText(title, t("neetoEmailNotifications.emailNotification.title"))))), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
322
322
|
lineHeight: "normal",
|
|
@@ -328,12 +328,19 @@ var NeetoEmailNotificationForm = function NeetoEmailNotificationForm(_ref) {
|
|
|
328
328
|
}),
|
|
329
329
|
isLoading: isSubmitting,
|
|
330
330
|
showFields: values.isEnabled
|
|
331
|
-
}, emailFormProps))),
|
|
331
|
+
}, emailFormProps))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
332
|
+
className: "flex flex-col"
|
|
333
|
+
}, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
334
|
+
className: "mb-3 block lg:hidden",
|
|
335
|
+
lineHeight: "normal",
|
|
336
|
+
style: "h3",
|
|
337
|
+
weight: "semibold"
|
|
338
|
+
}, t("neetoEmailNotifications.preview")), values.isEnabled && /*#__PURE__*/React__default["default"].createElement(EmailForm.EmailPreview, _extends({
|
|
332
339
|
body: values.message,
|
|
333
340
|
from: values.sendFrom,
|
|
334
341
|
subject: values.subject,
|
|
335
342
|
to: ramda.pluck("value", values.sendTo)
|
|
336
|
-
}, emailPreviewProps)));
|
|
343
|
+
}, emailPreviewProps))));
|
|
337
344
|
}));
|
|
338
345
|
};
|
|
339
346
|
|
package/dist/index.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":["../node_modules/@babel/runtime/helpers/esm/extends.js","../node_modules/@babel/runtime/helpers/esm/typeof.js","../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../node_modules/@babel/runtime/helpers/esm/defineProperty.js","../app/javascript/src/constants/index.js","../app/javascript/src/apis/email_notifications.js","../app/javascript/src/constants/query.js","../app/javascript/src/hooks/reactQuery/emailNotificationApi.js","../app/javascript/src/components/EmailNotificationForm/constants.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","../app/javascript/src/components/EmailNotificationForm/utils.js","../app/javascript/src/components/EmailNotificationForm/index.jsx"],"sourcesContent":["export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","export default function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}","import _typeof from \"./typeof.js\";\nexport default function _toPrimitive(input, hint) {\n if (_typeof(input) !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function _toPropertyKey(arg) {\n var key = toPrimitive(arg, \"string\");\n return _typeof(key) === \"symbol\" ? key : String(key);\n}","import toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}","export const EMAIL_NOTIFICATIONS_URL =\n \"neeto_email_notifications/email_notification\";\n","import axios from \"axios\";\n\nimport { EMAIL_NOTIFICATIONS_URL } from \"src/constants\";\n\nconst fetch = params => axios.get(EMAIL_NOTIFICATIONS_URL, { params });\n\nconst update = payload => axios.put(EMAIL_NOTIFICATIONS_URL, payload);\n\nconst emailNotificationsApi = { fetch, update };\n\nexport default emailNotificationsApi;\n","export const QUERY_KEYS = {\n NEETO_EMAIL_NOTIFICATIONS: \"neeto-email-notifications\",\n};\n","import { isNotEmpty } from \"neetocist\";\nimport { DEFAULT_STALE_TIME } from \"neetocommons/constants\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\nimport { prop } from \"ramda\";\nimport { useQuery } from \"react-query\";\n\nimport emailNotificationsApi from \"src/apis/email_notifications\";\nimport { QUERY_KEYS } from \"src/constants/query\";\n\nexport const useFetchEmailNotifications = params =>\n useQuery(\n [\n QUERY_KEYS.NEETO_EMAIL_NOTIFICATIONS,\n params[\"notificationHolderId\"],\n params[\"customFields\"],\n ],\n () => emailNotificationsApi.fetch(params),\n {\n staleTime: DEFAULT_STALE_TIME,\n select: prop(\"emailNotification\"),\n enabled: isNotEmpty(params),\n }\n );\n\nexport const useUpdateEmailNotification = () =>\n useMutationWithInvalidation(params => emailNotificationsApi.update(params), {\n keysToInvalidate: [\n (_, { notificationHolderId }) => [\n QUERY_KEYS.NEETO_EMAIL_NOTIFICATIONS,\n notificationHolderId,\n ],\n ],\n });\n","import * as yup from \"yup\";\n\nexport const FORM_VALIDATION_SCHEMA = { isEnabled: yup.boolean() };\n","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nexport default function _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}","import { isEmpty, prop } 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 => {\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.showCopyEmails = !!(notifyCcEmails?.length || notifyBccEmails?.length);\n\n return parsed;\n};\n\nexport const packEmailPayload = values => {\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 ...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 (isValidEmail(replyTo)) {\n rest.replyTo = replyTo;\n } else {\n payload.replyToId = replyTo;\n }\n payload.message = message;\n payload.subject = subject;\n payload.customFields = rest;\n payload.sendFrom = sendFrom;\n }\n\n return payload;\n};\n\nexport const renderText = (text, fallbackTranslation) =>\n isEmpty(text) ? fallbackTranslation : text;\n","import React from \"react\";\n\nimport classNames from \"classnames\";\nimport { noop } from \"neetocist\";\nimport {\n EmailFormProvider,\n EmailForm,\n EmailPreview,\n} from \"neetomolecules/EmailForm\";\nimport PageLoader from \"neetomolecules/PageLoader\";\nimport { Tooltip, Typography } from \"neetoui\";\nimport { Switch } from \"neetoui/formik\";\nimport { pluck } from \"ramda\";\nimport { useTranslation } from \"react-i18next\";\n\nimport {\n useFetchEmailNotifications,\n useUpdateEmailNotification,\n} from \"src/hooks/reactQuery/emailNotificationApi\";\n\nimport { FORM_VALIDATION_SCHEMA } from \"./constants\";\nimport {\n packEmailPayload,\n parseEmailNotificationData,\n renderText,\n} from \"./utils\";\n\nconst NeetoEmailNotificationForm = ({\n emailNotificationParams = {},\n emailPreviewProps = {},\n emailFormProps = {},\n emailFormikProps = {},\n title = \"\",\n subTitle = \"\",\n disabled = false,\n tooltipProps = {},\n onSuccess = noop,\n children,\n}) => {\n const { t } = useTranslation();\n\n const { data, isLoading } = useFetchEmailNotifications(\n emailNotificationParams\n );\n\n const { mutate: updateEmailNotification, isLoading: isSubmitting } =\n useUpdateEmailNotification();\n\n const handleSubmit = values => {\n const emailNotification = packEmailPayload(values);\n updateEmailNotification(\n { emailNotification, ...emailNotificationParams },\n { onSuccess }\n );\n };\n\n if (isLoading) {\n return <PageLoader />;\n }\n\n return (\n <div className=\"flex w-full flex-col overflow-y-auto\">\n <EmailFormProvider\n showSendToField\n formikProps={{ validateOnBlur: true, validateOnChange: true }}\n initialValues={parseEmailNotificationData(data)}\n validationSchema={FORM_VALIDATION_SCHEMA}\n onSubmit={handleSubmit}\n {...emailFormikProps}\n >\n {({ values }) => (\n <div className=\"grid grid-cols-2 items-stretch gap-8\">\n <div>\n <div className=\"flex items-center justify-between gap-6\">\n <div className=\"space-y-0.5\">\n <Tooltip\n disabled={!disabled}\n position=\"top\"\n {...tooltipProps}\n >\n <div className=\"flex items-center gap-2\">\n <Switch\n {...{ disabled }}\n data-cy=\"receive-email-notification-switch\"\n name=\"isEnabled\"\n />\n <Typography\n component=\"span\"\n data-cy=\"receive-email-notification-label\"\n lineHeight=\"normal\"\n style=\"h2\"\n weight=\"semibold\"\n >\n {renderText(\n title,\n t(\"neetoEmailNotifications.emailNotification.title\")\n )}\n </Typography>\n </div>\n </Tooltip>\n <Typography lineHeight=\"normal\" style=\"body2\">\n {renderText(\n subTitle,\n t(\"neetoEmailNotifications.emailNotification.subTitle\")\n )}\n </Typography>\n </div>\n </div>\n {values.isEnabled && children}\n <EmailForm\n showSendToField\n className={classNames({ \"pt-3 \": values.isEnabled })}\n isLoading={isSubmitting}\n showFields={values.isEnabled}\n {...emailFormProps}\n />\n </div>\n {values.isEnabled && (\n <EmailPreview\n body={values.message}\n from={values.sendFrom}\n subject={values.subject}\n to={pluck(\"value\", values.sendTo)}\n {...emailPreviewProps}\n />\n )}\n </div>\n )}\n </EmailFormProvider>\n </div>\n );\n};\nexport default NeetoEmailNotificationForm;\n"],"names":["toPrimitive","toPropertyKey","EMAIL_NOTIFICATIONS_URL","fetch","params","axios","get","update","payload","put","emailNotificationsApi","QUERY_KEYS","NEETO_EMAIL_NOTIFICATIONS","useFetchEmailNotifications","useQuery","staleTime","DEFAULT_STALE_TIME","select","prop","enabled","isNotEmpty","useUpdateEmailNotification","useMutationWithInvalidation","keysToInvalidate","_","_ref","notificationHolderId","FORM_VALIDATION_SCHEMA","isEnabled","yup","objectWithoutPropertiesLoose","isValidEmail","email","string","isValidSync","createEmailOptions","emails","arguments","length","undefined","map","label","value","valid","parseEmailsOptions","emailOptions","parseEmailNotificationData","data","notifyEmails","notifyCcEmails","notifyBccEmails","replyToId","customFields","rest","_objectWithoutProperties","_excluded","parsed","_objectSpread","sendTo","sendToCc","sendToBcc","replyTo","showCopyEmails","packEmailPayload","values","id","message","subject","sendFrom","_excluded2","renderText","text","fallbackTranslation","isEmpty","NeetoEmailNotificationForm","_ref$emailNotificatio","emailNotificationParams","_ref$emailPreviewProp","emailPreviewProps","_ref$emailFormProps","emailFormProps","_ref$emailFormikProps","emailFormikProps","_ref$title","title","_ref$subTitle","subTitle","_ref$disabled","disabled","_ref$tooltipProps","tooltipProps","_ref$onSuccess","onSuccess","noop","children","_useTranslation","useTranslation","t","_useFetchEmailNotific","isLoading","_useUpdateEmailNotifi","updateEmailNotification","mutate","isSubmitting","handleSubmit","emailNotification","React","createElement","PageLoader","className","EmailFormProvider","_extends","showSendToField","formikProps","validateOnBlur","validateOnChange","initialValues","validationSchema","onSubmit","_ref2","Tooltip","position","Switch","name","Typography","component","lineHeight","style","weight","EmailForm","classNames","showFields","EmailPreview","body","from","to","pluck"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAe,SAAS,QAAQ,GAAG;AACnC,EAAE,QAAQ,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,UAAU,MAAM,EAAE;AACtE,IAAI,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AAC/C,MAAM,IAAI,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAChC,MAAM,KAAK,IAAI,GAAG,IAAI,MAAM,EAAE;AAC9B,QAAQ,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE;AAC/D,UAAU,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;AACpC,SAAS;AACT,OAAO;AACP,KAAK;AACL,IAAI,OAAO,MAAM,CAAC;AAClB,GAAG,CAAC;AACJ,EAAE,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;AACzC;;ACbe,SAAS,OAAO,CAAC,GAAG,EAAE;AACrC,EAAE,yBAAyB,CAAC;AAC5B;AACA,EAAE,OAAO,OAAO,GAAG,UAAU,IAAI,OAAO,MAAM,IAAI,QAAQ,IAAI,OAAO,MAAM,CAAC,QAAQ,GAAG,UAAU,GAAG,EAAE;AACtG,IAAI,OAAO,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Aa;MACxB4B,UAAU,EAAEnE,MAAM,CAACpC,SAAAA;AAAU,KAAA,EACzBoD,cAAc,CACnB,CACE,CAAC,EACLhB,MAAM,CAACpC,SAAS,iBACf8E,yBAAA,CAAAC,aAAA,CAACyB,sBAAY,EAAArB,QAAA,CAAA;MACXsB,IAAI,EAAErE,MAAM,CAACE,OAAQ;MACrBoE,IAAI,EAAEtE,MAAM,CAACI,QAAS;MACtBD,OAAO,EAAEH,MAAM,CAACG,OAAQ;AACxBoE,MAAAA,EAAE,EAAEC,WAAK,CAAC,OAAO,EAAExE,MAAM,CAACN,MAAM,CAAA;KAC5BoB,EAAAA,iBAAiB,CACtB,CAEA,CAAC,CAAA;AAAA,GAES,CAChB,CAAC,CAAA;AAEV;;;;"}
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../node_modules/@babel/runtime/helpers/esm/extends.js","../node_modules/@babel/runtime/helpers/esm/typeof.js","../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../node_modules/@babel/runtime/helpers/esm/defineProperty.js","../app/javascript/src/constants/index.js","../app/javascript/src/apis/email_notifications.js","../app/javascript/src/constants/query.js","../app/javascript/src/hooks/reactQuery/emailNotificationApi.js","../app/javascript/src/components/EmailNotificationForm/constants.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","../app/javascript/src/components/EmailNotificationForm/utils.js","../app/javascript/src/components/EmailNotificationForm/index.jsx"],"sourcesContent":["export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","export default function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}","import _typeof from \"./typeof.js\";\nexport default function _toPrimitive(input, hint) {\n if (_typeof(input) !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function _toPropertyKey(arg) {\n var key = toPrimitive(arg, \"string\");\n return _typeof(key) === \"symbol\" ? key : String(key);\n}","import toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}","export const EMAIL_NOTIFICATIONS_URL =\n \"neeto_email_notifications/email_notification\";\n","import axios from \"axios\";\n\nimport { EMAIL_NOTIFICATIONS_URL } from \"src/constants\";\n\nconst fetch = params => axios.get(EMAIL_NOTIFICATIONS_URL, { params });\n\nconst update = payload => axios.put(EMAIL_NOTIFICATIONS_URL, payload);\n\nconst emailNotificationsApi = { fetch, update };\n\nexport default emailNotificationsApi;\n","export const QUERY_KEYS = {\n NEETO_EMAIL_NOTIFICATIONS: \"neeto-email-notifications\",\n};\n","import { isNotEmpty } from \"neetocist\";\nimport { DEFAULT_STALE_TIME } from \"neetocommons/constants\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\nimport { prop } from \"ramda\";\nimport { useQuery } from \"react-query\";\n\nimport emailNotificationsApi from \"src/apis/email_notifications\";\nimport { QUERY_KEYS } from \"src/constants/query\";\n\nexport const useFetchEmailNotifications = params =>\n useQuery(\n [\n QUERY_KEYS.NEETO_EMAIL_NOTIFICATIONS,\n params[\"notificationHolderId\"],\n params[\"customFields\"],\n ],\n () => emailNotificationsApi.fetch(params),\n {\n staleTime: DEFAULT_STALE_TIME,\n select: prop(\"emailNotification\"),\n enabled: isNotEmpty(params),\n }\n );\n\nexport const useUpdateEmailNotification = () =>\n useMutationWithInvalidation(params => emailNotificationsApi.update(params), {\n keysToInvalidate: [\n (_, { notificationHolderId }) => [\n QUERY_KEYS.NEETO_EMAIL_NOTIFICATIONS,\n notificationHolderId,\n ],\n ],\n });\n","import * as yup from \"yup\";\n\nexport const FORM_VALIDATION_SCHEMA = { isEnabled: yup.boolean() };\n","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nexport default function _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}","import { isEmpty, prop } 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 => {\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.showCopyEmails = !!(notifyCcEmails?.length || notifyBccEmails?.length);\n\n return parsed;\n};\n\nexport const packEmailPayload = values => {\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 ...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 (isValidEmail(replyTo)) {\n rest.replyTo = replyTo;\n } else {\n payload.replyToId = replyTo;\n }\n payload.message = message;\n payload.subject = subject;\n payload.customFields = rest;\n payload.sendFrom = sendFrom;\n }\n\n return payload;\n};\n\nexport const renderText = (text, fallbackTranslation) =>\n isEmpty(text) ? fallbackTranslation : text;\n","import React from \"react\";\n\nimport classNames from \"classnames\";\nimport { noop } from \"neetocist\";\nimport {\n EmailFormProvider,\n EmailForm,\n EmailPreview,\n} from \"neetomolecules/EmailForm\";\nimport PageLoader from \"neetomolecules/PageLoader\";\nimport { Tooltip, Typography } from \"neetoui\";\nimport { Switch } from \"neetoui/formik\";\nimport { pluck } from \"ramda\";\nimport { useTranslation } from \"react-i18next\";\n\nimport {\n useFetchEmailNotifications,\n useUpdateEmailNotification,\n} from \"src/hooks/reactQuery/emailNotificationApi\";\n\nimport { FORM_VALIDATION_SCHEMA } from \"./constants\";\nimport {\n packEmailPayload,\n parseEmailNotificationData,\n renderText,\n} from \"./utils\";\n\nconst NeetoEmailNotificationForm = ({\n emailNotificationParams = {},\n emailPreviewProps = {},\n emailFormProps = {},\n emailFormikProps = {},\n title = \"\",\n subTitle = \"\",\n disabled = false,\n tooltipProps = {},\n onSuccess = noop,\n children,\n}) => {\n const { t } = useTranslation();\n\n const { data, isLoading } = useFetchEmailNotifications(\n emailNotificationParams\n );\n\n const { mutate: updateEmailNotification, isLoading: isSubmitting } =\n useUpdateEmailNotification();\n\n const handleSubmit = values => {\n const emailNotification = packEmailPayload(values);\n updateEmailNotification(\n { emailNotification, ...emailNotificationParams },\n { onSuccess }\n );\n };\n\n if (isLoading) {\n return <PageLoader />;\n }\n\n return (\n <div className=\"flex w-full flex-col overflow-y-auto\">\n <EmailFormProvider\n showSendToField\n formikProps={{ validateOnBlur: true, validateOnChange: true }}\n initialValues={parseEmailNotificationData(data)}\n validationSchema={FORM_VALIDATION_SCHEMA}\n onSubmit={handleSubmit}\n {...emailFormikProps}\n >\n {({ values }) => (\n <div className=\"grid grid-cols-1 items-stretch gap-10 lg:grid-cols-2 lg:gap-6 xl:gap-8\">\n <div>\n <div className=\"flex items-center justify-between gap-6\">\n <div className=\"space-y-0.5\">\n <Tooltip\n disabled={!disabled}\n position=\"top\"\n {...tooltipProps}\n >\n <div className=\"flex items-center gap-2\">\n <Switch\n {...{ disabled }}\n data-cy=\"receive-email-notification-switch\"\n name=\"isEnabled\"\n />\n <Typography\n component=\"span\"\n data-cy=\"receive-email-notification-label\"\n lineHeight=\"normal\"\n style=\"h3\"\n weight=\"semibold\"\n >\n {renderText(\n title,\n t(\"neetoEmailNotifications.emailNotification.title\")\n )}\n </Typography>\n </div>\n </Tooltip>\n <Typography lineHeight=\"normal\" style=\"body2\">\n {renderText(\n subTitle,\n t(\"neetoEmailNotifications.emailNotification.subTitle\")\n )}\n </Typography>\n </div>\n </div>\n {values.isEnabled && children}\n <EmailForm\n showSendToField\n className={classNames({ \"pt-3 \": values.isEnabled })}\n isLoading={isSubmitting}\n showFields={values.isEnabled}\n {...emailFormProps}\n />\n </div>\n <div className=\"flex flex-col\">\n <Typography\n className=\"mb-3 block lg:hidden\"\n lineHeight=\"normal\"\n style=\"h3\"\n weight=\"semibold\"\n >\n {t(\"neetoEmailNotifications.preview\")}\n </Typography>\n {values.isEnabled && (\n <EmailPreview\n body={values.message}\n from={values.sendFrom}\n subject={values.subject}\n to={pluck(\"value\", values.sendTo)}\n {...emailPreviewProps}\n />\n )}\n </div>\n </div>\n )}\n </EmailFormProvider>\n </div>\n );\n};\nexport default NeetoEmailNotificationForm;\n"],"names":["toPrimitive","toPropertyKey","EMAIL_NOTIFICATIONS_URL","fetch","params","axios","get","update","payload","put","emailNotificationsApi","QUERY_KEYS","NEETO_EMAIL_NOTIFICATIONS","useFetchEmailNotifications","useQuery","staleTime","DEFAULT_STALE_TIME","select","prop","enabled","isNotEmpty","useUpdateEmailNotification","useMutationWithInvalidation","keysToInvalidate","_","_ref","notificationHolderId","FORM_VALIDATION_SCHEMA","isEnabled","yup","objectWithoutPropertiesLoose","isValidEmail","email","string","isValidSync","createEmailOptions","emails","arguments","length","undefined","map","label","value","valid","parseEmailsOptions","emailOptions","parseEmailNotificationData","data","notifyEmails","notifyCcEmails","notifyBccEmails","replyToId","customFields","rest","_objectWithoutProperties","_excluded","parsed","_objectSpread","sendTo","sendToCc","sendToBcc","replyTo","showCopyEmails","packEmailPayload","values","id","message","subject","sendFrom","_excluded2","renderText","text","fallbackTranslation","isEmpty","NeetoEmailNotificationForm","_ref$emailNotificatio","emailNotificationParams","_ref$emailPreviewProp","emailPreviewProps","_ref$emailFormProps","emailFormProps","_ref$emailFormikProps","emailFormikProps","_ref$title","title","_ref$subTitle","subTitle","_ref$disabled","disabled","_ref$tooltipProps","tooltipProps","_ref$onSuccess","onSuccess","noop","children","_useTranslation","useTranslation","t","_useFetchEmailNotific","isLoading","_useUpdateEmailNotifi","updateEmailNotification","mutate","isSubmitting","handleSubmit","emailNotification","React","createElement","PageLoader","className","EmailFormProvider","_extends","showSendToField","formikProps","validateOnBlur","validateOnChange","initialValues","validationSchema","onSubmit","_ref2","Tooltip","position","Switch","name","Typography","component","lineHeight","style","weight","EmailForm","classNames","showFields","EmailPreview","body","from","to","pluck"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAe,SAAS,QAAQ,GAAG;AACnC,EAAE,QAAQ,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,UAAU,MAAM,EAAE;AACtE,IAAI,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AAC/C,MAAM,IAAI,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAChC,MAAM,KAAK,IAAI,GAAG,IAAI,MAAM,EAAE;AAC9B,QAAQ,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE;AAC/D,UAAU,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;AACpC,SAAS;AACT,OAAO;AACP,KAAK;AACL,IAAI,OAAO,MAAM,CAAC;AAClB,GAAG,CAAC;AACJ,EAAE,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;AACzC;;ACbe,SAAS,OAAO,CAAC,CAAC,EAAE;AACnC,EAAE,yBAAyB,CAAC;AAC5B;AACA,EAAE,OAAO,OAAO,GAAG,UAAU,IAAI,OAAO,MAAM,IAAI,QAAQ,IAAI,OAAO,MAAM,CAAC,QAAQ,GAAG,UAAU,CAAC,EAAE;AACpG,IAAI,OAAO,OAAO,CAAC,CAAC;AACpB,GAAG,GAAG,UAAU,CAAC,EAAE;AACnB,IAAI,OAAO,CAAC,IAAI,UAAU,IAAI,OAAO,MAAM,IAAI,CAAC,CAAC,WAAW,KAAK,MAAM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MAAAA,SAAS,EAAC,eAAA;AAAe,KAAA,eAC5BH,yBAAA,CAAAC,aAAA,CAACiB,kBAAU,EAAA;AACTf,MAAAA,SAAS,EAAC,sBAAsB;AAChCiB,MAAAA,UAAU,EAAC,QAAQ;AACnBC,MAAAA,KAAK,EAAC,IAAI;AACVC,MAAAA,MAAM,EAAC,UAAA;AAAU,KAAA,EAEhB/B,CAAC,CAAC,iCAAiC,CAC1B,CAAC,EACZjC,MAAM,CAACpC,SAAS,iBACf8E,yBAAA,CAAAC,aAAA,CAACyB,sBAAY,EAAArB,QAAA,CAAA;MACXsB,IAAI,EAAErE,MAAM,CAACE,OAAQ;MACrBoE,IAAI,EAAEtE,MAAM,CAACI,QAAS;MACtBD,OAAO,EAAEH,MAAM,CAACG,OAAQ;AACxBoE,MAAAA,EAAE,EAAEC,WAAK,CAAC,OAAO,EAAExE,MAAM,CAACN,MAAM,CAAA;AAAE,KAAA,EAC9BoB,iBAAiB,CACtB,CAEA,CACF,CAAC,CAAA;AAAA,GAES,CAChB,CAAC,CAAA;AAEV;;;;"}
|
package/dist/index.js
CHANGED
|
@@ -29,14 +29,14 @@ function _extends() {
|
|
|
29
29
|
return _extends.apply(this, arguments);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
function _typeof(
|
|
32
|
+
function _typeof(o) {
|
|
33
33
|
"@babel/helpers - typeof";
|
|
34
34
|
|
|
35
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
36
|
-
return typeof
|
|
37
|
-
} : function (
|
|
38
|
-
return
|
|
39
|
-
}, _typeof(
|
|
35
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
36
|
+
return typeof o;
|
|
37
|
+
} : function (o) {
|
|
38
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
39
|
+
}, _typeof(o);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
function _toPrimitive(input, hint) {
|
|
@@ -144,8 +144,8 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
144
144
|
|
|
145
145
|
var _excluded = ["notifyEmails", "notifyCcEmails", "notifyBccEmails", "replyToId", "customFields"],
|
|
146
146
|
_excluded2 = ["id", "isEnabled", "sendTo", "sendToCc", "sendToBcc", "showCopyEmails", "replyTo", "message", "subject", "sendFrom"];
|
|
147
|
-
function ownKeys$1(
|
|
148
|
-
function _objectSpread$1(
|
|
147
|
+
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; }
|
|
148
|
+
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), !0).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; }
|
|
149
149
|
var isValidEmail = function isValidEmail(email) {
|
|
150
150
|
return string().email().isValidSync(email);
|
|
151
151
|
};
|
|
@@ -214,8 +214,8 @@ var renderText = function renderText(text, fallbackTranslation) {
|
|
|
214
214
|
return isEmpty(text) ? fallbackTranslation : text;
|
|
215
215
|
};
|
|
216
216
|
|
|
217
|
-
function ownKeys(
|
|
218
|
-
function _objectSpread(
|
|
217
|
+
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; }
|
|
218
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).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; }
|
|
219
219
|
var NeetoEmailNotificationForm = function NeetoEmailNotificationForm(_ref) {
|
|
220
220
|
var _ref$emailNotificatio = _ref.emailNotificationParams,
|
|
221
221
|
emailNotificationParams = _ref$emailNotificatio === void 0 ? {} : _ref$emailNotificatio,
|
|
@@ -269,7 +269,7 @@ var NeetoEmailNotificationForm = function NeetoEmailNotificationForm(_ref) {
|
|
|
269
269
|
}, emailFormikProps), function (_ref2) {
|
|
270
270
|
var values = _ref2.values;
|
|
271
271
|
return /*#__PURE__*/React.createElement("div", {
|
|
272
|
-
className: "grid grid-cols-
|
|
272
|
+
className: "grid grid-cols-1 items-stretch gap-10 lg:grid-cols-2 lg:gap-6 xl:gap-8"
|
|
273
273
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
274
274
|
className: "flex items-center justify-between gap-6"
|
|
275
275
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -287,7 +287,7 @@ var NeetoEmailNotificationForm = function NeetoEmailNotificationForm(_ref) {
|
|
|
287
287
|
component: "span",
|
|
288
288
|
"data-cy": "receive-email-notification-label",
|
|
289
289
|
lineHeight: "normal",
|
|
290
|
-
style: "
|
|
290
|
+
style: "h3",
|
|
291
291
|
weight: "semibold"
|
|
292
292
|
}, renderText(title, t("neetoEmailNotifications.emailNotification.title"))))), /*#__PURE__*/React.createElement(Typography, {
|
|
293
293
|
lineHeight: "normal",
|
|
@@ -299,12 +299,19 @@ var NeetoEmailNotificationForm = function NeetoEmailNotificationForm(_ref) {
|
|
|
299
299
|
}),
|
|
300
300
|
isLoading: isSubmitting,
|
|
301
301
|
showFields: values.isEnabled
|
|
302
|
-
}, emailFormProps))),
|
|
302
|
+
}, emailFormProps))), /*#__PURE__*/React.createElement("div", {
|
|
303
|
+
className: "flex flex-col"
|
|
304
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
305
|
+
className: "mb-3 block lg:hidden",
|
|
306
|
+
lineHeight: "normal",
|
|
307
|
+
style: "h3",
|
|
308
|
+
weight: "semibold"
|
|
309
|
+
}, t("neetoEmailNotifications.preview")), values.isEnabled && /*#__PURE__*/React.createElement(EmailPreview, _extends({
|
|
303
310
|
body: values.message,
|
|
304
311
|
from: values.sendFrom,
|
|
305
312
|
subject: values.subject,
|
|
306
313
|
to: pluck("value", values.sendTo)
|
|
307
|
-
}, emailPreviewProps)));
|
|
314
|
+
}, emailPreviewProps))));
|
|
308
315
|
}));
|
|
309
316
|
};
|
|
310
317
|
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../node_modules/@babel/runtime/helpers/esm/extends.js","../node_modules/@babel/runtime/helpers/esm/typeof.js","../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../node_modules/@babel/runtime/helpers/esm/defineProperty.js","../app/javascript/src/constants/index.js","../app/javascript/src/apis/email_notifications.js","../app/javascript/src/constants/query.js","../app/javascript/src/hooks/reactQuery/emailNotificationApi.js","../app/javascript/src/components/EmailNotificationForm/constants.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","../app/javascript/src/components/EmailNotificationForm/utils.js","../app/javascript/src/components/EmailNotificationForm/index.jsx"],"sourcesContent":["export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","export default function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}","import _typeof from \"./typeof.js\";\nexport default function _toPrimitive(input, hint) {\n if (_typeof(input) !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function _toPropertyKey(arg) {\n var key = toPrimitive(arg, \"string\");\n return _typeof(key) === \"symbol\" ? key : String(key);\n}","import toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}","export const EMAIL_NOTIFICATIONS_URL =\n \"neeto_email_notifications/email_notification\";\n","import axios from \"axios\";\n\nimport { EMAIL_NOTIFICATIONS_URL } from \"src/constants\";\n\nconst fetch = params => axios.get(EMAIL_NOTIFICATIONS_URL, { params });\n\nconst update = payload => axios.put(EMAIL_NOTIFICATIONS_URL, payload);\n\nconst emailNotificationsApi = { fetch, update };\n\nexport default emailNotificationsApi;\n","export const QUERY_KEYS = {\n NEETO_EMAIL_NOTIFICATIONS: \"neeto-email-notifications\",\n};\n","import { isNotEmpty } from \"neetocist\";\nimport { DEFAULT_STALE_TIME } from \"neetocommons/constants\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\nimport { prop } from \"ramda\";\nimport { useQuery } from \"react-query\";\n\nimport emailNotificationsApi from \"src/apis/email_notifications\";\nimport { QUERY_KEYS } from \"src/constants/query\";\n\nexport const useFetchEmailNotifications = params =>\n useQuery(\n [\n QUERY_KEYS.NEETO_EMAIL_NOTIFICATIONS,\n params[\"notificationHolderId\"],\n params[\"customFields\"],\n ],\n () => emailNotificationsApi.fetch(params),\n {\n staleTime: DEFAULT_STALE_TIME,\n select: prop(\"emailNotification\"),\n enabled: isNotEmpty(params),\n }\n );\n\nexport const useUpdateEmailNotification = () =>\n useMutationWithInvalidation(params => emailNotificationsApi.update(params), {\n keysToInvalidate: [\n (_, { notificationHolderId }) => [\n QUERY_KEYS.NEETO_EMAIL_NOTIFICATIONS,\n notificationHolderId,\n ],\n ],\n });\n","import * as yup from \"yup\";\n\nexport const FORM_VALIDATION_SCHEMA = { isEnabled: yup.boolean() };\n","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nexport default function _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}","import { isEmpty, prop } 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 => {\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.showCopyEmails = !!(notifyCcEmails?.length || notifyBccEmails?.length);\n\n return parsed;\n};\n\nexport const packEmailPayload = values => {\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 ...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 (isValidEmail(replyTo)) {\n rest.replyTo = replyTo;\n } else {\n payload.replyToId = replyTo;\n }\n payload.message = message;\n payload.subject = subject;\n payload.customFields = rest;\n payload.sendFrom = sendFrom;\n }\n\n return payload;\n};\n\nexport const renderText = (text, fallbackTranslation) =>\n isEmpty(text) ? fallbackTranslation : text;\n","import React from \"react\";\n\nimport classNames from \"classnames\";\nimport { noop } from \"neetocist\";\nimport {\n EmailFormProvider,\n EmailForm,\n EmailPreview,\n} from \"neetomolecules/EmailForm\";\nimport PageLoader from \"neetomolecules/PageLoader\";\nimport { Tooltip, Typography } from \"neetoui\";\nimport { Switch } from \"neetoui/formik\";\nimport { pluck } from \"ramda\";\nimport { useTranslation } from \"react-i18next\";\n\nimport {\n useFetchEmailNotifications,\n useUpdateEmailNotification,\n} from \"src/hooks/reactQuery/emailNotificationApi\";\n\nimport { FORM_VALIDATION_SCHEMA } from \"./constants\";\nimport {\n packEmailPayload,\n parseEmailNotificationData,\n renderText,\n} from \"./utils\";\n\nconst NeetoEmailNotificationForm = ({\n emailNotificationParams = {},\n emailPreviewProps = {},\n emailFormProps = {},\n emailFormikProps = {},\n title = \"\",\n subTitle = \"\",\n disabled = false,\n tooltipProps = {},\n onSuccess = noop,\n children,\n}) => {\n const { t } = useTranslation();\n\n const { data, isLoading } = useFetchEmailNotifications(\n emailNotificationParams\n );\n\n const { mutate: updateEmailNotification, isLoading: isSubmitting } =\n useUpdateEmailNotification();\n\n const handleSubmit = values => {\n const emailNotification = packEmailPayload(values);\n updateEmailNotification(\n { emailNotification, ...emailNotificationParams },\n { onSuccess }\n );\n };\n\n if (isLoading) {\n return <PageLoader />;\n }\n\n return (\n <div className=\"flex w-full flex-col overflow-y-auto\">\n <EmailFormProvider\n showSendToField\n formikProps={{ validateOnBlur: true, validateOnChange: true }}\n initialValues={parseEmailNotificationData(data)}\n validationSchema={FORM_VALIDATION_SCHEMA}\n onSubmit={handleSubmit}\n {...emailFormikProps}\n >\n {({ values }) => (\n <div className=\"grid grid-cols-2 items-stretch gap-8\">\n <div>\n <div className=\"flex items-center justify-between gap-6\">\n <div className=\"space-y-0.5\">\n <Tooltip\n disabled={!disabled}\n position=\"top\"\n {...tooltipProps}\n >\n <div className=\"flex items-center gap-2\">\n <Switch\n {...{ disabled }}\n data-cy=\"receive-email-notification-switch\"\n name=\"isEnabled\"\n />\n <Typography\n component=\"span\"\n data-cy=\"receive-email-notification-label\"\n lineHeight=\"normal\"\n style=\"h2\"\n weight=\"semibold\"\n >\n {renderText(\n title,\n t(\"neetoEmailNotifications.emailNotification.title\")\n )}\n </Typography>\n </div>\n </Tooltip>\n <Typography lineHeight=\"normal\" style=\"body2\">\n {renderText(\n subTitle,\n t(\"neetoEmailNotifications.emailNotification.subTitle\")\n )}\n </Typography>\n </div>\n </div>\n {values.isEnabled && children}\n <EmailForm\n showSendToField\n className={classNames({ \"pt-3 \": values.isEnabled })}\n isLoading={isSubmitting}\n showFields={values.isEnabled}\n {...emailFormProps}\n />\n </div>\n {values.isEnabled && (\n <EmailPreview\n body={values.message}\n from={values.sendFrom}\n subject={values.subject}\n to={pluck(\"value\", values.sendTo)}\n {...emailPreviewProps}\n />\n )}\n </div>\n )}\n </EmailFormProvider>\n </div>\n );\n};\nexport default NeetoEmailNotificationForm;\n"],"names":["toPrimitive","toPropertyKey","EMAIL_NOTIFICATIONS_URL","fetch","params","axios","get","update","payload","put","emailNotificationsApi","QUERY_KEYS","NEETO_EMAIL_NOTIFICATIONS","useFetchEmailNotifications","useQuery","staleTime","DEFAULT_STALE_TIME","select","prop","enabled","isNotEmpty","useUpdateEmailNotification","useMutationWithInvalidation","keysToInvalidate","_","_ref","notificationHolderId","FORM_VALIDATION_SCHEMA","isEnabled","yup","objectWithoutPropertiesLoose","isValidEmail","email","string","isValidSync","createEmailOptions","emails","arguments","length","undefined","map","label","value","valid","parseEmailsOptions","emailOptions","parseEmailNotificationData","data","notifyEmails","notifyCcEmails","notifyBccEmails","replyToId","customFields","rest","_objectWithoutProperties","_excluded","parsed","_objectSpread","sendTo","sendToCc","sendToBcc","replyTo","showCopyEmails","packEmailPayload","values","id","message","subject","sendFrom","_excluded2","renderText","text","fallbackTranslation","isEmpty","NeetoEmailNotificationForm","_ref$emailNotificatio","emailNotificationParams","_ref$emailPreviewProp","emailPreviewProps","_ref$emailFormProps","emailFormProps","_ref$emailFormikProps","emailFormikProps","_ref$title","title","_ref$subTitle","subTitle","_ref$disabled","disabled","_ref$tooltipProps","tooltipProps","_ref$onSuccess","onSuccess","noop","children","_useTranslation","useTranslation","t","_useFetchEmailNotific","isLoading","_useUpdateEmailNotifi","updateEmailNotification","mutate","isSubmitting","handleSubmit","emailNotification","React","createElement","PageLoader","className","EmailFormProvider","_extends","showSendToField","formikProps","validateOnBlur","validateOnChange","initialValues","validationSchema","onSubmit","_ref2","Tooltip","position","Switch","name","Typography","component","lineHeight","style","weight","EmailForm","classN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E,EAAEC,KAAK,CAAC,OAAO,EAAExE,MAAM,CAACN,MAAM,CAAA;KAC5BoB,EAAAA,iBAAiB,CACtB,CAEA,CAAC,CAAA;AAAA,GAES,CAChB,CAAC,CAAA;AAEV;;;;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../node_modules/@babel/runtime/helpers/esm/extends.js","../node_modules/@babel/runtime/helpers/esm/typeof.js","../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../node_modules/@babel/runtime/helpers/esm/defineProperty.js","../app/javascript/src/constants/index.js","../app/javascript/src/apis/email_notifications.js","../app/javascript/src/constants/query.js","../app/javascript/src/hooks/reactQuery/emailNotificationApi.js","../app/javascript/src/components/EmailNotificationForm/constants.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","../app/javascript/src/components/EmailNotificationForm/utils.js","../app/javascript/src/components/EmailNotificationForm/index.jsx"],"sourcesContent":["export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","export default function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}","import _typeof from \"./typeof.js\";\nexport default function _toPrimitive(input, hint) {\n if (_typeof(input) !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function _toPropertyKey(arg) {\n var key = toPrimitive(arg, \"string\");\n return _typeof(key) === \"symbol\" ? key : String(key);\n}","import toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}","export const EMAIL_NOTIFICATIONS_URL =\n \"neeto_email_notifications/email_notification\";\n","import axios from \"axios\";\n\nimport { EMAIL_NOTIFICATIONS_URL } from \"src/constants\";\n\nconst fetch = params => axios.get(EMAIL_NOTIFICATIONS_URL, { params });\n\nconst update = payload => axios.put(EMAIL_NOTIFICATIONS_URL, payload);\n\nconst emailNotificationsApi = { fetch, update };\n\nexport default emailNotificationsApi;\n","export const QUERY_KEYS = {\n NEETO_EMAIL_NOTIFICATIONS: \"neeto-email-notifications\",\n};\n","import { isNotEmpty } from \"neetocist\";\nimport { DEFAULT_STALE_TIME } from \"neetocommons/constants\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\nimport { prop } from \"ramda\";\nimport { useQuery } from \"react-query\";\n\nimport emailNotificationsApi from \"src/apis/email_notifications\";\nimport { QUERY_KEYS } from \"src/constants/query\";\n\nexport const useFetchEmailNotifications = params =>\n useQuery(\n [\n QUERY_KEYS.NEETO_EMAIL_NOTIFICATIONS,\n params[\"notificationHolderId\"],\n params[\"customFields\"],\n ],\n () => emailNotificationsApi.fetch(params),\n {\n staleTime: DEFAULT_STALE_TIME,\n select: prop(\"emailNotification\"),\n enabled: isNotEmpty(params),\n }\n );\n\nexport const useUpdateEmailNotification = () =>\n useMutationWithInvalidation(params => emailNotificationsApi.update(params), {\n keysToInvalidate: [\n (_, { notificationHolderId }) => [\n QUERY_KEYS.NEETO_EMAIL_NOTIFICATIONS,\n notificationHolderId,\n ],\n ],\n });\n","import * as yup from \"yup\";\n\nexport const FORM_VALIDATION_SCHEMA = { isEnabled: yup.boolean() };\n","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nexport default function _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}","import { isEmpty, prop } 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 => {\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.showCopyEmails = !!(notifyCcEmails?.length || notifyBccEmails?.length);\n\n return parsed;\n};\n\nexport const packEmailPayload = values => {\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 ...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 (isValidEmail(replyTo)) {\n rest.replyTo = replyTo;\n } else {\n payload.replyToId = replyTo;\n }\n payload.message = message;\n payload.subject = subject;\n payload.customFields = rest;\n payload.sendFrom = sendFrom;\n }\n\n return payload;\n};\n\nexport const renderText = (text, fallbackTranslation) =>\n isEmpty(text) ? fallbackTranslation : text;\n","import React from \"react\";\n\nimport classNames from \"classnames\";\nimport { noop } from \"neetocist\";\nimport {\n EmailFormProvider,\n EmailForm,\n EmailPreview,\n} from \"neetomolecules/EmailForm\";\nimport PageLoader from \"neetomolecules/PageLoader\";\nimport { Tooltip, Typography } from \"neetoui\";\nimport { Switch } from \"neetoui/formik\";\nimport { pluck } from \"ramda\";\nimport { useTranslation } from \"react-i18next\";\n\nimport {\n useFetchEmailNotifications,\n useUpdateEmailNotification,\n} from \"src/hooks/reactQuery/emailNotificationApi\";\n\nimport { FORM_VALIDATION_SCHEMA } from \"./constants\";\nimport {\n packEmailPayload,\n parseEmailNotificationData,\n renderText,\n} from \"./utils\";\n\nconst NeetoEmailNotificationForm = ({\n emailNotificationParams = {},\n emailPreviewProps = {},\n emailFormProps = {},\n emailFormikProps = {},\n title = \"\",\n subTitle = \"\",\n disabled = false,\n tooltipProps = {},\n onSuccess = noop,\n children,\n}) => {\n const { t } = useTranslation();\n\n const { data, isLoading } = useFetchEmailNotifications(\n emailNotificationParams\n );\n\n const { mutate: updateEmailNotification, isLoading: isSubmitting } =\n useUpdateEmailNotification();\n\n const handleSubmit = values => {\n const emailNotification = packEmailPayload(values);\n updateEmailNotification(\n { emailNotification, ...emailNotificationParams },\n { onSuccess }\n );\n };\n\n if (isLoading) {\n return <PageLoader />;\n }\n\n return (\n <div className=\"flex w-full flex-col overflow-y-auto\">\n <EmailFormProvider\n showSendToField\n formikProps={{ validateOnBlur: true, validateOnChange: true }}\n initialValues={parseEmailNotificationData(data)}\n validationSchema={FORM_VALIDATION_SCHEMA}\n onSubmit={handleSubmit}\n {...emailFormikProps}\n >\n {({ values }) => (\n <div className=\"grid grid-cols-1 items-stretch gap-10 lg:grid-cols-2 lg:gap-6 xl:gap-8\">\n <div>\n <div className=\"flex items-center justify-between gap-6\">\n <div className=\"space-y-0.5\">\n <Tooltip\n disabled={!disabled}\n position=\"top\"\n {...tooltipProps}\n >\n <div className=\"flex items-center gap-2\">\n <Switch\n {...{ disabled }}\n data-cy=\"receive-email-notification-switch\"\n name=\"isEnabled\"\n />\n <Typography\n component=\"span\"\n data-cy=\"receive-email-notification-label\"\n lineHeight=\"normal\"\n style=\"h3\"\n weight=\"semibold\"\n >\n {renderText(\n title,\n t(\"neetoEmailNotifications.emailNotification.title\")\n )}\n </Typography>\n </div>\n </Tooltip>\n <Typography lineHeight=\"normal\" style=\"body2\">\n {renderText(\n subTitle,\n t(\"neetoEmailNotifications.emailNotification.subTitle\")\n )}\n </Typography>\n </div>\n </div>\n {values.isEnabled && children}\n <EmailForm\n showSendToField\n className={classNames({ \"pt-3 \": values.isEnabled })}\n isLoading={isSubmitting}\n showFields={values.isEnabled}\n {...emailFormProps}\n />\n </div>\n <div className=\"flex flex-col\">\n <Typography\n className=\"mb-3 block lg:hidden\"\n lineHeight=\"normal\"\n style=\"h3\"\n weight=\"semibold\"\n >\n {t(\"neetoEmailNotifications.preview\")}\n </Typography>\n {values.isEnabled && (\n <EmailPreview\n body={values.message}\n from={values.sendFrom}\n subject={values.subject}\n to={pluck(\"value\", values.sendTo)}\n {...emailPreviewProps}\n />\n )}\n </div>\n </div>\n )}\n </EmailFormProvider>\n </div>\n );\n};\nexport default NeetoEmailNotificationForm;\n"],"names":["toPrimitive","toPropertyKey","EMAIL_NOTIFICATIONS_URL","fetch","params","axios","get","update","payload","put","emailNotificationsApi","QUERY_KEYS","NEETO_EMAIL_NOTIFICATIONS","useFetchEmailNotifications","useQuery","staleTime","DEFAULT_STALE_TIME","select","prop","enabled","isNotEmpty","useUpdateEmailNotification","useMutationWithInvalidation","keysToInvalidate","_","_ref","notificationHolderId","FORM_VALIDATION_SCHEMA","isEnabled","yup","objectWithoutPropertiesLoose","isValidEmail","email","string","isValidSync","createEmailOptions","emails","arguments","length","undefined","map","label","value","valid","parseEmailsOptions","emailOptions","parseEmailNotificationData","data","notifyEmails","notifyCcEmails","notifyBccEmails","replyToId","customFields","rest","_objectWithoutProperties","_excluded","parsed","_objectSpread","sendTo","sendToCc","sendToBcc","replyTo","showCopyEmails","packEmailPayload","values","id","message","subject","sendFrom","_excluded2","renderText","text","fallbackTranslation","isEmpty","NeetoEmailNotificationForm","_ref$emailNotificatio","emailNotificationParams","_ref$emailPreviewProp","emailPreviewProps","_ref$emailFormProps","emailFormProps","_ref$emailFormikProps","emailFormikProps","_ref$title","title","_ref$subTitle","subTitle","_ref$disabled","disabled","_ref$tooltipProps","tooltipProps","_ref$onSuccess","onSuccess","noop","children","_useTranslation","useTranslation","t","_useFetchEmailNotific","isLoading","_useUpdateEmailNotifi","updateEmailNotification","mutate","isSubmitting","handleSubmit","emailNotification","React","createElement","PageLoader","className","EmailFormProvider","_extends","showSendToField","formikProps","validateOnBlur","validateOnChange","initialValues","validationSchema","onSubmit","_ref2","Tooltip","position","Switch","name","Typography","component","lineHeight","style","weight","EmailForm","classNames","showFields","EmailPreview","body","from","to","pluck"],"mappings":";;;;;;;;;;;;;;;;AAAe,SAAS,QAAQ,GAAG;AACnC,EAAE,QAAQ,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,UAAU,MAAM,EAAE;AACtE,IAAI,KAAK,IAAI,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ACE,OAAQ;MACrBoE,IAAI,EAAEtE,MAAM,CAACI,QAAS;MACtBD,OAAO,EAAEH,MAAM,CAACG,OAAQ;AACxBoE,MAAAA,EAAE,EAAEC,KAAK,CAAC,OAAO,EAAExE,MAAM,CAACN,MAAM,CAAA;AAAE,KAAA,EAC9BoB,iBAAiB,CACtB,CAEA,CACF,CAAC,CAAA;AAAA,GAES,CAChB,CAAC,CAAA;AAEV;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-email-notifications-frontend",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.3",
|
|
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",
|
|
@@ -19,11 +19,14 @@
|
|
|
19
19
|
"types": "types.d.ts",
|
|
20
20
|
"scripts": {
|
|
21
21
|
"build": "NODE_ENV=production rollup -c --environment production",
|
|
22
|
+
"build-preview": "NODE_ENV=production webpack",
|
|
22
23
|
"prepare": "husky install",
|
|
23
|
-
"release": "yarn build && yalc push --sig"
|
|
24
|
-
"build-preview": "NODE_ENV=production webpack"
|
|
24
|
+
"release": "yarn build && yalc push --sig"
|
|
25
25
|
},
|
|
26
26
|
"lint-staged": {
|
|
27
|
+
"./**/*.rb": [
|
|
28
|
+
"bundle exec rubocop -a --force-exclusion"
|
|
29
|
+
],
|
|
27
30
|
"./**/app/javascript/**/*.{js,jsx,json}": [
|
|
28
31
|
"prettier --write",
|
|
29
32
|
"eslint --fix"
|
|
@@ -32,45 +35,45 @@
|
|
|
32
35
|
"prettier --write",
|
|
33
36
|
"eslint --fix"
|
|
34
37
|
],
|
|
35
|
-
"./**/*.rb": [
|
|
36
|
-
"bundle exec rubocop -a --force-exclusion"
|
|
37
|
-
],
|
|
38
38
|
"{Gemfile,Rakefile,config.ru}": [
|
|
39
39
|
"bundle exec rubocop -a --force-exclusion"
|
|
40
40
|
]
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@babel/core": "7.
|
|
44
|
-
"@babel/eslint-parser": "7.22.
|
|
45
|
-
"@babel/plugin-transform-runtime": "7.
|
|
46
|
-
"@babel/preset-env": "7.
|
|
47
|
-
"@babel/preset-react": "7.22.
|
|
48
|
-
"@babel/preset-typescript": "7.
|
|
49
|
-
"@babel/runtime": "7.
|
|
50
|
-
"@bigbinary/babel-preset-neeto": "1.0.
|
|
51
|
-
"@bigbinary/eslint-plugin-neeto": "1.1.
|
|
52
|
-
"@bigbinary/neeto-audit-frontend": "
|
|
53
|
-
"@bigbinary/neeto-cist": "
|
|
54
|
-
"@bigbinary/neeto-commons-frontend": "3.
|
|
55
|
-
"@bigbinary/neeto-editor": "
|
|
56
|
-
"@bigbinary/neeto-
|
|
57
|
-
"@bigbinary/neeto-
|
|
58
|
-
"@bigbinary/
|
|
43
|
+
"@babel/core": "7.23.2",
|
|
44
|
+
"@babel/eslint-parser": "7.22.15",
|
|
45
|
+
"@babel/plugin-transform-runtime": "7.23.2",
|
|
46
|
+
"@babel/preset-env": "7.23.2",
|
|
47
|
+
"@babel/preset-react": "7.22.15",
|
|
48
|
+
"@babel/preset-typescript": "7.23.2",
|
|
49
|
+
"@babel/runtime": "7.23.2",
|
|
50
|
+
"@bigbinary/babel-preset-neeto": "1.0.6",
|
|
51
|
+
"@bigbinary/eslint-plugin-neeto": "1.1.42",
|
|
52
|
+
"@bigbinary/neeto-audit-frontend": "2.0.9",
|
|
53
|
+
"@bigbinary/neeto-cist": "1.0.8",
|
|
54
|
+
"@bigbinary/neeto-commons-frontend": "3.1.12",
|
|
55
|
+
"@bigbinary/neeto-editor": "1.28.54",
|
|
56
|
+
"@bigbinary/neeto-filters-frontend": "3.1.0",
|
|
57
|
+
"@bigbinary/neeto-icons": "1.17.11",
|
|
58
|
+
"@bigbinary/neeto-molecules": "1.6.3",
|
|
59
|
+
"@bigbinary/neetoui": "6.1.3",
|
|
59
60
|
"@emotion/is-prop-valid": "1.2.0",
|
|
60
|
-
"@faker-js/faker": "8.0
|
|
61
|
-
"@honeybadger-io/
|
|
61
|
+
"@faker-js/faker": "8.2.0",
|
|
62
|
+
"@honeybadger-io/js": "6.5.3",
|
|
63
|
+
"@honeybadger-io/react": "6.1.9",
|
|
62
64
|
"@rails/actiontext": "^7.0.8",
|
|
63
|
-
"@rollup/plugin-alias": "5.0.
|
|
64
|
-
"@rollup/plugin-babel": "6.0.
|
|
65
|
-
"@rollup/plugin-commonjs": "25.0.
|
|
66
|
-
"@rollup/plugin-json": "6.0.
|
|
67
|
-
"@rollup/plugin-node-resolve": "15.
|
|
68
|
-
"@rollup/plugin-replace": "5.0.
|
|
69
|
-
"@svgr/rollup": "8.0
|
|
70
|
-
"antd": "
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
65
|
+
"@rollup/plugin-alias": "5.0.1",
|
|
66
|
+
"@rollup/plugin-babel": "6.0.4",
|
|
67
|
+
"@rollup/plugin-commonjs": "25.0.7",
|
|
68
|
+
"@rollup/plugin-json": "6.0.1",
|
|
69
|
+
"@rollup/plugin-node-resolve": "15.2.3",
|
|
70
|
+
"@rollup/plugin-replace": "5.0.4",
|
|
71
|
+
"@svgr/rollup": "8.1.0",
|
|
72
|
+
"antd": "5.10.2",
|
|
73
|
+
"assert": "^2.1.0",
|
|
74
|
+
"autoprefixer": "10.4.16",
|
|
75
|
+
"axios": "1.6.0",
|
|
76
|
+
"babel-loader": "9.1.3",
|
|
74
77
|
"babel-plugin-istanbul": "6.1.1",
|
|
75
78
|
"babel-plugin-js-logger": "1.0.17",
|
|
76
79
|
"babel-plugin-macros": "3.1.0",
|
|
@@ -85,25 +88,25 @@
|
|
|
85
88
|
"css-loader": "6.8.1",
|
|
86
89
|
"dompurify": "3.0.2",
|
|
87
90
|
"dotenv-webpack": "^8.0.1",
|
|
88
|
-
"eslint": "8.
|
|
89
|
-
"eslint-config-prettier": "8.
|
|
90
|
-
"eslint-plugin-cypress": "2.
|
|
91
|
-
"eslint-plugin-import": "2.
|
|
91
|
+
"eslint": "8.52.0",
|
|
92
|
+
"eslint-config-prettier": "8.5.0",
|
|
93
|
+
"eslint-plugin-cypress": "2.15.1",
|
|
94
|
+
"eslint-plugin-import": "2.29.0",
|
|
92
95
|
"eslint-plugin-jam3": "0.2.3",
|
|
93
96
|
"eslint-plugin-json": "3.1.0",
|
|
94
|
-
"eslint-plugin-prettier": "4.
|
|
97
|
+
"eslint-plugin-prettier": "4.0.0",
|
|
95
98
|
"eslint-plugin-promise": "6.1.1",
|
|
96
|
-
"eslint-plugin-react": "7.
|
|
99
|
+
"eslint-plugin-react": "7.33.2",
|
|
97
100
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
98
|
-
"eslint-plugin-unused-imports": "
|
|
99
|
-
"formik": "2.4.
|
|
101
|
+
"eslint-plugin-unused-imports": "3.0.0",
|
|
102
|
+
"formik": "2.4.5",
|
|
100
103
|
"html-webpack-plugin": "5.5.3",
|
|
101
104
|
"https-browserify": "1.0.0",
|
|
102
105
|
"husky": "8.0.3",
|
|
103
|
-
"i18next": "23.
|
|
106
|
+
"i18next": "23.6.0",
|
|
104
107
|
"i18next-browser-languagedetector": "7.0.1",
|
|
105
108
|
"js-logger": "1.6.1",
|
|
106
|
-
"lint-staged": "
|
|
109
|
+
"lint-staged": "15.0.2",
|
|
107
110
|
"mini-css-extract-plugin": "2.7.6",
|
|
108
111
|
"mixpanel-browser": "2.47.0",
|
|
109
112
|
"os-browserify": "0.3.0",
|
|
@@ -111,33 +114,35 @@
|
|
|
111
114
|
"postcss": "8.4.31",
|
|
112
115
|
"postcss-import": "15.1.0",
|
|
113
116
|
"postcss-loader": "7.3.3",
|
|
114
|
-
"postcss-preset-env": "9.
|
|
115
|
-
"prettier": "2.
|
|
116
|
-
"prettier-plugin-tailwindcss": "0.
|
|
117
|
+
"postcss-preset-env": "9.2.0",
|
|
118
|
+
"prettier": "2.6.2",
|
|
119
|
+
"prettier-plugin-tailwindcss": "0.1.10",
|
|
117
120
|
"process": "0.11.10",
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"react
|
|
121
|
+
"qs": "6.11.2",
|
|
122
|
+
"ramda": "0.29.1",
|
|
123
|
+
"react": "18.2.0",
|
|
124
|
+
"react-dom": "18.2.0",
|
|
121
125
|
"react-helmet": "6.1.0",
|
|
122
|
-
"react-i18next": "13.
|
|
126
|
+
"react-i18next": "13.3.1",
|
|
123
127
|
"react-query": "3.39.3",
|
|
124
|
-
"react-router-dom": "5.3.
|
|
128
|
+
"react-router-dom": "5.3.4",
|
|
125
129
|
"react-router-nav-prompt": "0.4.1",
|
|
126
|
-
"react-toastify": "8.0
|
|
130
|
+
"react-toastify": "8.2.0",
|
|
127
131
|
"react_ujs": "^3.1.1",
|
|
128
132
|
"rollup": "2.79.1",
|
|
129
133
|
"rollup-plugin-analyzer": "4.0.0",
|
|
130
134
|
"rollup-plugin-cleaner": "1.0.0",
|
|
135
|
+
"rollup-plugin-copy": "^3.5.0",
|
|
131
136
|
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
132
137
|
"rollup-plugin-styles": "4.0.0",
|
|
133
|
-
"sass": "1.
|
|
138
|
+
"sass": "1.69.5",
|
|
134
139
|
"sass-loader": "13.3.2",
|
|
135
140
|
"shakapacker": "6.6.0",
|
|
136
141
|
"source-map-loader": "^4.0.1",
|
|
137
142
|
"stream-browserify": "3.0.0",
|
|
138
143
|
"stream-http": "3.2.0",
|
|
139
144
|
"style-loader": "3.3.3",
|
|
140
|
-
"tailwindcss": "
|
|
145
|
+
"tailwindcss": "3.4.1",
|
|
141
146
|
"tty-browserify": "0.0.1",
|
|
142
147
|
"url": "0.11.1",
|
|
143
148
|
"util": "0.12.5",
|
|
@@ -146,31 +151,33 @@
|
|
|
146
151
|
"webpack-assets-manifest": "5.1.0",
|
|
147
152
|
"webpack-cli": "5.1.4",
|
|
148
153
|
"webpack-dev-server": "4.15.1",
|
|
149
|
-
"yup": "
|
|
154
|
+
"yup": "1.3.2",
|
|
150
155
|
"zustand": "4.3.2"
|
|
151
156
|
},
|
|
152
157
|
"peerDependencies": {
|
|
153
158
|
"@bigbinary/neeto-cist": "latest",
|
|
154
|
-
"@bigbinary/neeto-commons-frontend": "
|
|
159
|
+
"@bigbinary/neeto-commons-frontend": "3.1.12",
|
|
155
160
|
"@bigbinary/neeto-editor": "latest",
|
|
156
|
-
"@bigbinary/neeto-
|
|
157
|
-
"@bigbinary/neeto-
|
|
158
|
-
"@bigbinary/
|
|
159
|
-
"@
|
|
160
|
-
"
|
|
161
|
+
"@bigbinary/neeto-filters-frontend": "3.1.0",
|
|
162
|
+
"@bigbinary/neeto-icons": "1.17.11",
|
|
163
|
+
"@bigbinary/neeto-molecules": "1.6.3",
|
|
164
|
+
"@bigbinary/neetoui": "6.1.3",
|
|
165
|
+
"@honeybadger-io/js": "^6.5.3",
|
|
166
|
+
"@honeybadger-io/react": "^6.1.9",
|
|
167
|
+
"axios": "^1.6.0",
|
|
161
168
|
"classnames": "^2.3.2",
|
|
162
|
-
"formik": "^2.
|
|
163
|
-
"i18next": "23.
|
|
169
|
+
"formik": "^2.4.5",
|
|
170
|
+
"i18next": "^23.6.0",
|
|
164
171
|
"js-logger": "^1.6.1",
|
|
165
172
|
"mixpanel-browser": "^2.45.0",
|
|
166
|
-
"ramda": "^0.29.
|
|
167
|
-
"react": "18.2.0",
|
|
168
|
-
"react-dom": "18.2.0",
|
|
173
|
+
"ramda": "^0.29.1",
|
|
174
|
+
"react": "^18.2.0",
|
|
175
|
+
"react-dom": "^18.2.0",
|
|
169
176
|
"react-helmet": "^6.1.0",
|
|
170
|
-
"react-i18next": "13.
|
|
171
|
-
"react-query": "3.39.
|
|
172
|
-
"react-router-dom": "5.3.
|
|
173
|
-
"react-toastify": "8.2.0",
|
|
177
|
+
"react-i18next": "^13.3.1",
|
|
178
|
+
"react-query": "^3.39.3",
|
|
179
|
+
"react-router-dom": "^5.3.4",
|
|
180
|
+
"react-toastify": "^8.2.0",
|
|
174
181
|
"yup": "^0.32.11",
|
|
175
182
|
"zustand": "4.3.2"
|
|
176
183
|
},
|