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.228-version-picker3 to 1.3.242-dc-alpha1

2

package.json
{
"name": "@salesforcedevs/docs-components",
"version": "1.3.228-version-picker3",
"version": "1.3.242-dc-alpha1",
"description": "Docs Lightning web components for DSC",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -8,3 +8,3 @@ import { api } from "lwc";

const TABLET_MATCH = "980px";
const MOBILE_MATCH = "880px";
const MOBILE_MATCH = "768px";

@@ -24,6 +24,18 @@ export default class Header extends HeaderBase {

@api
get devCenter() {
return this._devCenter;
}
set devCenter(value) {
this._devCenter = toJson(value);
console.log(this._devCenter);
}
private _scopedNavItems!: OptionWithNested[];
private tablet = false;
private tabletMatchMedia!: MediaQueryList;
private shouldRender = false;
private shouldRender: boolean = false;
private showDocDivider: boolean = false;
private _devCenter: any;

@@ -56,2 +68,9 @@ protected mobileBreakpoint(): string {

}
if (this.shouldRender && window.location.pathname.includes("/docs/")) {
if (!this.brand && !this.mobile) {
this.shouldRender = false;
this.showDocDivider = true;
}
}
}

@@ -58,0 +77,0 @@

@@ -1,2 +0,2 @@

import { LightningElement, api } from "lwc";
import { LightningElement, api, track } from "lwc";

@@ -11,3 +11,3 @@ import { AnalyticsPayload, OptionWithNested } from "typings/custom";

private _versions!: OptionWithNested[];
@track private _versions!: OptionWithNested[];
private _selectedVersion?: OptionWithNested;

@@ -58,2 +58,10 @@ private _latestVersion: boolean = false;

}
private get showLatestTag(): boolean {
return !this.hideBadge;
}
private onVersionChange(e: CustomEvent) {
this.dispatchEvent(new CustomEvent("change", { detail: e.detail }));
}
}

@@ -69,3 +69,3 @@ /* eslint-disable @lwc/lwc/no-document-query */

private availableLanguages: Array<DocLanguage> = [];
private availableVersions: Array<DocVersion> = [];
@track private availableVersions: Array<DocVersion> = [];
private contentProvider?: FetchContent;

@@ -582,5 +582,3 @@ private docContent = "";

private updateSearchInput(searchParam: string): void {
(
this.template.querySelector("doc-content-layout") as any
)?.setSidebarInputValue(searchParam);
(this.refs.docContentLayout as any)?.setSidebarInputValue(searchParam);
}

@@ -775,2 +773,6 @@

}
private get showVersionPicker(): boolean {
return !this.disableVersion;
}
}

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

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

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