@salesforcedevs/docs-components 1.3.150-alpha → 1.3.150-lwf-ref-alpha1
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/lwc.config.json
CHANGED
package/package.json
CHANGED
|
@@ -1242,18 +1242,14 @@ export default class AmfReference extends LightningElement {
|
|
|
1242
1242
|
}
|
|
1243
1243
|
if (!isRedirecting) {
|
|
1244
1244
|
const currentReferenceUrl = window.location.href;
|
|
1245
|
-
console.log("currentReferenceUrl", currentReferenceUrl);
|
|
1246
1245
|
const referenceMeta =
|
|
1247
1246
|
this.getMarkdownReferenceMeta(currentReferenceUrl);
|
|
1248
|
-
console.log("referenceMeta", referenceMeta);
|
|
1249
1247
|
const selectedItemRefId =
|
|
1250
1248
|
this.getReferenceIdFromUrl(currentReferenceUrl);
|
|
1251
|
-
console.log("selectedItemRefId", selectedItemRefId);
|
|
1252
1249
|
const referenceDetails = this.getRefDetailsForGivenTopicMeta(
|
|
1253
1250
|
selectedItemRefId,
|
|
1254
1251
|
referenceMeta
|
|
1255
1252
|
);
|
|
1256
|
-
console.log("referenceDtails", referenceDetails);
|
|
1257
1253
|
if (referenceDetails) {
|
|
1258
1254
|
this.updateNavTitleMetaTag(referenceDetails.topicTitle);
|
|
1259
1255
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
h2 {
|
|
2
|
+
font-weight: bold;
|
|
3
|
+
font-size: 24px;
|
|
4
|
+
margin: 10px 0;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.component-image {
|
|
8
|
+
padding: 48px 40px;
|
|
9
|
+
display: flex;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
align-items: center;
|
|
12
|
+
border: 1px solid var(--foundation-gray-neutral-95, #f3f3f3);
|
|
13
|
+
min-height: 140px;
|
|
14
|
+
max-height: 480px;
|
|
15
|
+
flex: 1;
|
|
16
|
+
margin: 16px 0px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.small {
|
|
20
|
+
font-size: 12px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.item {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex: 1;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
img{
|
|
31
|
+
max-width: 100%;
|
|
32
|
+
height: auto;
|
|
33
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="item">
|
|
3
|
+
<h2 if:true={title}>{title}</h2>
|
|
4
|
+
<p if:true={description}>
|
|
5
|
+
{description}
|
|
6
|
+
</p>
|
|
7
|
+
<p if:true={doDontLabel}>{doDontLabel}</p>
|
|
8
|
+
<div if:true={imageSrc} class="component-image">
|
|
9
|
+
<img src={imageSrc} />
|
|
10
|
+
</div>
|
|
11
|
+
<p if:true={note} class="small">{note}</p>
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { LightningElement, api } from "lwc";
|
|
2
|
+
|
|
3
|
+
class Component extends LightningElement {
|
|
4
|
+
@api title;
|
|
5
|
+
@api description;
|
|
6
|
+
@api imageSrc;
|
|
7
|
+
@api isDo;
|
|
8
|
+
@api note;
|
|
9
|
+
|
|
10
|
+
@api
|
|
11
|
+
get doDontLabel(): string {
|
|
12
|
+
//TODO: store a boolean value and refactor logic
|
|
13
|
+
if (this.isDo === "true") {
|
|
14
|
+
return "DO"
|
|
15
|
+
} else if (this.isDo === "false") {
|
|
16
|
+
return "DON'T"
|
|
17
|
+
}
|
|
18
|
+
return ""
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export default Component;
|