@kite-copilot/chat-panel 0.2.37 → 0.2.39

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.cjs CHANGED
@@ -969,7 +969,7 @@ function TypingIndicator({ className = "" }) {
969
969
 
970
970
  // src/ChatPanel.tsx
971
971
  var import_jsx_runtime10 = require("react/jsx-runtime");
972
- var CHAT_PANEL_VERSION = "0.2.36";
972
+ var CHAT_PANEL_VERSION = true ? "0.2.39" : "dev";
973
973
  var DEFAULT_AGENT_URL = "http://localhost:5002";
974
974
  var PANEL_WIDTH = 340;
975
975
  function unescapeJsonString(str) {
@@ -1419,11 +1419,22 @@ function ChatPanel({
1419
1419
  console.log(`[KiteChat] Chat Panel v${CHAT_PANEL_VERSION} loaded`);
1420
1420
  }, []);
1421
1421
  const resetSession = React4.useCallback(() => {
1422
+ console.log("[KiteChat] resetSession called", { isEscalated, hasSupabase: !!supabaseRef.current, sessionId });
1422
1423
  if (isEscalated && supabaseRef.current && sessionId) {
1424
+ console.log("[KiteChat] Updating customer_status to disconnected for session:", sessionId);
1423
1425
  supabaseRef.current.from("escalations").update({
1424
1426
  customer_status: "disconnected",
1425
1427
  customer_last_seen: (/* @__PURE__ */ new Date()).toISOString()
1426
- }).eq("session_id", sessionId);
1428
+ }).eq("session_id", sessionId).then(
1429
+ (result) => {
1430
+ console.log("[KiteChat] Disconnect update result:", result);
1431
+ },
1432
+ (err) => {
1433
+ console.error("[KiteChat] Disconnect update failed:", err);
1434
+ }
1435
+ );
1436
+ } else {
1437
+ console.log("[KiteChat] Skipping disconnect update - conditions not met");
1427
1438
  }
1428
1439
  setSessionId(crypto.randomUUID());
1429
1440
  setIsEscalated(false);
package/dist/index.js CHANGED
@@ -31,7 +31,7 @@ import {
31
31
  cn,
32
32
  createKiteChat,
33
33
  useGuideCursor
34
- } from "./chunk-VXXE7QO3.js";
34
+ } from "./chunk-D4Z7O3Y7.js";
35
35
  export {
36
36
  ApiKeyList,
37
37
  AssistantActivity,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kite-copilot/chat-panel",
3
- "version": "0.2.37",
3
+ "version": "0.2.39",
4
4
  "description": "AI-powered chat panel SDK with programmatic lifecycle control",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",