@salesforcedevs/docs-components
Advanced tools
Comparing version 0.19.2 to 0.19.4-alpha.1
{ | ||
"name": "@salesforcedevs/docs-components", | ||
"version": "0.19.2", | ||
"version": "0.19.4-alpha.01", | ||
"description": "Docs Lightning web components for DSC", | ||
@@ -17,3 +17,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "8bfc13904276093b75868ad2c4d9003d74873fbb" | ||
"gitHead": "4629fdd9ca18a13480044ad43515b91945d16aad" | ||
} |
@@ -8,20 +8,3 @@ /* eslint-disable @lwc/lwc/no-inner-html */ | ||
import Button from "dx/button"; | ||
import { highlightTerms } from "utils/highlight"; | ||
const HIGHLIGHTABLE_SELECTOR = [ | ||
"p", | ||
".p", | ||
".shortdesc", | ||
"h1", | ||
"h2", | ||
"h3", | ||
"h4", | ||
"h5", | ||
"h6", | ||
"li", | ||
"dl", | ||
"th", | ||
"td" | ||
].join(","); | ||
const LANGUAGE_MAP: { [key: string]: string } = { | ||
@@ -66,16 +49,4 @@ js: "javascript" | ||
); | ||
window.addEventListener( | ||
"highlightedtermchange", | ||
this.updateHighlighted | ||
); | ||
} | ||
disconnectedCallback(): void { | ||
window.removeEventListener( | ||
"highlightedtermchange", | ||
this.updateHighlighted | ||
); | ||
} | ||
updateTheme() { | ||
@@ -175,2 +146,3 @@ this._codeBlockTheme = | ||
templateEl.content.querySelectorAll("a:not([href^='#'])"); | ||
anchorEls.forEach((anchorEl) => { | ||
@@ -188,2 +160,6 @@ if ( | ||
if (!anchorEl.href.includes("/docs/")) { | ||
anchorEl.href = "/docs/" + anchorEl.href; | ||
} | ||
const href = anchorEl.href.split("/"); | ||
@@ -339,8 +315,2 @@ if ( | ||
updateHighlighted = (event: any) => | ||
highlightTerms( | ||
this.template.querySelectorAll(HIGHLIGHTABLE_SELECTOR), | ||
event.detail | ||
); | ||
@api | ||
@@ -347,0 +317,0 @@ public navigateToHash(hash: String) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
0
177724
68
4539
1