@salesforcedevs/dw-components 1.3.45 → 1.3.47
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/dw-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.47",
|
|
4
4
|
"description": "Lightning web components for https://developer.salesforce.com",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"@types/setimmediate": "^1.0.2",
|
|
25
25
|
"setimmediate": "^1.0.5"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "37ecd8ca7dc38636ff3ec336077512ab52065c8d"
|
|
28
28
|
}
|
|
@@ -44,8 +44,7 @@
|
|
|
44
44
|
<dx-grid columns={columns}>
|
|
45
45
|
<template for:each={postList} for:item="post">
|
|
46
46
|
<dx-card-blog-post
|
|
47
|
-
|
|
48
|
-
author-label={post.authorName}
|
|
47
|
+
authors={post.authors}
|
|
49
48
|
body={post.body}
|
|
50
49
|
datetime={post.datetime}
|
|
51
50
|
href={post.href}
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
<template for:each={posts} for:item="post">
|
|
3
3
|
<dx-card-blog-post
|
|
4
4
|
label="BLOG POST"
|
|
5
|
-
author-img-src={post.authorImgSrc}
|
|
6
|
-
author-label={post.authorName}
|
|
7
5
|
body={post.body}
|
|
8
6
|
datetime={post.datetime}
|
|
9
7
|
href={post.href}
|
|
@@ -11,6 +9,7 @@
|
|
|
11
9
|
img-src={post.imgSrc}
|
|
12
10
|
key={post.id}
|
|
13
11
|
title={post.title}
|
|
12
|
+
authors={post.authors}
|
|
14
13
|
></dx-card-blog-post>
|
|
15
14
|
<dx-hr spacing="2xs" class="mobile-divider_posts" key={post.id}></dx-hr>
|
|
16
15
|
</template>
|
|
@@ -288,7 +288,7 @@
|
|
|
288
288
|
</template>
|
|
289
289
|
<template for:each={posts} for:item="post">
|
|
290
290
|
<template if:false={isMinimalCard}>
|
|
291
|
-
<template if:true={post.
|
|
291
|
+
<template if:true={post.authors}>
|
|
292
292
|
<dx-card-expanded
|
|
293
293
|
key={post.id}
|
|
294
294
|
title={post.title}
|
|
@@ -296,13 +296,12 @@
|
|
|
296
296
|
href={post.href}
|
|
297
297
|
date={post.date}
|
|
298
298
|
body={post.excerpt}
|
|
299
|
-
|
|
300
|
-
author-label={post.author.name}
|
|
299
|
+
authors={post.authors}
|
|
301
300
|
topics={post.topics}
|
|
302
301
|
length={post.duration}
|
|
303
302
|
></dx-card-expanded>
|
|
304
303
|
</template>
|
|
305
|
-
<template if:false={post.
|
|
304
|
+
<template if:false={post.authors}>
|
|
306
305
|
<dx-card-expanded
|
|
307
306
|
key={post.id}
|
|
308
307
|
title={post.title}
|
|
@@ -65,14 +65,12 @@ function normalizePosts(posts: Array<ArchivePost>, contentType: string) {
|
|
|
65
65
|
...(contentType === "expanded" && {
|
|
66
66
|
excerpt: post.excerpt,
|
|
67
67
|
duration: getAudioDuration(post.podcast_audio.duration),
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
)
|
|
75
|
-
})
|
|
68
|
+
authors: post.authors,
|
|
69
|
+
...(post._embedded && {
|
|
70
|
+
topics: post._embedded["wp:term"][0].map(
|
|
71
|
+
(term: any) => term.name
|
|
72
|
+
)
|
|
73
|
+
})
|
|
76
74
|
})
|
|
77
75
|
}));
|
|
78
76
|
}
|
|
@@ -114,7 +112,8 @@ export async function getArchivePosts({
|
|
|
114
112
|
"date",
|
|
115
113
|
"sitename",
|
|
116
114
|
"link",
|
|
117
|
-
"podcast_audio"
|
|
115
|
+
"podcast_audio",
|
|
116
|
+
"authors"
|
|
118
117
|
];
|
|
119
118
|
const EXPANDED_FIELDS = [
|
|
120
119
|
"excerpt",
|