@salesforcedevs/dx-components 0.10.1-alpha.142 → 0.10.1-alpha.143
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
|
@@ -56,9 +56,10 @@ export default class CodeBlock extends LightningElement {
|
|
|
56
56
|
set codeBlock(value: string) {
|
|
57
57
|
this._codeBlockRendered = false;
|
|
58
58
|
let match;
|
|
59
|
-
this._codeBlock = (
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
this._codeBlock = (
|
|
60
|
+
(match = preTagRegexp.exec(value.trim())) === null
|
|
61
|
+
? value.trim()
|
|
62
|
+
: match[1]
|
|
62
63
|
).trim();
|
|
63
64
|
}
|
|
64
65
|
|
|
@@ -173,9 +174,8 @@ export default class CodeBlock extends LightningElement {
|
|
|
173
174
|
});
|
|
174
175
|
|
|
175
176
|
try {
|
|
176
|
-
const snippetContainer: HTMLElement | null =
|
|
177
|
-
".code-block-content"
|
|
178
|
-
);
|
|
177
|
+
const snippetContainer: HTMLElement | null =
|
|
178
|
+
this.template.querySelector(".code-block-content");
|
|
179
179
|
if (snippetContainer && snippetContainer.textContent) {
|
|
180
180
|
await navigator.clipboard.writeText(
|
|
181
181
|
snippetContainer.textContent
|
|
@@ -36,7 +36,7 @@ export default class SidebarSearch extends LightningElement {
|
|
|
36
36
|
get coveoAdvancedQueryConfig(): { [key: string]: any } {
|
|
37
37
|
return this._coveoAdvancedQueryConfig;
|
|
38
38
|
}
|
|
39
|
-
set coveoAdvancedQueryConfig(value
|
|
39
|
+
set coveoAdvancedQueryConfig(value) {
|
|
40
40
|
const jsonValue = toJson(value);
|
|
41
41
|
const hasChanged =
|
|
42
42
|
this._coveoAdvancedQueryConfig &&
|
|
@@ -298,7 +298,6 @@ export default class SidebarSearch extends LightningElement {
|
|
|
298
298
|
};
|
|
299
299
|
|
|
300
300
|
private updateSessionStorage() {
|
|
301
|
-
console.log("updating session storage");
|
|
302
301
|
window.sessionStorage.setItem(
|
|
303
302
|
SESSION_KEY,
|
|
304
303
|
JSON.stringify({
|
|
@@ -357,6 +356,7 @@ export default class SidebarSearch extends LightningElement {
|
|
|
357
356
|
if (this.searchBox) {
|
|
358
357
|
UserRecentSearches.add(this.value);
|
|
359
358
|
this.updateRecentSearches();
|
|
359
|
+
this.dispatchSidebarSearchChange(this.value);
|
|
360
360
|
|
|
361
361
|
this.searchBox.updateText(this.value || "");
|
|
362
362
|
this.searchBox.submit();
|
|
@@ -396,7 +396,6 @@ export default class SidebarSearch extends LightningElement {
|
|
|
396
396
|
}
|
|
397
397
|
|
|
398
398
|
this.dispatchHighlightedTermChange();
|
|
399
|
-
this.dispatchSidebarSearchChange(this.value);
|
|
400
399
|
}
|
|
401
400
|
|
|
402
401
|
private onInputFocus() {
|
|
@@ -43,7 +43,7 @@ export const coveoXMLDocsConfig = {
|
|
|
43
43
|
coveoSearchHub: "Developer_Docs_SS",
|
|
44
44
|
coveoAdvancedQueryConfig: JSON.stringify({
|
|
45
45
|
objecttype: "HTDeveloperDocumentsC",
|
|
46
|
-
|
|
46
|
+
sflocale__c: "en_US",
|
|
47
47
|
sfrelease__c: "232.0",
|
|
48
48
|
sfdelivarable__c: "apexcode"
|
|
49
49
|
})
|