@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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "7.11.6",
4
+ "version": "7.11.8",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -43,7 +43,6 @@
43
43
  &.line-preview {
44
44
  margin-left: $CAP_SPACE_16;
45
45
  width: 40%;
46
- left: 197px;
47
46
 
48
47
  .message-pop {
49
48
  width: 80%;
@@ -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: '32px 0',
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
- delete androidContent.cuid;
469
- delete androidContent.luid;
470
- delete androidContent.communicationId;
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
- delete iosContent.cuid;
483
- delete iosContent.luid;
484
- delete iosContent.communicationId;
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;