whyuzeim 1.1.77 → 1.1.79

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.
@@ -76,7 +76,7 @@ var AIReportMsg = function AIReportMsg(props) {
76
76
  onReportClick && onReportClick(msg.customExts);
77
77
  }
78
78
  }, /*#__PURE__*/React.createElement("span", {
79
- className: "text-base prose",
79
+ className: "text-base prose dark:prose-invert",
80
80
  style: {
81
81
  color: isMySelf ? "var(--im-msg-bubble-right-font-color)" : "var(--im-msg-bubble-font-color)"
82
82
  }
@@ -142,12 +142,13 @@ var HighlyCustomChat = function HighlyCustomChat(props) {
142
142
  },
143
143
  className: "inline-block"
144
144
  }, /*#__PURE__*/React.createElement("span", {
145
- className: classNames("cui-message-text1", 'prose'),
145
+ className: classNames("cui-message-text1", 'prose dark:prose-invert'),
146
146
  style: {
147
147
  color: isMySelf ? "var(--im-msg-bubble-right-font-color)" : "var(--im-msg-bubble-font-color)"
148
148
  }
149
149
  }, /*#__PURE__*/React.createElement(ReactMarkdown, {
150
- remarkPlugins: [remarkGfm, rehypeHighlight]
150
+ rehypePlugins: [rehypeHighlight],
151
+ remarkPlugins: [remarkGfm]
151
152
  }, "".concat(msg.msg.replace(/^"|"$/g, '').replace(/\\n/g, '\n\n'))))), /*#__PURE__*/React.createElement("span", {
152
153
  className: "cui-message-base-time"
153
154
  }, formatMessageTime(msg.time)));
@@ -74,7 +74,7 @@ var AIReportMsg = function AIReportMsg(props) {
74
74
  onReportClick && onReportClick(msg.customExts);
75
75
  }
76
76
  }, /*#__PURE__*/React.createElement("span", {
77
- className: "text-base prose",
77
+ className: "text-base prose dark:prose-invert",
78
78
  style: {
79
79
  color: isMySelf ? "var(--im-msg-bubble-right-font-color)" : "var(--im-msg-bubble-font-color)"
80
80
  }
@@ -140,12 +140,13 @@ var HighlyCustomChat = function HighlyCustomChat(props) {
140
140
  },
141
141
  className: "inline-block"
142
142
  }, /*#__PURE__*/React.createElement("span", {
143
- className: classNames("cui-message-text1", 'prose'),
143
+ className: classNames("cui-message-text1", 'prose dark:prose-invert'),
144
144
  style: {
145
145
  color: isMySelf ? "var(--im-msg-bubble-right-font-color)" : "var(--im-msg-bubble-font-color)"
146
146
  }
147
147
  }, /*#__PURE__*/React.createElement(ReactMarkdown, {
148
- remarkPlugins: [remarkGfm, rehypeHighlight]
148
+ rehypePlugins: [rehypeHighlight],
149
+ remarkPlugins: [remarkGfm]
149
150
  }, "".concat(msg.msg.replace(/^"|"$/g, '').replace(/\\n/g, '\n\n'))))), /*#__PURE__*/React.createElement("span", {
150
151
  className: "cui-message-base-time"
151
152
  }, formatMessageTime(msg.time)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whyuzeim",
3
- "version": "1.1.77",
3
+ "version": "1.1.79",
4
4
  "description": "im componenets",
5
5
  "main": "cjs/index.js",
6
6
  "module": "es/index.js",
@@ -46,6 +46,7 @@
46
46
  "highlight.js": "^11.11.1",
47
47
  "copy-to-clipboard": "^3.3.3",
48
48
  "react-markdown": "^10.1.0",
49
- "remark-gfm": "^4.0.1"
49
+ "remark-gfm": "^4.0.1",
50
+ "rehype-highlight": "^7.0.2"
50
51
  }
51
52
  }