@salesforcedevs/dx-components 1.3.344-alpha → 1.3.345-alpha2
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
|
@@ -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>
|
|
@@ -61,7 +61,7 @@ export default html`
|
|
|
61
61
|
<% } %>
|
|
62
62
|
<% } %>
|
|
63
63
|
</div>
|
|
64
|
-
<% if (raw.content_type === "
|
|
64
|
+
<% if (raw.content_type === "community_posts") { %>
|
|
65
65
|
<a
|
|
66
66
|
class="dx-result-title CoveoResultLink"
|
|
67
67
|
data-href-template="https://trailhead.salesforce.com/trailblazer-community/feed/<%= raw.sfid %>"
|
|
@@ -103,7 +103,7 @@ export default html`
|
|
|
103
103
|
<div class="dx-result-info">
|
|
104
104
|
<span class="CoveoFieldValue" data-field="@content_type" data-helper="badge" data-html-value="true"></span>
|
|
105
105
|
<% if (!raw.breadcrumbs && !raw.metabreadcrumbs) { %>
|
|
106
|
-
<% if (raw.content_type === "
|
|
106
|
+
<% if (raw.content_type === "community_posts" && raw.sfid) { %>
|
|
107
107
|
<span class="CoveoFieldValue" data-field="@sfid" data-helper="communityBreadcrumbs" data-html-value="true"></span>
|
|
108
108
|
<% } else { %>
|
|
109
109
|
<span class="CoveoFieldValue" data-field="@uri" data-helper="uriBreadcrumbs" data-html-value="true"></span>
|
|
@@ -116,7 +116,7 @@ export default html`
|
|
|
116
116
|
<% } %>
|
|
117
117
|
<% } %>
|
|
118
118
|
</div>
|
|
119
|
-
<% if (raw.content_type === "
|
|
119
|
+
<% if (raw.content_type === "community_posts") { %>
|
|
120
120
|
<a
|
|
121
121
|
class="dx-result-title CoveoResultLink"
|
|
122
122
|
data-href-template="https://trailhead.salesforce.com/trailblazer-community/feed/<%= raw.sfid %>"
|
|
@@ -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];
|
|
@@ -497,11 +492,7 @@ export default class SearchResults extends LightningElement {
|
|
|
497
492
|
buildTemplateHelperLikes
|
|
498
493
|
);
|
|
499
494
|
|
|
500
|
-
|
|
501
|
-
querySuggestEndpoint: `https://${this.coveoOrganizationId}.coveo.com/rest/search/v2/querySuggest?organizationId=${this.coveoOrganizationId}`
|
|
502
|
-
};
|
|
503
|
-
|
|
504
|
-
Coveo.init(this.root, searchInterfaceOptions);
|
|
495
|
+
Coveo.init(this.root);
|
|
505
496
|
}
|
|
506
497
|
|
|
507
498
|
renderedCallback() {
|
|
@@ -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[];
|