@capillarytech/creatives-library 8.0.136-beta.3 → 8.0.136
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/package.json +1 -1
- package/utils/createMobilePushPayload.js +1 -0
- package/utils/transformerUtils.js +0 -194
- package/v2Components/TemplatePreview/_templatePreview.scss +10 -1
- package/v2Containers/Line/Container/Image/index.js +3 -3
- package/v2Containers/Line/Container/Text/index.js +5 -5
- package/v2Containers/Line/Container/_lineCreate.scss +2 -0
- package/v2Containers/MobilePushNew/components/MediaUploaders.js +29 -4
- package/v2Containers/MobilePushNew/components/PlatformContentFields.js +21 -3
- package/v2Containers/MobilePushNew/constants.js +0 -1
- package/v2Containers/MobilePushNew/index.js +738 -182
- package/v2Containers/MobilePushNew/index.scss +48 -21
- package/v2Containers/Templates/index.js +33 -39
- package/v2Containers/Whatsapp/index.scss +6 -6
|
@@ -38,8 +38,6 @@
|
|
|
38
38
|
align-items: center;
|
|
39
39
|
justify-content: space-between;
|
|
40
40
|
margin-bottom: $CAP_SPACE_24;
|
|
41
|
-
border-bottom: 1px solid #e0e0e0;
|
|
42
|
-
padding-bottom: $CAP_SPACE_16;
|
|
43
41
|
}
|
|
44
42
|
|
|
45
43
|
.platform-header .platform-tabs {
|
|
@@ -226,6 +224,7 @@
|
|
|
226
224
|
.carousel-media-selection {
|
|
227
225
|
display: flex;
|
|
228
226
|
align-items: center;
|
|
227
|
+
|
|
229
228
|
.carousel-media-selection-heading {
|
|
230
229
|
margin-right: 20px;
|
|
231
230
|
}
|
|
@@ -238,30 +237,56 @@
|
|
|
238
237
|
|
|
239
238
|
.mobile-push-carousel-tab {
|
|
240
239
|
max-width: 39.063rem;
|
|
240
|
+
|
|
241
241
|
.ant-tabs-extra-content {
|
|
242
242
|
padding: 0;
|
|
243
243
|
line-height: normal;
|
|
244
|
+
|
|
244
245
|
.add-carousel-content-button {
|
|
245
246
|
padding: 0.642rem 0px;
|
|
246
247
|
margin: 0;
|
|
247
248
|
}
|
|
248
|
-
|
|
249
|
+
|
|
250
|
+
.cap-divider-v2 {
|
|
249
251
|
height: 1.5rem;
|
|
250
252
|
margin-bottom: 0.499rem;
|
|
251
253
|
}
|
|
252
254
|
}
|
|
255
|
+
|
|
253
256
|
.ant-tabs-tabpane {
|
|
254
257
|
min-height: unset;
|
|
255
258
|
}
|
|
256
259
|
}
|
|
257
260
|
|
|
261
|
+
.mobile-push-carousel-message-heading {
|
|
262
|
+
margin-top: 24px;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.mobile-push-media-radio>label.ant-radio-wrapper {
|
|
266
|
+
margin-right: 50px;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.mobile-push-create-template-message-input-wrapper {
|
|
270
|
+
position: relative;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.cap-custom-image-upload {
|
|
274
|
+
.dragger-button.re-upload {
|
|
275
|
+
top: -150px;
|
|
276
|
+
position: relative;
|
|
277
|
+
left: 509px;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
258
281
|
.mobile-push-carousel-card {
|
|
259
282
|
.ant-card-head {
|
|
260
283
|
border-bottom: none;
|
|
261
284
|
}
|
|
285
|
+
|
|
262
286
|
.ant-card-body {
|
|
263
287
|
padding-top: 0px;
|
|
264
288
|
}
|
|
289
|
+
|
|
265
290
|
.ant-card-head-wrapper {
|
|
266
291
|
.ant-card-extra {
|
|
267
292
|
.cap-button-v2 {
|
|
@@ -269,40 +294,42 @@
|
|
|
269
294
|
}
|
|
270
295
|
}
|
|
271
296
|
}
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
.mobile-push-carousel-message-heading {
|
|
275
|
-
margin-top: 24px;
|
|
276
|
-
}
|
|
277
297
|
|
|
278
|
-
.
|
|
279
|
-
margin-right: 50px;
|
|
280
|
-
}
|
|
298
|
+
.cap-custom-image-upload {
|
|
281
299
|
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
300
|
+
// Override FormBuilder CSS for carousel images
|
|
301
|
+
.image-container {
|
|
302
|
+
img {
|
|
303
|
+
object-fit: cover !important;
|
|
304
|
+
max-width: 300px;
|
|
305
|
+
max-height: 150px !important;
|
|
306
|
+
display: block !important;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
285
309
|
|
|
286
|
-
.
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
color: #666;
|
|
310
|
+
.dragger-button.re-upload {
|
|
311
|
+
top: -150px;
|
|
312
|
+
position: relative;
|
|
313
|
+
left: 400px;
|
|
314
|
+
}
|
|
292
315
|
}
|
|
293
316
|
}
|
|
294
317
|
|
|
295
318
|
.cap-custom-video-upload {
|
|
296
319
|
padding-top: 20px;
|
|
320
|
+
|
|
297
321
|
.dragger-button.re-upload {
|
|
298
322
|
top: -175px;
|
|
299
323
|
position: relative;
|
|
300
324
|
left: 525px;
|
|
301
|
-
color: #666;
|
|
302
325
|
}
|
|
303
326
|
}
|
|
304
327
|
|
|
305
328
|
.note-message-container {
|
|
306
329
|
display: flex;
|
|
307
330
|
align-items: center;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.save-section {
|
|
334
|
+
margin-bottom: $CAP_SPACE_12;
|
|
308
335
|
}
|
|
@@ -1284,29 +1284,40 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
|
|
|
1284
1284
|
if (isEmpty(androidData) || !androidData?.title) {
|
|
1285
1285
|
mpushListingData = iosData;
|
|
1286
1286
|
};
|
|
1287
|
-
const { title, message, expandableDetails: { style = '', image, carouselData = [], ctas = [] } = {} } = mpushListingData || {};
|
|
1287
|
+
const { title, message, expandableDetails: { style = '', image, carouselData = [], ctas = [], media = [] } = {} } = mpushListingData || {};
|
|
1288
|
+
const {previewImg = ''} = media?.[0] || {};
|
|
1288
1289
|
templateData.content = (
|
|
1289
|
-
<
|
|
1290
|
-
<
|
|
1291
|
-
<
|
|
1290
|
+
<div className='mobilepush-container'>
|
|
1291
|
+
<div className="app-header">
|
|
1292
|
+
<div className="app-header-left">
|
|
1292
1293
|
<span className="app-icon">{""}</span>
|
|
1293
1294
|
<CapLabel type="label4">{title}</CapLabel>
|
|
1294
|
-
</
|
|
1295
|
-
</
|
|
1295
|
+
</div>
|
|
1296
|
+
</div>
|
|
1296
1297
|
<CapLabel className="mobilepush-message" type="label1">{message}</CapLabel>
|
|
1297
1298
|
{style === BIG_PICTURE && (
|
|
1298
1299
|
<CapImage src={image} className="mobilepush-image mobilepush-image-padding" />
|
|
1299
1300
|
)}
|
|
1301
|
+
{style === VIDEO && (
|
|
1302
|
+
<div className="video-preview">
|
|
1303
|
+
<video>
|
|
1304
|
+
<source src={previewImg} type="video/mp4" />
|
|
1305
|
+
</video>
|
|
1306
|
+
<div className="icon-position">
|
|
1307
|
+
<CapImage className="video-icon" src={videoPlay} />
|
|
1308
|
+
</div>
|
|
1309
|
+
</div>
|
|
1310
|
+
)}
|
|
1300
1311
|
{(style === MANUAL_CAROUSEL || style === AUTO_CAROUSEL || style === FILMSTRIP_CAROUSEL) && (
|
|
1301
|
-
<
|
|
1312
|
+
<div className="scroll-container">
|
|
1302
1313
|
{carouselData.map((data, index) => {
|
|
1303
1314
|
return (
|
|
1304
|
-
<
|
|
1315
|
+
<div
|
|
1305
1316
|
key={`carousel-${index + 1}`}
|
|
1306
1317
|
className="whatsapp-carousel-container"
|
|
1307
1318
|
role="group"
|
|
1308
1319
|
>
|
|
1309
|
-
<
|
|
1320
|
+
<div className="whatsapp-carousel-card">
|
|
1310
1321
|
{data?.mediaType === IMAGE.toLowerCase() && (
|
|
1311
1322
|
<CapImage
|
|
1312
1323
|
src={data?.imageUrl ? data?.imageUrl : whatsappImageEmptyPreview}
|
|
@@ -1314,55 +1325,38 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
|
|
|
1314
1325
|
/>
|
|
1315
1326
|
)}
|
|
1316
1327
|
{data?.mediaType === VIDEO.toLowerCase() && (
|
|
1317
|
-
<
|
|
1328
|
+
<div className="video-preview">
|
|
1318
1329
|
<CapImage
|
|
1319
|
-
src={data?.
|
|
1330
|
+
src={data?.videoPreviewImg ? data?.videoPreviewImg : whatsappVideoEmptyPreview}
|
|
1320
1331
|
className="whatsapp-image"
|
|
1321
1332
|
/>
|
|
1322
|
-
<
|
|
1333
|
+
<div className="icon-position">
|
|
1323
1334
|
<CapImage
|
|
1324
1335
|
className="video-icon"
|
|
1325
1336
|
src={videoPlay}
|
|
1326
1337
|
/>
|
|
1327
|
-
</
|
|
1328
|
-
</
|
|
1338
|
+
</div>
|
|
1339
|
+
</div>
|
|
1329
1340
|
)}
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
<CapCard className="image-preview">
|
|
1333
|
-
<CapImage
|
|
1334
|
-
src={data?.imageUrl ? data?.imageUrl : whatsappImageEmptyPreview}
|
|
1335
|
-
className="whatsapp-image"
|
|
1336
|
-
/>
|
|
1337
|
-
<CapCard className="icon-position">
|
|
1338
|
-
<CapImage
|
|
1339
|
-
className="video-icon"
|
|
1340
|
-
src={data?.imageUrl ? data?.imageUrl : whatsappImageEmptyPreview}
|
|
1341
|
-
/>
|
|
1342
|
-
</CapCard>
|
|
1343
|
-
</CapCard>
|
|
1344
|
-
)
|
|
1345
|
-
}
|
|
1346
|
-
</CapCard>
|
|
1347
|
-
</CapCard>
|
|
1341
|
+
</div>
|
|
1342
|
+
</div>
|
|
1348
1343
|
)
|
|
1349
1344
|
})}
|
|
1350
|
-
</
|
|
1345
|
+
</div>
|
|
1351
1346
|
)}
|
|
1352
1347
|
{ctas.length > 0 && (
|
|
1353
|
-
<
|
|
1348
|
+
<div className="actions">
|
|
1354
1349
|
{ctas.map((cta) => (
|
|
1355
|
-
<
|
|
1350
|
+
<span
|
|
1356
1351
|
className="action"
|
|
1357
1352
|
key={`action-${cta?.actionText}`}
|
|
1358
|
-
type="label1"
|
|
1359
1353
|
>
|
|
1360
1354
|
{cta?.actionText && cta?.actionText.toUpperCase()}
|
|
1361
|
-
</
|
|
1355
|
+
</span>
|
|
1362
1356
|
))}
|
|
1363
|
-
</
|
|
1357
|
+
</div>
|
|
1364
1358
|
)}
|
|
1365
|
-
</
|
|
1359
|
+
</div>
|
|
1366
1360
|
);
|
|
1367
1361
|
templateData.isNewMobilePush = commonUtil.hasNewMobilePushFeatureEnabled();
|
|
1368
1362
|
}
|
|
@@ -163,26 +163,26 @@
|
|
|
163
163
|
|
|
164
164
|
.cap-custom-image-upload {
|
|
165
165
|
.dragger-button.re-upload {
|
|
166
|
-
top: -
|
|
166
|
+
top: -9.4375rem;
|
|
167
167
|
position: relative;
|
|
168
|
-
left:
|
|
168
|
+
left: 31.8125rem;
|
|
169
169
|
color: $FONT_COLOR_05;
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
.cap-custom-video-upload {
|
|
173
173
|
padding-top: $CAP_SPACE_20;
|
|
174
174
|
.dragger-button.re-upload {
|
|
175
|
-
top: -
|
|
175
|
+
top: -10.9375rem;
|
|
176
176
|
position: relative;
|
|
177
|
-
left:
|
|
177
|
+
left: 32.8125rem;
|
|
178
178
|
color: $FONT_COLOR_05;
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
.cap-custom-document-upload {
|
|
182
182
|
.dragger-button.re-upload {
|
|
183
|
-
top: -
|
|
183
|
+
top: -9.375rem;
|
|
184
184
|
position: relative;
|
|
185
|
-
left:
|
|
185
|
+
left: 32.8125rem;
|
|
186
186
|
color: $FONT_COLOR_05;
|
|
187
187
|
}
|
|
188
188
|
}
|