@capillarytech/creatives-library 3.8.8 → 3.8.10

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "3.8.8",
4
+ "version": "3.8.10",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -2901,7 +2901,7 @@ class FormBuilder extends React.Component { // eslint-disable-line react/prefer-
2901
2901
  let moduleFilterEnabled = this.props.location && this.props.location.query && this.props.location.query.type !== 'embedded';
2902
2902
  const channel = _.get(this.props, 'schema.channel', "");
2903
2903
  if (channel === 'EMAIL') {
2904
- moduleFilterEnabled = this.props.location && this.props.location.query && this.props.location.query.module === 'library';
2904
+ moduleFilterEnabled = this.props.isFullMode;
2905
2905
  }
2906
2906
  columns.push(
2907
2907
  <CapColumn key={`input-${val.id}`} offset={val.offset} span={val.width ? val.width : ''} style={val.style ? val.style : {marginBottom: '16px'}}>
@@ -3478,6 +3478,7 @@ FormBuilder.propTypes = {
3478
3478
  selectedOfferDetails: PropTypes.array,
3479
3479
  setDrawerVisibility: PropTypes.bool,
3480
3480
  capDrawerContent: PropTypes.array,
3481
+ isFullMode: PropTypes.bool,
3481
3482
  };
3482
3483
 
3483
3484
  export default injectIntl(FormBuilder);
@@ -646,7 +646,7 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
646
646
  <div className={!isEmpty(this.state.searchText) && isEmpty(cardDataList) ? '' : "pagination-container"}>
647
647
  <CapCustomCardList key={`${currentChannel}-card-list`} cardList={cardDataList} type={currentChannel} style={{marginLeft: '16px'}}/>
648
648
  </div>)
649
- : ['sms', "email"].includes(this.state.channel.toLowerCase()) && <CapIllustration {...this.getChannelTypeIllustrationInfo(currentChannel)} />
649
+ : ['sms', "email"].includes(this.state.channel.toLowerCase()) && <CapIllustration buttonClassName={`create-new-${channelLowerCase}`} {...this.getChannelTypeIllustrationInfo(currentChannel)} />
650
650
  }
651
651
 
652
652
  {(this.state.selectedAccount === '' && isEmpty(this.props.Templates.selectedWeChatAccount)) && (this.state.channel.toLowerCase() === 'wechat' || this.state.channel.toLowerCase() === "mobilepush") &&
@@ -668,7 +668,7 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
668
668
  isEmpty(filteredTemplates) &&
669
669
  isEmpty(this.state.searchText) &&
670
670
  <div style={this.isFullMode() ? { height: "calc(100vh - 325px)", overflow: 'auto'} : {}}>
671
- <CapIllustration {...this.getChannelTypeIllustrationInfo(currentChannel)} />
671
+ <CapIllustration buttonClassName={`create-new-${channelLowerCase}`} {...this.getChannelTypeIllustrationInfo(currentChannel)} />
672
672
  </div>
673
673
  )
674
674
  }