@salesforcedevs/dx-components 0.26.0 → 0.26.1-alpha.13

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 (238) hide show
  1. package/lwc.config.json +1 -1
  2. package/package.json +2 -7
  3. package/src/modules/dx/cardBlogPostProvider/cardBlogPostProvider.ts +1 -1
  4. package/src/modules/dx/cardCallout/cardCallout.ts +1 -1
  5. package/src/modules/dx/cardContent/cardContent.ts +2 -2
  6. package/src/modules/dx/cardDocs/cardDocs.ts +1 -1
  7. package/src/modules/dx/cardExpanded/cardExpanded.ts +1 -1
  8. package/src/modules/dx/cardMinimal/cardMinimal.ts +1 -1
  9. package/src/modules/dx/cardNews/cardNews.ts +1 -1
  10. package/src/modules/dx/cardPodcastEpisodeProvider/cardPodcastEpisodeProvider.ts +1 -1
  11. package/src/modules/dx/cardSmall/cardSmall.ts +1 -1
  12. package/src/modules/dx/codeBlock/codeBlock.ts +1 -1
  13. package/src/modules/dx/dropdown/dropdown.ts +1 -1
  14. package/src/modules/dx/featuredContentHeader/featuredContentHeader.ts +1 -1
  15. package/src/modules/dx/groupText/groupText.ts +1 -1
  16. package/src/modules/dx/header/header.ts +1 -1
  17. package/src/modules/dx/headerMobileNavMenu/headerMobileNavMenu.ts +1 -1
  18. package/src/modules/dx/headerSearch/headerSearch.ts +1 -1
  19. package/src/modules/dx/icon/icon.ts +1 -1
  20. package/src/modules/dx/iconBadge/iconBadge.ts +1 -1
  21. package/src/modules/dx/input/input.ts +1 -1
  22. package/src/modules/dx/popover/popover.ts +1 -1
  23. package/src/modules/dx/section/section.ts +1 -1
  24. package/src/modules/dx/sidebar/sidebar.ts +1 -1
  25. package/src/modules/dx/sidebarSearch/sidebarSearch.ts +2 -2
  26. package/src/modules/dx/typeBadge/typeBadge.ts +1 -1
  27. package/src/modules/helpers/table/table.css +1 -1
  28. package/src/modules/{utils-internal → utils}/archiveCard/archiveCard.ts +0 -0
  29. package/src/modules/{utils-internal → utils}/coveo/coveo.ts +0 -0
  30. package/src/modules/{utils-internal → utils}/css/css.ts +0 -0
  31. package/src/modules/{utils-internal → utils}/devices/devices.ts +0 -0
  32. package/src/modules/{utils-internal → utils}/headerBase/headerBase.ts +0 -0
  33. package/src/modules/utils/highlight/highlight.ts +1 -1
  34. package/src/modules/{utils-internal → utils}/options/options.ts +0 -0
  35. package/src/modules/{utils-internal → utils}/prismjs/prismjs.html +0 -0
  36. package/src/modules/{utils-internal → utils}/prismjs/prismjs.ts +0 -0
  37. package/src/modules/{utils-internal → utils}/recentSearches/recentSearches.ts +0 -0
  38. package/src/modules/{utils-internal → utils}/regexps/regexps.ts +0 -0
  39. package/src/modules/{utils-internal → utils}/seo/seo.ts +0 -0
  40. package/src/modules/{utils-internal → utils}/slot/slot.ts +0 -0
  41. package/src/modules/{utils-internal → utils}/wordpress/wordpress.ts +0 -0
  42. package/LICENSE +0 -12
  43. package/src/modules/dx/banner/__tests__/banner.test.ts +0 -33
  44. package/src/modules/dx/brandThemeProvider/__tests__/brandThemeProvider.test.ts +0 -49
  45. package/src/modules/dx/brandThemeProvider/brandThemeProvider.stories.ts +0 -321
  46. package/src/modules/dx/breadcrumbs/__tests__/breadcrumbs.test.ts +0 -140
  47. package/src/modules/dx/breadcrumbs/__tests__/mockProps.ts +0 -28
  48. package/src/modules/dx/breadcrumbs/breadcrumbs.stories.ts +0 -39
  49. package/src/modules/dx/button/__tests__/button.test.ts +0 -107
  50. package/src/modules/dx/button/button.stories.ts +0 -150
  51. package/src/modules/dx/cardBlogPost/__tests__/cardBlogPost.test.ts +0 -26
  52. package/src/modules/dx/cardBlogPost/__tests__/mockProps.ts +0 -12
  53. package/src/modules/dx/cardBlogPost/cardBlogPost.stories.ts +0 -164
  54. package/src/modules/dx/cardBlogPostProvider/__tests__/cardBlogPostProvider.test.ts +0 -34
  55. package/src/modules/dx/cardBlogPostProvider/__tests__/mockWordpressPosts.ts +0 -44
  56. package/src/modules/dx/cardCallout/__tests__/cardCallout.test.ts +0 -20
  57. package/src/modules/dx/cardCallout/__tests__/mockProps.ts +0 -7
  58. package/src/modules/dx/cardCallout/cardCallout.stories.ts +0 -33
  59. package/src/modules/dx/cardContent/__tests__/cardContent.test.ts +0 -100
  60. package/src/modules/dx/cardContent/__tests__/mockProps.ts +0 -13
  61. package/src/modules/dx/cardContent/cardContent.stories.ts +0 -127
  62. package/src/modules/dx/cardDemo/cardDemo.stories.ts +0 -115
  63. package/src/modules/dx/cardDocs/__tests__/cardDocs.test.ts +0 -48
  64. package/src/modules/dx/cardDocs/__tests__/mockProps.ts +0 -9
  65. package/src/modules/dx/cardDocs/cardDocs.stories.ts +0 -299
  66. package/src/modules/dx/cardEvent/__tests__/cardEvent.test.ts +0 -95
  67. package/src/modules/dx/cardEvent/__tests__/mockProps.ts +0 -10
  68. package/src/modules/dx/cardEvent/cardEvent.stories.ts +0 -153
  69. package/src/modules/dx/cardExpanded/__tests__/cardExpanded.test.ts +0 -193
  70. package/src/modules/dx/cardExpanded/__tests__/mockProps.ts +0 -21
  71. package/src/modules/dx/cardExpanded/cardExpanded.stories.ts +0 -59
  72. package/src/modules/dx/cardGrid/__tests__/cardMockProps.ts +0 -431
  73. package/src/modules/dx/cardGrid/__tests__/mockProps.ts +0 -15
  74. package/src/modules/dx/cardGrid/cardGrid.stories.ts +0 -111
  75. package/src/modules/dx/cardMinimal/__tests__/cardMinimal.test.ts +0 -87
  76. package/src/modules/dx/cardMinimal/__tests__/mockProps.ts +0 -10
  77. package/src/modules/dx/cardMinimal/cardMinimal.stories.ts +0 -32
  78. package/src/modules/dx/cardNews/__tests__/cardNews.test.ts +0 -58
  79. package/src/modules/dx/cardNews/__tests__/mockProps.ts +0 -7
  80. package/src/modules/dx/cardNews/cardNews.stories.ts +0 -115
  81. package/src/modules/dx/cardPodcastEpisode/__tests__/cardPodcastEpisode.test.ts +0 -68
  82. package/src/modules/dx/cardPodcastEpisode/cardPodcastEpisode.stories.ts +0 -31
  83. package/src/modules/dx/cardPodcastEpisodeProvider/__tests__/cardPodcastEpisodeProvider.test.ts +0 -36
  84. package/src/modules/dx/cardPodcastEpisodeProvider/__tests__/mockWordpressEpisodes.ts +0 -50
  85. package/src/modules/dx/cardSmall/__tests__/cardSmall.test.ts +0 -66
  86. package/src/modules/dx/cardSmall/__tests__/mockProps.ts +0 -8
  87. package/src/modules/dx/cardSmall/cardSmall.stories.ts +0 -166
  88. package/src/modules/dx/cardTitle/__tests__/cardTitle.test.ts +0 -46
  89. package/src/modules/dx/cardTrailheadModule/__tests__/cardTrailheadModule.test.ts +0 -18
  90. package/src/modules/dx/cardTrailheadModule/__tests__/mockProps.ts +0 -11
  91. package/src/modules/dx/cardTrailheadModule/cardTrailheadModule.stories.ts +0 -122
  92. package/src/modules/dx/cardVideoPreview/__tests__/cardVideoPreview.test.ts +0 -22
  93. package/src/modules/dx/cardVideoPreview/__tests__/mockProps.ts +0 -11
  94. package/src/modules/dx/cardVideoPreview/cardVideoPreview.stories.ts +0 -147
  95. package/src/modules/dx/checkbox/__tests__/checkbox.test.ts +0 -85
  96. package/src/modules/dx/checkbox/__tests__/mockProps.ts +0 -5
  97. package/src/modules/dx/checkbox/checkbox.stories.ts +0 -38
  98. package/src/modules/dx/checkboxGroup/__tests__/checkboxGroup.test.ts +0 -80
  99. package/src/modules/dx/checkboxGroup/__tests__/mockProps.ts +0 -14
  100. package/src/modules/dx/checkboxGroup/checkboxGroup.stories.ts +0 -33
  101. package/src/modules/dx/codeBlock/__tests__/codeBlock.test.ts +0 -238
  102. package/src/modules/dx/codeBlock/__tests__/mockProps.ts +0 -160
  103. package/src/modules/dx/codeBlock/codeBlock.stories.ts +0 -143
  104. package/src/modules/dx/dropdown/__tests__/dropdown.test.ts +0 -165
  105. package/src/modules/dx/dropdown/__tests__/mockNestedOptions.ts +0 -96
  106. package/src/modules/dx/dropdown/__tests__/mockOptions.ts +0 -10
  107. package/src/modules/dx/dropdown/__tests__/mockProps.ts +0 -6
  108. package/src/modules/dx/dropdown/dropdown.stories.ts +0 -89
  109. package/src/modules/dx/dropdownOption/__tests__/dropdownOption.test.ts +0 -112
  110. package/src/modules/dx/dropdownOption/__tests__/mockProps.ts +0 -20
  111. package/src/modules/dx/emptyState/__tests__/emptyState.test.ts +0 -52
  112. package/src/modules/dx/emptyState/__tests__/mockProps.ts +0 -4
  113. package/src/modules/dx/emptyState/emptyState.stories.ts +0 -45
  114. package/src/modules/dx/feature/__tests__/feature.test.ts +0 -51
  115. package/src/modules/dx/feature/__tests__/mockProps.ts +0 -8
  116. package/src/modules/dx/featureGrid/__tests__/featureGrid.test.ts +0 -21
  117. package/src/modules/dx/featureGrid/featureGrid.stories.ts +0 -120
  118. package/src/modules/dx/featuredContentHeader/__tests__/featuredContentHeader.test.ts +0 -178
  119. package/src/modules/dx/featuredContentHeader/__tests__/mockProps.ts +0 -73
  120. package/src/modules/dx/featuredContentHeader/featuredContentHeader.stories.ts +0 -153
  121. package/src/modules/dx/featuresList/__tests__/featuresList.test.ts +0 -43
  122. package/src/modules/dx/featuresList/__tests__/mockProps.ts +0 -17
  123. package/src/modules/dx/featuresList/featuresList.stories.ts +0 -30
  124. package/src/modules/dx/footer/__tests__/footer.test.ts +0 -147
  125. package/src/modules/dx/footer/__tests__/mockLocales.ts +0 -7
  126. package/src/modules/dx/footer/footer.stories.ts +0 -88
  127. package/src/modules/dx/footerOption/__tests__/footerOption.test.ts +0 -34
  128. package/src/modules/dx/footerOption/__tests__/mockProps.ts +0 -7
  129. package/src/modules/dx/formattedDateTime/__tests__/formattedDateTime.test.ts +0 -25
  130. package/src/modules/dx/formattedDateTime/__tests__/mockProps.ts +0 -13
  131. package/src/modules/dx/formattedDateTime/formattedDateTime.stories.ts +0 -103
  132. package/src/modules/dx/grid/__tests__/grid.test.ts +0 -32
  133. package/src/modules/dx/grid/grid.stories.ts +0 -134
  134. package/src/modules/dx/groupBio/__tests__/groupBio.test.ts +0 -82
  135. package/src/modules/dx/groupBio/__tests__/mockProps.ts +0 -15
  136. package/src/modules/dx/groupBio/groupBio.stories.ts +0 -66
  137. package/src/modules/dx/groupText/__tests__/groupText.test.ts +0 -69
  138. package/src/modules/dx/groupText/__tests__/mockProps.ts +0 -35
  139. package/src/modules/dx/groupText/groupText.stories.ts +0 -81
  140. package/src/modules/dx/header/__tests__/header.test.ts +0 -236
  141. package/src/modules/dx/header/__tests__/mockNavArchitects.ts +0 -169
  142. package/src/modules/dx/header/__tests__/mockNavDevelopers.ts +0 -419
  143. package/src/modules/dx/header/__tests__/mockNavs.ts +0 -115
  144. package/src/modules/dx/header/__tests__/mockProps.ts +0 -164
  145. package/src/modules/dx/header/header.stories.ts +0 -172
  146. package/src/modules/dx/headerMobileNavMenu/__tests__/headerMobileNavMenu.test.ts +0 -123
  147. package/src/modules/dx/headerMobileNavMenuOption/__tests__/headerMobileNavMenuOption.test.ts +0 -38
  148. package/src/modules/dx/headerNav/__tests__/headerNav.test.ts +0 -49
  149. package/src/modules/dx/headerSearch/__tests__/headerSearch.test.ts +0 -182
  150. package/src/modules/dx/headerSearch/__tests__/mockData.ts +0 -11
  151. package/src/modules/dx/headerSearch/__tests__/mockProps.ts +0 -6
  152. package/src/modules/dx/helmet/__tests__/helmet.test.ts +0 -52
  153. package/src/modules/dx/helmet/helmet.stories.ts +0 -53
  154. package/src/modules/dx/hr/__tests__/hr.test.ts +0 -53
  155. package/src/modules/dx/hr/__tests__/mockProps.ts +0 -16
  156. package/src/modules/dx/hr/hr.stories.ts +0 -50
  157. package/src/modules/dx/icon/__tests__/icon.test.ts +0 -54
  158. package/src/modules/dx/icon/icon.stories.ts +0 -100
  159. package/src/modules/dx/iconBadge/__tests__/iconBadge.test.ts +0 -17
  160. package/src/modules/dx/iconBadge/iconBadge.stories.ts +0 -32
  161. package/src/modules/dx/imageAndLabel/__tests__/imageAndLabel.test.ts +0 -39
  162. package/src/modules/dx/imageAndLabel/__tests__/mockProps.ts +0 -6
  163. package/src/modules/dx/imageAndLabel/imageAndLabel.stories.ts +0 -48
  164. package/src/modules/dx/input/__tests__/input.test.ts +0 -357
  165. package/src/modules/dx/input/input.stories.ts +0 -102
  166. package/src/modules/dx/instrumentation/__tests__/instrumentation.test.ts +0 -86
  167. package/src/modules/dx/interactiveImage/__tests__/interactiveImage.test.ts +0 -83
  168. package/src/modules/dx/interactiveImage/__tests__/mockProps.ts +0 -39
  169. package/src/modules/dx/interactiveImage/interactiveImage.stories.ts +0 -31
  170. package/src/modules/dx/lazy/__tests__/lazy.test.ts +0 -43
  171. package/src/modules/dx/lazy/lazy.stories.ts +0 -132
  172. package/src/modules/dx/pagination/__tests__/pagination.test.ts +0 -121
  173. package/src/modules/dx/pagination/pagination.stories.ts +0 -88
  174. package/src/modules/dx/podcastHost/__tests__/mockProps.ts +0 -8
  175. package/src/modules/dx/podcastHost/__tests__/podcastHost.test.ts +0 -21
  176. package/src/modules/dx/podcastHost/podcastHost.stories.ts +0 -17
  177. package/src/modules/dx/podcastPlayer/__tests__/podcastPlayer.test.ts +0 -20
  178. package/src/modules/dx/podcastPlayer/podcastPlayer.stories.ts +0 -13
  179. package/src/modules/dx/podcastSubscription/__tests__/podcastSubscription.test.ts +0 -16
  180. package/src/modules/dx/podcastSubscription/podcastSubscription.stories.ts +0 -23
  181. package/src/modules/dx/popover/__tests__/mockProps.ts +0 -8
  182. package/src/modules/dx/popover/__tests__/popover.test.ts +0 -313
  183. package/src/modules/dx/popover/popover.stories.ts +0 -82
  184. package/src/modules/dx/radioGroup/__tests__/mockProps.ts +0 -12
  185. package/src/modules/dx/radioGroup/__tests__/radioGroup.test.ts +0 -42
  186. package/src/modules/dx/radioGroup/radioGroup.stories.ts +0 -25
  187. package/src/modules/dx/relativeDateTime/__tests__/mockProps.ts +0 -55
  188. package/src/modules/dx/relativeDateTime/__tests__/relativeDateTime.test.ts +0 -52
  189. package/src/modules/dx/relativeDateTime/relativeDateTime.stories.ts +0 -83
  190. package/src/modules/dx/searchResults/searchResults.stories.ts +0 -36
  191. package/src/modules/dx/section/__tests__/section.test.ts +0 -17
  192. package/src/modules/dx/section/section.stories.ts +0 -381
  193. package/src/modules/dx/sectionSignup/__tests__/sectionSignup.test.ts +0 -66
  194. package/src/modules/dx/sectionSignup/sectionSignup.stories.ts +0 -49
  195. package/src/modules/dx/select/select.stories.ts +0 -59
  196. package/src/modules/dx/sidebar/__tests__/mockProps.ts +0 -181
  197. package/src/modules/dx/sidebar/__tests__/mockSearchChangeEmptyEvent.ts +0 -6
  198. package/src/modules/dx/sidebar/__tests__/mockSearchChangeEvent.ts +0 -527
  199. package/src/modules/dx/sidebar/__tests__/sidebar.test.ts +0 -568
  200. package/src/modules/dx/sidebar/sidebar.stories.ts +0 -188
  201. package/src/modules/dx/sidebarOld/__tests__/mockProps.ts +0 -178
  202. package/src/modules/dx/sidebarOld/__tests__/sidebarOld.test.ts +0 -570
  203. package/src/modules/dx/sidebarOld/sidebarOld.stories.ts +0 -139
  204. package/src/modules/dx/sidebarSearch/__tests__/mockPreloadedState.ts +0 -1686
  205. package/src/modules/dx/sidebarSearch/__tests__/sidebarSearch.test.ts +0 -175
  206. package/src/modules/dx/sidebarSearchResult/__tests__/sidebarSearchResult.test.ts +0 -96
  207. package/src/modules/dx/slackCta/__tests__/slackCta.test.ts +0 -48
  208. package/src/modules/dx/slackCta/slackCta.stories.ts +0 -25
  209. package/src/modules/dx/socials/__tests__/socials.test.ts +0 -114
  210. package/src/modules/dx/socials/socials.stories.ts +0 -24
  211. package/src/modules/dx/spinner/__tests__/spinner.test.ts +0 -37
  212. package/src/modules/dx/spinner/spinner.stories.ts +0 -69
  213. package/src/modules/dx/tab/__tests__/tab.test.ts +0 -129
  214. package/src/modules/dx/tab/tab.stories.ts +0 -57
  215. package/src/modules/dx/toc/__tests__/mockProps.ts +0 -28
  216. package/src/modules/dx/toc/__tests__/toc.test.ts +0 -109
  217. package/src/modules/dx/toc/toc.stories.ts +0 -26
  218. package/src/modules/dx/tooltip/__tests__/tooltip.test.ts +0 -22
  219. package/src/modules/dx/tooltip/tooltip.stories.ts +0 -46
  220. package/src/modules/dx/topics/__tests__/mockProps.ts +0 -3
  221. package/src/modules/dx/topics/__tests__/topics.test.ts +0 -31
  222. package/src/modules/dx/tree/__tests__/mockProps.ts +0 -215
  223. package/src/modules/dx/tree/__tests__/tree.test.ts +0 -346
  224. package/src/modules/dx/tree/__tests__/treeHandler.test.ts +0 -194
  225. package/src/modules/dx/tree/tree.stories.ts +0 -65
  226. package/src/modules/dx/treeItem/__tests__/mockProps.ts +0 -46
  227. package/src/modules/dx/treeItem/__tests__/treeItem.test.ts +0 -377
  228. package/src/modules/dx/treeTile/__tests__/mockProps.ts +0 -16
  229. package/src/modules/dx/treeTile/__tests__/treeTile.test.ts +0 -168
  230. package/src/modules/dx/typeBadge/__tests__/typeBadge.test.ts +0 -77
  231. package/src/modules/dx/typeBadge/typeBadge.stories.ts +0 -114
  232. package/src/modules/dx/typeBadgeGroup/__tests__/mockProps.ts +0 -11
  233. package/src/modules/dx/typeBadgeGroup/__tests__/typeBadgeGroup.test.ts +0 -72
  234. package/src/modules/dx/typeBadgeGroup/typeBadgeGroup.stories.ts +0 -19
  235. package/src/modules/utils/highlight/__tests__/highlight.test.ts +0 -108
  236. package/src/modules/utils/highlight/__tests__/mockProps.ts +0 -45
  237. package/src/modules/utils-internal/recentSearches/__tests__/recentSearches.test.ts +0 -83
  238. package/src/modules/utils-internal/wordpress/__tests__/wordpress.test.ts +0 -15
package/lwc.config.json CHANGED
@@ -80,7 +80,7 @@
80
80
  "helpers/reset",
81
81
  "helpers/table",
82
82
  "helpers/text",
83
- "utils-internal/headerBase",
83
+ "utils/headerBase",
84
84
  "utils/normalizers",
85
85
  "utils/highlight"
86
86
  ]
package/package.json CHANGED
@@ -1,15 +1,11 @@
1
1
  {
2
2
  "name": "@salesforcedevs/dx-components",
3
- "version": "0.26.0",
3
+ "version": "0.26.1-alpha.13",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
7
7
  "node": ">= 14.x"
8
8
  },
9
- "files": [
10
- "src/",
11
- "lwc.config.json"
12
- ],
13
9
  "publishConfig": {
14
10
  "access": "public"
15
11
  },
@@ -28,6 +24,5 @@
28
24
  "@types/classnames": "^2.2.10",
29
25
  "@types/debounce": "^1.2.0",
30
26
  "@types/lodash.get": "^4.4.6"
31
- },
32
- "gitHead": "e3cf39d3be484acbf9bae459659f6e65f1f932cf"
27
+ }
33
28
  }
@@ -1,5 +1,5 @@
1
1
  import { LightningElement, api, track } from "lwc";
2
- import { fetchWordpressPosts } from "utils-internal/wordpress";
2
+ import { fetchWordpressPosts } from "utils/wordpress";
3
3
  import { normalizePost } from "utils/normalizers";
4
4
 
5
5
  type BlogPost = {
@@ -1,6 +1,6 @@
1
1
  import { LightningElement, api } from "lwc";
2
2
  import cx from "classnames";
3
- import { toDxColor } from "utils-internal/css";
3
+ import { toDxColor } from "utils/css";
4
4
  import { track } from "dx/instrumentation";
5
5
 
6
6
  export default class CardCallout extends LightningElement {
@@ -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-internal/slot";
5
- import { toDxColor } from "utils-internal/css";
4
+ import { isSlotEmpty } from "utils/slot";
5
+ import { toDxColor } from "utils/css";
6
6
 
7
7
  export default class CardContent extends LightningElement {
8
8
  @api authorHref?: string | null = null;
@@ -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-internal/slot";
4
+ import { stopPropagationOnSlotted } from "utils/slot";
5
5
 
6
6
  export default class CardDocs extends LightningElement {
7
7
  @api body!: string;
@@ -1,5 +1,5 @@
1
1
  import { api } from "lwc";
2
- import { ArchiveCard } from "utils-internal/archiveCard";
2
+ import { ArchiveCard } from "utils/archiveCard";
3
3
  import cx from "classnames";
4
4
 
5
5
  export default class ExpandedCard extends ArchiveCard {
@@ -1,3 +1,3 @@
1
- import { ArchiveCard } from "utils-internal/archiveCard";
1
+ import { ArchiveCard } from "utils/archiveCard";
2
2
 
3
3
  export default class MinimalCard extends ArchiveCard {}
@@ -1,6 +1,6 @@
1
1
  import { LightningElement, api } from "lwc";
2
2
  import cx from "classnames";
3
- import { toDxColor } from "utils-internal/css";
3
+ import { toDxColor } from "utils/css";
4
4
  import {
5
5
  CardNewsButtonType,
6
6
  CardNewsImagePlacement,
@@ -1,5 +1,5 @@
1
1
  import { LightningElement, api, track } from "lwc";
2
- import { fetchWordpressPosts } from "utils-internal/wordpress";
2
+ import { fetchWordpressPosts } from "utils/wordpress";
3
3
  import { normalizeEpisode } from "utils/normalizers";
4
4
 
5
5
  type PodcastEpisode = {
@@ -6,7 +6,7 @@ import {
6
6
  IconSymbol,
7
7
  IconBadgeShape
8
8
  } from "typings/custom";
9
- import { isSlotEmpty, stopPropagationOnSlotted } from "utils-internal/slot";
9
+ import { isSlotEmpty, stopPropagationOnSlotted } from "utils/slot";
10
10
 
11
11
  export default class CardSmall extends LightningElement {
12
12
  @api badgeBackgroundColor?: string = "indigo-vibrant-50";
@@ -1,7 +1,7 @@
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-internal/prismjs";
4
+ import Prism from "utils/prismjs";
5
5
  import {
6
6
  getLocalStorageData,
7
7
  setLocalStorageData
@@ -2,7 +2,7 @@ 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-internal/options";
5
+ import { deepmapOptions } from "utils/options";
6
6
  import { toJson } from "utils/normalizers";
7
7
 
8
8
  interface DropdownOption extends Option {
@@ -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 { isSlotEmpty } from "utils-internal/slot";
4
+ import { isSlotEmpty } from "utils/slot";
5
5
  import { toJson } from "utils/normalizers";
6
6
  import { ImageAndLabel } from "../imageAndLabel";
7
7
  import svgs from "./svgs";
@@ -1,7 +1,7 @@
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-internal/slot";
4
+ import { isSlotEmpty } from "packages/@salesforcedevs/dx-components/src/modules/utils/slot/slot";
5
5
  import { toJson } from "utils/normalizers";
6
6
 
7
7
  type OptionalLink = Link | null;
@@ -1,5 +1,5 @@
1
1
  import { api } from "lwc";
2
- import { HeaderBase } from "utils-internal/headerBase";
2
+ import { HeaderBase } from "utils/headerBase";
3
3
  import { toJson } from "utils/normalizers";
4
4
  import type { Option } from "typings/custom";
5
5
 
@@ -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 { deepmapOptions } from "utils-internal/options";
4
+ import { deepmapOptions } from "utils/options";
5
5
 
6
6
  export default class HeaderMobileNavMenu extends LightningElement {
7
7
  @api open: boolean = false;
@@ -1,7 +1,7 @@
1
1
  import { LightningElement, api } from "lwc";
2
2
  import cx from "classnames";
3
3
  import { PopoverRequestCloseType, Option } from "typings/custom";
4
- import { buildSearchEngine } from "utils-internal/coveo";
4
+ import { buildSearchEngine } from "utils/coveo";
5
5
  import {
6
6
  StandaloneSearchBox as StandaloneSearchBoxType,
7
7
  StandaloneSearchBoxState,
@@ -1,6 +1,6 @@
1
1
  import { LightningElement, api } from "lwc";
2
2
  import { IconSprite, IconSize, IconSymbol } from "typings/custom";
3
- import { toDxColor } from "utils-internal/css";
3
+ import { toDxColor } from "utils/css";
4
4
 
5
5
  const fetches = new Map<string, Promise<any>>();
6
6
 
@@ -1,7 +1,7 @@
1
1
  import { LightningElement, api } from "lwc";
2
2
  import cx from "classnames";
3
3
  import { IconSprite, IconSymbol, IconBadgeShape } from "typings/custom";
4
- import { toDxColor } from "utils-internal/css";
4
+ import { toDxColor } from "utils/css";
5
5
 
6
6
  const validShapes = ["square", "circle"];
7
7
 
@@ -1,7 +1,7 @@
1
1
  import { LightningElement, api } from "lwc";
2
2
  import cx from "classnames";
3
3
  import { IconSize, IconSymbol } from "typings/custom";
4
- import { isMac } from "utils-internal/devices";
4
+ import { isMac } from "utils/devices";
5
5
  import { isValidEmail } from "./validators";
6
6
 
7
7
  type ValidatorMap = {
@@ -8,7 +8,7 @@ import {
8
8
  import { createPopper } from "@popperjs/core";
9
9
  import cx from "classnames";
10
10
  import debounce from "debounce";
11
- import { isPrerender } from "utils-internal/seo";
11
+ import { isPrerender } from "utils/seo";
12
12
 
13
13
  const isEventOutsideElements = (
14
14
  e: Event,
@@ -1,6 +1,6 @@
1
1
  import { LightningElement, api } from "lwc";
2
2
  import cx from "classnames";
3
- import { toDxColor } from "utils-internal/css";
3
+ import { toDxColor } from "utils/css";
4
4
 
5
5
  export default class Section extends LightningElement {
6
6
  @api backgroundColor?: string | null = "transparent";
@@ -6,7 +6,7 @@ import {
6
6
  SidebarGtmAction,
7
7
  SidebarSearchResult
8
8
  } from "typings/custom";
9
- import { getSidebarSearchParams } from "utils-internal/coveo";
9
+ import { getSidebarSearchParams } from "utils/coveo";
10
10
  import { toJson } from "utils/normalizers";
11
11
  import SidebarSearch from "dx/sidebarSearch";
12
12
 
@@ -17,8 +17,8 @@ import {
17
17
  import {
18
18
  buildSearchEngine,
19
19
  getSidebarSearchParams
20
- } from "utils-internal/coveo";
21
- import { RecentSearches } from "utils-internal/recentSearches";
20
+ } from "utils/coveo";
21
+ import { RecentSearches } from "utils/recentSearches";
22
22
  import { toJson } from "utils/normalizers";
23
23
  import {
24
24
  Option,
@@ -7,7 +7,7 @@ import {
7
7
  BadgeType,
8
8
  Brand
9
9
  } from "typings/custom";
10
- import { colorToDxColors } from "utils-internal/css";
10
+ import { colorToDxColors } from "utils/css";
11
11
 
12
12
  const DEFAULT_TYPE = "typebadge_metadata";
13
13
  const VALID_BRANDS: Array<Brand> = [
@@ -4,7 +4,7 @@ table {
4
4
  --table-cell-line-height: var(--dx-g-text-lg);
5
5
 
6
6
  display: block;
7
- overflow-x: scroll;
7
+ overflow-x: auto;
8
8
  border-collapse: separate;
9
9
  border-spacing: 0;
10
10
  margin-top: var(--dx-g-spacing-lg);
File without changes
@@ -1,4 +1,4 @@
1
- import { createSearchRegExp } from "utils-internal/regexps";
1
+ import { createSearchRegExp } from "utils/regexps";
2
2
 
3
3
  const MARK_TAGS = /<\/?mark>/gi;
4
4
 
File without changes
package/LICENSE DELETED
@@ -1,12 +0,0 @@
1
- Copyright (c) 2020, Salesforce.com, Inc.
2
- All rights reserved.
3
-
4
- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5
-
6
- * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7
-
8
- * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
9
-
10
- * Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
11
-
12
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -1,33 +0,0 @@
1
- import Banner from "dx/banner";
2
- import { createRenderComponent } from "utils-internal/tests";
3
-
4
- const TAG = "dx-banner";
5
- const render = createRenderComponent(TAG, Banner);
6
-
7
- describe(TAG, () => {
8
- it("renders banner component", () => {
9
- const element = render();
10
-
11
- const innerContainer =
12
- element.shadowRoot.querySelectorAll(".container_inner");
13
-
14
- expect(innerContainer).not.toBeNull();
15
-
16
- return expect(element).toBeAccessible();
17
- });
18
-
19
- it("renders custom banner markup in the banner", () => {
20
- const element = render({
21
- bannerMarkup: "Give feedback about our new site"
22
- });
23
-
24
- const bannerContainer =
25
- element.shadowRoot.querySelector(".info-container");
26
-
27
- return Promise.resolve().then(() => {
28
- expect(bannerContainer.innerHTML).toContain(
29
- "Give feedback about our new site"
30
- );
31
- });
32
- });
33
- });
@@ -1,49 +0,0 @@
1
- import BrandThemeProvider, { toCss } from "dx/brandThemeProvider";
2
- import { createRenderComponent } from "utils-internal/tests";
3
- import brandCssVars from "../brandCssVars";
4
-
5
- const TAG = "dx-brand-theme-provider";
6
- const render = createRenderComponent(TAG, BrandThemeProvider);
7
-
8
- describe(TAG, () => {
9
- it("renders", () => {
10
- const element = render();
11
- return expect(element).toBeAccessible();
12
- });
13
-
14
- it("all css variables are accounted for", () => {
15
- const brand = "commerce";
16
- const element = render({ brand });
17
-
18
- const style = element.shadowRoot.querySelector("style");
19
- const { textContent } = style.childNodes[0];
20
- brandCssVars.forEach((v: string) => {
21
- expect(textContent).toContain(
22
- `${v}: var(${v.replace("current", brand)});`
23
- );
24
- });
25
-
26
- return expect(element).toBeAccessible();
27
- });
28
-
29
- it("renders a style element with textcontent that matches the output from the tocss fn()", () => {
30
- const brand = "commerce";
31
- const element = render({ brand });
32
-
33
- const expectedTextContent = toCss(brand);
34
- const style = element.shadowRoot.querySelector("style");
35
- const { textContent } = style.childNodes[0];
36
- expect(textContent).toEqual(expectedTextContent);
37
- return expect(element).toBeAccessible();
38
- });
39
-
40
- it("keeps one style element with one childnode at a time", () => {
41
- const brand = "commerce";
42
- const element = render({ brand });
43
-
44
- const styles = element.shadowRoot.querySelectorAll("style");
45
- expect(styles.length).toEqual(1);
46
- expect(Array.from(styles[0].childNodes).length).toEqual(1);
47
- return expect(element).toBeAccessible();
48
- });
49
- });