@salesforcedevs/docs-components 0.69.0 → 0.70.1
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.70.1",
|
|
4
4
|
"description": "Docs Lightning web components for DSC",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "index.js",
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"@types/lodash.orderby": "^4.6.7",
|
|
25
25
|
"@types/lodash.uniqby": "^4.7.7"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "6f8ff92765133cf354bfb06a36a6249027c5c80e"
|
|
28
28
|
}
|
|
@@ -78,6 +78,8 @@ export default class ContentLayout extends LightningElement {
|
|
|
78
78
|
private anchoredElements: AnchorMap = {};
|
|
79
79
|
private lastScrollPosition: number;
|
|
80
80
|
private observer?: IntersectionObserver;
|
|
81
|
+
private hasRendered: boolean = false;
|
|
82
|
+
|
|
81
83
|
private searchSyncer = new SearchSyncer({
|
|
82
84
|
callbacks: {
|
|
83
85
|
onUrlChange: (nextSearchString: string): void => {
|
|
@@ -125,6 +127,7 @@ export default class ContentLayout extends LightningElement {
|
|
|
125
127
|
this._scrollInterval = window.setInterval(() => {
|
|
126
128
|
this.saveScroll();
|
|
127
129
|
}, 1000);
|
|
130
|
+
|
|
128
131
|
|
|
129
132
|
}
|
|
130
133
|
|
|
@@ -138,7 +141,10 @@ export default class ContentLayout extends LightningElement {
|
|
|
138
141
|
this.attachInteractionObserver,
|
|
139
142
|
OBSERVER_ATTACH_WAIT_TIME
|
|
140
143
|
);
|
|
141
|
-
this.
|
|
144
|
+
if(!this.hasRendered) {
|
|
145
|
+
this.hasRendered = true;
|
|
146
|
+
this.restoreScroll();
|
|
147
|
+
}
|
|
142
148
|
}
|
|
143
149
|
|
|
144
150
|
disconnectedCallback(): void {
|
|
@@ -588,7 +588,7 @@ export default class DocXmlContent extends LightningElementWithState<{
|
|
|
588
588
|
|
|
589
589
|
const currentNode = this.tocMap[contentDocumentId];
|
|
590
590
|
|
|
591
|
-
if(currentNode
|
|
591
|
+
if(currentNode?.parent) {
|
|
592
592
|
this.breadcrumbs = this.nodeToBreadcrumb(currentNode);
|
|
593
593
|
} else {
|
|
594
594
|
this.breadcrumbs = [];
|