@microsoft/omnichannel-chat-widget 1.6.2 → 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.
- package/lib/cjs/common/telemetry/TelemetryConstants.js +1 -0
- package/lib/cjs/common/utils.js +15 -6
- package/lib/cjs/components/emailtranscriptpanestateful/EmailTranscriptPaneStateful.js +29 -24
- package/lib/cjs/components/footerstateful/downloadtranscriptstateful/DownloadTranscriptStateful.js +12 -6
- package/lib/cjs/components/livechatwidget/common/authHelper.js +4 -1
- package/lib/cjs/components/livechatwidget/common/endChat.js +9 -30
- package/lib/cjs/components/livechatwidget/common/reconnectChatHelper.js +13 -3
- package/lib/cjs/components/livechatwidget/common/startChat.js +35 -19
- package/lib/cjs/components/livechatwidget/common/startChatErrorHandler.js +5 -0
- package/lib/cjs/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.js +53 -53
- package/lib/cjs/components/webchatcontainerstateful/common/utils/isMaskingFromCustomer.js +4 -2
- package/lib/cjs/contexts/common/LiveChatWidgetActionType.js +1 -0
- package/lib/cjs/contexts/common/LiveChatWidgetContextInitialState.js +10 -0
- package/lib/cjs/contexts/createReducer.js +653 -345
- package/lib/esm/common/telemetry/TelemetryConstants.js +1 -0
- package/lib/esm/common/utils.js +12 -4
- package/lib/esm/components/emailtranscriptpanestateful/EmailTranscriptPaneStateful.js +30 -25
- package/lib/esm/components/footerstateful/downloadtranscriptstateful/DownloadTranscriptStateful.js +12 -6
- package/lib/esm/components/livechatwidget/common/authHelper.js +4 -1
- package/lib/esm/components/livechatwidget/common/endChat.js +10 -31
- package/lib/esm/components/livechatwidget/common/reconnectChatHelper.js +15 -4
- package/lib/esm/components/livechatwidget/common/startChat.js +35 -19
- package/lib/esm/components/livechatwidget/common/startChatErrorHandler.js +5 -0
- package/lib/esm/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.js +53 -53
- package/lib/esm/components/webchatcontainerstateful/common/utils/isMaskingFromCustomer.js +4 -2
- package/lib/esm/contexts/common/LiveChatWidgetActionType.js +1 -0
- package/lib/esm/contexts/common/LiveChatWidgetContextInitialState.js +10 -0
- package/lib/esm/contexts/createReducer.js +650 -343
- package/lib/types/common/telemetry/TelemetryConstants.d.ts +2 -1
- package/lib/types/common/utils.d.ts +2 -1
- package/lib/types/components/livechatwidget/common/reconnectChatHelper.d.ts +1 -1
- package/lib/types/contexts/common/LiveChatWidgetActionType.d.ts +2 -1
- package/lib/types/contexts/createReducer.d.ts +1 -0
- 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",
|
|
@@ -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;
|
|
@@ -5,7 +5,7 @@ import { ILiveChatWidgetAction } from "../../../contexts/common/ILiveChatWidgetA
|
|
|
5
5
|
import { ILiveChatWidgetContext } from "../../../contexts/common/ILiveChatWidgetContext";
|
|
6
6
|
import { ILiveChatWidgetProps } from "../interfaces/ILiveChatWidgetProps";
|
|
7
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) => Promise<any>;
|
|
8
|
+
declare const getChatReconnectContext: (chatSDK: any, chatConfig: ChatConfig, props: any, isAuthenticatedChat: boolean, dispatch: Dispatch<ILiveChatWidgetAction>) => Promise<any>;
|
|
9
9
|
declare const isReconnectEnabled: (chatConfig?: ChatConfig | undefined) => boolean;
|
|
10
10
|
declare const isPersistentEnabled: (chatConfig?: ChatConfig | undefined) => boolean;
|
|
11
11
|
export { handleChatReconnect, isReconnectEnabled, isPersistentEnabled, getChatReconnectContext };
|
|
@@ -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.
|
|
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.
|
|
78
|
-
"@microsoft/omnichannel-chat-sdk": "1.
|
|
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
|
}
|