@salesforcedevs/dx-components 0.53.12-loading-img-update-3 → 0.54.0-alpha04

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.
Files changed (163) hide show
  1. package/lwc.config.json +24 -26
  2. package/package.json +2 -4
  3. package/src/modules/dx/banner/banner.css +2 -2
  4. package/src/modules/dx/breadcrumbs/breadcrumbs.css +2 -2
  5. package/src/modules/dx/breadcrumbs/breadcrumbs.ts +1 -1
  6. package/src/modules/dx/button/button.css +1 -1
  7. package/src/modules/dx/cardBlogPost/cardBlogPost.css +1 -1
  8. package/src/modules/dx/cardCallout/cardCallout.css +3 -3
  9. package/src/modules/dx/cardCallout/cardCallout.ts +5 -5
  10. package/src/modules/dx/cardContent/cardContent.css +3 -3
  11. package/src/modules/dx/cardContent/cardContent.ts +2 -2
  12. package/src/modules/dx/cardDemo/cardDemo.css +1 -1
  13. package/src/modules/dx/cardDocs/cardDocs.css +3 -3
  14. package/src/modules/dx/cardDocs/cardDocs.ts +1 -1
  15. package/src/modules/dx/cardEvent/cardEvent.css +3 -3
  16. package/src/modules/dx/cardExpanded/cardExpanded.css +1 -1
  17. package/src/modules/dx/cardExpanded/cardExpanded.ts +1 -1
  18. package/src/modules/dx/cardMinimal/cardMinimal.css +2 -2
  19. package/src/modules/dx/cardMinimal/cardMinimal.ts +1 -1
  20. package/src/modules/dx/cardNews/cardNews.css +3 -3
  21. package/src/modules/dx/cardNews/cardNews.ts +2 -2
  22. package/src/modules/dx/cardPodcastEpisode/cardPodcastEpisode.css +3 -3
  23. package/src/modules/dx/cardSmall/cardSmall.css +3 -3
  24. package/src/modules/dx/cardSmall/cardSmall.ts +1 -1
  25. package/src/modules/dx/cardTitle/cardTitle.css +2 -2
  26. package/src/modules/dx/cardTrailheadModule/cardTrailheadModule.css +1 -1
  27. package/src/modules/dx/cardTrial/cardTrial.css +3 -3
  28. package/src/modules/dx/cardTrial/cardTrial.ts +1 -1
  29. package/src/modules/dx/cardVideoPreview/cardVideoPreview.css +1 -1
  30. package/src/modules/dx/checkbox/checkbox.css +2 -2
  31. package/src/modules/dx/checkboxGroup/checkboxGroup.css +1 -1
  32. package/src/modules/dx/checkboxGroup/checkboxGroup.ts +1 -1
  33. package/src/modules/dx/codeBlock/codeBlock.css +2 -2
  34. package/src/modules/dx/codeBlock/codeBlock.ts +2 -2
  35. package/src/modules/dx/dropdown/dropdown.css +1 -1
  36. package/src/modules/dx/dropdown/dropdown.ts +2 -2
  37. package/src/modules/dx/dropdownOption/dropdownOption.css +1 -1
  38. package/src/modules/dx/dropdownOption/dropdownOption.ts +1 -1
  39. package/src/modules/dx/emptyState/emptyState.css +2 -2
  40. package/src/modules/dx/feature/feature.css +2 -2
  41. package/src/modules/dx/featuredContentHeader/featuredContentHeader.css +4 -4
  42. package/src/modules/dx/featuredContentHeader/featuredContentHeader.ts +2 -2
  43. package/src/modules/dx/featuresList/featuresList.css +2 -2
  44. package/src/modules/dx/featuresList/featuresList.ts +1 -1
  45. package/src/modules/dx/filterMenu/filterMenu.css +1 -1
  46. package/src/modules/dx/footer/footer.css +2 -2
  47. package/src/modules/dx/footer/footer.ts +2 -2
  48. package/src/modules/dx/footerOption/footerOption.ts +1 -1
  49. package/src/modules/dx/formattedDateTime/formattedDateTime.ts +5 -0
  50. package/src/modules/dx/groupText/groupText.css +2 -2
  51. package/src/modules/dx/groupText/groupText.ts +3 -3
  52. package/src/modules/dx/header/header.css +1 -1
  53. package/src/modules/dx/header/header.ts +2 -2
  54. package/src/modules/dx/headerMobileNavMenu/headerMobileNavMenu.css +1 -1
  55. package/src/modules/dx/headerMobileNavMenu/headerMobileNavMenu.ts +1 -1
  56. package/src/modules/dx/headerMobileNavMenuOption/headerMobileNavMenuOption.ts +1 -1
  57. package/src/modules/dx/headerNav/headerNav.css +1 -1
  58. package/src/modules/dx/headerSearch/headerSearch.css +1 -1
  59. package/src/modules/dx/headerSearch/headerSearch.ts +1 -1
  60. package/src/modules/dx/helmet/helmet.css +2 -2
  61. package/src/modules/dx/hr/hr.css +2 -2
  62. package/src/modules/dx/icon/icon.css +1 -1
  63. package/src/modules/dx/icon/icon.ts +1 -1
  64. package/src/modules/dx/iconBadge/iconBadge.css +1 -1
  65. package/src/modules/dx/iconBadge/iconBadge.ts +1 -1
  66. package/src/modules/dx/imageAndLabel/imageAndLabel.css +3 -3
  67. package/src/modules/dx/input/input.css +2 -2
  68. package/src/modules/dx/input/input.ts +1 -1
  69. package/src/modules/dx/logo/logo.css +2 -2
  70. package/src/modules/dx/modalDrawer/modalDrawer.ts +1 -1
  71. package/src/modules/dx/pagination/pagination.css +1 -1
  72. package/src/modules/dx/pagination/pagination.ts +1 -1
  73. package/src/modules/dx/podcastHost/podcastHost.css +2 -2
  74. package/src/modules/dx/popover/popover.css +1 -1
  75. package/src/modules/dx/popover/popover.ts +1 -1
  76. package/src/modules/dx/radioGroup/radioGroup.css +1 -1
  77. package/src/modules/dx/radioGroup/radioGroup.ts +1 -1
  78. package/src/modules/dx/section/section.css +2 -2
  79. package/src/modules/dx/section/section.ts +1 -1
  80. package/src/modules/dx/select/select.css +1 -1
  81. package/src/modules/dx/select/select.ts +1 -1
  82. package/src/modules/dx/sidebar/sidebar.css +2 -2
  83. package/src/modules/dx/sidebar/sidebar.ts +4 -4
  84. package/src/modules/dx/sidebarOld/sidebarOld.css +2 -2
  85. package/src/modules/dx/sidebarOld/sidebarOld.ts +3 -3
  86. package/src/modules/dx/sidebarSearch/sidebarSearch.ts +3 -3
  87. package/src/modules/dx/sidebarSearchResult/sidebarSearchResult.css +3 -3
  88. package/src/modules/dx/skipNavLink/skipNavLink.css +1 -1
  89. package/src/modules/dx/socials/socials.ts +1 -1
  90. package/src/modules/dx/tab/tab.css +1 -1
  91. package/src/modules/dx/tab/tab.ts +2 -2
  92. package/src/modules/dx/toc/toc.css +2 -2
  93. package/src/modules/dx/toc/toc.ts +1 -1
  94. package/src/modules/dx/topics/topics.ts +1 -1
  95. package/src/modules/dx/tree/tree.css +1 -1
  96. package/src/modules/dx/tree/tree.ts +1 -1
  97. package/src/modules/dx/treeItem/treeItem.css +1 -1
  98. package/src/modules/dx/treeItem/treeItem.ts +2 -2
  99. package/src/modules/dx/treeTile/treeTile.css +2 -2
  100. package/src/modules/dx/typeBadge/typeBadge.css +1 -1
  101. package/src/modules/dx/typeBadge/typeBadge.ts +1 -1
  102. package/src/modules/dx/typeBadgeGroup/typeBadgeGroup.ts +1 -1
  103. package/src/modules/dx/vimeoPlayer/vimeoPlayer.css +1 -1
  104. package/src/modules/{base-elements → dxBaseElements}/archiveCard/archiveCard.ts +0 -0
  105. package/src/modules/{base-elements → dxBaseElements}/headerBase/headerBase.ts +2 -2
  106. package/src/modules/{base-elements → dxBaseElements}/matchMediaElement/matchMediaElement.ts +1 -1
  107. package/src/modules/{base-elements → dxBaseElements}/sidebarBase/sidebarBase.ts +0 -0
  108. package/src/modules/{helpers → dxHelpers}/animations/animations.css +0 -0
  109. package/src/modules/{helpers → dxHelpers}/button/button.css +0 -0
  110. package/src/modules/{helpers → dxHelpers}/card/card.css +1 -1
  111. package/src/modules/{helpers → dxHelpers}/code/code.css +0 -0
  112. package/src/modules/{helpers → dxHelpers}/commonHeader/commonHeader.css +2 -2
  113. package/src/modules/{helpers → dxHelpers}/reset/reset.css +0 -0
  114. package/src/modules/{helpers → dxHelpers}/sidebar/sidebar.css +0 -0
  115. package/src/modules/{helpers → dxHelpers}/slds/slds.css +0 -0
  116. package/src/modules/{helpers → dxHelpers}/table/table.css +0 -0
  117. package/src/modules/{helpers → dxHelpers}/text/text.css +0 -0
  118. package/src/modules/dxUtils/analytics/analytics.ts +24 -0
  119. package/src/modules/{utils → dxUtils}/browser/browser.ts +0 -0
  120. package/src/modules/{utils → dxUtils}/constants/breakpoints.ts +0 -0
  121. package/src/modules/{utils → dxUtils}/constants/constants.ts +0 -0
  122. package/src/modules/{utils → dxUtils}/coveo/coveo.ts +0 -0
  123. package/src/modules/{utils → dxUtils}/css/css.ts +0 -0
  124. package/src/modules/{utils → dxUtils}/dates/dates.ts +0 -0
  125. package/src/modules/{utils → dxUtils}/devices/devices.ts +0 -0
  126. package/src/modules/{utils → dxUtils}/highlight/highlight.ts +1 -1
  127. package/src/modules/{utils → dxUtils}/normalizers/normalizers.ts +9 -21
  128. package/src/modules/{utils → dxUtils}/options/options.ts +0 -0
  129. package/src/modules/{utils → dxUtils}/prismjs/prismjs.html +0 -0
  130. package/src/modules/{utils → dxUtils}/prismjs/prismjs.ts +0 -0
  131. package/src/modules/{utils → dxUtils}/queryCoordinator/queryCoordinator.ts +0 -0
  132. package/src/modules/{utils → dxUtils}/recentSearches/recentSearches.ts +0 -0
  133. package/src/modules/{utils → dxUtils}/regexps/regexps.ts +0 -0
  134. package/src/modules/{utils → dxUtils}/seo/seo.ts +0 -0
  135. package/src/modules/{utils → dxUtils}/slot/slot.ts +0 -0
  136. package/src/modules/{utils → dxUtils}/wordpress/wordpress.ts +0 -0
  137. package/src/modules/dx/cardBlogPostProvider/cardBlogPostProvider.css +0 -3
  138. package/src/modules/dx/cardBlogPostProvider/cardBlogPostProvider.html +0 -16
  139. package/src/modules/dx/cardBlogPostProvider/cardBlogPostProvider.ts +0 -29
  140. package/src/modules/dx/cardPodcastEpisodeProvider/cardPodcastEpisodeProvider.css +0 -3
  141. package/src/modules/dx/cardPodcastEpisodeProvider/cardPodcastEpisodeProvider.html +0 -12
  142. package/src/modules/dx/cardPodcastEpisodeProvider/cardPodcastEpisodeProvider.ts +0 -29
  143. package/src/modules/dx/contentArchive/contentArchive.css +0 -242
  144. package/src/modules/dx/contentArchive/contentArchive.html +0 -337
  145. package/src/modules/dx/contentArchive/contentArchive.ts +0 -457
  146. package/src/modules/dx/contentArchive/contentArchive.types.ts +0 -6
  147. package/src/modules/dx/instrumentation/instrumentation.html +0 -1
  148. package/src/modules/dx/instrumentation/instrumentation.ts +0 -116
  149. package/src/modules/dx/newsletterForm/newsletterForm.css +0 -73
  150. package/src/modules/dx/newsletterForm/newsletterForm.html +0 -73
  151. package/src/modules/dx/newsletterForm/newsletterForm.ts +0 -238
  152. package/src/modules/dx/podcastSubscription/podcastSubscription.css +0 -91
  153. package/src/modules/dx/podcastSubscription/podcastSubscription.html +0 -24
  154. package/src/modules/dx/podcastSubscription/podcastSubscription.ts +0 -52
  155. package/src/modules/dx/searchResults/coveo.css +0 -18989
  156. package/src/modules/dx/searchResults/searchResults.css +0 -387
  157. package/src/modules/dx/searchResults/searchResults.html +0 -104
  158. package/src/modules/dx/searchResults/searchResults.ts +0 -186
  159. package/src/modules/dx/slackCta/slackCta.css +0 -47
  160. package/src/modules/dx/slackCta/slackCta.html +0 -17
  161. package/src/modules/dx/slackCta/slackCta.ts +0 -12
  162. package/src/modules/utils/contentArchive/altData.js +0 -3
  163. package/src/modules/utils/contentArchive/contentArchive.ts +0 -163
package/lwc.config.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "modules": [{ "dir": "src/modules" }],
3
3
  "expose": [
4
+ "dx/banner",
4
5
  "dx/brandThemeProvider",
5
6
  "dx/breadcrumbs",
6
7
  "dx/button",
7
8
  "dx/cardBlogPost",
8
- "dx/cardBlogPostProvider",
9
9
  "dx/cardCallout",
10
10
  "dx/cardContent",
11
11
  "dx/cardDemo",
@@ -15,25 +15,21 @@
15
15
  "dx/cardMinimal",
16
16
  "dx/cardNews",
17
17
  "dx/cardPodcastEpisode",
18
- "dx/cardPodcastEpisodeProvider",
19
18
  "dx/cardSmall",
20
19
  "dx/cardTrailheadModule",
21
20
  "dx/cardTrial",
22
21
  "dx/cardVideoPreview",
23
22
  "dx/checkbox",
24
- "dx/checkboxNative",
25
23
  "dx/checkboxGroup",
24
+ "dx/checkboxNative",
26
25
  "dx/codeBlock",
27
- "dx/contentArchive",
28
26
  "dx/dropdown",
29
27
  "dx/emptyState",
30
28
  "dx/feature",
31
29
  "dx/featuredContentHeader",
32
30
  "dx/featuresList",
33
31
  "dx/filterMenu",
34
- "dx/banner",
35
32
  "dx/footer",
36
- "dx/newsletterForm",
37
33
  "dx/formattedDateTime",
38
34
  "dx/grid",
39
35
  "dx/groupText",
@@ -47,17 +43,14 @@
47
43
  "dx/iconBadge",
48
44
  "dx/imageAndLabel",
49
45
  "dx/input",
50
- "dx/instrumentation",
51
46
  "dx/logo",
52
47
  "dx/modalDrawer",
53
48
  "dx/pagination",
54
49
  "dx/podcastHost",
55
50
  "dx/podcastPlayer",
56
- "dx/podcastSubscription",
57
51
  "dx/popover",
58
52
  "dx/radioGroup",
59
53
  "dx/relativeDateTime",
60
- "dx/searchResults",
61
54
  "dx/section",
62
55
  "dx/sectionSignup",
63
56
  "dx/sectionSmall",
@@ -65,28 +58,33 @@
65
58
  "dx/sidebar",
66
59
  "dx/sidebarOld",
67
60
  "dx/skipNavLink",
68
- "dx/slackCta",
69
61
  "dx/socials",
62
+ "dx/spinner",
63
+ "dx/toc",
70
64
  "dx/toc",
71
- "dx/tree",
72
65
  "dx/tooltip",
66
+ "dx/tree",
73
67
  "dx/typeBadge",
74
68
  "dx/typeBadgeGroup",
75
- "dx/toc",
76
69
  "dx/vimeoPlayer",
77
- "helpers/animations",
78
- "helpers/card",
79
- "helpers/code",
80
- "helpers/commonHeader",
81
- "helpers/reset",
82
- "helpers/table",
83
- "helpers/text",
84
- "base-elements/headerBase",
85
- "base-elements/matchMediaElement",
86
- "utils/constants",
87
- "utils/normalizers",
88
- "utils/highlight",
89
- "utils/contentArchive",
90
- "utils/dates"
70
+ "dxBaseElements/headerBase",
71
+ "dxBaseElements/matchMediaElement",
72
+ "dxHelpers/animations",
73
+ "dxHelpers/button",
74
+ "dxHelpers/card",
75
+ "dxHelpers/code",
76
+ "dxHelpers/commonHeader",
77
+ "dxHelpers/reset",
78
+ "dxHelpers/table",
79
+ "dxHelpers/text",
80
+ "dxUtils/analytics",
81
+ "dxUtils/constants",
82
+ "dxUtils/coveo",
83
+ "dxUtils/dates",
84
+ "dxUtils/highlight",
85
+ "dxUtils/normalizers",
86
+ "dxUtils/queryCoordinator",
87
+ "dxUtils/recentSearches",
88
+ "dxUtils/wordpress"
91
89
  ]
92
90
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/dx-components",
3
- "version": "0.53.12-loading-img-update-3",
3
+ "version": "0.54.0-alpha04",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -15,12 +15,10 @@
15
15
  "@sfdocs-internal/wires": "^0.6.3",
16
16
  "@vimeo/player": "^2.16.4",
17
17
  "classnames": "^2.2.6",
18
- "coveo-search-ui": "^2.10082.5",
19
18
  "debounce": "^1.2.0",
20
19
  "lightning-base-components": "1.12.3-alpha",
21
20
  "lodash.get": "^4.4.2",
22
- "microtip": "0.2.2",
23
- "query-string": "^7.1.1"
21
+ "microtip": "0.2.2"
24
22
  },
25
23
  "devDependencies": {
26
24
  "@types/classnames": "^2.2.10",
@@ -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
  --primary-color: var(--dx-g-cloud-blue-vibrant-50);
@@ -1,5 +1,5 @@
1
- @import "helpers/reset";
2
- @import "helpers/text";
1
+ @import "dxHelpers/reset";
2
+ @import "dxHelpers/text";
3
3
 
4
4
  :host {
5
5
  --dx-c-breadcrumbs-title-color: var(--dx-g-blue-vibrant-20);
@@ -1,7 +1,7 @@
1
1
  import { LightningElement, api } from "lwc";
2
2
  import cx from "classnames";
3
3
  import { Breadcrumb, Option } from "typings/custom";
4
- import { toJson } from "utils/normalizers";
4
+ import { toJson } from "dxUtils/normalizers";
5
5
 
6
6
  type LabelMap = { [href: string]: string };
7
7
  type NormalizedBreadcrumb = Breadcrumb & { last: boolean; asLink: boolean };
@@ -1,4 +1,4 @@
1
- @import "helpers/reset";
1
+ @import "dxHelpers/reset";
2
2
 
3
3
  :host {
4
4
  width: min-content;
@@ -1,4 +1,4 @@
1
- @import "helpers/card";
1
+ @import "dxHelpers/card";
2
2
 
3
3
  dx-card-content {
4
4
  --dx-c-body-max-lines: 3;
@@ -1,6 +1,6 @@
1
- @import "helpers/reset";
2
- @import "helpers/text";
3
- @import "helpers/card";
1
+ @import "dxHelpers/reset";
2
+ @import "dxHelpers/text";
3
+ @import "dxHelpers/card";
4
4
 
5
5
  .card-callout {
6
6
  position: relative;
@@ -1,14 +1,14 @@
1
1
  import { LightningElement, api } from "lwc";
2
2
  import cx from "classnames";
3
- import { toDxColor } from "utils/css";
4
- import { track } from "dx/instrumentation";
3
+ import { toDxColor } from "dxUtils/css";
4
+ import { track } from "dxUtils/analytics";
5
5
 
6
6
  export default class CardCallout extends LightningElement {
7
- @api backgroundColor?: string = "indigo-vibrant-40";
8
- @api color?: string = "white";
7
+ @api backgroundColor: string = "indigo-vibrant-40";
8
+ @api color: string = "white";
9
9
  @api href!: string;
10
10
  @api label: string = "";
11
- @api target?: string | null = null;
11
+ @api target?: string;
12
12
  @api title!: string;
13
13
 
14
14
  private get style(): string {
@@ -1,6 +1,6 @@
1
- @import "helpers/reset";
2
- @import "helpers/text";
3
- @import "helpers/card";
1
+ @import "dxHelpers/reset";
2
+ @import "dxHelpers/text";
3
+ @import "dxHelpers/card";
4
4
 
5
5
  :host {
6
6
  /* because this is used within other cards */
@@ -1,8 +1,8 @@
1
1
  import { LightningElement, api } from "lwc";
2
2
  import cx from "classnames";
3
3
  import { LightningSlotElement } from "typings/custom";
4
- import { isSlotEmpty } from "utils/slot";
5
- import { toDxColor } from "utils/css";
4
+ import { isSlotEmpty } from "dxUtils/slot";
5
+ import { toDxColor } from "dxUtils/css";
6
6
 
7
7
  export default class CardContent extends LightningElement {
8
8
  @api authorHref?: string | null = null;
@@ -1 +1 @@
1
- @import "helpers/card";
1
+ @import "dxHelpers/card";
@@ -1,6 +1,6 @@
1
- @import "helpers/reset";
2
- @import "helpers/text";
3
- @import "helpers/card";
1
+ @import "dxHelpers/reset";
2
+ @import "dxHelpers/text";
3
+ @import "dxHelpers/card";
4
4
 
5
5
  :host {
6
6
  --dx-c-heading-max-lines: 4;
@@ -1,7 +1,7 @@
1
1
  import { LightningElement, api } from "lwc";
2
2
  import cx from "classnames";
3
3
  import { LightningSlotElement } from "typings/custom";
4
- import { stopPropagationOnSlotted } from "utils/slot";
4
+ import { stopPropagationOnSlotted } from "dxUtils/slot";
5
5
 
6
6
  export default class CardDocs extends LightningElement {
7
7
  @api body!: string;
@@ -1,6 +1,6 @@
1
- @import "helpers/reset";
2
- @import "helpers/text";
3
- @import "helpers/card";
1
+ @import "dxHelpers/reset";
2
+ @import "dxHelpers/text";
3
+ @import "dxHelpers/card";
4
4
 
5
5
  .card-event {
6
6
  display: flex;
@@ -1,4 +1,4 @@
1
- @import "helpers/text";
1
+ @import "dxHelpers/text";
2
2
 
3
3
  :host {
4
4
  display: block;
@@ -1,5 +1,5 @@
1
1
  import { api } from "lwc";
2
- import { ArchiveCard } from "base-elements/archiveCard";
2
+ import { ArchiveCard } from "dxBaseElements/archiveCard";
3
3
  import cx from "classnames";
4
4
 
5
5
  export default class ExpandedCard extends ArchiveCard {
@@ -1,5 +1,5 @@
1
- @import "helpers/reset";
2
- @import "helpers/text";
1
+ @import "dxHelpers/reset";
2
+ @import "dxHelpers/text";
3
3
 
4
4
  :host {
5
5
  display: block;
@@ -1,3 +1,3 @@
1
- import { ArchiveCard } from "base-elements/archiveCard";
1
+ import { ArchiveCard } from "dxBaseElements/archiveCard";
2
2
 
3
3
  export default class MinimalCard extends ArchiveCard {}
@@ -1,6 +1,6 @@
1
- @import "helpers/reset";
2
- @import "helpers/text";
3
- @import "helpers/card";
1
+ @import "dxHelpers/reset";
2
+ @import "dxHelpers/text";
3
+ @import "dxHelpers/card";
4
4
 
5
5
  .dx-card-news {
6
6
  position: relative;
@@ -1,6 +1,6 @@
1
1
  import { LightningElement, api } from "lwc";
2
2
  import cx from "classnames";
3
- import { toDxColor } from "utils/css";
3
+ import { toDxColor } from "dxUtils/css";
4
4
  import {
5
5
  ButtonTextColor,
6
6
  CardNewsButtonType,
@@ -9,7 +9,7 @@ import {
9
9
  CardNewsSize,
10
10
  CardNewsTextContainerSize
11
11
  } from "typings/custom";
12
- import { track } from "dx/instrumentation";
12
+ import { track } from "dxUtils/analytics";
13
13
 
14
14
  export default class CardNews extends LightningElement {
15
15
  @api backgroundColor?: string = "indigo-vibrant-40";
@@ -1,6 +1,6 @@
1
- @import "helpers/reset";
2
- @import "helpers/text";
3
- @import "helpers/card";
1
+ @import "dxHelpers/reset";
2
+ @import "dxHelpers/text";
3
+ @import "dxHelpers/card";
4
4
 
5
5
  .card-podcast-episode {
6
6
  display: flex;
@@ -1,6 +1,6 @@
1
- @import "helpers/reset";
2
- @import "helpers/text";
3
- @import "helpers/card";
1
+ @import "dxHelpers/reset";
2
+ @import "dxHelpers/text";
3
+ @import "dxHelpers/card";
4
4
 
5
5
  :host {
6
6
  --heading-offset: var(--dx-g-spacing-sm);
@@ -6,7 +6,7 @@ import {
6
6
  IconSymbol,
7
7
  IconBadgeShape
8
8
  } from "typings/custom";
9
- import { isSlotEmpty, stopPropagationOnSlotted } from "utils/slot";
9
+ import { isSlotEmpty, stopPropagationOnSlotted } from "dxUtils/slot";
10
10
 
11
11
  export default class CardSmall extends LightningElement {
12
12
  @api badgeBackgroundColor?: string = "indigo-vibrant-50";
@@ -1,5 +1,5 @@
1
- @import "helpers/reset";
2
- @import "helpers/text";
1
+ @import "dxHelpers/reset";
2
+ @import "dxHelpers/text";
3
3
 
4
4
  :host {
5
5
  --dx-c-card-title-color: var(--dx-g-text-heading-color);
@@ -1,4 +1,4 @@
1
- @import "helpers/card";
1
+ @import "dxHelpers/card";
2
2
 
3
3
  .badge {
4
4
  --badge-size: var(--dx-g-spacing-5xl);
@@ -1,6 +1,6 @@
1
- @import "helpers/reset";
2
- @import "helpers/text";
3
- @import "helpers/card";
1
+ @import "dxHelpers/reset";
2
+ @import "dxHelpers/text";
3
+ @import "dxHelpers/card";
4
4
 
5
5
  .card-trial {
6
6
  position: relative;
@@ -1,6 +1,6 @@
1
1
  import { LightningElement, api } from "lwc";
2
2
  import cx from "classnames";
3
- import { toJson } from "utils/normalizers";
3
+ import { toJson } from "dxUtils/normalizers";
4
4
 
5
5
  export default class CardTrial extends LightningElement {
6
6
  @api badgeBackgroundColor?: string = "indigo-vibrant-90";
@@ -1,4 +1,4 @@
1
- @import "helpers/card";
1
+ @import "dxHelpers/card";
2
2
 
3
3
  .dx-play-button {
4
4
  position: absolute;
@@ -1,5 +1,5 @@
1
- @import "helpers/reset";
2
- @import "helpers/text";
1
+ @import "dxHelpers/reset";
2
+ @import "dxHelpers/text";
3
3
 
4
4
  :host {
5
5
  display: block;
@@ -1,4 +1,4 @@
1
- @import "helpers/reset";
1
+ @import "dxHelpers/reset";
2
2
 
3
3
  fieldset {
4
4
  display: grid;
@@ -1,5 +1,5 @@
1
1
  import { LightningElement, api } from "lwc";
2
- import { toJson } from "utils/normalizers";
2
+ import { toJson } from "dxUtils/normalizers";
3
3
 
4
4
  type Option = {
5
5
  value: string;
@@ -1,5 +1,5 @@
1
- @import "helpers/code";
2
- @import "helpers/text";
1
+ @import "dxHelpers/code";
2
+ @import "dxHelpers/text";
3
3
  @import "./darkTheme.css";
4
4
  @import "./lightTheme.css";
5
5
 
@@ -1,12 +1,12 @@
1
1
  import { LightningElement, api, wire, track } from "lwc";
2
2
  import { CodeBlockTheme, CodeBlockLanguage } from "typings/custom";
3
3
  import cx from "classnames";
4
- import Prism from "utils/prismjs";
4
+ import Prism from "dxUtils/prismjs";
5
5
  import {
6
6
  getLocalStorageData,
7
7
  setLocalStorageData
8
8
  } from "@sfdocs-internal/wires";
9
- import { track as gtmTrack } from "dx/instrumentation";
9
+ import { track as gtmTrack } from "dxUtils/analytics";
10
10
 
11
11
  // Used por remove enclosing <pre> tag's (if occurs)
12
12
  const preTagRegexp: RegExp = /^<pre.*?>(.*)<\/pre>$/is;
@@ -1,4 +1,4 @@
1
- @import "helpers/reset";
1
+ @import "dxHelpers/reset";
2
2
 
3
3
  .menu-nested::part(content) {
4
4
  padding-top: var(--dx-g-spacing-sm);
@@ -2,8 +2,8 @@ import { Option, PopperPlacement } from "typings/custom";
2
2
  import { LightningElement, api, track } from "lwc";
3
3
  import cx from "classnames";
4
4
  import get from "lodash.get";
5
- import { deepmapOptions } from "utils/options";
6
- import { toJson } from "utils/normalizers";
5
+ import { deepmapOptions } from "dxUtils/options";
6
+ import { toJson } from "dxUtils/normalizers";
7
7
 
8
8
  interface DropdownOption extends Option {
9
9
  // link that gets shown as a highlighted link at end of option group
@@ -1,4 +1,4 @@
1
- @import "helpers/reset";
1
+ @import "dxHelpers/reset";
2
2
 
3
3
  .option {
4
4
  display: flex;
@@ -1,7 +1,7 @@
1
1
  import { LightningElement, api } from "lwc";
2
2
  import cx from "classnames";
3
3
  import { Option } from "typings/custom";
4
- import { track } from "dx/instrumentation";
4
+ import { track } from "dxUtils/analytics";
5
5
 
6
6
  export default class DropdownOption extends LightningElement {
7
7
  @api option!: Option;
@@ -1,5 +1,5 @@
1
- @import "helpers/reset";
2
- @import "helpers/text";
1
+ @import "dxHelpers/reset";
2
+ @import "dxHelpers/text";
3
3
 
4
4
  :host {
5
5
  --dx-c-empty-state-background: var(--dx-g-gray-95);
@@ -1,5 +1,5 @@
1
- @import "helpers/reset";
2
- @import "helpers/text";
1
+ @import "dxHelpers/reset";
2
+ @import "dxHelpers/text";
3
3
 
4
4
  :host {
5
5
  --dx-c-feature-img-box-shadow: 0 6px 30px 0 rgba(0, 20, 45, 0.4);
@@ -1,7 +1,7 @@
1
- @import "helpers/button";
2
- @import "helpers/reset";
3
- @import "helpers/text";
4
- @import "helpers/card";
1
+ @import "dxHelpers/button";
2
+ @import "dxHelpers/reset";
3
+ @import "dxHelpers/text";
4
+ @import "dxHelpers/card";
5
5
 
6
6
  :host {
7
7
  width: 100%;
@@ -1,8 +1,8 @@
1
1
  import { LightningElement, api } from "lwc";
2
2
  import cx from "classnames";
3
3
  import { LightningSlotElement } from "typings/custom";
4
- import { isSlotEmpty } from "utils/slot";
5
- import { toJson } from "utils/normalizers";
4
+ import { isSlotEmpty } from "dxUtils/slot";
5
+ import { toJson } from "dxUtils/normalizers";
6
6
  import { ImageAndLabel } from "../imageAndLabel";
7
7
  import svgs from "./svgs";
8
8
 
@@ -1,5 +1,5 @@
1
- @import "helpers/reset";
2
- @import "helpers/text";
1
+ @import "dxHelpers/reset";
2
+ @import "dxHelpers/text";
3
3
 
4
4
  .dx-text-heading-5 {
5
5
  display: inline-flex;
@@ -1,6 +1,6 @@
1
1
  import { LightningElement, api } from "lwc";
2
2
  import { FeatureItem } from "typings/custom";
3
- import { toJson } from "utils/normalizers";
3
+ import { toJson } from "dxUtils/normalizers";
4
4
 
5
5
  /**
6
6
  * @element dx-features-list
@@ -1,4 +1,4 @@
1
- @import "helpers/reset";
1
+ @import "dxHelpers/reset";
2
2
 
3
3
  :host {
4
4
  --dx-c-filter-menu-margin: 0;
@@ -1,5 +1,5 @@
1
- @import "helpers/reset";
2
- @import "helpers/text";
1
+ @import "dxHelpers/reset";
2
+ @import "dxHelpers/text";
3
3
 
4
4
  .content-container {
5
5
  padding: 0 var(--dx-g-page-padding-horizontal);
@@ -1,6 +1,6 @@
1
1
  import { LightningElement, api } from "lwc";
2
2
  import cx from "classnames";
3
- import { toJson } from "utils/normalizers";
3
+ import { toJson } from "dxUtils/normalizers";
4
4
  import { FooterVariant, Option } from "typings/custom";
5
5
  import {
6
6
  generalLinks,
@@ -9,7 +9,7 @@ import {
9
9
  privacyHref,
10
10
  intellectualHref
11
11
  } from "./links";
12
- import { track } from "dx/instrumentation";
12
+ import { track } from "dxUtils/analytics";
13
13
 
14
14
  const PATH = "/newsletter";
15
15
  const createNewsletterSignupHref = (email: string): string =>
@@ -1,5 +1,5 @@
1
1
  import { LightningElement, api } from "lwc";
2
- import { track } from "dx/instrumentation";
2
+ import { track } from "dxUtils/analytics";
3
3
 
4
4
  export default class FooterOption extends LightningElement {
5
5
  @api href: string | null = null;
@@ -28,6 +28,11 @@ export default class FormattedDateTime extends LightningElement {
28
28
  }
29
29
 
30
30
  this._unformattedDate = new Date(value);
31
+
32
+ if (this._unformattedDate.toString() === "Invalid Date") {
33
+ // this is a fix for Safari since it doesn't support date strings with 'yyyy/mm/dd' patterns
34
+ this._unformattedDate = new Date(value.replace(/-/g, "/"));
35
+ }
31
36
  }
32
37
  get value() {
33
38
  const options = this.getOptions();
@@ -1,5 +1,5 @@
1
- @import "helpers/reset";
2
- @import "helpers/text";
1
+ @import "dxHelpers/reset";
2
+ @import "dxHelpers/text";
3
3
 
4
4
  :host {
5
5
  display: block;
@@ -1,9 +1,9 @@
1
1
  import { LightningElement, api } from "lwc";
2
2
  import cx from "classnames";
3
3
  import { LightningSlotElement, Link } from "typings/custom";
4
- import { isSlotEmpty } from "utils/slot";
5
- import { toJson } from "utils/normalizers";
6
- import { track } from "dx/instrumentation";
4
+ import { isSlotEmpty } from "dxUtils/slot";
5
+ import { toJson } from "dxUtils/normalizers";
6
+ import { track } from "dxUtils/analytics";
7
7
 
8
8
  type OptionalLink = Link | null;
9
9
 
@@ -1,4 +1,4 @@
1
- @import "helpers/commonHeader";
1
+ @import "dxHelpers/commonHeader";
2
2
 
3
3
  :host {
4
4
  --dx-c-header-search-width: 316px;