@microsoft/omnichannel-chat-widget 1.8.4-main.4478bbf → 1.8.4-main.6672d3a

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.
Files changed (69) hide show
  1. package/README.md +27 -0
  2. package/lib/cjs/common/Constants.js +2 -0
  3. package/lib/cjs/common/telemetry/AppInsightsEvents.js +11 -5
  4. package/lib/cjs/common/telemetry/TelemetryConstants.js +3 -0
  5. package/lib/cjs/common/telemetry/TelemetryManager.js +10 -7
  6. package/lib/cjs/components/citationpanestateful/CitationPaneStateful.js +20 -1
  7. package/lib/cjs/components/livechatwidget/common/ChatWidgetEvents.js +1 -1
  8. package/lib/cjs/components/livechatwidget/common/PersistentConversationHandler.js +26 -20
  9. package/lib/cjs/components/livechatwidget/common/defaultProps/defaultPersistentChatHistoryProps.js +1 -2
  10. package/lib/cjs/components/livechatwidget/common/endChat.js +21 -9
  11. package/lib/cjs/components/livechatwidget/common/initWebChatComposer.js +9 -2
  12. package/lib/cjs/components/livechatwidget/common/registerTelemetryLoggers.js +3 -0
  13. package/lib/cjs/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.js +112 -26
  14. package/lib/cjs/components/postchatsurveypanestateful/PostChatSurveyPaneStateful.js +2 -2
  15. package/lib/cjs/components/webchatcontainerstateful/WebChatContainerStateful.js +9 -12
  16. package/lib/cjs/components/webchatcontainerstateful/common/activityConverters/convertPersistentChatHistoryMessageToActivity.js +8 -2
  17. package/lib/cjs/components/webchatcontainerstateful/common/defaultProps/defaultMiddlewareLocalizedTexts.js +2 -1
  18. package/lib/cjs/components/webchatcontainerstateful/hooks/usePersistentChatHistory.js +1 -3
  19. package/lib/cjs/components/webchatcontainerstateful/interfaces/IExtendedChatConffig.js +1 -0
  20. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/WebChatEventSubscribers.js +6 -7
  21. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/activities/ConversationDividerActivity.js +30 -1
  22. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/activities/LazyLoadActivity.js +21 -1
  23. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/activityMiddleware.js +7 -2
  24. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/citationsMiddleware.js +6 -1
  25. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/localizedStringsBotInitialsMiddleware.js +29 -7
  26. package/lib/cjs/contexts/common/LiveChatWidgetActionType.js +1 -0
  27. package/lib/cjs/contexts/common/LiveChatWidgetContextInitialState.js +7 -1
  28. package/lib/cjs/contexts/createReducer.js +15 -0
  29. package/lib/esm/common/Constants.js +2 -0
  30. package/lib/esm/common/telemetry/AppInsightsEvents.js +11 -5
  31. package/lib/esm/common/telemetry/TelemetryConstants.js +3 -0
  32. package/lib/esm/common/telemetry/TelemetryManager.js +10 -7
  33. package/lib/esm/components/citationpanestateful/CitationPaneStateful.js +20 -1
  34. package/lib/esm/components/livechatwidget/common/ChatWidgetEvents.js +1 -1
  35. package/lib/esm/components/livechatwidget/common/PersistentConversationHandler.js +26 -20
  36. package/lib/esm/components/livechatwidget/common/defaultProps/defaultPersistentChatHistoryProps.js +1 -2
  37. package/lib/esm/components/livechatwidget/common/endChat.js +21 -9
  38. package/lib/esm/components/livechatwidget/common/initWebChatComposer.js +9 -2
  39. package/lib/esm/components/livechatwidget/common/registerTelemetryLoggers.js +3 -0
  40. package/lib/esm/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.js +112 -26
  41. package/lib/esm/components/postchatsurveypanestateful/PostChatSurveyPaneStateful.js +2 -2
  42. package/lib/esm/components/webchatcontainerstateful/WebChatContainerStateful.js +9 -15
  43. package/lib/esm/components/webchatcontainerstateful/common/activityConverters/convertPersistentChatHistoryMessageToActivity.js +8 -2
  44. package/lib/esm/components/webchatcontainerstateful/common/defaultProps/defaultMiddlewareLocalizedTexts.js +2 -1
  45. package/lib/esm/components/webchatcontainerstateful/hooks/usePersistentChatHistory.js +1 -3
  46. package/lib/esm/components/webchatcontainerstateful/interfaces/IExtendedChatConffig.js +1 -0
  47. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/WebChatEventSubscribers.js +6 -7
  48. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/activities/ConversationDividerActivity.js +30 -1
  49. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/activities/LazyLoadActivity.js +21 -1
  50. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/activityMiddleware.js +7 -2
  51. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/citationsMiddleware.js +6 -1
  52. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/localizedStringsBotInitialsMiddleware.js +29 -7
  53. package/lib/esm/contexts/common/LiveChatWidgetActionType.js +1 -0
  54. package/lib/esm/contexts/common/LiveChatWidgetContextInitialState.js +7 -1
  55. package/lib/esm/contexts/createReducer.js +15 -0
  56. package/lib/types/common/Constants.d.ts +2 -0
  57. package/lib/types/common/telemetry/TelemetryConstants.d.ts +3 -0
  58. package/lib/types/common/telemetry/interfaces/IInternalTelemetryData.d.ts +1 -0
  59. package/lib/types/components/livechatwidget/common/ChatWidgetEvents.d.ts +1 -1
  60. package/lib/types/components/livechatwidget/interfaces/IPersistentChatHistoryProps.d.ts +5 -1
  61. package/lib/types/components/webchatcontainerstateful/interfaces/IExtendedChatConffig.d.ts +15 -0
  62. package/lib/types/components/webchatcontainerstateful/webchatcontroller/WebChatEventSubscribers.d.ts +1 -2
  63. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/activities/LazyLoadActivity.d.ts +1 -1
  64. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/activityMiddleware.d.ts +2 -1
  65. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/localizedStringsBotInitialsMiddleware.d.ts +1 -1
  66. package/lib/types/contexts/common/ILiveChatWidgetContext.d.ts +1 -0
  67. package/lib/types/contexts/common/ILiveChatWidgetLocalizedTexts.d.ts +5 -0
  68. package/lib/types/contexts/common/LiveChatWidgetActionType.d.ts +2 -1
  69. package/package.json +1 -1
@@ -1,15 +1,23 @@
1
1
  /* eslint-disable @typescript-eslint/no-explicit-any */
2
2
 
3
+ import { BroadcastService } from "@microsoft/omnichannel-chat-components";
3
4
  import { Constants } from "../../../../../common/Constants";
4
- import { getIconText } from "../../../../../common/utils";
5
- import { defaultWebChatStyles } from "../../../common/defaultStyles/defaultWebChatStyles";
6
5
  import { WebChatActionType } from "../../enums/WebChatActionType";
6
+ import { defaultWebChatStyles } from "../../../common/defaultStyles/defaultWebChatStyles";
7
+ import { getIconText } from "../../../../../common/utils";
7
8
  let currentAgentInitials = defaultWebChatStyles.botAvatarInitials;
8
- export const localizedStringsBotInitialsMiddleware = () => _ref => {
9
+
10
+ // Optional external updater (React context dispatch wrapper) set at runtime
11
+ let externalInitialsUpdater;
12
+ export const localizedStringsBotInitialsMiddleware = onInitialsChange => _ref => {
9
13
  let {
10
14
  dispatch
11
15
  } = _ref;
12
16
  return next => action => {
17
+ if (onInitialsChange && !externalInitialsUpdater) {
18
+ externalInitialsUpdater = onInitialsChange; // capture once
19
+ }
20
+
13
21
  if (action.type === WebChatActionType.DIRECT_LINE_INCOMING_ACTIVITY) {
14
22
  var _action$payload, _activity$from;
15
23
  const activity = (_action$payload = action.payload) === null || _action$payload === void 0 ? void 0 : _action$payload.activity;
@@ -17,10 +25,25 @@ export const localizedStringsBotInitialsMiddleware = () => _ref => {
17
25
  var _activity$channelData, _activity$channelData2, _activity$tags;
18
26
  const agentName = activity.from.name.trim();
19
27
  const isSystemMessage = agentName === "__agent__" || agentName.startsWith("__") || ((_activity$channelData = activity.channelData) === null || _activity$channelData === void 0 ? void 0 : (_activity$channelData2 = _activity$channelData.tags) === null || _activity$channelData2 === void 0 ? void 0 : _activity$channelData2.includes(Constants.systemMessageTag)) || ((_activity$tags = activity.tags) === null || _activity$tags === void 0 ? void 0 : _activity$tags.includes(Constants.systemMessageTag));
20
- if (!isSystemMessage && agentName !== "") {
21
- // Update initials for valid agent/bot names
28
+ if (!isSystemMessage && agentName) {
22
29
  const newInitials = getIconText(agentName) || currentAgentInitials;
23
- currentAgentInitials = newInitials;
30
+ if (newInitials !== currentAgentInitials) {
31
+ var _externalInitialsUpda;
32
+ currentAgentInitials = newInitials;
33
+ // Notify external React context if provided
34
+ (_externalInitialsUpda = externalInitialsUpdater) === null || _externalInitialsUpda === void 0 ? void 0 : _externalInitialsUpda(currentAgentInitials || "");
35
+ // Broadcast (optional) for multi-tab sync without forcing consumers
36
+ BroadcastService.postMessage({
37
+ eventName: "BotAvatarInitialsUpdated",
38
+ payload: {
39
+ initials: currentAgentInitials
40
+ }
41
+ });
42
+ // Also dispatch a no-op action into WebChat store to encourage re-render (cheap)
43
+ dispatch({
44
+ type: "__BOT_INITIALS_UPDATED__"
45
+ });
46
+ }
24
47
  }
25
48
  }
26
49
  }
@@ -33,7 +56,6 @@ export const getOverriddenLocalizedStrings = existingOverrides => {
33
56
  ...strings,
34
57
  ...existingOverrides
35
58
  };
36
-
37
59
  // Apply dynamic bot initials to alt text if not already overridden through props
38
60
  if (!(existingOverrides !== null && existingOverrides !== void 0 && existingOverrides.ACTIVITY_BOT_SAID_ALT)) {
39
61
  result.ACTIVITY_BOT_SAID_ALT = `${currentAgentInitials} said:`;
@@ -49,4 +49,5 @@ export let LiveChatWidgetActionType;
49
49
  LiveChatWidgetActionType[LiveChatWidgetActionType["SET_CONVERSATIONAL_SURVEY_ENABLED"] = 46] = "SET_CONVERSATIONAL_SURVEY_ENABLED";
50
50
  LiveChatWidgetActionType[LiveChatWidgetActionType["SET_CONVERSATIONAL_SURVEY_DISPLAY"] = 47] = "SET_CONVERSATIONAL_SURVEY_DISPLAY";
51
51
  LiveChatWidgetActionType[LiveChatWidgetActionType["GET_IN_MEMORY_STATE"] = 48] = "GET_IN_MEMORY_STATE";
52
+ LiveChatWidgetActionType[LiveChatWidgetActionType["SET_BOT_AVATAR_INITIALS"] = 49] = "SET_BOT_AVATAR_INITIALS";
52
53
  })(LiveChatWidgetActionType || (LiveChatWidgetActionType = {}));
@@ -4,6 +4,7 @@ import { ConversationState } from "./ConversationState";
4
4
  import { StartChatFailureType } from "./StartChatFailureType";
5
5
  import { defaultClientDataStoreProvider } from "../../common/storage/default/defaultClientDataStoreProvider";
6
6
  import { defaultMiddlewareLocalizedTexts } from "../../components/webchatcontainerstateful/common/defaultProps/defaultMiddlewareLocalizedTexts";
7
+ import { defaultWebChatStyles } from "../../components/webchatcontainerstateful/common/defaultStyles/defaultWebChatStyles";
7
8
  export const getLiveChatWidgetContextInitialState = props => {
8
9
  var _props$controlProps, _props$webChatContain;
9
10
  const isOutsideOperatingHours = () => {
@@ -33,6 +34,10 @@ export const getLiveChatWidgetContextInitialState = props => {
33
34
  initialStateFromCache.domainStates.liveChatConfig = props.chatConfig;
34
35
  // Cache the result of isOutsideOperatingHours() to ensure consistency
35
36
  initialStateFromCache.appStates.outsideOperatingHours = outsideOperatingHours;
37
+ // Backward compatibility: if botAvatarInitials not cached (older sessions), seed with default
38
+ if (!initialStateFromCache.domainStates.botAvatarInitials) {
39
+ initialStateFromCache.domainStates.botAvatarInitials = defaultWebChatStyles.botAvatarInitials;
40
+ }
36
41
  return initialStateFromCache;
37
42
  }
38
43
  const LiveChatWidgetContextInitialState = {
@@ -56,7 +61,8 @@ export const getLiveChatWidgetContextInitialState = props => {
56
61
  transcriptRequestId: "",
57
62
  confirmationPaneConfirmedOptionClicked: false,
58
63
  confirmationState: ConfirmationState.NotSet,
59
- startChatFailureType: StartChatFailureType.Generic
64
+ startChatFailureType: StartChatFailureType.Generic,
65
+ botAvatarInitials: defaultWebChatStyles.botAvatarInitials
60
66
  },
61
67
  appStates: {
62
68
  conversationState: ConversationState.Closed,
@@ -554,6 +554,21 @@ const reducer = (state, action) => {
554
554
  widgetSize: action.payload
555
555
  }
556
556
  };
557
+ case LiveChatWidgetActionType.SET_BOT_AVATAR_INITIALS:
558
+ inMemory = {
559
+ ...inMemory,
560
+ domainStates: {
561
+ ...inMemory.domainStates,
562
+ botAvatarInitials: action.payload
563
+ }
564
+ };
565
+ return {
566
+ ...state,
567
+ domainStates: {
568
+ ...state.domainStates,
569
+ botAvatarInitials: action.payload
570
+ }
571
+ };
557
572
  case LiveChatWidgetActionType.SET_WIDGET_INSTANCE_ID:
558
573
  inMemory = {
559
574
  ...inMemory,
@@ -107,6 +107,7 @@ export declare class Constants {
107
107
  static readonly customEventValue = "customEventValue";
108
108
  static readonly Hidden = "Hidden";
109
109
  static readonly EndConversationDueToOverflow = "endconversationduetooverflow";
110
+ static readonly SkipSessionCloseForPersistentChatFlag = "skipSessionCloseForPersistentChat";
110
111
  }
111
112
  export declare const Regex: {
112
113
  new (): {};
@@ -285,6 +286,7 @@ export declare class PrepareEndChatDescriptionConstants {
285
286
  static readonly PrepareEndChatError = "There's an error while preparing to end chat. Closing chat widget.";
286
287
  static readonly WidgetLoadFailedAfterSessionInit = "SessionInit was successful, but widget load failed. Ending chat to avoid ghost chats in OC.";
287
288
  static readonly InitiateEndChatReceived = "Received InitiateEndChat BroadcastEvent while conversation state is not Active. Ending chat.";
289
+ static readonly InitiateEndChatReceivedActiveChat = "Received InitiateEndChat BroadcastEvent while conversation state is Active. Updating conversation states.";
288
290
  static readonly EndChatReceivedFromOtherTabs = "Received EndChat BroadcastEvent from other tabs. Closing this chat.";
289
291
  static readonly CustomerCloseChatOnFailureOrPostChat = "Customer is trying to close chat widget on start chat failure or post chat pane.";
290
292
  static readonly CustomerCloseInactiveChat = "Chat was Inactive and customer is trying to close chat widget or refreshing the page.";
@@ -106,6 +106,7 @@ export declare enum TelemetryEvent {
106
106
  EndChatFailed = "EndChatFailed",
107
107
  SettingCustomContext = "SettingCustomContext",
108
108
  WebChatLoaded = "WebChatLoaded",
109
+ PersistentChatHistoryEnabled = "PersistentChatHistoryEnabled",
109
110
  LCWChatButtonActionCompleted = "LCWChatButtonActionCompleted",
110
111
  LCWChatButtonClicked = "LCWChatButtonClicked",
111
112
  LCWChatButtonShow = "LCWChatButtonShow",
@@ -287,6 +288,7 @@ export declare enum TelemetryEvent {
287
288
  LCWPersistentConversationHandlerInitialized = "LCWPersistentConversationHandlerInitialized",
288
289
  LCWPersistentHistoryPullBlocked = "LCWPersistentHistoryPullBlocked",
289
290
  LCWPersistentHistoryPullCompleted = "LCWPersistentHistoryPullCompleted",
291
+ LCWPersistentHistoryReturnedNull = "LCWPersistentHistoryReturnedNull",
290
292
  LCWLazyLoadInitializationStarted = "LCWLazyLoadInitializationStarted",
291
293
  LCWLazyLoadContainerNotFound = "LCWLazyLoadContainerNotFound",
292
294
  LCWLazyLoadInitializationCompleted = "LCWLazyLoadInitializationCompleted",
@@ -296,6 +298,7 @@ export declare enum TelemetryEvent {
296
298
  LCWLazyLoadActivityMounted = "LCWLazyLoadActivityMounted",
297
299
  LCWLazyLoadReset = "LCWLazyLoadReset",
298
300
  LCWLazyLoadNoMoreHistory = "LCWLazyLoadNoMoreHistory",
301
+ LCWLazyLoadHistoryError = "LCWLazyLoadHistoryError",
299
302
  LCWLazyLoadDestroyed = "LCWLazyLoadDestroyed",
300
303
  SecureEventBusUnauthorizedDispatch = "SecureEventBusUnauthorizedDispatch",
301
304
  SecureEventBusListenerError = "SecureEventBusListenerError",
@@ -20,4 +20,5 @@ export interface IInternalTelemetryData {
20
20
  channelId?: string;
21
21
  chatWidgetVersion?: string;
22
22
  chatComponentVersion?: string;
23
+ chatConfigAppInsightsKey?: string;
23
24
  }
@@ -2,6 +2,6 @@ declare enum ChatWidgetEvents {
2
2
  ADD_ACTIVITY = "CHAT_WIDGET/ADD_ACTIVITY",
3
3
  FETCH_PERSISTENT_CHAT_HISTORY = "CHAT_WIDGET/FETCH_PERSISTENT_CHAT_HISTORY",
4
4
  NO_MORE_HISTORY_AVAILABLE = "CHAT_WIDGET/NO_MORE_HISTORY_AVAILABLE",
5
- HIDE_LOADING_BANNER = "CHAT_WIDGET/HIDE_LOADING_BANNER"
5
+ HISTORY_LOAD_ERROR = "CHAT_WIDGET/HISTORY_LOAD_ERROR"
6
6
  }
7
7
  export default ChatWidgetEvents;
@@ -1,7 +1,11 @@
1
1
  import { IStyle } from "@fluentui/react";
2
2
  export interface IPersistentChatHistoryProps {
3
- persistentChatHistoryEnabled?: boolean;
4
3
  pageSize?: number;
5
4
  dividerActivityStyle?: IStyle;
5
+ /**
6
+ * Accessible label announced by screen readers for the conversation divider element.
7
+ * If not supplied, a default provided in defaultPersistentChatHistoryProps will be used.
8
+ */
9
+ dividerActivityAriaLabel?: string;
6
10
  bannerStyle?: IStyle;
7
11
  }
@@ -0,0 +1,15 @@
1
+ export interface ExtendedChatConfig {
2
+ LcwFcbConfiguration?: LcwFcbConfiguration;
3
+ LiveChatConfigAuthSettings?: LiveChatConfigAuthSettings;
4
+ LiveWSAndLiveChatEngJoin?: {
5
+ msdyn_conversationmode?: string;
6
+ msdyn_enablepersistentchatpreviousconversations?: boolean;
7
+ };
8
+ }
9
+ interface LcwFcbConfiguration {
10
+ lcwPersistentChatHistoryEnabled?: boolean;
11
+ }
12
+ interface LiveChatConfigAuthSettings {
13
+ msdyn_javascriptclientfunction?: string;
14
+ }
15
+ export {};
@@ -1,7 +1,6 @@
1
- import { IPersistentChatHistoryProps } from "../../livechatwidget/interfaces/IPersistentChatHistoryProps";
2
1
  /**
3
2
  * Component to handle persistent chat history events.
4
3
  * Uses WebChatStoreLoader instead of hooks to avoid context issues.
5
4
  */
6
- declare const WebChatEventSubscribers: (props: IPersistentChatHistoryProps) => null;
5
+ declare const WebChatEventSubscribers: () => null;
7
6
  export default WebChatEventSubscribers;
@@ -53,7 +53,7 @@ declare class LazyLoadHandler {
53
53
  static paused: boolean;
54
54
  static observer: IntersectionObserver | null;
55
55
  private static scrollState;
56
- private static pendingScrollAction;
56
+ static pendingScrollAction: boolean;
57
57
  private static retryTimeouts;
58
58
  static resetPending: boolean;
59
59
  private static initTimer;
@@ -6,5 +6,6 @@
6
6
  * 2. Changes the font size of user messages
7
7
  * 3. Decodes certain html characters that came through from chat services
8
8
  ******/
9
+ import { ILiveChatWidgetLocalizedTexts } from "../../../../../contexts/common/ILiveChatWidgetLocalizedTexts";
9
10
  import React from "react";
10
- export declare const createActivityMiddleware: (renderMarkdown: (text: string) => string, systemMessageStyleProps?: React.CSSProperties, userMessageStyleProps?: React.CSSProperties) => () => (next: any) => (...args: any) => any;
11
+ export declare const createActivityMiddleware: (renderMarkdown: (text: string) => string, systemMessageStyleProps?: React.CSSProperties, userMessageStyleProps?: React.CSSProperties, localizedTexts?: ILiveChatWidgetLocalizedTexts) => () => (next: any) => (...args: any) => any;
@@ -1,5 +1,5 @@
1
1
  import { IWebChatAction } from "../../../interfaces/IWebChatAction";
2
- export declare const localizedStringsBotInitialsMiddleware: () => ({ dispatch }: {
2
+ export declare const localizedStringsBotInitialsMiddleware: (onInitialsChange?: (initials: string) => void) => ({ dispatch }: {
3
3
  dispatch: any;
4
4
  }) => (next: any) => (action: IWebChatAction) => any;
5
5
  export declare const getOverriddenLocalizedStrings: (existingOverrides?: any) => (strings: any) => any;
@@ -26,6 +26,7 @@ export interface ILiveChatWidgetContext {
26
26
  confirmationPaneConfirmedOptionClicked: boolean;
27
27
  confirmationState: ConfirmationState;
28
28
  startChatFailureType: StartChatFailureType;
29
+ botAvatarInitials?: string;
29
30
  };
30
31
  appStates: {
31
32
  conversationState: ConversationState;
@@ -1,5 +1,10 @@
1
1
  export interface ILiveChatWidgetLocalizedTexts {
2
2
  PREVIOUS_MESSAGES_LOADING?: string;
3
+ /**
4
+ * Aria label announced by screen readers for the conversation history divider element.
5
+ * e.g. "Conversation history divider" or localized equivalent.
6
+ */
7
+ CONVERSATION_DIVIDER_ARIA_LABEL?: string;
3
8
  MIDDLEWARE_BANNER_FILE_NULL_ERROR?: string;
4
9
  MIDDLEWARE_BANNER_FILE_SIZE_WITHOUT_EXTENSION_ERROR?: string;
5
10
  MIDDLEWARE_BANNER_FILE_SIZE_EXTENSION_ERROR?: string;
@@ -47,5 +47,6 @@ export declare enum LiveChatWidgetActionType {
47
47
  SET_POST_CHAT_PARTICIPANT_TYPE = 45,
48
48
  SET_CONVERSATIONAL_SURVEY_ENABLED = 46,
49
49
  SET_CONVERSATIONAL_SURVEY_DISPLAY = 47,
50
- GET_IN_MEMORY_STATE = 48
50
+ GET_IN_MEMORY_STATE = 48,
51
+ SET_BOT_AVATAR_INITIALS = 49
51
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/omnichannel-chat-widget",
3
- "version": "1.8.4-main.4478bbf",
3
+ "version": "1.8.4-main.6672d3a",
4
4
  "description": "Microsoft Omnichannel Chat Widget",
5
5
  "main": "lib/cjs/index.js",
6
6
  "types": "lib/types/index.d.ts",