@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.
- package/lib/cjs/common/utils.js +2 -2
- package/lib/cjs/components/webchatcontainerstateful/common/mockchatsdk.js +3 -1
- package/lib/esm/common/utils.js +2 -2
- package/lib/esm/components/webchatcontainerstateful/common/mockchatsdk.js +3 -1
- package/lib/types/components/webchatcontainerstateful/common/mockchatsdk.d.ts +3 -1
- package/package.json +3 -3
package/lib/cjs/common/utils.js
CHANGED
|
@@ -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(
|
|
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
|
package/lib/esm/common/utils.js
CHANGED
|
@@ -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(
|
|
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
|
|
@@ -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
|
|
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": "
|
|
78
|
-
"@microsoft/omnichannel-chat-sdk": "1.
|
|
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",
|