@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.
@@ -5,6 +5,7 @@ var neetoIcons = require('@bigbinary/neeto-icons');
5
5
  var neetoui = require('@bigbinary/neetoui');
6
6
  var formik$1 = require('@bigbinary/neetoui/formik');
7
7
  var reactI18next = require('react-i18next');
8
+ var pure = require('@bigbinary/neeto-commons-frontend/pure');
8
9
  var neetoEditor = require('@bigbinary/neeto-editor');
9
10
  var formik = require('formik');
10
11
  var dayjs = require('dayjs');
@@ -40,7 +41,7 @@ var yup__namespace = /*#__PURE__*/_interopNamespace(yup);
40
41
 
41
42
  function cov_1dl40tmc3s() {
42
43
  var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/EmailPreview.jsx";
43
- var hash = "6d8c4987f4972dc0b6e4e31697101950d270429d";
44
+ var hash = "32018ff24a7fe6cc7b352904df5a6d8513f9fb55";
44
45
  var global = new Function("return this")();
45
46
  var gcv = "__coverage__";
46
47
  var coverageData = {
@@ -48,31 +49,31 @@ function cov_1dl40tmc3s() {
48
49
  statementMap: {
49
50
  "0": {
50
51
  start: {
51
- line: 7,
52
+ line: 8,
52
53
  column: 21
53
54
  },
54
55
  end: {
55
- line: 111,
56
+ line: 133,
56
57
  column: 1
57
58
  }
58
59
  },
59
60
  "1": {
60
61
  start: {
61
- line: 16,
62
+ line: 17,
62
63
  column: 16
63
64
  },
64
65
  end: {
65
- line: 16,
66
+ line: 17,
66
67
  column: 32
67
68
  }
68
69
  },
69
70
  "2": {
70
71
  start: {
71
- line: 18,
72
+ line: 19,
72
73
  column: 2
73
74
  },
74
75
  end: {
75
- line: 110,
76
+ line: 132,
76
77
  column: 4
77
78
  }
78
79
  }
@@ -82,258 +83,258 @@ function cov_1dl40tmc3s() {
82
83
  name: "(anonymous_0)",
83
84
  decl: {
84
85
  start: {
85
- line: 7,
86
+ line: 8,
86
87
  column: 21
87
88
  },
88
89
  end: {
89
- line: 7,
90
+ line: 8,
90
91
  column: 22
91
92
  }
92
93
  },
93
94
  loc: {
94
95
  start: {
95
- line: 15,
96
+ line: 16,
96
97
  column: 6
97
98
  },
98
99
  end: {
99
- line: 111,
100
+ line: 133,
100
101
  column: 1
101
102
  }
102
103
  },
103
- line: 15
104
+ line: 16
104
105
  }
105
106
  },
106
107
  branchMap: {
107
108
  "0": {
108
109
  loc: {
109
110
  start: {
110
- line: 29,
111
+ line: 37,
111
112
  column: 11
112
113
  },
113
114
  end: {
114
- line: 31,
115
+ line: 47,
115
116
  column: 11
116
117
  }
117
118
  },
118
- type: "binary-expr",
119
+ type: "cond-expr",
119
120
  locations: [{
120
121
  start: {
121
- line: 29,
122
- column: 11
122
+ line: 38,
123
+ column: 12
123
124
  },
124
125
  end: {
125
- line: 29,
126
+ line: 44,
126
127
  column: 25
127
128
  }
128
129
  }, {
129
130
  start: {
130
- line: 30,
131
+ line: 46,
131
132
  column: 12
132
133
  },
133
134
  end: {
134
- line: 30,
135
- column: 74
135
+ line: 46,
136
+ column: 88
136
137
  }
137
138
  }],
138
- line: 29
139
+ line: 37
139
140
  },
140
141
  "1": {
141
142
  loc: {
142
143
  start: {
143
- line: 33,
144
+ line: 49,
144
145
  column: 9
145
146
  },
146
147
  end: {
147
- line: 50,
148
+ line: 67,
148
149
  column: 9
149
150
  }
150
151
  },
151
152
  type: "binary-expr",
152
153
  locations: [{
153
154
  start: {
154
- line: 33,
155
+ line: 49,
155
156
  column: 9
156
157
  },
157
158
  end: {
158
- line: 33,
159
+ line: 49,
159
160
  column: 13
160
161
  }
161
162
  }, {
162
163
  start: {
163
- line: 34,
164
+ line: 50,
164
165
  column: 10
165
166
  },
166
167
  end: {
167
- line: 49,
168
+ line: 66,
168
169
  column: 16
169
170
  }
170
171
  }],
171
- line: 33
172
+ line: 49
172
173
  },
173
174
  "2": {
174
175
  loc: {
175
176
  start: {
176
- line: 64,
177
+ line: 82,
177
178
  column: 13
178
179
  },
179
180
  end: {
180
- line: 66,
181
+ line: 84,
181
182
  column: 13
182
183
  }
183
184
  },
184
185
  type: "binary-expr",
185
186
  locations: [{
186
187
  start: {
187
- line: 64,
188
+ line: 82,
188
189
  column: 13
189
190
  },
190
191
  end: {
191
- line: 64,
192
+ line: 82,
192
193
  column: 20
193
194
  }
194
195
  }, {
195
196
  start: {
196
- line: 65,
197
+ line: 83,
197
198
  column: 14
198
199
  },
199
200
  end: {
200
- line: 65,
201
- column: 77
201
+ line: 83,
202
+ column: 86
202
203
  }
203
204
  }],
204
- line: 64
205
+ line: 82
205
206
  },
206
207
  "3": {
207
208
  loc: {
208
209
  start: {
209
- line: 71,
210
+ line: 92,
210
211
  column: 9
211
212
  },
212
213
  end: {
213
- line: 79,
214
+ line: 100,
214
215
  column: 9
215
216
  }
216
217
  },
217
218
  type: "cond-expr",
218
219
  locations: [{
219
220
  start: {
220
- line: 72,
221
+ line: 93,
221
222
  column: 10
222
223
  },
223
224
  end: {
224
- line: 72,
225
+ line: 93,
225
226
  column: 42
226
227
  }
227
228
  }, {
228
229
  start: {
229
- line: 74,
230
+ line: 95,
230
231
  column: 10
231
232
  },
232
233
  end: {
233
- line: 78,
234
+ line: 99,
234
235
  column: 16
235
236
  }
236
237
  }],
237
- line: 71
238
+ line: 92
238
239
  },
239
240
  "4": {
240
241
  loc: {
241
242
  start: {
242
- line: 80,
243
+ line: 101,
243
244
  column: 9
244
245
  },
245
246
  end: {
246
- line: 84,
247
+ line: 105,
247
248
  column: 9
248
249
  }
249
250
  },
250
251
  type: "binary-expr",
251
252
  locations: [{
252
253
  start: {
253
- line: 80,
254
+ line: 101,
254
255
  column: 9
255
256
  },
256
257
  end: {
257
- line: 80,
258
+ line: 101,
258
259
  column: 25
259
260
  }
260
261
  }, {
261
262
  start: {
262
- line: 81,
263
+ line: 102,
263
264
  column: 10
264
265
  },
265
266
  end: {
266
- line: 83,
267
+ line: 104,
267
268
  column: 16
268
269
  }
269
270
  }],
270
- line: 80
271
+ line: 101
271
272
  },
272
273
  "5": {
273
274
  loc: {
274
275
  start: {
275
- line: 85,
276
+ line: 106,
276
277
  column: 9
277
278
  },
278
279
  end: {
279
- line: 91,
280
+ line: 113,
280
281
  column: 9
281
282
  }
282
283
  },
283
284
  type: "binary-expr",
284
285
  locations: [{
285
286
  start: {
286
- line: 85,
287
+ line: 106,
287
288
  column: 9
288
289
  },
289
290
  end: {
290
- line: 85,
291
+ line: 106,
291
292
  column: 13
292
293
  }
293
294
  }, {
294
295
  start: {
295
- line: 86,
296
+ line: 107,
296
297
  column: 10
297
298
  },
298
299
  end: {
299
- line: 90,
300
+ line: 112,
300
301
  column: 12
301
302
  }
302
303
  }],
303
- line: 85
304
+ line: 106
304
305
  },
305
306
  "6": {
306
307
  loc: {
307
308
  start: {
308
- line: 93,
309
+ line: 115,
309
310
  column: 7
310
311
  },
311
312
  end: {
312
- line: 108,
313
+ line: 130,
313
314
  column: 7
314
315
  }
315
316
  },
316
317
  type: "binary-expr",
317
318
  locations: [{
318
319
  start: {
319
- line: 93,
320
+ line: 115,
320
321
  column: 7
321
322
  },
322
323
  end: {
323
- line: 93,
324
+ line: 115,
324
325
  column: 18
325
326
  }
326
327
  }, {
327
328
  start: {
328
- line: 94,
329
+ line: 116,
329
330
  column: 8
330
331
  },
331
332
  end: {
332
- line: 107,
333
+ line: 129,
333
334
  column: 14
334
335
  }
335
336
  }],
336
- line: 93
337
+ line: 115
337
338
  }
338
339
  },
339
340
  s: {
@@ -354,7 +355,7 @@ function cov_1dl40tmc3s() {
354
355
  "6": [0, 0]
355
356
  },
356
357
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
357
- hash: "6d8c4987f4972dc0b6e4e31697101950d270429d"
358
+ hash: "32018ff24a7fe6cc7b352904df5a6d8513f9fb55"
358
359
  };
359
360
  var coverage = global[gcv] || (global[gcv] = {});
360
361
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -384,18 +385,24 @@ var EmailPreview = function EmailPreview(_ref) {
384
385
  t = _ref2.t;
385
386
  cov_1dl40tmc3s().s[2]++;
386
387
  return /*#__PURE__*/React__default["default"].createElement("div", {
387
- className: "neeto-ui-border-gray-300 neeto-ui-shadow-m neeto-ui-bg-white flex flex-1 flex-col border"
388
+ className: "neeto-ui-border-gray-300 neeto-ui-shadow-m neeto-ui-bg-white flex flex-1 flex-col border",
389
+ "data-cy": "email-preview-card"
388
390
  }, /*#__PURE__*/React__default["default"].createElement("div", {
389
391
  className: "neeto-ui-border-gray-300 space-y-3 divide-y divide-gray-200 border-b p-6"
390
392
  }, /*#__PURE__*/React__default["default"].createElement("div", {
391
- className: "flex items-center gap-2",
393
+ className: "flex gap-2",
394
+ "data-cy": "email-send-to-preview",
392
395
  "data-testid": "email-to-block"
393
396
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
394
397
  className: "neeto-ui-text-gray-500",
395
398
  lineHeight: "normal",
396
399
  style: "body2"
397
- }, 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__default["default"].createElement("div", {
398
- className: "neeto-ui-bg-gray-300 h-2 w-40 rounded-full"
400
+ }, t("neetoMolecules.emailPreview.to"), ":"), pure.isNotEmpty(to) ? (cov_1dl40tmc3s().b[0][0]++, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
401
+ className: "neeto-ui-text-gray-800 min-w-0 flex-grow break-words",
402
+ lineHeight: "normal",
403
+ style: "body2"
404
+ }, to.join(", "))) : (cov_1dl40tmc3s().b[0][1]++, /*#__PURE__*/React__default["default"].createElement("div", {
405
+ className: "neeto-ui-bg-gray-300 neeto-ui-rounded-full mt-2 h-2 w-40"
399
406
  }))), (cov_1dl40tmc3s().b[1][0]++, from) && (cov_1dl40tmc3s().b[1][1]++, /*#__PURE__*/React__default["default"].createElement("div", {
400
407
  className: "flex items-center gap-2 pt-3"
401
408
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
@@ -403,7 +410,8 @@ var EmailPreview = function EmailPreview(_ref) {
403
410
  lineHeight: "normal",
404
411
  style: "body2"
405
412
  }, t("neetoMolecules.emailPreview.from"), ":"), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
406
- className: "neeto-ui-text-gray-800",
413
+ className: "neeto-ui-text-gray-800 min-w-0 flex-grow break-words",
414
+ "data-cy": "email-send-from-preview",
407
415
  lineHeight: "normal",
408
416
  style: "body2"
409
417
  }, from))), /*#__PURE__*/React__default["default"].createElement("div", {
@@ -413,23 +421,25 @@ var EmailPreview = function EmailPreview(_ref) {
413
421
  lineHeight: "normal",
414
422
  style: "body2"
415
423
  }, t("neetoMolecules.emailPreview.subject"), ":"), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
416
- className: "neeto-ui-text-gray-800",
424
+ className: "neeto-ui-text-gray-800 min-w-0 flex-grow break-words",
425
+ "data-cy": "email-subject-preview",
417
426
  lineHeight: "normal",
418
427
  style: "body2"
419
428
  }, (cov_1dl40tmc3s().b[2][0]++, subject) || (cov_1dl40tmc3s().b[2][1]++, /*#__PURE__*/React__default["default"].createElement("span", {
420
- className: "neeto-ui-bg-gray-300 h-2 w-40 rounded-full"
429
+ className: "neeto-ui-bg-gray-300 neeto-ui-rounded-full h-2 w-40"
421
430
  }))))), /*#__PURE__*/React__default["default"].createElement("div", {
422
- className: "neeto-ui-text-gray-800 flex flex-1 flex-col justify-between space-y-6 p-6 pr-10 text-base leading-relaxed"
431
+ className: "neeto-ui-text-gray-800 flex flex-1 flex-col justify-between space-y-6 p-6 pr-10 text-base leading-relaxed",
432
+ "data-cy": "email-body-preview-container"
423
433
  }, body ? (cov_1dl40tmc3s().b[3][0]++, /*#__PURE__*/React__default["default"].createElement(neetoEditor.EditorContent, {
424
434
  content: body
425
435
  })) : (cov_1dl40tmc3s().b[3][1]++, /*#__PURE__*/React__default["default"].createElement("div", {
426
436
  className: "space-y-4"
427
437
  }, /*#__PURE__*/React__default["default"].createElement("div", {
428
- className: "neeto-ui-bg-gray-300 h-2 w-80 rounded-full"
438
+ className: "neeto-ui-bg-gray-300 neeto-ui-rounded-full h-2 w-80"
429
439
  }), /*#__PURE__*/React__default["default"].createElement("div", {
430
- className: "neeto-ui-bg-gray-300 h-2 w-72 rounded-full"
440
+ className: "neeto-ui-bg-gray-300 neeto-ui-rounded-full h-2 w-72"
431
441
  }), /*#__PURE__*/React__default["default"].createElement("div", {
432
- className: "neeto-ui-bg-gray-300 h-2 w-80 rounded-full"
442
+ className: "neeto-ui-bg-gray-300 neeto-ui-rounded-full h-2 w-80"
433
443
  }))), (cov_1dl40tmc3s().b[4][0]++, actionButtonText) && (cov_1dl40tmc3s().b[4][1]++, /*#__PURE__*/React__default["default"].createElement("div", {
434
444
  className: "mt-6 flex w-full items-center justify-center"
435
445
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
@@ -438,6 +448,7 @@ var EmailPreview = function EmailPreview(_ref) {
438
448
  }))), (cov_1dl40tmc3s().b[5][0]++, logo) && (cov_1dl40tmc3s().b[5][1]++, /*#__PURE__*/React__default["default"].createElement("img", {
439
449
  alt: t("neetoMolecules.emailPreview.logoAltText"),
440
450
  className: "h-20 w-36 object-cover",
451
+ "data-cy": "company-logo-preview",
441
452
  src: logo
442
453
  }))), (cov_1dl40tmc3s().b[6][0]++, productName) && (cov_1dl40tmc3s().b[6][1]++, /*#__PURE__*/React__default["default"].createElement("div", {
443
454
  className: "neeto-ui-bg-gray-100 mt-auto p-2",
@@ -1634,7 +1645,7 @@ function _objectWithoutProperties(source, excluded) {
1634
1645
  var _excluded = ["name"];
1635
1646
  function cov_73oanf0pa() {
1636
1647
  var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/ShareViaEmail/FormikDatePicker.jsx";
1637
- var hash = "b9995de8aab99fa6112d28932eeb972bbff4f14f";
1648
+ var hash = "04ab048e24ae2a310ee0c03bb40c2b821a8c7f6a";
1638
1649
  var global = new Function("return this")();
1639
1650
  var gcv = "__coverage__";
1640
1651
  var coverageData = {
@@ -1669,6 +1680,16 @@ function cov_73oanf0pa() {
1669
1680
  line: 17,
1670
1681
  column: 4
1671
1682
  }
1683
+ },
1684
+ "3": {
1685
+ start: {
1686
+ line: 13,
1687
+ column: 24
1688
+ },
1689
+ end: {
1690
+ line: 13,
1691
+ column: 51
1692
+ }
1672
1693
  }
1673
1694
  },
1674
1695
  fnMap: {
@@ -1695,20 +1716,82 @@ function cov_73oanf0pa() {
1695
1716
  }
1696
1717
  },
1697
1718
  line: 6
1719
+ },
1720
+ "1": {
1721
+ name: "(anonymous_1)",
1722
+ decl: {
1723
+ start: {
1724
+ line: 13,
1725
+ column: 16
1726
+ },
1727
+ end: {
1728
+ line: 13,
1729
+ column: 17
1730
+ }
1731
+ },
1732
+ loc: {
1733
+ start: {
1734
+ line: 13,
1735
+ column: 24
1736
+ },
1737
+ end: {
1738
+ line: 13,
1739
+ column: 51
1740
+ }
1741
+ },
1742
+ line: 13
1743
+ }
1744
+ },
1745
+ branchMap: {
1746
+ "0": {
1747
+ loc: {
1748
+ start: {
1749
+ line: 13,
1750
+ column: 33
1751
+ },
1752
+ end: {
1753
+ line: 13,
1754
+ column: 50
1755
+ }
1756
+ },
1757
+ type: "binary-expr",
1758
+ locations: [{
1759
+ start: {
1760
+ line: 13,
1761
+ column: 33
1762
+ },
1763
+ end: {
1764
+ line: 13,
1765
+ column: 37
1766
+ }
1767
+ }, {
1768
+ start: {
1769
+ line: 13,
1770
+ column: 41
1771
+ },
1772
+ end: {
1773
+ line: 13,
1774
+ column: 50
1775
+ }
1776
+ }],
1777
+ line: 13
1698
1778
  }
1699
1779
  },
1700
- branchMap: {},
1701
1780
  s: {
1702
1781
  "0": 0,
1703
1782
  "1": 0,
1704
- "2": 0
1783
+ "2": 0,
1784
+ "3": 0
1705
1785
  },
1706
1786
  f: {
1707
- "0": 0
1787
+ "0": 0,
1788
+ "1": 0
1789
+ },
1790
+ b: {
1791
+ "0": [0, 0]
1708
1792
  },
1709
- b: {},
1710
1793
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
1711
- hash: "b9995de8aab99fa6112d28932eeb972bbff4f14f"
1794
+ hash: "04ab048e24ae2a310ee0c03bb40c2b821a8c7f6a"
1712
1795
  };
1713
1796
  var coverage = global[gcv] || (global[gcv] = {});
1714
1797
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -1736,7 +1819,11 @@ var FormikDatePicker = function FormikDatePicker(_ref) {
1736
1819
  setValue = _ref3[2].setValue;
1737
1820
  cov_73oanf0pa().s[2]++;
1738
1821
  return /*#__PURE__*/React__default["default"].createElement(neetoui.DatePicker, _extends({}, field, meta, {
1739
- onChange: setValue
1822
+ onChange: function onChange(date) {
1823
+ cov_73oanf0pa().f[1]++;
1824
+ cov_73oanf0pa().s[3]++;
1825
+ return setValue((cov_73oanf0pa().b[0][0]++, date) || (cov_73oanf0pa().b[0][1]++, undefined));
1826
+ }
1740
1827
  }, props, {
1741
1828
  "data-cy": "email-share-date-input"
1742
1829
  }));
@@ -4430,7 +4517,7 @@ var emailFormValidationSchema = function emailFormValidationSchema(disableReplyT
4430
4517
 
4431
4518
  function cov_2dkkhs5lzc() {
4432
4519
  var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/ShareViaEmail/Form.jsx";
4433
- var hash = "f0e6d385254b4decc14270b6dc576e0c9a49890a";
4520
+ var hash = "3c7da0a4a8f87f45ebea7e20c78fa1f656d8369b";
4434
4521
  var global = new Function("return this")();
4435
4522
  var gcv = "__coverage__";
4436
4523
  var coverageData = {
@@ -4442,7 +4529,7 @@ function cov_2dkkhs5lzc() {
4442
4529
  column: 13
4443
4530
  },
4444
4531
  end: {
4445
- line: 130,
4532
+ line: 140,
4446
4533
  column: 1
4447
4534
  }
4448
4535
  },
@@ -4532,7 +4619,7 @@ function cov_2dkkhs5lzc() {
4532
4619
  column: 2
4533
4620
  },
4534
4621
  end: {
4535
- line: 129,
4622
+ line: 139,
4536
4623
  column: 4
4537
4624
  }
4538
4625
  }
@@ -4556,7 +4643,7 @@ function cov_2dkkhs5lzc() {
4556
4643
  column: 47
4557
4644
  },
4558
4645
  end: {
4559
- line: 130,
4646
+ line: 140,
4560
4647
  column: 1
4561
4648
  }
4562
4649
  },
@@ -4615,101 +4702,101 @@ function cov_2dkkhs5lzc() {
4615
4702
  "0": {
4616
4703
  loc: {
4617
4704
  start: {
4618
- line: 70,
4705
+ line: 80,
4619
4706
  column: 9
4620
4707
  },
4621
4708
  end: {
4622
- line: 82,
4709
+ line: 92,
4623
4710
  column: 9
4624
4711
  }
4625
4712
  },
4626
4713
  type: "binary-expr",
4627
4714
  locations: [{
4628
4715
  start: {
4629
- line: 70,
4716
+ line: 80,
4630
4717
  column: 9
4631
4718
  },
4632
4719
  end: {
4633
- line: 70,
4720
+ line: 80,
4634
4721
  column: 34
4635
4722
  }
4636
4723
  }, {
4637
4724
  start: {
4638
- line: 71,
4725
+ line: 81,
4639
4726
  column: 10
4640
4727
  },
4641
4728
  end: {
4642
- line: 81,
4729
+ line: 91,
4643
4730
  column: 12
4644
4731
  }
4645
4732
  }],
4646
- line: 70
4733
+ line: 80
4647
4734
  },
4648
4735
  "1": {
4649
4736
  loc: {
4650
4737
  start: {
4651
- line: 97,
4738
+ line: 107,
4652
4739
  column: 11
4653
4740
  },
4654
4741
  end: {
4655
- line: 105,
4742
+ line: 115,
4656
4743
  column: 11
4657
4744
  }
4658
4745
  },
4659
4746
  type: "binary-expr",
4660
4747
  locations: [{
4661
4748
  start: {
4662
- line: 97,
4749
+ line: 107,
4663
4750
  column: 11
4664
4751
  },
4665
4752
  end: {
4666
- line: 97,
4753
+ line: 107,
4667
4754
  column: 26
4668
4755
  }
4669
4756
  }, {
4670
4757
  start: {
4671
- line: 98,
4758
+ line: 108,
4672
4759
  column: 12
4673
4760
  },
4674
4761
  end: {
4675
- line: 104,
4762
+ line: 114,
4676
4763
  column: 14
4677
4764
  }
4678
4765
  }],
4679
- line: 97
4766
+ line: 107
4680
4767
  },
4681
4768
  "2": {
4682
4769
  loc: {
4683
4770
  start: {
4684
- line: 108,
4771
+ line: 118,
4685
4772
  column: 7
4686
4773
  },
4687
4774
  end: {
4688
- line: 115,
4775
+ line: 125,
4689
4776
  column: 7
4690
4777
  }
4691
4778
  },
4692
4779
  type: "binary-expr",
4693
4780
  locations: [{
4694
4781
  start: {
4695
- line: 108,
4782
+ line: 118,
4696
4783
  column: 7
4697
4784
  },
4698
4785
  end: {
4699
- line: 108,
4786
+ line: 118,
4700
4787
  column: 15
4701
4788
  }
4702
4789
  }, {
4703
4790
  start: {
4704
- line: 109,
4791
+ line: 119,
4705
4792
  column: 8
4706
4793
  },
4707
4794
  end: {
4708
- line: 114,
4795
+ line: 124,
4709
4796
  column: 14
4710
4797
  }
4711
4798
  }],
4712
- line: 108
4799
+ line: 118
4713
4800
  }
4714
4801
  },
4715
4802
  s: {
@@ -4735,7 +4822,7 @@ function cov_2dkkhs5lzc() {
4735
4822
  "2": [0, 0]
4736
4823
  },
4737
4824
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
4738
- hash: "f0e6d385254b4decc14270b6dc576e0c9a49890a"
4825
+ hash: "3c7da0a4a8f87f45ebea7e20c78fa1f656d8369b"
4739
4826
  };
4740
4827
  var coverage = global[gcv] || (global[gcv] = {});
4741
4828
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -4803,6 +4890,7 @@ var Form = function Form(_ref) {
4803
4890
  }, /*#__PURE__*/React__default["default"].createElement("div", {
4804
4891
  className: "flex items-center justify-between"
4805
4892
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
4893
+ "data-cy": "send-to-input-label",
4806
4894
  lineHeight: "normal",
4807
4895
  style: "h4",
4808
4896
  weight: "semibold"
@@ -4827,10 +4915,12 @@ var Form = function Form(_ref) {
4827
4915
  }), /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(neetoui.Label, {
4828
4916
  className: "flex items-center gap-2"
4829
4917
  }, /*#__PURE__*/React__default["default"].createElement(formik$1.Switch, {
4918
+ "data-cy": "send-later-switch",
4830
4919
  "data-testid": "send-later-switch",
4831
4920
  name: "isSendLaterEnabled"
4832
4921
  }), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
4833
4922
  component: "span",
4923
+ "data-cy": "send-later-label",
4834
4924
  lineHeight: "normal",
4835
4925
  style: "h4",
4836
4926
  weight: "semibold"
@@ -4883,7 +4973,7 @@ var Form = function Form(_ref) {
4883
4973
 
4884
4974
  function cov_1z3j0gxvbf() {
4885
4975
  var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/ShareViaEmail/index.jsx";
4886
- var hash = "fbc8e865f4d59d6d5bf081ed1550285f13ba7f8f";
4976
+ var hash = "908a625dd9419370600d46df890fbd2e49e7037b";
4887
4977
  var global = new Function("return this")();
4888
4978
  var gcv = "__coverage__";
4889
4979
  var coverageData = {
@@ -4895,7 +4985,7 @@ function cov_1z3j0gxvbf() {
4895
4985
  column: 22
4896
4986
  },
4897
4987
  end: {
4898
- line: 95,
4988
+ line: 97,
4899
4989
  column: 1
4900
4990
  }
4901
4991
  },
@@ -4945,7 +5035,7 @@ function cov_1z3j0gxvbf() {
4945
5035
  column: 2
4946
5036
  },
4947
5037
  end: {
4948
- line: 94,
5038
+ line: 96,
4949
5039
  column: 4
4950
5040
  }
4951
5041
  },
@@ -4955,7 +5045,7 @@ function cov_1z3j0gxvbf() {
4955
5045
  column: 12
4956
5046
  },
4957
5047
  end: {
4958
- line: 89,
5048
+ line: 91,
4959
5049
  column: 18
4960
5050
  }
4961
5051
  }
@@ -4979,7 +5069,7 @@ function cov_1z3j0gxvbf() {
4979
5069
  column: 6
4980
5070
  },
4981
5071
  end: {
4982
- line: 95,
5072
+ line: 97,
4983
5073
  column: 1
4984
5074
  }
4985
5075
  },
@@ -5051,7 +5141,7 @@ function cov_1z3j0gxvbf() {
5051
5141
  column: 12
5052
5142
  },
5053
5143
  end: {
5054
- line: 89,
5144
+ line: 91,
5055
5145
  column: 18
5056
5146
  }
5057
5147
  },
@@ -5095,35 +5185,35 @@ function cov_1z3j0gxvbf() {
5095
5185
  "1": {
5096
5186
  loc: {
5097
5187
  start: {
5098
- line: 63,
5188
+ line: 64,
5099
5189
  column: 19
5100
5190
  },
5101
5191
  end: {
5102
- line: 71,
5192
+ line: 73,
5103
5193
  column: 19
5104
5194
  }
5105
5195
  },
5106
5196
  type: "binary-expr",
5107
5197
  locations: [{
5108
5198
  start: {
5109
- line: 63,
5199
+ line: 64,
5110
5200
  column: 19
5111
5201
  },
5112
5202
  end: {
5113
- line: 63,
5203
+ line: 64,
5114
5204
  column: 30
5115
5205
  }
5116
5206
  }, {
5117
5207
  start: {
5118
- line: 64,
5208
+ line: 65,
5119
5209
  column: 20
5120
5210
  },
5121
5211
  end: {
5122
- line: 70,
5212
+ line: 72,
5123
5213
  column: 33
5124
5214
  }
5125
5215
  }],
5126
- line: 63
5216
+ line: 64
5127
5217
  }
5128
5218
  },
5129
5219
  s: {
@@ -5146,7 +5236,7 @@ function cov_1z3j0gxvbf() {
5146
5236
  "1": [0, 0]
5147
5237
  },
5148
5238
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
5149
- hash: "fbc8e865f4d59d6d5bf081ed1550285f13ba7f8f"
5239
+ hash: "908a625dd9419370600d46df890fbd2e49e7037b"
5150
5240
  };
5151
5241
  var coverage = global[gcv] || (global[gcv] = {});
5152
5242
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -5221,11 +5311,13 @@ var ShareViaEmail = function ShareViaEmail(_ref) {
5221
5311
  className: "mb-6"
5222
5312
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
5223
5313
  className: "mb-0.5",
5314
+ "data-cy": "share-via-email-heading",
5224
5315
  lineHeight: "normal",
5225
5316
  style: "h2",
5226
5317
  weight: "semibold"
5227
5318
  }, t("neetoMolecules.shareViaEmail.title")), (cov_1z3j0gxvbf().b[1][0]++, description) && (cov_1z3j0gxvbf().b[1][1]++, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
5228
5319
  className: "neeto-ui-text-gray-700",
5320
+ "data-cy": "share-via-email-sub-heading",
5229
5321
  lineHeight: "normal",
5230
5322
  style: "body2"
5231
5323
  }, description))), /*#__PURE__*/React__default["default"].createElement(Form, {
@@ -5233,7 +5325,7 @@ var ShareViaEmail = function ShareViaEmail(_ref) {
5233
5325
  }, children)), /*#__PURE__*/React__default["default"].createElement("div", {
5234
5326
  className: "col-span-7"
5235
5327
  }, /*#__PURE__*/React__default["default"].createElement("div", {
5236
- className: "sticky top-10"
5328
+ className: "sticky top-10 pt-10"
5237
5329
  }, /*#__PURE__*/React__default["default"].createElement(EmailPreview, {
5238
5330
  actionButtonText: values.actionButtonText,
5239
5331
  body: values.emailBody,