@microsoft/omnichannel-chat-widget 1.6.5-main.cf61c9e → 1.6.5

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.
@@ -34,6 +34,31 @@ const defaultWebChatStyles = {
34
34
  suggestedActionsStackedHeight: 125,
35
35
  suggestedActionsStackedOverflow: "scroll",
36
36
  // eslint-disable-line @typescript-eslint/no-explicit-any
37
- typingAnimationDuration: 3500
37
+ typingAnimationDuration: 3500,
38
+ emojiSet: {
39
+ ":)": "😊",
40
+ ":-)": "😊",
41
+ "(:": "😊",
42
+ "(-:": "😊",
43
+ ":-|": "😐",
44
+ ":|": "😐",
45
+ ":-(": "â˜šī¸",
46
+ ":(": "â˜šī¸",
47
+ ":-D": "😀",
48
+ ":D": "😀",
49
+ ":-p": "😛",
50
+ ":p": "😛",
51
+ ":-P": "😛",
52
+ ":P": "😛",
53
+ ":-o": "😲",
54
+ ":o": "😲",
55
+ ":O": "😲",
56
+ ":-O": "😲",
57
+ ";-)": "😉",
58
+ ";)": "😉",
59
+ "<3": "â¤ī¸",
60
+ "</3": "💔",
61
+ "<\\3": "💔"
62
+ }
38
63
  };
39
64
  exports.defaultWebChatStyles = defaultWebChatStyles;
@@ -64,6 +64,12 @@ class TranscriptHTMLBuilder {
64
64
  this.disableNewLineMarkdownSupport = this.options.disableNewLineMarkdownSupport;
65
65
  }
66
66
  }
67
+ createMetaElement() {
68
+ const htmlData = `
69
+ <meta charset="UTF-8">
70
+ `;
71
+ return htmlData;
72
+ }
67
73
  createTitleElement() {
68
74
  const htmlData = `<title> ${this.pageTitle} </title>`;
69
75
  return htmlData;
@@ -81,6 +87,7 @@ class TranscriptHTMLBuilder {
81
87
  createHeadElement() {
82
88
  const htmlData = `
83
89
  <head>
90
+ ${this.createMetaElement()}
84
91
  ${this.createTitleElement()}
85
92
  ${this.createExternalScriptElements()}
86
93
  <script>
@@ -28,5 +28,30 @@ export const defaultWebChatStyles = {
28
28
  suggestedActionsStackedHeight: 125,
29
29
  suggestedActionsStackedOverflow: "scroll",
30
30
  // eslint-disable-line @typescript-eslint/no-explicit-any
31
- typingAnimationDuration: 3500
31
+ typingAnimationDuration: 3500,
32
+ emojiSet: {
33
+ ":)": "😊",
34
+ ":-)": "😊",
35
+ "(:": "😊",
36
+ "(-:": "😊",
37
+ ":-|": "😐",
38
+ ":|": "😐",
39
+ ":-(": "â˜šī¸",
40
+ ":(": "â˜šī¸",
41
+ ":-D": "😀",
42
+ ":D": "😀",
43
+ ":-p": "😛",
44
+ ":p": "😛",
45
+ ":-P": "😛",
46
+ ":P": "😛",
47
+ ":-o": "😲",
48
+ ":o": "😲",
49
+ ":O": "😲",
50
+ ":-O": "😲",
51
+ ";-)": "😉",
52
+ ";)": "😉",
53
+ "<3": "â¤ī¸",
54
+ "</3": "💔",
55
+ "<\\3": "💔"
56
+ }
32
57
  };
@@ -60,6 +60,12 @@ class TranscriptHTMLBuilder {
60
60
  this.disableNewLineMarkdownSupport = this.options.disableNewLineMarkdownSupport;
61
61
  }
62
62
  }
63
+ createMetaElement() {
64
+ const htmlData = `
65
+ <meta charset="UTF-8">
66
+ `;
67
+ return htmlData;
68
+ }
63
69
  createTitleElement() {
64
70
  const htmlData = `<title> ${this.pageTitle} </title>`;
65
71
  return htmlData;
@@ -77,6 +83,7 @@ class TranscriptHTMLBuilder {
77
83
  createHeadElement() {
78
84
  const htmlData = `
79
85
  <head>
86
+ ${this.createMetaElement()}
80
87
  ${this.createTitleElement()}
81
88
  ${this.createExternalScriptElements()}
82
89
  <script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/omnichannel-chat-widget",
3
- "version": "1.6.5-main.cf61c9e",
3
+ "version": "1.6.5",
4
4
  "description": "Microsoft Omnichannel Chat Widget",
5
5
  "main": "lib/cjs/index.js",
6
6
  "types": "lib/types/index.d.ts",
@@ -75,7 +75,7 @@
75
75
  },
76
76
  "dependencies": {
77
77
  "@microsoft/omnichannel-chat-components": "1.1.5",
78
- "@microsoft/omnichannel-chat-sdk": "^1.8.1",
78
+ "@microsoft/omnichannel-chat-sdk": "^1.8.2",
79
79
  "abort-controller-es5": "^2.0.1",
80
80
  "dompurify": "^2.3.4",
81
81
  "markdown-it": "^12.3.2",
@@ -86,7 +86,7 @@
86
86
  "p-defer-es5": "^2.0.1",
87
87
  "sanitize-html": "2.12.1",
88
88
  "slack-markdown-it": "^1.0.5",
89
- "simple-update-in": "2.2.0"
89
+ "simple-update-in":"2.2.0"
90
90
  },
91
91
  "scripts": {
92
92
  "storybook": "start-storybook -p 6006",