@salesforcedevs/docs-components
Advanced tools
Comparing version 0.55.4 to 0.55.5-alpha01
{ | ||
"name": "@salesforcedevs/docs-components", | ||
"version": "0.55.4", | ||
"version": "0.55.5-alpha01", | ||
"description": "Docs Lightning web components for DSC", | ||
@@ -27,3 +27,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "445324f9e54fc1169769990ac3e5315f133a1ca0" | ||
"gitHead": "4629fdd9ca18a13480044ad43515b91945d16aad" | ||
} |
@@ -153,7 +153,22 @@ /* eslint-disable @lwc/lwc/no-inner-html */ | ||
const detailEls = calloutEl.querySelectorAll( | ||
"p, div.data, ol, ul, .codeSection, .mediaBd > span.ph" | ||
"p, div.data, ol, ul, p+.codeSection, .mediaBd > span.ph" | ||
); | ||
detailEls.forEach((detailEl) => { | ||
calloutCompEl.appendChild(detailEl); | ||
if (detailEl.innerHTML.trim() !== "") { | ||
calloutCompEl.appendChild(detailEl); | ||
} | ||
}); | ||
let flag = 1; | ||
for (let i = 0; i < detailEls.length; i++) { | ||
flag &= detailEls[i].innerHTML.trim() === ""; | ||
} | ||
if (flag) { | ||
const codeEls = calloutEl.querySelectorAll(".codeSection"); | ||
codeEls.forEach((codeEl) => { | ||
calloutCompEl.appendChild(codeEl); | ||
}); | ||
} | ||
const type = calloutEl.querySelector("h4").textContent; | ||
@@ -160,0 +175,0 @@ const typeLower = type.toLowerCase(); |
@@ -185,7 +185,10 @@ import { api, track } from "lwc"; | ||
// Coveo is enabled and the version is greater than 51 (within the latest 3 versions) | ||
// TODO: we need a better fix for version number check. | ||
// TODO: we need a better fix for version number check | ||
return !( | ||
process.env.COVEO_ORGANIZATION_ID && | ||
process.env.COVEO_PUBLIC_ACCESS_TOKEN && | ||
parseInt(this.version.releaseVersion.replace("v", ""), 10) > 51 | ||
(!this.version?.releaseVersion || | ||
(this.version?.releaseVersion && | ||
parseInt(this.version.releaseVersion.replace("v", ""), 10) > | ||
51)) | ||
); | ||
@@ -196,11 +199,5 @@ } | ||
return { | ||
// Temporary fix for empty results on apexref page | ||
...(this.deliverable === "apexref" | ||
? { source: "Sitemap - Developer Docs Atlas - Apexref" } | ||
: { | ||
objecttype: "HTDeveloperDocumentsC", | ||
sflocale__c: this.languageId, | ||
sfrelease__c: this.releaseVersionId, | ||
sfdelivarable__c: this.deliverable | ||
}) | ||
locale: this.languageId, | ||
version: this.releaseVersionId, | ||
topicid: this.deliverable | ||
}; | ||
@@ -207,0 +204,0 @@ } |
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
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
5117
199218
66