@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
@@ -0,0 +1,344 @@
1
+ import { Component, input, output, signal, computed, ChangeDetectionStrategy, ViewEncapsulation, } from "@angular/core";
2
+ import { CommonModule } from "@angular/common";
3
+ import { LucideAngularModule, Copy, Check, ThumbsUp, ThumbsDown, Volume2, RefreshCw, } from "lucide-angular";
4
+ import { CopilotTooltip } from "../../directives/tooltip";
5
+ import { cn } from "../../utils";
6
+ import { injectChatLabels } from "../../chat-config";
7
+ import * as i0 from "@angular/core";
8
+ import * as i1 from "../../directives/tooltip";
9
+ import * as i2 from "lucide-angular";
10
+ // Base toolbar button component
11
+ export class CopilotChatAssistantMessageToolbarButton {
12
+ title = input("");
13
+ disabled = input(false);
14
+ inputClass = input();
15
+ computedClass = computed(() => {
16
+ return cn(
17
+ // Flex centering with gap (from React button base styles)
18
+ "inline-flex items-center justify-center gap-2",
19
+ // Cursor
20
+ "cursor-pointer",
21
+ // Background and text
22
+ "p-0 text-[rgb(93,93,93)] hover:bg-[#E8E8E8]",
23
+ // Dark mode
24
+ "dark:text-[rgb(243,243,243)] dark:hover:bg-[#303030]",
25
+ // Shape and sizing
26
+ "h-8 w-8 rounded-md",
27
+ // Interactions
28
+ "transition-colors",
29
+ // Hover states
30
+ "hover:text-[rgb(93,93,93)]", "dark:hover:text-[rgb(243,243,243)]",
31
+ // Focus states
32
+ "focus:outline-none focus:ring-2 focus:ring-offset-2",
33
+ // Disabled state
34
+ "disabled:opacity-50 disabled:cursor-not-allowed",
35
+ // SVG styling from React Button component
36
+ "[&_svg]:pointer-events-none [&_svg]:shrink-0",
37
+ // Ensure proper sizing
38
+ "shrink-0", this.inputClass());
39
+ });
40
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CopilotChatAssistantMessageToolbarButton, deps: [], target: i0.ɵɵFactoryTarget.Component });
41
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.13", type: CopilotChatAssistantMessageToolbarButton, isStandalone: true, selector: "button[copilotChatAssistantMessageToolbarButton]", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, inputClass: { classPropertyName: "inputClass", publicName: "inputClass", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "type": "button" }, properties: { "class": "computedClass()", "attr.disabled": "disabled() ? true : null", "attr.aria-label": "title()" } }, hostDirectives: [{ directive: i1.CopilotTooltip, inputs: ["copilotTooltip", "title", "tooltipPosition", "tooltipPosition", "tooltipDelay", "tooltipDelay"] }], ngImport: i0, template: ` <ng-content></ng-content> `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
42
+ }
43
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CopilotChatAssistantMessageToolbarButton, decorators: [{
44
+ type: Component,
45
+ args: [{
46
+ standalone: true,
47
+ selector: "button[copilotChatAssistantMessageToolbarButton]",
48
+ imports: [CommonModule],
49
+ changeDetection: ChangeDetectionStrategy.OnPush,
50
+ encapsulation: ViewEncapsulation.None,
51
+ template: ` <ng-content></ng-content> `,
52
+ host: {
53
+ "[class]": "computedClass()",
54
+ "[attr.disabled]": "disabled() ? true : null",
55
+ type: "button",
56
+ "[attr.aria-label]": "title()",
57
+ },
58
+ hostDirectives: [
59
+ {
60
+ directive: CopilotTooltip,
61
+ inputs: ["copilotTooltip: title", "tooltipPosition", "tooltipDelay"],
62
+ },
63
+ ],
64
+ }]
65
+ }] });
66
+ // Copy button component
67
+ export class CopilotChatAssistantMessageCopyButton {
68
+ title = input();
69
+ disabled = input(false);
70
+ inputClass = input();
71
+ content = input();
72
+ clicked = output();
73
+ CopyIcon = Copy;
74
+ CheckIcon = Check;
75
+ copied = signal(false);
76
+ labels = injectChatLabels();
77
+ handleCopy(event) {
78
+ event?.stopPropagation();
79
+ if (!this.content())
80
+ return;
81
+ // Set copied immediately for instant feedback
82
+ this.copied.set(true);
83
+ setTimeout(() => this.copied.set(false), 2000);
84
+ // Copy to clipboard (fire and forget)
85
+ navigator.clipboard.writeText(this.content()).then(() => this.clicked.emit(), (err) => {
86
+ console.error("Failed to copy message:", err);
87
+ this.copied.set(false);
88
+ });
89
+ }
90
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CopilotChatAssistantMessageCopyButton, deps: [], target: i0.ɵɵFactoryTarget.Component });
91
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: CopilotChatAssistantMessageCopyButton, isStandalone: true, selector: "copilot-chat-assistant-message-copy-button", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, inputClass: { classPropertyName: "inputClass", publicName: "inputClass", isSignal: true, isRequired: false, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { clicked: "clicked" }, ngImport: i0, template: `
92
+ <button
93
+ copilotChatAssistantMessageToolbarButton
94
+ [title]="title() || labels.assistantMessageToolbarCopyMessageLabel"
95
+ [disabled]="disabled()"
96
+ [inputClass]="inputClass()"
97
+ (click)="handleCopy($event)"
98
+ >
99
+ @if (copied()) {
100
+ <lucide-angular [img]="CheckIcon" [size]="18"></lucide-angular>
101
+ } @else {
102
+ <lucide-angular [img]="CopyIcon" [size]="18"></lucide-angular>
103
+ }
104
+ </button>
105
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: LucideAngularModule }, { kind: "component", type: i2.LucideAngularComponent, selector: "lucide-angular, lucide-icon, i-lucide, span-lucide", inputs: ["class", "name", "img", "color", "absoluteStrokeWidth", "size", "strokeWidth"] }, { kind: "component", type: CopilotChatAssistantMessageToolbarButton, selector: "button[copilotChatAssistantMessageToolbarButton]", inputs: ["title", "disabled", "inputClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
106
+ }
107
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CopilotChatAssistantMessageCopyButton, decorators: [{
108
+ type: Component,
109
+ args: [{
110
+ standalone: true,
111
+ selector: "copilot-chat-assistant-message-copy-button",
112
+ imports: [
113
+ CommonModule,
114
+ LucideAngularModule,
115
+ CopilotChatAssistantMessageToolbarButton,
116
+ ],
117
+ changeDetection: ChangeDetectionStrategy.OnPush,
118
+ encapsulation: ViewEncapsulation.None,
119
+ template: `
120
+ <button
121
+ copilotChatAssistantMessageToolbarButton
122
+ [title]="title() || labels.assistantMessageToolbarCopyMessageLabel"
123
+ [disabled]="disabled()"
124
+ [inputClass]="inputClass()"
125
+ (click)="handleCopy($event)"
126
+ >
127
+ @if (copied()) {
128
+ <lucide-angular [img]="CheckIcon" [size]="18"></lucide-angular>
129
+ } @else {
130
+ <lucide-angular [img]="CopyIcon" [size]="18"></lucide-angular>
131
+ }
132
+ </button>
133
+ `,
134
+ }]
135
+ }] });
136
+ // Thumbs up button component
137
+ export class CopilotChatAssistantMessageThumbsUpButton {
138
+ title = input();
139
+ disabled = input(false);
140
+ inputClass = input();
141
+ clicked = output();
142
+ ThumbsUpIcon = ThumbsUp;
143
+ labels = injectChatLabels();
144
+ handleClick(event) {
145
+ event?.stopPropagation();
146
+ if (!this.disabled()) {
147
+ this.clicked.emit();
148
+ }
149
+ }
150
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CopilotChatAssistantMessageThumbsUpButton, deps: [], target: i0.ɵɵFactoryTarget.Component });
151
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.13", type: CopilotChatAssistantMessageThumbsUpButton, isStandalone: true, selector: "copilot-chat-assistant-message-thumbs-up-button", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, inputClass: { classPropertyName: "inputClass", publicName: "inputClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { clicked: "clicked" }, ngImport: i0, template: `
152
+ <button
153
+ copilotChatAssistantMessageToolbarButton
154
+ [title]="title() || labels.assistantMessageToolbarThumbsUpLabel"
155
+ [disabled]="disabled()"
156
+ [inputClass]="inputClass()"
157
+ (click)="handleClick($event)"
158
+ >
159
+ <lucide-angular [img]="ThumbsUpIcon" [size]="18"></lucide-angular>
160
+ </button>
161
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: LucideAngularModule }, { kind: "component", type: i2.LucideAngularComponent, selector: "lucide-angular, lucide-icon, i-lucide, span-lucide", inputs: ["class", "name", "img", "color", "absoluteStrokeWidth", "size", "strokeWidth"] }, { kind: "component", type: CopilotChatAssistantMessageToolbarButton, selector: "button[copilotChatAssistantMessageToolbarButton]", inputs: ["title", "disabled", "inputClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
162
+ }
163
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CopilotChatAssistantMessageThumbsUpButton, decorators: [{
164
+ type: Component,
165
+ args: [{
166
+ standalone: true,
167
+ selector: "copilot-chat-assistant-message-thumbs-up-button",
168
+ imports: [
169
+ CommonModule,
170
+ LucideAngularModule,
171
+ CopilotChatAssistantMessageToolbarButton,
172
+ ],
173
+ changeDetection: ChangeDetectionStrategy.OnPush,
174
+ encapsulation: ViewEncapsulation.None,
175
+ template: `
176
+ <button
177
+ copilotChatAssistantMessageToolbarButton
178
+ [title]="title() || labels.assistantMessageToolbarThumbsUpLabel"
179
+ [disabled]="disabled()"
180
+ [inputClass]="inputClass()"
181
+ (click)="handleClick($event)"
182
+ >
183
+ <lucide-angular [img]="ThumbsUpIcon" [size]="18"></lucide-angular>
184
+ </button>
185
+ `,
186
+ }]
187
+ }] });
188
+ // Thumbs down button component
189
+ export class CopilotChatAssistantMessageThumbsDownButton {
190
+ title = input();
191
+ disabled = input(false);
192
+ inputClass = input();
193
+ clicked = output();
194
+ ThumbsDownIcon = ThumbsDown;
195
+ labels = injectChatLabels();
196
+ handleClick(event) {
197
+ event?.stopPropagation();
198
+ if (!this.disabled()) {
199
+ this.clicked.emit();
200
+ }
201
+ }
202
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CopilotChatAssistantMessageThumbsDownButton, deps: [], target: i0.ɵɵFactoryTarget.Component });
203
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.13", type: CopilotChatAssistantMessageThumbsDownButton, isStandalone: true, selector: "copilot-chat-assistant-message-thumbs-down-button", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, inputClass: { classPropertyName: "inputClass", publicName: "inputClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { clicked: "clicked" }, ngImport: i0, template: `
204
+ <button
205
+ copilotChatAssistantMessageToolbarButton
206
+ [title]="title() || labels.assistantMessageToolbarThumbsDownLabel"
207
+ [disabled]="disabled()"
208
+ [inputClass]="inputClass()"
209
+ (click)="handleClick($event)"
210
+ >
211
+ <lucide-angular [img]="ThumbsDownIcon" [size]="18"></lucide-angular>
212
+ </button>
213
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: LucideAngularModule }, { kind: "component", type: i2.LucideAngularComponent, selector: "lucide-angular, lucide-icon, i-lucide, span-lucide", inputs: ["class", "name", "img", "color", "absoluteStrokeWidth", "size", "strokeWidth"] }, { kind: "component", type: CopilotChatAssistantMessageToolbarButton, selector: "button[copilotChatAssistantMessageToolbarButton]", inputs: ["title", "disabled", "inputClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
214
+ }
215
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CopilotChatAssistantMessageThumbsDownButton, decorators: [{
216
+ type: Component,
217
+ args: [{
218
+ standalone: true,
219
+ selector: "copilot-chat-assistant-message-thumbs-down-button",
220
+ imports: [
221
+ CommonModule,
222
+ LucideAngularModule,
223
+ CopilotChatAssistantMessageToolbarButton,
224
+ ],
225
+ changeDetection: ChangeDetectionStrategy.OnPush,
226
+ encapsulation: ViewEncapsulation.None,
227
+ template: `
228
+ <button
229
+ copilotChatAssistantMessageToolbarButton
230
+ [title]="title() || labels.assistantMessageToolbarThumbsDownLabel"
231
+ [disabled]="disabled()"
232
+ [inputClass]="inputClass()"
233
+ (click)="handleClick($event)"
234
+ >
235
+ <lucide-angular [img]="ThumbsDownIcon" [size]="18"></lucide-angular>
236
+ </button>
237
+ `,
238
+ }]
239
+ }] });
240
+ // Read aloud button component
241
+ export class CopilotChatAssistantMessageReadAloudButton {
242
+ title = input();
243
+ disabled = input(false);
244
+ inputClass = input();
245
+ clicked = output();
246
+ Volume2Icon = Volume2;
247
+ labels = injectChatLabels();
248
+ handleClick(event) {
249
+ event?.stopPropagation();
250
+ if (!this.disabled()) {
251
+ this.clicked.emit();
252
+ }
253
+ }
254
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CopilotChatAssistantMessageReadAloudButton, deps: [], target: i0.ɵɵFactoryTarget.Component });
255
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.13", type: CopilotChatAssistantMessageReadAloudButton, isStandalone: true, selector: "copilot-chat-assistant-message-read-aloud-button", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, inputClass: { classPropertyName: "inputClass", publicName: "inputClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { clicked: "clicked" }, ngImport: i0, template: `
256
+ <button
257
+ copilotChatAssistantMessageToolbarButton
258
+ [title]="title() || labels.assistantMessageToolbarReadAloudLabel"
259
+ [disabled]="disabled()"
260
+ [inputClass]="inputClass()"
261
+ (click)="handleClick($event)"
262
+ >
263
+ <lucide-angular [img]="Volume2Icon" [size]="20"></lucide-angular>
264
+ </button>
265
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: LucideAngularModule }, { kind: "component", type: i2.LucideAngularComponent, selector: "lucide-angular, lucide-icon, i-lucide, span-lucide", inputs: ["class", "name", "img", "color", "absoluteStrokeWidth", "size", "strokeWidth"] }, { kind: "component", type: CopilotChatAssistantMessageToolbarButton, selector: "button[copilotChatAssistantMessageToolbarButton]", inputs: ["title", "disabled", "inputClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
266
+ }
267
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CopilotChatAssistantMessageReadAloudButton, decorators: [{
268
+ type: Component,
269
+ args: [{
270
+ standalone: true,
271
+ selector: "copilot-chat-assistant-message-read-aloud-button",
272
+ imports: [
273
+ CommonModule,
274
+ LucideAngularModule,
275
+ CopilotChatAssistantMessageToolbarButton,
276
+ ],
277
+ changeDetection: ChangeDetectionStrategy.OnPush,
278
+ encapsulation: ViewEncapsulation.None,
279
+ template: `
280
+ <button
281
+ copilotChatAssistantMessageToolbarButton
282
+ [title]="title() || labels.assistantMessageToolbarReadAloudLabel"
283
+ [disabled]="disabled()"
284
+ [inputClass]="inputClass()"
285
+ (click)="handleClick($event)"
286
+ >
287
+ <lucide-angular [img]="Volume2Icon" [size]="20"></lucide-angular>
288
+ </button>
289
+ `,
290
+ }]
291
+ }] });
292
+ // Regenerate button component
293
+ export class CopilotChatAssistantMessageRegenerateButton {
294
+ title = input();
295
+ disabled = input(false);
296
+ inputClass = input();
297
+ clicked = output();
298
+ RefreshCwIcon = RefreshCw;
299
+ labels = injectChatLabels();
300
+ handleClick(event) {
301
+ event?.stopPropagation();
302
+ if (!this.disabled()) {
303
+ this.clicked.emit();
304
+ }
305
+ }
306
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CopilotChatAssistantMessageRegenerateButton, deps: [], target: i0.ɵɵFactoryTarget.Component });
307
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.13", type: CopilotChatAssistantMessageRegenerateButton, isStandalone: true, selector: "copilot-chat-assistant-message-regenerate-button", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, inputClass: { classPropertyName: "inputClass", publicName: "inputClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { clicked: "clicked" }, ngImport: i0, template: `
308
+ <button
309
+ copilotChatAssistantMessageToolbarButton
310
+ [title]="title() || labels.assistantMessageToolbarRegenerateLabel"
311
+ [disabled]="disabled()"
312
+ [inputClass]="inputClass()"
313
+ (click)="handleClick($event)"
314
+ >
315
+ <lucide-angular [img]="RefreshCwIcon" [size]="18"></lucide-angular>
316
+ </button>
317
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: LucideAngularModule }, { kind: "component", type: i2.LucideAngularComponent, selector: "lucide-angular, lucide-icon, i-lucide, span-lucide", inputs: ["class", "name", "img", "color", "absoluteStrokeWidth", "size", "strokeWidth"] }, { kind: "component", type: CopilotChatAssistantMessageToolbarButton, selector: "button[copilotChatAssistantMessageToolbarButton]", inputs: ["title", "disabled", "inputClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
318
+ }
319
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CopilotChatAssistantMessageRegenerateButton, decorators: [{
320
+ type: Component,
321
+ args: [{
322
+ standalone: true,
323
+ selector: "copilot-chat-assistant-message-regenerate-button",
324
+ imports: [
325
+ CommonModule,
326
+ LucideAngularModule,
327
+ CopilotChatAssistantMessageToolbarButton,
328
+ ],
329
+ changeDetection: ChangeDetectionStrategy.OnPush,
330
+ encapsulation: ViewEncapsulation.None,
331
+ template: `
332
+ <button
333
+ copilotChatAssistantMessageToolbarButton
334
+ [title]="title() || labels.assistantMessageToolbarRegenerateLabel"
335
+ [disabled]="disabled()"
336
+ [inputClass]="inputClass()"
337
+ (click)="handleClick($event)"
338
+ >
339
+ <lucide-angular [img]="RefreshCwIcon" [size]="18"></lucide-angular>
340
+ </button>
341
+ `,
342
+ }]
343
+ }] });
344
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29waWxvdC1jaGF0LWFzc2lzdGFudC1tZXNzYWdlLWJ1dHRvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvbGliL2NvbXBvbmVudHMvY2hhdC9jb3BpbG90LWNoYXQtYXNzaXN0YW50LW1lc3NhZ2UtYnV0dG9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUNULEtBQUssRUFDTCxNQUFNLEVBQ04sTUFBTSxFQUNOLFFBQVEsRUFDUix1QkFBdUIsRUFDdkIsaUJBQWlCLEdBQ2xCLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQ0wsbUJBQW1CLEVBQ25CLElBQUksRUFDSixLQUFLLEVBQ0wsUUFBUSxFQUNSLFVBQVUsRUFDVixPQU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