@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 +2 -2
- package/package.json +1 -1
- package/src/modules/dw/{avatarButton/avatarButton.css → tbidLoginMenu/tbidLoginMenu.css} +1 -1
- package/src/modules/dw/{avatarButton/avatarButton.html → tbidLoginMenu/tbidLoginMenu.html} +0 -0
- package/src/modules/dw/{avatarButton/avatarButton.ts → tbidLoginMenu/tbidLoginMenu.ts} +6 -2
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
|
File without changes
|
|
@@ -25,7 +25,10 @@ const trackableUserInfo = new Set([
|
|
|
25
25
|
"role"
|
|
26
26
|
]);
|
|
27
27
|
|
|
28
|
-
|
|
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(
|
|
55
|
+
(this.template.querySelector('dx-tbid-avatar-button') as unknown as TbidAvatarButton).logout();
|
|
52
56
|
};
|
|
53
57
|
|
|
54
58
|
private handleComponentLoginClick = (event: Event) => {
|