@salesforcedevs/docs-components
Advanced tools
Comparing version 1.3.252 to 1.3.262-scroll-alpha1
{ | ||
"name": "@salesforcedevs/docs-components", | ||
"version": "1.3.252", | ||
"version": "1.3.262-scroll-alpha1", | ||
"description": "Docs Lightning web components for DSC", | ||
@@ -27,3 +27,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "8379eb747571af22dfdfc3c440e8c23c85d1fe8b" | ||
"gitHead": "4629fdd9ca18a13480044ad43515b91945d16aad" | ||
} |
@@ -13,4 +13,2 @@ import { LightningElement, api } from "lwc"; | ||
const TABLE_SIZE_MATCH = "769px"; | ||
export default class AmfTopic extends LightningElement { | ||
@@ -92,19 +90,5 @@ private _model: TopicModel | undefined; | ||
this.scrollToTop(container); | ||
window.scrollTo(0, 0); | ||
} | ||
scrollToTop(container: Element) { | ||
const isTabletOrDesktop = window.matchMedia( | ||
`(min-width: ${TABLE_SIZE_MATCH})` | ||
).matches; | ||
// We need to scroll to top from the tablet size as side nav bar and content in side by side from tablet size | ||
if (isTabletOrDesktop) { | ||
// Sync with the browser to account for any reflows that may have happened | ||
requestAnimationFrame(() => { | ||
container?.scrollIntoView(true); | ||
}); | ||
} | ||
} | ||
renderedCallback(): void { | ||
@@ -111,0 +95,0 @@ try { |
@@ -23,2 +23,11 @@ import { api } from "lwc"; | ||
@api | ||
get devCenter() { | ||
return this._devCenter; | ||
} | ||
set devCenter(value) { | ||
this._devCenter = toJson(value); | ||
} | ||
private _scopedNavItems!: OptionWithNested[]; | ||
@@ -29,2 +38,3 @@ private tablet = false; | ||
private showDocDivider: boolean = false; | ||
private _devCenter: any; | ||
@@ -31,0 +41,0 @@ protected mobileBreakpoint(): string { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
6513
253937
75
2