@salesforcedevs/dw-components 1.2.5-canary.3 → 1.2.5-canary.5

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/lwc.config.json CHANGED
@@ -4,7 +4,6 @@
4
4
  { "npm": "@salesforcedevs/dx-components" }
5
5
  ],
6
6
  "expose": [
7
- "dw/avatarButton",
8
7
  "dw/blogsGrid",
9
8
  "dw/cardBlogPostProvider",
10
9
  "dw/cardPodcastEpisodeProvider",
@@ -20,6 +19,7 @@
20
19
  "dw/podcastsPromo",
21
20
  "dw/rcgTable",
22
21
  "dw/slackCta",
23
- "dw/slackSuccess"
22
+ "dw/slackSuccess",
23
+ "dw/tbidLoginMenu"
24
24
  ]
25
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/dw-components",
3
- "version": "1.2.5-canary.3",
3
+ "version": "1.2.5-canary.5",
4
4
  "description": "Lightning web components for https://developer.salesforce.com",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -77,7 +77,7 @@ ul {
77
77
 
78
78
  .login-link {
79
79
  color: var(--dx-g-blue-vibrant-20);
80
- display: block;
80
+ display: inline-block;
81
81
  }
82
82
 
83
83
  .login-link-label {
@@ -25,7 +25,10 @@ const trackableUserInfo = new Set([
25
25
  "role"
26
26
  ]);
27
27
 
28
- export default class AvatarButton extends LightningElement {
28
+ // This component is DSC-specific, essentially just handling tracking and UI for the TBID login menu.
29
+ // TBID-login-related *functionality* is handled by the generic and hopefully-reusable dx/tbidAvatarButton,
30
+ // which this component uses.
31
+ export default class TbidLoginMenu extends LightningElement {
29
32
  // URLs:
30
33
  // TODO: change these urls when the environment is correct
31
34
  private tbidBaseUrl = "https://dev1-trailblazer-identity.cs192.force.com";
@@ -47,8 +50,9 @@ export default class AvatarButton extends LightningElement {
47
50
  private userInfo: UserInfo = {};
48
51
 
49
52
  private handleComponentLogoutClick = (event: Event) => {
53
+ event.preventDefault();
50
54
  this.trackLogoutClick();
51
- (this.template.querySelector('dx-tbid-avatar-button') as unknown as TbidAvatarButton).logout(event);
55
+ (this.template.querySelector('dx-tbid-avatar-button') as unknown as TbidAvatarButton).logout();
52
56
  };
53
57
 
54
58
  private handleComponentLoginClick = (event: Event) => {