@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.
- package/containers/Cap/actions.js +0 -6
- package/containers/Cap/constants.js +0 -1
- package/containers/Cap/reducer.js +0 -2
- package/containers/Email/index.js +7 -9
- package/containers/MobilePush/Create/index.js +0 -1
- package/containers/MobilePush/Edit/index.js +1 -0
- package/containers/Templates/index.js +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
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 = () => {
|
|
@@ -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'
|
|
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 : '',
|