@bigbinary/neeto-molecules 1.0.16 → 1.0.17

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.
@@ -3,6 +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 } from '@bigbinary/neeto-commons-frontend/pure';
6
7
  import { EditorContent, FormikEditor, isEditorEmpty } from '@bigbinary/neeto-editor';
7
8
  import { useField, useFormikContext } from 'formik';
8
9
  import dayjs from 'dayjs';
@@ -14,7 +15,7 @@ import { string } from 'yup';
14
15
 
15
16
  function cov_1dl40tmc3s() {
16
17
  var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/EmailPreview.jsx";
17
- var hash = "6d8c4987f4972dc0b6e4e31697101950d270429d";
18
+ var hash = "32018ff24a7fe6cc7b352904df5a6d8513f9fb55";
18
19
  var global = new Function("return this")();
19
20
  var gcv = "__coverage__";
20
21
  var coverageData = {
@@ -22,31 +23,31 @@ function cov_1dl40tmc3s() {
22
23
  statementMap: {
23
24
  "0": {
24
25
  start: {
25
- line: 7,
26
+ line: 8,
26
27
  column: 21
27
28
  },
28
29
  end: {
29
- line: 111,
30
+ line: 133,
30
31
  column: 1
31
32
  }
32
33
  },
33
34
  "1": {
34
35
  start: {
35
- line: 16,
36
+ line: 17,
36
37
  column: 16
37
38
  },
38
39
  end: {
39
- line: 16,
40
+ line: 17,
40
41
  column: 32
41
42
  }
42
43
  },
43
44
  "2": {
44
45
  start: {
45
- line: 18,
46
+ line: 19,
46
47
  column: 2
47
48
  },
48
49
  end: {
49
- line: 110,
50
+ line: 132,
50
51
  column: 4
51
52
  }
52
53
  }
@@ -56,258 +57,258 @@ function cov_1dl40tmc3s() {
56
57
  name: "(anonymous_0)",
57
58
  decl: {
58
59
  start: {
59
- line: 7,
60
+ line: 8,
60
61
  column: 21
61
62
  },
62
63
  end: {
63
- line: 7,
64
+ line: 8,
64
65
  column: 22
65
66
  }
66
67
  },
67
68
  loc: {
68
69
  start: {
69
- line: 15,
70
+ line: 16,
70
71
  column: 6
71
72
  },
72
73
  end: {
73
- line: 111,
74
+ line: 133,
74
75
  column: 1
75
76
  }
76
77
  },
77
- line: 15
78
+ line: 16
78
79
  }
79
80
  },
80
81
  branchMap: {
81
82
  "0": {
82
83
  loc: {
83
84
  start: {
84
- line: 29,
85
+ line: 37,
85
86
  column: 11
86
87
  },
87
88
  end: {
88
- line: 31,
89
+ line: 47,
89
90
  column: 11
90
91
  }
91
92
  },
92
- type: "binary-expr",
93
+ type: "cond-expr",
93
94
  locations: [{
94
95
  start: {
95
- line: 29,
96
- column: 11
96
+ line: 38,
97
+ column: 12
97
98
  },
98
99
  end: {
99
- line: 29,
100
+ line: 44,
100
101
  column: 25
101
102
  }
102
103
  }, {
103
104
  start: {
104
- line: 30,
105
+ line: 46,
105
106
  column: 12
106
107
  },
107
108
  end: {
108
- line: 30,
109
- column: 74
109
+ line: 46,
110
+ column: 88
110
111
  }
111
112
  }],
112
- line: 29
113
+ line: 37
113
114
  },
114
115
  "1": {
115
116
  loc: {
116
117
  start: {
117
- line: 33,
118
+ line: 49,
118
119
  column: 9
119
120
  },
120
121
  end: {
121
- line: 50,
122
+ line: 67,
122
123
  column: 9
123
124
  }
124
125
  },
125
126
  type: "binary-expr",
126
127
  locations: [{
127
128
  start: {
128
- line: 33,
129
+ line: 49,
129
130
  column: 9
130
131
  },
131
132
  end: {
132
- line: 33,
133
+ line: 49,
133
134
  column: 13
134
135
  }
135
136
  }, {
136
137
  start: {
137
- line: 34,
138
+ line: 50,
138
139
  column: 10
139
140
  },
140
141
  end: {
141
- line: 49,
142
+ line: 66,
142
143
  column: 16
143
144
  }
144
145
  }],
145
- line: 33
146
+ line: 49
146
147
  },
147
148
  "2": {
148
149
  loc: {
149
150
  start: {
150
- line: 64,
151
+ line: 82,
151
152
  column: 13
152
153
  },
153
154
  end: {
154
- line: 66,
155
+ line: 84,
155
156
  column: 13
156
157
  }
157
158
  },
158
159
  type: "binary-expr",
159
160
  locations: [{
160
161
  start: {
161
- line: 64,
162
+ line: 82,
162
163
  column: 13
163
164
  },
164
165
  end: {
165
- line: 64,
166
+ line: 82,
166
167
  column: 20
167
168
  }
168
169
  }, {
169
170
  start: {
170
- line: 65,
171
+ line: 83,
171
172
  column: 14
172
173
  },
173
174
  end: {
174
- line: 65,
175
- column: 77
175
+ line: 83,
176
+ column: 86
176
177
  }
177
178
  }],
178
- line: 64
179
+ line: 82
179
180
  },
180
181
  "3": {
181
182
  loc: {
182
183
  start: {
183
- line: 71,
184
+ line: 92,
184
185
  column: 9
185
186
  },
186
187
  end: {
187
- line: 79,
188
+ line: 100,
188
189
  column: 9
189
190
  }
190
191
  },
191
192
  type: "cond-expr",
192
193
  locations: [{
193
194
  start: {
194
- line: 72,
195
+ line: 93,
195
196
  column: 10
196
197
  },
197
198
  end: {
198
- line: 72,
199
+ line: 93,
199
200
  column: 42
200
201
  }
201
202
  }, {
202
203
  start: {
203
- line: 74,
204
+ line: 95,
204
205
  column: 10
205
206
  },
206
207
  end: {
207
- line: 78,
208
+ line: 99,
208
209
  column: 16
209
210
  }
210
211
  }],
211
- line: 71
212
+ line: 92
212
213
  },
213
214
  "4": {
214
215
  loc: {
215
216
  start: {
216
- line: 80,
217
+ line: 101,
217
218
  column: 9
218
219
  },
219
220
  end: {
220
- line: 84,
221
+ line: 105,
221
222
  column: 9
222
223
  }
223
224
  },
224
225
  type: "binary-expr",
225
226
  locations: [{
226
227
  start: {
227
- line: 80,
228
+ line: 101,
228
229
  column: 9
229
230
  },
230
231
  end: {
231
- line: 80,
232
+ line: 101,
232
233
  column: 25
233
234
  }
234
235
  }, {
235
236
  start: {
236
- line: 81,
237
+ line: 102,
237
238
  column: 10
238
239
  },
239
240
  end: {
240
- line: 83,
241
+ line: 104,
241
242
  column: 16
242
243
  }
243
244
  }],
244
- line: 80
245
+ line: 101
245
246
  },
246
247
  "5": {
247
248
  loc: {
248
249
  start: {
249
- line: 85,
250
+ line: 106,
250
251
  column: 9
251
252
  },
252
253
  end: {
253
- line: 91,
254
+ line: 113,
254
255
  column: 9
255
256
  }
256
257
  },
257
258
  type: "binary-expr",
258
259
  locations: [{
259
260
  start: {
260
- line: 85,
261
+ line: 106,
261
262
  column: 9
262
263
  },
263
264
  end: {
264
- line: 85,
265
+ line: 106,
265
266
  column: 13
266
267
  }
267
268
  }, {
268
269
  start: {
269
- line: 86,
270
+ line: 107,
270
271
  column: 10
271
272
  },
272
273
  end: {
273
- line: 90,
274
+ line: 112,
274
275
  column: 12
275
276
  }
276
277
  }],
277
- line: 85
278
+ line: 106
278
279
  },
279
280
  "6": {
280
281
  loc: {
281
282
  start: {
282
- line: 93,
283
+ line: 115,
283
284
  column: 7
284
285
  },
285
286
  end: {
286
- line: 108,
287
+ line: 130,
287
288
  column: 7
288
289
  }
289
290
  },
290
291
  type: "binary-expr",
291
292
  locations: [{
292
293
  start: {
293
- line: 93,
294
+ line: 115,
294
295
  column: 7
295
296
  },
296
297
  end: {
297
- line: 93,
298
+ line: 115,
298
299
  column: 18
299
300
  }
300
301
  }, {
301
302
  start: {
302
- line: 94,
303
+ line: 116,
303
304
  column: 8
304
305
  },
305
306
  end: {
306
- line: 107,
307
+ line: 129,
307
308
  column: 14
308
309
  }
309
310
  }],
310
- line: 93
311
+ line: 115
311
312
  }
312
313
  },
313
314
  s: {
@@ -328,7 +329,7 @@ function cov_1dl40tmc3s() {
328
329
  "6": [0, 0]
329
330
  },
330
331
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
331
- hash: "6d8c4987f4972dc0b6e4e31697101950d270429d"
332
+ hash: "32018ff24a7fe6cc7b352904df5a6d8513f9fb55"
332
333
  };
333
334
  var coverage = global[gcv] || (global[gcv] = {});
334
335
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -358,18 +359,24 @@ var EmailPreview = function EmailPreview(_ref) {
358
359
  t = _ref2.t;
359
360
  cov_1dl40tmc3s().s[2]++;
360
361
  return /*#__PURE__*/React.createElement("div", {
361
- className: "neeto-ui-border-gray-300 neeto-ui-shadow-m neeto-ui-bg-white flex flex-1 flex-col border"
362
+ className: "neeto-ui-border-gray-300 neeto-ui-shadow-m neeto-ui-bg-white flex flex-1 flex-col border",
363
+ "data-cy": "email-preview-card"
362
364
  }, /*#__PURE__*/React.createElement("div", {
363
365
  className: "neeto-ui-border-gray-300 space-y-3 divide-y divide-gray-200 border-b p-6"
364
366
  }, /*#__PURE__*/React.createElement("div", {
365
- className: "flex items-center gap-2",
367
+ className: "flex gap-2",
368
+ "data-cy": "email-send-to-preview",
366
369
  "data-testid": "email-to-block"
367
370
  }, /*#__PURE__*/React.createElement(Typography, {
368
371
  className: "neeto-ui-text-gray-500",
369
372
  lineHeight: "normal",
370
373
  style: "body2"
371
- }, t("neetoMolecules.emailPreview.to"), ":"), (cov_1dl40tmc3s().b[0][0]++, to === null || to === void 0 ? void 0 : to.join(", ")) || (cov_1dl40tmc3s().b[0][1]++, /*#__PURE__*/React.createElement("div", {
372
- className: "neeto-ui-bg-gray-300 h-2 w-40 rounded-full"
374
+ }, t("neetoMolecules.emailPreview.to"), ":"), isNotEmpty(to) ? (cov_1dl40tmc3s().b[0][0]++, /*#__PURE__*/React.createElement(Typography, {
375
+ className: "neeto-ui-text-gray-800 min-w-0 flex-grow break-words",
376
+ lineHeight: "normal",
377
+ style: "body2"
378
+ }, to.join(", "))) : (cov_1dl40tmc3s().b[0][1]++, /*#__PURE__*/React.createElement("div", {
379
+ className: "neeto-ui-bg-gray-300 neeto-ui-rounded-full mt-2 h-2 w-40"
373
380
  }))), (cov_1dl40tmc3s().b[1][0]++, from) && (cov_1dl40tmc3s().b[1][1]++, /*#__PURE__*/React.createElement("div", {
374
381
  className: "flex items-center gap-2 pt-3"
375
382
  }, /*#__PURE__*/React.createElement(Typography, {
@@ -377,7 +384,8 @@ var EmailPreview = function EmailPreview(_ref) {
377
384
  lineHeight: "normal",
378
385
  style: "body2"
379
386
  }, t("neetoMolecules.emailPreview.from"), ":"), /*#__PURE__*/React.createElement(Typography, {
380
- className: "neeto-ui-text-gray-800",
387
+ className: "neeto-ui-text-gray-800 min-w-0 flex-grow break-words",
388
+ "data-cy": "email-send-from-preview",
381
389
  lineHeight: "normal",
382
390
  style: "body2"
383
391
  }, from))), /*#__PURE__*/React.createElement("div", {
@@ -387,23 +395,25 @@ var EmailPreview = function EmailPreview(_ref) {
387
395
  lineHeight: "normal",
388
396
  style: "body2"
389
397
  }, t("neetoMolecules.emailPreview.subject"), ":"), /*#__PURE__*/React.createElement(Typography, {
390
- className: "neeto-ui-text-gray-800",
398
+ className: "neeto-ui-text-gray-800 min-w-0 flex-grow break-words",
399
+ "data-cy": "email-subject-preview",
391
400
  lineHeight: "normal",
392
401
  style: "body2"
393
402
  }, (cov_1dl40tmc3s().b[2][0]++, subject) || (cov_1dl40tmc3s().b[2][1]++, /*#__PURE__*/React.createElement("span", {
394
- className: "neeto-ui-bg-gray-300 h-2 w-40 rounded-full"
403
+ className: "neeto-ui-bg-gray-300 neeto-ui-rounded-full h-2 w-40"
395
404
  }))))), /*#__PURE__*/React.createElement("div", {
396
- className: "neeto-ui-text-gray-800 flex flex-1 flex-col justify-between space-y-6 p-6 pr-10 text-base leading-relaxed"
405
+ className: "neeto-ui-text-gray-800 flex flex-1 flex-col justify-between space-y-6 p-6 pr-10 text-base leading-relaxed",
406
+ "data-cy": "email-body-preview-container"
397
407
  }, body ? (cov_1dl40tmc3s().b[3][0]++, /*#__PURE__*/React.createElement(EditorContent, {
398
408
  content: body
399
409
  })) : (cov_1dl40tmc3s().b[3][1]++, /*#__PURE__*/React.createElement("div", {
400
410
  className: "space-y-4"
401
411
  }, /*#__PURE__*/React.createElement("div", {
402
- className: "neeto-ui-bg-gray-300 h-2 w-80 rounded-full"
412
+ className: "neeto-ui-bg-gray-300 neeto-ui-rounded-full h-2 w-80"
403
413
  }), /*#__PURE__*/React.createElement("div", {
404
- className: "neeto-ui-bg-gray-300 h-2 w-72 rounded-full"
414
+ className: "neeto-ui-bg-gray-300 neeto-ui-rounded-full h-2 w-72"
405
415
  }), /*#__PURE__*/React.createElement("div", {
406
- className: "neeto-ui-bg-gray-300 h-2 w-80 rounded-full"
416
+ className: "neeto-ui-bg-gray-300 neeto-ui-rounded-full h-2 w-80"
407
417
  }))), (cov_1dl40tmc3s().b[4][0]++, actionButtonText) && (cov_1dl40tmc3s().b[4][1]++, /*#__PURE__*/React.createElement("div", {
408
418
  className: "mt-6 flex w-full items-center justify-center"
409
419
  }, /*#__PURE__*/React.createElement(Button, {
@@ -412,6 +422,7 @@ var EmailPreview = function EmailPreview(_ref) {
412
422
  }))), (cov_1dl40tmc3s().b[5][0]++, logo) && (cov_1dl40tmc3s().b[5][1]++, /*#__PURE__*/React.createElement("img", {
413
423
  alt: t("neetoMolecules.emailPreview.logoAltText"),
414
424
  className: "h-20 w-36 object-cover",
425
+ "data-cy": "company-logo-preview",
415
426
  src: logo
416
427
  }))), (cov_1dl40tmc3s().b[6][0]++, productName) && (cov_1dl40tmc3s().b[6][1]++, /*#__PURE__*/React.createElement("div", {
417
428
  className: "neeto-ui-bg-gray-100 mt-auto p-2",
@@ -1608,7 +1619,7 @@ function _objectWithoutProperties(source, excluded) {
1608
1619
  var _excluded = ["name"];
1609
1620
  function cov_73oanf0pa() {
1610
1621
  var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/ShareViaEmail/FormikDatePicker.jsx";
1611
- var hash = "b9995de8aab99fa6112d28932eeb972bbff4f14f";
1622
+ var hash = "04ab048e24ae2a310ee0c03bb40c2b821a8c7f6a";
1612
1623
  var global = new Function("return this")();
1613
1624
  var gcv = "__coverage__";
1614
1625
  var coverageData = {
@@ -1643,6 +1654,16 @@ function cov_73oanf0pa() {
1643
1654
  line: 17,
1644
1655
  column: 4
1645
1656
  }
1657
+ },
1658
+ "3": {
1659
+ start: {
1660
+ line: 13,
1661
+ column: 24
1662
+ },
1663
+ end: {
1664
+ line: 13,
1665
+ column: 51
1666
+ }
1646
1667
  }
1647
1668
  },
1648
1669
  fnMap: {
@@ -1669,20 +1690,82 @@ function cov_73oanf0pa() {
1669
1690
  }
1670
1691
  },
1671
1692
  line: 6
1693
+ },
1694
+ "1": {
1695
+ name: "(anonymous_1)",
1696
+ decl: {
1697
+ start: {
1698
+ line: 13,
1699
+ column: 16
1700
+ },
1701
+ end: {
1702
+ line: 13,
1703
+ column: 17
1704
+ }
1705
+ },
1706
+ loc: {
1707
+ start: {
1708
+ line: 13,
1709
+ column: 24
1710
+ },
1711
+ end: {
1712
+ line: 13,
1713
+ column: 51
1714
+ }
1715
+ },
1716
+ line: 13
1717
+ }
1718
+ },
1719
+ branchMap: {
1720
+ "0": {
1721
+ loc: {
1722
+ start: {
1723
+ line: 13,
1724
+ column: 33
1725
+ },
1726
+ end: {
1727
+ line: 13,
1728
+ column: 50
1729
+ }
1730
+ },
1731
+ type: "binary-expr",
1732
+ locations: [{
1733
+ start: {
1734
+ line: 13,
1735
+ column: 33
1736
+ },
1737
+ end: {
1738
+ line: 13,
1739
+ column: 37
1740
+ }
1741
+ }, {
1742
+ start: {
1743
+ line: 13,
1744
+ column: 41
1745
+ },
1746
+ end: {
1747
+ line: 13,
1748
+ column: 50
1749
+ }
1750
+ }],
1751
+ line: 13
1672
1752
  }
1673
1753
  },
1674
- branchMap: {},
1675
1754
  s: {
1676
1755
  "0": 0,
1677
1756
  "1": 0,
1678
- "2": 0
1757
+ "2": 0,
1758
+ "3": 0
1679
1759
  },
1680
1760
  f: {
1681
- "0": 0
1761
+ "0": 0,
1762
+ "1": 0
1763
+ },
1764
+ b: {
1765
+ "0": [0, 0]
1682
1766
  },
1683
- b: {},
1684
1767
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
1685
- hash: "b9995de8aab99fa6112d28932eeb972bbff4f14f"
1768
+ hash: "04ab048e24ae2a310ee0c03bb40c2b821a8c7f6a"
1686
1769
  };
1687
1770
  var coverage = global[gcv] || (global[gcv] = {});
1688
1771
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -1710,7 +1793,11 @@ var FormikDatePicker = function FormikDatePicker(_ref) {
1710
1793
  setValue = _ref3[2].setValue;
1711
1794
  cov_73oanf0pa().s[2]++;
1712
1795
  return /*#__PURE__*/React.createElement(DatePicker, _extends({}, field, meta, {
1713
- onChange: setValue
1796
+ onChange: function onChange(date) {
1797
+ cov_73oanf0pa().f[1]++;
1798
+ cov_73oanf0pa().s[3]++;
1799
+ return setValue((cov_73oanf0pa().b[0][0]++, date) || (cov_73oanf0pa().b[0][1]++, undefined));
1800
+ }
1714
1801
  }, props, {
1715
1802
  "data-cy": "email-share-date-input"
1716
1803
  }));
@@ -4404,7 +4491,7 @@ var emailFormValidationSchema = function emailFormValidationSchema(disableReplyT
4404
4491
 
4405
4492
  function cov_2dkkhs5lzc() {
4406
4493
  var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/ShareViaEmail/Form.jsx";
4407
- var hash = "f0e6d385254b4decc14270b6dc576e0c9a49890a";
4494
+ var hash = "3c7da0a4a8f87f45ebea7e20c78fa1f656d8369b";
4408
4495
  var global = new Function("return this")();
4409
4496
  var gcv = "__coverage__";
4410
4497
  var coverageData = {
@@ -4416,7 +4503,7 @@ function cov_2dkkhs5lzc() {
4416
4503
  column: 13
4417
4504
  },
4418
4505
  end: {
4419
- line: 130,
4506
+ line: 140,
4420
4507
  column: 1
4421
4508
  }
4422
4509
  },
@@ -4506,7 +4593,7 @@ function cov_2dkkhs5lzc() {
4506
4593
  column: 2
4507
4594
  },
4508
4595
  end: {
4509
- line: 129,
4596
+ line: 139,
4510
4597
  column: 4
4511
4598
  }
4512
4599
  }
@@ -4530,7 +4617,7 @@ function cov_2dkkhs5lzc() {
4530
4617
  column: 47
4531
4618
  },
4532
4619
  end: {
4533
- line: 130,
4620
+ line: 140,
4534
4621
  column: 1
4535
4622
  }
4536
4623
  },
@@ -4589,101 +4676,101 @@ function cov_2dkkhs5lzc() {
4589
4676
  "0": {
4590
4677
  loc: {
4591
4678
  start: {
4592
- line: 70,
4679
+ line: 80,
4593
4680
  column: 9
4594
4681
  },
4595
4682
  end: {
4596
- line: 82,
4683
+ line: 92,
4597
4684
  column: 9
4598
4685
  }
4599
4686
  },
4600
4687
  type: "binary-expr",
4601
4688
  locations: [{
4602
4689
  start: {
4603
- line: 70,
4690
+ line: 80,
4604
4691
  column: 9
4605
4692
  },
4606
4693
  end: {
4607
- line: 70,
4694
+ line: 80,
4608
4695
  column: 34
4609
4696
  }
4610
4697
  }, {
4611
4698
  start: {
4612
- line: 71,
4699
+ line: 81,
4613
4700
  column: 10
4614
4701
  },
4615
4702
  end: {
4616
- line: 81,
4703
+ line: 91,
4617
4704
  column: 12
4618
4705
  }
4619
4706
  }],
4620
- line: 70
4707
+ line: 80
4621
4708
  },
4622
4709
  "1": {
4623
4710
  loc: {
4624
4711
  start: {
4625
- line: 97,
4712
+ line: 107,
4626
4713
  column: 11
4627
4714
  },
4628
4715
  end: {
4629
- line: 105,
4716
+ line: 115,
4630
4717
  column: 11
4631
4718
  }
4632
4719
  },
4633
4720
  type: "binary-expr",
4634
4721
  locations: [{
4635
4722
  start: {
4636
- line: 97,
4723
+ line: 107,
4637
4724
  column: 11
4638
4725
  },
4639
4726
  end: {
4640
- line: 97,
4727
+ line: 107,
4641
4728
  column: 26
4642
4729
  }
4643
4730
  }, {
4644
4731
  start: {
4645
- line: 98,
4732
+ line: 108,
4646
4733
  column: 12
4647
4734
  },
4648
4735
  end: {
4649
- line: 104,
4736
+ line: 114,
4650
4737
  column: 14
4651
4738
  }
4652
4739
  }],
4653
- line: 97
4740
+ line: 107
4654
4741
  },
4655
4742
  "2": {
4656
4743
  loc: {
4657
4744
  start: {
4658
- line: 108,
4745
+ line: 118,
4659
4746
  column: 7
4660
4747
  },
4661
4748
  end: {
4662
- line: 115,
4749
+ line: 125,
4663
4750
  column: 7
4664
4751
  }
4665
4752
  },
4666
4753
  type: "binary-expr",
4667
4754
  locations: [{
4668
4755
  start: {
4669
- line: 108,
4756
+ line: 118,
4670
4757
  column: 7
4671
4758
  },
4672
4759
  end: {
4673
- line: 108,
4760
+ line: 118,
4674
4761
  column: 15
4675
4762
  }
4676
4763
  }, {
4677
4764
  start: {
4678
- line: 109,
4765
+ line: 119,
4679
4766
  column: 8
4680
4767
  },
4681
4768
  end: {
4682
- line: 114,
4769
+ line: 124,
4683
4770
  column: 14
4684
4771
  }
4685
4772
  }],
4686
- line: 108
4773
+ line: 118
4687
4774
  }
4688
4775
  },
4689
4776
  s: {
@@ -4709,7 +4796,7 @@ function cov_2dkkhs5lzc() {
4709
4796
  "2": [0, 0]
4710
4797
  },
4711
4798
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
4712
- hash: "f0e6d385254b4decc14270b6dc576e0c9a49890a"
4799
+ hash: "3c7da0a4a8f87f45ebea7e20c78fa1f656d8369b"
4713
4800
  };
4714
4801
  var coverage = global[gcv] || (global[gcv] = {});
4715
4802
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -4777,6 +4864,7 @@ var Form = function Form(_ref) {
4777
4864
  }, /*#__PURE__*/React.createElement("div", {
4778
4865
  className: "flex items-center justify-between"
4779
4866
  }, /*#__PURE__*/React.createElement(Typography, {
4867
+ "data-cy": "send-to-input-label",
4780
4868
  lineHeight: "normal",
4781
4869
  style: "h4",
4782
4870
  weight: "semibold"
@@ -4801,10 +4889,12 @@ var Form = function Form(_ref) {
4801
4889
  }), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Label, {
4802
4890
  className: "flex items-center gap-2"
4803
4891
  }, /*#__PURE__*/React.createElement(Switch, {
4892
+ "data-cy": "send-later-switch",
4804
4893
  "data-testid": "send-later-switch",
4805
4894
  name: "isSendLaterEnabled"
4806
4895
  }), /*#__PURE__*/React.createElement(Typography, {
4807
4896
  component: "span",
4897
+ "data-cy": "send-later-label",
4808
4898
  lineHeight: "normal",
4809
4899
  style: "h4",
4810
4900
  weight: "semibold"
@@ -4857,7 +4947,7 @@ var Form = function Form(_ref) {
4857
4947
 
4858
4948
  function cov_1z3j0gxvbf() {
4859
4949
  var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/ShareViaEmail/index.jsx";
4860
- var hash = "fbc8e865f4d59d6d5bf081ed1550285f13ba7f8f";
4950
+ var hash = "908a625dd9419370600d46df890fbd2e49e7037b";
4861
4951
  var global = new Function("return this")();
4862
4952
  var gcv = "__coverage__";
4863
4953
  var coverageData = {
@@ -4869,7 +4959,7 @@ function cov_1z3j0gxvbf() {
4869
4959
  column: 22
4870
4960
  },
4871
4961
  end: {
4872
- line: 95,
4962
+ line: 97,
4873
4963
  column: 1
4874
4964
  }
4875
4965
  },
@@ -4919,7 +5009,7 @@ function cov_1z3j0gxvbf() {
4919
5009
  column: 2
4920
5010
  },
4921
5011
  end: {
4922
- line: 94,
5012
+ line: 96,
4923
5013
  column: 4
4924
5014
  }
4925
5015
  },
@@ -4929,7 +5019,7 @@ function cov_1z3j0gxvbf() {
4929
5019
  column: 12
4930
5020
  },
4931
5021
  end: {
4932
- line: 89,
5022
+ line: 91,
4933
5023
  column: 18
4934
5024
  }
4935
5025
  }
@@ -4953,7 +5043,7 @@ function cov_1z3j0gxvbf() {
4953
5043
  column: 6
4954
5044
  },
4955
5045
  end: {
4956
- line: 95,
5046
+ line: 97,
4957
5047
  column: 1
4958
5048
  }
4959
5049
  },
@@ -5025,7 +5115,7 @@ function cov_1z3j0gxvbf() {
5025
5115
  column: 12
5026
5116
  },
5027
5117
  end: {
5028
- line: 89,
5118
+ line: 91,
5029
5119
  column: 18
5030
5120
  }
5031
5121
  },
@@ -5069,35 +5159,35 @@ function cov_1z3j0gxvbf() {
5069
5159
  "1": {
5070
5160
  loc: {
5071
5161
  start: {
5072
- line: 63,
5162
+ line: 64,
5073
5163
  column: 19
5074
5164
  },
5075
5165
  end: {
5076
- line: 71,
5166
+ line: 73,
5077
5167
  column: 19
5078
5168
  }
5079
5169
  },
5080
5170
  type: "binary-expr",
5081
5171
  locations: [{
5082
5172
  start: {
5083
- line: 63,
5173
+ line: 64,
5084
5174
  column: 19
5085
5175
  },
5086
5176
  end: {
5087
- line: 63,
5177
+ line: 64,
5088
5178
  column: 30
5089
5179
  }
5090
5180
  }, {
5091
5181
  start: {
5092
- line: 64,
5182
+ line: 65,
5093
5183
  column: 20
5094
5184
  },
5095
5185
  end: {
5096
- line: 70,
5186
+ line: 72,
5097
5187
  column: 33
5098
5188
  }
5099
5189
  }],
5100
- line: 63
5190
+ line: 64
5101
5191
  }
5102
5192
  },
5103
5193
  s: {
@@ -5120,7 +5210,7 @@ function cov_1z3j0gxvbf() {
5120
5210
  "1": [0, 0]
5121
5211
  },
5122
5212
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
5123
- hash: "fbc8e865f4d59d6d5bf081ed1550285f13ba7f8f"
5213
+ hash: "908a625dd9419370600d46df890fbd2e49e7037b"
5124
5214
  };
5125
5215
  var coverage = global[gcv] || (global[gcv] = {});
5126
5216
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -5195,11 +5285,13 @@ var ShareViaEmail = function ShareViaEmail(_ref) {
5195
5285
  className: "mb-6"
5196
5286
  }, /*#__PURE__*/React.createElement(Typography, {
5197
5287
  className: "mb-0.5",
5288
+ "data-cy": "share-via-email-heading",
5198
5289
  lineHeight: "normal",
5199
5290
  style: "h2",
5200
5291
  weight: "semibold"
5201
5292
  }, t("neetoMolecules.shareViaEmail.title")), (cov_1z3j0gxvbf().b[1][0]++, description) && (cov_1z3j0gxvbf().b[1][1]++, /*#__PURE__*/React.createElement(Typography, {
5202
5293
  className: "neeto-ui-text-gray-700",
5294
+ "data-cy": "share-via-email-sub-heading",
5203
5295
  lineHeight: "normal",
5204
5296
  style: "body2"
5205
5297
  }, description))), /*#__PURE__*/React.createElement(Form, {
@@ -5207,7 +5299,7 @@ var ShareViaEmail = function ShareViaEmail(_ref) {
5207
5299
  }, children)), /*#__PURE__*/React.createElement("div", {
5208
5300
  className: "col-span-7"
5209
5301
  }, /*#__PURE__*/React.createElement("div", {
5210
- className: "sticky top-10"
5302
+ className: "sticky top-10 pt-10"
5211
5303
  }, /*#__PURE__*/React.createElement(EmailPreview, {
5212
5304
  actionButtonText: values.actionButtonText,
5213
5305
  body: values.emailBody,