@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.17.1",
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": "53a3b2f6fa7d61fee0305c6bfd272f4806a662fa"
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 ALLOWED_ELEMENTS = [
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
- Array.from(
338
- this.template.querySelectorAll(ALLOWED_ELEMENTS.join(","))
339
- ),
337
+ this.template.querySelectorAll(HIGHLIGHTABLE_SELECTOR),
340
338
  event.detail
341
339
  );
342
340
 
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <dx-brand-theme-provider brand={brand}>
3
3
  <header class={className}>
4
- <dx-banner
4
+ <dx-banner
5
5
  if:true={bannerMarkup}
6
6
  banner-markup={bannerMarkup}
7
7
  ></dx-banner>