@salesforcedevs/dw-components 0.54.0-alpha01 → 0.54.0-alpha02
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 +1 -1
- package/src/modules/dw/blogsGrid/blogsGrid.css +1 -1
- package/src/modules/dw/blogsGrid/blogsGrid.ts +4 -3
- package/src/modules/dw/cardBlogPostProvider/cardBlogPostProvider.ts +2 -2
- package/src/modules/dw/cardPodcastEpisodeProvider/cardPodcastEpisodeProvider.ts +2 -2
- package/src/modules/dw/contentArchive/contentArchive.css +1 -1
- package/src/modules/dw/contentArchive/contentArchive.ts +2 -2
- package/src/modules/dw/deSignupForm/deSignupForm.ts +2 -2
- package/src/modules/dw/docsGrid/docsGrid.ts +1 -1
- package/src/modules/dw/eventsList/eventsList.ts +1 -1
- package/src/modules/dw/instrumentation/instrumentation.ts +1 -1
- package/src/modules/dw/newsletterForm/newsletterForm.css +2 -2
- package/src/modules/dw/newsletterForm/newsletterForm.ts +1 -1
- package/src/modules/dw/podcastSubscription/podcastSubscription.css +2 -2
- package/src/modules/dw/podcastsGrid/podcastsGrid.css +1 -1
- package/src/modules/dw/podcastsGrid/podcastsGrid.ts +2 -2
- package/src/modules/dw/rcgTable/rcgTable.css +1 -1
- package/src/modules/dw/searchResults/searchResults.css +1 -1
- package/src/modules/dw/slackCta/slackCta.css +2 -2
- package/src/modules/dw/slackSuccess/slackSuccess.css +1 -1
- package/src/modules/{base-elements → dwBaseElements}/postsGrid/postsGrid.ts +2 -2
- /package/src/modules/{helpers → dwHelpers}/postsGrid/postsGrid.css +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { normalizePost } from "
|
|
2
|
-
import { track } from "
|
|
1
|
+
import { normalizePost } from "dxUtils/normalizers";
|
|
2
|
+
import { track } from "dxUtils/analytics";
|
|
3
3
|
import { WordpressBlogPost, NormalizedPost } from "typings/custom";
|
|
4
|
-
import { PostsGrid } from "
|
|
4
|
+
import { PostsGrid } from "dwBaseElements/postsGrid";
|
|
5
5
|
|
|
6
6
|
const BLOG_SUBSCRIBE_HREF = "https://developer.salesforce.com/blogs/feed";
|
|
7
7
|
|
|
@@ -13,6 +13,7 @@ const ANALYTICS_INFO = {
|
|
|
13
13
|
clickUrl: BLOG_SUBSCRIBE_HREF,
|
|
14
14
|
ctaClick: true
|
|
15
15
|
};
|
|
16
|
+
|
|
16
17
|
export default class BlogsGrid extends PostsGrid {
|
|
17
18
|
_loadMoreAmount = 21;
|
|
18
19
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LightningElement, api, track } from "lwc";
|
|
2
|
-
import { fetchWordpressPosts } from "
|
|
3
|
-
import { normalizePost } from "
|
|
2
|
+
import { fetchWordpressPosts } from "dxUtils/wordpress";
|
|
3
|
+
import { normalizePost } from "dxUtils/normalizers";
|
|
4
4
|
|
|
5
5
|
type BlogPost = {
|
|
6
6
|
body: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LightningElement, api, track } from "lwc";
|
|
2
|
-
import { fetchWordpressPosts } from "
|
|
3
|
-
import { normalizeEpisode } from "
|
|
2
|
+
import { fetchWordpressPosts } from "dxUtils/wordpress";
|
|
3
|
+
import { normalizeEpisode } from "dxUtils/normalizers";
|
|
4
4
|
|
|
5
5
|
type PodcastEpisode = {
|
|
6
6
|
body: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { LightningElement } from "lwc";
|
|
2
2
|
import cx from "classnames";
|
|
3
3
|
import { getArchivePosts, getArchiveFilterList } from "./utils";
|
|
4
|
-
import { sortSplittedPostsByMonth } from "
|
|
4
|
+
import { sortSplittedPostsByMonth } from "dxUtils/dates";
|
|
5
5
|
import { Filters } from "./contentArchive.types";
|
|
6
|
-
import { QueryCoordinator } from "
|
|
6
|
+
import { QueryCoordinator } from "dxUtils/queryCoordinator";
|
|
7
7
|
|
|
8
8
|
const MOBILE_MATCH = "767px";
|
|
9
9
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LightningElement, api, track } from "lwc";
|
|
2
|
-
import { toJson } from "
|
|
3
|
-
import { track as trackGtm } from "
|
|
2
|
+
import { toJson } from "dxUtils/normalizers";
|
|
3
|
+
import { track as trackGtm } from "dxUtils/analytics";
|
|
4
4
|
import {
|
|
5
5
|
submitForm,
|
|
6
6
|
ErrorCode,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { normalizeEpisode } from "
|
|
1
|
+
import { normalizeEpisode } from "dxUtils/normalizers";
|
|
2
2
|
import { NormalizedPost, WordpressPost } from "typings/custom";
|
|
3
|
-
import { PostsGrid } from "
|
|
3
|
+
import { PostsGrid } from "dwBaseElements/postsGrid";
|
|
4
4
|
|
|
5
5
|
export default class PodcastsGrid extends PostsGrid {
|
|
6
6
|
normalizePost(post: WordpressPost): NormalizedPost {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { api, LightningElement } from "lwc";
|
|
2
|
-
import { toJson } from "
|
|
3
|
-
import { track } from "
|
|
2
|
+
import { toJson } from "dxUtils/normalizers";
|
|
3
|
+
import { track } from "dxUtils/analytics";
|
|
4
4
|
import { WordpressPost, NormalizedPost } from "typings/custom";
|
|
5
5
|
|
|
6
6
|
const ANALYTICS_INFO = {
|
|
File without changes
|