@salesforcedevs/docs-components 0.17.1 → 0.18.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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/docs-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"description": "Docs Lightning web components for DSC",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "index.js",
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
"publishConfig": {
|
|
15
15
|
"access": "public"
|
|
16
16
|
},
|
|
17
|
-
"gitHead": "
|
|
17
|
+
"gitHead": "d211c35163de06a1f77f0450391639278661a481"
|
|
18
18
|
}
|
|
@@ -7,7 +7,7 @@ import ContentMedia from "doc/contentMedia";
|
|
|
7
7
|
import Button from "dx/button";
|
|
8
8
|
import { highlightTerms } from "utils/highlight";
|
|
9
9
|
|
|
10
|
-
const
|
|
10
|
+
const HIGHLIGHTABLE_SELECTOR = [
|
|
11
11
|
"p",
|
|
12
12
|
".p",
|
|
13
13
|
".shortdesc",
|
|
@@ -21,7 +21,7 @@ const ALLOWED_ELEMENTS = [
|
|
|
21
21
|
"dl",
|
|
22
22
|
"th",
|
|
23
23
|
"td"
|
|
24
|
-
];
|
|
24
|
+
].join(",");
|
|
25
25
|
|
|
26
26
|
const LANGUAGE_MAP: { [key: string]: string } = {
|
|
27
27
|
js: "javascript"
|
|
@@ -334,9 +334,7 @@ export default class Content extends LightningElement {
|
|
|
334
334
|
|
|
335
335
|
updateHighlighted = (event: any) =>
|
|
336
336
|
highlightTerms(
|
|
337
|
-
|
|
338
|
-
this.template.querySelectorAll(ALLOWED_ELEMENTS.join(","))
|
|
339
|
-
),
|
|
337
|
+
this.template.querySelectorAll(HIGHLIGHTABLE_SELECTOR),
|
|
340
338
|
event.detail
|
|
341
339
|
);
|
|
342
340
|
|