@salesforcedevs/docs-components
Advanced tools
Comparing version 1.3.228-version-picker3 to 1.3.242-dc-alpha1
{ | ||
"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
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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
254071
6507
0