@salesforcedevs/docs-components
Advanced tools
Comparing version 1.3.296 to 1.3.300-alpha.0
{ | ||
"name": "@salesforcedevs/docs-components", | ||
"version": "1.3.296", | ||
"version": "1.3.300-alpha.0", | ||
"description": "Docs Lightning web components for DSC", | ||
@@ -27,3 +27,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "7a3e47bb11802dbded4c5bd3814b408cbeedecd7" | ||
"gitHead": "4629fdd9ca18a13480044ad43515b91945d16aad" | ||
} |
@@ -115,12 +115,19 @@ import { LightningElement, api } from "lwc"; | ||
if (!this.observer) { | ||
this.observer = new ResizeObserver((entries) => { | ||
const [nav] = entries; | ||
if (this.navWidth === nav.contentRect.width) { | ||
return; | ||
} | ||
this.navWidth = nav.contentRect.width; | ||
this.updateDropdownOptionAmount(); | ||
}); | ||
try { | ||
this.observer = new ResizeObserver((entries) => { | ||
const [nav] = entries; | ||
if (this.navWidth === nav.contentRect.width) { | ||
return; | ||
} | ||
this.navWidth = nav.contentRect.width; | ||
this.updateDropdownOptionAmount(); | ||
}); | ||
this.observer.observe(this.template.querySelector("nav")!); | ||
this.observer.observe(this.template.querySelector("nav")!); | ||
} catch (error) { | ||
console.error( | ||
"Error occured while setting up ResizeObserver on breadcrumbs", | ||
error | ||
); | ||
} | ||
} | ||
@@ -127,0 +134,0 @@ } |
@@ -6,3 +6,3 @@ import { LightningElement, api } from "lwc"; | ||
export default class ContentCallout extends LightningElement { | ||
@api title!: string; | ||
@api header!: string; | ||
@api variant!: CalloutVariant; | ||
@@ -9,0 +9,0 @@ cardVariant?: string; |
@@ -16,3 +16,3 @@ import { LightningElement, api } from "lwc"; | ||
export default class Heading extends LightningElement { | ||
@api title: string = ""; | ||
@api header: string = ""; | ||
@api hash: string | null = null; | ||
@@ -19,0 +19,0 @@ |
@@ -9,3 +9,3 @@ import { LightningElement, api } from "lwc"; | ||
@api iconSymbol?: IconSymbol; | ||
@api title: string = ""; | ||
@api header: string = ""; | ||
@api urlText: string = ""; | ||
@@ -26,3 +26,3 @@ | ||
try { | ||
if (this.title && this.urlText) { | ||
if (this.header && 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 title: string = ""; | ||
@api header: string = ""; | ||
@api hash: string | null = null; | ||
@@ -21,3 +21,3 @@ | ||
try { | ||
if (this.title && this.hash) { | ||
if (this.header && 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 title!: string; | ||
@api header!: 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
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
6526
254434
75
2