@microsoft/omnichannel-chat-widget 1.7.2-main.6642960 → 1.7.2-main.7ef43a9
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/components/livechatwidget/common/createMarkdown.js +2 -2
- package/lib/cjs/components/livechatwidget/common/endChat.js +4 -0
- package/lib/cjs/components/webchatcontainerstateful/WebChatContainerStateful.js +3 -0
- package/lib/esm/components/livechatwidget/common/createMarkdown.js +2 -2
- package/lib/esm/components/livechatwidget/common/endChat.js +4 -0
- package/lib/esm/components/webchatcontainerstateful/WebChatContainerStateful.js +3 -0
- package/package.json +1 -1
|
@@ -36,10 +36,10 @@ const createMarkdown = (disableMarkdownMessageFormatting, disableNewLineMarkdown
|
|
|
36
36
|
// Rule to process html tags
|
|
37
37
|
"newline" // Rule to proceess '\n'
|
|
38
38
|
]);
|
|
39
|
-
|
|
40
|
-
markdown.disable(["strikethrough"]);
|
|
41
39
|
}
|
|
42
40
|
|
|
41
|
+
markdown.disable(["strikethrough"]);
|
|
42
|
+
|
|
43
43
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
44
44
|
markdown.use(_markdownItForInline.default, "url_new_win", "link_open", function (tokens, idx, env) {
|
|
45
45
|
const targetAttrIndex = tokens[idx].attrIndex(_Constants.Constants.Target);
|
|
@@ -179,6 +179,10 @@ const endChat = async (props, chatSDK, state, dispatch, setAdapter, setWebChatSt
|
|
|
179
179
|
type: _LiveChatWidgetActionType.LiveChatWidgetActionType.SET_UNREAD_MESSAGE_COUNT,
|
|
180
180
|
payload: 0
|
|
181
181
|
});
|
|
182
|
+
dispatch({
|
|
183
|
+
type: _LiveChatWidgetActionType.LiveChatWidgetActionType.SET_POST_CHAT_CONTEXT,
|
|
184
|
+
payload: undefined
|
|
185
|
+
});
|
|
182
186
|
// Always allow to close the chat for embedded mode irrespective of end chat errors
|
|
183
187
|
closeChatWidget(dispatch, props, state);
|
|
184
188
|
}
|
|
@@ -218,6 +218,9 @@ const WebChatContainerStateful = props => {
|
|
|
218
218
|
.webchat__stacked-layout_container>div {
|
|
219
219
|
background: ${(props === null || props === void 0 ? void 0 : (_props$webChatContain9 = props.webChatContainerProps) === null || _props$webChatContain9 === void 0 ? void 0 : (_props$webChatContain10 = _props$webChatContain9.containerStyles) === null || _props$webChatContain10 === void 0 ? void 0 : _props$webChatContain10.background) ?? ""}
|
|
220
220
|
}
|
|
221
|
+
.webchat__toaster__expandText {
|
|
222
|
+
display: flex;
|
|
223
|
+
}
|
|
221
224
|
`), /*#__PURE__*/_react2.default.createElement(_react.Stack, {
|
|
222
225
|
styles: containerStyles,
|
|
223
226
|
className: "webchat__stacked-layout_container"
|
|
@@ -30,10 +30,10 @@ export const createMarkdown = (disableMarkdownMessageFormatting, disableNewLineM
|
|
|
30
30
|
// Rule to process html tags
|
|
31
31
|
"newline" // Rule to proceess '\n'
|
|
32
32
|
]);
|
|
33
|
-
|
|
34
|
-
markdown.disable(["strikethrough"]);
|
|
35
33
|
}
|
|
36
34
|
|
|
35
|
+
markdown.disable(["strikethrough"]);
|
|
36
|
+
|
|
37
37
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
38
38
|
markdown.use(MarkdownItForInline, "url_new_win", "link_open", function (tokens, idx, env) {
|
|
39
39
|
const targetAttrIndex = tokens[idx].attrIndex(Constants.Target);
|
|
@@ -173,6 +173,10 @@ const endChat = async (props, chatSDK, state, dispatch, setAdapter, setWebChatSt
|
|
|
173
173
|
type: LiveChatWidgetActionType.SET_UNREAD_MESSAGE_COUNT,
|
|
174
174
|
payload: 0
|
|
175
175
|
});
|
|
176
|
+
dispatch({
|
|
177
|
+
type: LiveChatWidgetActionType.SET_POST_CHAT_CONTEXT,
|
|
178
|
+
payload: undefined
|
|
179
|
+
});
|
|
176
180
|
// Always allow to close the chat for embedded mode irrespective of end chat errors
|
|
177
181
|
closeChatWidget(dispatch, props, state);
|
|
178
182
|
}
|
|
@@ -210,6 +210,9 @@ export const WebChatContainerStateful = props => {
|
|
|
210
210
|
.webchat__stacked-layout_container>div {
|
|
211
211
|
background: ${(props === null || props === void 0 ? void 0 : (_props$webChatContain9 = props.webChatContainerProps) === null || _props$webChatContain9 === void 0 ? void 0 : (_props$webChatContain10 = _props$webChatContain9.containerStyles) === null || _props$webChatContain10 === void 0 ? void 0 : _props$webChatContain10.background) ?? ""}
|
|
212
212
|
}
|
|
213
|
+
.webchat__toaster__expandText {
|
|
214
|
+
display: flex;
|
|
215
|
+
}
|
|
213
216
|
`), /*#__PURE__*/React.createElement(Stack, {
|
|
214
217
|
styles: containerStyles,
|
|
215
218
|
className: "webchat__stacked-layout_container"
|