whyuzeim 1.1.70 → 1.1.72

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.
@@ -2,6 +2,8 @@
2
2
 
3
3
  var agoraChatUikit = require('agora-chat-uikit');
4
4
  var React = require('react');
5
+ var remarkGfm = require('remark-gfm');
6
+ var ReactMarkdown = require('react-markdown');
5
7
 
6
8
  var AIReportMsg = function AIReportMsg(props) {
7
9
  var msg = props.msg,
@@ -74,8 +76,10 @@ var AIReportMsg = function AIReportMsg(props) {
74
76
  onReportClick && onReportClick(msg.customExts);
75
77
  }
76
78
  }, /*#__PURE__*/React.createElement("span", {
77
- className: "text-base"
78
- }, msg.customExts.content), /*#__PURE__*/React.createElement("svg", {
79
+ className: "text-base yuzuim-remarkdown"
80
+ }, /*#__PURE__*/React.createElement(ReactMarkdown, {
81
+ remarkPlugins: [remarkGfm]
82
+ }, "".concat(msg.customExts.content.replace(/^"|"$/g, '').replace(/\\n/g, '\n\n')))), /*#__PURE__*/React.createElement("svg", {
79
83
  className: "shrink-0",
80
84
  width: "8",
81
85
  height: "14",
@@ -140,7 +140,7 @@ var HighlyCustomChat = function HighlyCustomChat(props) {
140
140
  },
141
141
  className: "inline-block"
142
142
  }, /*#__PURE__*/React.createElement("span", {
143
- className: classNames("cui-message-text1", 'yuzuim-remarkdown')
143
+ className: classNames("cui-message-text1", 'yuzuim-remarkdown prose')
144
144
  }, /*#__PURE__*/React.createElement(ReactMarkdown, {
145
145
  remarkPlugins: [remarkGfm]
146
146
  }, "".concat(msg.msg.replace(/^"|"$/g, '').replace(/\\n/g, '\n\n'))))), /*#__PURE__*/React.createElement("span", {
@@ -1,5 +1,7 @@
1
1
  import { BaseMessage } from 'agora-chat-uikit';
2
2
  import React from 'react';
3
+ import remarkGfm from 'remark-gfm';
4
+ import ReactMarkdown from 'react-markdown';
3
5
 
4
6
  var AIReportMsg = function AIReportMsg(props) {
5
7
  var msg = props.msg,
@@ -72,8 +74,10 @@ var AIReportMsg = function AIReportMsg(props) {
72
74
  onReportClick && onReportClick(msg.customExts);
73
75
  }
74
76
  }, /*#__PURE__*/React.createElement("span", {
75
- className: "text-base"
76
- }, msg.customExts.content), /*#__PURE__*/React.createElement("svg", {
77
+ className: "text-base yuzuim-remarkdown"
78
+ }, /*#__PURE__*/React.createElement(ReactMarkdown, {
79
+ remarkPlugins: [remarkGfm]
80
+ }, "".concat(msg.customExts.content.replace(/^"|"$/g, '').replace(/\\n/g, '\n\n')))), /*#__PURE__*/React.createElement("svg", {
77
81
  className: "shrink-0",
78
82
  width: "8",
79
83
  height: "14",
@@ -138,7 +138,7 @@ var HighlyCustomChat = function HighlyCustomChat(props) {
138
138
  },
139
139
  className: "inline-block"
140
140
  }, /*#__PURE__*/React.createElement("span", {
141
- className: classNames("cui-message-text1", 'yuzuim-remarkdown')
141
+ className: classNames("cui-message-text1", 'yuzuim-remarkdown prose')
142
142
  }, /*#__PURE__*/React.createElement(ReactMarkdown, {
143
143
  remarkPlugins: [remarkGfm]
144
144
  }, "".concat(msg.msg.replace(/^"|"$/g, '').replace(/\\n/g, '\n\n'))))), /*#__PURE__*/React.createElement("span", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whyuzeim",
3
- "version": "1.1.70",
3
+ "version": "1.1.72",
4
4
  "description": "im componenets",
5
5
  "main": "cjs/index.js",
6
6
  "module": "es/index.js",