@capillarytech/creatives-library 7.17.73-alpha.0 → 7.17.73-alpha.2

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.17.73-alpha.0",
4
+ "version": "7.17.73-alpha.2",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -104,7 +104,7 @@ const indexOfEnd = (targetString, string) => {
104
104
  return io == -1 ? -1 : io + string.length;
105
105
  }
106
106
 
107
- const skipTags = (tag) => {
107
+ export const skipTags = (tag) => {
108
108
  const regexGroups = ["dynamic_expiry_date_after_\\d+_days.FORMAT_\\d", "unsubscribe\\(#[a-zA-Z\\d]{6}\\)","Link_to_[a-zA-z]","SURVEY.*.TOKEN", "^[A-Za-z].*\\([a-zA-Z\\d]*\\)"];
109
109
  let skipped = false;
110
110
  lodashForEach(regexGroups, (group) => {
@@ -211,7 +211,7 @@ class CapTagList extends React.Component { // eslint-disable-line react/prefer-s
211
211
  </CapTreeNode>
212
212
  );
213
213
  hidingDateTagsForJpLocale(hideDateTagsForJpLocale, val, list, tagValue);
214
- } else if (searchString === '' || !searchString || (String(val.name || '').toLowerCase().indexOf(searchString.toLowerCase()) !== -1)) {
214
+ } else if (searchString === '' || !searchString || (String(val?.desc || val?.name || '').toLowerCase().indexOf(searchString.toLowerCase()) !== -1)) {
215
215
  let childDisabled = true;
216
216
  if (key === CUSTOMER_BARCODE_TAG && !hasCustomerBarcodeFeatureEnabled()) {
217
217
  childDisabled = true;