@salesforcedevs/docs-components 1.27.22-banner4 → 1.27.22-banner5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/docs-components",
3
- "version": "1.27.22-banner4",
3
+ "version": "1.27.22-banner5",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -25,5 +25,5 @@
25
25
  "@types/lodash.orderby": "4.6.9",
26
26
  "@types/lodash.uniqby": "4.7.9"
27
27
  },
28
- "gitHead": "32fcf61be8c3868caa09ab6e8e9b353d1f54a287"
28
+ "gitHead": "bccd0db423934d0a489cd87a2b2c7f60a20bbeb6"
29
29
  }
@@ -25,18 +25,6 @@
25
25
  lwc:if={docPhaseInfo}
26
26
  doc-phase-info={docPhaseInfo}
27
27
  ></doc-phase>
28
- <doc-banner
29
- slot="locale-banner"
30
- lwc:if={showLocaleBanner}
31
- message-text="This text was translated using Salesforce's machine translation system. More details can be found "
32
- message-link-url="https://help.salesforce.com/s/articleView?id=sf.machine_translation.htm"
33
- message-link-text="here"
34
- button-label="Switch to English"
35
- button-href={localeBannerEnUsHref}
36
- secondary-label="Not Now"
37
- show-close-button="true"
38
- dismiss-storage-key={deliverable}
39
- ></doc-banner>
40
28
  <doc-phase
41
29
  slot="version-banner"
42
30
  lwc:if={showVersionBanner}
@@ -51,8 +51,6 @@ export default class AmfReference extends LightningElement {
51
51
  @api language!: string;
52
52
  @api hideFooter = false;
53
53
 
54
- @api deliverable = "";
55
-
56
54
  /** Optional origin URL for the footer MFE (e.g. wp-json endpoint). Passed through to dx-footer-mfe. */
57
55
  @api origin: string | null = null;
58
56
  @track navigation = [] as NavigationItem[];
@@ -74,18 +72,6 @@ export default class AmfReference extends LightningElement {
74
72
  return this.isSpecBasedReference(this._currentReferenceId);
75
73
  }
76
74
 
77
- get showLocaleBanner(): boolean {
78
- if (!this.deliverable || this.language === "en-us") {
79
- return false;
80
- }
81
- return this.languages?.some((l) => l.id === "en-us") ?? false;
82
- }
83
-
84
- get localeBannerEnUsHref(): string {
85
- const enUs = this.languages?.find((l) => l.id === "en-us");
86
- return enUs?.link?.href ?? "";
87
- }
88
-
89
75
  @api
90
76
  get referenceSetConfig(): ReferenceSetConfig {
91
77
  return this._referenceSetConfig;
@@ -23,8 +23,7 @@
23
23
  align-items: flex-start;
24
24
  justify-content: space-between;
25
25
  width: 100%;
26
- max-width: 1280px;
27
- margin: 0 auto;
26
+ margin: 0;
28
27
  min-height: var(--doc-banner-height);
29
28
  padding: 0 var(--doc-banner-padding-x-right) 0
30
29
  var(--doc-banner-padding-x-left);