@capillarytech/creatives-library 7.11.6 → 7.11.8
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
CHANGED
|
@@ -450,6 +450,7 @@ export class TemplatePreview extends React.Component { // eslint-disable-line re
|
|
|
450
450
|
overflow: 'auto',
|
|
451
451
|
flexDirection: 'column',
|
|
452
452
|
marginLeft: 40,
|
|
453
|
+
left: !this.props.showCount && '200px',
|
|
453
454
|
}}
|
|
454
455
|
>
|
|
455
456
|
<div
|
|
@@ -590,7 +591,7 @@ export class TemplatePreview extends React.Component { // eslint-disable-line re
|
|
|
590
591
|
return (
|
|
591
592
|
<div
|
|
592
593
|
style={{
|
|
593
|
-
margin: '
|
|
594
|
+
margin: '6px 0 20px 28px',
|
|
594
595
|
}}
|
|
595
596
|
>
|
|
596
597
|
<Carousel imageCarousel={imageCarousel}/>
|
|
@@ -462,12 +462,15 @@ export class Creatives extends React.Component {
|
|
|
462
462
|
const type = (get(this.props, "messageDetails.type") || '').toLowerCase();
|
|
463
463
|
if (type === LOYALTY) {
|
|
464
464
|
templateData.licenseCode = get(mobilpushTemplate, 'definition.licenseCode');
|
|
465
|
+
templateData.templateId = get(mobilpushTemplate, '_id');
|
|
465
466
|
}
|
|
466
467
|
const androidContent = get(mobilpushTemplate, 'versions.base.ANDROID');
|
|
467
468
|
if (!isEmpty(androidContent)) {
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
469
|
+
if (type !== LOYALTY) {
|
|
470
|
+
delete androidContent.cuid;
|
|
471
|
+
delete androidContent.luid;
|
|
472
|
+
delete androidContent.communicationId;
|
|
473
|
+
}
|
|
471
474
|
const custom = {};
|
|
472
475
|
forEach(androidContent.custom, (customKeyValue) => {
|
|
473
476
|
custom[customKeyValue.key] = customKeyValue.value;
|
|
@@ -479,9 +482,11 @@ export class Creatives extends React.Component {
|
|
|
479
482
|
}
|
|
480
483
|
const iosContent = get(mobilpushTemplate, 'versions.base.IOS');
|
|
481
484
|
if (!isEmpty(iosContent)) {
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
+
if (type !== LOYALTY) {
|
|
486
|
+
delete iosContent.cuid;
|
|
487
|
+
delete iosContent.luid;
|
|
488
|
+
delete iosContent.communicationId;
|
|
489
|
+
}
|
|
485
490
|
const custom = {};
|
|
486
491
|
forEach(iosContent.custom, (customKeyValue) => {
|
|
487
492
|
custom[customKeyValue.key] = customKeyValue.value;
|
|
Binary file
|