@salesforcedevs/docs-components 0.54.7-alpha → 0.54.7-docs-locales2

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": "0.54.7-alpha",
3
+ "version": "0.54.7-docs-locales2",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -66,31 +66,47 @@ td > img.content-image:first-child:last-child[alt="No"] {
66
66
 
67
67
  h1 {
68
68
  font-family: var(--dx-g-font-display);
69
- font-size: 40px;
69
+ font-size: var(--dx-g-text-4xl);
70
70
 
71
71
  /* not registered */
72
72
  color: var(--dx-g-blue-vibrant-20);
73
73
  letter-spacing: -0.4px;
74
- line-height: 40px;
74
+ line-height: 56px;
75
75
  }
76
76
 
77
77
  h2 {
78
78
  font-family: var(--dx-g-font-display);
79
- font-size: var(--dx-g-text-xl);
79
+ font-size: var(--dx-g-text-3xl);
80
80
  color: var(--dx-g-blue-vibrant-20);
81
81
  letter-spacing: -0.1px;
82
- line-height: var(--dx-g-spacing-lg);
82
+ line-height: var(--dx-g-spacing-3xl);
83
83
  }
84
84
 
85
85
  h3 {
86
86
  font-family: var(--dx-g-font-display);
87
- font-size: var(--dx-g-text-lg);
87
+ font-size: 32px;
88
88
  color: var(--dx-g-blue-vibrant-20);
89
89
  letter-spacing: -0.1px;
90
- line-height: var(--dx-g-spacing-lg);
90
+ line-height: var(--dx-g-spacing-2xl);
91
91
  }
92
92
 
93
93
  h4 {
94
+ font-family: var(--dx-g-font-display);
95
+ font-size: var(--dx-g-text-xl);
96
+ color: var(--dx-g-blue-vibrant-20);
97
+ letter-spacing: 0;
98
+ line-height: var(--dx-g-spacing-xl);
99
+ }
100
+
101
+ h5 {
102
+ font-family: var(--dx-g-font-display);
103
+ font-size: var(--dx-g-text-lg);
104
+ color: var(--dx-g-blue-vibrant-20);
105
+ letter-spacing: 0;
106
+ line-height: 28px;
107
+ }
108
+
109
+ h6 {
94
110
  font-family: var(--dx-g-font-display);
95
111
  font-size: var(--dx-g-text-base);
96
112
  color: var(--dx-g-blue-vibrant-20);
@@ -116,6 +132,12 @@ p,
116
132
  margin-bottom: var(--dx-g-spacing-md);
117
133
  }
118
134
 
135
+ dd > p,
136
+ dd > .p {
137
+ margin-top: 0;
138
+ margin-bottom: 0;
139
+ }
140
+
119
141
  .li {
120
142
  font-family: var(--dx-g-font-sans);
121
143
  font-size: var(--dx-g-text-base);
@@ -175,7 +197,8 @@ a,
175
197
  margin-right: var(--dx-g-spacing-lg);
176
198
  }
177
199
 
178
- .codeph {
200
+ .codeph,
201
+ .filepath {
179
202
  font-family: var(--dx-g-font-mono);
180
203
  font-size: var(--dx-g-text-sm);
181
204
  line-height: var(--dx-g-text-lg);
@@ -239,6 +262,7 @@ dd {
239
262
  letter-spacing: 0;
240
263
  line-height: var(--dx-g-spacing-lg);
241
264
  margin-left: var(--dx-g-spacing-smd);
265
+ margin-bottom: var(--dx-g-spacing-md);
242
266
  }
243
267
 
244
268
  li {
@@ -1,5 +1,4 @@
1
1
  import { api, track } from "lwc";
2
- import { toJson } from "dxUtils/normalizers";
3
2
  import { FetchContent } from "./utils";
4
3
  import {
5
4
  CoveoAdvancedQueryXMLConfig,
@@ -13,6 +12,7 @@ import {
13
12
  import { SearchSyncer } from "docUtils/SearchSyncer";
14
13
  import { LightningElementWithState } from "docBaseElements/lightningElementWithState";
15
14
  import { Language } from "typings/custom";
15
+ import { DEFAULT_LANGUAGES } from "dxUtils/constants";
16
16
 
17
17
  // TODO: Imitating from actual implementation as doc-content use it like this. We should refactor it later.
18
18
  const handleContentError = (error): void => console.log(error);
@@ -26,15 +26,6 @@ export default class DocXmlContent extends LightningElementWithState<{
26
26
  @api coveoOrganizationId!: string;
27
27
  @api coveoPublicAccessToken!: string;
28
28
 
29
- @api
30
- get labels() {
31
- return this._labels;
32
- }
33
-
34
- set labels(value) {
35
- this._labels = toJson(value);
36
- }
37
-
38
29
  @api
39
30
  get allLanguages(): Array<Language> {
40
31
  return this._allLanguages;
@@ -46,7 +37,6 @@ export default class DocXmlContent extends LightningElementWithState<{
46
37
  }
47
38
  }
48
39
 
49
- private _labels: Labels = null;
50
40
  private availableLanguages: Array<DocLanguage> = [];
51
41
  private availableVersions: Array<DocVersion> = [];
52
42
  private contentProvider: FetchContent;
@@ -98,7 +88,7 @@ export default class DocXmlContent extends LightningElementWithState<{
98
88
  shouldStopPropagation: true,
99
89
  target: window
100
90
  });
101
- private _allLanguages: Array<Language> = [];
91
+ private _allLanguages: Array<Language> = DEFAULT_LANGUAGES;
102
92
 
103
93
  @track private pageReference: PageReference = {};
104
94
 
@@ -121,7 +111,10 @@ export default class DocXmlContent extends LightningElementWithState<{
121
111
  window.location.href = "/docs";
122
112
  return;
123
113
  }
124
- this.contentProvider = new FetchContent(this.apiDomain, this.allLanguages);
114
+ this.contentProvider = new FetchContent(
115
+ this.apiDomain,
116
+ this.allLanguages
117
+ );
125
118
  this.fetchDocument().then(() => (this.loaded = true));
126
119
  window.addEventListener("popstate", this.handlePopState);
127
120