@microsoft/omnichannel-chat-widget 1.0.2-main.97e373e → 1.0.2

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.
@@ -5,9 +5,9 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.setTabIndices = exports.setFocusOnSendBox = exports.setFocusOnElement = exports.preventFocusToMoveOutOfElement = exports.parseAdaptiveCardPayload = exports.newGuid = exports.isUndefinedOrEmpty = exports.isNullOrUndefined = exports.isNullOrEmptyString = exports.getWidgetEndChatEventName = exports.getWidgetCacheId = exports.getTimestampHourMinute = exports.getStateFromCache = exports.getLocaleDirection = exports.getIconText = exports.getDomain = exports.getConversationDetailsCall = exports.getBroadcastChannelName = exports.findParentFocusableElementsWithoutChildContainer = exports.findAllFocusableElement = exports.extractPreChatSurveyResponseValues = exports.escapeHtml = exports.debounceLeading = exports.createTimer = exports.changeLanguageCodeFormatForWebChat = exports.addDelayInMs = void 0;
7
7
  var _Constants = require("./Constants");
8
+ var _TelemetryConstants = require("./telemetry/TelemetryConstants");
8
9
  var _DataStoreManager = require("./contextDataStore/DataStoreManager");
9
10
  var _KeyCodes = require("./KeyCodes");
10
- var _TelemetryConstants = require("./telemetry/TelemetryConstants");
11
11
  var _md5Typescript = require("md5-typescript");
12
12
  var _TelemetryHelper = require("./telemetry/TelemetryHelper");
13
13
  var _this = void 0;
@@ -171,7 +171,7 @@ exports.getTimestampHourMinute = getTimestampHourMinute;
171
171
  const parseAdaptiveCardPayload = (payload, requiredFieldMissingMessage) => {
172
172
  if (payload && payload !== "{}") {
173
173
  try {
174
- const parsedPayload = JSON.parse(payload.replace(/*/g, "*"));
174
+ const parsedPayload = JSON.parse(payload.replace("*", "*"));
175
175
  const body = parsedPayload.body;
176
176
  if (body) {
177
177
  //Parse ID field into available options and add required error messages
@@ -32,7 +32,9 @@ class MockChatSDK {
32
32
  return "";
33
33
  }
34
34
  getConversationDetails() {
35
- return {};
35
+ return {
36
+ State: "Active"
37
+ };
36
38
  }
37
39
  getCurrentLiveChatContext() {
38
40
  return {
@@ -1,8 +1,8 @@
1
1
  var _this = this;
2
2
  import { AriaTelemetryConstants, Constants, LocaleConstants } from "./Constants";
3
+ import { BroadcastEvent, LogLevel, TelemetryEvent } from "./telemetry/TelemetryConstants";
3
4
  import { DataStoreManager } from "./contextDataStore/DataStoreManager";
4
5
  import { KeyCodes } from "./KeyCodes";
5
- import { BroadcastEvent, LogLevel, TelemetryEvent } from "./telemetry/TelemetryConstants";
6
6
  import { Md5 } from "md5-typescript";
7
7
  import { TelemetryHelper } from "./telemetry/TelemetryHelper";
8
8
  const getElementBySelector = selector => {
@@ -154,7 +154,7 @@ export const getTimestampHourMinute = timestampStr => {
154
154
  export const parseAdaptiveCardPayload = (payload, requiredFieldMissingMessage) => {
155
155
  if (payload && payload !== "{}") {
156
156
  try {
157
- const parsedPayload = JSON.parse(payload.replace(/*/g, "*"));
157
+ const parsedPayload = JSON.parse(payload.replace("*", "*"));
158
158
  const body = parsedPayload.body;
159
159
  if (body) {
160
160
  //Parse ID field into available options and add required error messages
@@ -25,7 +25,9 @@ export class MockChatSDK {
25
25
  return "";
26
26
  }
27
27
  getConversationDetails() {
28
- return {};
28
+ return {
29
+ State: "Active"
30
+ };
29
31
  }
30
32
  getCurrentLiveChatContext() {
31
33
  return {
@@ -7,7 +7,9 @@ export declare class MockChatSDK {
7
7
  getChatToken(): null;
8
8
  createChatAdapter(): MockAdapter;
9
9
  getPreChatSurvey(parseToJson: boolean): string;
10
- getConversationDetails(): {};
10
+ getConversationDetails(): {
11
+ State: string;
12
+ };
11
13
  getCurrentLiveChatContext(): {
12
14
  chatToken: {};
13
15
  requestId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/omnichannel-chat-widget",
3
- "version": "1.0.2-main.97e373e",
3
+ "version": "1.0.2",
4
4
  "description": "Microsoft Omnichannel Chat Widget",
5
5
  "main": "lib/cjs/index.js",
6
6
  "types": "lib/types/index.d.ts",
@@ -74,8 +74,8 @@
74
74
  },
75
75
  "dependencies": {
76
76
  "@fluentui/react": "^8.49.1",
77
- "@microsoft/omnichannel-chat-components": "0.1.0-main.f4c21f0",
78
- "@microsoft/omnichannel-chat-sdk": "1.2.1-main.171bfbe",
77
+ "@microsoft/omnichannel-chat-components": "1.0.1",
78
+ "@microsoft/omnichannel-chat-sdk": "1.3.0",
79
79
  "abort-controller-es5": "^2.0.1",
80
80
  "dompurify": "^2.3.4",
81
81
  "markdown-it": "^12.3.2",