@salesforcedevs/docs-components 1.14.8 → 1.15.6
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
|
+
"version": "1.15.6",
|
|
4
4
|
"description": "Docs Lightning web components for DSC",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "index.js",
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
"@types/lodash.orderby": "4.6.9",
|
|
26
26
|
"@types/lodash.uniqby": "4.7.9"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "da103bd99b2f289599d528b9b8fd5860224f3bdc"
|
|
29
29
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="container">
|
|
2
|
+
<div class="container" lwc:if={playgroundAvailable}>
|
|
3
3
|
<dx-spinner
|
|
4
4
|
size="large"
|
|
5
5
|
variant="brand"
|
|
@@ -12,4 +12,9 @@
|
|
|
12
12
|
allow="clipboard-write"
|
|
13
13
|
></iframe>
|
|
14
14
|
</div>
|
|
15
|
+
<dx-error-fallback
|
|
16
|
+
lwc:else
|
|
17
|
+
title="Playground Unavailable"
|
|
18
|
+
description="This component's playground is currently unavailable. Please check again later."
|
|
19
|
+
></dx-error-fallback>
|
|
15
20
|
</template>
|
|
@@ -8,6 +8,15 @@ export default class ComponentPlayground extends LightningElement {
|
|
|
8
8
|
|
|
9
9
|
isLoading = true;
|
|
10
10
|
|
|
11
|
+
get playgroundAvailable() {
|
|
12
|
+
return (
|
|
13
|
+
this.playgroundAppUrl &&
|
|
14
|
+
this.model &&
|
|
15
|
+
this.namespace &&
|
|
16
|
+
this.component
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
|
|
11
20
|
get playgroundSrc(): string {
|
|
12
21
|
return `${this.playgroundAppUrl}/playground/${this.model}/${
|
|
13
22
|
this.namespace
|