@hef2024/llmasaservice-ui 0.26.0 → 0.26.1
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 +16 -3
- package/dist/index.js +4 -2
- package/dist/index.mjs +4 -2
- package/package.json +1 -1
- package/src/AIChatPanel.css +18 -3
- package/src/AIChatPanel.tsx +4 -1
package/dist/index.css
CHANGED
|
@@ -4059,7 +4059,7 @@ button[data-pending=true]::after {
|
|
|
4059
4059
|
align-items: center;
|
|
4060
4060
|
gap: 4px;
|
|
4061
4061
|
flex-shrink: 0;
|
|
4062
|
-
margin-left:
|
|
4062
|
+
margin-left: 0;
|
|
4063
4063
|
}
|
|
4064
4064
|
.ai-chat-context-pill-anchor {
|
|
4065
4065
|
position: relative;
|
|
@@ -4141,8 +4141,10 @@ button[data-pending=true]::after {
|
|
|
4141
4141
|
.ai-chat-context-pill {
|
|
4142
4142
|
display: flex;
|
|
4143
4143
|
align-items: center;
|
|
4144
|
-
|
|
4145
|
-
|
|
4144
|
+
justify-content: center;
|
|
4145
|
+
gap: 0;
|
|
4146
|
+
min-width: 30px;
|
|
4147
|
+
padding: 4px 8px;
|
|
4146
4148
|
background: var(--ai-chat-suggestion-bg, #f3f4f6);
|
|
4147
4149
|
border: none;
|
|
4148
4150
|
border-radius: 999px;
|
|
@@ -4172,6 +4174,17 @@ button[data-pending=true]::after {
|
|
|
4172
4174
|
color: var(--ai-sidebar-text-muted, #6b7280);
|
|
4173
4175
|
font-size: 12px;
|
|
4174
4176
|
}
|
|
4177
|
+
.ai-chat-context-pill__icon {
|
|
4178
|
+
display: inline-flex;
|
|
4179
|
+
align-items: center;
|
|
4180
|
+
justify-content: center;
|
|
4181
|
+
width: 14px;
|
|
4182
|
+
height: 14px;
|
|
4183
|
+
}
|
|
4184
|
+
.ai-chat-context-pill__icon .ai-chat-icon-sm {
|
|
4185
|
+
width: 14px;
|
|
4186
|
+
height: 14px;
|
|
4187
|
+
}
|
|
4175
4188
|
.ai-chat-context-pill__tokens {
|
|
4176
4189
|
display: none;
|
|
4177
4190
|
}
|
package/dist/index.js
CHANGED
|
@@ -5140,6 +5140,7 @@ var ChevronUpIcon = () => /* @__PURE__ */ import_react14.default.createElement("
|
|
|
5140
5140
|
var AgentIcon = () => /* @__PURE__ */ import_react14.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "ai-chat-icon-sm" }, /* @__PURE__ */ import_react14.default.createElement("path", { d: "M12 8V4H8" }), /* @__PURE__ */ import_react14.default.createElement("rect", { width: "16", height: "12", x: "4", y: "8", rx: "2" }), /* @__PURE__ */ import_react14.default.createElement("path", { d: "M2 14h2" }), /* @__PURE__ */ import_react14.default.createElement("path", { d: "M20 14h2" }), /* @__PURE__ */ import_react14.default.createElement("path", { d: "M15 13v2" }), /* @__PURE__ */ import_react14.default.createElement("path", { d: "M9 13v2" }));
|
|
5141
5141
|
var ToolIcon = () => /* @__PURE__ */ import_react14.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "ai-chat-icon-sm" }, /* @__PURE__ */ import_react14.default.createElement("path", { d: "M14.7 6.3a4 4 0 0 0-5.4 5.4l-6 6a2 2 0 0 0 2.8 2.8l6-6a4 4 0 0 0 5.4-5.4l-2.1 2.1-3.3-3.3 2.6-1.6Z" }));
|
|
5142
5142
|
var CheckIcon = () => /* @__PURE__ */ import_react14.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "ai-chat-icon-sm" }, /* @__PURE__ */ import_react14.default.createElement("polyline", { points: "20 6 9 17 4 12" }));
|
|
5143
|
+
var ContextViewerIcon = () => /* @__PURE__ */ import_react14.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "ai-chat-icon-sm" }, /* @__PURE__ */ import_react14.default.createElement("path", { d: "M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z" }), /* @__PURE__ */ import_react14.default.createElement("polyline", { points: "14 2 14 8 20 8" }), /* @__PURE__ */ import_react14.default.createElement("line", { x1: "16", x2: "8", y1: "13", y2: "13" }), /* @__PURE__ */ import_react14.default.createElement("line", { x1: "16", x2: "8", y1: "17", y2: "17" }), /* @__PURE__ */ import_react14.default.createElement("line", { x1: "10", x2: "8", y1: "9", y2: "9" }));
|
|
5143
5144
|
var LLMAsAServiceLogo = () => /* @__PURE__ */ import_react14.default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 72 72", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ import_react14.default.createElement("ellipse", { cx: "14.0868", cy: "59.2146", rx: "7.8261", ry: "7.7854", fill: "#2487D8" }), /* @__PURE__ */ import_react14.default.createElement("ellipse", { cx: "24.9013", cy: "43.0776", rx: "6.11858", ry: "6.08676", fill: "#2487D8" }), /* @__PURE__ */ import_react14.default.createElement("ellipse", { cx: "45.391", cy: "43.0776", rx: "6.11858", ry: "6.08676", fill: "#2487D8" }), /* @__PURE__ */ import_react14.default.createElement("ellipse", { cx: "65.8813", cy: "43.0776", rx: "6.11858", ry: "6.08676", fill: "#2487D8" }), /* @__PURE__ */ import_react14.default.createElement("ellipse", { cx: "35.1461", cy: "26.5327", rx: "4.41103", ry: "4.3878", fill: "#2487D8" }), /* @__PURE__ */ import_react14.default.createElement("ellipse", { cx: "55.6364", cy: "26.5327", rx: "4.41103", ry: "4.3878", fill: "#2487D8" }), /* @__PURE__ */ import_react14.default.createElement("ellipse", { cx: "45.391", cy: "10.3959", rx: "2.70351", ry: "2.68919", fill: "#2487D8" }));
|
|
5144
5145
|
var AlertCircleIcon = () => /* @__PURE__ */ import_react14.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "ai-chat-icon-sm" }, /* @__PURE__ */ import_react14.default.createElement("circle", { cx: "12", cy: "12", r: "10" }), /* @__PURE__ */ import_react14.default.createElement("line", { x1: "12", x2: "12", y1: "8", y2: "12" }), /* @__PURE__ */ import_react14.default.createElement("line", { x1: "12", x2: "12.01", y1: "16", y2: "16" }));
|
|
5145
5146
|
var CloseIcon = () => /* @__PURE__ */ import_react14.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "ai-chat-icon-sm" }, /* @__PURE__ */ import_react14.default.createElement("line", { x1: "18", x2: "6", y1: "6", y2: "18" }), /* @__PURE__ */ import_react14.default.createElement("line", { x1: "6", x2: "18", y1: "6", y2: "18" }));
|
|
@@ -5553,9 +5554,10 @@ var ChatInput = import_react14.default.memo(({
|
|
|
5553
5554
|
}
|
|
5554
5555
|
},
|
|
5555
5556
|
type: "button",
|
|
5556
|
-
title: "View context"
|
|
5557
|
+
title: "View context",
|
|
5558
|
+
"aria-label": "View context"
|
|
5557
5559
|
},
|
|
5558
|
-
/* @__PURE__ */ import_react14.default.createElement("span", { className: "ai-chat-context-
|
|
5560
|
+
/* @__PURE__ */ import_react14.default.createElement("span", { className: "ai-chat-context-pill__icon", "aria-hidden": "true" }, /* @__PURE__ */ import_react14.default.createElement(ContextViewerIcon, null))
|
|
5559
5561
|
), contextViewerOpen && /* @__PURE__ */ import_react14.default.createElement(
|
|
5560
5562
|
"div",
|
|
5561
5563
|
{
|
package/dist/index.mjs
CHANGED
|
@@ -5105,6 +5105,7 @@ var ChevronUpIcon = () => /* @__PURE__ */ React14.createElement("svg", { xmlns:
|
|
|
5105
5105
|
var AgentIcon = () => /* @__PURE__ */ React14.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "ai-chat-icon-sm" }, /* @__PURE__ */ React14.createElement("path", { d: "M12 8V4H8" }), /* @__PURE__ */ React14.createElement("rect", { width: "16", height: "12", x: "4", y: "8", rx: "2" }), /* @__PURE__ */ React14.createElement("path", { d: "M2 14h2" }), /* @__PURE__ */ React14.createElement("path", { d: "M20 14h2" }), /* @__PURE__ */ React14.createElement("path", { d: "M15 13v2" }), /* @__PURE__ */ React14.createElement("path", { d: "M9 13v2" }));
|
|
5106
5106
|
var ToolIcon = () => /* @__PURE__ */ React14.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "ai-chat-icon-sm" }, /* @__PURE__ */ React14.createElement("path", { d: "M14.7 6.3a4 4 0 0 0-5.4 5.4l-6 6a2 2 0 0 0 2.8 2.8l6-6a4 4 0 0 0 5.4-5.4l-2.1 2.1-3.3-3.3 2.6-1.6Z" }));
|
|
5107
5107
|
var CheckIcon = () => /* @__PURE__ */ React14.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "ai-chat-icon-sm" }, /* @__PURE__ */ React14.createElement("polyline", { points: "20 6 9 17 4 12" }));
|
|
5108
|
+
var ContextViewerIcon = () => /* @__PURE__ */ React14.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "ai-chat-icon-sm" }, /* @__PURE__ */ React14.createElement("path", { d: "M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z" }), /* @__PURE__ */ React14.createElement("polyline", { points: "14 2 14 8 20 8" }), /* @__PURE__ */ React14.createElement("line", { x1: "16", x2: "8", y1: "13", y2: "13" }), /* @__PURE__ */ React14.createElement("line", { x1: "16", x2: "8", y1: "17", y2: "17" }), /* @__PURE__ */ React14.createElement("line", { x1: "10", x2: "8", y1: "9", y2: "9" }));
|
|
5108
5109
|
var LLMAsAServiceLogo = () => /* @__PURE__ */ React14.createElement("svg", { width: "16", height: "16", viewBox: "0 0 72 72", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React14.createElement("ellipse", { cx: "14.0868", cy: "59.2146", rx: "7.8261", ry: "7.7854", fill: "#2487D8" }), /* @__PURE__ */ React14.createElement("ellipse", { cx: "24.9013", cy: "43.0776", rx: "6.11858", ry: "6.08676", fill: "#2487D8" }), /* @__PURE__ */ React14.createElement("ellipse", { cx: "45.391", cy: "43.0776", rx: "6.11858", ry: "6.08676", fill: "#2487D8" }), /* @__PURE__ */ React14.createElement("ellipse", { cx: "65.8813", cy: "43.0776", rx: "6.11858", ry: "6.08676", fill: "#2487D8" }), /* @__PURE__ */ React14.createElement("ellipse", { cx: "35.1461", cy: "26.5327", rx: "4.41103", ry: "4.3878", fill: "#2487D8" }), /* @__PURE__ */ React14.createElement("ellipse", { cx: "55.6364", cy: "26.5327", rx: "4.41103", ry: "4.3878", fill: "#2487D8" }), /* @__PURE__ */ React14.createElement("ellipse", { cx: "45.391", cy: "10.3959", rx: "2.70351", ry: "2.68919", fill: "#2487D8" }));
|
|
5109
5110
|
var AlertCircleIcon = () => /* @__PURE__ */ React14.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "ai-chat-icon-sm" }, /* @__PURE__ */ React14.createElement("circle", { cx: "12", cy: "12", r: "10" }), /* @__PURE__ */ React14.createElement("line", { x1: "12", x2: "12", y1: "8", y2: "12" }), /* @__PURE__ */ React14.createElement("line", { x1: "12", x2: "12.01", y1: "16", y2: "16" }));
|
|
5110
5111
|
var CloseIcon = () => /* @__PURE__ */ React14.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "ai-chat-icon-sm" }, /* @__PURE__ */ React14.createElement("line", { x1: "18", x2: "6", y1: "6", y2: "18" }), /* @__PURE__ */ React14.createElement("line", { x1: "6", x2: "18", y1: "6", y2: "18" }));
|
|
@@ -5518,9 +5519,10 @@ var ChatInput = React14.memo(({
|
|
|
5518
5519
|
}
|
|
5519
5520
|
},
|
|
5520
5521
|
type: "button",
|
|
5521
|
-
title: "View context"
|
|
5522
|
+
title: "View context",
|
|
5523
|
+
"aria-label": "View context"
|
|
5522
5524
|
},
|
|
5523
|
-
/* @__PURE__ */ React14.createElement("span", { className: "ai-chat-context-
|
|
5525
|
+
/* @__PURE__ */ React14.createElement("span", { className: "ai-chat-context-pill__icon", "aria-hidden": "true" }, /* @__PURE__ */ React14.createElement(ContextViewerIcon, null))
|
|
5524
5526
|
), contextViewerOpen && /* @__PURE__ */ React14.createElement(
|
|
5525
5527
|
"div",
|
|
5526
5528
|
{
|
package/package.json
CHANGED
package/src/AIChatPanel.css
CHANGED
|
@@ -1781,7 +1781,7 @@
|
|
|
1781
1781
|
align-items: center;
|
|
1782
1782
|
gap: 4px;
|
|
1783
1783
|
flex-shrink: 0;
|
|
1784
|
-
margin-left:
|
|
1784
|
+
margin-left: 0;
|
|
1785
1785
|
}
|
|
1786
1786
|
|
|
1787
1787
|
.ai-chat-context-pill-anchor {
|
|
@@ -1872,8 +1872,10 @@
|
|
|
1872
1872
|
.ai-chat-context-pill {
|
|
1873
1873
|
display: flex;
|
|
1874
1874
|
align-items: center;
|
|
1875
|
-
|
|
1876
|
-
|
|
1875
|
+
justify-content: center;
|
|
1876
|
+
gap: 0;
|
|
1877
|
+
min-width: 30px;
|
|
1878
|
+
padding: 4px 8px;
|
|
1877
1879
|
background: var(--ai-chat-suggestion-bg, #f3f4f6);
|
|
1878
1880
|
border: none;
|
|
1879
1881
|
border-radius: 999px;
|
|
@@ -1909,6 +1911,19 @@
|
|
|
1909
1911
|
font-size: 12px;
|
|
1910
1912
|
}
|
|
1911
1913
|
|
|
1914
|
+
.ai-chat-context-pill__icon {
|
|
1915
|
+
display: inline-flex;
|
|
1916
|
+
align-items: center;
|
|
1917
|
+
justify-content: center;
|
|
1918
|
+
width: 14px;
|
|
1919
|
+
height: 14px;
|
|
1920
|
+
}
|
|
1921
|
+
|
|
1922
|
+
.ai-chat-context-pill__icon .ai-chat-icon-sm {
|
|
1923
|
+
width: 14px;
|
|
1924
|
+
height: 14px;
|
|
1925
|
+
}
|
|
1926
|
+
|
|
1912
1927
|
.ai-chat-context-pill__tokens {
|
|
1913
1928
|
display: none;
|
|
1914
1929
|
}
|
package/src/AIChatPanel.tsx
CHANGED
|
@@ -2266,8 +2266,11 @@ const ChatInput = React.memo<ChatInputProps>(({
|
|
|
2266
2266
|
}}
|
|
2267
2267
|
type="button"
|
|
2268
2268
|
title="View context"
|
|
2269
|
+
aria-label="View context"
|
|
2269
2270
|
>
|
|
2270
|
-
<span className="ai-chat-context-
|
|
2271
|
+
<span className="ai-chat-context-pill__icon" aria-hidden="true">
|
|
2272
|
+
<ContextViewerIcon />
|
|
2273
|
+
</span>
|
|
2271
2274
|
</button>
|
|
2272
2275
|
|
|
2273
2276
|
{/* Context popover - positioned relative to context pill */}
|