@kite-copilot/chat-panel 0.2.32 → 0.2.34

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
@@ -1367,7 +1367,12 @@ function ChatPanel({
1367
1367
  currentPage,
1368
1368
  agentUrl = DEFAULT_AGENT_URL,
1369
1369
  startingQuestions: startingQuestionsProp,
1370
- startingQuestionsEndpoint
1370
+ startingQuestionsEndpoint,
1371
+ userId,
1372
+ orgId,
1373
+ userName,
1374
+ userEmail,
1375
+ userOrganization
1371
1376
  } = {}) {
1372
1377
  const [messages, setMessages] = React4.useState(initialMessages);
1373
1378
  const [input, setInput] = React4.useState("");
@@ -1938,7 +1943,12 @@ function ChatPanel({
1938
1943
  body: JSON.stringify({
1939
1944
  session_id: sessionId,
1940
1945
  message: userText,
1941
- current_page: currentPage || "dashboard"
1946
+ current_page: currentPage || "dashboard",
1947
+ user_id: userId,
1948
+ user_name: userName,
1949
+ user_email: userEmail,
1950
+ user_organization: userOrganization,
1951
+ org_id: orgId
1942
1952
  }),
1943
1953
  signal: controller.signal
1944
1954
  });
@@ -2198,6 +2208,7 @@ ${userText}`
2198
2208
  formData.append("message", userText);
2199
2209
  formData.append("session_id", sessionId);
2200
2210
  formData.append("current_page", currentPage || "dashboard");
2211
+ if (orgId) formData.append("org_id", orgId);
2201
2212
  const controller = new AbortController();
2202
2213
  const timeoutId = setTimeout(() => controller.abort(), 12e4);
2203
2214
  const response = await fetch(`${agentUrl}/chat/bulk/stream`, {
@@ -2915,7 +2926,7 @@ ${userText}`
2915
2926
  size: "sm",
2916
2927
  className: "h-7 w-7 p-0 text-gray-400 hover:text-gray-600 hover:bg-gray-100 rounded-full",
2917
2928
  onClick: () => onClose?.(),
2918
- children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react4.X, { className: "h-3.5 w-3.5" })
2929
+ children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react4.Minus, { className: "h-3.5 w-3.5" })
2919
2930
  }
2920
2931
  )
2921
2932
  ] })
@@ -4222,7 +4233,12 @@ function ChatPanelWithToggle({
4222
4233
  startingQuestionsEndpoint,
4223
4234
  defaultOpen = false,
4224
4235
  isOpen: controlledIsOpen,
4225
- onOpenChange
4236
+ onOpenChange,
4237
+ userId,
4238
+ orgId,
4239
+ userName,
4240
+ userEmail,
4241
+ userOrganization
4226
4242
  }) {
4227
4243
  const [internalIsOpen, setInternalIsOpen] = React4.useState(defaultOpen);
4228
4244
  const isOpen = controlledIsOpen !== void 0 ? controlledIsOpen : internalIsOpen;
@@ -4253,7 +4269,12 @@ function ChatPanelWithToggle({
4253
4269
  currentPage,
4254
4270
  agentUrl,
4255
4271
  startingQuestions,
4256
- startingQuestionsEndpoint
4272
+ startingQuestionsEndpoint,
4273
+ userId,
4274
+ orgId,
4275
+ userName,
4276
+ userEmail,
4277
+ userOrganization
4257
4278
  }
4258
4279
  );
4259
4280
  }
@@ -4318,7 +4339,12 @@ function KiteChatWrapper({
4318
4339
  onNavigate: (page, subtab) => config.onNavigate?.(page, subtab),
4319
4340
  onActionComplete: config.onActionComplete,
4320
4341
  startingQuestions: config.startingQuestions,
4321
- startingQuestionsEndpoint: config.startingQuestionsEndpoint
4342
+ startingQuestionsEndpoint: config.startingQuestionsEndpoint,
4343
+ userId: config.userId,
4344
+ orgId: config.orgId,
4345
+ userName: config.userName,
4346
+ userEmail: config.userEmail,
4347
+ userOrganization: config.userOrganization
4322
4348
  }
4323
4349
  );
4324
4350
  }
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- export { i as ActionData, A as ActionType, C as ChatPanel, d as ChatPanelProps, b as ChatPanelWithToggle, e as ChatPanelWithToggleProps, H as HelpButton, g as HelpButtonProps, K as KiteChatConfig, a as KiteChatInstance, N as NavigationTarget, h as Page, P as PanelToggle, f as PanelToggleProps, S as SettingsTab, j as StartingQuestion, c as createKiteChat } from './createKiteChat-CyoN-YV4.cjs';
1
+ export { i as ActionData, A as ActionType, C as ChatPanel, d as ChatPanelProps, b as ChatPanelWithToggle, e as ChatPanelWithToggleProps, H as HelpButton, g as HelpButtonProps, K as KiteChatConfig, a as KiteChatInstance, N as NavigationTarget, h as Page, P as PanelToggle, f as PanelToggleProps, S as SettingsTab, j as StartingQuestion, c as createKiteChat } from './createKiteChat-DPFkdPqV.cjs';
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
  import * as class_variance_authority_types from 'class-variance-authority/types';
4
4
  import * as React from 'react';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { i as ActionData, A as ActionType, C as ChatPanel, d as ChatPanelProps, b as ChatPanelWithToggle, e as ChatPanelWithToggleProps, H as HelpButton, g as HelpButtonProps, K as KiteChatConfig, a as KiteChatInstance, N as NavigationTarget, h as Page, P as PanelToggle, f as PanelToggleProps, S as SettingsTab, j as StartingQuestion, c as createKiteChat } from './createKiteChat-CyoN-YV4.js';
1
+ export { i as ActionData, A as ActionType, C as ChatPanel, d as ChatPanelProps, b as ChatPanelWithToggle, e as ChatPanelWithToggleProps, H as HelpButton, g as HelpButtonProps, K as KiteChatConfig, a as KiteChatInstance, N as NavigationTarget, h as Page, P as PanelToggle, f as PanelToggleProps, S as SettingsTab, j as StartingQuestion, c as createKiteChat } from './createKiteChat-DPFkdPqV.js';
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
  import * as class_variance_authority_types from 'class-variance-authority/types';
4
4
  import * as React from 'react';
package/dist/index.js CHANGED
@@ -31,7 +31,7 @@ import {
31
31
  cn,
32
32
  createKiteChat,
33
33
  useGuideCursor
34
- } from "./chunk-5NNBNZBS.js";
34
+ } from "./chunk-URD5MNZI.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.32",
3
+ "version": "0.2.34",
4
4
  "description": "AI-powered chat panel SDK with programmatic lifecycle control",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",