@docyrus/ui-pro-ai-assistant 0.7.1 → 0.7.3

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.
@@ -9,7 +9,7 @@ type ApiClient = {
9
9
  deleteWithBody?: (url: string, body?: unknown) => Promise<any>;
10
10
  };
11
11
  type TranslationFn = (key: string) => string;
12
- export declare function fetchAgentThreads(apiClient: ApiClient, tenantAiAgentId: string, onSuccess: (threads: AssistantSession[]) => void, userId?: string | null, deploymentId?: string | null): Promise<void>;
12
+ export declare function fetchAgentThreads(apiClient: ApiClient, tenantAiAgentId: string, onSuccess: (threads: AssistantSession[]) => void, userId?: string | null, deploymentId?: string | null, limit?: number, offset?: number): Promise<void>;
13
13
  export declare function fetchProjectThreads(apiClient: ApiClient, projectId: string, onSuccess: (projectId: string, threads: AssistantSession[]) => void): Promise<void>;
14
14
  export declare function fetchProjectWorks(apiClient: ApiClient, projectId: string, onSuccess: (projectId: string, works: Work[]) => void, tenantAiAgentId?: string, userId?: string | null): Promise<void>;
15
15
  export declare function fetchProjects(apiClient: ApiClient, userId: string | null, onSuccess: (projects: Project[]) => void, onProjectLoaded: (project: Project) => void, onComplete: () => void, tenantAiAgentId?: string): Promise<void>;
package/dist/styles.css CHANGED
@@ -5313,6 +5313,11 @@
5313
5313
  padding-block: calc(var(--spacing) * 3);
5314
5314
  }
5315
5315
  }
5316
+ .group-\[\.is-user\]\:text-foreground {
5317
+ &:is(:where(.group):is(.is-user) *) {
5318
+ color: var(--foreground);
5319
+ }
5320
+ }
5316
5321
  .group-\[\.is-user\]\:text-secondary-foreground {
5317
5322
  &:is(:where(.group):is(.is-user) *) {
5318
5323
  color: var(--secondary-foreground);
@@ -309,6 +309,12 @@ export interface DocyAssistantProps {
309
309
  onVoiceEnd?: () => void;
310
310
  className?: string;
311
311
  defaultFullscreen?: boolean;
312
+ /**
313
+ * Controlled fullscreen state. When provided, the package no longer manages
314
+ * its own fullscreen state — pair with `onFullscreenChange` to fully control
315
+ * the expand button.
316
+ */
317
+ isFullscreen?: boolean;
312
318
  hideExpand?: boolean;
313
319
  /** Hide the close (X) button in the header */
314
320
  hideCloseButton?: boolean;
@@ -16,6 +16,8 @@ interface SidebarContentProps {
16
16
  onShowMoreProjects: () => void;
17
17
  onNewProject?: () => void;
18
18
  onToggleSidebar?: () => void;
19
+ onLoadMoreSessions?: () => void;
20
+ hasMoreSessions?: boolean;
19
21
  supportWorkCanvas?: boolean;
20
22
  t: (key: string) => string;
21
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docyrus/ui-pro-ai-assistant",
3
- "version": "0.7.1",
3
+ "version": "0.7.3",
4
4
  "description": "Docyrus AI Assistant component — full-featured chat UI with canvas, projects, and i18n support.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",