Socket
Socket
Sign inDemoInstall

@salesforcedevs/docs-components

Package Overview
Dependencies
Maintainers
13
Versions
634
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@salesforcedevs/docs-components - npm Package Compare versions

Comparing version 1.3.252 to 1.3.262-scroll-alpha1

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc