@docyrus/ui-pro-ai-assistant 0.7.2 → 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.
- package/dist/docy-assistant.d.ts +1 -1
- package/dist/hooks/use-session-state.d.ts +1 -0
- package/dist/index.js +69 -5
- package/dist/index.js.map +1 -1
- package/dist/lib/assistant-api-actions.d.ts +1 -1
- package/dist/styles.css +5 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/views/sidebar-content.d.ts +2 -0
- package/package.json +1 -1
|
@@ -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);
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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