@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.
Files changed (210) hide show
  1. package/dist/esm2022/index.mjs +2 -70
  2. package/dist/esm2022/lib/agent.mjs +73 -0
  3. package/dist/esm2022/lib/chat-config.mjs +35 -0
  4. package/dist/esm2022/lib/chat-state.mjs +18 -0
  5. package/dist/esm2022/lib/components/chat/copilot-chat-assistant-message-buttons.mjs +344 -0
  6. package/dist/esm2022/lib/components/chat/copilot-chat-assistant-message-renderer.mjs +260 -0
  7. package/dist/esm2022/lib/components/chat/copilot-chat-assistant-message-toolbar.mjs +22 -0
  8. package/dist/esm2022/{components/chat/copilot-chat-assistant-message.component.mjs → lib/components/chat/copilot-chat-assistant-message.mjs} +216 -240
  9. package/dist/esm2022/lib/components/chat/copilot-chat-assistant-message.types.mjs +2 -0
  10. package/dist/esm2022/lib/components/chat/copilot-chat-audio-recorder.mjs +196 -0
  11. package/dist/esm2022/lib/components/chat/copilot-chat-buttons.mjs +299 -0
  12. package/dist/esm2022/lib/components/chat/copilot-chat-input-defaults.mjs +39 -0
  13. package/dist/esm2022/lib/components/chat/copilot-chat-input.mjs +634 -0
  14. package/dist/esm2022/lib/components/chat/copilot-chat-input.types.mjs +10 -0
  15. package/dist/esm2022/lib/components/chat/copilot-chat-message-view-cursor.mjs +27 -0
  16. package/dist/esm2022/lib/components/chat/copilot-chat-message-view.mjs +268 -0
  17. package/dist/esm2022/lib/components/chat/copilot-chat-message-view.types.mjs +2 -0
  18. package/dist/esm2022/lib/components/chat/copilot-chat-textarea.mjs +139 -0
  19. package/dist/esm2022/lib/components/chat/copilot-chat-tool-calls-view.mjs +36 -0
  20. package/dist/esm2022/lib/components/chat/copilot-chat-toolbar.mjs +20 -0
  21. package/dist/esm2022/lib/components/chat/copilot-chat-tools-menu.mjs +203 -0
  22. package/dist/esm2022/lib/components/chat/copilot-chat-user-message-branch-navigation.mjs +118 -0
  23. package/dist/esm2022/lib/components/chat/copilot-chat-user-message-buttons.mjs +182 -0
  24. package/dist/esm2022/lib/components/chat/copilot-chat-user-message-renderer.mjs +28 -0
  25. package/dist/esm2022/lib/components/chat/copilot-chat-user-message-toolbar.mjs +25 -0
  26. package/dist/esm2022/lib/components/chat/copilot-chat-user-message.mjs +306 -0
  27. package/dist/esm2022/lib/components/chat/copilot-chat-user-message.types.mjs +2 -0
  28. package/dist/esm2022/lib/components/chat/copilot-chat-view-disclaimer.mjs +48 -0
  29. package/dist/esm2022/lib/components/chat/copilot-chat-view-feather.mjs +41 -0
  30. package/dist/esm2022/lib/components/chat/copilot-chat-view-handlers.mjs +19 -0
  31. package/dist/esm2022/lib/components/chat/copilot-chat-view-input-container.mjs +96 -0
  32. package/dist/esm2022/lib/components/chat/copilot-chat-view-scroll-to-bottom-button.mjs +89 -0
  33. package/dist/esm2022/lib/components/chat/copilot-chat-view-scroll-view.mjs +456 -0
  34. package/dist/esm2022/lib/components/chat/copilot-chat-view.mjs +404 -0
  35. package/dist/esm2022/lib/components/chat/copilot-chat-view.types.mjs +2 -0
  36. package/dist/esm2022/lib/components/chat/copilot-chat.mjs +167 -0
  37. package/dist/esm2022/lib/config.mjs +9 -0
  38. package/dist/esm2022/lib/copilotkit.mjs +124 -0
  39. package/dist/esm2022/lib/directives/copilotkit-agent-context.mjs +130 -0
  40. package/dist/esm2022/lib/directives/stick-to-bottom.mjs +170 -0
  41. package/dist/esm2022/lib/directives/tooltip.mjs +217 -0
  42. package/dist/esm2022/lib/human-in-the-loop.mjs +19 -0
  43. package/dist/esm2022/lib/render-tool-calls.mjs +131 -0
  44. package/dist/esm2022/lib/resize-observer.mjs +152 -0
  45. package/dist/esm2022/lib/scroll-position.mjs +124 -0
  46. package/dist/esm2022/lib/slots/copilot-slot.mjs +156 -0
  47. package/dist/esm2022/lib/slots/index.mjs +4 -0
  48. package/dist/esm2022/lib/slots/slot.types.mjs +3 -3
  49. package/dist/esm2022/lib/slots/slot.utils.mjs +19 -15
  50. package/dist/esm2022/lib/tools.mjs +31 -0
  51. package/dist/esm2022/lib/utils.mjs +3 -3
  52. package/dist/esm2022/public-api.mjs +47 -0
  53. package/dist/fesm2022/copilotkitnext-angular.mjs +5249 -8271
  54. package/dist/fesm2022/copilotkitnext-angular.mjs.map +1 -1
  55. package/dist/index.d.ts +1 -55
  56. package/dist/lib/agent.d.ts +53 -0
  57. package/dist/{core/chat-configuration/chat-configuration.types.d.ts → lib/chat-config.d.ts} +4 -8
  58. package/dist/lib/chat-state.d.ts +10 -0
  59. package/dist/lib/components/chat/copilot-chat-assistant-message-buttons.d.ts +68 -0
  60. package/dist/lib/components/chat/copilot-chat-assistant-message-renderer.d.ts +26 -0
  61. package/dist/lib/components/chat/copilot-chat-assistant-message-toolbar.d.ts +7 -0
  62. package/dist/lib/components/chat/copilot-chat-assistant-message.d.ts +178 -0
  63. package/dist/{components → lib/components}/chat/copilot-chat-assistant-message.types.d.ts +1 -1
  64. package/dist/{components/chat/copilot-chat-audio-recorder.component.d.ts → lib/components/chat/copilot-chat-audio-recorder.d.ts} +10 -10
  65. package/dist/lib/components/chat/copilot-chat-buttons.d.ts +65 -0
  66. package/dist/lib/components/chat/copilot-chat-input-defaults.d.ts +38 -0
  67. package/dist/lib/components/chat/copilot-chat-input.d.ts +133 -0
  68. package/dist/{components → lib/components}/chat/copilot-chat-input.types.d.ts +11 -11
  69. package/dist/lib/components/chat/copilot-chat-message-view-cursor.d.ts +11 -0
  70. package/dist/{components/chat/copilot-chat-message-view.component.d.ts → lib/components/chat/copilot-chat-message-view.d.ts} +68 -36
  71. package/dist/{components → lib/components}/chat/copilot-chat-message-view.types.d.ts +2 -2
  72. package/dist/lib/components/chat/copilot-chat-textarea.d.ts +41 -0
  73. package/dist/lib/components/chat/copilot-chat-tool-calls-view.d.ts +55 -0
  74. package/dist/lib/components/chat/copilot-chat-toolbar.d.ts +7 -0
  75. package/dist/lib/components/chat/copilot-chat-tools-menu.d.ts +20 -0
  76. package/dist/lib/components/chat/copilot-chat-user-message-branch-navigation.d.ts +20 -0
  77. package/dist/lib/components/chat/copilot-chat-user-message-buttons.d.ts +35 -0
  78. package/dist/lib/components/chat/copilot-chat-user-message-renderer.d.ts +8 -0
  79. package/dist/lib/components/chat/copilot-chat-user-message-toolbar.d.ts +7 -0
  80. package/dist/lib/components/chat/copilot-chat-user-message.d.ts +55 -0
  81. package/dist/{components → lib/components}/chat/copilot-chat-user-message.types.d.ts +2 -2
  82. package/dist/lib/components/chat/copilot-chat-view-disclaimer.d.ts +15 -0
  83. package/dist/{components/chat/copilot-chat-view-feather.component.d.ts → lib/components/chat/copilot-chat-view-feather.d.ts} +6 -6
  84. package/dist/{components/chat/copilot-chat-view-handlers.service.d.ts → lib/components/chat/copilot-chat-view-handlers.d.ts} +3 -3
  85. package/dist/lib/components/chat/copilot-chat-view-input-container.d.ts +23 -0
  86. package/dist/lib/components/chat/copilot-chat-view-scroll-to-bottom-button.d.ts +16 -0
  87. package/dist/lib/components/chat/copilot-chat-view-scroll-view.d.ts +114 -0
  88. package/dist/lib/components/chat/copilot-chat-view.d.ts +239 -0
  89. package/dist/{components → lib/components}/chat/copilot-chat-view.types.d.ts +2 -2
  90. package/dist/lib/components/chat/copilot-chat.d.ts +67 -0
  91. package/dist/lib/config.d.ts +16 -0
  92. package/dist/lib/copilotkit.d.ts +29 -0
  93. package/dist/{directives/copilotkit-agent-context.directive.d.ts → lib/directives/copilotkit-agent-context.d.ts} +5 -5
  94. package/dist/lib/directives/stick-to-bottom.d.ts +62 -0
  95. package/dist/lib/directives/tooltip.d.ts +33 -0
  96. package/dist/lib/human-in-the-loop.d.ts +13 -0
  97. package/dist/lib/render-tool-calls.d.ts +75 -0
  98. package/dist/{services/resize-observer.service.d.ts → lib/resize-observer.d.ts} +2 -2
  99. package/dist/{services/scroll-position.service.d.ts → lib/scroll-position.d.ts} +6 -6
  100. package/dist/lib/slots/copilot-slot.d.ts +34 -0
  101. package/dist/lib/slots/index.d.ts +3 -0
  102. package/dist/lib/slots/slot.types.d.ts +1 -1
  103. package/dist/lib/slots/slot.utils.d.ts +6 -4
  104. package/dist/lib/tools.d.ts +63 -0
  105. package/dist/lib/utils.d.ts +1 -1
  106. package/dist/public-api.d.ts +46 -0
  107. package/dist/styles.css +0 -69
  108. package/package.json +3 -3
  109. package/dist/components/chat/copilot-chat-assistant-message-buttons.component.d.ts +0 -75
  110. package/dist/components/chat/copilot-chat-assistant-message-renderer.component.d.ts +0 -31
  111. package/dist/components/chat/copilot-chat-assistant-message-toolbar.component.d.ts +0 -8
  112. package/dist/components/chat/copilot-chat-assistant-message.component.d.ts +0 -132
  113. package/dist/components/chat/copilot-chat-buttons.component.d.ts +0 -66
  114. package/dist/components/chat/copilot-chat-input-defaults.d.ts +0 -37
  115. package/dist/components/chat/copilot-chat-input.component.d.ts +0 -133
  116. package/dist/components/chat/copilot-chat-message-view-cursor.component.d.ts +0 -15
  117. package/dist/components/chat/copilot-chat-textarea.component.d.ts +0 -45
  118. package/dist/components/chat/copilot-chat-tool-calls-view.component.d.ts +0 -35
  119. package/dist/components/chat/copilot-chat-toolbar.component.d.ts +0 -8
  120. package/dist/components/chat/copilot-chat-tools-menu.component.d.ts +0 -20
  121. package/dist/components/chat/copilot-chat-user-message-branch-navigation.component.d.ts +0 -23
  122. package/dist/components/chat/copilot-chat-user-message-buttons.component.d.ts +0 -39
  123. package/dist/components/chat/copilot-chat-user-message-renderer.component.d.ts +0 -9
  124. package/dist/components/chat/copilot-chat-user-message-toolbar.component.d.ts +0 -8
  125. package/dist/components/chat/copilot-chat-user-message.component.d.ts +0 -55
  126. package/dist/components/chat/copilot-chat-view-disclaimer.component.d.ts +0 -15
  127. package/dist/components/chat/copilot-chat-view-input-container.component.d.ts +0 -23
  128. package/dist/components/chat/copilot-chat-view-scroll-to-bottom-button.component.d.ts +0 -17
  129. package/dist/components/chat/copilot-chat-view-scroll-view.component.d.ts +0 -84
  130. package/dist/components/chat/copilot-chat-view.component.d.ts +0 -205
  131. package/dist/components/chat/copilot-chat.component.d.ts +0 -36
  132. package/dist/components/copilotkit-tool-render.component.d.ts +0 -25
  133. package/dist/core/chat-configuration/chat-configuration.providers.d.ts +0 -54
  134. package/dist/core/chat-configuration/chat-configuration.service.d.ts +0 -75
  135. package/dist/core/copilotkit.providers.d.ts +0 -13
  136. package/dist/core/copilotkit.service.d.ts +0 -119
  137. package/dist/core/copilotkit.types.d.ts +0 -81
  138. package/dist/directives/copilotkit-agent.directive.d.ts +0 -106
  139. package/dist/directives/copilotkit-chat-config.directive.d.ts +0 -84
  140. package/dist/directives/copilotkit-config.directive.d.ts +0 -44
  141. package/dist/directives/copilotkit-frontend-tool.directive.d.ts +0 -25
  142. package/dist/directives/copilotkit-human-in-the-loop.directive.d.ts +0 -124
  143. package/dist/directives/stick-to-bottom.directive.d.ts +0 -62
  144. package/dist/esm2022/components/chat/copilot-chat-assistant-message-buttons.component.mjs +0 -384
  145. package/dist/esm2022/components/chat/copilot-chat-assistant-message-renderer.component.mjs +0 -286
  146. package/dist/esm2022/components/chat/copilot-chat-assistant-message-toolbar.component.mjs +0 -27
  147. package/dist/esm2022/components/chat/copilot-chat-assistant-message.types.mjs +0 -2
  148. package/dist/esm2022/components/chat/copilot-chat-audio-recorder.component.mjs +0 -202
  149. package/dist/esm2022/components/chat/copilot-chat-buttons.component.mjs +0 -321
  150. package/dist/esm2022/components/chat/copilot-chat-input-defaults.mjs +0 -38
  151. package/dist/esm2022/components/chat/copilot-chat-input.component.mjs +0 -666
  152. package/dist/esm2022/components/chat/copilot-chat-input.types.mjs +0 -10
  153. package/dist/esm2022/components/chat/copilot-chat-message-view-cursor.component.mjs +0 -45
  154. package/dist/esm2022/components/chat/copilot-chat-message-view.component.mjs +0 -296
  155. package/dist/esm2022/components/chat/copilot-chat-message-view.types.mjs +0 -2
  156. package/dist/esm2022/components/chat/copilot-chat-textarea.component.mjs +0 -188
  157. package/dist/esm2022/components/chat/copilot-chat-tool-calls-view.component.mjs +0 -222
  158. package/dist/esm2022/components/chat/copilot-chat-toolbar.component.mjs +0 -25
  159. package/dist/esm2022/components/chat/copilot-chat-tools-menu.component.mjs +0 -199
  160. package/dist/esm2022/components/chat/copilot-chat-user-message-branch-navigation.component.mjs +0 -137
  161. package/dist/esm2022/components/chat/copilot-chat-user-message-buttons.component.mjs +0 -207
  162. package/dist/esm2022/components/chat/copilot-chat-user-message-renderer.component.mjs +0 -35
  163. package/dist/esm2022/components/chat/copilot-chat-user-message-toolbar.component.mjs +0 -34
  164. package/dist/esm2022/components/chat/copilot-chat-user-message.component.mjs +0 -341
  165. package/dist/esm2022/components/chat/copilot-chat-user-message.types.mjs +0 -2
  166. package/dist/esm2022/components/chat/copilot-chat-view-disclaimer.component.mjs +0 -52
  167. package/dist/esm2022/components/chat/copilot-chat-view-feather.component.mjs +0 -55
  168. package/dist/esm2022/components/chat/copilot-chat-view-handlers.service.mjs +0 -19
  169. package/dist/esm2022/components/chat/copilot-chat-view-input-container.component.mjs +0 -110
  170. package/dist/esm2022/components/chat/copilot-chat-view-scroll-to-bottom-button.component.mjs +0 -93
  171. package/dist/esm2022/components/chat/copilot-chat-view-scroll-view.component.mjs +0 -443
  172. package/dist/esm2022/components/chat/copilot-chat-view.component.mjs +0 -479
  173. package/dist/esm2022/components/chat/copilot-chat-view.types.mjs +0 -2
  174. package/dist/esm2022/components/chat/copilot-chat.component.mjs +0 -220
  175. package/dist/esm2022/components/copilotkit-tool-render.component.mjs +0 -150
  176. package/dist/esm2022/core/chat-configuration/chat-configuration.providers.mjs +0 -65
  177. package/dist/esm2022/core/chat-configuration/chat-configuration.service.mjs +0 -145
  178. package/dist/esm2022/core/chat-configuration/chat-configuration.types.mjs +0 -26
  179. package/dist/esm2022/core/copilotkit.providers.mjs +0 -34
  180. package/dist/esm2022/core/copilotkit.service.mjs +0 -411
  181. package/dist/esm2022/core/copilotkit.types.mjs +0 -13
  182. package/dist/esm2022/directives/copilotkit-agent-context.directive.mjs +0 -130
  183. package/dist/esm2022/directives/copilotkit-agent.directive.mjs +0 -221
  184. package/dist/esm2022/directives/copilotkit-chat-config.directive.mjs +0 -218
  185. package/dist/esm2022/directives/copilotkit-config.directive.mjs +0 -94
  186. package/dist/esm2022/directives/copilotkit-frontend-tool.directive.mjs +0 -128
  187. package/dist/esm2022/directives/copilotkit-human-in-the-loop.directive.mjs +0 -265
  188. package/dist/esm2022/directives/stick-to-bottom.directive.mjs +0 -181
  189. package/dist/esm2022/lib/directives/tooltip.directive.mjs +0 -211
  190. package/dist/esm2022/lib/slots/copilot-slot.component.mjs +0 -154
  191. package/dist/esm2022/services/resize-observer.service.mjs +0 -152
  192. package/dist/esm2022/services/scroll-position.service.mjs +0 -124
  193. package/dist/esm2022/types/frontend-tool.mjs +0 -2
  194. package/dist/esm2022/types/human-in-the-loop.mjs +0 -2
  195. package/dist/esm2022/utils/agent-context.utils.mjs +0 -114
  196. package/dist/esm2022/utils/agent.utils.mjs +0 -212
  197. package/dist/esm2022/utils/chat-config.utils.mjs +0 -186
  198. package/dist/esm2022/utils/copilotkit.utils.mjs +0 -20
  199. package/dist/esm2022/utils/frontend-tool.utils.mjs +0 -224
  200. package/dist/esm2022/utils/human-in-the-loop.utils.mjs +0 -293
  201. package/dist/lib/directives/tooltip.directive.d.ts +0 -33
  202. package/dist/lib/slots/copilot-slot.component.d.ts +0 -34
  203. package/dist/types/frontend-tool.d.ts +0 -37
  204. package/dist/types/human-in-the-loop.d.ts +0 -44
  205. package/dist/utils/agent-context.utils.d.ts +0 -75
  206. package/dist/utils/agent.utils.d.ts +0 -108
  207. package/dist/utils/chat-config.utils.d.ts +0 -166
  208. package/dist/utils/copilotkit.utils.d.ts +0 -16
  209. package/dist/utils/frontend-tool.utils.d.ts +0 -119
  210. package/dist/utils/human-in-the-loop.utils.d.ts +0 -92
@@ -1,23 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { type UserMessage, type CopilotChatUserMessageOnSwitchToBranchProps } from './copilot-chat-user-message.types';
3
- import * as i0 from "@angular/core";
4
- export declare class CopilotChatUserMessageBranchNavigationComponent {
5
- set currentBranch(val: number);
6
- set numberOfBranches(val: number);
7
- message: UserMessage;
8
- inputClass?: string;
9
- switchToBranch: EventEmitter<CopilotChatUserMessageOnSwitchToBranchProps>;
10
- readonly ChevronLeftIcon: import("lucide-angular").LucideIconData;
11
- readonly ChevronRightIcon: import("lucide-angular").LucideIconData;
12
- currentBranchSignal: import("@angular/core").WritableSignal<number>;
13
- numberOfBranchesSignal: import("@angular/core").WritableSignal<number>;
14
- readonly buttonClass: string;
15
- showNavigation: import("@angular/core").Signal<boolean>;
16
- canGoPrev: import("@angular/core").Signal<boolean>;
17
- canGoNext: import("@angular/core").Signal<boolean>;
18
- computedClass: import("@angular/core").Signal<string>;
19
- handlePrevious(): void;
20
- handleNext(): void;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<CopilotChatUserMessageBranchNavigationComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<CopilotChatUserMessageBranchNavigationComponent, "copilot-chat-user-message-branch-navigation", never, { "currentBranch": { "alias": "currentBranch"; "required": false; }; "numberOfBranches": { "alias": "numberOfBranches"; "required": false; }; "message": { "alias": "message"; "required": false; }; "inputClass": { "alias": "inputClass"; "required": false; }; }, { "switchToBranch": "switchToBranch"; }, never, never, true, never>;
23
- }
@@ -1,39 +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 CopilotChatUserMessageToolbarButtonComponent {
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<CopilotChatUserMessageToolbarButtonComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<CopilotChatUserMessageToolbarButtonComponent, "button[copilotChatUserMessageToolbarButton]", 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 CopilotChatUserMessageCopyButtonComponent {
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(): void;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<CopilotChatUserMessageCopyButtonComponent, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<CopilotChatUserMessageCopyButtonComponent, "copilot-chat-user-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 CopilotChatUserMessageEditButtonComponent {
29
- title?: string;
30
- disabled: boolean;
31
- inputClass?: string;
32
- clicked: EventEmitter<void>;
33
- readonly EditIcon: import("lucide-angular").LucideIconData;
34
- private chatConfig;
35
- get labels(): import("@copilotkitnext/angular").CopilotChatLabels;
36
- handleEdit(): void;
37
- static ɵfac: i0.ɵɵFactoryDeclaration<CopilotChatUserMessageEditButtonComponent, never>;
38
- static ɵcmp: i0.ɵɵComponentDeclaration<CopilotChatUserMessageEditButtonComponent, "copilot-chat-user-message-edit-button", never, { "title": { "alias": "title"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "inputClass": { "alias": "inputClass"; "required": false; }; }, { "clicked": "clicked"; }, never, never, true, never>;
39
- }
@@ -1,9 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class CopilotChatUserMessageRendererComponent {
3
- content: string;
4
- set inputClass(value: string | undefined);
5
- private customClass;
6
- computedClass: import("@angular/core").Signal<string>;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<CopilotChatUserMessageRendererComponent, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<CopilotChatUserMessageRendererComponent, "copilot-chat-user-message-renderer", never, { "content": { "alias": "content"; "required": false; }; "inputClass": { "alias": "inputClass"; "required": false; }; }, {}, never, never, true, never>;
9
- }
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class CopilotChatUserMessageToolbarComponent {
3
- inputClass?: string;
4
- computedClass: import("@angular/core").WritableSignal<string>;
5
- ngOnInit(): void;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<CopilotChatUserMessageToolbarComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<CopilotChatUserMessageToolbarComponent, "div[copilotChatUserMessageToolbar]", never, { "inputClass": { "alias": "inputClass"; "required": false; }; }, {}, never, ["*"], true, never>;
8
- }
@@ -1,55 +0,0 @@
1
- import { EventEmitter, TemplateRef, Type } from '@angular/core';
2
- import { type UserMessage, type CopilotChatUserMessageOnEditMessageProps, type CopilotChatUserMessageOnSwitchToBranchProps, type MessageRendererContext, type CopyButtonContext, type EditButtonContext, type BranchNavigationContext, type ToolbarContext } from './copilot-chat-user-message.types';
3
- import { CopilotChatUserMessageRendererComponent } from './copilot-chat-user-message-renderer.component';
4
- import { CopilotChatUserMessageCopyButtonComponent, CopilotChatUserMessageEditButtonComponent } from './copilot-chat-user-message-buttons.component';
5
- import { CopilotChatUserMessageToolbarComponent } from './copilot-chat-user-message-toolbar.component';
6
- import { CopilotChatUserMessageBranchNavigationComponent } from './copilot-chat-user-message-branch-navigation.component';
7
- import * as i0 from "@angular/core";
8
- export declare class CopilotChatUserMessageComponent {
9
- messageRendererTemplate?: TemplateRef<MessageRendererContext>;
10
- toolbarTemplate?: TemplateRef<ToolbarContext>;
11
- copyButtonTemplate?: TemplateRef<CopyButtonContext>;
12
- editButtonTemplate?: TemplateRef<EditButtonContext>;
13
- branchNavigationTemplate?: TemplateRef<BranchNavigationContext>;
14
- messageRendererClass?: string;
15
- toolbarClass?: string;
16
- copyButtonClass?: string;
17
- editButtonClass?: string;
18
- branchNavigationClass?: string;
19
- messageRendererComponent?: Type<any>;
20
- toolbarComponent?: Type<any>;
21
- copyButtonComponent?: Type<any>;
22
- editButtonComponent?: Type<any>;
23
- branchNavigationComponent?: Type<any>;
24
- message: UserMessage;
25
- set branchIndex(val: number | undefined);
26
- set numberOfBranches(val: number | undefined);
27
- additionalToolbarItems?: TemplateRef<any>;
28
- set inputClass(val: string | undefined);
29
- editMessage: EventEmitter<CopilotChatUserMessageOnEditMessageProps>;
30
- switchToBranch: EventEmitter<CopilotChatUserMessageOnSwitchToBranchProps>;
31
- branchIndexSignal: import("@angular/core").WritableSignal<number>;
32
- numberOfBranchesSignal: import("@angular/core").WritableSignal<number>;
33
- customClass: import("@angular/core").WritableSignal<string>;
34
- CopilotChatUserMessageRendererComponent: typeof CopilotChatUserMessageRendererComponent;
35
- CopilotChatUserMessageToolbarComponent: typeof CopilotChatUserMessageToolbarComponent;
36
- CopilotChatUserMessageCopyButtonComponent: typeof CopilotChatUserMessageCopyButtonComponent;
37
- CopilotChatUserMessageEditButtonComponent: typeof CopilotChatUserMessageEditButtonComponent;
38
- CopilotChatUserMessageBranchNavigationComponent: typeof CopilotChatUserMessageBranchNavigationComponent;
39
- showBranchNavigation: import("@angular/core").Signal<boolean>;
40
- computedClass: import("@angular/core").Signal<string>;
41
- messageRendererContext: import("@angular/core").Signal<MessageRendererContext>;
42
- copyButtonOutputs: {
43
- clicked: () => void;
44
- };
45
- editButtonOutputs: {
46
- clicked: () => void;
47
- };
48
- branchNavigationContext: import("@angular/core").Signal<BranchNavigationContext>;
49
- toolbarContext: import("@angular/core").Signal<ToolbarContext>;
50
- handleCopy(): void;
51
- handleEdit(): void;
52
- handleSwitchToBranch(props: CopilotChatUserMessageOnSwitchToBranchProps): void;
53
- static ɵfac: i0.ɵɵFactoryDeclaration<CopilotChatUserMessageComponent, never>;
54
- static ɵcmp: i0.ɵɵComponentDeclaration<CopilotChatUserMessageComponent, "copilot-chat-user-message", never, { "messageRendererClass": { "alias": "messageRendererClass"; "required": false; }; "toolbarClass": { "alias": "toolbarClass"; "required": false; }; "copyButtonClass": { "alias": "copyButtonClass"; "required": false; }; "editButtonClass": { "alias": "editButtonClass"; "required": false; }; "branchNavigationClass": { "alias": "branchNavigationClass"; "required": false; }; "messageRendererComponent": { "alias": "messageRendererComponent"; "required": false; }; "toolbarComponent": { "alias": "toolbarComponent"; "required": false; }; "copyButtonComponent": { "alias": "copyButtonComponent"; "required": false; }; "editButtonComponent": { "alias": "editButtonComponent"; "required": false; }; "branchNavigationComponent": { "alias": "branchNavigationComponent"; "required": false; }; "message": { "alias": "message"; "required": false; }; "branchIndex": { "alias": "branchIndex"; "required": false; }; "numberOfBranches": { "alias": "numberOfBranches"; "required": false; }; "additionalToolbarItems": { "alias": "additionalToolbarItems"; "required": false; }; "inputClass": { "alias": "inputClass"; "required": false; }; }, { "editMessage": "editMessage"; "switchToBranch": "switchToBranch"; }, ["messageRendererTemplate", "toolbarTemplate", "copyButtonTemplate", "editButtonTemplate", "branchNavigationTemplate"], never, true, never>;
55
- }
@@ -1,15 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- /**
3
- * Disclaimer component for CopilotChatView
4
- * Shows configurable disclaimer text below the input
5
- * Integrates with CopilotChatConfigurationService for labels
6
- */
7
- export declare class CopilotChatViewDisclaimerComponent {
8
- inputClass?: string;
9
- text?: string;
10
- private configService;
11
- get disclaimerText(): string;
12
- get computedClass(): string;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<CopilotChatViewDisclaimerComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<CopilotChatViewDisclaimerComponent, "copilot-chat-view-disclaimer", never, { "inputClass": { "alias": "inputClass"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, {}, never, never, true, never>;
15
- }
@@ -1,23 +0,0 @@
1
- import { ElementRef } from '@angular/core';
2
- import { CopilotChatInputComponent } from './copilot-chat-input.component';
3
- import { CopilotChatViewDisclaimerComponent } from './copilot-chat-view-disclaimer.component';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * InputContainer component for CopilotChatView
7
- * Container for input and disclaimer components
8
- * Uses ForwardRef for DOM access
9
- */
10
- export declare class CopilotChatViewInputContainerComponent extends ElementRef {
11
- inputContainerClass?: string;
12
- input?: any;
13
- inputClass?: string;
14
- disclaimer?: any;
15
- disclaimerText?: string;
16
- disclaimerClass?: string;
17
- protected readonly defaultInputComponent: typeof CopilotChatInputComponent;
18
- protected readonly defaultDisclaimerComponent: typeof CopilotChatViewDisclaimerComponent;
19
- constructor(elementRef: ElementRef);
20
- get computedClass(): string;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<CopilotChatViewInputContainerComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<CopilotChatViewInputContainerComponent, "copilot-chat-view-input-container", never, { "inputContainerClass": { "alias": "inputContainerClass"; "required": false; }; "input": { "alias": "input"; "required": false; }; "inputClass": { "alias": "inputClass"; "required": false; }; "disclaimer": { "alias": "disclaimer"; "required": false; }; "disclaimerText": { "alias": "disclaimerText"; "required": false; }; "disclaimerClass": { "alias": "disclaimerClass"; "required": false; }; }, {}, never, never, true, never>;
23
- }
@@ -1,17 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * ScrollToBottomButton component for CopilotChatView
5
- * Matches React implementation exactly with same Tailwind classes
6
- */
7
- export declare class CopilotChatViewScrollToBottomButtonComponent {
8
- inputClass?: string;
9
- disabled: boolean;
10
- onClick?: () => void;
11
- clicked: EventEmitter<void>;
12
- protected readonly ChevronDown: import("lucide-angular").LucideIconData;
13
- get computedClass(): string;
14
- handleClick(): void;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<CopilotChatViewScrollToBottomButtonComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<CopilotChatViewScrollToBottomButtonComponent, "copilot-chat-view-scroll-to-bottom-button", never, { "inputClass": { "alias": "inputClass"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "onClick": { "alias": "onClick"; "required": false; }; }, { "clicked": "clicked"; }, never, never, true, never>;
17
- }
@@ -1,84 +0,0 @@
1
- import { EventEmitter, ElementRef, OnInit, OnChanges, AfterViewInit, OnDestroy } from '@angular/core';
2
- import { CopilotChatMessageViewComponent } from './copilot-chat-message-view.component';
3
- import { CopilotChatViewScrollToBottomButtonComponent } from './copilot-chat-view-scroll-to-bottom-button.component';
4
- import { StickToBottomDirective } from '../../directives/stick-to-bottom.directive';
5
- import { Message } from '@ag-ui/client';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * ScrollView component for CopilotChatView
9
- * Handles auto-scrolling and scroll position management
10
- */
11
- export declare class CopilotChatViewScrollViewComponent implements OnInit, OnChanges, AfterViewInit, OnDestroy {
12
- private cdr;
13
- autoScroll: boolean;
14
- private _inputContainerHeight;
15
- set inputContainerHeight(value: number);
16
- get inputContainerHeight(): number;
17
- isResizing: boolean;
18
- inputClass?: string;
19
- messages: Message[];
20
- messageView?: any;
21
- messageViewClass?: string;
22
- showCursor: boolean;
23
- scrollToBottomButton?: any;
24
- scrollToBottomButtonClass?: string;
25
- assistantMessageThumbsUp: EventEmitter<{
26
- message: Message;
27
- }>;
28
- assistantMessageThumbsDown: EventEmitter<{
29
- message: Message;
30
- }>;
31
- assistantMessageReadAloud: EventEmitter<{
32
- message: Message;
33
- }>;
34
- assistantMessageRegenerate: EventEmitter<{
35
- message: Message;
36
- }>;
37
- userMessageCopy: EventEmitter<{
38
- message: Message;
39
- }>;
40
- userMessageEdit: EventEmitter<{
41
- message: Message;
42
- }>;
43
- scrollContainer?: ElementRef<HTMLElement>;
44
- contentContainer?: ElementRef<HTMLElement>;
45
- stickToBottomDirective?: StickToBottomDirective;
46
- protected readonly defaultMessageViewComponent: typeof CopilotChatMessageViewComponent;
47
- protected readonly defaultScrollToBottomButtonComponent: typeof CopilotChatViewScrollToBottomButtonComponent;
48
- protected hasMounted: import("@angular/core").WritableSignal<boolean>;
49
- protected showScrollButton: import("@angular/core").WritableSignal<boolean>;
50
- protected isAtBottom: import("@angular/core").WritableSignal<boolean>;
51
- protected inputContainerHeightSignal: import("@angular/core").WritableSignal<number>;
52
- protected paddingBottom: import("@angular/core").Signal<number>;
53
- protected computedClass: import("@angular/core").Signal<string>;
54
- private destroy$;
55
- private platformId;
56
- private scrollPositionService;
57
- ngOnInit(): void;
58
- ngOnChanges(): void;
59
- ngAfterViewInit(): void;
60
- /**
61
- * Handle isAtBottom change from StickToBottom directive
62
- */
63
- onIsAtBottomChange(isAtBottom: boolean): void;
64
- /**
65
- * Scroll to bottom for manual mode
66
- */
67
- scrollToBottom(): void;
68
- /**
69
- * Scroll to bottom for stick-to-bottom mode
70
- */
71
- scrollToBottomFromStick(): void;
72
- ngOnDestroy(): void;
73
- scrollToBottomOutputs: {
74
- clicked: () => void;
75
- };
76
- scrollToBottomFromStickOutputs: {
77
- clicked: () => void;
78
- };
79
- messageViewContext(): any;
80
- scrollToBottomContext(): any;
81
- scrollToBottomFromStickContext(): any;
82
- static ɵfac: i0.ɵɵFactoryDeclaration<CopilotChatViewScrollViewComponent, never>;
83
- static ɵcmp: i0.ɵɵComponentDeclaration<CopilotChatViewScrollViewComponent, "copilot-chat-view-scroll-view", never, { "autoScroll": { "alias": "autoScroll"; "required": false; }; "inputContainerHeight": { "alias": "inputContainerHeight"; "required": false; }; "isResizing": { "alias": "isResizing"; "required": false; }; "inputClass": { "alias": "inputClass"; "required": false; }; "messages": { "alias": "messages"; "required": false; }; "messageView": { "alias": "messageView"; "required": false; }; "messageViewClass": { "alias": "messageViewClass"; "required": false; }; "showCursor": { "alias": "showCursor"; "required": false; }; "scrollToBottomButton": { "alias": "scrollToBottomButton"; "required": false; }; "scrollToBottomButtonClass": { "alias": "scrollToBottomButtonClass"; "required": false; }; }, { "assistantMessageThumbsUp": "assistantMessageThumbsUp"; "assistantMessageThumbsDown": "assistantMessageThumbsDown"; "assistantMessageReadAloud": "assistantMessageReadAloud"; "assistantMessageRegenerate": "assistantMessageRegenerate"; "userMessageCopy": "userMessageCopy"; "userMessageEdit": "userMessageEdit"; }, never, ["*"], true, never>;
84
- }
@@ -1,205 +0,0 @@
1
- import { EventEmitter, TemplateRef, Type, ElementRef, ChangeDetectorRef, OnInit, OnChanges, OnDestroy, AfterViewInit } from '@angular/core';
2
- import { CopilotChatViewScrollViewComponent } from './copilot-chat-view-scroll-view.component';
3
- import { CopilotChatViewScrollToBottomButtonComponent } from './copilot-chat-view-scroll-to-bottom-button.component';
4
- import { CopilotChatViewFeatherComponent } from './copilot-chat-view-feather.component';
5
- import { CopilotChatViewInputContainerComponent } from './copilot-chat-view-input-container.component';
6
- import { CopilotChatViewDisclaimerComponent } from './copilot-chat-view-disclaimer.component';
7
- import { Message } from '@ag-ui/client';
8
- import { ResizeObserverService } from '../../services/resize-observer.service';
9
- import { CopilotChatViewHandlersService } from './copilot-chat-view-handlers.service';
10
- import * as i0 from "@angular/core";
11
- /**
12
- * CopilotChatView component - Angular port of the React component.
13
- * A complete chat interface with message feed and input components.
14
- *
15
- * @example
16
- * ```html
17
- * <copilot-chat-view
18
- * [messages]="messages"
19
- * [autoScroll]="true"
20
- * [messageViewProps]="{ assistantMessage: { onThumbsUp: handleThumbsUp } }">
21
- * </copilot-chat-view>
22
- * ```
23
- */
24
- export declare class CopilotChatViewComponent implements OnInit, OnChanges, AfterViewInit, OnDestroy {
25
- private resizeObserverService;
26
- private cdr;
27
- private handlers;
28
- messages: Message[];
29
- autoScroll: boolean;
30
- showCursor: boolean;
31
- messageViewComponent?: Type<any>;
32
- messageViewTemplate?: TemplateRef<any>;
33
- messageViewClass?: string;
34
- scrollViewComponent?: Type<any>;
35
- scrollViewTemplate?: TemplateRef<any>;
36
- scrollViewClass?: string;
37
- scrollToBottomButtonComponent?: Type<any>;
38
- scrollToBottomButtonTemplate?: TemplateRef<any>;
39
- scrollToBottomButtonClass?: string;
40
- inputComponent?: Type<any>;
41
- inputTemplate?: TemplateRef<any>;
42
- inputContainerComponent?: Type<any>;
43
- inputContainerTemplate?: TemplateRef<any>;
44
- inputContainerClass?: string;
45
- featherComponent?: Type<any>;
46
- featherTemplate?: TemplateRef<any>;
47
- featherClass?: string;
48
- disclaimerComponent?: Type<any>;
49
- disclaimerTemplate?: TemplateRef<any>;
50
- disclaimerClass?: string;
51
- disclaimerText?: string;
52
- customLayoutTemplate?: TemplateRef<any>;
53
- sendButtonTemplate?: TemplateRef<any>;
54
- toolbarTemplate?: TemplateRef<any>;
55
- textAreaTemplate?: TemplateRef<any>;
56
- audioRecorderTemplate?: TemplateRef<any>;
57
- assistantMessageMarkdownRendererTemplate?: TemplateRef<any>;
58
- thumbsUpButtonTemplate?: TemplateRef<any>;
59
- thumbsDownButtonTemplate?: TemplateRef<any>;
60
- readAloudButtonTemplate?: TemplateRef<any>;
61
- regenerateButtonTemplate?: TemplateRef<any>;
62
- assistantMessageThumbsUp: EventEmitter<{
63
- message: Message;
64
- }>;
65
- assistantMessageThumbsDown: EventEmitter<{
66
- message: Message;
67
- }>;
68
- assistantMessageReadAloud: EventEmitter<{
69
- message: Message;
70
- }>;
71
- assistantMessageRegenerate: EventEmitter<{
72
- message: Message;
73
- }>;
74
- userMessageCopy: EventEmitter<{
75
- message: Message;
76
- }>;
77
- userMessageEdit: EventEmitter<{
78
- message: Message;
79
- }>;
80
- inputContainerSlotRef?: ElementRef;
81
- protected readonly defaultScrollViewComponent: typeof CopilotChatViewScrollViewComponent;
82
- protected readonly defaultScrollToBottomButtonComponent: typeof CopilotChatViewScrollToBottomButtonComponent;
83
- protected readonly defaultInputContainerComponent: typeof CopilotChatViewInputContainerComponent;
84
- protected readonly defaultFeatherComponent: typeof CopilotChatViewFeatherComponent;
85
- protected readonly defaultDisclaimerComponent: typeof CopilotChatViewDisclaimerComponent;
86
- protected messagesSignal: import("@angular/core").WritableSignal<({
87
- id: string;
88
- role: "developer";
89
- content: string;
90
- name?: string;
91
- } | {
92
- id: string;
93
- role: "system";
94
- content: string;
95
- name?: string;
96
- } | {
97
- id: string;
98
- role: "assistant";
99
- name?: string;
100
- content?: string;
101
- toolCalls?: {
102
- function: {
103
- name: string;
104
- arguments: string;
105
- };
106
- type: "function";
107
- id: string;
108
- }[];
109
- } | {
110
- id: string;
111
- role: "user";
112
- content: string;
113
- name?: string;
114
- } | {
115
- id: string;
116
- role: "tool";
117
- content: string;
118
- toolCallId: string;
119
- error?: string;
120
- })[]>;
121
- protected autoScrollSignal: import("@angular/core").WritableSignal<boolean>;
122
- protected showCursorSignal: import("@angular/core").WritableSignal<boolean>;
123
- protected disclaimerTextSignal: import("@angular/core").WritableSignal<string>;
124
- protected disclaimerClassSignal: import("@angular/core").WritableSignal<string>;
125
- protected inputContainerHeight: import("@angular/core").WritableSignal<number>;
126
- protected isResizing: import("@angular/core").WritableSignal<boolean>;
127
- protected contentPaddingBottom: import("@angular/core").Signal<number>;
128
- protected computedClass: import("@angular/core").Signal<string>;
129
- protected messageViewSlot: import("@angular/core").Signal<Type<any> | TemplateRef<any>>;
130
- protected scrollViewSlot: import("@angular/core").Signal<Type<any> | TemplateRef<any>>;
131
- protected scrollToBottomButtonSlot: import("@angular/core").Signal<Type<any> | TemplateRef<any>>;
132
- protected inputSlot: import("@angular/core").Signal<Type<any> | TemplateRef<any>>;
133
- protected inputContainerSlot: import("@angular/core").Signal<Type<any> | TemplateRef<any>>;
134
- protected featherSlot: import("@angular/core").Signal<Type<any> | TemplateRef<any>>;
135
- protected disclaimerSlot: import("@angular/core").Signal<Type<any> | TemplateRef<any>>;
136
- protected scrollViewContext: import("@angular/core").Signal<{
137
- autoScroll: boolean;
138
- scrollToBottomButton: Type<any> | TemplateRef<any>;
139
- scrollToBottomButtonClass: string;
140
- inputContainerHeight: number;
141
- isResizing: boolean;
142
- messages: ({
143
- id: string;
144
- role: "developer";
145
- content: string;
146
- name?: string;
147
- } | {
148
- id: string;
149
- role: "system";
150
- content: string;
151
- name?: string;
152
- } | {
153
- id: string;
154
- role: "assistant";
155
- name?: string;
156
- content?: string;
157
- toolCalls?: {
158
- function: {
159
- name: string;
160
- arguments: string;
161
- };
162
- type: "function";
163
- id: string;
164
- }[];
165
- } | {
166
- id: string;
167
- role: "user";
168
- content: string;
169
- name?: string;
170
- } | {
171
- id: string;
172
- role: "tool";
173
- content: string;
174
- toolCallId: string;
175
- error?: string;
176
- })[];
177
- messageView: Type<any> | TemplateRef<any>;
178
- messageViewClass: string;
179
- }>;
180
- protected inputContainerContext: import("@angular/core").Signal<{
181
- input: Type<any> | TemplateRef<any>;
182
- disclaimer: Type<any> | TemplateRef<any>;
183
- disclaimerText: string;
184
- disclaimerClass: string;
185
- inputContainerClass: string;
186
- }>;
187
- protected layoutContext: import("@angular/core").Signal<{
188
- messageView: Type<any> | TemplateRef<any>;
189
- input: Type<any> | TemplateRef<any>;
190
- scrollView: Type<any> | TemplateRef<any>;
191
- scrollToBottomButton: Type<any> | TemplateRef<any>;
192
- feather: Type<any> | TemplateRef<any>;
193
- inputContainer: Type<any> | TemplateRef<any>;
194
- disclaimer: Type<any> | TemplateRef<any>;
195
- }>;
196
- private destroy$;
197
- private resizeTimeoutRef?;
198
- constructor(resizeObserverService: ResizeObserverService, cdr: ChangeDetectorRef, handlers: CopilotChatViewHandlersService);
199
- ngOnInit(): void;
200
- ngOnChanges(): void;
201
- ngAfterViewInit(): void;
202
- ngOnDestroy(): void;
203
- static ɵfac: i0.ɵɵFactoryDeclaration<CopilotChatViewComponent, never>;
204
- static ɵcmp: i0.ɵɵComponentDeclaration<CopilotChatViewComponent, "copilot-chat-view", never, { "messages": { "alias": "messages"; "required": false; }; "autoScroll": { "alias": "autoScroll"; "required": false; }; "showCursor": { "alias": "showCursor"; "required": false; }; "messageViewComponent": { "alias": "messageViewComponent"; "required": false; }; "messageViewTemplate": { "alias": "messageViewTemplate"; "required": false; }; "messageViewClass": { "alias": "messageViewClass"; "required": false; }; "scrollViewComponent": { "alias": "scrollViewComponent"; "required": false; }; "scrollViewTemplate": { "alias": "scrollViewTemplate"; "required": false; }; "scrollViewClass": { "alias": "scrollViewClass"; "required": false; }; "scrollToBottomButtonComponent": { "alias": "scrollToBottomButtonComponent"; "required": false; }; "scrollToBottomButtonTemplate": { "alias": "scrollToBottomButtonTemplate"; "required": false; }; "scrollToBottomButtonClass": { "alias": "scrollToBottomButtonClass"; "required": false; }; "inputComponent": { "alias": "inputComponent"; "required": false; }; "inputTemplate": { "alias": "inputTemplate"; "required": false; }; "inputContainerComponent": { "alias": "inputContainerComponent"; "required": false; }; "inputContainerTemplate": { "alias": "inputContainerTemplate"; "required": false; }; "inputContainerClass": { "alias": "inputContainerClass"; "required": false; }; "featherComponent": { "alias": "featherComponent"; "required": false; }; "featherTemplate": { "alias": "featherTemplate"; "required": false; }; "featherClass": { "alias": "featherClass"; "required": false; }; "disclaimerComponent": { "alias": "disclaimerComponent"; "required": false; }; "disclaimerTemplate": { "alias": "disclaimerTemplate"; "required": false; }; "disclaimerClass": { "alias": "disclaimerClass"; "required": false; }; "disclaimerText": { "alias": "disclaimerText"; "required": false; }; }, { "assistantMessageThumbsUp": "assistantMessageThumbsUp"; "assistantMessageThumbsDown": "assistantMessageThumbsDown"; "assistantMessageReadAloud": "assistantMessageReadAloud"; "assistantMessageRegenerate": "assistantMessageRegenerate"; "userMessageCopy": "userMessageCopy"; "userMessageEdit": "userMessageEdit"; }, ["customLayoutTemplate", "sendButtonTemplate", "toolbarTemplate", "textAreaTemplate", "audioRecorderTemplate", "assistantMessageMarkdownRendererTemplate", "thumbsUpButtonTemplate", "thumbsDownButtonTemplate", "readAloudButtonTemplate", "regenerateButtonTemplate"], never, true, never>;
205
- }
@@ -1,36 +0,0 @@
1
- import { OnInit, OnChanges, SimpleChanges, ChangeDetectorRef, Signal, Injector, Type } from "@angular/core";
2
- import { CopilotChatConfigurationService } from "../../core/chat-configuration/chat-configuration.service";
3
- import { Message, AbstractAgent } from "@ag-ui/client";
4
- import * as i0 from "@angular/core";
5
- /**
6
- * CopilotChat component - Angular equivalent of React's <CopilotChat>
7
- * Provides a complete chat interface that wires an agent to the chat view
8
- *
9
- * @example
10
- * ```html
11
- * <copilot-chat [agentId]="'default'" [threadId]="'abc123'"></copilot-chat>
12
- * ```
13
- */
14
- export declare class CopilotChatComponent implements OnInit, OnChanges {
15
- private chatConfig;
16
- private cdr;
17
- private injector;
18
- agentId?: string;
19
- threadId?: string;
20
- inputComponent?: Type<any>;
21
- constructor(chatConfig: CopilotChatConfigurationService | null, cdr: ChangeDetectorRef, injector: Injector);
22
- protected agent: Signal<AbstractAgent | undefined>;
23
- protected messages: Signal<Message[]>;
24
- protected isRunning: Signal<boolean>;
25
- protected showCursor: import("@angular/core").WritableSignal<boolean>;
26
- private generatedThreadId;
27
- private watcher?;
28
- private hasConnectedOnce;
29
- ngOnInit(): void;
30
- ngOnChanges(changes: SimpleChanges): void;
31
- private connectToAgent;
32
- private setupChatHandlers;
33
- private createWatcher;
34
- static ɵfac: i0.ɵɵFactoryDeclaration<CopilotChatComponent, [{ optional: true; }, null, null]>;
35
- static ɵcmp: i0.ɵɵComponentDeclaration<CopilotChatComponent, "copilot-chat", never, { "agentId": { "alias": "agentId"; "required": false; }; "threadId": { "alias": "threadId"; "required": false; }; "inputComponent": { "alias": "inputComponent"; "required": false; }; }, {}, never, never, true, never>;
36
- }
@@ -1,25 +0,0 @@
1
- import { TemplateRef, OnChanges, SimpleChanges, AfterViewInit } from "@angular/core";
2
- import { ToolCallStatus } from "../core/copilotkit.types";
3
- import * as i0 from "@angular/core";
4
- export declare class CopilotKitToolRenderComponent implements OnChanges, AfterViewInit {
5
- toolName: string;
6
- args: any;
7
- status: ToolCallStatus;
8
- result?: any;
9
- description?: string;
10
- private container;
11
- private copilotkit;
12
- private componentRef?;
13
- templateRef?: TemplateRef<any>;
14
- templateContext?: any;
15
- ngAfterViewInit(): void;
16
- ngOnChanges(changes: SimpleChanges): void;
17
- private renderTool;
18
- private renderComponent;
19
- private renderTemplate;
20
- private isComponentClass;
21
- private isTemplateRef;
22
- ngOnDestroy(): void;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<CopilotKitToolRenderComponent, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<CopilotKitToolRenderComponent, "copilotkit-tool-render", never, { "toolName": { "alias": "toolName"; "required": false; }; "args": { "alias": "args"; "required": false; }; "status": { "alias": "status"; "required": false; }; "result": { "alias": "result"; "required": false; }; "description": { "alias": "description"; "required": false; }; }, {}, never, never, true, never>;
25
- }
@@ -1,54 +0,0 @@
1
- import { Provider } from '@angular/core';
2
- import { CopilotChatConfiguration } from './chat-configuration.types';
3
- /**
4
- * Provides CopilotKit chat configuration at a specific component level.
5
- * This allows for scoped configuration where different parts of the app
6
- * can have different chat configurations.
7
- *
8
- * @param config - Optional initial configuration
9
- * @returns Array of providers
10
- *
11
- * @example
12
- * ```typescript
13
- * // Global configuration in app.config.ts
14
- * export const appConfig: ApplicationConfig = {
15
- * providers: [
16
- * provideCopilotChatConfiguration({
17
- * labels: {
18
- * chatInputPlaceholder: "How can I help you today?"
19
- * }
20
- * })
21
- * ]
22
- * };
23
- *
24
- * // Component-scoped configuration
25
- * @Component({
26
- * selector: 'customer-support-chat',
27
- * providers: [
28
- * provideCopilotChatConfiguration({
29
- * labels: {
30
- * chatInputPlaceholder: "Describe your issue..."
31
- * },
32
- * onSubmitInput: (value) => console.log('Support message:', value)
33
- * })
34
- * ],
35
- * template: `...`
36
- * })
37
- * export class CustomerSupportChatComponent {}
38
- *
39
- * // Multiple independent chats
40
- * @Component({
41
- * selector: 'sales-chat',
42
- * providers: [
43
- * provideCopilotChatConfiguration({
44
- * labels: {
45
- * chatInputPlaceholder: "Ask about our products..."
46
- * }
47
- * })
48
- * ],
49
- * template: `...`
50
- * })
51
- * export class SalesChatComponent {}
52
- * ```
53
- */
54
- export declare function provideCopilotChatConfiguration(config?: CopilotChatConfiguration): Provider[];