@copilotkitnext/angular 0.0.9-alpha.2 → 0.0.10
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/esm2022/index.mjs +2 -70
- package/dist/esm2022/lib/agent.mjs +73 -0
- package/dist/esm2022/lib/chat-config.mjs +35 -0
- package/dist/esm2022/lib/chat-state.mjs +18 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-assistant-message-buttons.mjs +344 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-assistant-message-renderer.mjs +260 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-assistant-message-toolbar.mjs +22 -0
- package/dist/esm2022/{components/chat/copilot-chat-assistant-message.component.mjs → lib/components/chat/copilot-chat-assistant-message.mjs} +216 -240
- package/dist/esm2022/lib/components/chat/copilot-chat-assistant-message.types.mjs +2 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-audio-recorder.mjs +196 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-buttons.mjs +299 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-input-defaults.mjs +39 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-input.mjs +634 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-input.types.mjs +10 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-message-view-cursor.mjs +27 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-message-view.mjs +268 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-message-view.types.mjs +2 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-textarea.mjs +139 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-tool-calls-view.mjs +36 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-toolbar.mjs +20 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-tools-menu.mjs +203 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-user-message-branch-navigation.mjs +118 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-user-message-buttons.mjs +182 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-user-message-renderer.mjs +28 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-user-message-toolbar.mjs +25 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-user-message.mjs +306 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-user-message.types.mjs +2 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-view-disclaimer.mjs +48 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-view-feather.mjs +41 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-view-handlers.mjs +19 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-view-input-container.mjs +96 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-view-scroll-to-bottom-button.mjs +89 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-view-scroll-view.mjs +456 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-view.mjs +404 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-view.types.mjs +2 -0
- package/dist/esm2022/lib/components/chat/copilot-chat.mjs +167 -0
- package/dist/esm2022/lib/config.mjs +9 -0
- package/dist/esm2022/lib/copilotkit.mjs +124 -0
- package/dist/esm2022/lib/directives/copilotkit-agent-context.mjs +130 -0
- package/dist/esm2022/lib/directives/stick-to-bottom.mjs +170 -0
- package/dist/esm2022/lib/directives/tooltip.mjs +217 -0
- package/dist/esm2022/lib/human-in-the-loop.mjs +19 -0
- package/dist/esm2022/lib/render-tool-calls.mjs +131 -0
- package/dist/esm2022/lib/resize-observer.mjs +152 -0
- package/dist/esm2022/lib/scroll-position.mjs +124 -0
- package/dist/esm2022/lib/slots/copilot-slot.mjs +156 -0
- package/dist/esm2022/lib/slots/index.mjs +4 -0
- package/dist/esm2022/lib/slots/slot.types.mjs +3 -3
- package/dist/esm2022/lib/slots/slot.utils.mjs +19 -15
- package/dist/esm2022/lib/tools.mjs +31 -0
- package/dist/esm2022/lib/utils.mjs +3 -3
- package/dist/esm2022/public-api.mjs +47 -0
- package/dist/fesm2022/copilotkitnext-angular.mjs +5249 -8271
- package/dist/fesm2022/copilotkitnext-angular.mjs.map +1 -1
- package/dist/index.d.ts +1 -55
- package/dist/lib/agent.d.ts +53 -0
- package/dist/{core/chat-configuration/chat-configuration.types.d.ts → lib/chat-config.d.ts} +4 -8
- package/dist/lib/chat-state.d.ts +10 -0
- package/dist/lib/components/chat/copilot-chat-assistant-message-buttons.d.ts +68 -0
- package/dist/lib/components/chat/copilot-chat-assistant-message-renderer.d.ts +26 -0
- package/dist/lib/components/chat/copilot-chat-assistant-message-toolbar.d.ts +7 -0
- package/dist/lib/components/chat/copilot-chat-assistant-message.d.ts +178 -0
- package/dist/{components → lib/components}/chat/copilot-chat-assistant-message.types.d.ts +1 -1
- package/dist/{components/chat/copilot-chat-audio-recorder.component.d.ts → lib/components/chat/copilot-chat-audio-recorder.d.ts} +10 -10
- package/dist/lib/components/chat/copilot-chat-buttons.d.ts +65 -0
- package/dist/lib/components/chat/copilot-chat-input-defaults.d.ts +38 -0
- package/dist/lib/components/chat/copilot-chat-input.d.ts +133 -0
- package/dist/{components → lib/components}/chat/copilot-chat-input.types.d.ts +11 -11
- package/dist/lib/components/chat/copilot-chat-message-view-cursor.d.ts +11 -0
- package/dist/{components/chat/copilot-chat-message-view.component.d.ts → lib/components/chat/copilot-chat-message-view.d.ts} +68 -36
- package/dist/{components → lib/components}/chat/copilot-chat-message-view.types.d.ts +2 -2
- package/dist/lib/components/chat/copilot-chat-textarea.d.ts +41 -0
- package/dist/lib/components/chat/copilot-chat-tool-calls-view.d.ts +55 -0
- package/dist/lib/components/chat/copilot-chat-toolbar.d.ts +7 -0
- package/dist/lib/components/chat/copilot-chat-tools-menu.d.ts +20 -0
- package/dist/lib/components/chat/copilot-chat-user-message-branch-navigation.d.ts +20 -0
- package/dist/lib/components/chat/copilot-chat-user-message-buttons.d.ts +35 -0
- package/dist/lib/components/chat/copilot-chat-user-message-renderer.d.ts +8 -0
- package/dist/lib/components/chat/copilot-chat-user-message-toolbar.d.ts +7 -0
- package/dist/lib/components/chat/copilot-chat-user-message.d.ts +55 -0
- package/dist/{components → lib/components}/chat/copilot-chat-user-message.types.d.ts +2 -2
- package/dist/lib/components/chat/copilot-chat-view-disclaimer.d.ts +15 -0
- package/dist/{components/chat/copilot-chat-view-feather.component.d.ts → lib/components/chat/copilot-chat-view-feather.d.ts} +6 -6
- package/dist/{components/chat/copilot-chat-view-handlers.service.d.ts → lib/components/chat/copilot-chat-view-handlers.d.ts} +3 -3
- package/dist/lib/components/chat/copilot-chat-view-input-container.d.ts +23 -0
- package/dist/lib/components/chat/copilot-chat-view-scroll-to-bottom-button.d.ts +16 -0
- package/dist/lib/components/chat/copilot-chat-view-scroll-view.d.ts +114 -0
- package/dist/lib/components/chat/copilot-chat-view.d.ts +239 -0
- package/dist/{components → lib/components}/chat/copilot-chat-view.types.d.ts +2 -2
- package/dist/lib/components/chat/copilot-chat.d.ts +67 -0
- package/dist/lib/config.d.ts +16 -0
- package/dist/lib/copilotkit.d.ts +29 -0
- package/dist/{directives/copilotkit-agent-context.directive.d.ts → lib/directives/copilotkit-agent-context.d.ts} +5 -5
- package/dist/lib/directives/stick-to-bottom.d.ts +62 -0
- package/dist/lib/directives/tooltip.d.ts +33 -0
- package/dist/lib/human-in-the-loop.d.ts +13 -0
- package/dist/lib/render-tool-calls.d.ts +75 -0
- package/dist/{services/resize-observer.service.d.ts → lib/resize-observer.d.ts} +2 -2
- package/dist/{services/scroll-position.service.d.ts → lib/scroll-position.d.ts} +6 -6
- package/dist/lib/slots/copilot-slot.d.ts +34 -0
- package/dist/lib/slots/index.d.ts +3 -0
- package/dist/lib/slots/slot.types.d.ts +1 -1
- package/dist/lib/slots/slot.utils.d.ts +6 -4
- package/dist/lib/tools.d.ts +63 -0
- package/dist/lib/utils.d.ts +1 -1
- package/dist/public-api.d.ts +46 -0
- package/dist/styles.css +0 -69
- package/package.json +3 -3
- package/dist/components/chat/copilot-chat-assistant-message-buttons.component.d.ts +0 -75
- package/dist/components/chat/copilot-chat-assistant-message-renderer.component.d.ts +0 -31
- package/dist/components/chat/copilot-chat-assistant-message-toolbar.component.d.ts +0 -8
- package/dist/components/chat/copilot-chat-assistant-message.component.d.ts +0 -132
- package/dist/components/chat/copilot-chat-buttons.component.d.ts +0 -66
- package/dist/components/chat/copilot-chat-input-defaults.d.ts +0 -37
- package/dist/components/chat/copilot-chat-input.component.d.ts +0 -133
- package/dist/components/chat/copilot-chat-message-view-cursor.component.d.ts +0 -15
- package/dist/components/chat/copilot-chat-textarea.component.d.ts +0 -45
- package/dist/components/chat/copilot-chat-tool-calls-view.component.d.ts +0 -35
- package/dist/components/chat/copilot-chat-toolbar.component.d.ts +0 -8
- package/dist/components/chat/copilot-chat-tools-menu.component.d.ts +0 -20
- package/dist/components/chat/copilot-chat-user-message-branch-navigation.component.d.ts +0 -23
- package/dist/components/chat/copilot-chat-user-message-buttons.component.d.ts +0 -39
- package/dist/components/chat/copilot-chat-user-message-renderer.component.d.ts +0 -9
- package/dist/components/chat/copilot-chat-user-message-toolbar.component.d.ts +0 -8
- package/dist/components/chat/copilot-chat-user-message.component.d.ts +0 -55
- package/dist/components/chat/copilot-chat-view-disclaimer.component.d.ts +0 -15
- package/dist/components/chat/copilot-chat-view-input-container.component.d.ts +0 -23
- package/dist/components/chat/copilot-chat-view-scroll-to-bottom-button.component.d.ts +0 -17
- package/dist/components/chat/copilot-chat-view-scroll-view.component.d.ts +0 -84
- package/dist/components/chat/copilot-chat-view.component.d.ts +0 -205
- package/dist/components/chat/copilot-chat.component.d.ts +0 -36
- package/dist/components/copilotkit-tool-render.component.d.ts +0 -25
- package/dist/core/chat-configuration/chat-configuration.providers.d.ts +0 -54
- package/dist/core/chat-configuration/chat-configuration.service.d.ts +0 -75
- package/dist/core/copilotkit.providers.d.ts +0 -13
- package/dist/core/copilotkit.service.d.ts +0 -119
- package/dist/core/copilotkit.types.d.ts +0 -81
- package/dist/directives/copilotkit-agent.directive.d.ts +0 -106
- package/dist/directives/copilotkit-chat-config.directive.d.ts +0 -84
- package/dist/directives/copilotkit-config.directive.d.ts +0 -44
- package/dist/directives/copilotkit-frontend-tool.directive.d.ts +0 -25
- package/dist/directives/copilotkit-human-in-the-loop.directive.d.ts +0 -124
- package/dist/directives/stick-to-bottom.directive.d.ts +0 -62
- package/dist/esm2022/components/chat/copilot-chat-assistant-message-buttons.component.mjs +0 -384
- package/dist/esm2022/components/chat/copilot-chat-assistant-message-renderer.component.mjs +0 -286
- package/dist/esm2022/components/chat/copilot-chat-assistant-message-toolbar.component.mjs +0 -27
- package/dist/esm2022/components/chat/copilot-chat-assistant-message.types.mjs +0 -2
- package/dist/esm2022/components/chat/copilot-chat-audio-recorder.component.mjs +0 -202
- package/dist/esm2022/components/chat/copilot-chat-buttons.component.mjs +0 -321
- package/dist/esm2022/components/chat/copilot-chat-input-defaults.mjs +0 -38
- package/dist/esm2022/components/chat/copilot-chat-input.component.mjs +0 -666
- package/dist/esm2022/components/chat/copilot-chat-input.types.mjs +0 -10
- package/dist/esm2022/components/chat/copilot-chat-message-view-cursor.component.mjs +0 -45
- package/dist/esm2022/components/chat/copilot-chat-message-view.component.mjs +0 -296
- package/dist/esm2022/components/chat/copilot-chat-message-view.types.mjs +0 -2
- package/dist/esm2022/components/chat/copilot-chat-textarea.component.mjs +0 -188
- package/dist/esm2022/components/chat/copilot-chat-tool-calls-view.component.mjs +0 -222
- package/dist/esm2022/components/chat/copilot-chat-toolbar.component.mjs +0 -25
- package/dist/esm2022/components/chat/copilot-chat-tools-menu.component.mjs +0 -199
- package/dist/esm2022/components/chat/copilot-chat-user-message-branch-navigation.component.mjs +0 -137
- package/dist/esm2022/components/chat/copilot-chat-user-message-buttons.component.mjs +0 -207
- package/dist/esm2022/components/chat/copilot-chat-user-message-renderer.component.mjs +0 -35
- package/dist/esm2022/components/chat/copilot-chat-user-message-toolbar.component.mjs +0 -34
- package/dist/esm2022/components/chat/copilot-chat-user-message.component.mjs +0 -341
- package/dist/esm2022/components/chat/copilot-chat-user-message.types.mjs +0 -2
- package/dist/esm2022/components/chat/copilot-chat-view-disclaimer.component.mjs +0 -52
- package/dist/esm2022/components/chat/copilot-chat-view-feather.component.mjs +0 -55
- package/dist/esm2022/components/chat/copilot-chat-view-handlers.service.mjs +0 -19
- package/dist/esm2022/components/chat/copilot-chat-view-input-container.component.mjs +0 -110
- package/dist/esm2022/components/chat/copilot-chat-view-scroll-to-bottom-button.component.mjs +0 -93
- package/dist/esm2022/components/chat/copilot-chat-view-scroll-view.component.mjs +0 -443
- package/dist/esm2022/components/chat/copilot-chat-view.component.mjs +0 -479
- package/dist/esm2022/components/chat/copilot-chat-view.types.mjs +0 -2
- package/dist/esm2022/components/chat/copilot-chat.component.mjs +0 -220
- package/dist/esm2022/components/copilotkit-tool-render.component.mjs +0 -150
- package/dist/esm2022/core/chat-configuration/chat-configuration.providers.mjs +0 -65
- package/dist/esm2022/core/chat-configuration/chat-configuration.service.mjs +0 -145
- package/dist/esm2022/core/chat-configuration/chat-configuration.types.mjs +0 -26
- package/dist/esm2022/core/copilotkit.providers.mjs +0 -34
- package/dist/esm2022/core/copilotkit.service.mjs +0 -411
- package/dist/esm2022/core/copilotkit.types.mjs +0 -13
- package/dist/esm2022/directives/copilotkit-agent-context.directive.mjs +0 -130
- package/dist/esm2022/directives/copilotkit-agent.directive.mjs +0 -221
- package/dist/esm2022/directives/copilotkit-chat-config.directive.mjs +0 -218
- package/dist/esm2022/directives/copilotkit-config.directive.mjs +0 -94
- package/dist/esm2022/directives/copilotkit-frontend-tool.directive.mjs +0 -128
- package/dist/esm2022/directives/copilotkit-human-in-the-loop.directive.mjs +0 -265
- package/dist/esm2022/directives/stick-to-bottom.directive.mjs +0 -181
- package/dist/esm2022/lib/directives/tooltip.directive.mjs +0 -211
- package/dist/esm2022/lib/slots/copilot-slot.component.mjs +0 -154
- package/dist/esm2022/services/resize-observer.service.mjs +0 -152
- package/dist/esm2022/services/scroll-position.service.mjs +0 -124
- package/dist/esm2022/types/frontend-tool.mjs +0 -2
- package/dist/esm2022/types/human-in-the-loop.mjs +0 -2
- package/dist/esm2022/utils/agent-context.utils.mjs +0 -114
- package/dist/esm2022/utils/agent.utils.mjs +0 -212
- package/dist/esm2022/utils/chat-config.utils.mjs +0 -186
- package/dist/esm2022/utils/copilotkit.utils.mjs +0 -20
- package/dist/esm2022/utils/frontend-tool.utils.mjs +0 -224
- package/dist/esm2022/utils/human-in-the-loop.utils.mjs +0 -293
- package/dist/lib/directives/tooltip.directive.d.ts +0 -33
- package/dist/lib/slots/copilot-slot.component.d.ts +0 -34
- package/dist/types/frontend-tool.d.ts +0 -37
- package/dist/types/human-in-the-loop.d.ts +0 -44
- package/dist/utils/agent-context.utils.d.ts +0 -75
- package/dist/utils/agent.utils.d.ts +0 -108
- package/dist/utils/chat-config.utils.d.ts +0 -166
- package/dist/utils/copilotkit.utils.d.ts +0 -16
- package/dist/utils/frontend-tool.utils.d.ts +0 -119
- package/dist/utils/human-in-the-loop.utils.d.ts +0 -92
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "../../lib/directives/tooltip.directive";
|
|
4
|
-
export declare class CopilotChatAssistantMessageToolbarButtonComponent {
|
|
5
|
-
title: string;
|
|
6
|
-
disabled: boolean;
|
|
7
|
-
set inputClass(value: string | undefined);
|
|
8
|
-
private customClass;
|
|
9
|
-
computedClass: import("@angular/core").Signal<string>;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CopilotChatAssistantMessageToolbarButtonComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CopilotChatAssistantMessageToolbarButtonComponent, "button[copilotChatAssistantMessageToolbarButton]", never, { "title": { "alias": "title"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "inputClass": { "alias": "inputClass"; "required": false; }; }, {}, never, ["*"], true, [{ directive: typeof i1.CopilotTooltipDirective; inputs: { "copilotTooltip": "title"; "tooltipPosition": "tooltipPosition"; "tooltipDelay": "tooltipDelay"; }; outputs: {}; }]>;
|
|
12
|
-
}
|
|
13
|
-
export declare class CopilotChatAssistantMessageCopyButtonComponent {
|
|
14
|
-
title?: string;
|
|
15
|
-
disabled: boolean;
|
|
16
|
-
inputClass?: string;
|
|
17
|
-
content?: string;
|
|
18
|
-
clicked: EventEmitter<void>;
|
|
19
|
-
readonly CopyIcon: import("lucide-angular").LucideIconData;
|
|
20
|
-
readonly CheckIcon: import("lucide-angular").LucideIconData;
|
|
21
|
-
copied: import("@angular/core").WritableSignal<boolean>;
|
|
22
|
-
private chatConfig;
|
|
23
|
-
get labels(): import("@copilotkitnext/angular").CopilotChatLabels;
|
|
24
|
-
handleCopy(event?: Event): void;
|
|
25
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CopilotChatAssistantMessageCopyButtonComponent, never>;
|
|
26
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CopilotChatAssistantMessageCopyButtonComponent, "copilot-chat-assistant-message-copy-button", never, { "title": { "alias": "title"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "inputClass": { "alias": "inputClass"; "required": false; }; "content": { "alias": "content"; "required": false; }; }, { "clicked": "clicked"; }, never, never, true, never>;
|
|
27
|
-
}
|
|
28
|
-
export declare class CopilotChatAssistantMessageThumbsUpButtonComponent {
|
|
29
|
-
title?: string;
|
|
30
|
-
disabled: boolean;
|
|
31
|
-
inputClass?: string;
|
|
32
|
-
clicked: EventEmitter<void>;
|
|
33
|
-
readonly ThumbsUpIcon: import("lucide-angular").LucideIconData;
|
|
34
|
-
private chatConfig;
|
|
35
|
-
get labels(): import("@copilotkitnext/angular").CopilotChatLabels;
|
|
36
|
-
handleClick(event?: Event): void;
|
|
37
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CopilotChatAssistantMessageThumbsUpButtonComponent, never>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CopilotChatAssistantMessageThumbsUpButtonComponent, "copilot-chat-assistant-message-thumbs-up-button", never, { "title": { "alias": "title"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "inputClass": { "alias": "inputClass"; "required": false; }; }, { "clicked": "clicked"; }, never, never, true, never>;
|
|
39
|
-
}
|
|
40
|
-
export declare class CopilotChatAssistantMessageThumbsDownButtonComponent {
|
|
41
|
-
title?: string;
|
|
42
|
-
disabled: boolean;
|
|
43
|
-
inputClass?: string;
|
|
44
|
-
clicked: EventEmitter<void>;
|
|
45
|
-
readonly ThumbsDownIcon: import("lucide-angular").LucideIconData;
|
|
46
|
-
private chatConfig;
|
|
47
|
-
get labels(): import("@copilotkitnext/angular").CopilotChatLabels;
|
|
48
|
-
handleClick(event?: Event): void;
|
|
49
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CopilotChatAssistantMessageThumbsDownButtonComponent, never>;
|
|
50
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CopilotChatAssistantMessageThumbsDownButtonComponent, "copilot-chat-assistant-message-thumbs-down-button", never, { "title": { "alias": "title"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "inputClass": { "alias": "inputClass"; "required": false; }; }, { "clicked": "clicked"; }, never, never, true, never>;
|
|
51
|
-
}
|
|
52
|
-
export declare class CopilotChatAssistantMessageReadAloudButtonComponent {
|
|
53
|
-
title?: string;
|
|
54
|
-
disabled: boolean;
|
|
55
|
-
inputClass?: string;
|
|
56
|
-
clicked: EventEmitter<void>;
|
|
57
|
-
readonly Volume2Icon: import("lucide-angular").LucideIconData;
|
|
58
|
-
private chatConfig;
|
|
59
|
-
get labels(): import("@copilotkitnext/angular").CopilotChatLabels;
|
|
60
|
-
handleClick(event?: Event): void;
|
|
61
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CopilotChatAssistantMessageReadAloudButtonComponent, never>;
|
|
62
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CopilotChatAssistantMessageReadAloudButtonComponent, "copilot-chat-assistant-message-read-aloud-button", never, { "title": { "alias": "title"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "inputClass": { "alias": "inputClass"; "required": false; }; }, { "clicked": "clicked"; }, never, never, true, never>;
|
|
63
|
-
}
|
|
64
|
-
export declare class CopilotChatAssistantMessageRegenerateButtonComponent {
|
|
65
|
-
title?: string;
|
|
66
|
-
disabled: boolean;
|
|
67
|
-
inputClass?: string;
|
|
68
|
-
clicked: EventEmitter<void>;
|
|
69
|
-
readonly RefreshCwIcon: import("lucide-angular").LucideIconData;
|
|
70
|
-
private chatConfig;
|
|
71
|
-
get labels(): import("@copilotkitnext/angular").CopilotChatLabels;
|
|
72
|
-
handleClick(event?: Event): void;
|
|
73
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CopilotChatAssistantMessageRegenerateButtonComponent, never>;
|
|
74
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CopilotChatAssistantMessageRegenerateButtonComponent, "copilot-chat-assistant-message-regenerate-button", never, { "title": { "alias": "title"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "inputClass": { "alias": "inputClass"; "required": false; }; }, { "clicked": "clicked"; }, never, never, true, never>;
|
|
75
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { OnChanges, SimpleChanges, ElementRef, AfterViewInit } from "@angular/core";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class CopilotChatAssistantMessageRendererComponent implements OnChanges, AfterViewInit {
|
|
4
|
-
private _content;
|
|
5
|
-
set content(value: string);
|
|
6
|
-
get content(): string;
|
|
7
|
-
inputClass?: string;
|
|
8
|
-
private contentSignal;
|
|
9
|
-
markdownContainer?: ElementRef<HTMLDivElement>;
|
|
10
|
-
private chatConfig;
|
|
11
|
-
private elementRef;
|
|
12
|
-
private copyStates;
|
|
13
|
-
private copyStateSignal;
|
|
14
|
-
renderedHtml: import("@angular/core").Signal<string>;
|
|
15
|
-
get labels(): import("@copilotkitnext/angular").CopilotChatLabels;
|
|
16
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
17
|
-
ngAfterViewInit(): void;
|
|
18
|
-
private updateContent;
|
|
19
|
-
private codeBlocksMap;
|
|
20
|
-
private markedInstance;
|
|
21
|
-
private initializeMarked;
|
|
22
|
-
private renderMarkdown;
|
|
23
|
-
private processMathEquations;
|
|
24
|
-
private renderMathEquations;
|
|
25
|
-
handleClick(event: MouseEvent): void;
|
|
26
|
-
private copyCodeBlock;
|
|
27
|
-
private generateBlockId;
|
|
28
|
-
private escapeHtml;
|
|
29
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CopilotChatAssistantMessageRendererComponent, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CopilotChatAssistantMessageRendererComponent, "copilot-chat-assistant-message-renderer", never, { "content": { "alias": "content"; "required": false; }; "inputClass": { "alias": "inputClass"; "required": false; }; }, {}, never, never, true, never>;
|
|
31
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class CopilotChatAssistantMessageToolbarComponent {
|
|
3
|
-
set inputClass(value: string | undefined);
|
|
4
|
-
private customClass;
|
|
5
|
-
computedClass: import("@angular/core").Signal<string>;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CopilotChatAssistantMessageToolbarComponent, never>;
|
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CopilotChatAssistantMessageToolbarComponent, "[copilotChatAssistantMessageToolbar]", never, { "inputClass": { "alias": "inputClass"; "required": false; }; }, {}, never, never, true, never>;
|
|
8
|
-
}
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, TemplateRef, Type } from '@angular/core';
|
|
2
|
-
import { CopilotChatToolCallsViewComponent } from './copilot-chat-tool-calls-view.component';
|
|
3
|
-
import type { Message } from '@ag-ui/core';
|
|
4
|
-
import { type AssistantMessage, type CopilotChatAssistantMessageOnThumbsUpProps, type CopilotChatAssistantMessageOnThumbsDownProps, type CopilotChatAssistantMessageOnReadAloudProps, type CopilotChatAssistantMessageOnRegenerateProps, type AssistantMessageMarkdownRendererContext, type AssistantMessageCopyButtonContext, type ThumbsUpButtonContext, type ThumbsDownButtonContext, type ReadAloudButtonContext, type RegenerateButtonContext, type AssistantMessageToolbarContext } from './copilot-chat-assistant-message.types';
|
|
5
|
-
import { CopilotChatAssistantMessageRendererComponent } from './copilot-chat-assistant-message-renderer.component';
|
|
6
|
-
import { CopilotChatAssistantMessageCopyButtonComponent, CopilotChatAssistantMessageThumbsUpButtonComponent, CopilotChatAssistantMessageThumbsDownButtonComponent } from './copilot-chat-assistant-message-buttons.component';
|
|
7
|
-
import { CopilotChatAssistantMessageToolbarComponent } from './copilot-chat-assistant-message-toolbar.component';
|
|
8
|
-
import { CopilotChatViewHandlersService } from './copilot-chat-view-handlers.service';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class CopilotChatAssistantMessageComponent {
|
|
11
|
-
markdownRendererTemplate?: TemplateRef<AssistantMessageMarkdownRendererContext>;
|
|
12
|
-
toolbarTemplate?: TemplateRef<AssistantMessageToolbarContext>;
|
|
13
|
-
copyButtonTemplate?: TemplateRef<AssistantMessageCopyButtonContext>;
|
|
14
|
-
thumbsUpButtonTemplate?: TemplateRef<ThumbsUpButtonContext>;
|
|
15
|
-
thumbsDownButtonTemplate?: TemplateRef<ThumbsDownButtonContext>;
|
|
16
|
-
readAloudButtonTemplate?: TemplateRef<ReadAloudButtonContext>;
|
|
17
|
-
regenerateButtonTemplate?: TemplateRef<RegenerateButtonContext>;
|
|
18
|
-
toolCallsViewTemplate?: TemplateRef<any>;
|
|
19
|
-
markdownRendererClass?: string;
|
|
20
|
-
toolbarClass?: string;
|
|
21
|
-
copyButtonClass?: string;
|
|
22
|
-
thumbsUpButtonClass?: string;
|
|
23
|
-
thumbsDownButtonClass?: string;
|
|
24
|
-
readAloudButtonClass?: string;
|
|
25
|
-
regenerateButtonClass?: string;
|
|
26
|
-
toolCallsViewClass?: string;
|
|
27
|
-
markdownRendererComponent?: Type<any>;
|
|
28
|
-
toolbarComponent?: Type<any>;
|
|
29
|
-
copyButtonComponent?: Type<any>;
|
|
30
|
-
thumbsUpButtonComponent?: Type<any>;
|
|
31
|
-
thumbsDownButtonComponent?: Type<any>;
|
|
32
|
-
readAloudButtonComponent?: Type<any>;
|
|
33
|
-
regenerateButtonComponent?: Type<any>;
|
|
34
|
-
toolCallsViewComponent?: Type<any>;
|
|
35
|
-
message: AssistantMessage;
|
|
36
|
-
messages: Message[];
|
|
37
|
-
isLoading: boolean;
|
|
38
|
-
additionalToolbarItems?: TemplateRef<any>;
|
|
39
|
-
toolbarVisible: boolean;
|
|
40
|
-
set inputClass(val: string | undefined);
|
|
41
|
-
handlers: CopilotChatViewHandlersService;
|
|
42
|
-
constructor(handlers?: CopilotChatViewHandlersService | null);
|
|
43
|
-
thumbsUp: EventEmitter<CopilotChatAssistantMessageOnThumbsUpProps>;
|
|
44
|
-
thumbsDown: EventEmitter<CopilotChatAssistantMessageOnThumbsDownProps>;
|
|
45
|
-
readAloud: EventEmitter<CopilotChatAssistantMessageOnReadAloudProps>;
|
|
46
|
-
regenerate: EventEmitter<CopilotChatAssistantMessageOnRegenerateProps>;
|
|
47
|
-
customClass: import("@angular/core").WritableSignal<string>;
|
|
48
|
-
computedClass: import("@angular/core").Signal<string>;
|
|
49
|
-
protected readonly defaultThumbsUpButtonComponent: typeof CopilotChatAssistantMessageThumbsUpButtonComponent;
|
|
50
|
-
protected readonly defaultThumbsDownButtonComponent: typeof CopilotChatAssistantMessageThumbsDownButtonComponent;
|
|
51
|
-
protected readonly CopilotChatAssistantMessageRendererComponent: typeof CopilotChatAssistantMessageRendererComponent;
|
|
52
|
-
protected readonly CopilotChatAssistantMessageToolbarComponent: typeof CopilotChatAssistantMessageToolbarComponent;
|
|
53
|
-
protected readonly CopilotChatAssistantMessageCopyButtonComponent: typeof CopilotChatAssistantMessageCopyButtonComponent;
|
|
54
|
-
protected readonly CopilotChatToolCallsViewComponent: typeof CopilotChatToolCallsViewComponent;
|
|
55
|
-
markdownRendererContext: import("@angular/core").Signal<AssistantMessageMarkdownRendererContext>;
|
|
56
|
-
copyButtonOutputs: {
|
|
57
|
-
clicked: () => void;
|
|
58
|
-
};
|
|
59
|
-
thumbsUpButtonOutputs: {
|
|
60
|
-
clicked: () => void;
|
|
61
|
-
};
|
|
62
|
-
thumbsDownButtonOutputs: {
|
|
63
|
-
clicked: () => void;
|
|
64
|
-
};
|
|
65
|
-
readAloudButtonOutputs: {
|
|
66
|
-
clicked: () => void;
|
|
67
|
-
};
|
|
68
|
-
regenerateButtonOutputs: {
|
|
69
|
-
clicked: () => void;
|
|
70
|
-
};
|
|
71
|
-
toolbarContext: import("@angular/core").Signal<AssistantMessageToolbarContext>;
|
|
72
|
-
hasMessageContent(): boolean;
|
|
73
|
-
toolCallsViewContext: import("@angular/core").Signal<{
|
|
74
|
-
message: {
|
|
75
|
-
id: string;
|
|
76
|
-
role: "assistant";
|
|
77
|
-
name?: string;
|
|
78
|
-
content?: string;
|
|
79
|
-
toolCalls?: {
|
|
80
|
-
function: {
|
|
81
|
-
name: string;
|
|
82
|
-
arguments: string;
|
|
83
|
-
};
|
|
84
|
-
type: "function";
|
|
85
|
-
id: string;
|
|
86
|
-
}[];
|
|
87
|
-
};
|
|
88
|
-
messages: ({
|
|
89
|
-
id: string;
|
|
90
|
-
role: "developer";
|
|
91
|
-
content: string;
|
|
92
|
-
name?: string;
|
|
93
|
-
} | {
|
|
94
|
-
id: string;
|
|
95
|
-
role: "system";
|
|
96
|
-
content: string;
|
|
97
|
-
name?: string;
|
|
98
|
-
} | {
|
|
99
|
-
id: string;
|
|
100
|
-
role: "assistant";
|
|
101
|
-
name?: string;
|
|
102
|
-
content?: string;
|
|
103
|
-
toolCalls?: {
|
|
104
|
-
function: {
|
|
105
|
-
name: string;
|
|
106
|
-
arguments: string;
|
|
107
|
-
};
|
|
108
|
-
type: "function";
|
|
109
|
-
id: string;
|
|
110
|
-
}[];
|
|
111
|
-
} | {
|
|
112
|
-
id: string;
|
|
113
|
-
role: "user";
|
|
114
|
-
content: string;
|
|
115
|
-
name?: string;
|
|
116
|
-
} | {
|
|
117
|
-
id: string;
|
|
118
|
-
role: "tool";
|
|
119
|
-
content: string;
|
|
120
|
-
toolCallId: string;
|
|
121
|
-
error?: string;
|
|
122
|
-
})[];
|
|
123
|
-
isLoading: boolean;
|
|
124
|
-
}>;
|
|
125
|
-
handleCopy(): void;
|
|
126
|
-
handleThumbsUp(): void;
|
|
127
|
-
handleThumbsDown(): void;
|
|
128
|
-
handleReadAloud(): void;
|
|
129
|
-
handleRegenerate(): void;
|
|
130
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CopilotChatAssistantMessageComponent, [{ optional: true; }]>;
|
|
131
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CopilotChatAssistantMessageComponent, "copilot-chat-assistant-message", never, { "markdownRendererClass": { "alias": "markdownRendererClass"; "required": false; }; "toolbarClass": { "alias": "toolbarClass"; "required": false; }; "copyButtonClass": { "alias": "copyButtonClass"; "required": false; }; "thumbsUpButtonClass": { "alias": "thumbsUpButtonClass"; "required": false; }; "thumbsDownButtonClass": { "alias": "thumbsDownButtonClass"; "required": false; }; "readAloudButtonClass": { "alias": "readAloudButtonClass"; "required": false; }; "regenerateButtonClass": { "alias": "regenerateButtonClass"; "required": false; }; "toolCallsViewClass": { "alias": "toolCallsViewClass"; "required": false; }; "markdownRendererComponent": { "alias": "markdownRendererComponent"; "required": false; }; "toolbarComponent": { "alias": "toolbarComponent"; "required": false; }; "copyButtonComponent": { "alias": "copyButtonComponent"; "required": false; }; "thumbsUpButtonComponent": { "alias": "thumbsUpButtonComponent"; "required": false; }; "thumbsDownButtonComponent": { "alias": "thumbsDownButtonComponent"; "required": false; }; "readAloudButtonComponent": { "alias": "readAloudButtonComponent"; "required": false; }; "regenerateButtonComponent": { "alias": "regenerateButtonComponent"; "required": false; }; "toolCallsViewComponent": { "alias": "toolCallsViewComponent"; "required": false; }; "message": { "alias": "message"; "required": false; }; "messages": { "alias": "messages"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "additionalToolbarItems": { "alias": "additionalToolbarItems"; "required": false; }; "toolbarVisible": { "alias": "toolbarVisible"; "required": false; }; "inputClass": { "alias": "inputClass"; "required": false; }; }, { "thumbsUp": "thumbsUp"; "thumbsDown": "thumbsDown"; "readAloud": "readAloud"; "regenerate": "regenerate"; }, ["markdownRendererTemplate", "toolbarTemplate", "copyButtonTemplate", "thumbsUpButtonTemplate", "thumbsDownButtonTemplate", "readAloudButtonTemplate", "regenerateButtonTemplate", "toolCallsViewTemplate"], never, true, never>;
|
|
132
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class CopilotChatSendButtonComponent {
|
|
4
|
-
disabled: boolean;
|
|
5
|
-
clicked: EventEmitter<void>;
|
|
6
|
-
readonly ArrowUpIcon: import("lucide-angular").LucideIconData;
|
|
7
|
-
buttonClass: string;
|
|
8
|
-
onClick(): void;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CopilotChatSendButtonComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CopilotChatSendButtonComponent, "copilot-chat-send-button", never, { "disabled": { "alias": "disabled"; "required": false; }; }, { "clicked": "clicked"; }, never, never, true, never>;
|
|
11
|
-
}
|
|
12
|
-
export declare class CopilotChatStartTranscribeButtonComponent {
|
|
13
|
-
disabled: boolean;
|
|
14
|
-
clicked: EventEmitter<void>;
|
|
15
|
-
private chatConfig;
|
|
16
|
-
readonly MicIcon: import("lucide-angular").LucideIconData;
|
|
17
|
-
buttonClass: string;
|
|
18
|
-
get label(): string;
|
|
19
|
-
onClick(): void;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CopilotChatStartTranscribeButtonComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CopilotChatStartTranscribeButtonComponent, "copilot-chat-start-transcribe-button", never, { "disabled": { "alias": "disabled"; "required": false; }; }, { "clicked": "clicked"; }, never, never, true, never>;
|
|
22
|
-
}
|
|
23
|
-
export declare class CopilotChatCancelTranscribeButtonComponent {
|
|
24
|
-
disabled: boolean;
|
|
25
|
-
clicked: EventEmitter<void>;
|
|
26
|
-
private chatConfig;
|
|
27
|
-
readonly XIcon: import("lucide-angular").LucideIconData;
|
|
28
|
-
buttonClass: string;
|
|
29
|
-
get label(): string;
|
|
30
|
-
onClick(): void;
|
|
31
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CopilotChatCancelTranscribeButtonComponent, never>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CopilotChatCancelTranscribeButtonComponent, "copilot-chat-cancel-transcribe-button", never, { "disabled": { "alias": "disabled"; "required": false; }; }, { "clicked": "clicked"; }, never, never, true, never>;
|
|
33
|
-
}
|
|
34
|
-
export declare class CopilotChatFinishTranscribeButtonComponent {
|
|
35
|
-
disabled: boolean;
|
|
36
|
-
clicked: EventEmitter<void>;
|
|
37
|
-
private chatConfig;
|
|
38
|
-
readonly CheckIcon: import("lucide-angular").LucideIconData;
|
|
39
|
-
buttonClass: string;
|
|
40
|
-
get label(): string;
|
|
41
|
-
onClick(): void;
|
|
42
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CopilotChatFinishTranscribeButtonComponent, never>;
|
|
43
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CopilotChatFinishTranscribeButtonComponent, "copilot-chat-finish-transcribe-button", never, { "disabled": { "alias": "disabled"; "required": false; }; }, { "clicked": "clicked"; }, never, never, true, never>;
|
|
44
|
-
}
|
|
45
|
-
export declare class CopilotChatAddFileButtonComponent {
|
|
46
|
-
disabled: boolean;
|
|
47
|
-
clicked: EventEmitter<void>;
|
|
48
|
-
private chatConfig;
|
|
49
|
-
readonly PlusIcon: import("lucide-angular").LucideIconData;
|
|
50
|
-
buttonClass: string;
|
|
51
|
-
get label(): string;
|
|
52
|
-
onClick(): void;
|
|
53
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CopilotChatAddFileButtonComponent, never>;
|
|
54
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CopilotChatAddFileButtonComponent, "copilot-chat-add-file-button", never, { "disabled": { "alias": "disabled"; "required": false; }; }, { "clicked": "clicked"; }, never, never, true, never>;
|
|
55
|
-
}
|
|
56
|
-
export declare class CopilotChatToolbarButtonComponent {
|
|
57
|
-
disabled: import("@angular/core").WritableSignal<boolean>;
|
|
58
|
-
variant: import("@angular/core").WritableSignal<"primary" | "secondary">;
|
|
59
|
-
customClass: import("@angular/core").WritableSignal<string>;
|
|
60
|
-
title: import("@angular/core").WritableSignal<string>;
|
|
61
|
-
clicked: EventEmitter<void>;
|
|
62
|
-
computedClass: import("@angular/core").Signal<string>;
|
|
63
|
-
onClick(): void;
|
|
64
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CopilotChatToolbarButtonComponent, never>;
|
|
65
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CopilotChatToolbarButtonComponent, "copilot-chat-toolbar-button", never, {}, { "clicked": "clicked"; }, never, ["*"], true, never>;
|
|
66
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { CopilotChatTextareaComponent } from "./copilot-chat-textarea.component";
|
|
2
|
-
import { CopilotChatAudioRecorderComponent } from "./copilot-chat-audio-recorder.component";
|
|
3
|
-
import { CopilotChatSendButtonComponent, CopilotChatStartTranscribeButtonComponent, CopilotChatCancelTranscribeButtonComponent, CopilotChatFinishTranscribeButtonComponent, CopilotChatAddFileButtonComponent } from "./copilot-chat-buttons.component";
|
|
4
|
-
import { CopilotChatToolbarComponent } from "./copilot-chat-toolbar.component";
|
|
5
|
-
import { CopilotChatToolsMenuComponent } from "./copilot-chat-tools-menu.component";
|
|
6
|
-
/**
|
|
7
|
-
* Default components used by CopilotChatInput.
|
|
8
|
-
* These can be imported and reused when creating custom slot implementations.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```typescript
|
|
12
|
-
* import { CopilotChatInputDefaults } from '@copilotkitnext/angular';
|
|
13
|
-
*
|
|
14
|
-
* @Component({
|
|
15
|
-
* template: `
|
|
16
|
-
* <copilot-chat-input [sendButtonSlot]="CustomSendButton">
|
|
17
|
-
* </copilot-chat-input>
|
|
18
|
-
* `
|
|
19
|
-
* })
|
|
20
|
-
* export class MyComponent {
|
|
21
|
-
* CustomSendButton = class extends CopilotChatInputDefaults.SendButton {
|
|
22
|
-
* // Custom implementation
|
|
23
|
-
* };
|
|
24
|
-
* }
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
export declare class CopilotChatInputDefaults {
|
|
28
|
-
static readonly TextArea: typeof CopilotChatTextareaComponent;
|
|
29
|
-
static readonly AudioRecorder: typeof CopilotChatAudioRecorderComponent;
|
|
30
|
-
static readonly SendButton: typeof CopilotChatSendButtonComponent;
|
|
31
|
-
static readonly StartTranscribeButton: typeof CopilotChatStartTranscribeButtonComponent;
|
|
32
|
-
static readonly CancelTranscribeButton: typeof CopilotChatCancelTranscribeButtonComponent;
|
|
33
|
-
static readonly FinishTranscribeButton: typeof CopilotChatFinishTranscribeButtonComponent;
|
|
34
|
-
static readonly AddFileButton: typeof CopilotChatAddFileButtonComponent;
|
|
35
|
-
static readonly Toolbar: typeof CopilotChatToolbarComponent;
|
|
36
|
-
static readonly ToolsMenu: typeof CopilotChatToolsMenuComponent;
|
|
37
|
-
}
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, TemplateRef, AfterViewInit, OnDestroy, Type } from '@angular/core';
|
|
2
|
-
import { CopilotChatTextareaComponent } from './copilot-chat-textarea.component';
|
|
3
|
-
import { CopilotChatAudioRecorderComponent } from './copilot-chat-audio-recorder.component';
|
|
4
|
-
import { CopilotChatStartTranscribeButtonComponent, CopilotChatCancelTranscribeButtonComponent, CopilotChatFinishTranscribeButtonComponent, CopilotChatAddFileButtonComponent } from './copilot-chat-buttons.component';
|
|
5
|
-
import { CopilotChatToolbarComponent } from './copilot-chat-toolbar.component';
|
|
6
|
-
import { CopilotChatToolsMenuComponent } from './copilot-chat-tools-menu.component';
|
|
7
|
-
import type { CopilotChatInputMode, ToolsMenuItem } from './copilot-chat-input.types';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
/**
|
|
10
|
-
* Context provided to slot templates
|
|
11
|
-
*/
|
|
12
|
-
export interface SendButtonContext {
|
|
13
|
-
send: () => void;
|
|
14
|
-
disabled: boolean;
|
|
15
|
-
value: string;
|
|
16
|
-
}
|
|
17
|
-
export interface ToolbarContext {
|
|
18
|
-
mode: CopilotChatInputMode;
|
|
19
|
-
value: string;
|
|
20
|
-
}
|
|
21
|
-
export declare class CopilotChatInputComponent implements AfterViewInit, OnDestroy {
|
|
22
|
-
textAreaRef?: CopilotChatTextareaComponent;
|
|
23
|
-
audioRecorderRef?: CopilotChatAudioRecorderComponent;
|
|
24
|
-
sendButtonTemplate?: TemplateRef<SendButtonContext>;
|
|
25
|
-
toolbarTemplate?: TemplateRef<ToolbarContext>;
|
|
26
|
-
textAreaTemplate?: TemplateRef<any>;
|
|
27
|
-
audioRecorderTemplate?: TemplateRef<any>;
|
|
28
|
-
startTranscribeButtonTemplate?: TemplateRef<any>;
|
|
29
|
-
cancelTranscribeButtonTemplate?: TemplateRef<any>;
|
|
30
|
-
finishTranscribeButtonTemplate?: TemplateRef<any>;
|
|
31
|
-
addFileButtonTemplate?: TemplateRef<any>;
|
|
32
|
-
toolsButtonTemplate?: TemplateRef<any>;
|
|
33
|
-
sendButtonClass?: string;
|
|
34
|
-
toolbarClass?: string;
|
|
35
|
-
textAreaClass?: string;
|
|
36
|
-
textAreaMaxRows?: number;
|
|
37
|
-
textAreaPlaceholder?: string;
|
|
38
|
-
audioRecorderClass?: string;
|
|
39
|
-
startTranscribeButtonClass?: string;
|
|
40
|
-
cancelTranscribeButtonClass?: string;
|
|
41
|
-
finishTranscribeButtonClass?: string;
|
|
42
|
-
addFileButtonClass?: string;
|
|
43
|
-
toolsButtonClass?: string;
|
|
44
|
-
sendButtonComponent?: Type<any>;
|
|
45
|
-
toolbarComponent?: Type<any>;
|
|
46
|
-
textAreaComponent?: Type<any>;
|
|
47
|
-
audioRecorderComponent?: Type<any>;
|
|
48
|
-
startTranscribeButtonComponent?: Type<any>;
|
|
49
|
-
cancelTranscribeButtonComponent?: Type<any>;
|
|
50
|
-
finishTranscribeButtonComponent?: Type<any>;
|
|
51
|
-
addFileButtonComponent?: Type<any>;
|
|
52
|
-
toolsButtonComponent?: Type<any>;
|
|
53
|
-
set mode(val: CopilotChatInputMode | undefined);
|
|
54
|
-
set toolsMenu(val: (ToolsMenuItem | '-')[] | undefined);
|
|
55
|
-
set autoFocus(val: boolean | undefined);
|
|
56
|
-
set value(val: string | undefined);
|
|
57
|
-
set inputClass(val: string | undefined);
|
|
58
|
-
additionalToolbarItems?: TemplateRef<any>;
|
|
59
|
-
submitMessage: EventEmitter<string>;
|
|
60
|
-
startTranscribe: EventEmitter<void>;
|
|
61
|
-
cancelTranscribe: EventEmitter<void>;
|
|
62
|
-
finishTranscribe: EventEmitter<void>;
|
|
63
|
-
addFile: EventEmitter<void>;
|
|
64
|
-
valueChange: EventEmitter<string>;
|
|
65
|
-
readonly ArrowUpIcon: import("lucide-angular").LucideIconData;
|
|
66
|
-
readonly defaultButtonClass: string;
|
|
67
|
-
private chatConfig;
|
|
68
|
-
modeSignal: import("@angular/core").WritableSignal<CopilotChatInputMode>;
|
|
69
|
-
toolsMenuSignal: import("@angular/core").WritableSignal<(ToolsMenuItem | "-")[]>;
|
|
70
|
-
autoFocusSignal: import("@angular/core").WritableSignal<boolean>;
|
|
71
|
-
valueSignal: import("@angular/core").WritableSignal<string>;
|
|
72
|
-
customClass: import("@angular/core").WritableSignal<string>;
|
|
73
|
-
defaultAudioRecorder: typeof CopilotChatAudioRecorderComponent;
|
|
74
|
-
defaultSendButton: any;
|
|
75
|
-
CopilotChatToolbarComponent: typeof CopilotChatToolbarComponent;
|
|
76
|
-
CopilotChatAddFileButtonComponent: typeof CopilotChatAddFileButtonComponent;
|
|
77
|
-
CopilotChatToolsMenuComponent: typeof CopilotChatToolsMenuComponent;
|
|
78
|
-
CopilotChatCancelTranscribeButtonComponent: typeof CopilotChatCancelTranscribeButtonComponent;
|
|
79
|
-
CopilotChatFinishTranscribeButtonComponent: typeof CopilotChatFinishTranscribeButtonComponent;
|
|
80
|
-
CopilotChatStartTranscribeButtonComponent: typeof CopilotChatStartTranscribeButtonComponent;
|
|
81
|
-
computedMode: import("@angular/core").Signal<CopilotChatInputMode>;
|
|
82
|
-
computedToolsMenu: import("@angular/core").Signal<(ToolsMenuItem | "-")[]>;
|
|
83
|
-
computedAutoFocus: import("@angular/core").Signal<boolean>;
|
|
84
|
-
computedValue: import("@angular/core").Signal<string>;
|
|
85
|
-
computedClass: import("@angular/core").Signal<string>;
|
|
86
|
-
sendButtonContext: import("@angular/core").Signal<SendButtonContext>;
|
|
87
|
-
toolbarContext: import("@angular/core").Signal<ToolbarContext>;
|
|
88
|
-
textAreaContext: import("@angular/core").Signal<{
|
|
89
|
-
value: string;
|
|
90
|
-
autoFocus: boolean;
|
|
91
|
-
disabled: boolean;
|
|
92
|
-
maxRows: number;
|
|
93
|
-
placeholder: string;
|
|
94
|
-
inputClass: string;
|
|
95
|
-
onKeyDown: (event: KeyboardEvent) => void;
|
|
96
|
-
onChange: (value: string) => void;
|
|
97
|
-
}>;
|
|
98
|
-
audioRecorderContext: import("@angular/core").Signal<{
|
|
99
|
-
inputShowControls: boolean;
|
|
100
|
-
}>;
|
|
101
|
-
toolsContext: import("@angular/core").Signal<{
|
|
102
|
-
inputToolsMenu: (ToolsMenuItem | "-")[];
|
|
103
|
-
inputDisabled: boolean;
|
|
104
|
-
}>;
|
|
105
|
-
constructor();
|
|
106
|
-
addFileButtonOutputs: {
|
|
107
|
-
clicked: () => void;
|
|
108
|
-
};
|
|
109
|
-
cancelTranscribeButtonOutputs: {
|
|
110
|
-
clicked: () => void;
|
|
111
|
-
};
|
|
112
|
-
finishTranscribeButtonOutputs: {
|
|
113
|
-
clicked: () => void;
|
|
114
|
-
};
|
|
115
|
-
startTranscribeButtonOutputs: {
|
|
116
|
-
clicked: () => void;
|
|
117
|
-
};
|
|
118
|
-
sendButtonOutputs: {
|
|
119
|
-
clicked: () => void;
|
|
120
|
-
click: () => void;
|
|
121
|
-
};
|
|
122
|
-
ngAfterViewInit(): void;
|
|
123
|
-
ngOnDestroy(): void;
|
|
124
|
-
handleKeyDown(event: KeyboardEvent): void;
|
|
125
|
-
handleValueChange(value: string): void;
|
|
126
|
-
send(): void;
|
|
127
|
-
handleStartTranscribe(): void;
|
|
128
|
-
handleCancelTranscribe(): void;
|
|
129
|
-
handleFinishTranscribe(): void;
|
|
130
|
-
handleAddFile(): void;
|
|
131
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CopilotChatInputComponent, never>;
|
|
132
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CopilotChatInputComponent, "copilot-chat-input", never, { "sendButtonClass": { "alias": "sendButtonClass"; "required": false; }; "toolbarClass": { "alias": "toolbarClass"; "required": false; }; "textAreaClass": { "alias": "textAreaClass"; "required": false; }; "textAreaMaxRows": { "alias": "textAreaMaxRows"; "required": false; }; "textAreaPlaceholder": { "alias": "textAreaPlaceholder"; "required": false; }; "audioRecorderClass": { "alias": "audioRecorderClass"; "required": false; }; "startTranscribeButtonClass": { "alias": "startTranscribeButtonClass"; "required": false; }; "cancelTranscribeButtonClass": { "alias": "cancelTranscribeButtonClass"; "required": false; }; "finishTranscribeButtonClass": { "alias": "finishTranscribeButtonClass"; "required": false; }; "addFileButtonClass": { "alias": "addFileButtonClass"; "required": false; }; "toolsButtonClass": { "alias": "toolsButtonClass"; "required": false; }; "sendButtonComponent": { "alias": "sendButtonComponent"; "required": false; }; "toolbarComponent": { "alias": "toolbarComponent"; "required": false; }; "textAreaComponent": { "alias": "textAreaComponent"; "required": false; }; "audioRecorderComponent": { "alias": "audioRecorderComponent"; "required": false; }; "startTranscribeButtonComponent": { "alias": "startTranscribeButtonComponent"; "required": false; }; "cancelTranscribeButtonComponent": { "alias": "cancelTranscribeButtonComponent"; "required": false; }; "finishTranscribeButtonComponent": { "alias": "finishTranscribeButtonComponent"; "required": false; }; "addFileButtonComponent": { "alias": "addFileButtonComponent"; "required": false; }; "toolsButtonComponent": { "alias": "toolsButtonComponent"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "toolsMenu": { "alias": "toolsMenu"; "required": false; }; "autoFocus": { "alias": "autoFocus"; "required": false; }; "value": { "alias": "value"; "required": false; }; "inputClass": { "alias": "inputClass"; "required": false; }; "additionalToolbarItems": { "alias": "additionalToolbarItems"; "required": false; }; }, { "submitMessage": "submitMessage"; "startTranscribe": "startTranscribe"; "cancelTranscribe": "cancelTranscribe"; "finishTranscribe": "finishTranscribe"; "addFile": "addFile"; "valueChange": "valueChange"; }, ["sendButtonTemplate", "toolbarTemplate", "textAreaTemplate", "audioRecorderTemplate", "startTranscribeButtonTemplate", "cancelTranscribeButtonTemplate", "finishTranscribeButtonTemplate", "addFileButtonTemplate", "toolsButtonTemplate"], never, true, never>;
|
|
133
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { OnInit, OnChanges } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Cursor component that matches the React implementation exactly.
|
|
5
|
-
* Shows a pulsing dot animation to indicate activity.
|
|
6
|
-
*/
|
|
7
|
-
export declare class CopilotChatMessageViewCursorComponent implements OnInit, OnChanges {
|
|
8
|
-
inputClass?: string;
|
|
9
|
-
private inputClassSignal;
|
|
10
|
-
computedClass: import("@angular/core").Signal<string>;
|
|
11
|
-
ngOnInit(): void;
|
|
12
|
-
ngOnChanges(): void;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CopilotChatMessageViewCursorComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CopilotChatMessageViewCursorComponent, "copilot-chat-message-view-cursor", never, { "inputClass": { "alias": "inputClass"; "required": false; }; }, {}, never, never, true, never>;
|
|
15
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, ElementRef, AfterViewInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class CopilotChatTextareaComponent implements AfterViewInit, OnChanges {
|
|
4
|
-
private elementRef;
|
|
5
|
-
get textareaRef(): ElementRef<any>;
|
|
6
|
-
set inputValue(val: string | undefined);
|
|
7
|
-
set inputPlaceholder(val: string | undefined);
|
|
8
|
-
set inputMaxRows(val: number | undefined);
|
|
9
|
-
set inputAutoFocus(val: boolean | undefined);
|
|
10
|
-
set inputDisabled(val: boolean | undefined);
|
|
11
|
-
set inputClass(val: string | undefined);
|
|
12
|
-
valueChange: EventEmitter<string>;
|
|
13
|
-
keyDown: EventEmitter<KeyboardEvent>;
|
|
14
|
-
private chatConfig;
|
|
15
|
-
value: import("@angular/core").WritableSignal<string>;
|
|
16
|
-
customPlaceholder: import("@angular/core").WritableSignal<string>;
|
|
17
|
-
maxRows: import("@angular/core").WritableSignal<number>;
|
|
18
|
-
autoFocus: import("@angular/core").WritableSignal<boolean>;
|
|
19
|
-
disabled: import("@angular/core").WritableSignal<boolean>;
|
|
20
|
-
customClass: import("@angular/core").WritableSignal<string>;
|
|
21
|
-
maxHeight: import("@angular/core").WritableSignal<number>;
|
|
22
|
-
placeholder: import("@angular/core").Signal<string>;
|
|
23
|
-
computedClass: import("@angular/core").Signal<string>;
|
|
24
|
-
constructor();
|
|
25
|
-
ngAfterViewInit(): void;
|
|
26
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
27
|
-
onInput(event: Event): void;
|
|
28
|
-
onKeyDown(event: KeyboardEvent): void;
|
|
29
|
-
private calculateMaxHeight;
|
|
30
|
-
private adjustHeight;
|
|
31
|
-
/**
|
|
32
|
-
* Public method to focus the textarea
|
|
33
|
-
*/
|
|
34
|
-
focus(): void;
|
|
35
|
-
/**
|
|
36
|
-
* Public method to get current value
|
|
37
|
-
*/
|
|
38
|
-
getValue(): string;
|
|
39
|
-
/**
|
|
40
|
-
* Public method to set value programmatically
|
|
41
|
-
*/
|
|
42
|
-
setValue(value: string): void;
|
|
43
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CopilotChatTextareaComponent, never>;
|
|
44
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CopilotChatTextareaComponent, "textarea[copilotChatTextarea]", never, { "inputValue": { "alias": "inputValue"; "required": false; }; "inputPlaceholder": { "alias": "inputPlaceholder"; "required": false; }; "inputMaxRows": { "alias": "inputMaxRows"; "required": false; }; "inputAutoFocus": { "alias": "inputAutoFocus"; "required": false; }; "inputDisabled": { "alias": "inputDisabled"; "required": false; }; "inputClass": { "alias": "inputClass"; "required": false; }; }, { "valueChange": "valueChange"; "keyDown": "keyDown"; }, never, never, true, never>;
|
|
45
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, OnChanges, SimpleChanges, TemplateRef, OnDestroy } from "@angular/core";
|
|
2
|
-
import type { AssistantMessage, Message, ToolCall } from "@ag-ui/core";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Component for rendering all tool calls for an assistant message.
|
|
6
|
-
* This component iterates through the message's tool calls and renders each one
|
|
7
|
-
* using the registered render functions in CopilotKitService.
|
|
8
|
-
*/
|
|
9
|
-
export declare class CopilotChatToolCallsViewComponent implements AfterViewInit, OnChanges, OnDestroy {
|
|
10
|
-
message: AssistantMessage;
|
|
11
|
-
messages: Message[];
|
|
12
|
-
isLoading: boolean;
|
|
13
|
-
private container?;
|
|
14
|
-
private copilotkit;
|
|
15
|
-
private componentRefs;
|
|
16
|
-
private templateCache;
|
|
17
|
-
private messageSignal;
|
|
18
|
-
private messagesSignal;
|
|
19
|
-
private isLoadingSignal;
|
|
20
|
-
ngAfterViewInit(): void;
|
|
21
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
22
|
-
ngOnDestroy(): void;
|
|
23
|
-
getTemplateForToolCall(toolCall: ToolCall): {
|
|
24
|
-
template: TemplateRef<any>;
|
|
25
|
-
context: any;
|
|
26
|
-
} | null;
|
|
27
|
-
private renderAllToolCalls;
|
|
28
|
-
private renderSingleToolCall;
|
|
29
|
-
private renderComponent;
|
|
30
|
-
private renderTemplate;
|
|
31
|
-
private isComponentClass;
|
|
32
|
-
private isTemplateRef;
|
|
33
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CopilotChatToolCallsViewComponent, never>;
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CopilotChatToolCallsViewComponent, "copilot-chat-tool-calls-view", never, { "message": { "alias": "message"; "required": true; }; "messages": { "alias": "messages"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; }, {}, never, never, true, never>;
|
|
35
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class CopilotChatToolbarComponent {
|
|
3
|
-
set inputClass(val: string | undefined);
|
|
4
|
-
customClass: import("@angular/core").WritableSignal<string>;
|
|
5
|
-
computedClass: import("@angular/core").Signal<string>;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CopilotChatToolbarComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CopilotChatToolbarComponent, "div[copilotChatToolbar]", never, { "inputClass": { "alias": "inputClass"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
8
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { ToolsMenuItem } from './copilot-chat-input.types';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class CopilotChatToolsMenuComponent {
|
|
4
|
-
readonly Settings2Icon: import("lucide-angular").LucideIconData;
|
|
5
|
-
readonly ChevronRightIcon: import("lucide-angular").LucideIconData;
|
|
6
|
-
set inputToolsMenu(val: (ToolsMenuItem | '-')[] | undefined);
|
|
7
|
-
set inputDisabled(val: boolean | undefined);
|
|
8
|
-
set inputClass(val: string | undefined);
|
|
9
|
-
private chatConfig;
|
|
10
|
-
toolsMenu: import("@angular/core").WritableSignal<(ToolsMenuItem | "-")[]>;
|
|
11
|
-
disabled: import("@angular/core").WritableSignal<boolean>;
|
|
12
|
-
customClass: import("@angular/core").WritableSignal<string>;
|
|
13
|
-
hasItems: import("@angular/core").Signal<boolean>;
|
|
14
|
-
label: import("@angular/core").Signal<string>;
|
|
15
|
-
buttonClass: import("@angular/core").Signal<string>;
|
|
16
|
-
isMenuItem(item: any): item is ToolsMenuItem;
|
|
17
|
-
handleItemClick(item: ToolsMenuItem): void;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CopilotChatToolsMenuComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CopilotChatToolsMenuComponent, "copilot-chat-tools-menu", never, { "inputToolsMenu": { "alias": "inputToolsMenu"; "required": false; }; "inputDisabled": { "alias": "inputDisabled"; "required": false; }; "inputClass": { "alias": "inputClass"; "required": false; }; }, {}, never, never, true, never>;
|
|
20
|
-
}
|