@microsoft/omnichannel-chat-widget 1.0.2-main.054759b → 1.0.2-main.118265f

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.
@@ -7,7 +7,6 @@ exports.default = exports.PreChatSurveyPaneStateful = void 0;
7
7
  var _Constants = require("../../common/Constants");
8
8
  var _TelemetryConstants = require("../../common/telemetry/TelemetryConstants");
9
9
  var _react = _interopRequireWildcard(require("react"));
10
- var _markdownIt = _interopRequireDefault(require("markdown-it"));
11
10
  var _utils = require("../../common/utils");
12
11
  var _ConversationState = require("../../contexts/common/ConversationState");
13
12
  var _LiveChatWidgetActionType = require("../../contexts/common/LiveChatWidgetActionType");
@@ -22,8 +21,6 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
22
21
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
23
22
  const PreChatSurveyPaneStateful = props => {
24
23
  var _surveyProps$stylePro, _props$surveyProps, _props$surveyProps$co;
25
- // Set MarkDown global variable to be used for prechat adaptive cards
26
- window["markdownit"] = _markdownIt.default;
27
24
  const [state, dispatch] = (0, _useChatContextStore.default)();
28
25
  const {
29
26
  surveyProps,
@@ -1,7 +1,6 @@
1
1
  import { HtmlAttributeNames, Regex } from "../../common/Constants";
2
2
  import { LogLevel, TelemetryEvent } from "../../common/telemetry/TelemetryConstants";
3
3
  import React, { useEffect } from "react";
4
- import MarkdownIt from "markdown-it";
5
4
  import { extractPreChatSurveyResponseValues, findAllFocusableElement, getStateFromCache, isUndefinedOrEmpty, parseAdaptiveCardPayload } from "../../common/utils";
6
5
  import { ConversationState } from "../../contexts/common/ConversationState";
7
6
  import { LiveChatWidgetActionType } from "../../contexts/common/LiveChatWidgetActionType";
@@ -14,8 +13,6 @@ import useChatContextStore from "../../hooks/useChatContextStore";
14
13
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
15
14
  export const PreChatSurveyPaneStateful = props => {
16
15
  var _surveyProps$stylePro, _props$surveyProps, _props$surveyProps$co;
17
- // Set MarkDown global variable to be used for prechat adaptive cards
18
- window["markdownit"] = MarkdownIt;
19
16
  const [state, dispatch] = useChatContextStore();
20
17
  const {
21
18
  surveyProps,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/omnichannel-chat-widget",
3
- "version": "1.0.2-main.054759b",
3
+ "version": "1.0.2-main.118265f",
4
4
  "description": "Microsoft Omnichannel Chat Widget",
5
5
  "main": "lib/cjs/index.js",
6
6
  "types": "lib/types/index.d.ts",