@salesforcedevs/docs-components 1.14.6-load-15 → 1.14.6-load-16
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
|
@@ -29,6 +29,12 @@ export default class SpecificationContent extends LightningElement {
|
|
|
29
29
|
this.fetchComponentMetadata();
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
// Function to delay execution by a specified time (in milliseconds)
|
|
33
|
+
delay(ms: number): Promise<void> {
|
|
34
|
+
return new Promise(resolve => setTimeout(resolve, ms));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
|
|
32
38
|
async fetchComponentMetadata() {
|
|
33
39
|
const componentQueryParams = {
|
|
34
40
|
model: this.model,
|
|
@@ -39,6 +45,8 @@ export default class SpecificationContent extends LightningElement {
|
|
|
39
45
|
const queryString = new URLSearchParams(
|
|
40
46
|
componentQueryParams
|
|
41
47
|
).toString();
|
|
48
|
+
// Wait for 3 seconds
|
|
49
|
+
await this.delay(3000);
|
|
42
50
|
const url = 'https://cx-mock-router-internal-07a18d7b3f61.herokuapp.com/lwc/lightning/inputRichText';
|
|
43
51
|
|
|
44
52
|
try {
|