@kite-copilot/chat-panel 0.2.29 → 0.2.32

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 CHANGED
@@ -2087,9 +2087,6 @@ function ChatPanel({
2087
2087
  };
2088
2088
  setMessages((prev) => [...prev, escalationMessage]);
2089
2089
  } else if (eventType === "token") {
2090
- if (process.env.NODE_ENV === "development") {
2091
- console.debug("[SSE] Token delta:", data.delta?.length || 0, "chars");
2092
- }
2093
2090
  }
2094
2091
  } catch (parseError) {
2095
2092
  console.error("Failed to parse SSE event:", parseError);
@@ -2958,10 +2955,7 @@ ${userText}`
2958
2955
  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);
2959
2956
  }
2960
2957
  if (message.role === "agent") {
2961
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: `flex justify-start ${isRoleChange ? "mt-3" : ""}`, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "max-w-[260px] rounded-2xl rounded-bl-md bg-blue-50 border border-blue-200 px-3.5 py-2.5 text-sm text-gray-900 shadow-sm", children: [
2962
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "text-xs text-blue-600 font-medium mb-1", children: "Support Agent" }),
2963
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "whitespace-pre-wrap leading-relaxed", children: renderMarkdown(message.content || "") })
2964
- ] }) }, message.id);
2958
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: `flex justify-start ${isRoleChange ? "mt-3" : ""}`, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "max-w-[260px] rounded-2xl rounded-bl-md bg-blue-500 px-3.5 py-2.5 text-sm text-white shadow-sm", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "whitespace-pre-wrap leading-relaxed", children: renderMarkdown(message.content || "") }) }) }, message.id);
2965
2959
  }
2966
2960
  if (message.kind === "searchSummary") {
2967
2961
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
package/dist/auto.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createKiteChat
3
- } from "./chunk-DGU3KTFD.js";
3
+ } from "./chunk-5NNBNZBS.js";
4
4
 
5
5
  // src/auto.ts
6
6
  function mountKiteChat(config) {
@@ -2086,9 +2086,6 @@ function ChatPanel({
2086
2086
  };
2087
2087
  setMessages((prev) => [...prev, escalationMessage]);
2088
2088
  } else if (eventType === "token") {
2089
- if (process.env.NODE_ENV === "development") {
2090
- console.debug("[SSE] Token delta:", data.delta?.length || 0, "chars");
2091
- }
2092
2089
  }
2093
2090
  } catch (parseError) {
2094
2091
  console.error("Failed to parse SSE event:", parseError);
@@ -2957,10 +2954,7 @@ ${userText}`
2957
2954
  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);
2958
2955
  }
2959
2956
  if (message.role === "agent") {
2960
- return /* @__PURE__ */ jsx9("div", { className: `flex justify-start ${isRoleChange ? "mt-3" : ""}`, children: /* @__PURE__ */ jsxs5("div", { className: "max-w-[260px] rounded-2xl rounded-bl-md bg-blue-50 border border-blue-200 px-3.5 py-2.5 text-sm text-gray-900 shadow-sm", children: [
2961
- /* @__PURE__ */ jsx9("div", { className: "text-xs text-blue-600 font-medium mb-1", children: "Support Agent" }),
2962
- /* @__PURE__ */ jsx9("div", { className: "whitespace-pre-wrap leading-relaxed", children: renderMarkdown(message.content || "") })
2963
- ] }) }, message.id);
2957
+ return /* @__PURE__ */ jsx9("div", { className: `flex justify-start ${isRoleChange ? "mt-3" : ""}`, children: /* @__PURE__ */ jsx9("div", { className: "max-w-[260px] rounded-2xl rounded-bl-md bg-blue-500 px-3.5 py-2.5 text-sm text-white shadow-sm", children: /* @__PURE__ */ jsx9("div", { className: "whitespace-pre-wrap leading-relaxed", children: renderMarkdown(message.content || "") }) }) }, message.id);
2964
2958
  }
2965
2959
  if (message.kind === "searchSummary") {
2966
2960
  return /* @__PURE__ */ jsx9(