@capillarytech/creatives-library 3.12.4 → 3.12.6

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": "3.12.4",
4
+ "version": "3.12.6",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -56,10 +56,12 @@ const getLineType = ({
56
56
  return {
57
57
  isEdit: true,
58
58
  };
59
+ } else if (isDefault) {
60
+ return {
61
+ isCreate: true,
62
+ };
59
63
  }
60
- return {
61
- isCreate: true,
62
- };
64
+ return {};
63
65
  }
64
66
  return {
65
67
  isCreate,
@@ -479,7 +479,7 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
479
479
  }
480
480
  this.edmEvent = undefined;
481
481
  } else {
482
- this.state.editorInstanse.insertHtml(`<img src='${nextProps.Email.uploadedAssetData.metaInfo.secure_file_path}' alt='Capillary Image'>`);
482
+ this.state.editorInstanse.insertHtml(`<CapImage src='${nextProps.Email.uploadedAssetData.metaInfo.secure_file_path}' alt='Capillary Image'>`);
483
483
  //this.resetCkEditorInstance(this.state.currentTab, this.state.formData, true, nextProps.Email.uploadedAssetData, true);
484
484
  }
485
485
  this.setState({showImageSelectionBox: false});
@@ -1073,7 +1073,7 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
1073
1073
  if (onInsert && !isImage) {
1074
1074
  this.state.editorInstanse.insertHtml(`{{${value}}}`);
1075
1075
  } else if (onInsert) {
1076
- this.state.editorInstanse.insertHtml(`<img src='${value.metaInfo.secure_file_path}' alt='Capillary Image'>`);
1076
+ this.state.editorInstanse.insertHtml(`<CapImage src='${value.metaInfo.secure_file_path}' alt='Capillary Image'>`);
1077
1077
  }
1078
1078
  });
1079
1079
  }
@@ -1506,7 +1506,7 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
1506
1506
  }
1507
1507
  this.edmEvent = undefined;
1508
1508
  } else {
1509
- this.state.editorInstanse.insertHtml(`<img src='${data.metaInfo.secure_file_path}' alt='Capillary Image'>`);
1509
+ this.state.editorInstanse.insertHtml(`<CapImage src='${data.metaInfo.secure_file_path}' alt='Capillary Image'>`);
1510
1510
  //this.resetCkEditorInstance(this.state.currentTab, this.state.formData, true, data, true);
1511
1511
  }
1512
1512
  }
@@ -1853,7 +1853,7 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
1853
1853
  }
1854
1854
 
1855
1855
  selectAsset = (asset) => {
1856
- this.state.editorInstanse.insertHtml(`<img src='${asset}' alt='Capillary Image'>`);
1856
+ this.state.editorInstanse.insertHtml(`<CapImage src='${asset}' alt='Capillary Image'>`);
1857
1857
  }
1858
1858
 
1859
1859
  prepareImageData() {