@salesforcedevs/dx-components 0.59.0-avatar-button-13 → 0.59.0-avatar-button-16

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
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "modules": [{ "dir": "src/modules" }],
3
3
  "expose": [
4
+ "dx/avatarButton",
4
5
  "dx/banner",
5
6
  "dx/brandThemeProvider",
6
7
  "dx/breadcrumbs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/dx-components",
3
- "version": "0.59.0-avatar-button-13",
3
+ "version": "0.59.0-avatar-button-16",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -108,6 +108,14 @@ export default class AvatarButton extends LightningElement {
108
108
  // Always clear the session token; if not SSO logout, this will also revoke the token with
109
109
  // TBID; if SSO logout, that step is already taken care of
110
110
  fetch(`${TBID_API_LOGOUT_URL}?isSsoLogout=${isSsoLogout}`); // no need to await this
111
+ if (!isSsoLogout) {
112
+ const ifr = document.createElement("iframe");
113
+ ifr.setAttribute(
114
+ "src",
115
+ "https://dev1-trailblazer-identity.cs192.force.com/secur/logout.jsp"
116
+ );
117
+ document.body.appendChild(ifr);
118
+ }
111
119
  }
112
120
  };
113
121
 
@@ -144,6 +152,7 @@ export default class AvatarButton extends LightningElement {
144
152
 
145
153
  if (userInfo) {
146
154
  this.updateAvatarWithUserInfo(userInfo);
155
+ this._didReceiveUserInfo = true;
147
156
  }
148
157
  };
149
158