@salesforcedevs/dx-components 0.19.3-alpha.16 → 0.19.3-alpha.20

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.16",
3
+ "version": "0.19.3-alpha.20",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -144,7 +144,6 @@ export default class SidebarSearch extends LightningElement {
144
144
  // If this is the first render and there is a search value, trigger
145
145
  // term highlighting
146
146
  if (!this.didRender && this.value) {
147
- console.log('dispatching highlight term in the render')
148
147
  this.dispatchHighlightedTermChange();
149
148
  }
150
149
 
@@ -2,9 +2,7 @@ import { createSearchRegExp } from "utils/regexps";
2
2
 
3
3
  const MARK_TAGS = /<\/?mark>/gi;
4
4
 
5
- // mark tags not being removed from ref page
6
5
  // mark tags dif color on ref page
7
- // need to reset to first match on highlight change
8
6
 
9
7
  export const highlightTerms = (
10
8
  // eslint-disable-next-line no-undef
@@ -14,7 +12,6 @@ export const highlightTerms = (
14
12
  searchTerm = searchTerm.trim();
15
13
  const searchExp = createSearchRegExp(searchTerm);
16
14
  let scrolled = false;
17
- console.log('highlighting called', elements)
18
15
  elements.forEach((element) => {
19
16
  if (
20
17
  element?.innerHTML.includes("<dx-") ||
@@ -39,11 +36,9 @@ export const highlightTerms = (
39
36
  console.error(e, element);
40
37
  }
41
38
 
42
- console.log("should i scroll?");
43
39
  const mark = element.querySelector("mark");
44
40
  if (mark && !scrolled) {
45
41
  scrolled = true;
46
- console.log("scrolling", mark);
47
42
  mark.scrollIntoView({ block: "nearest" });
48
43
  }
49
44
  });