@capillarytech/creatives-library 7.3.6 → 7.3.7

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": "7.3.6",
4
+ "version": "7.3.7",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -22,7 +22,7 @@ import {
22
22
  CapTooltip,
23
23
  } from '@capillarytech/cap-ui-library';
24
24
  import { FONT_SIZE_L } from '@capillarytech/cap-ui-library/styled/variables';
25
- import { find, cloneDeep, findIndex, isEmpty, isEqual, filter, flattenDeep } from 'lodash';
25
+ import { find, cloneDeep, findIndex, isEmpty, isEqual, filter, flattenDeep, replace } from 'lodash';
26
26
  import * as actions from './actions';
27
27
  import { makeSelectFTP, makeSelectMetaEntities } from './selectors';
28
28
  import { setInjectedTags } from '../Cap/selectors';
@@ -481,7 +481,7 @@ export class FTP extends React.Component {
481
481
  const { headerTagList } = this.state;
482
482
  const clonedHeaderTagList = cloneDeep(headerTagList);
483
483
  const optionValue = option.substring(this.indexOfEnd(option, '{{'), option.indexOf('}}'));
484
- let readableOptionValue = optionValue.replaceAll('_', ' ');
484
+ let readableOptionValue = replace(optionValue, /_/g, ' ');
485
485
  readableOptionValue = readableOptionValue[0].toUpperCase() + readableOptionValue.slice(1);
486
486
  const obj = {
487
487
  header: readableOptionValue,