@salesforcedevs/docs-components
Advanced tools
Comparing version 1.3.319-alpha.0 to 1.3.319-do-dont
@@ -12,2 +12,3 @@ { | ||
"doc/contentCallout", | ||
"doc/doDont", | ||
"doc/contentLayout", | ||
@@ -14,0 +15,0 @@ "doc/contentMedia", |
{ | ||
"name": "@salesforcedevs/docs-components", | ||
"version": "1.3.319-alpha.0", | ||
"version": "1.3.319-do-dont", | ||
"description": "Docs Lightning web components for DSC", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -6,3 +6,3 @@ import { LightningElement, api } from "lwc"; | ||
export default class ContentCallout extends LightningElement { | ||
@api header!: string; | ||
@api title!: string; | ||
@api variant!: CalloutVariant; | ||
@@ -9,0 +9,0 @@ cardVariant?: string; |
@@ -346,6 +346,4 @@ /* eslint-disable @lwc/lwc/no-document-query */ | ||
for (const headingElement of headingElements as any) { | ||
// Sometimes elements hash and header is not being set when slot content is wrapped with div | ||
// Sometimes elements hash is not being set when slot content is wrapped with div | ||
headingElement.hash = headingElement.attributes.hash?.nodeValue; | ||
headingElement.header = | ||
headingElement.attributes.header?.nodeValue; | ||
} | ||
@@ -367,3 +365,3 @@ | ||
id: headingElement.id, | ||
label: headingElement.header | ||
label: headingElement.title | ||
}; | ||
@@ -370,0 +368,0 @@ tocOptions.push(tocItem); |
@@ -16,3 +16,3 @@ import { LightningElement, api } from "lwc"; | ||
export default class Heading extends LightningElement { | ||
@api header: string = ""; | ||
@api title: string = ""; | ||
@api hash: string | null = null; | ||
@@ -19,0 +19,0 @@ |
@@ -9,3 +9,3 @@ import { LightningElement, api } from "lwc"; | ||
@api iconSymbol?: IconSymbol; | ||
@api header: string = ""; | ||
@api title: string = ""; | ||
@api urlText: string = ""; | ||
@@ -26,3 +26,3 @@ | ||
try { | ||
if (this.header && this.urlText) { | ||
if (this.title && this.urlText) { | ||
const [hostUrl] = window.location.href.split("#"); | ||
@@ -29,0 +29,0 @@ const url = `${hostUrl}#${this.urlText}`; |
import { LightningElement, api } from "lwc"; | ||
export default class HeadingContent extends LightningElement { | ||
@api header: string = ""; | ||
@api title: string = ""; | ||
@api hash: string | null = null; | ||
@@ -21,3 +21,3 @@ | ||
try { | ||
if (this.header && this.hash) { | ||
if (this.title && this.hash) { | ||
const [hostUrl] = window.location.href.split("#"); | ||
@@ -24,0 +24,0 @@ const url = `${hostUrl}#${this.hash}`; |
@@ -6,3 +6,3 @@ import { LightningElement, api } from "lwc"; | ||
@api docPhaseInfo!: DocPhaseInfo; | ||
@api header!: string; | ||
@api title!: string; | ||
@api description!: string; | ||
@@ -9,0 +9,0 @@ @api primaryLink!: Link; |
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
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
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
256673
78
6583
1