@capillarytech/creatives-library 0.1.23 → 0.1.25

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.
@@ -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
- const currentModule = this.props.location.query.module ? this.props.location.query.module : 'default';
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'];
@@ -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
@@ -1221,7 +1221,7 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
1221
1221
  if ((this.state.channel.toUpperCase() === 'WECHAT' || this.state.channel.toUpperCase() === "MOBILEPUSH") && !_.isEmpty(this.props.Templates.weCrmAccounts)) {
1222
1222
  _.forEach(this.props.Templates.weCrmAccounts, (account) => {
1223
1223
  if ((this.state.channel.toUpperCase() === 'WECHAT' && account.configs && account.configs.is_wecrm_enabled) || this.state.channel.toUpperCase() === 'MOBILEPUSH') {
1224
- if (this.props.location.query.type === 'embedded') {
1224
+ if (this.props.location.query.type === 'embedded' && (!this.props.location.query.module || (this.props.location.query.module && this.props.location.query.module !== 'library'))) {
1225
1225
  if (this.props.location.query.source_account_id && account.sourceAccountIdentifier === this.props.location.query.source_account_id) {
1226
1226
  accountOptions.push(
1227
1227
  <Option key={this.state.channel.toUpperCase() === "MOBILEPUSH" ? account.id : account.uuid} value={account.name}>{account.name}</Option>
@@ -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}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "0.1.23",
4
+ "version": "0.1.25",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
File without changes