@capillarytech/creatives-library 7.7.13 → 7.7.14

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.7.13",
4
+ "version": "7.7.14",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -474,9 +474,9 @@ export const Advertisement = (props) => {
474
474
  if (webSiteLink === "" || errorMsg.websiteLinkErrorMsg ) {
475
475
  flag = true;
476
476
  }
477
- if (Object.keys(imageData).length === 0 && subType === IMAGE) {
477
+ if (!imageData?.imageSrc && subType === IMAGE) {
478
478
  flag = true;
479
- } else if (Object.keys(videoData).length === 0 && subType === VIDEO) {
479
+ } else if (!videoData?.videoSrc && subType === VIDEO) {
480
480
  flag = true;
481
481
  }
482
482
  subTypes.push(subType);
@@ -21,7 +21,7 @@ $classPrefix: add-facebook-ad-section;
21
21
  display: inline-block;
22
22
  }
23
23
  .cap-input-edit-name{
24
- width: 500px;
24
+ width: 319px;
25
25
  }
26
26
  .cap-link-edit-name{
27
27
  display: inline-block;
@@ -32,8 +32,7 @@
32
32
  padding: $CAP_SPACE_16 $CAP_SPACE_12;
33
33
 
34
34
  .ant-card-meta-description {
35
- height: 250px;
36
- word-wrap: break-word;
35
+ height: 222px;
37
36
  }
38
37
  }
39
38
 
@@ -41,6 +40,9 @@
41
40
  .ant-card-body {
42
41
  padding: $CAP_SPACE_24 0;
43
42
  }
43
+ .ant-card-meta-description {
44
+ height: 250px;
45
+ }
44
46
  .ant-card-meta {
45
47
  padding: 0;
46
48
  }
@@ -1418,7 +1418,11 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
1418
1418
  }
1419
1419
  }
1420
1420
  if (this.isEnabledInLibraryModule("callSelectFromProps")) {
1421
- this.props.onSelectTemplate(this.selectTemplate(id), this.props.fbAdManager);
1421
+ let data =id;
1422
+ if(this.props.fbAdManager){
1423
+ data = this.selectTemplate(id)
1424
+ }
1425
+ this.props.onSelectTemplate(data, this.props.fbAdManager);
1422
1426
  } else {
1423
1427
  timeTracker.startTimer(CHANNEL_EDIT_TRACK_MAPPING[this.state.channel.toLowerCase()]);
1424
1428
  if (this.state.channel.toLowerCase() === 'ebill') {
@@ -1433,7 +1437,6 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
1433
1437
 
1434
1438
  selectTemplate = (id) => find(this.props.TemplatesList, {_id: id})
1435
1439
 
1436
-
1437
1440
  handlePreviewClick(template, modeType) {
1438
1441
  this.togglePreview();
1439
1442
  const templateInfo = cloneDeep(template);
@@ -220,7 +220,7 @@ export class TemplatesV2 extends React.Component { // eslint-disable-line react/
220
220
  router={this.props.router}
221
221
  isFullMode={this.props.isFullMode}
222
222
  createNew={this.props.createNew}
223
- onSelectTemplate={this.props.onSelectTemplate}
223
+ onSelectTemplate={(id) => this.props.onSelectTemplate(this.selectTemplate(id))}
224
224
  renderNewCardGrid={this.getTemplateDataForGrid}
225
225
  handlePeviewTemplate={this.props.handlePeviewTemplate}
226
226
  messageStrategy={this.props.messageStrategy}