@microsoft/omnichannel-chat-widget 1.7.8-main.29ce174 → 1.7.8-main.50111af
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.
- package/lib/cjs/common/Constants.js +57 -18
- package/lib/cjs/common/KeyCodes.js +6 -1
- package/lib/cjs/common/contextDataStore/DataStoreManager.js +6 -1
- package/lib/cjs/common/facades/FacadeChatSDK.js +385 -292
- package/lib/cjs/common/storage/default/defaultCacheManager.js +6 -3
- package/lib/cjs/common/telemetry/TelemetryConstants.js +137 -116
- package/lib/cjs/common/telemetry/TelemetryHelper.js +219 -181
- package/lib/cjs/common/telemetry/TelemetryManager.js +9 -2
- package/lib/cjs/components/chatbuttonstateful/ChatButtonStateful.js +4 -5
- package/lib/cjs/components/headerstateful/HeaderStateful.js +3 -5
- package/lib/cjs/components/livechatwidget/common/ActivityStreamHandler.js +32 -19
- package/lib/cjs/components/livechatwidget/common/ActivitySubscriber/BotAuthActivitySubscriber.js +71 -56
- package/lib/cjs/components/livechatwidget/common/ActivitySubscriber/DefaultActivitySubscriber.js +17 -8
- package/lib/cjs/components/livechatwidget/common/ActivitySubscriber/HiddenAdaptiveCardActivitySubscriber.js +65 -52
- package/lib/cjs/components/livechatwidget/common/ActivitySubscriber/PauseActivitySubscriber.js +31 -18
- package/lib/cjs/components/livechatwidget/common/ChatAdapterShim.js +14 -6
- package/lib/cjs/components/livechatwidget/common/Deferred.js +14 -6
- package/lib/cjs/components/livechatwidget/common/chatDisconnectHelper.js +3 -1
- package/lib/cjs/components/livechatwidget/common/endChat.js +4 -18
- package/lib/cjs/components/livechatwidget/common/reconnectChatHelper.js +0 -5
- package/lib/cjs/components/livechatwidget/common/startChat.js +2 -23
- package/lib/cjs/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.js +3 -3
- package/lib/cjs/components/ooohpanestateful/OOOHPaneStateful.js +6 -4
- package/lib/cjs/components/postchatsurveypanestateful/PostChatSurveyPaneStateful.js +7 -6
- package/lib/cjs/components/webchatcontainerstateful/WebChatContainerStateful.js +4 -3
- package/lib/cjs/components/webchatcontainerstateful/common/DemoChatAdapter.js +88 -65
- package/lib/cjs/components/webchatcontainerstateful/common/DemoChatSDK.js +26 -7
- package/lib/cjs/components/webchatcontainerstateful/common/DesignerChatAdapter.js +49 -26
- package/lib/cjs/components/webchatcontainerstateful/common/DesignerChatSDK.js +57 -35
- package/lib/cjs/components/webchatcontainerstateful/common/mockadapter.js +62 -52
- package/lib/cjs/components/webchatcontainerstateful/common/mockchatsdk.js +95 -61
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/BotMagicCodeStore.js +6 -1
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/WebChatStoreLoader.js +6 -1
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/markdownrenderers/HyperlinkTextOverrideRenderer.js +53 -39
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/DeliveredTimestamp.js +4 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/notification/NotificationHandler.js +88 -60
- package/lib/cjs/contexts/common/LiveChatWidgetContextInitialState.js +18 -6
- package/lib/cjs/firstresponselatency/Constants.js +13 -0
- package/lib/cjs/firstresponselatency/FirstMessageTrackerFromBot.js +118 -0
- package/lib/cjs/firstresponselatency/FirstResponseLatencyTracker.js +201 -0
- package/lib/cjs/firstresponselatency/util.js +98 -0
- package/lib/cjs/plugins/createChatTranscript.js +88 -58
- package/lib/cjs/plugins/newMessageEventHandler.js +102 -88
- package/lib/esm/common/Constants.js +57 -18
- package/lib/esm/common/KeyCodes.js +6 -1
- package/lib/esm/common/contextDataStore/DataStoreManager.js +6 -1
- package/lib/esm/common/facades/FacadeChatSDK.js +385 -292
- package/lib/esm/common/storage/default/defaultCacheManager.js +6 -1
- package/lib/esm/common/telemetry/TelemetryConstants.js +137 -116
- package/lib/esm/common/telemetry/TelemetryHelper.js +219 -181
- package/lib/esm/common/telemetry/TelemetryManager.js +9 -2
- package/lib/esm/components/chatbuttonstateful/ChatButtonStateful.js +4 -5
- package/lib/esm/components/headerstateful/HeaderStateful.js +3 -5
- package/lib/esm/components/livechatwidget/common/ActivityStreamHandler.js +32 -19
- package/lib/esm/components/livechatwidget/common/ActivitySubscriber/BotAuthActivitySubscriber.js +71 -56
- package/lib/esm/components/livechatwidget/common/ActivitySubscriber/DefaultActivitySubscriber.js +17 -8
- package/lib/esm/components/livechatwidget/common/ActivitySubscriber/HiddenAdaptiveCardActivitySubscriber.js +65 -52
- package/lib/esm/components/livechatwidget/common/ActivitySubscriber/PauseActivitySubscriber.js +31 -18
- package/lib/esm/components/livechatwidget/common/ChatAdapterShim.js +14 -6
- package/lib/esm/components/livechatwidget/common/Deferred.js +14 -6
- package/lib/esm/components/livechatwidget/common/chatDisconnectHelper.js +3 -1
- package/lib/esm/components/livechatwidget/common/endChat.js +4 -18
- package/lib/esm/components/livechatwidget/common/reconnectChatHelper.js +1 -6
- package/lib/esm/components/livechatwidget/common/startChat.js +3 -24
- package/lib/esm/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.js +3 -3
- package/lib/esm/components/ooohpanestateful/OOOHPaneStateful.js +6 -4
- package/lib/esm/components/postchatsurveypanestateful/PostChatSurveyPaneStateful.js +7 -6
- package/lib/esm/components/webchatcontainerstateful/WebChatContainerStateful.js +4 -3
- package/lib/esm/components/webchatcontainerstateful/common/DemoChatAdapter.js +88 -65
- package/lib/esm/components/webchatcontainerstateful/common/DemoChatSDK.js +26 -7
- package/lib/esm/components/webchatcontainerstateful/common/DesignerChatAdapter.js +49 -26
- package/lib/esm/components/webchatcontainerstateful/common/DesignerChatSDK.js +57 -35
- package/lib/esm/components/webchatcontainerstateful/common/mockadapter.js +63 -52
- package/lib/esm/components/webchatcontainerstateful/common/mockchatsdk.js +95 -61
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/BotMagicCodeStore.js +6 -1
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/WebChatStoreLoader.js +6 -1
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/markdownrenderers/HyperlinkTextOverrideRenderer.js +53 -39
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/DeliveredTimestamp.js +4 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/notification/NotificationHandler.js +88 -60
- package/lib/esm/contexts/common/LiveChatWidgetContextInitialState.js +18 -6
- package/lib/esm/firstresponselatency/Constants.js +6 -0
- package/lib/esm/firstresponselatency/FirstMessageTrackerFromBot.js +112 -0
- package/lib/esm/firstresponselatency/FirstResponseLatencyTracker.js +194 -0
- package/lib/esm/firstresponselatency/util.js +87 -0
- package/lib/esm/plugins/createChatTranscript.js +88 -58
- package/lib/esm/plugins/newMessageEventHandler.js +100 -86
- package/lib/types/common/facades/FacadeChatSDK.d.ts +1 -0
- package/lib/types/common/telemetry/TelemetryConstants.d.ts +8 -1
- package/lib/types/components/webchatcontainerstateful/interfaces/IWebChatProps.d.ts +2 -2
- package/lib/types/contexts/common/ILiveChatWidgetContext.d.ts +1 -1
- package/lib/types/firstresponselatency/Constants.d.ts +30 -0
- package/lib/types/firstresponselatency/FirstMessageTrackerFromBot.d.ts +1 -0
- package/lib/types/firstresponselatency/FirstResponseLatencyTracker.d.ts +22 -0
- package/lib/types/firstresponselatency/util.d.ts +7 -0
- package/package.json +18 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/omnichannel-chat-widget",
|
|
3
|
-
"version": "1.7.8-main.
|
|
3
|
+
"version": "1.7.8-main.50111af",
|
|
4
4
|
"description": "Microsoft Omnichannel Chat Widget",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"types": "lib/types/index.d.ts",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"babel-jest": "^27.3.1",
|
|
48
48
|
"babel-loader": "^8.2.3",
|
|
49
49
|
"botframework-directlinejs": "^0.15.0",
|
|
50
|
+
"concurrently": "^9.1.2",
|
|
50
51
|
"copyfiles": "^2.4.1",
|
|
51
52
|
"eslint": "^7.32.0",
|
|
52
53
|
"eslint-config-standard": "^16.0.3",
|
|
@@ -56,10 +57,12 @@
|
|
|
56
57
|
"eslint-plugin-react": "^7.26.1",
|
|
57
58
|
"eslint-plugin-storybook": "^0.5.3",
|
|
58
59
|
"file-loader": "^6.2.0",
|
|
60
|
+
"husky": "^9.1.7",
|
|
59
61
|
"jest": "^27.3.1",
|
|
60
62
|
"jest-dom": "^4.0.0",
|
|
61
63
|
"jest-image-snapshot": "^4.5.1",
|
|
62
64
|
"json": "^11.0.0",
|
|
65
|
+
"lint-staged": "^15.5.2",
|
|
63
66
|
"p-defer": "^4.0.1",
|
|
64
67
|
"playwright": "^1.20.0",
|
|
65
68
|
"postcss": "^8.3.9",
|
|
@@ -67,9 +70,11 @@
|
|
|
67
70
|
"react-docgen-typescript-plugin": "^1.0.8",
|
|
68
71
|
"react-dom": "^17.0.2",
|
|
69
72
|
"react-test-renderer": "^17.0.2",
|
|
73
|
+
"rimraf": "^6.0.1",
|
|
70
74
|
"storybook-addon-playwright": "^4.9.2",
|
|
71
75
|
"swiper": "^9.0.5",
|
|
72
76
|
"terser-webpack-plugin": "^4.2.3",
|
|
77
|
+
"thread-loader": "^2.1.3",
|
|
73
78
|
"ts-loader": "^9.2.6",
|
|
74
79
|
"typescript": "4.9.5",
|
|
75
80
|
"webpack": "^4.44.2",
|
|
@@ -77,10 +82,12 @@
|
|
|
77
82
|
},
|
|
78
83
|
"dependencies": {
|
|
79
84
|
"@azure/core-tracing": "^1.2.0",
|
|
80
|
-
"@microsoft/omnichannel-chat-components": "1.1.
|
|
85
|
+
"@microsoft/omnichannel-chat-components": "1.1.9",
|
|
81
86
|
"@microsoft/omnichannel-chat-sdk": "^1.10.17",
|
|
82
87
|
"@opentelemetry/api": "^1.9.0",
|
|
88
|
+
"abort-controller": "^3",
|
|
83
89
|
"abort-controller-es5": "^2.0.1",
|
|
90
|
+
"core-js-pure": "^3.42.0",
|
|
84
91
|
"dompurify": "^3.2.4",
|
|
85
92
|
"markdown-it": "^12.3.2",
|
|
86
93
|
"markdown-it-attrs": "^4.1.6",
|
|
@@ -88,7 +95,7 @@
|
|
|
88
95
|
"markdown-it-for-inline": "^0.1.1",
|
|
89
96
|
"md5-typescript": "^1.0.5",
|
|
90
97
|
"p-defer-es5": "^2.0.1",
|
|
91
|
-
"sanitize-html": "2.
|
|
98
|
+
"sanitize-html": "2.14.0",
|
|
92
99
|
"simple-update-in": "2.2.0",
|
|
93
100
|
"slack-markdown-it": "^1.0.5"
|
|
94
101
|
},
|
|
@@ -97,7 +104,7 @@
|
|
|
97
104
|
"compose-storybook": "start-storybook -c stories/.storybook -p 9009",
|
|
98
105
|
"build-composite-storybook": "build-storybook -c stories/.storybook -o storybook-build",
|
|
99
106
|
"build-storybook": "build-storybook",
|
|
100
|
-
"build": "yarn lint && yarn build:esm && yarn build:cjs && tsc",
|
|
107
|
+
"build": "yarn clean yarn lint && yarn build:esm && yarn build:cjs && tsc",
|
|
101
108
|
"test:unit": "jest -c jest.config.unit.cjs --env=jsdom --runInBand --force-exit",
|
|
102
109
|
"test:e2e": "cd automation_tests && yarn test",
|
|
103
110
|
"test:e2e:build": "yarn build-sample && cd automation_tests && yarn test",
|
|
@@ -105,6 +112,8 @@
|
|
|
105
112
|
"test:all": "yarn test:unit && yarn test:visual",
|
|
106
113
|
"build:esm": "babel ./src --config-file ./babel.esm.config.json --out-dir lib/esm --extensions .ts,.js,.tsx --ignore **/*.test.ts,**/*.stories.tsx,**/*.test.tsx,**/*.spec.ts,**/*.spec.tsx",
|
|
107
114
|
"build:cjs": "babel ./src --config-file ./babel.config.json --out-dir lib/cjs --extensions .ts,.js,.tsx --ignore **/*.test.ts,**/*.stories.tsx,**/*.test.tsx,**/*.spec.ts,**/*.spec.tsx",
|
|
115
|
+
"build:esm:watch": "babel ./src --config-file ./babel.esm.config.json --out-dir lib/esm --extensions .ts,.js,.tsx --watch --ignore **/*.test.ts,**/*.stories.tsx,**/*.test.tsx,**/*.spec.ts,**/*.spec.tsx",
|
|
116
|
+
"build:cjs:watch": "babel ./src --config-file ./babel.config.json --out-dir lib/cjs --extensions .ts,.js,.tsx --watch --ignore **/*.test.ts,**/*.stories.tsx,**/*.test.tsx,**/*.spec.ts,**/*.spec.tsx",
|
|
108
117
|
"build:umd": "webpack --config ./webpack.umd.config.cjs",
|
|
109
118
|
"verify": "yarn install && yarn build-storybook && yarn test:all && yarn build && yarn storybook",
|
|
110
119
|
"testpack": "yarn build && yarn pack",
|
|
@@ -112,14 +121,17 @@
|
|
|
112
121
|
"build-sample:dev": "yarn build && webpack --config ./webpack.dev.config.cjs",
|
|
113
122
|
"test:visual:build": "yarn build-storybook && yarn test:visual",
|
|
114
123
|
"lint": "yarn eslint . --max-warnings=0",
|
|
115
|
-
"pretest:visual": "yarn playwright install"
|
|
124
|
+
"pretest:visual": "yarn playwright install",
|
|
125
|
+
"prepare": "husky install",
|
|
126
|
+
"clean": "rimraf lib",
|
|
127
|
+
"dev": "concurrently \"yarn build:esm:watch\" \"webpack --config ./webpack.config.cjs --watch\""
|
|
116
128
|
},
|
|
117
129
|
"resolutions": {
|
|
118
130
|
"**/url-parse": "1.5.9",
|
|
119
131
|
"**/p-defer-es5": "^2.0.1",
|
|
120
132
|
"**/abort-controller-es5": "^2.0.1",
|
|
121
133
|
"**/minimist": "1.2.6",
|
|
122
|
-
"**/sanitize-html": "2.
|
|
134
|
+
"**/sanitize-html": "2.14.0"
|
|
123
135
|
},
|
|
124
136
|
"jest": {
|
|
125
137
|
"verbose": true,
|