@bigbinary/neeto-molecules 1.0.74 → 1.0.76-beta
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/dist/Container.cjs.js +1 -1
- package/dist/Container.js +1 -1
- package/dist/CustomDomainDashboard.cjs.js +12 -26
- package/dist/CustomDomainDashboard.cjs.js.map +1 -1
- package/dist/CustomDomainDashboard.js +14 -28
- package/dist/CustomDomainDashboard.js.map +1 -1
- package/dist/EmailForm.cjs.js +2941 -0
- package/dist/EmailForm.cjs.js.map +1 -0
- package/dist/EmailForm.js +2911 -0
- package/dist/EmailForm.js.map +1 -0
- package/dist/EmailPreview.cjs.js +5 -3
- package/dist/EmailPreview.cjs.js.map +1 -1
- package/dist/EmailPreview.js +6 -4
- package/dist/EmailPreview.js.map +1 -1
- package/dist/Header.cjs.js +11 -25
- package/dist/Header.cjs.js.map +1 -1
- package/dist/Header.js +14 -28
- package/dist/Header.js.map +1 -1
- package/dist/MenuBar.cjs.js +1 -1
- package/dist/MenuBar.js +1 -1
- package/dist/Rename.cjs.js +9 -9
- package/dist/Rename.cjs.js.map +1 -1
- package/dist/Rename.js +9 -9
- package/dist/Rename.js.map +1 -1
- package/dist/ShareViaEmail.cjs.js +5 -3
- package/dist/ShareViaEmail.cjs.js.map +1 -1
- package/dist/ShareViaEmail.js +6 -4
- package/dist/ShareViaEmail.js.map +1 -1
- package/dist/Sidebar.cjs.js +181 -95
- package/dist/Sidebar.cjs.js.map +1 -1
- package/dist/Sidebar.js +183 -97
- package/dist/Sidebar.js.map +1 -1
- package/package.json +2 -2
- package/src/translations/en.json +33 -2
- package/types/EmailForm.d.ts +55 -0
- package/types/EmailFormProvider.d.ts +35 -0
- package/types/Sidebar.d.ts +1 -1
package/dist/ShareViaEmail.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Upload, LeftArrow } from '@bigbinary/neeto-icons';
|
|
|
3
3
|
import { Typography, Button, DatePicker, Label } from '@bigbinary/neetoui';
|
|
4
4
|
import { MultiEmailInput, Input, Switch, ActionBlock, Form as Form$1 } from '@bigbinary/neetoui/formik';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
|
-
import { isNotEmpty, isNot } from '@bigbinary/neeto-commons-frontend/pure';
|
|
6
|
+
import { isPresent, isNotEmpty, isNot } from '@bigbinary/neeto-commons-frontend/pure';
|
|
7
7
|
import { EditorContent, FormikEditor, isEditorEmpty } from '@bigbinary/neeto-editor';
|
|
8
8
|
import { useField, useFormikContext } from 'formik';
|
|
9
9
|
import dayjs from 'dayjs';
|
|
@@ -15,7 +15,8 @@ import { string } from 'yup';
|
|
|
15
15
|
|
|
16
16
|
var MemoizedEditorContent = /*#__PURE__*/React.memo(EditorContent);
|
|
17
17
|
var EmailPreview = function EmailPreview(_ref) {
|
|
18
|
-
var to = _ref.to,
|
|
18
|
+
var _ref$to = _ref.to,
|
|
19
|
+
to = _ref$to === void 0 ? [] : _ref$to,
|
|
19
20
|
from = _ref.from,
|
|
20
21
|
subject = _ref.subject,
|
|
21
22
|
body = _ref.body,
|
|
@@ -26,7 +27,8 @@ var EmailPreview = function EmailPreview(_ref) {
|
|
|
26
27
|
t = _useTranslation.t;
|
|
27
28
|
return /*#__PURE__*/React.createElement("div", {
|
|
28
29
|
className: "neeto-ui-border-gray-300 neeto-ui-shadow-m neeto-ui-bg-white flex flex-1 flex-col border",
|
|
29
|
-
"data-cy": "email-preview-card"
|
|
30
|
+
"data-cy": "email-preview-card",
|
|
31
|
+
"data-testid": "email-preview"
|
|
30
32
|
}, /*#__PURE__*/React.createElement("div", {
|
|
31
33
|
className: "neeto-ui-border-gray-300 space-y-3 divide-y divide-gray-200 border-b p-6"
|
|
32
34
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -37,7 +39,7 @@ var EmailPreview = function EmailPreview(_ref) {
|
|
|
37
39
|
className: "neeto-ui-text-gray-500",
|
|
38
40
|
lineHeight: "normal",
|
|
39
41
|
style: "body2"
|
|
40
|
-
}, t("neetoMolecules.emailPreview.to"), ":"), isNotEmpty(to) ? /*#__PURE__*/React.createElement(Typography, {
|
|
42
|
+
}, t("neetoMolecules.emailPreview.to"), ":"), isPresent(to) && isNotEmpty(to) ? /*#__PURE__*/React.createElement(Typography, {
|
|
41
43
|
className: "neeto-ui-text-gray-800 min-w-0 flex-grow break-words",
|
|
42
44
|
lineHeight: "normal",
|
|
43
45
|
style: "body2"
|