@microsoft/omnichannel-chat-widget 1.7.3-main.fee24eb → 1.7.4-main.f0f5d34

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 (50) hide show
  1. package/lib/cjs/common/Constants.js +1 -0
  2. package/lib/cjs/common/telemetry/TelemetryConstants.js +2 -0
  3. package/lib/cjs/components/footerstateful/FooterStateful.js +14 -3
  4. package/lib/cjs/components/livechatwidget/common/ActivitySubscriber/BotAuthActivitySubscriber.js +15 -6
  5. package/lib/cjs/components/livechatwidget/common/ActivitySubscriber/HiddenAdaptiveCardActivitySubscriber.js +77 -0
  6. package/lib/cjs/components/livechatwidget/common/chatDisconnectHelper.js +2 -2
  7. package/lib/cjs/components/livechatwidget/common/createAdapter.js +15 -2
  8. package/lib/cjs/components/livechatwidget/common/createInternetConnectionChangeHandler.js +6 -2
  9. package/lib/cjs/components/livechatwidget/common/createMarkdown.js +2 -2
  10. package/lib/cjs/components/livechatwidget/common/helpers/markdownHelper.js +23 -0
  11. package/lib/cjs/components/livechatwidget/common/persistentChatHelper.js +2 -1
  12. package/lib/cjs/components/livechatwidget/common/startChat.js +3 -3
  13. package/lib/cjs/components/livechatwidget/interfaces/IBotAuthActivitySubscriberOptionalParams.js +1 -0
  14. package/lib/cjs/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.js +30 -0
  15. package/lib/cjs/components/webchatcontainerstateful/common/DesignerChatAdapter.js +4 -4
  16. package/lib/cjs/components/webchatcontainerstateful/common/DesignerChatSDK.js +31 -0
  17. package/lib/cjs/components/webchatcontainerstateful/interfaces/IBotAuthConfig.js +1 -0
  18. package/lib/cjs/index.js +7 -0
  19. package/lib/cjs/plugins/createChatTranscript.js +84 -0
  20. package/lib/esm/common/Constants.js +1 -0
  21. package/lib/esm/common/telemetry/TelemetryConstants.js +2 -0
  22. package/lib/esm/components/footerstateful/FooterStateful.js +12 -3
  23. package/lib/esm/components/livechatwidget/common/ActivitySubscriber/BotAuthActivitySubscriber.js +15 -6
  24. package/lib/esm/components/livechatwidget/common/ActivitySubscriber/HiddenAdaptiveCardActivitySubscriber.js +70 -0
  25. package/lib/esm/components/livechatwidget/common/chatDisconnectHelper.js +3 -2
  26. package/lib/esm/components/livechatwidget/common/createAdapter.js +14 -2
  27. package/lib/esm/components/livechatwidget/common/createInternetConnectionChangeHandler.js +6 -2
  28. package/lib/esm/components/livechatwidget/common/createMarkdown.js +2 -2
  29. package/lib/esm/components/livechatwidget/common/helpers/markdownHelper.js +15 -0
  30. package/lib/esm/components/livechatwidget/common/persistentChatHelper.js +2 -1
  31. package/lib/esm/components/livechatwidget/common/startChat.js +3 -3
  32. package/lib/esm/components/livechatwidget/interfaces/IBotAuthActivitySubscriberOptionalParams.js +1 -0
  33. package/lib/esm/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.js +31 -1
  34. package/lib/esm/components/webchatcontainerstateful/common/DesignerChatAdapter.js +4 -4
  35. package/lib/esm/components/webchatcontainerstateful/common/DesignerChatSDK.js +31 -0
  36. package/lib/esm/components/webchatcontainerstateful/interfaces/IBotAuthConfig.js +1 -0
  37. package/lib/esm/index.js +1 -0
  38. package/lib/esm/plugins/createChatTranscript.js +84 -0
  39. package/lib/types/common/Constants.d.ts +1 -0
  40. package/lib/types/common/telemetry/TelemetryConstants.d.ts +3 -1
  41. package/lib/types/components/livechatwidget/common/ActivitySubscriber/BotAuthActivitySubscriber.d.ts +4 -1
  42. package/lib/types/components/livechatwidget/common/ActivitySubscriber/HiddenAdaptiveCardActivitySubscriber.d.ts +7 -0
  43. package/lib/types/components/livechatwidget/common/createAdapter.d.ts +2 -1
  44. package/lib/types/components/livechatwidget/common/helpers/markdownHelper.d.ts +2 -0
  45. package/lib/types/components/livechatwidget/interfaces/IBotAuthActivitySubscriberOptionalParams.d.ts +4 -0
  46. package/lib/types/components/webchatcontainerstateful/common/DesignerChatSDK.d.ts +25 -0
  47. package/lib/types/components/webchatcontainerstateful/interfaces/IBotAuthConfig.d.ts +4 -0
  48. package/lib/types/components/webchatcontainerstateful/interfaces/IWebChatContainerStatefulProps.d.ts +2 -0
  49. package/lib/types/index.d.ts +1 -0
  50. package/package.json +2 -2
@@ -5,6 +5,7 @@ import { IStyle } from "@fluentui/react";
5
5
  import { IWebChatProps } from "./IWebChatProps";
6
6
  import { StyleOptions } from "botframework-webchat-api";
7
7
  import { IAdaptiveCardStyles } from "./IAdaptiveCardStyles";
8
+ import { IBotAuthConfig } from "./IBotAuthConfig";
8
9
  export interface IWebChatContainerStatefulProps {
9
10
  containerStyles?: IStyle;
10
11
  disableNewLineMarkdownSupport?: boolean;
@@ -16,6 +17,7 @@ export interface IWebChatContainerStatefulProps {
16
17
  renderingMiddlewareProps?: IRenderingMiddlewareProps;
17
18
  localizedTexts?: ILiveChatWidgetLocalizedTexts;
18
19
  botMagicCode?: IBotMagicCodeConfig;
20
+ botAuthConfig?: IBotAuthConfig;
19
21
  hyperlinkTextOverride?: boolean;
20
22
  adaptiveCardStyles?: IAdaptiveCardStyles;
21
23
  }
@@ -4,5 +4,6 @@ import useChatSDKStore from "./hooks/useChatSDKStore";
4
4
  import { getWidgetCacheId, getWidgetEndChatEventName } from "./common/utils";
5
5
  import { ConversationState } from "./contexts/common/ConversationState";
6
6
  export { default as LiveChatWidget } from "./components/livechatwidget/LiveChatWidget";
7
+ export { getMockChatSDKIfApplicable } from "./components/livechatwidget/common/getMockChatSDKIfApplicable";
7
8
  export { encodeComponentString, decodeComponentString, BroadcastService, useChatSDKStore, useChatContextStore };
8
9
  export { getWidgetCacheId, getWidgetEndChatEventName, ConversationState };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/omnichannel-chat-widget",
3
- "version": "1.7.3-main.fee24eb",
3
+ "version": "1.7.4-main.f0f5d34",
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.5",
78
- "@microsoft/omnichannel-chat-sdk": "^1.9.6",
78
+ "@microsoft/omnichannel-chat-sdk": "^1.10.1",
79
79
  "abort-controller-es5": "^2.0.1",
80
80
  "dompurify": "^2.5.4",
81
81
  "markdown-it": "^12.3.2",