@capillarytech/creatives-library 7.12.57 → 7.12.58

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.12.57",
4
+ "version": "7.12.58",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -259,7 +259,7 @@
259
259
  margin: 8px 0;
260
260
  }
261
261
  .whatsapp-cta-preview{
262
- font-family: 'Roboto';
262
+ font-family: Roboto, 'Open Sans', sans-serif;
263
263
  font-size: 10px;
264
264
  display: flex;
265
265
  align-content: center;
@@ -271,6 +271,7 @@
271
271
  margin-left: 28px;
272
272
  }
273
273
  .whatsapp-content{
274
+ font-family: Roboto, 'Open Sans', sans-serif;
274
275
  margin: 2px 6px 1px 7px;
275
276
  }
276
277
  .whatsapp-image{
@@ -725,7 +725,7 @@ export class TemplatePreview extends React.Component { // eslint-disable-line re
725
725
  />
726
726
  <div className="msg-container whatsapp-message-container">
727
727
  <div className="message-pop align-left" style={whatsappSectionStyle}>
728
- <CapLabel className="whatsapp-content">
728
+ <div className="whatsapp-content">
729
729
  {content?.whatsappImageSrc && (
730
730
  <CapImage
731
731
  src={content.whatsappImageSrc}
@@ -734,8 +734,8 @@ export class TemplatePreview extends React.Component { // eslint-disable-line re
734
734
  />
735
735
  )}
736
736
  {content?.templateMsg || ''}
737
- </CapLabel>
738
- {renderWhatsappCtaPreview()}
737
+ {renderWhatsappCtaPreview()}
738
+ </div>
739
739
  </div>
740
740
  </div>
741
741
  </div>
@@ -378,7 +378,7 @@ export class Creatives extends React.Component {
378
378
  buttonType = 'NONE',
379
379
  buttons = [],
380
380
  mediaType = 'TEXT',
381
- media: { url: imageUrl = '' } = {},
381
+ whatsappMedia: { url: imageUrl = '' } = {},
382
382
  } = {},
383
383
  } = templateData;
384
384
  const modifiedButtons = cloneDeep(buttons).map((btn) => {
@@ -618,7 +618,7 @@ export class Creatives extends React.Component {
618
618
  buttonType,
619
619
  buttons: modifiedButtons,
620
620
  mediaType,
621
- media: {
621
+ whatsappMedia: {
622
622
  url: imageUrl,
623
623
  },
624
624
  },