@salesforcedevs/dx-components 0.59.0-avatar-button-10 → 0.59.0-avatar-button-11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/dx-components",
3
- "version": "0.59.0-avatar-button-10",
3
+ "version": "0.59.0-avatar-button-11",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -15,7 +15,6 @@
15
15
  "@sfdocs-internal/wires": "^0.6.3",
16
16
  "@vimeo/player": "^2.16.4",
17
17
  "classnames": "^2.2.6",
18
- "cometd": "^7.0.7",
19
18
  "debounce": "^1.2.0",
20
19
  "lodash.get": "^4.4.2",
21
20
  "microtip": "0.2.2",
@@ -1,5 +1,4 @@
1
1
  import { api, LightningElement } from "lwc";
2
- import { CometD } from "cometd";
3
2
 
4
3
  const TBID_BASE_URL = "https://dev1-trailblazer-identity.cs192.force.com";
5
4
  const TBID_SETTINGS_URL = `${TBID_BASE_URL}/settings`;
@@ -27,9 +26,6 @@ export interface UserInfo {
27
26
  readonly fullName: string;
28
27
  }
29
28
 
30
- // @ts-ignore
31
- window.COMETD = CometD;
32
-
33
29
  export default class AvatarButton extends LightningElement {
34
30
  @api size: "small" | "medium" | "large" = "medium";
35
31
 
@@ -84,11 +80,11 @@ export default class AvatarButton extends LightningElement {
84
80
  // defer to the SFIDWidget. This will ensure that the SSO session is logged out as
85
81
  // well.
86
82
  window.SFIDWidget.logout();
83
+ } else {
84
+ // Always clear the session token; if not SSO logout, this will also revoke the token with
85
+ // TBID; if SSO logout, that step is already taken care of
86
+ fetch(`${TBID_API_LOGOUT_URL}?isSsoLogout=${isSsoLogout}`); // no need to await this
87
87
  }
88
-
89
- // Always clear the session token; if not SSO logout, this will also revoke the token with
90
- // TBID; if SSO logout, that step is already taken care of
91
- fetch(`${TBID_API_LOGOUT_URL}?isSsoLogout=${isSsoLogout}`); // no need to await this
92
88
  };
93
89
 
94
90
  // This will only be called for "seamless SSO" login by the embedded login widget (SFIDWidget) on the website, if it exists.