@microsoft/omnichannel-chat-widget 1.8.3-main.ec1328d → 1.8.3

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 (85) hide show
  1. package/lib/cjs/common/Constants.js +2 -0
  2. package/lib/cjs/common/telemetry/TelemetryConstants.js +3 -0
  3. package/lib/cjs/components/citationpanestateful/CitationDim.js +29 -0
  4. package/lib/cjs/components/citationpanestateful/CitationPaneStateful.js +199 -0
  5. package/lib/cjs/components/citationpanestateful/common/defaultProps/defaultCitationPaneProps.js +70 -0
  6. package/lib/cjs/components/confirmationpanestateful/interfaces/IConfirmationPaneLocalizedTexts.js +1 -0
  7. package/lib/cjs/components/livechatwidget/LiveChatWidget.js +4 -4
  8. package/lib/cjs/components/livechatwidget/common/ActivitySubscriber/BotAuthActivitySubscriber.js +4 -5
  9. package/lib/cjs/components/livechatwidget/common/endChat.js +21 -2
  10. package/lib/cjs/components/livechatwidget/common/getMockChatSDKIfApplicable.js +4 -3
  11. package/lib/cjs/components/livechatwidget/common/initWebChatComposer.js +1 -1
  12. package/lib/cjs/components/livechatwidget/common/overridePropsOnMockIfApplicable.js +2 -1
  13. package/lib/cjs/components/livechatwidget/common/startChat.js +5 -4
  14. package/lib/cjs/components/livechatwidget/interfaces/IMockProps.js +8 -2
  15. package/lib/cjs/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.js +29 -5
  16. package/lib/cjs/components/webchatcontainerstateful/WebChatContainerStateful.js +96 -11
  17. package/lib/cjs/components/webchatcontainerstateful/common/DesignerChatAdapter.js +43 -14
  18. package/lib/cjs/components/webchatcontainerstateful/common/DesignerChatSDK.js +6 -1
  19. package/lib/cjs/components/webchatcontainerstateful/common/defaultStyles/defaultWebChatStyles.js +1 -1
  20. package/lib/cjs/components/webchatcontainerstateful/common/utils/chatAdapterUtils.js +36 -2
  21. package/lib/cjs/components/webchatcontainerstateful/common/utils/fontUtils.js +28 -0
  22. package/lib/cjs/components/webchatcontainerstateful/interfaces/ICitation.js +1 -0
  23. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAvatarTextStyles.js +1 -1
  24. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultSystemMessageStyles.js +1 -1
  25. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/citationsMiddleware.js +97 -30
  26. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/queueOverflowHandlerMiddleware.js +2 -2
  27. package/lib/cjs/contexts/common/LiveChatWidgetActionType.js +46 -45
  28. package/lib/cjs/contexts/common/LiveChatWidgetContextInitialState.js +2 -0
  29. package/lib/cjs/contexts/createReducer.js +15 -0
  30. package/lib/cjs/index.js +9 -1
  31. package/lib/esm/common/Constants.js +2 -0
  32. package/lib/esm/common/telemetry/TelemetryConstants.js +3 -0
  33. package/lib/esm/components/citationpanestateful/CitationDim.js +20 -0
  34. package/lib/esm/components/citationpanestateful/CitationPaneStateful.js +188 -0
  35. package/lib/esm/components/citationpanestateful/common/defaultProps/defaultCitationPaneProps.js +61 -0
  36. package/lib/esm/components/confirmationpanestateful/interfaces/IConfirmationPaneLocalizedTexts.js +1 -0
  37. package/lib/esm/components/livechatwidget/LiveChatWidget.js +4 -4
  38. package/lib/esm/components/livechatwidget/common/ActivitySubscriber/BotAuthActivitySubscriber.js +4 -5
  39. package/lib/esm/components/livechatwidget/common/endChat.js +22 -3
  40. package/lib/esm/components/livechatwidget/common/getMockChatSDKIfApplicable.js +4 -3
  41. package/lib/esm/components/livechatwidget/common/initWebChatComposer.js +1 -1
  42. package/lib/esm/components/livechatwidget/common/overridePropsOnMockIfApplicable.js +2 -1
  43. package/lib/esm/components/livechatwidget/common/startChat.js +5 -4
  44. package/lib/esm/components/livechatwidget/interfaces/IMockProps.js +3 -3
  45. package/lib/esm/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.js +29 -5
  46. package/lib/esm/components/webchatcontainerstateful/WebChatContainerStateful.js +96 -12
  47. package/lib/esm/components/webchatcontainerstateful/common/DesignerChatAdapter.js +43 -14
  48. package/lib/esm/components/webchatcontainerstateful/common/DesignerChatSDK.js +6 -1
  49. package/lib/esm/components/webchatcontainerstateful/common/defaultStyles/defaultWebChatStyles.js +1 -1
  50. package/lib/esm/components/webchatcontainerstateful/common/utils/chatAdapterUtils.js +32 -0
  51. package/lib/esm/components/webchatcontainerstateful/common/utils/fontUtils.js +21 -0
  52. package/lib/esm/components/webchatcontainerstateful/interfaces/ICitation.js +1 -0
  53. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAvatarTextStyles.js +1 -1
  54. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultSystemMessageStyles.js +1 -1
  55. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/citationsMiddleware.js +98 -30
  56. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/queueOverflowHandlerMiddleware.js +2 -2
  57. package/lib/esm/contexts/common/LiveChatWidgetActionType.js +46 -45
  58. package/lib/esm/contexts/common/LiveChatWidgetContextInitialState.js +2 -0
  59. package/lib/esm/contexts/createReducer.js +15 -0
  60. package/lib/esm/index.js +1 -0
  61. package/lib/types/common/Constants.d.ts +2 -0
  62. package/lib/types/common/telemetry/TelemetryConstants.d.ts +3 -0
  63. package/lib/types/components/citationpanestateful/CitationDim.d.ts +5 -0
  64. package/lib/types/components/citationpanestateful/CitationPaneStateful.d.ts +4 -0
  65. package/lib/types/components/citationpanestateful/common/defaultProps/defaultCitationPaneProps.d.ts +11 -0
  66. package/lib/types/components/citationpanestateful/interfaces/ICitationPaneStatefulProps.d.ts +19 -0
  67. package/lib/types/components/confirmationpanestateful/common/defaultProps/defaultConfirmationPaneLocalizedTexts.d.ts +1 -1
  68. package/lib/types/components/confirmationpanestateful/interfaces/IConfirmationPaneStatefulProps.d.ts +1 -1
  69. package/lib/types/components/livechatwidget/common/getMockChatSDKIfApplicable.d.ts +2 -1
  70. package/lib/types/components/livechatwidget/interfaces/ILiveChatWidgetProps.d.ts +3 -1
  71. package/lib/types/components/livechatwidget/interfaces/IMockProps.d.ts +5 -3
  72. package/lib/types/components/webchatcontainerstateful/common/DesignerChatAdapter.d.ts +4 -2
  73. package/lib/types/components/webchatcontainerstateful/common/DesignerChatSDK.d.ts +5 -0
  74. package/lib/types/components/webchatcontainerstateful/common/utils/chatAdapterUtils.d.ts +6 -1
  75. package/lib/types/components/webchatcontainerstateful/common/utils/fontUtils.d.ts +10 -0
  76. package/lib/types/components/webchatcontainerstateful/interfaces/ICitation.d.ts +12 -0
  77. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/citationsMiddleware.d.ts +3 -4
  78. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/queueOverflowHandlerMiddleware.d.ts +2 -2
  79. package/lib/types/contexts/common/ILiveChatWidgetContext.d.ts +1 -0
  80. package/lib/types/contexts/common/LiveChatWidgetActionType.d.ts +46 -45
  81. package/lib/types/index.d.ts +1 -0
  82. package/package.json +2 -2
  83. /package/lib/cjs/components/{confirmationpanestateful/interfaces/IConfirmationPaneLocalizedText.js → citationpanestateful/interfaces/ICitationPaneStatefulProps.js} +0 -0
  84. /package/lib/esm/components/{confirmationpanestateful/interfaces/IConfirmationPaneLocalizedText.js → citationpanestateful/interfaces/ICitationPaneStatefulProps.js} +0 -0
  85. /package/lib/types/components/confirmationpanestateful/interfaces/{IConfirmationPaneLocalizedText.d.ts → IConfirmationPaneLocalizedTexts.d.ts} +0 -0
@@ -2,49 +2,50 @@ export declare enum LiveChatWidgetActionType {
2
2
  SET_WIDGET_ELEMENT_ID = 0,
3
3
  SET_RENDERING_MIDDLEWARE_PROPS = 1,
4
4
  SET_MIDDLEWARE_LOCALIZED_TEXTS = 2,
5
- SET_GLOBAL_DIR = 3,
6
- SET_MINIMIZED = 4,
7
- SET_CONVERSATION_STATE = 5,
8
- SET_PREVIOUS_FOCUSED_ELEMENT_ID = 6,
9
- SET_START_CHAT_FAILING = 7,
10
- SET_START_CHAT_FAILURE_TYPE = 8,
11
- SET_OUTSIDE_OPERATING_HOURS = 9,
12
- SET_PRE_CHAT_SURVEY_RESPONSE = 10,
13
- SET_CUSTOM_CONTEXT = 11,
14
- SET_SHOW_CONFIRMATION = 12,
15
- SET_SHOW_EMAIL_TRANSCRIPT_PANE = 13,
16
- SET_PRECHAT_RESPONSE_EMAIL = 14,
17
- SET_AUDIO_NOTIFICATION = 15,
18
- SET_E2VV_ENABLED = 16,
19
- SET_POST_CHAT_CONTEXT = 17,
20
- SHOW_CALLING_CONTAINER = 18,
21
- SET_INCOMING_CALL = 19,
22
- DISABLE_VIDEO_CALL = 20,
23
- DISABLE_LOCAL_VIDEO = 21,
24
- DISABLE_REMOTE_VIDEO = 22,
25
- SET_CHAT_TOKEN = 23,
26
- SET_START_CHAT_BUTTON_DISPLAY = 24,
27
- SET_PROACTIVE_CHAT_PARAMS = 25,
28
- SET_TELEMETRY_DATA = 26,
29
- SET_RECONNECT_ID = 27,
30
- SET_UNREAD_MESSAGE_COUNT = 28,
31
- SET_FOCUS_CHAT_BUTTON = 29,
32
- SET_CONVERSATION_ENDED_BY_AGENT_EVENT_RECEIVED = 30,
33
- SET_CONVERSATION_ENDED_BY = 31,
34
- SET_WIDGET_STATE = 32,
35
- SET_LIVE_CHAT_CONTEXT = 33,
36
- SET_BOT_OAUTH_SIGNIN_ID = 34,
37
- SET_WIDGET_SIZE = 35,
38
- SET_WIDGET_INSTANCE_ID = 36,
39
- SET_LIVE_CHAT_CONFIG = 37,
40
- SET_POST_CHAT_WORKFLOW_IN_PROGRESS = 38,
41
- SET_INITIAL_CHAT_SDK_REQUEST_ID = 39,
42
- SET_SHOULD_USE_BOT_SURVEY = 40,
43
- SET_CHAT_DISCONNECT_EVENT_RECEIVED = 41,
44
- SET_SURVEY_MODE = 42,
45
- SET_CONFIRMATION_STATE = 43,
46
- SET_POST_CHAT_PARTICIPANT_TYPE = 44,
47
- SET_CONVERSATIONAL_SURVEY_ENABLED = 45,
48
- SET_CONVERSATIONAL_SURVEY_DISPLAY = 46,
49
- GET_IN_MEMORY_STATE = 47
5
+ SET_CITATIONS = 3,
6
+ SET_GLOBAL_DIR = 4,
7
+ SET_MINIMIZED = 5,
8
+ SET_CONVERSATION_STATE = 6,
9
+ SET_PREVIOUS_FOCUSED_ELEMENT_ID = 7,
10
+ SET_START_CHAT_FAILING = 8,
11
+ SET_START_CHAT_FAILURE_TYPE = 9,
12
+ SET_OUTSIDE_OPERATING_HOURS = 10,
13
+ SET_PRE_CHAT_SURVEY_RESPONSE = 11,
14
+ SET_CUSTOM_CONTEXT = 12,
15
+ SET_SHOW_CONFIRMATION = 13,
16
+ SET_SHOW_EMAIL_TRANSCRIPT_PANE = 14,
17
+ SET_PRECHAT_RESPONSE_EMAIL = 15,
18
+ SET_AUDIO_NOTIFICATION = 16,
19
+ SET_E2VV_ENABLED = 17,
20
+ SET_POST_CHAT_CONTEXT = 18,
21
+ SHOW_CALLING_CONTAINER = 19,
22
+ SET_INCOMING_CALL = 20,
23
+ DISABLE_VIDEO_CALL = 21,
24
+ DISABLE_LOCAL_VIDEO = 22,
25
+ DISABLE_REMOTE_VIDEO = 23,
26
+ SET_CHAT_TOKEN = 24,
27
+ SET_START_CHAT_BUTTON_DISPLAY = 25,
28
+ SET_PROACTIVE_CHAT_PARAMS = 26,
29
+ SET_TELEMETRY_DATA = 27,
30
+ SET_RECONNECT_ID = 28,
31
+ SET_UNREAD_MESSAGE_COUNT = 29,
32
+ SET_FOCUS_CHAT_BUTTON = 30,
33
+ SET_CONVERSATION_ENDED_BY_AGENT_EVENT_RECEIVED = 31,
34
+ SET_CONVERSATION_ENDED_BY = 32,
35
+ SET_WIDGET_STATE = 33,
36
+ SET_LIVE_CHAT_CONTEXT = 34,
37
+ SET_BOT_OAUTH_SIGNIN_ID = 35,
38
+ SET_WIDGET_SIZE = 36,
39
+ SET_WIDGET_INSTANCE_ID = 37,
40
+ SET_LIVE_CHAT_CONFIG = 38,
41
+ SET_POST_CHAT_WORKFLOW_IN_PROGRESS = 39,
42
+ SET_INITIAL_CHAT_SDK_REQUEST_ID = 40,
43
+ SET_SHOULD_USE_BOT_SURVEY = 41,
44
+ SET_CHAT_DISCONNECT_EVENT_RECEIVED = 42,
45
+ SET_SURVEY_MODE = 43,
46
+ SET_CONFIRMATION_STATE = 44,
47
+ SET_POST_CHAT_PARTICIPANT_TYPE = 45,
48
+ SET_CONVERSATIONAL_SURVEY_ENABLED = 46,
49
+ SET_CONVERSATIONAL_SURVEY_DISPLAY = 47,
50
+ GET_IN_MEMORY_STATE = 48
50
51
  }
@@ -7,5 +7,6 @@ import useFacadeChatSDKStore from "./hooks/useFacadeChatSDKStore";
7
7
  export { default as LiveChatWidget } from "./components/livechatwidget/LiveChatWidget";
8
8
  export { getMockChatSDKIfApplicable } from "./components/livechatwidget/common/getMockChatSDKIfApplicable";
9
9
  export { getWidgetCacheId, getWidgetEndChatEventName, ConversationState };
10
+ export { LiveChatWidgetMockType } from "./components/livechatwidget/interfaces/IMockProps";
10
11
  export { encodeComponentString, decodeComponentString, BroadcastService, useChatSDKStore, useChatContextStore, useFacadeChatSDKStore };
11
12
  export * from "./components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/omnichannel-chat-widget",
3
- "version": "1.8.3-main.ec1328d",
3
+ "version": "1.8.3",
4
4
  "description": "Microsoft Omnichannel Chat Widget",
5
5
  "main": "lib/cjs/index.js",
6
6
  "types": "lib/types/index.d.ts",
@@ -86,7 +86,7 @@
86
86
  "dependencies": {
87
87
  "@azure/core-tracing": "^1.2.0",
88
88
  "@microsoft/applicationinsights-web": "^3.3.6",
89
- "@microsoft/omnichannel-chat-components": "1.1.13",
89
+ "@microsoft/omnichannel-chat-components": "1.1.15",
90
90
  "@microsoft/omnichannel-chat-sdk": "^1.11.6",
91
91
  "@opentelemetry/api": "^1.9.0",
92
92
  "abort-controller": "^3",