@docyrus/ui-pro-ai-assistant 0.3.7 → 0.3.9
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/README.md +1 -0
- package/dist/components/input-area.d.ts +1 -0
- package/dist/docy-assistant.d.ts +1 -1
- package/dist/index.js +160 -60
- package/dist/index.js.map +1 -1
- package/dist/styles.css +30 -9
- package/dist/types/index.d.ts +1 -0
- package/dist/views/assistant-view.d.ts +3 -0
- package/dist/views/chat-panel.d.ts +5 -2
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -560,6 +560,9 @@
|
|
|
560
560
|
.-mx-1 {
|
|
561
561
|
margin-inline: calc(var(--spacing) * -1);
|
|
562
562
|
}
|
|
563
|
+
.-mx-2 {
|
|
564
|
+
margin-inline: calc(var(--spacing) * -2);
|
|
565
|
+
}
|
|
563
566
|
.-mx-3 {
|
|
564
567
|
margin-inline: calc(var(--spacing) * -3);
|
|
565
568
|
}
|
|
@@ -719,6 +722,9 @@
|
|
|
719
722
|
.-mb-1 {
|
|
720
723
|
margin-bottom: calc(var(--spacing) * -1);
|
|
721
724
|
}
|
|
725
|
+
.-mb-2 {
|
|
726
|
+
margin-bottom: calc(var(--spacing) * -2);
|
|
727
|
+
}
|
|
722
728
|
.-mb-px {
|
|
723
729
|
margin-bottom: -1px;
|
|
724
730
|
}
|
|
@@ -1221,9 +1227,6 @@
|
|
|
1221
1227
|
.min-h-10 {
|
|
1222
1228
|
min-height: calc(var(--spacing) * 10);
|
|
1223
1229
|
}
|
|
1224
|
-
.min-h-12 {
|
|
1225
|
-
min-height: calc(var(--spacing) * 12);
|
|
1226
|
-
}
|
|
1227
1230
|
.min-h-16 {
|
|
1228
1231
|
min-height: calc(var(--spacing) * 16);
|
|
1229
1232
|
}
|
|
@@ -1545,6 +1548,9 @@
|
|
|
1545
1548
|
.max-w-\[700px\] {
|
|
1546
1549
|
max-width: 700px;
|
|
1547
1550
|
}
|
|
1551
|
+
.max-w-\[720px\] {
|
|
1552
|
+
max-width: 720px;
|
|
1553
|
+
}
|
|
1548
1554
|
.max-w-\[calc\(100\%-2rem\)\] {
|
|
1549
1555
|
max-width: calc(100% - 2rem);
|
|
1550
1556
|
}
|
|
@@ -2617,6 +2623,12 @@
|
|
|
2617
2623
|
.bg-input {
|
|
2618
2624
|
background-color: var(--input);
|
|
2619
2625
|
}
|
|
2626
|
+
.bg-input\/20 {
|
|
2627
|
+
background-color: var(--input);
|
|
2628
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2629
|
+
background-color: color-mix(in oklab, var(--input) 20%, transparent);
|
|
2630
|
+
}
|
|
2631
|
+
}
|
|
2620
2632
|
.bg-input\/30 {
|
|
2621
2633
|
background-color: var(--input);
|
|
2622
2634
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -6382,12 +6394,6 @@
|
|
|
6382
6394
|
z-index: 10;
|
|
6383
6395
|
}
|
|
6384
6396
|
}
|
|
6385
|
-
.focus\:border-none {
|
|
6386
|
-
&:focus {
|
|
6387
|
-
--tw-border-style: none;
|
|
6388
|
-
border-style: none;
|
|
6389
|
-
}
|
|
6390
|
-
}
|
|
6391
6397
|
.focus\:bg-accent {
|
|
6392
6398
|
&:focus {
|
|
6393
6399
|
background-color: var(--accent);
|
|
@@ -9878,6 +9884,16 @@
|
|
|
9878
9884
|
}
|
|
9879
9885
|
}
|
|
9880
9886
|
}
|
|
9887
|
+
.\[\&_\*\]\:my-0 {
|
|
9888
|
+
& * {
|
|
9889
|
+
margin-block: calc(var(--spacing) * 0);
|
|
9890
|
+
}
|
|
9891
|
+
}
|
|
9892
|
+
.\[\&_\*\+\*\]\:mt-2 {
|
|
9893
|
+
& *+* {
|
|
9894
|
+
margin-top: calc(var(--spacing) * 2);
|
|
9895
|
+
}
|
|
9896
|
+
}
|
|
9881
9897
|
.\[\&_\.katex-display\]\:my-0 {
|
|
9882
9898
|
& .katex-display {
|
|
9883
9899
|
margin-block: calc(var(--spacing) * 0);
|
|
@@ -10222,6 +10238,11 @@
|
|
|
10222
10238
|
}
|
|
10223
10239
|
}
|
|
10224
10240
|
}
|
|
10241
|
+
.\[\&_h4\]\:text-foreground {
|
|
10242
|
+
& h4 {
|
|
10243
|
+
color: var(--foreground);
|
|
10244
|
+
}
|
|
10245
|
+
}
|
|
10225
10246
|
.\[\&_img\]\:size-full {
|
|
10226
10247
|
& img {
|
|
10227
10248
|
width: 100%;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -217,6 +217,7 @@ export interface DocyAssistantProps {
|
|
|
217
217
|
enableNavDropdown?: boolean;
|
|
218
218
|
enableVoice?: boolean;
|
|
219
219
|
enableMicrophone?: boolean;
|
|
220
|
+
enableWelcomePage?: boolean;
|
|
220
221
|
maxMessages?: number;
|
|
221
222
|
tenantAiAgentId: string;
|
|
222
223
|
onMessageSend?: (message: string) => void;
|
|
@@ -31,6 +31,9 @@ interface AssistantViewCommonProps {
|
|
|
31
31
|
recognition?: any;
|
|
32
32
|
onMicrophoneClick?: () => void;
|
|
33
33
|
onToolAction?: (event: ToolActionEvent) => void;
|
|
34
|
+
showWelcome?: boolean;
|
|
35
|
+
recentSessions?: import('../types').AssistantSession[];
|
|
36
|
+
onSessionClick?: (session: import('../types').AssistantSession) => void;
|
|
34
37
|
threadId?: string;
|
|
35
38
|
initialModelId?: string;
|
|
36
39
|
initialFeatures?: InitialFeatureFlags;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ChangeEvent, type FormEvent, type ReactNode } from 'react';
|
|
2
|
-
import { type InitialFeatureFlags, type ToolActionEvent } from '../types';
|
|
2
|
+
import { type AssistantSession, type InitialFeatureFlags, type ToolActionEvent } from '../types';
|
|
3
3
|
export interface CanvasViewOptions {
|
|
4
4
|
type: string;
|
|
5
5
|
id: string;
|
|
@@ -51,8 +51,11 @@ export interface ChatPanelProps {
|
|
|
51
51
|
renderThreadHeader?: () => ReactNode;
|
|
52
52
|
messagesClassName?: string;
|
|
53
53
|
compactToolbar?: boolean;
|
|
54
|
+
showWelcome?: boolean;
|
|
55
|
+
recentSessions?: AssistantSession[];
|
|
56
|
+
onSessionClick?: (session: AssistantSession) => void;
|
|
54
57
|
threadId?: string;
|
|
55
58
|
initialModelId?: string;
|
|
56
59
|
initialFeatures?: InitialFeatureFlags;
|
|
57
60
|
}
|
|
58
|
-
export declare function ChatPanel({ messages, isLoading, input, onInputChange, onSendMessage, onStop, logo, userPhoto, userDisplayName, description, title, welcomeMessage, isLoadingAgent, placeholder, footerText, supportFiles, supportWebSearch, supportDocumentSearch, supportDeepResearch, supportThinking, supportWorkCanvas, supportMultiModels, deploymentId, tenantAiAgentId, enableMicrophone, enableVoice, isRecording, recognition, onMicrophoneClick, onToolAction, openCanvasView, onSendSpreadsheetCommands: _onSendSpreadsheetCommands, renderThreadHeader, messagesClassName, compactToolbar, threadId, initialModelId, initialFeatures }: ChatPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
61
|
+
export declare function ChatPanel({ messages, isLoading, input, onInputChange, onSendMessage, onStop, logo, userPhoto, userDisplayName, description, title, welcomeMessage, isLoadingAgent, placeholder, footerText, supportFiles, supportWebSearch, supportDocumentSearch, supportDeepResearch, supportThinking, supportWorkCanvas, supportMultiModels, deploymentId, tenantAiAgentId, enableMicrophone, enableVoice, isRecording, recognition, onMicrophoneClick, onToolAction, openCanvasView, onSendSpreadsheetCommands: _onSendSpreadsheetCommands, renderThreadHeader, messagesClassName, compactToolbar, showWelcome, recentSessions, onSessionClick, threadId, initialModelId, initialFeatures }: ChatPanelProps): import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED