llmasaservice-ui 0.2.6 → 0.2.7
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 +3 -2
- package/dist/index.mjs +2 -4
- package/package.json +1 -1
- package/src/ChatPanel.tsx +3 -4
package/dist/index.js
CHANGED
|
@@ -69,7 +69,8 @@ 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
|
|
72
|
+
var import_material_dark = __toESM(require("react-syntax-highlighter/dist/cjs/styles/prism/material-dark"));
|
|
73
|
+
var import_material_light = __toESM(require("react-syntax-highlighter/dist/cjs/styles/prism/material-light"));
|
|
73
74
|
var ChatPanel = ({
|
|
74
75
|
project_id,
|
|
75
76
|
initialPrompt = "",
|
|
@@ -232,7 +233,7 @@ var ChatPanel = ({
|
|
|
232
233
|
), /* @__PURE__ */ import_react.default.createElement(
|
|
233
234
|
import_react_syntax_highlighter.Prism,
|
|
234
235
|
__spreadValues({
|
|
235
|
-
style: theme === "light" ?
|
|
236
|
+
style: theme === "light" ? import_material_light.default : import_material_dark.default,
|
|
236
237
|
PreTag: "div",
|
|
237
238
|
language: match[1]
|
|
238
239
|
}, props),
|
package/dist/index.mjs
CHANGED
|
@@ -36,10 +36,8 @@ 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
|
|
40
|
-
|
|
41
|
-
materialDark
|
|
42
|
-
} from "react-syntax-highlighter/dist/cjs/styles/prism";
|
|
39
|
+
import materialDark from "react-syntax-highlighter/dist/cjs/styles/prism/material-dark";
|
|
40
|
+
import materialLight from "react-syntax-highlighter/dist/cjs/styles/prism/material-light";
|
|
43
41
|
var ChatPanel = ({
|
|
44
42
|
project_id,
|
|
45
43
|
initialPrompt = "",
|
package/package.json
CHANGED
package/src/ChatPanel.tsx
CHANGED
|
@@ -4,10 +4,9 @@ import ReactMarkdown from "react-markdown";
|
|
|
4
4
|
import "./ChatPanel.css";
|
|
5
5
|
import remarkGfm from "remark-gfm";
|
|
6
6
|
import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "react-syntax-highlighter/dist/cjs/styles/prism";
|
|
7
|
+
|
|
8
|
+
import materialDark from "react-syntax-highlighter/dist/cjs/styles/prism/material-dark";
|
|
9
|
+
import materialLight from "react-syntax-highlighter/dist/cjs/styles/prism/material-light";
|
|
11
10
|
|
|
12
11
|
export interface ChatPanelProps {
|
|
13
12
|
project_id: string;
|