@microsoft/omnichannel-chat-widget 0.1.0-main.c9a643a → 0.1.0-main.cda7a31

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 (51) hide show
  1. package/lib/cjs/common/storage/default/defaultCacheManager.js +34 -0
  2. package/lib/cjs/common/storage/default/defaultClientDataStoreProvider.js +114 -0
  3. package/lib/cjs/common/storage/default/defaultInMemoryDataStore.js +86 -0
  4. package/lib/cjs/common/telemetry/TelemetryConstants.js +9 -0
  5. package/lib/cjs/common/telemetry/loggers/ariaTelemetryLogger.js +31 -18
  6. package/lib/cjs/components/confirmationpanestateful/ConfirmationPaneStateful.js +4 -4
  7. package/lib/cjs/components/emailtranscriptpanestateful/EmailTranscriptPaneStateful.js +4 -4
  8. package/lib/cjs/components/footerstateful/FooterStateful.js +5 -13
  9. package/lib/cjs/components/headerstateful/HeaderStateful.js +10 -4
  10. package/lib/cjs/components/livechatwidget/common/createFooter.js +7 -16
  11. package/lib/cjs/components/livechatwidget/common/defaultProps/dummyDefaultProps.js +17 -3
  12. package/lib/cjs/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.js +53 -29
  13. package/lib/cjs/components/postchatsurveypanestateful/PostChatSurveyPaneStateful.js +6 -4
  14. package/lib/cjs/components/postchatsurveypanestateful/interfaces/IPostChatSurveyPaneStatefulProps.js +1 -0
  15. package/lib/cjs/components/webchatcontainerstateful/WebChatContainerStateful.js +10 -5
  16. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultReceivedMessageAnchorStyles.js +10 -0
  17. package/lib/cjs/contexts/common/LiveChatWidgetActionType.js +1 -1
  18. package/lib/cjs/contexts/common/LiveChatWidgetContextInitialState.js +11 -4
  19. package/lib/cjs/contexts/createReducer.js +2 -2
  20. package/lib/esm/common/storage/default/defaultCacheManager.js +19 -0
  21. package/lib/esm/common/storage/default/defaultClientDataStoreProvider.js +102 -0
  22. package/lib/esm/common/storage/default/defaultInMemoryDataStore.js +71 -0
  23. package/lib/esm/common/telemetry/TelemetryConstants.js +9 -0
  24. package/lib/esm/common/telemetry/loggers/ariaTelemetryLogger.js +29 -13
  25. package/lib/esm/components/confirmationpanestateful/ConfirmationPaneStateful.js +4 -4
  26. package/lib/esm/components/emailtranscriptpanestateful/EmailTranscriptPaneStateful.js +4 -4
  27. package/lib/esm/components/footerstateful/FooterStateful.js +5 -13
  28. package/lib/esm/components/headerstateful/HeaderStateful.js +10 -4
  29. package/lib/esm/components/livechatwidget/common/createFooter.js +4 -15
  30. package/lib/esm/components/livechatwidget/common/defaultProps/dummyDefaultProps.js +17 -3
  31. package/lib/esm/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.js +53 -29
  32. package/lib/esm/components/postchatsurveypanestateful/PostChatSurveyPaneStateful.js +5 -4
  33. package/lib/esm/components/postchatsurveypanestateful/interfaces/IPostChatSurveyPaneStatefulProps.js +1 -0
  34. package/lib/esm/components/webchatcontainerstateful/WebChatContainerStateful.js +6 -3
  35. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultReceivedMessageAnchorStyles.js +3 -0
  36. package/lib/esm/contexts/common/LiveChatWidgetActionType.js +1 -1
  37. package/lib/esm/contexts/common/LiveChatWidgetContextInitialState.js +9 -4
  38. package/lib/esm/contexts/createReducer.js +2 -2
  39. package/lib/types/common/storage/default/defaultCacheManager.d.ts +4 -0
  40. package/lib/types/common/storage/default/defaultClientDataStoreProvider.d.ts +2 -0
  41. package/lib/types/common/storage/default/defaultInMemoryDataStore.d.ts +6 -0
  42. package/lib/types/common/telemetry/TelemetryConstants.d.ts +2 -0
  43. package/lib/types/components/livechatwidget/interfaces/ILiveChatWidgetProps.d.ts +2 -2
  44. package/lib/types/components/postchatsurveypanestateful/PostChatSurveyPaneStateful.d.ts +2 -2
  45. package/lib/types/components/postchatsurveypanestateful/interfaces/IPostChatSurveyPaneStatefulProps.d.ts +4 -0
  46. package/lib/types/components/webchatcontainerstateful/interfaces/IRenderingMiddlewareProps.d.ts +2 -1
  47. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultReceivedMessageAnchorStyles.d.ts +2 -0
  48. package/lib/types/contexts/common/ILiveChatWidgetContext.d.ts +1 -1
  49. package/lib/types/contexts/common/LiveChatWidgetActionType.d.ts +1 -1
  50. package/lib/types/contexts/common/LiveChatWidgetContextInitialState.d.ts +1 -2
  51. package/package.json +3 -3
@@ -1,3 +1,3 @@
1
- import { IPostChatSurveyPaneProps } from "@microsoft/omnichannel-chat-components/lib/types/components/postchatsurveypane/interfaces/IPostChatSurveyPaneProps";
2
- export declare const PostChatSurveyPaneStateful: (props: IPostChatSurveyPaneProps) => JSX.Element;
1
+ import { IPostChatSurveyPaneStatefulProps } from "./interfaces/IPostChatSurveyPaneStatefulProps";
2
+ export declare const PostChatSurveyPaneStateful: (props: IPostChatSurveyPaneStatefulProps) => JSX.Element;
3
3
  export default PostChatSurveyPaneStateful;
@@ -0,0 +1,4 @@
1
+ import { IPostChatSurveyPaneProps } from "@microsoft/omnichannel-chat-components/lib/types/components/postchatsurveypane/interfaces/IPostChatSurveyPaneProps";
2
+ export interface IPostChatSurveyPaneStatefulProps extends IPostChatSurveyPaneProps {
3
+ isCustomerVoiceSurveyCompact?: boolean;
4
+ }
@@ -1,5 +1,5 @@
1
- import { IAttachmentProps } from "./IAttachmentProps";
2
1
  import React from "react";
2
+ import { IAttachmentProps } from "./IAttachmentProps";
3
3
  export interface IRenderingMiddlewareProps {
4
4
  timestampDir?: "ltr" | "rtl" | "auto";
5
5
  disableActivityMiddleware?: boolean;
@@ -28,4 +28,5 @@ export interface IRenderingMiddlewareProps {
28
28
  attachmentDownloadIconStyles?: React.CSSProperties;
29
29
  attachmentContentStyles?: React.CSSProperties;
30
30
  attachmentSizeStyles?: React.CSSProperties;
31
+ receivedMessageAnchorStyles?: React.CSSProperties;
31
32
  }
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const defaultReceivedMessageAnchorStyles: React.CSSProperties;
@@ -22,7 +22,7 @@ export interface ILiveChatWidgetContext {
22
22
  appStates: {
23
23
  conversationState: ConversationState;
24
24
  isMinimized: boolean;
25
- previousElementOnFocusBeforeModalOpen: HTMLElement | null;
25
+ previousElementIdOnFocusBeforeModalOpen: string | null;
26
26
  outsideOperatingHours: boolean;
27
27
  preChatResponseEmail: string;
28
28
  isAudioMuted: boolean | null;
@@ -5,7 +5,7 @@ export declare enum LiveChatWidgetActionType {
5
5
  SET_GLOBAL_DIR = 3,
6
6
  SET_MINIMIZED = 4,
7
7
  SET_CONVERSATION_STATE = 5,
8
- SET_PREVIOUS_FOCUSED_ELEMENT = 6,
8
+ SET_PREVIOUS_FOCUSED_ELEMENT_ID = 6,
9
9
  SET_OUTSIDE_OPERATING_HOURS = 7,
10
10
  SET_PRE_CHAT_SURVEY_RESPONSE = 8,
11
11
  SET_CUSTOM_CONTEXT = 9,
@@ -1,3 +1,2 @@
1
- import { ILiveChatWidgetContext } from "./ILiveChatWidgetContext";
2
1
  import { ILiveChatWidgetProps } from "../../components/livechatwidget/interfaces/ILiveChatWidgetProps";
3
- export declare const getLiveChatWidgetContextInitialState: (props: ILiveChatWidgetProps) => ILiveChatWidgetContext;
2
+ export declare const getLiveChatWidgetContextInitialState: (props: ILiveChatWidgetProps) => any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/omnichannel-chat-widget",
3
- "version": "0.1.0-main.c9a643a",
3
+ "version": "0.1.0-main.cda7a31",
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
  },
75
75
  "dependencies": {
76
76
  "@fluentui/react": "^8.49.1",
77
- "@microsoft/omnichannel-chat-components": "0.1.0-main.5a87386",
78
- "@microsoft/omnichannel-chat-sdk": "1.0.1-main.077d17c",
77
+ "@microsoft/omnichannel-chat-components": "0.1.0-main.600e05c",
78
+ "@microsoft/omnichannel-chat-sdk": "1.1.1-main.4e1bf63",
79
79
  "abort-controller-es5": "^2.0.1",
80
80
  "dompurify": "^2.3.4",
81
81
  "markdown-it": "^12.3.2",