forked from CopilotKit/CopilotKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcopilot-chat-input-defaults.ts
More file actions
45 lines (44 loc) · 1.58 KB
/
Copy pathcopilot-chat-input-defaults.ts
File metadata and controls
45 lines (44 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import { CopilotChatTextarea } from "./copilot-chat-textarea";
import { CopilotChatAudioRecorder } from "./copilot-chat-audio-recorder";
import {
CopilotChatSendButton,
CopilotChatStartTranscribeButton,
CopilotChatCancelTranscribeButton,
CopilotChatFinishTranscribeButton,
CopilotChatAddFileButton,
} from "./copilot-chat-buttons";
import { CopilotChatToolbar } from "./copilot-chat-toolbar";
import { CopilotChatToolsMenu } from "./copilot-chat-tools-menu";
/**
* Default components used by CopilotChatInput.
* These can be imported and reused when creating custom slot implementations.
*
* @example
* ```typescript
* import { CopilotChatInputDefaults } from '@copilotkit/angular';
*
* @Component({
standalone: true,
* template: `
* <copilot-chat-input [sendButtonSlot]="CustomSendButton">
* </copilot-chat-input>
* `
* })
* export class MyComponent {
* CustomSendButton = class extends CopilotChatInputDefaults.SendButton {
* // Custom implementation
* };
* }
* ```
*/
export class CopilotChatInputDefaults {
static readonly TextArea = CopilotChatTextarea;
static readonly AudioRecorder = CopilotChatAudioRecorder;
static readonly SendButton = CopilotChatSendButton;
static readonly StartTranscribeButton = CopilotChatStartTranscribeButton;
static readonly CancelTranscribeButton = CopilotChatCancelTranscribeButton;
static readonly FinishTranscribeButton = CopilotChatFinishTranscribeButton;
static readonly AddFileButton = CopilotChatAddFileButton;
static readonly Toolbar = CopilotChatToolbar;
static readonly ToolsMenu = CopilotChatToolsMenu;
}