@microsoft/omnichannel-chat-widget 1.0.2-main.04fd586 → 1.0.2-main.054759b

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.
@@ -817,7 +817,7 @@ const dummyDefaultProps = {
817
817
  minHeight: "25px",
818
818
  width: "100%",
819
819
  minWidth: "250px",
820
- padding: "0 10px 5px 10px"
820
+ padding: "5px"
821
821
  },
822
822
  downloadTranscriptButtonStyleProps: {
823
823
  icon: {
@@ -7,6 +7,7 @@ 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"));
10
11
  var _utils = require("../../common/utils");
11
12
  var _ConversationState = require("../../contexts/common/ConversationState");
12
13
  var _LiveChatWidgetActionType = require("../../contexts/common/LiveChatWidgetActionType");
@@ -21,6 +22,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
21
22
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
22
23
  const PreChatSurveyPaneStateful = props => {
23
24
  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;
24
27
  const [state, dispatch] = (0, _useChatContextStore.default)();
25
28
  const {
26
29
  surveyProps,
@@ -811,7 +811,7 @@ export const dummyDefaultProps = {
811
811
  minHeight: "25px",
812
812
  width: "100%",
813
813
  minWidth: "250px",
814
- padding: "0 10px 5px 10px"
814
+ padding: "5px"
815
815
  },
816
816
  downloadTranscriptButtonStyleProps: {
817
817
  icon: {
@@ -1,6 +1,7 @@
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";
4
5
  import { extractPreChatSurveyResponseValues, findAllFocusableElement, getStateFromCache, isUndefinedOrEmpty, parseAdaptiveCardPayload } from "../../common/utils";
5
6
  import { ConversationState } from "../../contexts/common/ConversationState";
6
7
  import { LiveChatWidgetActionType } from "../../contexts/common/LiveChatWidgetActionType";
@@ -13,6 +14,8 @@ import useChatContextStore from "../../hooks/useChatContextStore";
13
14
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
14
15
  export const PreChatSurveyPaneStateful = props => {
15
16
  var _surveyProps$stylePro, _props$surveyProps, _props$surveyProps$co;
17
+ // Set MarkDown global variable to be used for prechat adaptive cards
18
+ window["markdownit"] = MarkdownIt;
16
19
  const [state, dispatch] = useChatContextStore();
17
20
  const {
18
21
  surveyProps,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/omnichannel-chat-widget",
3
- "version": "1.0.2-main.04fd586",
3
+ "version": "1.0.2-main.054759b",
4
4
  "description": "Microsoft Omnichannel Chat Widget",
5
5
  "main": "lib/cjs/index.js",
6
6
  "types": "lib/types/index.d.ts",