@microsoft/omnichannel-chat-widget 0.1.0-main.438e1d0 → 0.1.0-main.4629f07

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/README.md +7 -34
  2. package/lib/cjs/common/telemetry/TelemetryConstants.js +10 -0
  3. package/lib/cjs/common/utils.js +23 -2
  4. package/lib/cjs/components/headerstateful/HeaderStateful.js +1 -1
  5. package/lib/cjs/components/livechatwidget/common/ActivitySubscriber/BotAuthActivitySubscriber.js +139 -0
  6. package/lib/cjs/components/livechatwidget/common/createAdapter.js +2 -0
  7. package/lib/cjs/components/livechatwidget/common/endChat.js +17 -12
  8. package/lib/cjs/components/livechatwidget/common/initWebChatComposer.js +26 -13
  9. package/lib/cjs/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.js +36 -17
  10. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/typingIndicatorMiddleware.js +7 -4
  11. package/lib/esm/common/telemetry/TelemetryConstants.js +10 -0
  12. package/lib/esm/common/utils.js +20 -0
  13. package/lib/esm/components/headerstateful/HeaderStateful.js +1 -1
  14. package/lib/esm/components/livechatwidget/common/ActivitySubscriber/BotAuthActivitySubscriber.js +134 -0
  15. package/lib/esm/components/livechatwidget/common/createAdapter.js +2 -0
  16. package/lib/esm/components/livechatwidget/common/endChat.js +17 -12
  17. package/lib/esm/components/livechatwidget/common/initWebChatComposer.js +26 -13
  18. package/lib/esm/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.js +36 -17
  19. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/typingIndicatorMiddleware.js +5 -5
  20. package/lib/types/common/telemetry/TelemetryConstants.d.ts +11 -1
  21. package/lib/types/common/utils.d.ts +1 -0
  22. package/lib/types/components/livechatwidget/common/ActivitySubscriber/BotAuthActivitySubscriber.d.ts +9 -0
  23. package/package.json +2 -2
@@ -28,3 +28,4 @@ export declare const getStateFromCache: (orgId: string, widgetId: string, widget
28
28
  export declare const isUndefinedOrEmpty: (object: any) => boolean;
29
29
  export declare const addDelayInMs: (ms: number) => Promise<void>;
30
30
  export declare const getBroadcastChannelName: (widgetId: string, widgetInstanceId: string) => string;
31
+ export declare const debounceLeading: (fn: any, ms?: number) => (...args: any[]) => void;
@@ -0,0 +1,9 @@
1
+ import { IActivitySubscriber } from "./IActivitySubscriber";
2
+ export declare class BotAuthActivitySubscriber implements IActivitySubscriber {
3
+ observer: any;
4
+ private signInCardSeen;
5
+ constructor();
6
+ applicable(activity: any): boolean;
7
+ apply(activity: any): Promise<any>;
8
+ next(activity: any): Promise<any>;
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/omnichannel-chat-widget",
3
- "version": "0.1.0-main.438e1d0",
3
+ "version": "0.1.0-main.4629f07",
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
  "dependencies": {
76
76
  "@fluentui/react": "^8.49.1",
77
77
  "@microsoft/omnichannel-chat-components": "0.1.0-main.f4c21f0",
78
- "@microsoft/omnichannel-chat-sdk": "1.2.1-main.cb2cd37",
78
+ "@microsoft/omnichannel-chat-sdk": "1.2.1-main.171bfbe",
79
79
  "abort-controller-es5": "^2.0.1",
80
80
  "dompurify": "^2.3.4",
81
81
  "markdown-it": "^12.3.2",