@capillarytech/creatives-library 8.0.55 → 8.0.57

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.
@@ -2241,7 +2241,10 @@ class FormBuilder extends React.Component { // eslint-disable-line react/prefer-
2241
2241
  errorMessage={val.errorMessage ? val.errorMessage : ''}
2242
2242
  className={`input-primary chart-name-input${ifError ? ' error' : ''}`}
2243
2243
  // fluid={val.fluid}
2244
- style={val.style ? val.style : {}}
2244
+ style={val?.style ? {
2245
+ ...val?.style,
2246
+ display: ((this.props?.location?.query?.module).toLowerCase() === 'dvs') ? 'block' : val?.style?.display
2247
+ } : {}}
2245
2248
  placeholder={val.placeholder}
2246
2249
  onChange={(e) => this.updateFormData(e.target.value, val)}
2247
2250
  defaultValue={isVersionEnable ? this.state.formData[`${this.state.currentTab - 1}`][val.id] : this.state.formData[val.id]}
@@ -2581,7 +2584,10 @@ class FormBuilder extends React.Component { // eslint-disable-line react/prefer-
2581
2584
  errorMessage={val.errorMessage ? val.errorMessage : ''}
2582
2585
  className={`input-primary chart-name-input${ifError ? ' error' : ''}`}
2583
2586
  // fluid={val.fluid}
2584
- style={val.style ? val.style : {}}
2587
+ style={val?.style ? {
2588
+ ...val?.style,
2589
+ display: ((this.props?.location?.query?.module).toLowerCase() === 'dvs') ? 'block' : val?.style?.display
2590
+ } : {}}
2585
2591
  placeholder={val.placeholder}
2586
2592
  onChange={(e) => this.updateFormData(e.target.value, val)}
2587
2593
  value={isVersionEnable ? this.state.formData[`${this.state.currentTab - 1}`][val.id] : this.state.formData[val.id]}
@@ -105,7 +105,6 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
105
105
  this.onAccountSelect = this.onAccountSelect.bind(this);
106
106
  this.prepareMobilePushPreviewData = this.prepareMobilePushPreviewData.bind(this);
107
107
  this.menuOnClickEvent = this.menuOnClickEvent.bind(this);
108
- console.log("this.props.location",this.props.location);
109
108
  }
110
109
 
111
110
  componentWillMount() {
@@ -753,7 +752,6 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
753
752
  const type = this.props.location.query.type;
754
753
  const module = this.props.location.query.module ? this.props.location.query.module : 'default';
755
754
  const channel = this.state.channel.toLowerCase();
756
- console.log('createTemplate for channel', channel, type, module);
757
755
  //const keyType = ev.key && ev.key.toLowerCase() !== undefined ? ev.state.toLowerCase() : '';
758
756
  if (this.isEnabledInLibraryModule("callCreateFromProps")) {
759
757
  this.props.createNew();
@@ -933,10 +931,8 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
933
931
  this.props.createNew();
934
932
  return;
935
933
  }
936
- console.log('line 939getQuery', getQuery,this.props.router);
937
934
 
938
935
  const queryParams = commonUtil.createQueryString(getQuery);
939
- console.log('line 952 queryParams', queryParams);
940
936
  // this.props.router.push(`${pathName}${queryParams}`);
941
937
 
942
938
  this.props.router.push({
@@ -988,7 +984,6 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
988
984
  pathName = `/ebill/edit/${id}`;
989
985
  }
990
986
  //getQuery
991
- console.log('getQuery', getQuery, pathName,this.props.router);
992
987
  this.props.router.push({
993
988
  pathname: pathName,
994
989
  search: commonUtil.createQueryString(getQuery),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "8.0.55",
4
+ "version": "8.0.57",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",