@microsoft/omnichannel-chat-sdk
Advanced tools
Comparing version 1.0.1-main.c789d78 to 1.0.1-main.fa78d5f
@@ -10,5 +10,11 @@ # Changelog | ||
- Add `GetPostChatSurveyContext`, `RenderPostChatSurvey`, and `InitializePostChatRenderer` telemetry events | ||
- Add `widgetId` & `clientMessageId` as metadata on sending message | ||
### Fix | ||
- Add `acs_webchat-chat-adapter` middlewares to format `channelData.tags` | ||
### Changed | ||
- README: added examples on usages of the post chat APIs. | ||
- Uptake [@azure/communication-chat@1.1.1](https://www.npmjs.com/package/@azure/communication-chat/v/1.1.1) | ||
- Uptake [acs_webchat-chat-adapter@0.0.35-beta.2](https://unpkg.com/acs_webchat-chat-adapter@0.0.35-beta.2/dist/chat-adapter.js) | ||
@@ -15,0 +21,0 @@ ## [1.0.0] - 2021-10-08 |
declare const ic3ClientVersion = "2021.08.14.1"; | ||
declare const webChatIC3AdapterVersion = "0.1.0-master.2dba07b"; | ||
declare const webChatACSAdapterVersion = "0.0.30"; | ||
declare const webChatACSAdapterVersion = "0.0.35-beta.2"; | ||
declare const ariaTelemetryKey = "c7655518acf1403f93ff6b9f77942f0a-d01a02fd-6b50-4de3-a566-62eda11f93bc-7083"; | ||
export { ic3ClientVersion, webChatIC3AdapterVersion, webChatACSAdapterVersion, ariaTelemetryKey }; |
@@ -8,3 +8,3 @@ "use strict"; | ||
exports.webChatIC3AdapterVersion = webChatIC3AdapterVersion; | ||
var webChatACSAdapterVersion = '0.0.30'; | ||
var webChatACSAdapterVersion = '0.0.35-beta.2'; | ||
exports.webChatACSAdapterVersion = webChatACSAdapterVersion; | ||
@@ -11,0 +11,0 @@ var ariaTelemetryKey = 'c7655518acf1403f93ff6b9f77942f0a-d01a02fd-6b50-4de3-a566-62eda11f93bc-7083'; |
@@ -396,3 +396,3 @@ "use strict"; | ||
senderDisplayName: ACSParticipantDisplayName_1.default.Customer, | ||
metadata: __assign({ deliveryMode: DeliveryMode_1.default.Bridged, tags: JSON.stringify([MessageTags_1.defaultMessageTags]) }, message.metadata) | ||
metadata: __assign({ deliveryMode: DeliveryMode_1.default.Bridged, tags: MessageTags_1.defaultMessageTags.join(',') }, message.metadata) | ||
}; | ||
@@ -399,0 +399,0 @@ _e.label = 1; |
{ | ||
"name": "@microsoft/omnichannel-chat-sdk", | ||
"version": "1.0.1-main.c789d78", | ||
"version": "1.0.1-main.fa78d5f", | ||
"description": "Microsoft Omnichannel Chat SDK", | ||
@@ -42,3 +42,3 @@ "files": [ | ||
"dependencies": { | ||
"@azure/communication-chat": "1.1.0-beta.2", | ||
"@azure/communication-chat": "1.1.1", | ||
"@azure/communication-common": "1.1.0", | ||
@@ -45,0 +45,0 @@ "@microsoft/ocsdk": "^0.3.0", |
@@ -17,3 +17,3 @@ # Omnichannel Chat SDK | ||
- [API Examples](#api-examples) | ||
- [Sample Apps](samples/) | ||
- [Sample Apps](https://github.com/microsoft/omnichannel-chat-sdk-samples) | ||
- [Common Scenarios](#common-scenarios) | ||
@@ -39,10 +39,8 @@ - [Feature Comparisons](#feature-comparisons) | ||
| React Native Support | ❌ | ✔ | | ||
| Escalation to Voice & Video | ✔ | Web Only | | ||
| Co-browse | ✔ | Web Only | | ||
| Screen Sharing | ✔ | Web Only | | ||
| Escalation to Voice & Video | ✔ | ✔ | Only supported on Web | | ||
| Co-browse | ✔ | 3rd party add-on | Only supported on Web | | ||
| Screen Sharing | ✔ | 3rd party add-on | Only supported on Web | | ||
| Authenticated Chat | ✔ | ✔ | | ||
| Pre-chat Survey | ✔ | ✔ | | ||
| Post-chat Survey | ✔ | Web Only for In-line Render | | ||
| Queue Position | ✔ | ✔ | | ||
| Average Wait Time | ✔ | ✔ | | ||
| Post-chat Survey | ✔ | ❌ | | ||
| Download Transcript | ✔ | ✔ | | ||
@@ -57,2 +55,4 @@ | Email Transcript | ✔ | ✔ | | ||
| Operating Hours | ✔ | ✔ | | ||
| Queue Position | ✔ | ✔ | No SDK method. Handled as *system message* | | ||
| Average Wait Time | ✔ | ✔ | No SDK method. Handled as *system message* | | ||
@@ -71,3 +71,22 @@ **\*** BYOI: Bring Your Own Implementation | ||
1. Run `npm install node-libs-react-native --save-dev` | ||
1. Install `node-libs-react-native` | ||
``` | ||
npm install node-libs-react-native --save-dev | ||
``` | ||
1. Install `react-native-randomBytes` | ||
``` | ||
npm install react-native-randombytes --save-dev | ||
``` | ||
1. Install `react-native-get-random-values` | ||
``` | ||
npm install react-native-get-random-values --save-dev | ||
``` | ||
1. Install `react-native-url-polyfill` | ||
``` | ||
npm install react-native-url-polyfill --save-dev | ||
``` | ||
1. Update *metro.config.js* to use React Native compatible Node Core modules | ||
@@ -87,12 +106,9 @@ ```ts | ||
1. Import 'node-libs-react-native/globals' on top of your entry point file | ||
1. Add following *import* on top of your entry point file | ||
```ts | ||
import 'node-libs-react-native/globals'; | ||
import 'react-native-get-random-values'; | ||
import 'react-native-url-polyfill'; | ||
``` | ||
1. Install `react-native-randomBytes` | ||
``` | ||
npm install react-native-randombytes --save-dev | ||
``` | ||
## API Reference | ||
@@ -125,7 +141,3 @@ | ||
| OmnichannelChatSDK.getVoiceVideoCalling() | Get VoiceVideoCall SDK for Escalation to Voice & Video | **Web only** | | ||
| OmnichannelChatSDK.getPostChatSurveyContext() | Get post chat survey link and locale | | | ||
| OmnichannelChatSDK.initializePostChatRenderer() | Load necessary scripts and styles to render the FormsPro survey | **Web only** | | ||
| OmnichannelChatSDK.renderPostChatSurvey() | Render the FormsPro survey | **Web only** | | ||
## API examples | ||
@@ -207,30 +219,2 @@ | ||
### Show PostChat Survey | ||
`Option 1: Directly use the survey link` | ||
```ts | ||
try { | ||
const context = await chatSDK.getPostChatSurveyContext(); | ||
if (context?.participantJoined) { // participantJoined will be true if an agent has joined the conversation, or a bot has joined the conversation and the bot survey flag has been turned on on the admin side. | ||
const linkToSend = context.surveyInviteLink + "&lang=" + context.formsProLocale; | ||
// This link is accessible and will redirect to the survey in another tab. Use it as you see fit. | ||
} | ||
} catch (ex) { | ||
// If the post chat should not show by any reason (e.g. post chat is not enabled), promise will be rejected. | ||
} | ||
``` | ||
`Option 2: Render the FormsPro Survey in a specified container` | ||
```ts | ||
await chatSDK.initializePostChatRenderer(); // This method is needed to embed FormsPro survey in the widget. It can be called anytime before actually rendering the survey for best performance of you page. | ||
try { | ||
const context = await chatSDK.getPostChatSurveyContext(); | ||
if (context?.participantJoined) { | ||
await chatSDK?.renderPostChatSurvey('containerId', context); // The survey will be embedded in the element with Id "containerId" | ||
} | ||
} catch (ex) { | ||
} | ||
``` | ||
### Start Chat | ||
@@ -237,0 +221,0 @@ ```ts |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
240
11695
1195728
733
+ Added@azure/communication-chat@1.1.1(transitive)
+ Added@azure/communication-signaling@1.0.0-beta.11(transitive)
+ Added@azure/core-client@1.9.2(transitive)
+ Added@azure/core-rest-pipeline@1.18.1(transitive)
+ Added@azure/core-tracing@1.2.0(transitive)
+ Addedagent-base@7.1.3(transitive)
+ Addeddebug@4.4.0(transitive)
+ Addedhttp-proxy-agent@7.0.2(transitive)
+ Addedhttps-proxy-agent@7.0.6(transitive)
+ Addedms@2.1.3(transitive)
- Removed@azure/communication-chat@1.1.0-beta.2(transitive)
- Removed@azure/communication-signaling@1.0.0-beta.8(transitive)
- Removed@azure/core-asynciterator-polyfill@1.0.2(transitive)
- Removed@azure/core-http@1.2.6(transitive)
- Removed@opentelemetry/api@0.10.2(transitive)
- Removed@opentelemetry/context-base@0.10.2(transitive)
- Removed@types/node@22.10.5(transitive)
- Removed@types/tunnel@0.0.1(transitive)
- Removedform-data@3.0.2(transitive)
- Removedundici-types@6.20.0(transitive)
- Removedxml2js@0.4.23(transitive)