llmasaservice-ui 0.2.8 → 0.2.10
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/dist/index.js +2 -4
- package/dist/index.mjs +1 -3
- package/package.json +1 -1
- package/src/ChatPanel.tsx +3 -3
package/dist/index.js
CHANGED
|
@@ -69,8 +69,7 @@ var import_react = __toESM(require("react"));
|
|
|
69
69
|
var import_react_markdown = __toESM(require("react-markdown"));
|
|
70
70
|
var import_remark_gfm = __toESM(require("remark-gfm"));
|
|
71
71
|
var import_react_syntax_highlighter = require("react-syntax-highlighter");
|
|
72
|
-
var
|
|
73
|
-
var import_material_light = __toESM(require("react-syntax-highlighter/dist/cjs/styles/prism/material-light.js"));
|
|
72
|
+
var import_prism = require("react-syntax-highlighter/dist/esm/styles/prism");
|
|
74
73
|
var ChatPanel = ({
|
|
75
74
|
project_id,
|
|
76
75
|
initialPrompt = "",
|
|
@@ -185,7 +184,6 @@ var ChatPanel = ({
|
|
|
185
184
|
};
|
|
186
185
|
const CodeBlock = (_a) => {
|
|
187
186
|
var _b = _a, { node, className, children, style } = _b, props = __objRest(_b, ["node", "className", "children", "style"]);
|
|
188
|
-
console.log("CodeBlock", className, children, style, props);
|
|
189
187
|
const match = /language-(\w+)/.exec(className || "");
|
|
190
188
|
return match ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
191
189
|
"div",
|
|
@@ -233,7 +231,7 @@ var ChatPanel = ({
|
|
|
233
231
|
), /* @__PURE__ */ import_react.default.createElement(
|
|
234
232
|
import_react_syntax_highlighter.Prism,
|
|
235
233
|
__spreadValues({
|
|
236
|
-
style: theme === "light" ?
|
|
234
|
+
style: theme === "light" ? import_prism.materialLight : import_prism.materialDark,
|
|
237
235
|
PreTag: "div",
|
|
238
236
|
language: match[1]
|
|
239
237
|
}, props),
|
package/dist/index.mjs
CHANGED
|
@@ -36,8 +36,7 @@ import React, { useEffect, useRef, useState } from "react";
|
|
|
36
36
|
import ReactMarkdown from "react-markdown";
|
|
37
37
|
import remarkGfm from "remark-gfm";
|
|
38
38
|
import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
|
|
39
|
-
import materialDark from "react-syntax-highlighter/dist/
|
|
40
|
-
import materialLight from "react-syntax-highlighter/dist/cjs/styles/prism/material-light.js";
|
|
39
|
+
import { materialLight, materialDark } from "react-syntax-highlighter/dist/esm/styles/prism";
|
|
41
40
|
var ChatPanel = ({
|
|
42
41
|
project_id,
|
|
43
42
|
initialPrompt = "",
|
|
@@ -152,7 +151,6 @@ var ChatPanel = ({
|
|
|
152
151
|
};
|
|
153
152
|
const CodeBlock = (_a) => {
|
|
154
153
|
var _b = _a, { node, className, children, style } = _b, props = __objRest(_b, ["node", "className", "children", "style"]);
|
|
155
|
-
console.log("CodeBlock", className, children, style, props);
|
|
156
154
|
const match = /language-(\w+)/.exec(className || "");
|
|
157
155
|
return match ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
158
156
|
"div",
|
package/package.json
CHANGED
package/src/ChatPanel.tsx
CHANGED
|
@@ -6,8 +6,9 @@ import remarkGfm from "remark-gfm";
|
|
|
6
6
|
import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
|
|
7
7
|
|
|
8
8
|
//import materialDark from "react-syntax-highlighter/dist/cjs/styles/prism/material-dark";
|
|
9
|
-
import materialDark from 'react-syntax-highlighter/dist/cjs/styles/prism/material-dark.js';
|
|
10
|
-
import materialLight from "react-syntax-highlighter/dist/cjs/styles/prism/material-light.js";
|
|
9
|
+
//import materialDark from 'react-syntax-highlighter/dist/cjs/styles/prism/material-dark.js';
|
|
10
|
+
//import materialLight from "react-syntax-highlighter/dist/cjs/styles/prism/material-light.js";
|
|
11
|
+
import { materialLight, materialDark } from "react-syntax-highlighter/dist/esm/styles/prism";
|
|
11
12
|
|
|
12
13
|
export interface ChatPanelProps {
|
|
13
14
|
project_id: string;
|
|
@@ -172,7 +173,6 @@ const ChatPanel: React.FC<ChatPanelProps & ExtraProps> = ({
|
|
|
172
173
|
};
|
|
173
174
|
|
|
174
175
|
const CodeBlock = ({ node, className, children, style, ...props }: any) => {
|
|
175
|
-
console.log("CodeBlock", className, children, style, props);
|
|
176
176
|
const match = /language-(\w+)/.exec(className || "");
|
|
177
177
|
|
|
178
178
|
return match ? (
|