@salesforcedevs/docs-components 1.3.179 → 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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/docs-components",
|
|
3
|
-
"version": "1.3.
|
|
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": "
|
|
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("
|
|
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
|
/**
|