@salesforcedevs/docs-components 1.3.179-alpha.0 → 1.3.182

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/LICENSE ADDED
@@ -0,0 +1,12 @@
1
+ Copyright (c) 2020, Salesforce.com, Inc.
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5
+
6
+ * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7
+
8
+ * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
9
+
10
+ * Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
11
+
12
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/docs-components",
3
- "version": "1.3.179-alpha.0",
3
+ "version": "1.3.182",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -24,5 +24,5 @@
24
24
  "@types/lodash.orderby": "^4.6.7",
25
25
  "@types/lodash.uniqby": "^4.7.7"
26
26
  },
27
- "gitHead": "4629fdd9ca18a13480044ad43515b91945d16aad"
27
+ "gitHead": "d09929965dcdf69c8e8613a5bb7d597f3b76422e"
28
28
  }
@@ -35,10 +35,6 @@ export default class AmfTopic extends LightningElement {
35
35
  }
36
36
 
37
37
  this._model = value;
38
- if (this._model) {
39
- this.update();
40
- }
41
- // else { Remove child? No model, seems like no component should be shown. }
42
38
  }
43
39
 
44
40
  update(): void {
@@ -46,7 +42,7 @@ export default class AmfTopic extends LightningElement {
46
42
  throw new Error("Amf TopicModel undefined when trying to update");
47
43
  }
48
44
 
49
- const container = this.template.querySelector("div.topic-container")!;
45
+ const container = this.template.querySelector(".topic-container")!;
50
46
  const { id } = this.model;
51
47
  const type = this.type;
52
48
  const amf = this.amf;
@@ -86,6 +82,15 @@ export default class AmfTopic extends LightningElement {
86
82
  }
87
83
  container.appendChild(element as Node);
88
84
  }
85
+
86
+ renderedCallback(): void {
87
+ try {
88
+ this.update();
89
+ } catch (error) {
90
+ console.error(error);
91
+ }
92
+ // else { Remove child? No model, seems like no component should be shown. }
93
+ }
89
94
  }
90
95
 
91
96
  /**
@@ -106,7 +106,7 @@ h6 {
106
106
  }
107
107
 
108
108
  img {
109
- image-rendering: optimize-contrast;
109
+ image-rendering: -webkit-optimize-contrast;
110
110
  }
111
111
 
112
112
  p,
@@ -2,6 +2,7 @@
2
2
 
3
3
  dx-logo {
4
4
  min-width: fit-content;
5
+ min-width: -moz-fit-content;
5
6
  }
6
7
 
7
8
  .header_l2 {
@@ -2,7 +2,7 @@
2
2
 
3
3
  button {
4
4
  opacity: 0;
5
- color: rgb(11 92 171);
5
+ color: rgb(11, 92, 171);
6
6
  }
7
7
 
8
8
  button:hover {
@@ -17,7 +17,7 @@ button:focus {
17
17
 
18
18
  button:focus-visible {
19
19
  border-radius: 4px;
20
- border: 2px solid rgb(11 92 171);
20
+ border: 2px solid rgb(11, 92, 171);
21
21
  }
22
22
 
23
23
  .icon-wrapper {
@@ -23,7 +23,7 @@ button {
23
23
  bottom: var(--doc-c-heading-anchor-button-bottom);
24
24
  left: 0;
25
25
  opacity: 0;
26
- color: rgb(11 92 171);
26
+ color: rgb(11, 92, 171);
27
27
  display: flex;
28
28
  justify-content: center;
29
29
  align-items: center;
@@ -4,7 +4,7 @@
4
4
  width: 100%;
5
5
  display: flex;
6
6
  flex-direction: row;
7
- margin: 20px 0;
7
+ margin: 20px 0 20px 0;
8
8
  }
9
9
 
10
10
  dx-hr:first-of-type::part(hr) {
@@ -166,12 +166,12 @@ api-security-documentation {
166
166
  --anypoint-button-emphasis-high-active-background-color: transparent;
167
167
 
168
168
  /* api example */
169
- --api-example-accent-color: rgb(250 250 250);
170
- --api-example-background-color: rgb(250 250 250);
169
+ --api-example-accent-color: rgb(250, 250, 250);
170
+ --api-example-background-color: rgb(250, 250, 250);
171
171
  --api-example-title-background-color: transparent;
172
172
 
173
173
  /* code snippets */
174
- --http-code-snippet-container-background-color: rgb(250 250 250);
174
+ --http-code-snippet-container-background-color: rgb(250, 250, 250);
175
175
  --http-code-snippet-container-padding: var(--dx-g-spacing-md);
176
176
 
177
177
  /* prism */
@@ -208,7 +208,7 @@ api-endpoint-documentation {
208
208
  );
209
209
 
210
210
  /* description */
211
- --api-endpoint-documentation-description-color: rgb(24 24 24);
211
+ --api-endpoint-documentation-description-color: rgb(24, 24, 24);
212
212
  }
213
213
 
214
214
  api-endpoint-documentation,
@@ -271,11 +271,11 @@ api-method-documentation {
271
271
  --api-method-documentation-http-method-label-font-weight: var(
272
272
  --dx-g-font-bold
273
273
  );
274
- --api-method-documentation-description-color: rgb(24 24 24);
274
+ --api-method-documentation-description-color: rgb(24, 24, 24);
275
275
  --api-method-documentation-operation-id-color: var(--dx-g-gray-50);
276
276
 
277
277
  /* body */
278
- --api-body-document-description-color: rgb(24 24 24);
278
+ --api-body-document-description-color: rgb(24, 24, 24);
279
279
  --api-body-document-media-type-selector-color: var(--dx-g-blue-vibrant-20);
280
280
  --api-body-document-media-type-selector-font-size: var(
281
281
  --amf-h8-mod-font-size
@@ -9,7 +9,7 @@
9
9
  }
10
10
 
11
11
  .doc-status-container {
12
- background-color: rgb(254 243 217);
12
+ background-color: rgb(254, 243, 217);
13
13
  border-color: var(--dx-g-yellow-vibrant-80);
14
14
  }
15
15