@bigbinary/neeto-molecules 1.0.28 → 1.0.29
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/BrowserSupport.cjs.js +22 -1221
- package/dist/BrowserSupport.cjs.js.map +1 -1
- package/dist/BrowserSupport.js +22 -1221
- package/dist/BrowserSupport.js.map +1 -1
- package/dist/Columns.cjs.js +39 -976
- package/dist/Columns.cjs.js.map +1 -1
- package/dist/Columns.js +39 -976
- package/dist/Columns.js.map +1 -1
- package/dist/Container.cjs.js +3 -125
- package/dist/Container.cjs.js.map +1 -1
- package/dist/Container.js +3 -125
- package/dist/Container.js.map +1 -1
- package/dist/CustomDomain.cjs.js +156 -6060
- package/dist/CustomDomain.cjs.js.map +1 -1
- package/dist/CustomDomain.js +156 -6060
- package/dist/CustomDomain.js.map +1 -1
- package/dist/DateFormat.cjs.js +9 -264
- package/dist/DateFormat.cjs.js.map +1 -1
- package/dist/DateFormat.js +9 -264
- package/dist/DateFormat.js.map +1 -1
- package/dist/DateRangeFilter.cjs.js +35 -715
- package/dist/DateRangeFilter.cjs.js.map +1 -1
- package/dist/DateRangeFilter.js +35 -715
- package/dist/DateRangeFilter.js.map +1 -1
- package/dist/DynamicVariables.cjs.js +26 -908
- package/dist/DynamicVariables.cjs.js.map +1 -1
- package/dist/DynamicVariables.js +26 -908
- package/dist/DynamicVariables.js.map +1 -1
- package/dist/EmailPreview.cjs.js +14 -349
- package/dist/EmailPreview.cjs.js.map +1 -1
- package/dist/EmailPreview.js +14 -349
- package/dist/EmailPreview.js.map +1 -1
- package/dist/ErrorPage.cjs.js +13 -541
- package/dist/ErrorPage.cjs.js.map +1 -1
- package/dist/ErrorPage.js +13 -541
- package/dist/ErrorPage.js.map +1 -1
- package/dist/Header.cjs.js +13 -513
- package/dist/Header.cjs.js.map +1 -1
- package/dist/Header.js +13 -513
- package/dist/Header.js.map +1 -1
- package/dist/IpRestriction.cjs.js +134 -4226
- package/dist/IpRestriction.cjs.js.map +1 -1
- package/dist/IpRestriction.js +134 -4226
- package/dist/IpRestriction.js.map +1 -1
- package/dist/KeyboardShortcuts.cjs.js +51 -2129
- package/dist/KeyboardShortcuts.cjs.js.map +1 -1
- package/dist/KeyboardShortcuts.js +51 -2129
- package/dist/KeyboardShortcuts.js.map +1 -1
- package/dist/LoginPage.cjs.js +32 -752
- package/dist/LoginPage.cjs.js.map +1 -1
- package/dist/LoginPage.js +32 -752
- package/dist/LoginPage.js.map +1 -1
- package/dist/MenuBar.cjs.js +28 -1501
- package/dist/MenuBar.cjs.js.map +1 -1
- package/dist/MenuBar.js +28 -1501
- package/dist/MenuBar.js.map +1 -1
- package/dist/NeetoWidget.cjs.js +170 -6756
- package/dist/NeetoWidget.cjs.js.map +1 -1
- package/dist/NeetoWidget.js +171 -6757
- package/dist/NeetoWidget.js.map +1 -1
- package/dist/PageLoader.cjs.js +3 -160
- package/dist/PageLoader.cjs.js.map +1 -1
- package/dist/PageLoader.js +3 -160
- package/dist/PageLoader.js.map +1 -1
- package/dist/PhoneNumber.cjs.js +64 -2291
- package/dist/PhoneNumber.cjs.js.map +1 -1
- package/dist/PhoneNumber.js +64 -2291
- package/dist/PhoneNumber.js.map +1 -1
- package/dist/PublishBlock.cjs.js +19 -512
- package/dist/PublishBlock.cjs.js.map +1 -1
- package/dist/PublishBlock.js +19 -512
- package/dist/PublishBlock.js.map +1 -1
- package/dist/Rename.cjs.js +46 -1090
- package/dist/Rename.cjs.js.map +1 -1
- package/dist/Rename.js +48 -1092
- package/dist/Rename.js.map +1 -1
- package/dist/ResponsiveDevicePicker.cjs.js +9 -296
- package/dist/ResponsiveDevicePicker.cjs.js.map +1 -1
- package/dist/ResponsiveDevicePicker.js +9 -296
- package/dist/ResponsiveDevicePicker.js.map +1 -1
- package/dist/Schedule.cjs.js +356 -7305
- package/dist/Schedule.cjs.js.map +1 -1
- package/dist/Schedule.js +356 -7305
- package/dist/Schedule.js.map +1 -1
- package/dist/Scrollable.cjs.js +4 -183
- package/dist/Scrollable.cjs.js.map +1 -1
- package/dist/Scrollable.js +4 -183
- package/dist/Scrollable.js.map +1 -1
- package/dist/ShareViaEmail.cjs.js +68 -2481
- package/dist/ShareViaEmail.cjs.js.map +1 -1
- package/dist/ShareViaEmail.js +68 -2481
- package/dist/ShareViaEmail.js.map +1 -1
- package/dist/ShareViaLink.cjs.js +57 -1640
- package/dist/ShareViaLink.cjs.js.map +1 -1
- package/dist/ShareViaLink.js +57 -1640
- package/dist/ShareViaLink.js.map +1 -1
- package/dist/Sidebar.cjs.js +99 -4367
- package/dist/Sidebar.cjs.js.map +1 -1
- package/dist/Sidebar.js +99 -4367
- package/dist/Sidebar.js.map +1 -1
- package/dist/SubHeader.cjs.js +17 -781
- package/dist/SubHeader.cjs.js.map +1 -1
- package/dist/SubHeader.js +17 -781
- package/dist/SubHeader.js.map +1 -1
- package/dist/TableWrapper.cjs.js +2 -150
- package/dist/TableWrapper.cjs.js.map +1 -1
- package/dist/TableWrapper.js +2 -150
- package/dist/TableWrapper.js.map +1 -1
- package/dist/TimeFormat.cjs.js +1 -44
- package/dist/TimeFormat.cjs.js.map +1 -1
- package/dist/TimeFormat.js +1 -44
- package/dist/TimeFormat.js.map +1 -1
- package/dist/TimezoneMismatchModal.cjs.js +18 -905
- package/dist/TimezoneMismatchModal.cjs.js.map +1 -1
- package/dist/TimezoneMismatchModal.js +18 -905
- package/dist/TimezoneMismatchModal.js.map +1 -1
- package/package.json +3 -2
package/dist/EmailPreview.js
CHANGED
|
@@ -4,339 +4,6 @@ import { EditorContent } from '@bigbinary/neeto-editor';
|
|
|
4
4
|
import { Typography, Button } from '@bigbinary/neetoui';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
6
|
|
|
7
|
-
function cov_1dl40tmc3s() {
|
|
8
|
-
var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/EmailPreview.jsx";
|
|
9
|
-
var hash = "32018ff24a7fe6cc7b352904df5a6d8513f9fb55";
|
|
10
|
-
var global = new Function("return this")();
|
|
11
|
-
var gcv = "__coverage__";
|
|
12
|
-
var coverageData = {
|
|
13
|
-
path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/EmailPreview.jsx",
|
|
14
|
-
statementMap: {
|
|
15
|
-
"0": {
|
|
16
|
-
start: {
|
|
17
|
-
line: 8,
|
|
18
|
-
column: 21
|
|
19
|
-
},
|
|
20
|
-
end: {
|
|
21
|
-
line: 133,
|
|
22
|
-
column: 1
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"1": {
|
|
26
|
-
start: {
|
|
27
|
-
line: 17,
|
|
28
|
-
column: 16
|
|
29
|
-
},
|
|
30
|
-
end: {
|
|
31
|
-
line: 17,
|
|
32
|
-
column: 32
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
"2": {
|
|
36
|
-
start: {
|
|
37
|
-
line: 19,
|
|
38
|
-
column: 2
|
|
39
|
-
},
|
|
40
|
-
end: {
|
|
41
|
-
line: 132,
|
|
42
|
-
column: 4
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
fnMap: {
|
|
47
|
-
"0": {
|
|
48
|
-
name: "(anonymous_0)",
|
|
49
|
-
decl: {
|
|
50
|
-
start: {
|
|
51
|
-
line: 8,
|
|
52
|
-
column: 21
|
|
53
|
-
},
|
|
54
|
-
end: {
|
|
55
|
-
line: 8,
|
|
56
|
-
column: 22
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
loc: {
|
|
60
|
-
start: {
|
|
61
|
-
line: 16,
|
|
62
|
-
column: 6
|
|
63
|
-
},
|
|
64
|
-
end: {
|
|
65
|
-
line: 133,
|
|
66
|
-
column: 1
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
line: 16
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
branchMap: {
|
|
73
|
-
"0": {
|
|
74
|
-
loc: {
|
|
75
|
-
start: {
|
|
76
|
-
line: 37,
|
|
77
|
-
column: 11
|
|
78
|
-
},
|
|
79
|
-
end: {
|
|
80
|
-
line: 47,
|
|
81
|
-
column: 11
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
type: "cond-expr",
|
|
85
|
-
locations: [{
|
|
86
|
-
start: {
|
|
87
|
-
line: 38,
|
|
88
|
-
column: 12
|
|
89
|
-
},
|
|
90
|
-
end: {
|
|
91
|
-
line: 44,
|
|
92
|
-
column: 25
|
|
93
|
-
}
|
|
94
|
-
}, {
|
|
95
|
-
start: {
|
|
96
|
-
line: 46,
|
|
97
|
-
column: 12
|
|
98
|
-
},
|
|
99
|
-
end: {
|
|
100
|
-
line: 46,
|
|
101
|
-
column: 88
|
|
102
|
-
}
|
|
103
|
-
}],
|
|
104
|
-
line: 37
|
|
105
|
-
},
|
|
106
|
-
"1": {
|
|
107
|
-
loc: {
|
|
108
|
-
start: {
|
|
109
|
-
line: 49,
|
|
110
|
-
column: 9
|
|
111
|
-
},
|
|
112
|
-
end: {
|
|
113
|
-
line: 67,
|
|
114
|
-
column: 9
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
type: "binary-expr",
|
|
118
|
-
locations: [{
|
|
119
|
-
start: {
|
|
120
|
-
line: 49,
|
|
121
|
-
column: 9
|
|
122
|
-
},
|
|
123
|
-
end: {
|
|
124
|
-
line: 49,
|
|
125
|
-
column: 13
|
|
126
|
-
}
|
|
127
|
-
}, {
|
|
128
|
-
start: {
|
|
129
|
-
line: 50,
|
|
130
|
-
column: 10
|
|
131
|
-
},
|
|
132
|
-
end: {
|
|
133
|
-
line: 66,
|
|
134
|
-
column: 16
|
|
135
|
-
}
|
|
136
|
-
}],
|
|
137
|
-
line: 49
|
|
138
|
-
},
|
|
139
|
-
"2": {
|
|
140
|
-
loc: {
|
|
141
|
-
start: {
|
|
142
|
-
line: 82,
|
|
143
|
-
column: 13
|
|
144
|
-
},
|
|
145
|
-
end: {
|
|
146
|
-
line: 84,
|
|
147
|
-
column: 13
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
type: "binary-expr",
|
|
151
|
-
locations: [{
|
|
152
|
-
start: {
|
|
153
|
-
line: 82,
|
|
154
|
-
column: 13
|
|
155
|
-
},
|
|
156
|
-
end: {
|
|
157
|
-
line: 82,
|
|
158
|
-
column: 20
|
|
159
|
-
}
|
|
160
|
-
}, {
|
|
161
|
-
start: {
|
|
162
|
-
line: 83,
|
|
163
|
-
column: 14
|
|
164
|
-
},
|
|
165
|
-
end: {
|
|
166
|
-
line: 83,
|
|
167
|
-
column: 86
|
|
168
|
-
}
|
|
169
|
-
}],
|
|
170
|
-
line: 82
|
|
171
|
-
},
|
|
172
|
-
"3": {
|
|
173
|
-
loc: {
|
|
174
|
-
start: {
|
|
175
|
-
line: 92,
|
|
176
|
-
column: 9
|
|
177
|
-
},
|
|
178
|
-
end: {
|
|
179
|
-
line: 100,
|
|
180
|
-
column: 9
|
|
181
|
-
}
|
|
182
|
-
},
|
|
183
|
-
type: "cond-expr",
|
|
184
|
-
locations: [{
|
|
185
|
-
start: {
|
|
186
|
-
line: 93,
|
|
187
|
-
column: 10
|
|
188
|
-
},
|
|
189
|
-
end: {
|
|
190
|
-
line: 93,
|
|
191
|
-
column: 42
|
|
192
|
-
}
|
|
193
|
-
}, {
|
|
194
|
-
start: {
|
|
195
|
-
line: 95,
|
|
196
|
-
column: 10
|
|
197
|
-
},
|
|
198
|
-
end: {
|
|
199
|
-
line: 99,
|
|
200
|
-
column: 16
|
|
201
|
-
}
|
|
202
|
-
}],
|
|
203
|
-
line: 92
|
|
204
|
-
},
|
|
205
|
-
"4": {
|
|
206
|
-
loc: {
|
|
207
|
-
start: {
|
|
208
|
-
line: 101,
|
|
209
|
-
column: 9
|
|
210
|
-
},
|
|
211
|
-
end: {
|
|
212
|
-
line: 105,
|
|
213
|
-
column: 9
|
|
214
|
-
}
|
|
215
|
-
},
|
|
216
|
-
type: "binary-expr",
|
|
217
|
-
locations: [{
|
|
218
|
-
start: {
|
|
219
|
-
line: 101,
|
|
220
|
-
column: 9
|
|
221
|
-
},
|
|
222
|
-
end: {
|
|
223
|
-
line: 101,
|
|
224
|
-
column: 25
|
|
225
|
-
}
|
|
226
|
-
}, {
|
|
227
|
-
start: {
|
|
228
|
-
line: 102,
|
|
229
|
-
column: 10
|
|
230
|
-
},
|
|
231
|
-
end: {
|
|
232
|
-
line: 104,
|
|
233
|
-
column: 16
|
|
234
|
-
}
|
|
235
|
-
}],
|
|
236
|
-
line: 101
|
|
237
|
-
},
|
|
238
|
-
"5": {
|
|
239
|
-
loc: {
|
|
240
|
-
start: {
|
|
241
|
-
line: 106,
|
|
242
|
-
column: 9
|
|
243
|
-
},
|
|
244
|
-
end: {
|
|
245
|
-
line: 113,
|
|
246
|
-
column: 9
|
|
247
|
-
}
|
|
248
|
-
},
|
|
249
|
-
type: "binary-expr",
|
|
250
|
-
locations: [{
|
|
251
|
-
start: {
|
|
252
|
-
line: 106,
|
|
253
|
-
column: 9
|
|
254
|
-
},
|
|
255
|
-
end: {
|
|
256
|
-
line: 106,
|
|
257
|
-
column: 13
|
|
258
|
-
}
|
|
259
|
-
}, {
|
|
260
|
-
start: {
|
|
261
|
-
line: 107,
|
|
262
|
-
column: 10
|
|
263
|
-
},
|
|
264
|
-
end: {
|
|
265
|
-
line: 112,
|
|
266
|
-
column: 12
|
|
267
|
-
}
|
|
268
|
-
}],
|
|
269
|
-
line: 106
|
|
270
|
-
},
|
|
271
|
-
"6": {
|
|
272
|
-
loc: {
|
|
273
|
-
start: {
|
|
274
|
-
line: 115,
|
|
275
|
-
column: 7
|
|
276
|
-
},
|
|
277
|
-
end: {
|
|
278
|
-
line: 130,
|
|
279
|
-
column: 7
|
|
280
|
-
}
|
|
281
|
-
},
|
|
282
|
-
type: "binary-expr",
|
|
283
|
-
locations: [{
|
|
284
|
-
start: {
|
|
285
|
-
line: 115,
|
|
286
|
-
column: 7
|
|
287
|
-
},
|
|
288
|
-
end: {
|
|
289
|
-
line: 115,
|
|
290
|
-
column: 18
|
|
291
|
-
}
|
|
292
|
-
}, {
|
|
293
|
-
start: {
|
|
294
|
-
line: 116,
|
|
295
|
-
column: 8
|
|
296
|
-
},
|
|
297
|
-
end: {
|
|
298
|
-
line: 129,
|
|
299
|
-
column: 14
|
|
300
|
-
}
|
|
301
|
-
}],
|
|
302
|
-
line: 115
|
|
303
|
-
}
|
|
304
|
-
},
|
|
305
|
-
s: {
|
|
306
|
-
"0": 0,
|
|
307
|
-
"1": 0,
|
|
308
|
-
"2": 0
|
|
309
|
-
},
|
|
310
|
-
f: {
|
|
311
|
-
"0": 0
|
|
312
|
-
},
|
|
313
|
-
b: {
|
|
314
|
-
"0": [0, 0],
|
|
315
|
-
"1": [0, 0],
|
|
316
|
-
"2": [0, 0],
|
|
317
|
-
"3": [0, 0],
|
|
318
|
-
"4": [0, 0],
|
|
319
|
-
"5": [0, 0],
|
|
320
|
-
"6": [0, 0]
|
|
321
|
-
},
|
|
322
|
-
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
323
|
-
hash: "32018ff24a7fe6cc7b352904df5a6d8513f9fb55"
|
|
324
|
-
};
|
|
325
|
-
var coverage = global[gcv] || (global[gcv] = {});
|
|
326
|
-
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
327
|
-
coverage[path] = coverageData;
|
|
328
|
-
}
|
|
329
|
-
var actualCoverage = coverage[path];
|
|
330
|
-
{
|
|
331
|
-
// @ts-ignore
|
|
332
|
-
cov_1dl40tmc3s = function () {
|
|
333
|
-
return actualCoverage;
|
|
334
|
-
};
|
|
335
|
-
}
|
|
336
|
-
return actualCoverage;
|
|
337
|
-
}
|
|
338
|
-
cov_1dl40tmc3s();
|
|
339
|
-
cov_1dl40tmc3s().s[0]++;
|
|
340
7
|
var EmailPreview = function EmailPreview(_ref) {
|
|
341
8
|
var to = _ref.to,
|
|
342
9
|
from = _ref.from,
|
|
@@ -345,10 +12,8 @@ var EmailPreview = function EmailPreview(_ref) {
|
|
|
345
12
|
productName = _ref.productName,
|
|
346
13
|
actionButtonText = _ref.actionButtonText,
|
|
347
14
|
logo = _ref.logo;
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
t = _ref2.t;
|
|
351
|
-
cov_1dl40tmc3s().s[2]++;
|
|
15
|
+
var _useTranslation = useTranslation(),
|
|
16
|
+
t = _useTranslation.t;
|
|
352
17
|
return /*#__PURE__*/React.createElement("div", {
|
|
353
18
|
className: "neeto-ui-border-gray-300 neeto-ui-shadow-m neeto-ui-bg-white flex flex-1 flex-col border",
|
|
354
19
|
"data-cy": "email-preview-card"
|
|
@@ -362,13 +27,13 @@ var EmailPreview = function EmailPreview(_ref) {
|
|
|
362
27
|
className: "neeto-ui-text-gray-500",
|
|
363
28
|
lineHeight: "normal",
|
|
364
29
|
style: "body2"
|
|
365
|
-
}, t("neetoMolecules.emailPreview.to"), ":"), isNotEmpty(to) ?
|
|
30
|
+
}, t("neetoMolecules.emailPreview.to"), ":"), isNotEmpty(to) ? /*#__PURE__*/React.createElement(Typography, {
|
|
366
31
|
className: "neeto-ui-text-gray-800 min-w-0 flex-grow break-words",
|
|
367
32
|
lineHeight: "normal",
|
|
368
33
|
style: "body2"
|
|
369
|
-
}, to.join(", "))
|
|
34
|
+
}, to.join(", ")) : /*#__PURE__*/React.createElement("div", {
|
|
370
35
|
className: "neeto-ui-bg-gray-300 neeto-ui-rounded-full mt-2 h-2 w-40"
|
|
371
|
-
}))
|
|
36
|
+
})), from && /*#__PURE__*/React.createElement("div", {
|
|
372
37
|
className: "flex items-center gap-2 pt-3"
|
|
373
38
|
}, /*#__PURE__*/React.createElement(Typography, {
|
|
374
39
|
className: "neeto-ui-text-gray-500",
|
|
@@ -379,7 +44,7 @@ var EmailPreview = function EmailPreview(_ref) {
|
|
|
379
44
|
"data-cy": "email-send-from-preview",
|
|
380
45
|
lineHeight: "normal",
|
|
381
46
|
style: "body2"
|
|
382
|
-
}, from))
|
|
47
|
+
}, from)), /*#__PURE__*/React.createElement("div", {
|
|
383
48
|
className: "flex items-center gap-2 pt-3"
|
|
384
49
|
}, /*#__PURE__*/React.createElement(Typography, {
|
|
385
50
|
className: "neeto-ui-text-gray-500",
|
|
@@ -390,14 +55,14 @@ var EmailPreview = function EmailPreview(_ref) {
|
|
|
390
55
|
"data-cy": "email-subject-preview",
|
|
391
56
|
lineHeight: "normal",
|
|
392
57
|
style: "body2"
|
|
393
|
-
},
|
|
58
|
+
}, subject || /*#__PURE__*/React.createElement("span", {
|
|
394
59
|
className: "neeto-ui-bg-gray-300 neeto-ui-rounded-full h-2 w-40"
|
|
395
|
-
}))))
|
|
60
|
+
})))), /*#__PURE__*/React.createElement("div", {
|
|
396
61
|
className: "neeto-ui-text-gray-800 flex flex-1 flex-col justify-between space-y-6 p-6 pr-10 text-base leading-relaxed",
|
|
397
62
|
"data-cy": "email-body-preview-container"
|
|
398
|
-
}, body ?
|
|
63
|
+
}, body ? /*#__PURE__*/React.createElement(EditorContent, {
|
|
399
64
|
content: body
|
|
400
|
-
})
|
|
65
|
+
}) : /*#__PURE__*/React.createElement("div", {
|
|
401
66
|
className: "space-y-4"
|
|
402
67
|
}, /*#__PURE__*/React.createElement("div", {
|
|
403
68
|
className: "neeto-ui-bg-gray-300 neeto-ui-rounded-full h-2 w-80"
|
|
@@ -405,17 +70,17 @@ var EmailPreview = function EmailPreview(_ref) {
|
|
|
405
70
|
className: "neeto-ui-bg-gray-300 neeto-ui-rounded-full h-2 w-72"
|
|
406
71
|
}), /*#__PURE__*/React.createElement("div", {
|
|
407
72
|
className: "neeto-ui-bg-gray-300 neeto-ui-rounded-full h-2 w-80"
|
|
408
|
-
}))
|
|
73
|
+
})), actionButtonText && /*#__PURE__*/React.createElement("div", {
|
|
409
74
|
className: "mt-6 flex w-full items-center justify-center"
|
|
410
75
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
411
76
|
className: "pointer-events-none",
|
|
412
77
|
label: actionButtonText
|
|
413
|
-
}))
|
|
78
|
+
})), logo && /*#__PURE__*/React.createElement("img", {
|
|
414
79
|
alt: t("neetoMolecules.emailPreview.logoAltText"),
|
|
415
80
|
className: "h-20 w-36 object-cover",
|
|
416
81
|
"data-cy": "company-logo-preview",
|
|
417
82
|
src: logo
|
|
418
|
-
}))
|
|
83
|
+
})), productName && /*#__PURE__*/React.createElement("div", {
|
|
419
84
|
className: "neeto-ui-bg-gray-100 mt-auto p-2",
|
|
420
85
|
"data-testid": "product-name-block"
|
|
421
86
|
}, /*#__PURE__*/React.createElement(Typography, {
|
|
@@ -423,7 +88,7 @@ var EmailPreview = function EmailPreview(_ref) {
|
|
|
423
88
|
style: "body3"
|
|
424
89
|
}, t("neetoMolecules.emailPreview.poweredBy"), /*#__PURE__*/React.createElement("span", {
|
|
425
90
|
className: "neeto-ui-text-gray-800 font-medium"
|
|
426
|
-
}, productName))))
|
|
91
|
+
}, productName))));
|
|
427
92
|
};
|
|
428
93
|
|
|
429
94
|
export { EmailPreview as default };
|
package/dist/EmailPreview.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmailPreview.js","sources":["../src/components/EmailPreview.jsx"],"sourcesContent":["import React from \"react\";\n\nimport { isNotEmpty } from \"neetocommons/pure\";\nimport { EditorContent } from \"neetoeditor\";\nimport { Typography, Button } from \"neetoui\";\nimport { useTranslation } from \"react-i18next\";\n\nconst EmailPreview = ({\n to,\n from,\n subject,\n body,\n productName,\n actionButtonText,\n logo,\n}) => {\n const { t } = useTranslation();\n\n return (\n <div\n className=\"neeto-ui-border-gray-300 neeto-ui-shadow-m neeto-ui-bg-white flex flex-1 flex-col border\"\n data-cy=\"email-preview-card\"\n >\n <div className=\"neeto-ui-border-gray-300 space-y-3 divide-y divide-gray-200 border-b p-6\">\n <div\n className=\"flex gap-2\"\n data-cy=\"email-send-to-preview\"\n data-testid=\"email-to-block\"\n >\n <Typography\n className=\"neeto-ui-text-gray-500\"\n lineHeight=\"normal\"\n style=\"body2\"\n >\n {t(\"neetoMolecules.emailPreview.to\")}:\n </Typography>\n {isNotEmpty(to) ? (\n <Typography\n className=\"neeto-ui-text-gray-800 min-w-0 flex-grow break-words\"\n lineHeight=\"normal\"\n style=\"body2\"\n >\n {to.join(\", \")}\n </Typography>\n ) : (\n <div className=\"neeto-ui-bg-gray-300 neeto-ui-rounded-full mt-2 h-2 w-40\" />\n )}\n </div>\n {from && (\n <div className=\"flex items-center gap-2 pt-3\">\n <Typography\n className=\"neeto-ui-text-gray-500\"\n lineHeight=\"normal\"\n style=\"body2\"\n >\n {t(\"neetoMolecules.emailPreview.from\")}:\n </Typography>\n <Typography\n className=\"neeto-ui-text-gray-800 min-w-0 flex-grow break-words\"\n data-cy=\"email-send-from-preview\"\n lineHeight=\"normal\"\n style=\"body2\"\n >\n {from}\n </Typography>\n </div>\n )}\n <div className=\"flex items-center gap-2 pt-3\">\n <Typography\n className=\"neeto-ui-text-gray-500\"\n lineHeight=\"normal\"\n style=\"body2\"\n >\n {t(\"neetoMolecules.emailPreview.subject\")}:\n </Typography>\n <Typography\n className=\"neeto-ui-text-gray-800 min-w-0 flex-grow break-words\"\n data-cy=\"email-subject-preview\"\n lineHeight=\"normal\"\n style=\"body2\"\n >\n {subject || (\n <span className=\"neeto-ui-bg-gray-300 neeto-ui-rounded-full h-2 w-40\" />\n )}\n </Typography>\n </div>\n </div>\n <div\n className=\"neeto-ui-text-gray-800 flex flex-1 flex-col justify-between space-y-6 p-6 pr-10 text-base leading-relaxed\"\n data-cy=\"email-body-preview-container\"\n >\n {body ? (\n <EditorContent content={body} />\n ) : (\n <div className=\"space-y-4\">\n <div className=\"neeto-ui-bg-gray-300 neeto-ui-rounded-full h-2 w-80\" />\n <div className=\"neeto-ui-bg-gray-300 neeto-ui-rounded-full h-2 w-72\" />\n <div className=\"neeto-ui-bg-gray-300 neeto-ui-rounded-full h-2 w-80\" />\n </div>\n )}\n {actionButtonText && (\n <div className=\"mt-6 flex w-full items-center justify-center\">\n <Button className=\"pointer-events-none\" label={actionButtonText} />\n </div>\n )}\n {logo && (\n <img\n alt={t(\"neetoMolecules.emailPreview.logoAltText\")}\n className=\"h-20 w-36 object-cover\"\n data-cy=\"company-logo-preview\"\n src={logo}\n />\n )}\n </div>\n {productName && (\n <div\n className=\"neeto-ui-bg-gray-100 mt-auto p-2\"\n data-testid=\"product-name-block\"\n >\n <Typography\n className=\"neeto-ui-text-gray-600 text-center leading-6\"\n style=\"body3\"\n >\n {t(\"neetoMolecules.emailPreview.poweredBy\")}\n <span className=\"neeto-ui-text-gray-800 font-medium\">\n {productName}\n </span>\n </Typography>\n </div>\n )}\n </div>\n );\n};\n\nexport default EmailPreview;\n"],"names":["
|
|
1
|
+
{"version":3,"file":"EmailPreview.js","sources":["../src/components/EmailPreview.jsx"],"sourcesContent":["import React from \"react\";\n\nimport { isNotEmpty } from \"neetocommons/pure\";\nimport { EditorContent } from \"neetoeditor\";\nimport { Typography, Button } from \"neetoui\";\nimport { useTranslation } from \"react-i18next\";\n\nconst EmailPreview = ({\n to,\n from,\n subject,\n body,\n productName,\n actionButtonText,\n logo,\n}) => {\n const { t } = useTranslation();\n\n return (\n <div\n className=\"neeto-ui-border-gray-300 neeto-ui-shadow-m neeto-ui-bg-white flex flex-1 flex-col border\"\n data-cy=\"email-preview-card\"\n >\n <div className=\"neeto-ui-border-gray-300 space-y-3 divide-y divide-gray-200 border-b p-6\">\n <div\n className=\"flex gap-2\"\n data-cy=\"email-send-to-preview\"\n data-testid=\"email-to-block\"\n >\n <Typography\n className=\"neeto-ui-text-gray-500\"\n lineHeight=\"normal\"\n style=\"body2\"\n >\n {t(\"neetoMolecules.emailPreview.to\")}:\n </Typography>\n {isNotEmpty(to) ? (\n <Typography\n className=\"neeto-ui-text-gray-800 min-w-0 flex-grow break-words\"\n lineHeight=\"normal\"\n style=\"body2\"\n >\n {to.join(\", \")}\n </Typography>\n ) : (\n <div className=\"neeto-ui-bg-gray-300 neeto-ui-rounded-full mt-2 h-2 w-40\" />\n )}\n </div>\n {from && (\n <div className=\"flex items-center gap-2 pt-3\">\n <Typography\n className=\"neeto-ui-text-gray-500\"\n lineHeight=\"normal\"\n style=\"body2\"\n >\n {t(\"neetoMolecules.emailPreview.from\")}:\n </Typography>\n <Typography\n className=\"neeto-ui-text-gray-800 min-w-0 flex-grow break-words\"\n data-cy=\"email-send-from-preview\"\n lineHeight=\"normal\"\n style=\"body2\"\n >\n {from}\n </Typography>\n </div>\n )}\n <div className=\"flex items-center gap-2 pt-3\">\n <Typography\n className=\"neeto-ui-text-gray-500\"\n lineHeight=\"normal\"\n style=\"body2\"\n >\n {t(\"neetoMolecules.emailPreview.subject\")}:\n </Typography>\n <Typography\n className=\"neeto-ui-text-gray-800 min-w-0 flex-grow break-words\"\n data-cy=\"email-subject-preview\"\n lineHeight=\"normal\"\n style=\"body2\"\n >\n {subject || (\n <span className=\"neeto-ui-bg-gray-300 neeto-ui-rounded-full h-2 w-40\" />\n )}\n </Typography>\n </div>\n </div>\n <div\n className=\"neeto-ui-text-gray-800 flex flex-1 flex-col justify-between space-y-6 p-6 pr-10 text-base leading-relaxed\"\n data-cy=\"email-body-preview-container\"\n >\n {body ? (\n <EditorContent content={body} />\n ) : (\n <div className=\"space-y-4\">\n <div className=\"neeto-ui-bg-gray-300 neeto-ui-rounded-full h-2 w-80\" />\n <div className=\"neeto-ui-bg-gray-300 neeto-ui-rounded-full h-2 w-72\" />\n <div className=\"neeto-ui-bg-gray-300 neeto-ui-rounded-full h-2 w-80\" />\n </div>\n )}\n {actionButtonText && (\n <div className=\"mt-6 flex w-full items-center justify-center\">\n <Button className=\"pointer-events-none\" label={actionButtonText} />\n </div>\n )}\n {logo && (\n <img\n alt={t(\"neetoMolecules.emailPreview.logoAltText\")}\n className=\"h-20 w-36 object-cover\"\n data-cy=\"company-logo-preview\"\n src={logo}\n />\n )}\n </div>\n {productName && (\n <div\n className=\"neeto-ui-bg-gray-100 mt-auto p-2\"\n data-testid=\"product-name-block\"\n >\n <Typography\n className=\"neeto-ui-text-gray-600 text-center leading-6\"\n style=\"body3\"\n >\n {t(\"neetoMolecules.emailPreview.poweredBy\")}\n <span className=\"neeto-ui-text-gray-800 font-medium\">\n {productName}\n </span>\n </Typography>\n </div>\n )}\n </div>\n );\n};\n\nexport default EmailPreview;\n"],"names":["EmailPreview","_ref","to","from","subject","body","productName","actionButtonText","logo","_useTranslation","useTranslation","t","React","createElement","className","Typography","lineHeight","style","isNotEmpty","join","EditorContent","content","Button","label","alt","src"],"mappings":";;;;;;AAOA,IAAMA,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAQZ;AAAA,EAAA,IAPJC,EAAE,GAAAD,IAAA,CAAFC,EAAE;IACFC,IAAI,GAAAF,IAAA,CAAJE,IAAI;IACJC,OAAO,GAAAH,IAAA,CAAPG,OAAO;IACPC,IAAI,GAAAJ,IAAA,CAAJI,IAAI;IACJC,WAAW,GAAAL,IAAA,CAAXK,WAAW;IACXC,gBAAgB,GAAAN,IAAA,CAAhBM,gBAAgB;IAChBC,IAAI,GAAAP,IAAA,CAAJO,IAAI,CAAA;EAEJ,IAAAC,eAAA,GAAcC,cAAc,EAAE;IAAtBC,CAAC,GAAAF,eAAA,CAADE,CAAC,CAAA;EAET,oBACEC,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AACEC,IAAAA,SAAS,EAAC,0FAA0F;IACpG,SAAQ,EAAA,oBAAA;GAERF,eAAAA,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,0EAAA;GACbF,eAAAA,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AACEC,IAAAA,SAAS,EAAC,YAAY;AACtB,IAAA,SAAA,EAAQ,uBAAuB;IAC/B,aAAY,EAAA,gBAAA;AAAgB,GAAA,eAE5BF,KAAA,CAAAC,aAAA,CAACE,UAAU,EAAA;AACTD,IAAAA,SAAS,EAAC,wBAAwB;AAClCE,IAAAA,UAAU,EAAC,QAAQ;AACnBC,IAAAA,KAAK,EAAC,OAAA;AAAO,GAAA,EAEZN,CAAC,CAAC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