@salesforcedevs/dx-components 1.3.346 → 1.3.347
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/dx-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.347",
|
|
4
4
|
"description": "DX Lightning web components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"volta": {
|
|
47
47
|
"node": "18.18.0"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "abb6b3e63c0580600e35e87edd8484fe0fd6bf1e"
|
|
50
50
|
}
|
|
@@ -48,7 +48,7 @@ export default html`
|
|
|
48
48
|
<div class="dx-result-info">
|
|
49
49
|
<span class="CoveoFieldValue" data-field="@content_type" data-helper="badge" data-html-value="true"></span>
|
|
50
50
|
<% if (!raw.breadcrumbs && !raw.metabreadcrumbs) { %>
|
|
51
|
-
<% if (raw.content_type === "
|
|
51
|
+
<% if (raw.content_type === "community_posts" && raw.sfid) { %>
|
|
52
52
|
<span class="CoveoFieldValue" data-field="@sfid" data-helper="communityBreadcrumbs" data-html-value="true"></span>
|
|
53
53
|
<% } else { %>
|
|
54
54
|
<span class="CoveoFieldValue" data-field="@uri" data-helper="uriBreadcrumbs" data-html-value="true"></span>
|
|
@@ -95,7 +95,7 @@ export default html`
|
|
|
95
95
|
<div class="dx-result-info">
|
|
96
96
|
<span class="CoveoFieldValue" data-field="@content_type" data-helper="badge" data-html-value="true"></span>
|
|
97
97
|
<% if (!raw.breadcrumbs && !raw.metabreadcrumbs) { %>
|
|
98
|
-
<% if (raw.content_type === "
|
|
98
|
+
<% if (raw.content_type === "community_posts" && raw.sfid) { %>
|
|
99
99
|
<span class="CoveoFieldValue" data-field="@sfid" data-helper="communityBreadcrumbs" data-html-value="true"></span>
|
|
100
100
|
<% } else { %>
|
|
101
101
|
<span class="CoveoFieldValue" data-field="@uri" data-helper="uriBreadcrumbs" data-html-value="true"></span>
|
|
@@ -51,13 +51,8 @@ const isTrailheadDomain = (domain: string) =>
|
|
|
51
51
|
domain === "dev.trailhead.salesforce.com";
|
|
52
52
|
|
|
53
53
|
const buildTemplateHelperBadge = (
|
|
54
|
-
|
|
54
|
+
value: keyof typeof CONTENT_TYPE_LABELS
|
|
55
55
|
) => {
|
|
56
|
-
let value = rawValue;
|
|
57
|
-
|
|
58
|
-
if (value === "community posts") {
|
|
59
|
-
value = "community";
|
|
60
|
-
}
|
|
61
56
|
|
|
62
57
|
const style = getContentTypeColorVariables(value);
|
|
63
58
|
const label = CONTENT_TYPE_LABELS[value];
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ContentType, IconData } from "typings/custom";
|
|
2
2
|
|
|
3
3
|
export const CONTENT_TYPE_LABELS = {
|
|
4
|
-
documentation: "Documentation",
|
|
4
|
+
documentation: "Developer Documentation",
|
|
5
|
+
help_documentation: "Product Documentation",
|
|
5
6
|
trailhead: "Trailhead",
|
|
6
7
|
blog: "Blog",
|
|
7
8
|
forum: "Forum",
|
|
@@ -19,6 +20,10 @@ export const CONTENT_TYPE_ICONS: {
|
|
|
19
20
|
iconSprite: "utility",
|
|
20
21
|
iconSymbol: "knowledge_base"
|
|
21
22
|
},
|
|
23
|
+
help_documentation: {
|
|
24
|
+
iconSprite: "utility",
|
|
25
|
+
iconSymbol: "knowledge_base"
|
|
26
|
+
},
|
|
22
27
|
trailhead: {
|
|
23
28
|
iconSprite: "salesforcebrand",
|
|
24
29
|
iconSymbol: "learning"
|
|
@@ -55,6 +60,7 @@ export const CONTENT_TYPE_ICONS: {
|
|
|
55
60
|
|
|
56
61
|
export const CONTENT_TYPES = [
|
|
57
62
|
"documentation",
|
|
63
|
+
"help_documentation",
|
|
58
64
|
"trailhead",
|
|
59
65
|
"blog",
|
|
60
66
|
"forum",
|
|
@@ -62,5 +68,5 @@ export const CONTENT_TYPES = [
|
|
|
62
68
|
"event",
|
|
63
69
|
"website",
|
|
64
70
|
"podcast",
|
|
65
|
-
"
|
|
71
|
+
"community_posts"
|
|
66
72
|
] as ContentType[];
|