@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.
- package/lib/cjs/components/webchatcontainerstateful/common/defaultStyles/defaultWebChatStyles.js +26 -1
- package/lib/cjs/plugins/createChatTranscript.js +7 -0
- package/lib/esm/components/webchatcontainerstateful/common/defaultStyles/defaultWebChatStyles.js +26 -1
- package/lib/esm/plugins/createChatTranscript.js +7 -0
- package/package.json +3 -3
package/lib/cjs/components/webchatcontainerstateful/common/defaultStyles/defaultWebChatStyles.js
CHANGED
|
@@ -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>
|
package/lib/esm/components/webchatcontainerstateful/common/defaultStyles/defaultWebChatStyles.js
CHANGED
|
@@ -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
|
|
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.
|
|
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":
|
|
89
|
+
"simple-update-in":"2.2.0"
|
|
90
90
|
},
|
|
91
91
|
"scripts": {
|
|
92
92
|
"storybook": "start-storybook -p 6006",
|