@capillarytech/creatives-library 7.10.56 → 7.10.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.10.56",
4
+ "version": "7.10.58",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -12,6 +12,7 @@
12
12
  },
13
13
  "license": "LicenseRef-LICENSE",
14
14
  "dependencies": {
15
+ "@babel/polyfill": "7.4.3",
15
16
  "@bugsnag/js": "^7.2.1",
16
17
  "@bugsnag/plugin-react": "^7.2.1",
17
18
  "@capillarytech/cap-ui-utils": "1.4.2",
@@ -292,6 +292,8 @@ class TemplatePreview extends React.Component { // eslint-disable-line react/pre
292
292
  </div>
293
293
  );
294
294
 
295
+ const whatsappUpdatedAccountName = whatsappAccountName || _.get(templateData, 'versions.base.content.whatsapp.accountName', '');
296
+
295
297
  return (
296
298
  <CapRow>
297
299
  {this.props.showCount && (channel && channel.toLowerCase() !== FACEBOOK) && <CapColumn span={16}>
@@ -692,7 +694,7 @@ class TemplatePreview extends React.Component { // eslint-disable-line react/pre
692
694
  alt={formatMessage(messages.previewGenerated)}
693
695
  />
694
696
  <CapLabel className='whatsapp-brand-name'>
695
- {whatsappAccountName || ''}
697
+ {whatsappUpdatedAccountName || ''}
696
698
  </CapLabel>
697
699
  <div className='msg-container whatsapp-message-container'>
698
700
  <div className='message-pop align-left' style={whatsappSectionStyle}>
@@ -158,7 +158,7 @@ export default defineMessages({
158
158
  defaultMessage: 'Watch More',
159
159
  },
160
160
  "done": {
161
- id: `creatives.containersV2.watchMore`,
161
+ id: `creatives.containersV2.done`,
162
162
  defaultMessage: 'Done',
163
163
  },
164
164
  });
@@ -555,12 +555,12 @@ class Creatives extends React.Component {
555
555
  templateConfigs: {
556
556
  id: template._id,
557
557
  name: template?.value?.name,
558
- template, templateEditor,
558
+ template: templateEditor,
559
559
  varMapped,
560
560
  category,
561
561
  language: languages[0].language,
562
562
  mediaType,
563
- }
563
+ },
564
564
  };
565
565
  }
566
566
  break;