@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/dw-components",
3
- "version": "0.54.0-alpha01",
3
+ "version": "0.54.0-alpha02",
4
4
  "description": "Lightning web components for https://developer.salesforce.com",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -1,4 +1,4 @@
1
- @import "../../helpers/postsGrid/postsGrid.css";
1
+ @import "dwHelpers/postsGrid";
2
2
 
3
3
  :host {
4
4
  --dx-c-post-list-padding-horizontal: var(--dx-g-page-padding-horizontal);
@@ -1,7 +1,7 @@
1
- import { normalizePost } from "utils/normalizers";
2
- import { track } from "utils/analytics";
1
+ import { normalizePost } from "dxUtils/normalizers";
2
+ import { track } from "dxUtils/analytics";
3
3
  import { WordpressBlogPost, NormalizedPost } from "typings/custom";
4
- import { PostsGrid } from "../../base-elements/postsGrid/postsGrid";
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 "utils/wordpress";
3
- import { normalizePost } from "utils/normalizers";
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 "utils/wordpress";
3
- import { normalizeEpisode } from "utils/normalizers";
2
+ import { fetchWordpressPosts } from "dxUtils/wordpress";
3
+ import { normalizeEpisode } from "dxUtils/normalizers";
4
4
 
5
5
  type PodcastEpisode = {
6
6
  body: string;
@@ -1,4 +1,4 @@
1
- @import "helpers/reset";
1
+ @import "dxHelpers/reset";
2
2
 
3
3
  .container {
4
4
  display: flex;
@@ -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 "utils/dates";
4
+ import { sortSplittedPostsByMonth } from "dxUtils/dates";
5
5
  import { Filters } from "./contentArchive.types";
6
- import { QueryCoordinator } from "utils/queryCoordinator";
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 "utils/normalizers";
3
- import { track as trackGtm } from "utils/analytics";
2
+ import { toJson } from "dxUtils/normalizers";
3
+ import { track as trackGtm } from "dxUtils/analytics";
4
4
  import {
5
5
  submitForm,
6
6
  ErrorCode,
@@ -1,5 +1,5 @@
1
1
  import { api, LightningElement } from "lwc";
2
- import { toJson } from "utils/normalizers";
2
+ import { toJson } from "dxUtils/normalizers";
3
3
  import { DocsTile, DropdownItem } from "typings/custom";
4
4
  import qs from "query-string";
5
5
  import uniqBy from "lodash.uniqby";
@@ -1,5 +1,5 @@
1
1
  import { api, LightningElement } from "lwc";
2
- import { toJson } from "utils/normalizers";
2
+ import { toJson } from "dxUtils/normalizers";
3
3
  import qs from "query-string";
4
4
  import uniqBy from "lodash.uniqby";
5
5
  import orderBy from "lodash.orderby";
@@ -4,7 +4,7 @@ import {
4
4
  LISTENER_QUEUE,
5
5
  LISTENER_INDICATOR,
6
6
  track
7
- } from "utils/analytics";
7
+ } from "dxUtils/analytics";
8
8
 
9
9
  const googleTagManager = {
10
10
  track: function (e: Event) {
@@ -1,5 +1,5 @@
1
- @import "helpers/text";
2
- @import "helpers/button";
1
+ @import "dxHelpers/text";
2
+ @import "dxHelpers/button";
3
3
 
4
4
  :host {
5
5
  --dx-g-text-base: 20px;
@@ -1,5 +1,5 @@
1
1
  import { LightningElement, api } from "lwc";
2
- import { track } from "utils/analytics";
2
+ import { track } from "dxUtils/analytics";
3
3
  import { CountryOptions, CheckboxTextSet } from "typings/custom";
4
4
 
5
5
  const ANALYTICS_INFO = {
@@ -1,5 +1,5 @@
1
- @import "helpers/reset";
2
- @import "helpers/text";
1
+ @import "dxHelpers/reset";
2
+ @import "dxHelpers/text";
3
3
 
4
4
  .container {
5
5
  background-repeat: no-repeat;
@@ -1,4 +1,4 @@
1
- @import "../../helpers/postsGrid/postsGrid.css";
1
+ @import "dwHelpers/postsGrid";
2
2
 
3
3
  :host {
4
4
  --dx-c-post-list-padding-horizontal: var(--dx-g-page-padding-horizontal-lg);
@@ -1,6 +1,6 @@
1
- import { normalizeEpisode } from "utils/normalizers";
1
+ import { normalizeEpisode } from "dxUtils/normalizers";
2
2
  import { NormalizedPost, WordpressPost } from "typings/custom";
3
- import { PostsGrid } from "../../base-elements/postsGrid/postsGrid";
3
+ import { PostsGrid } from "dwBaseElements/postsGrid";
4
4
 
5
5
  export default class PodcastsGrid extends PostsGrid {
6
6
  normalizePost(post: WordpressPost): NormalizedPost {
@@ -1,4 +1,4 @@
1
- @import "helpers/table";
1
+ @import "dxHelpers/table";
2
2
 
3
3
  table {
4
4
  margin-top: 60px;
@@ -1,4 +1,4 @@
1
- @import "helpers/reset";
1
+ @import "dxHelpers/reset";
2
2
  @import "./coveo.css";
3
3
 
4
4
  /* stylelint-disable selector-class-pattern */
@@ -1,5 +1,5 @@
1
- @import "helpers/reset";
2
- @import "helpers/text";
1
+ @import "dxHelpers/reset";
2
+ @import "dxHelpers/text";
3
3
 
4
4
  .container {
5
5
  background-repeat: no-repeat;
@@ -1,4 +1,4 @@
1
- @import "helpers/text";
1
+ @import "dxHelpers/text";
2
2
 
3
3
  .slack-success_main {
4
4
  background-color: var(--dx-g-indigo-vibrant-30);
@@ -1,6 +1,6 @@
1
1
  import { api, LightningElement } from "lwc";
2
- import { toJson } from "utils/normalizers";
3
- import { track } from "utils/analytics";
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 = {