@capillarytech/creatives-library 0.1.21 → 0.1.23
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.
|
@@ -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
|
}
|
|
@@ -445,6 +445,9 @@ export class WeChat extends React.Component { // eslint-disable-line react/prefe
|
|
|
445
445
|
context: this.props.location.query.type === 'embedded' ? this.props.location.query.module : 'default',
|
|
446
446
|
embedded: this.props.location.query.type === 'embedded' ? this.props.location.query.type : 'full',
|
|
447
447
|
};
|
|
448
|
+
if (this.props.getDefaultTags) { // handling dynamic tags in library mode, but handling static and synamic tags in email and sms.
|
|
449
|
+
query.context = this.props.getDefaultTags;
|
|
450
|
+
}
|
|
448
451
|
this.props.globalActions.fetchSchemaForEntity(query);
|
|
449
452
|
}
|
|
450
453
|
|
|
@@ -1594,6 +1597,7 @@ WeChat.propTypes = {
|
|
|
1594
1597
|
intl: intlShape.isRequired,
|
|
1595
1598
|
isGetFormData: PropTypes.bool,
|
|
1596
1599
|
getLibraryFormData: PropTypes.func,
|
|
1600
|
+
getDefaultTags: PropTypes.string,
|
|
1597
1601
|
};
|
|
1598
1602
|
|
|
1599
1603
|
const mapStateToProps = createStructuredSelector({
|