@capillarytech/creatives-library 3.0.15 → 3.0.16

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.
@@ -51,12 +51,6 @@ export function fetchSchemaForEntity(queryParams) {
51
51
  };
52
52
  }
53
53
 
54
- export function removeEntitySchema() {
55
- return {
56
- type: types.ROMOVE_ENTITY_SCHEMA,
57
- };
58
- }
59
-
60
54
  export function setInjectedTags(injectedTags) {
61
55
  return {
62
56
  type: types.SET_INJECTED_TAGS, injectedTags,
@@ -18,7 +18,6 @@ export const GET_USER_DATA_FAILURE = 'cap/GET_USER_DATA_FAILURE';
18
18
  export const GET_SCHEMA_FOR_ENTITY_FAILURE = 'cap/GET_SCHEMA_FOR_ENTITY_FAILURE';
19
19
  export const GET_SCHEMA_FOR_ENTITY_REQUEST = 'cap/GET_SCHEMA_FOR_ENTITY_REQUEST';
20
20
  export const GET_SCHEMA_FOR_ENTITY_SUCCESS = 'cap/GET_SCHEMA_FOR_ENTITY_SUCCESS';
21
- export const ROMOVE_ENTITY_SCHEMA = 'cap/ROMOVE_ENTITY_SCHEMA';
22
21
  export const CLEAR_META_ENTITIES = 'cap/CLEAR_META_ENTITIES';
23
22
  export const HIDE_TAGS = 'cap/HIDE_TAGS';
24
23
 
@@ -90,8 +90,6 @@ function capReducer(state = fromJS(initialState), action) {
90
90
  tags: action.data && action.entityType === 'TAG' ? action.data.metaEntities : stateMeta.tags,
91
91
  });
92
92
  }
93
- case types.ROMOVE_ENTITY_SCHEMA:
94
- return state.set('metaEntities', {});
95
93
  case types.CLEAR_META_ENTITIES:
96
94
  return state.set('metaEntities', {
97
95
  layouts: [],
@@ -2537,15 +2537,13 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
2537
2537
  });
2538
2538
  }
2539
2539
  });
2540
- if (temp.standalone.sections && temp.standalone.sections.length > 0) {
2541
- _.forEach(temp.standalone.sections[1].inputFields[0].cols, (inputField) => {
2542
- if (inputField.id === "template-version") {
2543
- const iF = inputField;
2544
- iF.colStyle = {};
2545
- iF.colStyle.display = "none";
2546
- }
2547
- });
2548
- }
2540
+ _.forEach(temp.standalone.sections[1].inputFields[0].cols, (inputField) => {
2541
+ if (inputField.id === "template-version") {
2542
+ const iF = inputField;
2543
+ iF.colStyle = {};
2544
+ iF.colStyle.display = "none";
2545
+ }
2546
+ });
2549
2547
  //}
2550
2548
  temp = type === 'embedded' ? this.removeStandAlone(temp) : temp;
2551
2549
  this.setState({schema: temp, isSchemaChanged: true, loadingStatus: this.state.loadingStatus + 1}, () => {
@@ -179,7 +179,6 @@ export class Create extends React.Component { // eslint-disable-line react/prefe
179
179
  query: type === 'embedded' ? {type: 'embedded', module} : {module},
180
180
  });
181
181
  }
182
- this.props.globalActions.removeEntitySchema();
183
182
  };
184
183
 
185
184
  componentDidMount = () => {
@@ -803,6 +803,7 @@ export class Edit extends React.Component { // eslint-disable-line react/prefer-
803
803
  };
804
804
 
805
805
  getCurrentWindow = (e) => {
806
+ console.log('in sms create', e);
806
807
  const response = {
807
808
  action: e.action,
808
809
  value: 'edit',
@@ -1128,7 +1128,7 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
1128
1128
  {template._id === this.state.hoveredItem ? <CapButton onClick={(e) => this.handleEditClick(e, template._id)} className="edit-button" type="secondary">{type === 'embedded' ? this.props.intl.formatMessage(messages.selectButton) : this.props.intl.formatMessage(messages.editButton)}</CapButton> : ''}
1129
1129
  {template._id === this.state.hoveredItem ? <CapButton onClick={() => this.handlePreviewClick(template)} className="preview-button" type="cancel">{this.props.intl.formatMessage(messages.previewButton)}</CapButton> : ''}
1130
1130
  </div>);
1131
- } else if (this.state.channel.toLowerCase() === 'line' && template.type.toLowerCase() === 'line') {
1131
+ } else if (this.state.channel.toLowerCase() === 'line') {
1132
1132
  //content = template.versions.base.messages[0].Text;
1133
1133
  content = {
1134
1134
  bodyText: template.versions.base.content.messages[0].text ? template.versions.base.content.messages[0].text : '',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "3.0.15",
4
+ "version": "3.0.16",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",