@capillarytech/creatives-library 0.1.20 → 0.1.22

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.
@@ -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({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "0.1.20",
4
+ "version": "0.1.22",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",