@salesforcedevs/dx-components 0.19.3-alpha.21 → 0.19.3-alpha.22

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/dx-components",
3
- "version": "0.19.3-alpha.21",
3
+ "version": "0.19.3-alpha.22",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -335,6 +335,8 @@ export default class SidebarSearch extends LightningElement {
335
335
  }
336
336
 
337
337
  private dispatchHighlightedTermChange = debounce(() => {
338
+ console.log(this.engine);
339
+ console.log(this.engine?.state.search.response.termsToHighlight);
338
340
  this.dispatchEvent(
339
341
  new CustomEvent("highlightedtermchange", {
340
342
  detail: this.value,
@@ -36,12 +36,10 @@ export const highlightTerms = (
36
36
  console.error(e, element);
37
37
  }
38
38
 
39
- element
40
- .querySelectorAll("mark")
41
- .forEach(
42
- (el) =>
43
- (el.style.backgroundColor = "var(--dx-g-yellow-vibrant-90)")
44
- );
39
+ element.querySelectorAll("mark").forEach((el) => {
40
+ console.log(el)
41
+ el.style.backgroundColor = "var(--dx-g-yellow-vibrant-90)";
42
+ });
45
43
 
46
44
  const mark = element.querySelector("mark");
47
45
  if (mark && !scrolled) {