@microsoft/omnichannel-chat-widget 1.6.2-main.c7d45e8 → 1.6.3-main.0e66ed8

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 (37) hide show
  1. package/lib/cjs/common/telemetry/TelemetryConstants.js +1 -0
  2. package/lib/cjs/common/telemetry/TelemetryHelper.js +9 -10
  3. package/lib/cjs/common/utils.js +15 -6
  4. package/lib/cjs/components/emailtranscriptpanestateful/EmailTranscriptPaneStateful.js +29 -24
  5. package/lib/cjs/components/footerstateful/downloadtranscriptstateful/DownloadTranscriptStateful.js +12 -6
  6. package/lib/cjs/components/livechatwidget/common/authHelper.js +4 -1
  7. package/lib/cjs/components/livechatwidget/common/endChat.js +9 -30
  8. package/lib/cjs/components/livechatwidget/common/reconnectChatHelper.js +16 -6
  9. package/lib/cjs/components/livechatwidget/common/startChat.js +35 -19
  10. package/lib/cjs/components/livechatwidget/common/startChatErrorHandler.js +5 -0
  11. package/lib/cjs/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.js +53 -53
  12. package/lib/cjs/components/webchatcontainerstateful/common/utils/isMaskingFromCustomer.js +4 -2
  13. package/lib/cjs/contexts/common/LiveChatWidgetActionType.js +1 -0
  14. package/lib/cjs/contexts/common/LiveChatWidgetContextInitialState.js +10 -0
  15. package/lib/cjs/contexts/createReducer.js +653 -345
  16. package/lib/esm/common/telemetry/TelemetryConstants.js +1 -0
  17. package/lib/esm/common/telemetry/TelemetryHelper.js +9 -10
  18. package/lib/esm/common/utils.js +12 -4
  19. package/lib/esm/components/emailtranscriptpanestateful/EmailTranscriptPaneStateful.js +30 -25
  20. package/lib/esm/components/footerstateful/downloadtranscriptstateful/DownloadTranscriptStateful.js +12 -6
  21. package/lib/esm/components/livechatwidget/common/authHelper.js +4 -1
  22. package/lib/esm/components/livechatwidget/common/endChat.js +10 -31
  23. package/lib/esm/components/livechatwidget/common/reconnectChatHelper.js +17 -7
  24. package/lib/esm/components/livechatwidget/common/startChat.js +35 -19
  25. package/lib/esm/components/livechatwidget/common/startChatErrorHandler.js +5 -0
  26. package/lib/esm/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.js +53 -53
  27. package/lib/esm/components/webchatcontainerstateful/common/utils/isMaskingFromCustomer.js +4 -2
  28. package/lib/esm/contexts/common/LiveChatWidgetActionType.js +1 -0
  29. package/lib/esm/contexts/common/LiveChatWidgetContextInitialState.js +10 -0
  30. package/lib/esm/contexts/createReducer.js +650 -343
  31. package/lib/types/common/telemetry/TelemetryConstants.d.ts +2 -1
  32. package/lib/types/common/telemetry/definitions/Contracts.d.ts +3 -0
  33. package/lib/types/common/utils.d.ts +2 -1
  34. package/lib/types/components/livechatwidget/common/reconnectChatHelper.d.ts +3 -2
  35. package/lib/types/contexts/common/LiveChatWidgetActionType.d.ts +2 -1
  36. package/lib/types/contexts/createReducer.d.ts +1 -0
  37. package/package.json +6 -4
@@ -52,7 +52,8 @@ export declare enum BroadcastEvent {
52
52
  HideChatVisibilityChangeEvent = "hideChatVisibilityChangeEvent",
53
53
  UpdateSessionDataForTelemetry = "UpdateSessionDataForTelemetry",
54
54
  UpdateConversationDataForTelemetry = "UpdateConversationDataForTelemetry",
55
- ContactIdNotFound = "ContactIdNotFound"
55
+ ContactIdNotFound = "ContactIdNotFound",
56
+ SyncMinimize = "SyncMinimize"
56
57
  }
57
58
  export declare enum TelemetryEvent {
58
59
  CallAdded = "CallAdded",
@@ -11,6 +11,9 @@ export interface BaseContract {
11
11
  ExceptionDetails?: any;
12
12
  LogLevel: string;
13
13
  Description?: string;
14
+ OCChatSDKVersion?: string;
15
+ OCChatWidgetVersion?: string;
16
+ OCChatComponentsVersion?: string;
14
17
  }
15
18
  export interface ConfigValidationContract extends BaseContract {
16
19
  Event?: string;
@@ -30,7 +30,7 @@ export declare const addDelayInMs: (ms: number) => Promise<void>;
30
30
  export declare const getBroadcastChannelName: (widgetId: string, widgetInstanceId: string) => string;
31
31
  export declare const getWidgetCacheIdfromProps: (props: any, popoutChat?: boolean) => string;
32
32
  export declare const debounceLeading: (fn: any, ms?: number) => (...args: any[]) => void;
33
- export declare const getConversationDetailsCall: (chatSDK: any) => Promise<any>;
33
+ export declare const getConversationDetailsCall: (chatSDK: any, liveChatContext?: any) => Promise<any>;
34
34
  export declare const checkContactIdError: (e: any) => void;
35
35
  export declare const createFileAndDownload: (fileName: string, blobData: string, mimeType: string) => void;
36
36
  /**
@@ -42,3 +42,4 @@ export declare const createFileAndDownload: (fileName: string, blobData: string,
42
42
  * @returns formatted string with replaced values
43
43
  */
44
44
  export declare const formatTemplateString: (templateMessage: string, values: any) => string;
45
+ export declare const parseLowerCaseString: (property: string | boolean | undefined) => string;
@@ -3,8 +3,9 @@ import ChatConfig from "@microsoft/omnichannel-chat-sdk/lib/core/ChatConfig";
3
3
  import { Dispatch } from "react";
4
4
  import { ILiveChatWidgetAction } from "../../../contexts/common/ILiveChatWidgetAction";
5
5
  import { ILiveChatWidgetContext } from "../../../contexts/common/ILiveChatWidgetContext";
6
- declare const handleChatReconnect: (chatSDK: any, props: any, dispatch: Dispatch<ILiveChatWidgetAction>, setAdapter: any, initStartChat: any, state: ILiveChatWidgetContext) => Promise<boolean>;
7
- declare const getChatReconnectContext: (chatSDK: any, chatConfig: ChatConfig, props: any, isAuthenticatedChat: boolean) => Promise<any>;
6
+ import { ILiveChatWidgetProps } from "../interfaces/ILiveChatWidgetProps";
7
+ declare const handleChatReconnect: (chatSDK: any, props: ILiveChatWidgetProps, dispatch: Dispatch<ILiveChatWidgetAction>, setAdapter: any, initStartChat: any, state: ILiveChatWidgetContext) => Promise<boolean>;
8
+ declare const getChatReconnectContext: (chatSDK: any, chatConfig: ChatConfig, props: any, isAuthenticatedChat: boolean, dispatch: Dispatch<ILiveChatWidgetAction>) => Promise<any>;
8
9
  declare const isReconnectEnabled: (chatConfig?: ChatConfig | undefined) => boolean;
9
10
  declare const isPersistentEnabled: (chatConfig?: ChatConfig | undefined) => boolean;
10
11
  export { handleChatReconnect, isReconnectEnabled, isPersistentEnabled, getChatReconnectContext };
@@ -43,5 +43,6 @@ export declare enum LiveChatWidgetActionType {
43
43
  SET_CHAT_DISCONNECT_EVENT_RECEIVED = 41,
44
44
  SET_SURVEY_MODE = 42,
45
45
  SET_CONFIRMATION_STATE = 43,
46
- SET_POST_CHAT_PARTICIPANT_TYPE = 44
46
+ SET_POST_CHAT_PARTICIPANT_TYPE = 44,
47
+ GET_IN_MEMORY_STATE = 45
47
48
  }
@@ -1,3 +1,4 @@
1
1
  import { ILiveChatWidgetAction } from "./common/ILiveChatWidgetAction";
2
2
  import { ILiveChatWidgetContext } from "./common/ILiveChatWidgetContext";
3
3
  export declare const createReducer: () => (state: ILiveChatWidgetContext, action: ILiveChatWidgetAction) => ILiveChatWidgetContext;
4
+ export declare const executeReducer: (state: ILiveChatWidgetContext, action: ILiveChatWidgetAction) => ILiveChatWidgetContext;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/omnichannel-chat-widget",
3
- "version": "1.6.2-main.c7d45e8",
3
+ "version": "1.6.3-main.0e66ed8",
4
4
  "description": "Microsoft Omnichannel Chat Widget",
5
5
  "main": "lib/cjs/index.js",
6
6
  "types": "lib/types/index.d.ts",
@@ -74,8 +74,8 @@
74
74
  "webpack-cli": "^4.9.2"
75
75
  },
76
76
  "dependencies": {
77
- "@microsoft/omnichannel-chat-components": "^1.1.1",
78
- "@microsoft/omnichannel-chat-sdk": "1.6.2",
77
+ "@microsoft/omnichannel-chat-components": "^1.1.3",
78
+ "@microsoft/omnichannel-chat-sdk": "^1.7.2",
79
79
  "abort-controller-es5": "^2.0.1",
80
80
  "dompurify": "^2.3.4",
81
81
  "markdown-it": "^12.3.2",
@@ -84,6 +84,7 @@
84
84
  "markdown-it-for-inline": "^0.1.1",
85
85
  "md5-typescript": "^1.0.5",
86
86
  "p-defer-es5": "^2.0.1",
87
+ "sanitize-html": "2.12.1",
87
88
  "slack-markdown-it": "^1.0.5"
88
89
  },
89
90
  "scripts": {
@@ -110,6 +111,7 @@
110
111
  "**/url-parse": "1.5.9",
111
112
  "**/p-defer-es5": "^2.0.1",
112
113
  "**/abort-controller-es5": "^2.0.1",
113
- "**/minimist": "1.2.6"
114
+ "**/minimist": "1.2.6",
115
+ "**/sanitize-html": "2.12.1"
114
116
  }
115
117
  }