@microsoft/omnichannel-chat-widget 1.6.2 → 1.6.3-main.25307f2

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 (23) hide show
  1. package/lib/cjs/common/utils.js +6 -2
  2. package/lib/cjs/components/livechatwidget/common/authHelper.js +4 -1
  3. package/lib/cjs/components/livechatwidget/common/endChat.js +1 -22
  4. package/lib/cjs/components/livechatwidget/common/reconnectChatHelper.js +13 -3
  5. package/lib/cjs/components/livechatwidget/common/startChatErrorHandler.js +5 -0
  6. package/lib/cjs/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.js +28 -34
  7. package/lib/cjs/components/webchatcontainerstateful/common/utils/isMaskingFromCustomer.js +4 -2
  8. package/lib/cjs/contexts/common/LiveChatWidgetActionType.js +1 -0
  9. package/lib/cjs/contexts/createReducer.js +653 -345
  10. package/lib/esm/common/utils.js +3 -0
  11. package/lib/esm/components/livechatwidget/common/authHelper.js +4 -1
  12. package/lib/esm/components/livechatwidget/common/endChat.js +2 -23
  13. package/lib/esm/components/livechatwidget/common/reconnectChatHelper.js +15 -4
  14. package/lib/esm/components/livechatwidget/common/startChatErrorHandler.js +5 -0
  15. package/lib/esm/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.js +28 -34
  16. package/lib/esm/components/webchatcontainerstateful/common/utils/isMaskingFromCustomer.js +4 -2
  17. package/lib/esm/contexts/common/LiveChatWidgetActionType.js +1 -0
  18. package/lib/esm/contexts/createReducer.js +650 -343
  19. package/lib/types/common/utils.d.ts +1 -0
  20. package/lib/types/components/livechatwidget/common/reconnectChatHelper.d.ts +1 -1
  21. package/lib/types/contexts/common/LiveChatWidgetActionType.d.ts +2 -1
  22. package/lib/types/contexts/createReducer.d.ts +1 -0
  23. package/package.json +2 -2
@@ -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 };
@@ -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",
3
+ "version": "1.6.3-main.25307f2",
4
4
  "description": "Microsoft Omnichannel Chat Widget",
5
5
  "main": "lib/cjs/index.js",
6
6
  "types": "lib/types/index.d.ts",
@@ -75,7 +75,7 @@
75
75
  },
76
76
  "dependencies": {
77
77
  "@microsoft/omnichannel-chat-components": "^1.1.1",
78
- "@microsoft/omnichannel-chat-sdk": "1.6.2",
78
+ "@microsoft/omnichannel-chat-sdk": "1.6.3",
79
79
  "abort-controller-es5": "^2.0.1",
80
80
  "dompurify": "^2.3.4",
81
81
  "markdown-it": "^12.3.2",