@capillarytech/creatives-library 0.1.22 → 0.1.24
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/components/FormBuilder/index.js +4 -1
- package/containers/Cap/constants.js +1 -0
- package/containers/Cap/reducer.js +5 -0
- package/containers/Email/index.js +1 -0
- package/containers/Sms/Create/index.js +1 -0
- package/containers/Sms/Edit/index.js +1 -0
- package/containers/WeChat/index.js +1 -0
- package/package.json +1 -1
|
@@ -958,7 +958,10 @@ class FormBuilder extends React.Component { // eslint-disable-line react/prefer-
|
|
|
958
958
|
|
|
959
959
|
validateTags(content, tagsParam, injectedTagsParams) {
|
|
960
960
|
const type = (this.props.location && this.props.location.query.type) ? this.props.location.query.type : 'full';
|
|
961
|
-
|
|
961
|
+
let currentModule = this.props.location.query.module ? this.props.location.query.module : 'default';
|
|
962
|
+
if (this.props.tagModule) {
|
|
963
|
+
currentModule = this.props.tagModule;
|
|
964
|
+
}
|
|
962
965
|
const tags = tagsParam ? tagsParam : this.props.tags;
|
|
963
966
|
const injectedTags = this.transformInjectedTags(injectedTagsParams ? injectedTagsParams : this.props.injectedTags);
|
|
964
967
|
const excludedTags = ['user_id_b64', 'outbox_id_b64'];
|
|
@@ -18,3 +18,4 @@ 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 CLEAR_META_ENTITIES = 'cap/CLEAR_META_ENTITIES';
|
|
@@ -90,6 +90,11 @@ 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.CLEAR_META_ENTITIES:
|
|
94
|
+
return state.set('metaEntities', {
|
|
95
|
+
layouts: [],
|
|
96
|
+
tags: [],
|
|
97
|
+
});
|
|
93
98
|
default:
|
|
94
99
|
return state;
|
|
95
100
|
}
|
|
@@ -3181,6 +3181,7 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
|
|
|
3181
3181
|
location={this.props.location}
|
|
3182
3182
|
tabKey={this.state.tabKey}
|
|
3183
3183
|
tags={tags}
|
|
3184
|
+
tagModule={this.props.getDefaultTags}
|
|
3184
3185
|
injectedTags={this.state.injectedTags ? this.state.injectedTags : {}}
|
|
3185
3186
|
onFormValidityChange={this.setFormValidity}
|
|
3186
3187
|
handleCancelModal={this.handleCancelModal}
|
|
@@ -1439,6 +1439,7 @@ export class Create extends React.Component { // eslint-disable-line react/prefe
|
|
|
1439
1439
|
location={this.props.location}
|
|
1440
1440
|
tabKey={this.state.tabKey}
|
|
1441
1441
|
tags={tags}
|
|
1442
|
+
tagModule={this.props.getDefaultTags}
|
|
1442
1443
|
injectedTags={this.state.injectedTags ? this.state.injectedTags : {}}
|
|
1443
1444
|
onFormValidityChange={this.setFormValidity}
|
|
1444
1445
|
usingTabContainer
|
|
@@ -1421,6 +1421,7 @@ export class Edit extends React.Component { // eslint-disable-line react/prefer-
|
|
|
1421
1421
|
showModal={this.state.showModal}
|
|
1422
1422
|
modal={this.state.modalContent}
|
|
1423
1423
|
tags={tags}
|
|
1424
|
+
tagModule={this.props.getDefaultTags}
|
|
1424
1425
|
injectedTags={this.state.injectedTags ? this.state.injectedTags : {}}
|
|
1425
1426
|
onFormValidityChange={this.setFormValidity}
|
|
1426
1427
|
usingTabContainer
|
|
@@ -1569,6 +1569,7 @@ export class WeChat extends React.Component { // eslint-disable-line react/prefe
|
|
|
1569
1569
|
onFormValidityChange={this.setFormValidity}
|
|
1570
1570
|
location= {this.props.location}
|
|
1571
1571
|
tags={this.props.metaEntities && this.props.metaEntities.tags ? this.props.metaEntities.tags.standard : []}
|
|
1572
|
+
tagModule={this.props.getDefaultTags}
|
|
1572
1573
|
injectedTags={this.state.injectedTags ? this.state.injectedTags : {}}
|
|
1573
1574
|
isEdit={this.state.isEdit}
|
|
1574
1575
|
usingTabContainer={false}
|