@capillarytech/creatives-library 7.17.74 → 7.17.75-alpha.0
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
|
@@ -197,6 +197,9 @@ class CapTagList extends React.Component { // eslint-disable-line react/prefer-s
|
|
|
197
197
|
supportedTagsString += `${supportedTag} ,`;
|
|
198
198
|
});
|
|
199
199
|
supportedTagsString = supportedTagsString.replace(/,\s*$/, "");
|
|
200
|
+
const tagDescriptionOrName = _.toLower(_.get(val, 'desc', '') || _.get(val, 'name', ''));
|
|
201
|
+
const searchStringLower = _.toLower(searchString);
|
|
202
|
+
const tagContainsSearchedString = tagDescriptionOrName.includes(searchStringLower);
|
|
200
203
|
if (_.has(val, 'subtags')) {
|
|
201
204
|
const disabled = disableRelatedTags ? parentTagstoDisable.includes(key) : false;
|
|
202
205
|
const temp = this.renderTags(val.subtags, '', disabled);
|
|
@@ -211,7 +214,7 @@ class CapTagList extends React.Component { // eslint-disable-line react/prefer-s
|
|
|
211
214
|
</CapTreeNode>
|
|
212
215
|
);
|
|
213
216
|
hidingDateTagsForJpLocale(hideDateTagsForJpLocale, val, list, tagValue);
|
|
214
|
-
} else if (searchString === '' || !searchString ||
|
|
217
|
+
} else if (searchString === '' || !searchString || tagContainsSearchedString) {
|
|
215
218
|
let childDisabled = true;
|
|
216
219
|
if (key === CUSTOMER_BARCODE_TAG && !hasCustomerBarcodeFeatureEnabled()) {
|
|
217
220
|
childDisabled = true;
|
|
@@ -257,11 +257,7 @@ export class FTP extends React.Component {
|
|
|
257
257
|
matchedTags.forEach((tag) => {
|
|
258
258
|
let ifSupported = !!flatTags.find((t) => t === tag[0]);
|
|
259
259
|
const tagValue = tag[0].substring(this.indexOfEnd(tag[0], '{{'), tag[0].indexOf('}}'));
|
|
260
|
-
ifSupported = ifSupported || checkIfSupportedTag(tagValue, injectedTags);
|
|
261
|
-
const ifSkipped = skipTags(tagValue);
|
|
262
|
-
if (ifSkipped) {
|
|
263
|
-
ifSupported = true;
|
|
264
|
-
}
|
|
260
|
+
ifSupported = ifSupported || checkIfSupportedTag(tagValue, injectedTags) || skipTags(tagValue);
|
|
265
261
|
if (!ifSupported) {
|
|
266
262
|
response.unsupportedTags.push(tagValue);
|
|
267
263
|
response.valid = false;
|