@salesforcedevs/docs-components 1.3.192 → 1.3.193
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.3.
|
|
3
|
+
"version": "1.3.193",
|
|
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": "
|
|
27
|
+
"gitHead": "ef435db6fabc51e225f75b4689fa16a8a708f718"
|
|
28
28
|
}
|
|
@@ -35,6 +35,10 @@ 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. }
|
|
38
42
|
}
|
|
39
43
|
|
|
40
44
|
update(): void {
|
|
@@ -77,10 +81,10 @@ export default class AmfTopic extends LightningElement {
|
|
|
77
81
|
element = createDocumentationElement(amf, docsModel);
|
|
78
82
|
}
|
|
79
83
|
|
|
80
|
-
if (container
|
|
84
|
+
if (container?.firstChild) {
|
|
81
85
|
container.firstChild.remove();
|
|
82
86
|
}
|
|
83
|
-
container
|
|
87
|
+
container?.appendChild(element as Node);
|
|
84
88
|
}
|
|
85
89
|
|
|
86
90
|
renderedCallback(): void {
|
|
@@ -89,7 +93,6 @@ export default class AmfTopic extends LightningElement {
|
|
|
89
93
|
} catch (error) {
|
|
90
94
|
console.error(error);
|
|
91
95
|
}
|
|
92
|
-
// else { Remove child? No model, seems like no component should be shown. }
|
|
93
96
|
}
|
|
94
97
|
}
|
|
95
98
|
|