@microsoft/omnichannel-chat-widget 1.2.3-main.2ce131d → 1.2.3-main.e804943

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.
@@ -164,6 +164,7 @@ exports.TelemetryEvent = TelemetryEvent;
164
164
  TelemetryEvent["SetBotAuthProviderHideCard"] = "SetBotAuthProviderHideCard";
165
165
  TelemetryEvent["SetBotAuthProviderDisplayCard"] = "SetBotAuthProviderDisplayCard";
166
166
  TelemetryEvent["SetBotAuthProviderNotFound"] = "SetBotAuthProviderNotFound";
167
+ TelemetryEvent["BotAuthActivityUndefinedSignInId"] = "BotAuthActivityUndefinedSignInId";
167
168
  TelemetryEvent["ThirdPartyCookiesBlocked"] = "ThirdPartyCookiesBlocked";
168
169
  TelemetryEvent["ProcessingHTMLTextMiddlewareFailed"] = "ProcessingHTMLTextMiddlewareFailed";
169
170
  TelemetryEvent["ProcessingSanitizationMiddlewareFailed"] = "ProcessingSanitizationMiddlewareFailed";
@@ -83,7 +83,10 @@ class BotAuthActivitySubscriber {
83
83
  const signInUrl = attachment.content.buttons[0].value;
84
84
  const signInId = extractSignInId(signInUrl);
85
85
  if (!signInId) {
86
- return;
86
+ _TelemetryHelper.TelemetryHelper.logLoadingEvent(_TelemetryConstants.LogLevel.INFO, {
87
+ Event: _TelemetryConstants.TelemetryEvent.BotAuthActivityUndefinedSignInId
88
+ });
89
+ return activity;
87
90
  }
88
91
  if (this.signInCardSeen.has(signInId)) {
89
92
  // Prevents duplicate auth
@@ -158,6 +158,7 @@ export let TelemetryEvent;
158
158
  TelemetryEvent["SetBotAuthProviderHideCard"] = "SetBotAuthProviderHideCard";
159
159
  TelemetryEvent["SetBotAuthProviderDisplayCard"] = "SetBotAuthProviderDisplayCard";
160
160
  TelemetryEvent["SetBotAuthProviderNotFound"] = "SetBotAuthProviderNotFound";
161
+ TelemetryEvent["BotAuthActivityUndefinedSignInId"] = "BotAuthActivityUndefinedSignInId";
161
162
  TelemetryEvent["ThirdPartyCookiesBlocked"] = "ThirdPartyCookiesBlocked";
162
163
  TelemetryEvent["ProcessingHTMLTextMiddlewareFailed"] = "ProcessingHTMLTextMiddlewareFailed";
163
164
  TelemetryEvent["ProcessingSanitizationMiddlewareFailed"] = "ProcessingSanitizationMiddlewareFailed";
@@ -79,7 +79,10 @@ export class BotAuthActivitySubscriber {
79
79
  const signInUrl = attachment.content.buttons[0].value;
80
80
  const signInId = extractSignInId(signInUrl);
81
81
  if (!signInId) {
82
- return;
82
+ TelemetryHelper.logLoadingEvent(LogLevel.INFO, {
83
+ Event: TelemetryEvent.BotAuthActivityUndefinedSignInId
84
+ });
85
+ return activity;
83
86
  }
84
87
  if (this.signInCardSeen.has(signInId)) {
85
88
  // Prevents duplicate auth
@@ -151,6 +151,7 @@ export declare enum TelemetryEvent {
151
151
  SetBotAuthProviderHideCard = "SetBotAuthProviderHideCard",
152
152
  SetBotAuthProviderDisplayCard = "SetBotAuthProviderDisplayCard",
153
153
  SetBotAuthProviderNotFound = "SetBotAuthProviderNotFound",
154
+ BotAuthActivityUndefinedSignInId = "BotAuthActivityUndefinedSignInId",
154
155
  ThirdPartyCookiesBlocked = "ThirdPartyCookiesBlocked",
155
156
  ProcessingHTMLTextMiddlewareFailed = "ProcessingHTMLTextMiddlewareFailed",
156
157
  ProcessingSanitizationMiddlewareFailed = "ProcessingSanitizationMiddlewareFailed",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/omnichannel-chat-widget",
3
- "version": "1.2.3-main.2ce131d",
3
+ "version": "1.2.3-main.e804943",
4
4
  "description": "Microsoft Omnichannel Chat Widget",
5
5
  "main": "lib/cjs/index.js",
6
6
  "types": "lib/types/index.d.ts",