@microsoft/omnichannel-chat-sdk 1.9.3 → 1.9.4-main.1594d5e

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/README.md CHANGED
@@ -63,11 +63,11 @@ Please make sure you have a chat widget configured before using this package or
63
63
 
64
64
  ## Live Chat Widget vs. Chat SDK
65
65
 
66
- Omnichannel offers an live chat widget (LCW) by default. You can use the Chat SDK to build your custom chat widget if:
66
+ Omnichannel offers a live chat widget (LCW) by default. You can use the Chat SDK to build your custom chat widget if:
67
67
  - You want to fully customize the user interface of the chat widget to conform with your branding.
68
- - You want to integrate Omnichannel in your mobile app using React Native.
68
+ - You want to integrate Omnichannel into your mobile app using React Native.
69
69
  - You want to integrate additional functionalities that LCW does not offer.
70
- - Some other cool ideas. Please share with us on what you've achieved with the Chat SDK! 🙂
70
+ - Some other cool ideas. Please share with us what you've achieved with the Chat SDK! 🙂
71
71
 
72
72
  ### Feature Comparisons
73
73
 
@@ -188,7 +188,7 @@ The following steps will be required to run Omnichannel Chat SDK on React Native
188
188
  };
189
189
  ```
190
190
 
191
- 1. Add following *import* on top of your entry point file
191
+ 1. Add the following *import* on top of your entry point file
192
192
  ```ts
193
193
  import 'node-libs-react-native/globals';
194
194
  import 'react-native-get-random-values';
@@ -324,7 +324,7 @@ const conversationDetails = await chatSDK.getConversationDetails(optionalParams)
324
324
 
325
325
  ### Get chat Token
326
326
 
327
- It gets the chat token used to initiates a chat with Omnichannel messaging client.
327
+ It gets the chat token used to initiate a chat with Omnichannel messaging client.
328
328
 
329
329
  ```ts
330
330
  const chatToken = await chatSDK.getChatToken();
@@ -332,7 +332,7 @@ const chatToken = await chatSDK.getChatToken();
332
332
 
333
333
  ### Get Calling Token
334
334
 
335
- It gets the calling token used to initiates a Voice & Video Call.
335
+ It gets the calling token used to initiate a Voice & Video Call.
336
336
 
337
337
  ```ts
338
338
  const callingToken = await chatSDK.getCallingToken();
@@ -380,7 +380,7 @@ chatSDK.onNewMessage((message) => {
380
380
  ```
381
381
  ### On Typing Event
382
382
 
383
- It subscribes to agent typing event.
383
+ It subscribes to an agent typing event.
384
384
 
385
385
  ```ts
386
386
  chatSDK.onTypingEvent(() => {
@@ -390,7 +390,7 @@ chatSDK.onTypingEvent(() => {
390
390
 
391
391
  ### On Agent End Session
392
392
 
393
- It subscribes to agent ending the session of the conversation.
393
+ It subscribes to an agent ending the session of the conversation.
394
394
 
395
395
  ```ts
396
396
  chatSDK.onAgentEndSession(() => {
@@ -562,7 +562,7 @@ await chatSDK.startChat();
562
562
  // 2. Save post chat survey context before ending chat
563
563
  try {
564
564
  const context = await chatSDK.getPostChatSurveyContext();
565
- 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.
565
+ 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 the admin side.
566
566
  // formsProLocale is the default language you have set on the CustomerVoice portal. You can override this url parameter with any locale that CustomerVoice supports.
567
567
  // If "&lang=" is not set on the url, the locale will be English.
568
568
  const link = context.participantType === "Bot" ? context.botSurveyInviteLink : context.surveyInviteLink;
@@ -571,7 +571,7 @@ try {
571
571
  // This link is accessible and will redirect to the survey page. Use it as you see fit.
572
572
  }
573
573
  } catch (ex) {
574
- // If the post chat should not be shown by any reason (e.g. post chat is not enabled), promise will be rejected.
574
+ // If the post chat should not be shown for any reason (e.g. post chat is not enabled), promise will be rejected.
575
575
  }
576
576
 
577
577
  // 3. End chat
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var ocSDKConfiguration = {
4
- getChatTokenRetryCount: 2,
4
+ getChatTokenRetryCount: 5,
5
5
  getChatTokenTimeBetweenRetriesOnFailure: 2000,
6
- getChatTokenRetryOn429: false,
6
+ getChatTokenRetryOn429: true,
7
7
  useUnauthReconnectIdSigQueryParam: false
8
8
  };
9
9
  exports.default = ocSDKConfiguration;
@@ -1 +1 @@
1
- {"version":3,"file":"ocSDKConfiguration.js","sourceRoot":"","sources":["../../src/config/ocSDKConfiguration.ts"],"names":[],"mappings":";;AAAA,IAAM,kBAAkB,GAAG;IACvB,sBAAsB,EAAE,CAAC;IACzB,uCAAuC,EAAE,IAAI;IAC7C,sBAAsB,EAAE,KAAK;IAC7B,iCAAiC,EAAE,KAAK;CAC3C,CAAC;AAEF,kBAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"ocSDKConfiguration.js","sourceRoot":"","sources":["../../src/config/ocSDKConfiguration.ts"],"names":[],"mappings":";;AAAA,IAAM,kBAAkB,GAAG;IACvB,sBAAsB,EAAE,CAAC;IACzB,uCAAuC,EAAE,IAAI;IAC7C,sBAAsB,EAAE,IAAI;IAC5B,iCAAiC,EAAE,KAAK;CAC3C,CAAC;AAEF,kBAAe,kBAAkB,CAAC"}
@@ -1607,7 +1607,7 @@
1607
1607
  "affectsGlobalScope": false
1608
1608
  },
1609
1609
  "../src/config/ocSDKConfiguration.ts": {
1610
- "version": "c704076937855aad873cd956f8b3ba76999387aa0966ea635958cfb9cdef5e04",
1610
+ "version": "6f1ecb0f640bd1afc572c6de8272c3e79fe47e017f5e59a74c2b737c7daa5ebb",
1611
1611
  "signature": "5cec1c152e90d6d344646a98a0b0e589b4f50e4188fd33493f399674093c79ef",
1612
1612
  "affectsGlobalScope": false
1613
1613
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/omnichannel-chat-sdk",
3
- "version": "1.9.3",
3
+ "version": "1.9.4-main.1594d5e",
4
4
  "description": "Microsoft Omnichannel Chat SDK",
5
5
  "files": [
6
6
  "lib/**/*"