llmasaservice-ui 0.4.1 → 0.4.3
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.css +5 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/ChatPanel.css +5 -2
- package/src/ChatPanel.tsx +2 -0
package/dist/index.css
CHANGED
|
@@ -171,7 +171,8 @@
|
|
|
171
171
|
border: none;
|
|
172
172
|
border-radius: 8px;
|
|
173
173
|
cursor: pointer;
|
|
174
|
-
padding: 10px;
|
|
174
|
+
padding: 5px 10px;
|
|
175
|
+
font-size: 0.8em;
|
|
175
176
|
margin-top: 5px;
|
|
176
177
|
}
|
|
177
178
|
.suggestions-container {
|
|
@@ -378,10 +379,12 @@
|
|
|
378
379
|
border: none;
|
|
379
380
|
border-radius: 8px;
|
|
380
381
|
cursor: pointer;
|
|
381
|
-
padding: 10px;
|
|
382
|
+
padding: 5px 10px;
|
|
383
|
+
font-size: 0.8em;
|
|
382
384
|
margin-top: 5px;
|
|
383
385
|
}
|
|
384
386
|
.powered-by {
|
|
387
|
+
margin-top: 3px;
|
|
385
388
|
display: flex;
|
|
386
389
|
justify-content: center;
|
|
387
390
|
align-items: center;
|
package/dist/index.js
CHANGED
|
@@ -462,7 +462,7 @@ var ChatPanel = ({
|
|
|
462
462
|
const handleSuggestionClick = (suggestion) => {
|
|
463
463
|
continueChat(suggestion);
|
|
464
464
|
};
|
|
465
|
-
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
465
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, console.log("history", history), /* @__PURE__ */ import_react.default.createElement(
|
|
466
466
|
"div",
|
|
467
467
|
{
|
|
468
468
|
style: { width, height },
|
package/dist/index.mjs
CHANGED
|
@@ -429,7 +429,7 @@ var ChatPanel = ({
|
|
|
429
429
|
const handleSuggestionClick = (suggestion) => {
|
|
430
430
|
continueChat(suggestion);
|
|
431
431
|
};
|
|
432
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
432
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, console.log("history", history), /* @__PURE__ */ React.createElement(
|
|
433
433
|
"div",
|
|
434
434
|
{
|
|
435
435
|
style: { width, height },
|
package/package.json
CHANGED
package/src/ChatPanel.css
CHANGED
|
@@ -188,7 +188,8 @@
|
|
|
188
188
|
border: none;
|
|
189
189
|
border-radius: 8px;
|
|
190
190
|
cursor: pointer;
|
|
191
|
-
padding: 10px;
|
|
191
|
+
padding: 5px 10px;
|
|
192
|
+
font-size: 0.8em;
|
|
192
193
|
margin-top: 5px;
|
|
193
194
|
}
|
|
194
195
|
|
|
@@ -407,11 +408,13 @@
|
|
|
407
408
|
border: none;
|
|
408
409
|
border-radius: 8px;
|
|
409
410
|
cursor: pointer;
|
|
410
|
-
padding: 10px;
|
|
411
|
+
padding: 5px 10px;
|
|
412
|
+
font-size: 0.8em;
|
|
411
413
|
margin-top: 5px;
|
|
412
414
|
}
|
|
413
415
|
|
|
414
416
|
.powered-by {
|
|
417
|
+
margin-top: 3px;
|
|
415
418
|
display: flex;
|
|
416
419
|
justify-content: center;
|
|
417
420
|
align-items: center;
|
package/src/ChatPanel.tsx
CHANGED
|
@@ -518,6 +518,7 @@ const ChatPanel: React.FC<ChatPanelProps & ExtraProps> = ({
|
|
|
518
518
|
|
|
519
519
|
return (
|
|
520
520
|
<>
|
|
521
|
+
{console.log("history", history)}
|
|
521
522
|
<div
|
|
522
523
|
style={{ width: width, height: height }}
|
|
523
524
|
className={"side-panel" + (theme === "light" ? "" : "-dark")}
|
|
@@ -537,6 +538,7 @@ const ChatPanel: React.FC<ChatPanelProps & ExtraProps> = ({
|
|
|
537
538
|
</div>
|
|
538
539
|
</div>
|
|
539
540
|
) : null}
|
|
541
|
+
|
|
540
542
|
{Object.entries(history).map(([prompt, response], index) => (
|
|
541
543
|
<div className="history-entry" key={index}>
|
|
542
544
|
{hideInitialPrompt && index === 0 ? null : (
|