@kite-copilot/chat-panel 0.2.12 → 0.2.14
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/auto.cjs +7 -7
- package/dist/auto.js +1 -1
- package/dist/{chunk-DEBLRDOF.js → chunk-3A6DAX65.js} +8 -8
- package/dist/embed.global.js +14 -13
- package/dist/index.cjs +7 -7
- package/dist/index.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +3 -2
package/dist/auto.cjs
CHANGED
|
@@ -887,7 +887,7 @@ function DataRenderer({ type, data }) {
|
|
|
887
887
|
// src/ChatPanel.tsx
|
|
888
888
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
889
889
|
var DEFAULT_AGENT_URL = "http://localhost:5002";
|
|
890
|
-
var PANEL_WIDTH =
|
|
890
|
+
var PANEL_WIDTH = 340;
|
|
891
891
|
function renderMarkdown(text) {
|
|
892
892
|
if (!text) return null;
|
|
893
893
|
const lines = text.split("\n");
|
|
@@ -2350,7 +2350,10 @@ ${userText}`
|
|
|
2350
2350
|
style: { width: `${PANEL_WIDTH}px` },
|
|
2351
2351
|
children: [
|
|
2352
2352
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex items-center justify-between px-4 py-3 border-b border-gray-100 bg-gradient-to-r from-gray-50 to-white shrink-0", children: [
|
|
2353
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.
|
|
2353
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex items-center gap-2.5", children: [
|
|
2354
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react4.Sparkles, { className: "h-3.5 w-3.5 text-black", fill: "currentColor" }),
|
|
2355
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("h3", { className: "text-sm font-semibold text-gray-800", children: "Copilot" })
|
|
2356
|
+
] }),
|
|
2354
2357
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "flex items-center gap-1", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
2355
2358
|
Button,
|
|
2356
2359
|
{
|
|
@@ -2370,10 +2373,7 @@ ${userText}`
|
|
|
2370
2373
|
) })
|
|
2371
2374
|
] }),
|
|
2372
2375
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: isEmpty ? "grid flex-1 place-items-center transition-all duration-300" : "flex flex-1 flex-col transition-all duration-300 min-h-0 overflow-hidden", children: isEmpty ? /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "w-full overflow-y-auto px-4", children: [
|
|
2373
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.
|
|
2374
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("h2", { className: "text-center text-2xl font-semibold text-gray-900", children: panelView === "folder" ? folders.find((f) => f.id === currentFolderId)?.title || "" : "What can I help with?" }),
|
|
2375
|
-
panelView === "landing" && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { className: "mt-1 text-center text-xs text-gray-500", children: "Ask me anything about your account" })
|
|
2376
|
-
] }),
|
|
2376
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "py-4 transition-all duration-300", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("h2", { className: "text-center text-2xl font-semibold text-gray-900", children: panelView === "folder" ? folders.find((f) => f.id === currentFolderId)?.title || "" : "What can I help with?" }) }),
|
|
2377
2377
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "pb-4", children: [
|
|
2378
2378
|
panelView === "landing" && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
|
|
2379
2379
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "mb-2 text-[10px] font-semibold uppercase tracking-wider text-gray-400", children: "Suggested Questions" }),
|
|
@@ -2446,7 +2446,7 @@ ${userText}`
|
|
|
2446
2446
|
return null;
|
|
2447
2447
|
}
|
|
2448
2448
|
if (isUser) {
|
|
2449
|
-
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: `flex justify-end ${isRoleChange ? "mt-3" : ""}`, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "max-w-[
|
|
2449
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: `flex justify-end ${isRoleChange ? "mt-3" : ""}`, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "max-w-[260px] rounded-2xl rounded-br-md bg-gray-900 px-3.5 py-2.5 text-sm text-white shadow-sm", children: message.content }) }, message.id);
|
|
2450
2450
|
}
|
|
2451
2451
|
if (message.kind === "searchSummary") {
|
|
2452
2452
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: `${isRoleChange ? "mt-3" : ""}`, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(AssistantSearchSummary, { title: message.title ?? "Search results", links: message.links ?? [] }) }, message.id);
|
package/dist/auto.js
CHANGED
|
@@ -883,10 +883,10 @@ function DataRenderer({ type, data }) {
|
|
|
883
883
|
|
|
884
884
|
// src/ChatPanel.tsx
|
|
885
885
|
import * as React4 from "react";
|
|
886
|
-
import { ArrowLeft, ArrowUp, Command, CornerDownLeft, CheckCircle2 as CheckCircle23, SquarePen, Paperclip, X, FileSpreadsheet, Loader2 as Loader22, ChevronLeft, ChevronRight } from "lucide-react";
|
|
886
|
+
import { ArrowLeft, ArrowUp, Command, CornerDownLeft, CheckCircle2 as CheckCircle23, SquarePen, Paperclip, X, FileSpreadsheet, Loader2 as Loader22, ChevronLeft, ChevronRight, Sparkles } from "lucide-react";
|
|
887
887
|
import { Fragment as Fragment2, jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
888
888
|
var DEFAULT_AGENT_URL = "http://localhost:5002";
|
|
889
|
-
var PANEL_WIDTH =
|
|
889
|
+
var PANEL_WIDTH = 340;
|
|
890
890
|
function renderMarkdown(text) {
|
|
891
891
|
if (!text) return null;
|
|
892
892
|
const lines = text.split("\n");
|
|
@@ -2349,7 +2349,10 @@ ${userText}`
|
|
|
2349
2349
|
style: { width: `${PANEL_WIDTH}px` },
|
|
2350
2350
|
children: [
|
|
2351
2351
|
/* @__PURE__ */ jsxs5("div", { className: "flex items-center justify-between px-4 py-3 border-b border-gray-100 bg-gradient-to-r from-gray-50 to-white shrink-0", children: [
|
|
2352
|
-
/* @__PURE__ */
|
|
2352
|
+
/* @__PURE__ */ jsxs5("div", { className: "flex items-center gap-2.5", children: [
|
|
2353
|
+
/* @__PURE__ */ jsx9(Sparkles, { className: "h-3.5 w-3.5 text-black", fill: "currentColor" }),
|
|
2354
|
+
/* @__PURE__ */ jsx9("h3", { className: "text-sm font-semibold text-gray-800", children: "Copilot" })
|
|
2355
|
+
] }),
|
|
2353
2356
|
/* @__PURE__ */ jsx9("div", { className: "flex items-center gap-1", children: /* @__PURE__ */ jsx9(
|
|
2354
2357
|
Button,
|
|
2355
2358
|
{
|
|
@@ -2369,10 +2372,7 @@ ${userText}`
|
|
|
2369
2372
|
) })
|
|
2370
2373
|
] }),
|
|
2371
2374
|
/* @__PURE__ */ jsx9("div", { className: isEmpty ? "grid flex-1 place-items-center transition-all duration-300" : "flex flex-1 flex-col transition-all duration-300 min-h-0 overflow-hidden", children: isEmpty ? /* @__PURE__ */ jsxs5("div", { className: "w-full overflow-y-auto px-4", children: [
|
|
2372
|
-
/* @__PURE__ */
|
|
2373
|
-
/* @__PURE__ */ jsx9("h2", { className: "text-center text-2xl font-semibold text-gray-900", children: panelView === "folder" ? folders.find((f) => f.id === currentFolderId)?.title || "" : "What can I help with?" }),
|
|
2374
|
-
panelView === "landing" && /* @__PURE__ */ jsx9("p", { className: "mt-1 text-center text-xs text-gray-500", children: "Ask me anything about your account" })
|
|
2375
|
-
] }),
|
|
2375
|
+
/* @__PURE__ */ jsx9("div", { className: "py-4 transition-all duration-300", children: /* @__PURE__ */ jsx9("h2", { className: "text-center text-2xl font-semibold text-gray-900", children: panelView === "folder" ? folders.find((f) => f.id === currentFolderId)?.title || "" : "What can I help with?" }) }),
|
|
2376
2376
|
/* @__PURE__ */ jsxs5("div", { className: "pb-4", children: [
|
|
2377
2377
|
panelView === "landing" && /* @__PURE__ */ jsxs5(Fragment2, { children: [
|
|
2378
2378
|
/* @__PURE__ */ jsx9("div", { className: "mb-2 text-[10px] font-semibold uppercase tracking-wider text-gray-400", children: "Suggested Questions" }),
|
|
@@ -2445,7 +2445,7 @@ ${userText}`
|
|
|
2445
2445
|
return null;
|
|
2446
2446
|
}
|
|
2447
2447
|
if (isUser) {
|
|
2448
|
-
return /* @__PURE__ */ jsx9("div", { className: `flex justify-end ${isRoleChange ? "mt-3" : ""}`, children: /* @__PURE__ */ jsx9("div", { className: "max-w-[
|
|
2448
|
+
return /* @__PURE__ */ jsx9("div", { className: `flex justify-end ${isRoleChange ? "mt-3" : ""}`, children: /* @__PURE__ */ jsx9("div", { className: "max-w-[260px] rounded-2xl rounded-br-md bg-gray-900 px-3.5 py-2.5 text-sm text-white shadow-sm", children: message.content }) }, message.id);
|
|
2449
2449
|
}
|
|
2450
2450
|
if (message.kind === "searchSummary") {
|
|
2451
2451
|
return /* @__PURE__ */ jsx9("div", { className: `${isRoleChange ? "mt-3" : ""}`, children: /* @__PURE__ */ jsx9(AssistantSearchSummary, { title: message.title ?? "Search results", links: message.links ?? [] }) }, message.id);
|