@microsoft/omnichannel-chat-widget 1.8.4-main.4d513c2 → 1.8.4-main.51ef6e3
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 +4 -2
- package/lib/cjs/components/prechatsurveypanestateful/PreChatSurveyPaneStateful.js +5 -1
- package/lib/esm/components/livechatwidget/common/createMarkdown.js +4 -2
- package/lib/esm/components/prechatsurveypanestateful/PreChatSurveyPaneStateful.js +5 -1
- package/package.json +2 -2
|
@@ -173,14 +173,16 @@ const createMarkdown = (disableMarkdownMessageFormatting, disableNewLineMarkdown
|
|
|
173
173
|
|
|
174
174
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
175
175
|
md.render = function (text, env) {
|
|
176
|
+
const safeEnv = env ?? {};
|
|
176
177
|
const processedText = preprocessText(text);
|
|
177
|
-
return md.renderer.render(md.parse(processedText,
|
|
178
|
+
return md.renderer.render(md.parse(processedText, safeEnv), md.options, safeEnv);
|
|
178
179
|
};
|
|
179
180
|
|
|
180
181
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
181
182
|
md.renderInline = function (text, env) {
|
|
183
|
+
const safeEnv = env ?? {};
|
|
182
184
|
const processedText = preprocessText(text);
|
|
183
|
-
return md.renderer.render(md.parseInline(processedText,
|
|
185
|
+
return md.renderer.render(md.parseInline(processedText, safeEnv), md.options, safeEnv);
|
|
184
186
|
};
|
|
185
187
|
});
|
|
186
188
|
|
|
@@ -221,7 +221,11 @@ const PreChatSurveyPaneStateful = props => {
|
|
|
221
221
|
}
|
|
222
222
|
}, []);
|
|
223
223
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
224
|
-
onFocusCapture: announceFocusedElement
|
|
224
|
+
onFocusCapture: announceFocusedElement,
|
|
225
|
+
style: {
|
|
226
|
+
width: "100%",
|
|
227
|
+
height: "100%"
|
|
228
|
+
}
|
|
225
229
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
226
230
|
role: "status",
|
|
227
231
|
"aria-live": "polite",
|
|
@@ -167,14 +167,16 @@ export const createMarkdown = (disableMarkdownMessageFormatting, disableNewLineM
|
|
|
167
167
|
|
|
168
168
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
169
169
|
md.render = function (text, env) {
|
|
170
|
+
const safeEnv = env ?? {};
|
|
170
171
|
const processedText = preprocessText(text);
|
|
171
|
-
return md.renderer.render(md.parse(processedText,
|
|
172
|
+
return md.renderer.render(md.parse(processedText, safeEnv), md.options, safeEnv);
|
|
172
173
|
};
|
|
173
174
|
|
|
174
175
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
175
176
|
md.renderInline = function (text, env) {
|
|
177
|
+
const safeEnv = env ?? {};
|
|
176
178
|
const processedText = preprocessText(text);
|
|
177
|
-
return md.renderer.render(md.parseInline(processedText,
|
|
179
|
+
return md.renderer.render(md.parseInline(processedText, safeEnv), md.options, safeEnv);
|
|
178
180
|
};
|
|
179
181
|
});
|
|
180
182
|
|
|
@@ -212,7 +212,11 @@ export const PreChatSurveyPaneStateful = props => {
|
|
|
212
212
|
}
|
|
213
213
|
}, []);
|
|
214
214
|
return /*#__PURE__*/React.createElement("div", {
|
|
215
|
-
onFocusCapture: announceFocusedElement
|
|
215
|
+
onFocusCapture: announceFocusedElement,
|
|
216
|
+
style: {
|
|
217
|
+
width: "100%",
|
|
218
|
+
height: "100%"
|
|
219
|
+
}
|
|
216
220
|
}, /*#__PURE__*/React.createElement("div", {
|
|
217
221
|
role: "status",
|
|
218
222
|
"aria-live": "polite",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/omnichannel-chat-widget",
|
|
3
|
-
"version": "1.8.4-main.
|
|
3
|
+
"version": "1.8.4-main.51ef6e3",
|
|
4
4
|
"description": "Microsoft Omnichannel Chat Widget",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"types": "lib/types/index.d.ts",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"@azure/core-tracing": "^1.2.0",
|
|
97
97
|
"@microsoft/applicationinsights-web": "^3.3.6",
|
|
98
98
|
"@microsoft/omnichannel-chat-components": "1.1.17-main.f21df63",
|
|
99
|
-
"@microsoft/omnichannel-chat-sdk": "1.11.9-main.
|
|
99
|
+
"@microsoft/omnichannel-chat-sdk": "1.11.9-main.47a6498",
|
|
100
100
|
"@opentelemetry/api": "^1.9.0",
|
|
101
101
|
"abort-controller": "^3",
|
|
102
102
|
"abort-controller-es5": "^2.0.1",
|