@microsoft/omnichannel-chat-widget 0.1.0-main.2d7913d → 0.1.0-main.3ac9d65

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 (58) hide show
  1. package/lib/cjs/common/Constants.js +2 -0
  2. package/lib/cjs/common/telemetry/TelemetryConstants.js +2 -0
  3. package/lib/cjs/common/utils.js +20 -7
  4. package/lib/cjs/components/headerstateful/HeaderStateful.js +2 -1
  5. package/lib/cjs/components/livechatwidget/common/ActivityStreamHandler.js +44 -0
  6. package/lib/cjs/components/livechatwidget/common/ActivitySubscriber/PauseActivitySubscriber.js +39 -0
  7. package/lib/cjs/components/livechatwidget/common/Deferred.js +42 -0
  8. package/lib/cjs/components/livechatwidget/common/createAdapter.js +4 -0
  9. package/lib/cjs/components/livechatwidget/common/defaultProps/dummyDefaultProps.js +2 -5
  10. package/lib/cjs/components/livechatwidget/common/endChat.js +3 -3
  11. package/lib/cjs/components/livechatwidget/common/reconnectChatHelper.js +23 -15
  12. package/lib/cjs/components/livechatwidget/common/startChat.js +71 -24
  13. package/lib/cjs/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.js +86 -41
  14. package/lib/cjs/components/prechatsurveypanestateful/PreChatSurveyPaneStateful.js +1 -1
  15. package/lib/cjs/contexts/common/LiveChatWidgetActionType.js +1 -0
  16. package/lib/cjs/contexts/common/LiveChatWidgetContextInitialState.js +2 -1
  17. package/lib/cjs/contexts/createReducer.js +8 -0
  18. package/lib/esm/common/Constants.js +2 -0
  19. package/lib/esm/common/telemetry/TelemetryConstants.js +2 -0
  20. package/lib/esm/common/utils.js +14 -5
  21. package/lib/esm/components/headerstateful/HeaderStateful.js +2 -1
  22. package/lib/esm/components/livechatwidget/common/ActivityStreamHandler.js +34 -0
  23. package/lib/esm/components/livechatwidget/common/ActivitySubscriber/PauseActivitySubscriber.js +29 -0
  24. package/lib/esm/components/livechatwidget/common/Deferred.js +33 -0
  25. package/lib/esm/components/livechatwidget/common/createAdapter.js +4 -1
  26. package/lib/esm/components/livechatwidget/common/defaultProps/dummyDefaultProps.js +2 -5
  27. package/lib/esm/components/livechatwidget/common/endChat.js +3 -3
  28. package/lib/esm/components/livechatwidget/common/reconnectChatHelper.js +24 -17
  29. package/lib/esm/components/livechatwidget/common/startChat.js +68 -26
  30. package/lib/esm/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.js +85 -43
  31. package/lib/esm/components/prechatsurveypanestateful/PreChatSurveyPaneStateful.js +1 -1
  32. package/lib/esm/contexts/common/LiveChatWidgetActionType.js +1 -0
  33. package/lib/esm/contexts/common/LiveChatWidgetContextInitialState.js +2 -1
  34. package/lib/esm/contexts/createReducer.js +8 -0
  35. package/lib/types/common/Constants.d.ts +1 -0
  36. package/lib/types/common/telemetry/TelemetryConstants.d.ts +2 -0
  37. package/lib/types/common/telemetry/TelemetryHelper.d.ts +1 -1
  38. package/lib/types/common/utils.d.ts +5 -4
  39. package/lib/types/components/footerstateful/downloadtranscriptstateful/DownloadTranscriptStateful.d.ts +1 -1
  40. package/lib/types/components/headerstateful/interfaces/IHeaderStatefulParams.d.ts +2 -1
  41. package/lib/types/components/livechatwidget/common/ActivityStreamHandler.d.ts +14 -0
  42. package/lib/types/components/livechatwidget/common/ActivitySubscriber/PauseActivitySubscriber.d.ts +7 -0
  43. package/lib/types/components/livechatwidget/common/Deferred.d.ts +9 -0
  44. package/lib/types/components/livechatwidget/common/endChat.d.ts +1 -1
  45. package/lib/types/components/livechatwidget/common/reconnectChatHelper.d.ts +5 -5
  46. package/lib/types/components/livechatwidget/common/setPostChatContextAndLoadSurvey.d.ts +1 -1
  47. package/lib/types/components/livechatwidget/common/startChat.d.ts +3 -3
  48. package/lib/types/components/livechatwidget/common/startProactiveChat.d.ts +1 -1
  49. package/lib/types/components/livechatwidget/interfaces/ILiveChatWidgetControlProps.d.ts +1 -0
  50. package/lib/types/components/livechatwidget/interfaces/ILiveChatWidgetProps.d.ts +1 -2
  51. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/activityMiddleware.d.ts +1 -1
  52. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/avatarMiddleware.d.ts +1 -1
  53. package/lib/types/contexts/common/ILiveChatWidgetContext.d.ts +1 -0
  54. package/lib/types/contexts/common/LiveChatWidgetActionType.d.ts +2 -1
  55. package/package.json +4 -3
  56. package/lib/cjs/components/livechatwidget/interfaces/IAuthProps.js +0 -1
  57. package/lib/esm/components/livechatwidget/interfaces/IAuthProps.js +0 -1
  58. package/lib/types/components/livechatwidget/interfaces/IAuthProps.d.ts +0 -4
@@ -31,5 +31,6 @@ export declare enum LiveChatWidgetActionType {
31
31
  SET_WIDGET_STATE = 29,
32
32
  SET_LIVE_CHAT_CONTEXT = 30,
33
33
  SET_BOT_OAUTH_SIGNIN_ID = 31,
34
- SET_WIDGET_SIZE = 32
34
+ SET_WIDGET_SIZE = 32,
35
+ SET_WIDGET_INSTANCE_ID = 33
35
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/omnichannel-chat-widget",
3
- "version": "0.1.0-main.2d7913d",
3
+ "version": "0.1.0-main.3ac9d65",
4
4
  "description": "Microsoft Omnichannel Chat Widget",
5
5
  "main": "lib/cjs/index.js",
6
6
  "types": "lib/types/index.d.ts",
@@ -68,18 +68,19 @@
68
68
  "storybook-addon-playwright": "^4.9.2",
69
69
  "terser-webpack-plugin": "^4.2.3",
70
70
  "ts-loader": "^9.2.6",
71
- "typescript": "^4.4.4",
71
+ "typescript": "4.6.4",
72
72
  "webpack": "^4.44.2",
73
73
  "webpack-cli": "^4.9.2"
74
74
  },
75
75
  "dependencies": {
76
76
  "@fluentui/react": "^8.49.1",
77
- "@microsoft/omnichannel-chat-components": "0.1.0-main.b59a07c",
77
+ "@microsoft/omnichannel-chat-components": "0.1.0-main.2d7913d",
78
78
  "@microsoft/omnichannel-chat-sdk": "1.0.1-main.077d17c",
79
79
  "abort-controller-es5": "^2.0.1",
80
80
  "dompurify": "^2.3.4",
81
81
  "markdown-it": "^12.3.2",
82
82
  "markdown-it-for-inline": "^0.1.1",
83
+ "md5-typescript": "^1.0.5",
83
84
  "p-defer-es5": "^2.0.1",
84
85
  "slack-markdown-it": "^1.0.5"
85
86
  },
@@ -1 +0,0 @@
1
- "use strict";
@@ -1,4 +0,0 @@
1
- export interface IAuthProps {
2
- authClientFunction?: string;
3
- setAuthTokenProviderToChatSdk?: (chatSDK: any, authClientFunction?: string) => Promise<void>;
4
- }