@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
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AbstractAgent } from "@ag-ui/client";
|
|
2
|
+
import { CopilotKitCore } from "@copilotkitnext/core";
|
|
3
|
+
import { Injector, Signal } from "@angular/core";
|
|
4
|
+
import { FrontendToolConfig, HumanInTheLoopConfig, RenderToolCallConfig } from "./tools";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class CopilotKit {
|
|
7
|
+
#private;
|
|
8
|
+
readonly agents: Signal<Record<string, AbstractAgent>>;
|
|
9
|
+
readonly core: CopilotKitCore;
|
|
10
|
+
readonly toolCallRenderConfigs: Signal<RenderToolCallConfig[]>;
|
|
11
|
+
readonly clientToolCallRenderConfigs: Signal<FrontendToolConfig[]>;
|
|
12
|
+
readonly humanInTheLoopToolRenderConfigs: Signal<HumanInTheLoopConfig[]>;
|
|
13
|
+
constructor();
|
|
14
|
+
addFrontendTool(clientToolWithInjector: FrontendToolConfig & {
|
|
15
|
+
injector: Injector;
|
|
16
|
+
}): void;
|
|
17
|
+
addRenderToolCall(renderConfig: RenderToolCallConfig): void;
|
|
18
|
+
addHumanInTheLoop(humanInTheLoopTool: HumanInTheLoopConfig): void;
|
|
19
|
+
removeTool(toolName: string, agentId?: string): void;
|
|
20
|
+
getAgent(agentId: string): AbstractAgent | undefined;
|
|
21
|
+
updateRuntime(options: {
|
|
22
|
+
runtimeUrl?: string;
|
|
23
|
+
headers?: Record<string, string>;
|
|
24
|
+
properties?: Record<string, unknown>;
|
|
25
|
+
agents?: Record<string, AbstractAgent>;
|
|
26
|
+
}): void;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CopilotKit, never>;
|
|
28
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CopilotKit>;
|
|
29
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit, OnChanges, OnDestroy, SimpleChanges } from "@angular/core";
|
|
2
|
-
import {
|
|
2
|
+
import { CopilotKit } from "../copilotkit";
|
|
3
3
|
import type { Context } from "@ag-ui/client";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
@@ -25,10 +25,10 @@ import * as i0 from "@angular/core";
|
|
|
25
25
|
* </div>
|
|
26
26
|
* ```
|
|
27
27
|
*/
|
|
28
|
-
export declare class
|
|
28
|
+
export declare class CopilotKitAgentContext implements OnInit, OnChanges, OnDestroy {
|
|
29
29
|
private readonly copilotkit;
|
|
30
30
|
private contextId?;
|
|
31
|
-
constructor(copilotkit:
|
|
31
|
+
constructor(copilotkit: CopilotKit);
|
|
32
32
|
/**
|
|
33
33
|
* Context object containing both description and value.
|
|
34
34
|
* If provided, this takes precedence over individual inputs.
|
|
@@ -63,6 +63,6 @@ export declare class CopilotKitAgentContextDirective implements OnInit, OnChange
|
|
|
63
63
|
* Gets the context object from inputs
|
|
64
64
|
*/
|
|
65
65
|
private getContext;
|
|
66
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
67
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
66
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CopilotKitAgentContext, never>;
|
|
67
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CopilotKitAgentContext, "[copilotkitAgentContext]", never, { "context": { "alias": "copilotkitAgentContext"; "required": false; }; "description": { "alias": "description"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, true, never>;
|
|
68
68
|
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { OnInit, OnDestroy, AfterViewInit } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export type ScrollBehavior = "smooth" | "instant" | "auto";
|
|
4
|
+
/**
|
|
5
|
+
* Directive for implementing stick-to-bottom scroll behavior
|
|
6
|
+
* Similar to the React use-stick-to-bottom library
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```html
|
|
10
|
+
* <div copilotStickToBottom
|
|
11
|
+
* [enabled]="true"
|
|
12
|
+
* [threshold]="10"
|
|
13
|
+
* [initialBehavior]="'smooth'"
|
|
14
|
+
* [resizeBehavior]="'smooth'"
|
|
15
|
+
* (isAtBottomChange)="onBottomChange($event)">
|
|
16
|
+
* <!-- Content -->
|
|
17
|
+
* </div>
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare class StickToBottom implements OnInit, AfterViewInit, OnDestroy {
|
|
21
|
+
enabled: import("@angular/core").InputSignal<boolean>;
|
|
22
|
+
threshold: import("@angular/core").InputSignal<number>;
|
|
23
|
+
initialBehavior: import("@angular/core").InputSignal<ScrollBehavior>;
|
|
24
|
+
resizeBehavior: import("@angular/core").InputSignal<ScrollBehavior>;
|
|
25
|
+
debounceMs: import("@angular/core").InputSignal<number>;
|
|
26
|
+
isAtBottomChange: import("@angular/core").OutputEmitterRef<boolean>;
|
|
27
|
+
scrollToBottomRequested: import("@angular/core").OutputEmitterRef<void>;
|
|
28
|
+
private elementRef;
|
|
29
|
+
private scrollService;
|
|
30
|
+
private resizeService;
|
|
31
|
+
private destroy$;
|
|
32
|
+
private contentElement?;
|
|
33
|
+
private wasAtBottom;
|
|
34
|
+
private hasInitialized;
|
|
35
|
+
private userHasScrolled;
|
|
36
|
+
ngOnInit(): void;
|
|
37
|
+
ngAfterViewInit(): void;
|
|
38
|
+
private setupScrollMonitoring;
|
|
39
|
+
private setupResizeMonitoring;
|
|
40
|
+
private setupContentMutationObserver;
|
|
41
|
+
/**
|
|
42
|
+
* Public method to scroll to bottom
|
|
43
|
+
* Can be called from parent component
|
|
44
|
+
*/
|
|
45
|
+
scrollToBottom(behavior?: ScrollBehavior): void;
|
|
46
|
+
/**
|
|
47
|
+
* Check if currently at bottom
|
|
48
|
+
*/
|
|
49
|
+
isAtBottom(): boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Get current scroll state
|
|
52
|
+
*/
|
|
53
|
+
getScrollState(): {
|
|
54
|
+
scrollTop: any;
|
|
55
|
+
scrollHeight: any;
|
|
56
|
+
clientHeight: any;
|
|
57
|
+
isAtBottom: boolean;
|
|
58
|
+
};
|
|
59
|
+
ngOnDestroy(): void;
|
|
60
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StickToBottom, never>;
|
|
61
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<StickToBottom, "[copilotStickToBottom]", never, { "enabled": { "alias": "enabled"; "required": false; "isSignal": true; }; "threshold": { "alias": "threshold"; "required": false; "isSignal": true; }; "initialBehavior": { "alias": "initialBehavior"; "required": false; "isSignal": true; }; "resizeBehavior": { "alias": "resizeBehavior"; "required": false; "isSignal": true; }; "debounceMs": { "alias": "debounceMs"; "required": false; "isSignal": true; }; }, { "isAtBottomChange": "isAtBottomChange"; "scrollToBottomRequested": "scrollToBottomRequested"; }, never, never, true, never>;
|
|
62
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { OnDestroy } from "@angular/core";
|
|
2
|
+
import { ChangeDetectorRef } from "@angular/core";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TooltipContent {
|
|
5
|
+
private cdr;
|
|
6
|
+
text: string;
|
|
7
|
+
private _position;
|
|
8
|
+
get position(): "above" | "below" | "left" | "right";
|
|
9
|
+
set position(value: "above" | "below" | "left" | "right");
|
|
10
|
+
constructor(cdr: ChangeDetectorRef);
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipContent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TooltipContent, "copilot-tooltip-content", never, {}, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
14
|
+
export declare class CopilotTooltip implements OnDestroy {
|
|
15
|
+
tooltipText: string;
|
|
16
|
+
tooltipPosition: "above" | "below" | "left" | "right";
|
|
17
|
+
tooltipDelay: number;
|
|
18
|
+
private overlay;
|
|
19
|
+
private overlayPositionBuilder;
|
|
20
|
+
private elementRef;
|
|
21
|
+
private viewContainerRef;
|
|
22
|
+
private overlayRef?;
|
|
23
|
+
private tooltipTimeout?;
|
|
24
|
+
private originalTitle?;
|
|
25
|
+
onMouseEnter(): void;
|
|
26
|
+
onMouseLeave(): void;
|
|
27
|
+
private show;
|
|
28
|
+
private hide;
|
|
29
|
+
private getPositions;
|
|
30
|
+
ngOnDestroy(): void;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CopilotTooltip, never>;
|
|
32
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CopilotTooltip, "[copilotTooltip]", never, { "tooltipText": { "alias": "copilotTooltip"; "required": false; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; }; "tooltipDelay": { "alias": "tooltipDelay"; "required": false; }; }, {}, never, never, true, never>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Subject } from "rxjs";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class HumanInTheLoop {
|
|
4
|
+
results: Subject<{
|
|
5
|
+
toolCallId: string;
|
|
6
|
+
toolName: string;
|
|
7
|
+
result: unknown;
|
|
8
|
+
}>;
|
|
9
|
+
addResult(toolCallId: string, toolName: string, result: unknown): void;
|
|
10
|
+
onResult(toolCallId: string, toolName: string): Promise<unknown>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HumanInTheLoop, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HumanInTheLoop>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { ToolCall } from "@ag-ui/client";
|
|
2
|
+
import { FrontendToolConfig, HumanInTheLoopToolCall, HumanInTheLoopConfig, AngularToolCall, RenderToolCallConfig } from "./tools";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
type RendererToolCallHandler = {
|
|
5
|
+
type: "renderer";
|
|
6
|
+
config: RenderToolCallConfig;
|
|
7
|
+
};
|
|
8
|
+
type ClientToolCallHandler = {
|
|
9
|
+
type: "clientTool";
|
|
10
|
+
config: FrontendToolConfig;
|
|
11
|
+
};
|
|
12
|
+
type HumanInTheLoopToolCallHandler = {
|
|
13
|
+
type: "humanInTheLoopTool";
|
|
14
|
+
config: HumanInTheLoopConfig;
|
|
15
|
+
};
|
|
16
|
+
type ToolCallHandler = RendererToolCallHandler | ClientToolCallHandler | HumanInTheLoopToolCallHandler;
|
|
17
|
+
export declare class RenderToolCalls {
|
|
18
|
+
#private;
|
|
19
|
+
readonly message: import("@angular/core").InputSignal<{
|
|
20
|
+
id: string;
|
|
21
|
+
role: "assistant";
|
|
22
|
+
name?: string;
|
|
23
|
+
content?: string;
|
|
24
|
+
toolCalls?: {
|
|
25
|
+
function: {
|
|
26
|
+
name: string;
|
|
27
|
+
arguments: string;
|
|
28
|
+
};
|
|
29
|
+
type: "function";
|
|
30
|
+
id: string;
|
|
31
|
+
}[];
|
|
32
|
+
}>;
|
|
33
|
+
readonly messages: import("@angular/core").InputSignal<({
|
|
34
|
+
id: string;
|
|
35
|
+
role: "developer";
|
|
36
|
+
content: string;
|
|
37
|
+
name?: string;
|
|
38
|
+
} | {
|
|
39
|
+
id: string;
|
|
40
|
+
role: "system";
|
|
41
|
+
content: string;
|
|
42
|
+
name?: string;
|
|
43
|
+
} | {
|
|
44
|
+
id: string;
|
|
45
|
+
role: "assistant";
|
|
46
|
+
name?: string;
|
|
47
|
+
content?: string;
|
|
48
|
+
toolCalls?: {
|
|
49
|
+
function: {
|
|
50
|
+
name: string;
|
|
51
|
+
arguments: string;
|
|
52
|
+
};
|
|
53
|
+
type: "function";
|
|
54
|
+
id: string;
|
|
55
|
+
}[];
|
|
56
|
+
} | {
|
|
57
|
+
id: string;
|
|
58
|
+
role: "user";
|
|
59
|
+
content: string;
|
|
60
|
+
name?: string;
|
|
61
|
+
} | {
|
|
62
|
+
id: string;
|
|
63
|
+
role: "tool";
|
|
64
|
+
content: string;
|
|
65
|
+
toolCallId: string;
|
|
66
|
+
error?: string;
|
|
67
|
+
})[]>;
|
|
68
|
+
readonly isLoading: import("@angular/core").InputSignal<boolean>;
|
|
69
|
+
protected pickRenderer(name: string): ToolCallHandler | undefined;
|
|
70
|
+
protected buildToolCall<Args extends Record<string, unknown>>(toolCall: ToolCall): AngularToolCall<Args>;
|
|
71
|
+
protected buildHumanInTheLoopToolCall<Args extends Record<string, unknown>>(toolCall: ToolCall): HumanInTheLoopToolCall<Args>;
|
|
72
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RenderToolCalls, never>;
|
|
73
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RenderToolCalls, "copilot-render-tool-calls", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; "messages": { "alias": "messages"; "required": true; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
74
|
+
}
|
|
75
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ElementRef, NgZone, OnDestroy } from
|
|
2
|
-
import { Observable } from
|
|
1
|
+
import { ElementRef, NgZone, OnDestroy } from "@angular/core";
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export interface ResizeState {
|
|
5
5
|
width: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ElementRef, NgZone, OnDestroy } from
|
|
2
|
-
import { ScrollDispatcher, ViewportRuler } from
|
|
3
|
-
import { Observable } from
|
|
1
|
+
import { ElementRef, NgZone, OnDestroy } from "@angular/core";
|
|
2
|
+
import { ScrollDispatcher, ViewportRuler } from "@angular/cdk/scrolling";
|
|
3
|
+
import { Observable } from "rxjs";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export interface ScrollState {
|
|
6
6
|
isAtBottom: boolean;
|
|
@@ -8,7 +8,7 @@ export interface ScrollState {
|
|
|
8
8
|
scrollHeight: number;
|
|
9
9
|
clientHeight: number;
|
|
10
10
|
}
|
|
11
|
-
export declare class
|
|
11
|
+
export declare class ScrollPosition implements OnDestroy {
|
|
12
12
|
private scrollDispatcher;
|
|
13
13
|
private viewportRuler;
|
|
14
14
|
private ngZone;
|
|
@@ -45,6 +45,6 @@ export declare class ScrollPositionService implements OnDestroy {
|
|
|
45
45
|
*/
|
|
46
46
|
observeResize(element: ElementRef<HTMLElement> | HTMLElement, debounceMs?: number): Observable<ResizeObserverEntry>;
|
|
47
47
|
ngOnDestroy(): void;
|
|
48
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
49
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
48
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollPosition, never>;
|
|
49
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ScrollPosition>;
|
|
50
50
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { TemplateRef, ViewContainerRef, OnInit, OnChanges, SimpleChanges, ChangeDetectorRef } from "@angular/core";
|
|
2
|
+
import { Type } from "@angular/core";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* @internal - This component is for internal use only.
|
|
6
|
+
* Simple slot component for rendering custom content or defaults.
|
|
7
|
+
* Supports templates and components only.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```html
|
|
11
|
+
* <!-- With template -->
|
|
12
|
+
* <copilot-slot [slot]="sendButtonTemplate" [context]="buttonContext">
|
|
13
|
+
* <button class="default-btn">Default</button>
|
|
14
|
+
* </copilot-slot>
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare class CopilotSlot implements OnInit, OnChanges {
|
|
18
|
+
private viewContainer;
|
|
19
|
+
private cdr;
|
|
20
|
+
slot: import("@angular/core").InputSignal<Type<any> | TemplateRef<any>>;
|
|
21
|
+
context: import("@angular/core").InputSignal<any>;
|
|
22
|
+
defaultComponent: import("@angular/core").InputSignal<Type<any>>;
|
|
23
|
+
outputs: import("@angular/core").InputSignal<Record<string, (event: any) => void>>;
|
|
24
|
+
private slotContainer;
|
|
25
|
+
private componentRef?;
|
|
26
|
+
constructor(viewContainer: ViewContainerRef, cdr: ChangeDetectorRef);
|
|
27
|
+
ngOnInit(): void;
|
|
28
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
29
|
+
isTemplate(value: any): value is TemplateRef<any>;
|
|
30
|
+
private renderSlot;
|
|
31
|
+
private updateComponentProps;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CopilotSlot, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CopilotSlot, "copilot-slot", never, { "slot": { "alias": "slot"; "required": false; "isSignal": true; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; "defaultComponent": { "alias": "defaultComponent"; "required": false; "isSignal": true; }; "outputs": { "alias": "outputs"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
34
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Type, ViewContainerRef, ComponentRef, EmbeddedViewRef } from
|
|
2
|
-
import { SlotValue, RenderSlotOptions, SlotRegistryEntry } from
|
|
1
|
+
import { Type, ViewContainerRef, ComponentRef, EmbeddedViewRef } from "@angular/core";
|
|
2
|
+
import { SlotValue, RenderSlotOptions, SlotRegistryEntry } from "./slot.types";
|
|
3
3
|
/**
|
|
4
4
|
* Renders a slot value into a ViewContainerRef.
|
|
5
5
|
* This is the core utility for slot rendering.
|
|
@@ -44,7 +44,8 @@ export declare function normalizeSlotValue<T = any>(value: SlotValue<T> | undefi
|
|
|
44
44
|
* @example
|
|
45
45
|
* ```typescript
|
|
46
46
|
* const slots = createSlotConfig({
|
|
47
|
-
|
|
47
|
+
standalone: true,
|
|
48
|
+
* sendButton: CustomSendButton,
|
|
48
49
|
* toolbar: 'custom-toolbar-class',
|
|
49
50
|
* footer: footerTemplate
|
|
50
51
|
* }, {
|
|
@@ -61,7 +62,8 @@ export declare function createSlotConfig<T extends Record<string, Type<any>>>(ov
|
|
|
61
62
|
* @example
|
|
62
63
|
* ```typescript
|
|
63
64
|
* @Component({
|
|
64
|
-
|
|
65
|
+
standalone: true,
|
|
66
|
+
* providers: [
|
|
65
67
|
* provideSlots({
|
|
66
68
|
* sendButton: CustomSendButton,
|
|
67
69
|
* toolbar: CustomToolbar
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Signal, Type } from "@angular/core";
|
|
2
|
+
import { FrontendTool } from "@copilotkitnext/core";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
export type AngularToolCall<Args extends Record<string, unknown> = Record<string, unknown>> = {
|
|
5
|
+
args: Partial<Args>;
|
|
6
|
+
status: "in-progress";
|
|
7
|
+
result: undefined;
|
|
8
|
+
} | {
|
|
9
|
+
args: Args;
|
|
10
|
+
status: "executing";
|
|
11
|
+
result: undefined;
|
|
12
|
+
} | {
|
|
13
|
+
args: Args;
|
|
14
|
+
status: "complete";
|
|
15
|
+
result: string;
|
|
16
|
+
};
|
|
17
|
+
export type HumanInTheLoopToolCall<Args extends Record<string, unknown> = Record<string, unknown>> = {
|
|
18
|
+
args: Partial<Args>;
|
|
19
|
+
status: "in-progress";
|
|
20
|
+
result: undefined;
|
|
21
|
+
} | {
|
|
22
|
+
args: Args;
|
|
23
|
+
status: "executing";
|
|
24
|
+
result: undefined;
|
|
25
|
+
respond: (result: unknown) => void;
|
|
26
|
+
} | {
|
|
27
|
+
args: Args;
|
|
28
|
+
status: "complete";
|
|
29
|
+
result: string;
|
|
30
|
+
};
|
|
31
|
+
export interface ToolRenderer<Args extends Record<string, unknown> = Record<string, unknown>> {
|
|
32
|
+
toolCall: Signal<AngularToolCall<Args>>;
|
|
33
|
+
}
|
|
34
|
+
export interface HumanInTheLoopToolRenderer<Args extends Record<string, unknown> = Record<string, unknown>> {
|
|
35
|
+
toolCall: Signal<HumanInTheLoopToolCall<Args>>;
|
|
36
|
+
}
|
|
37
|
+
export type ClientTool<Args extends Record<string, unknown> = Record<string, unknown>> = Omit<FrontendTool<Args>, "handler"> & {
|
|
38
|
+
renderer?: Type<ToolRenderer<Args>>;
|
|
39
|
+
};
|
|
40
|
+
export interface RenderToolCallConfig<Args extends Record<string, unknown> = Record<string, unknown>> {
|
|
41
|
+
name: string;
|
|
42
|
+
args: z.ZodType<Args>;
|
|
43
|
+
component: Type<ToolRenderer<Args>>;
|
|
44
|
+
agentId?: string;
|
|
45
|
+
}
|
|
46
|
+
export interface FrontendToolConfig<Args extends Record<string, unknown> = Record<string, unknown>> {
|
|
47
|
+
name: string;
|
|
48
|
+
description: string;
|
|
49
|
+
args: z.ZodType<Args>;
|
|
50
|
+
component: Type<ToolRenderer<Args>>;
|
|
51
|
+
handler: (args: Args) => Promise<unknown>;
|
|
52
|
+
agentId?: string;
|
|
53
|
+
}
|
|
54
|
+
export interface HumanInTheLoopConfig<Args extends Record<string, unknown> = Record<string, unknown>> {
|
|
55
|
+
name: string;
|
|
56
|
+
args: z.ZodType<Args>;
|
|
57
|
+
component: Type<HumanInTheLoopToolRenderer<Args>>;
|
|
58
|
+
toolCall: Signal<HumanInTheLoopToolCall<Args>>;
|
|
59
|
+
agentId?: string;
|
|
60
|
+
}
|
|
61
|
+
export declare function registerRenderToolCall<Args extends Record<string, unknown> = Record<string, unknown>>(renderToolCall: RenderToolCallConfig<Args>): void;
|
|
62
|
+
export declare function registerFrontendTool<Args extends Record<string, unknown> = Record<string, unknown>>(frontendTool: FrontendToolConfig<Args>): void;
|
|
63
|
+
export declare function registerHumanInTheLoop<Args extends Record<string, unknown> = Record<string, unknown>>(humanInTheLoop: HumanInTheLoopConfig<Args>): void;
|
package/dist/lib/utils.d.ts
CHANGED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export * from "./lib/config";
|
|
2
|
+
export * from "./lib/copilotkit";
|
|
3
|
+
export * from "./lib/tools";
|
|
4
|
+
export * from "./lib/render-tool-calls";
|
|
5
|
+
export * from "./lib/agent";
|
|
6
|
+
export * from "./lib/chat-config";
|
|
7
|
+
export * from "./lib/chat-state";
|
|
8
|
+
export * from "./lib/scroll-position";
|
|
9
|
+
export * from "./lib/resize-observer";
|
|
10
|
+
export * from "./lib/utils";
|
|
11
|
+
export * from "./lib/slots";
|
|
12
|
+
export * from "./lib/directives/copilotkit-agent-context";
|
|
13
|
+
export * from "./lib/directives/stick-to-bottom";
|
|
14
|
+
export * from "./lib/directives/tooltip";
|
|
15
|
+
export * from "./lib/components/chat/copilot-chat";
|
|
16
|
+
export * from "./lib/components/chat/copilot-chat-assistant-message";
|
|
17
|
+
export * from "./lib/components/chat/copilot-chat-assistant-message-buttons";
|
|
18
|
+
export * from "./lib/components/chat/copilot-chat-assistant-message-renderer";
|
|
19
|
+
export * from "./lib/components/chat/copilot-chat-assistant-message-toolbar";
|
|
20
|
+
export * from "./lib/components/chat/copilot-chat-assistant-message.types";
|
|
21
|
+
export * from "./lib/components/chat/copilot-chat-audio-recorder";
|
|
22
|
+
export * from "./lib/components/chat/copilot-chat-buttons";
|
|
23
|
+
export * from "./lib/components/chat/copilot-chat-input";
|
|
24
|
+
export * from "./lib/components/chat/copilot-chat-input-defaults";
|
|
25
|
+
export * from "./lib/components/chat/copilot-chat-input.types";
|
|
26
|
+
export * from "./lib/components/chat/copilot-chat-message-view";
|
|
27
|
+
export * from "./lib/components/chat/copilot-chat-message-view-cursor";
|
|
28
|
+
export * from "./lib/components/chat/copilot-chat-message-view.types";
|
|
29
|
+
export * from "./lib/components/chat/copilot-chat-textarea";
|
|
30
|
+
export * from "./lib/components/chat/copilot-chat-tool-calls-view";
|
|
31
|
+
export * from "./lib/components/chat/copilot-chat-toolbar";
|
|
32
|
+
export * from "./lib/components/chat/copilot-chat-tools-menu";
|
|
33
|
+
export * from "./lib/components/chat/copilot-chat-user-message";
|
|
34
|
+
export * from "./lib/components/chat/copilot-chat-user-message-branch-navigation";
|
|
35
|
+
export * from "./lib/components/chat/copilot-chat-user-message-buttons";
|
|
36
|
+
export * from "./lib/components/chat/copilot-chat-user-message-renderer";
|
|
37
|
+
export * from "./lib/components/chat/copilot-chat-user-message-toolbar";
|
|
38
|
+
export * from "./lib/components/chat/copilot-chat-user-message.types";
|
|
39
|
+
export * from "./lib/components/chat/copilot-chat-view";
|
|
40
|
+
export * from "./lib/components/chat/copilot-chat-view-disclaimer";
|
|
41
|
+
export * from "./lib/components/chat/copilot-chat-view-feather";
|
|
42
|
+
export * from "./lib/components/chat/copilot-chat-view-handlers";
|
|
43
|
+
export * from "./lib/components/chat/copilot-chat-view-input-container";
|
|
44
|
+
export * from "./lib/components/chat/copilot-chat-view-scroll-to-bottom-button";
|
|
45
|
+
export * from "./lib/components/chat/copilot-chat-view-scroll-view";
|
|
46
|
+
export * from "./lib/components/chat/copilot-chat-view.types";
|
package/dist/styles.css
CHANGED
|
@@ -1003,9 +1003,6 @@
|
|
|
1003
1003
|
--tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
1004
1004
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1005
1005
|
}
|
|
1006
|
-
.filter {
|
|
1007
|
-
filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
|
|
1008
|
-
}
|
|
1009
1006
|
.transition {
|
|
1010
1007
|
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, visibility, content-visibility, overlay, pointer-events;
|
|
1011
1008
|
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
@@ -1786,59 +1783,6 @@
|
|
|
1786
1783
|
inherits: false;
|
|
1787
1784
|
initial-value: 0 0 #0000;
|
|
1788
1785
|
}
|
|
1789
|
-
@property --tw-blur {
|
|
1790
|
-
syntax: "*";
|
|
1791
|
-
inherits: false;
|
|
1792
|
-
}
|
|
1793
|
-
@property --tw-brightness {
|
|
1794
|
-
syntax: "*";
|
|
1795
|
-
inherits: false;
|
|
1796
|
-
}
|
|
1797
|
-
@property --tw-contrast {
|
|
1798
|
-
syntax: "*";
|
|
1799
|
-
inherits: false;
|
|
1800
|
-
}
|
|
1801
|
-
@property --tw-grayscale {
|
|
1802
|
-
syntax: "*";
|
|
1803
|
-
inherits: false;
|
|
1804
|
-
}
|
|
1805
|
-
@property --tw-hue-rotate {
|
|
1806
|
-
syntax: "*";
|
|
1807
|
-
inherits: false;
|
|
1808
|
-
}
|
|
1809
|
-
@property --tw-invert {
|
|
1810
|
-
syntax: "*";
|
|
1811
|
-
inherits: false;
|
|
1812
|
-
}
|
|
1813
|
-
@property --tw-opacity {
|
|
1814
|
-
syntax: "*";
|
|
1815
|
-
inherits: false;
|
|
1816
|
-
}
|
|
1817
|
-
@property --tw-saturate {
|
|
1818
|
-
syntax: "*";
|
|
1819
|
-
inherits: false;
|
|
1820
|
-
}
|
|
1821
|
-
@property --tw-sepia {
|
|
1822
|
-
syntax: "*";
|
|
1823
|
-
inherits: false;
|
|
1824
|
-
}
|
|
1825
|
-
@property --tw-drop-shadow {
|
|
1826
|
-
syntax: "*";
|
|
1827
|
-
inherits: false;
|
|
1828
|
-
}
|
|
1829
|
-
@property --tw-drop-shadow-color {
|
|
1830
|
-
syntax: "*";
|
|
1831
|
-
inherits: false;
|
|
1832
|
-
}
|
|
1833
|
-
@property --tw-drop-shadow-alpha {
|
|
1834
|
-
syntax: "<percentage>";
|
|
1835
|
-
inherits: false;
|
|
1836
|
-
initial-value: 100%;
|
|
1837
|
-
}
|
|
1838
|
-
@property --tw-drop-shadow-size {
|
|
1839
|
-
syntax: "*";
|
|
1840
|
-
inherits: false;
|
|
1841
|
-
}
|
|
1842
1786
|
@property --tw-contain-size {
|
|
1843
1787
|
syntax: "*";
|
|
1844
1788
|
inherits: false;
|
|
@@ -1899,19 +1843,6 @@
|
|
|
1899
1843
|
--tw-ring-offset-width: 0px;
|
|
1900
1844
|
--tw-ring-offset-color: #fff;
|
|
1901
1845
|
--tw-ring-offset-shadow: 0 0 #0000;
|
|
1902
|
-
--tw-blur: initial;
|
|
1903
|
-
--tw-brightness: initial;
|
|
1904
|
-
--tw-contrast: initial;
|
|
1905
|
-
--tw-grayscale: initial;
|
|
1906
|
-
--tw-hue-rotate: initial;
|
|
1907
|
-
--tw-invert: initial;
|
|
1908
|
-
--tw-opacity: initial;
|
|
1909
|
-
--tw-saturate: initial;
|
|
1910
|
-
--tw-sepia: initial;
|
|
1911
|
-
--tw-drop-shadow: initial;
|
|
1912
|
-
--tw-drop-shadow-color: initial;
|
|
1913
|
-
--tw-drop-shadow-alpha: 100%;
|
|
1914
|
-
--tw-drop-shadow-size: initial;
|
|
1915
1846
|
--tw-contain-size: initial;
|
|
1916
1847
|
--tw-contain-layout: initial;
|
|
1917
1848
|
--tw-contain-paint: initial;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@copilotkitnext/angular",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"description": "Angular library for CopilotKit",
|
|
5
5
|
"main": "dist/fesm2022/copilotkitnext-angular.mjs",
|
|
6
6
|
"module": "dist/fesm2022/copilotkitnext-angular.mjs",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"rxjs": "^7.8.1",
|
|
30
30
|
"tailwind-merge": "^2.6.0",
|
|
31
31
|
"zod": "^3.22.4",
|
|
32
|
-
"@copilotkitnext/shared": "0.0.
|
|
33
|
-
"@copilotkitnext/core": "0.0.
|
|
32
|
+
"@copilotkitnext/shared": "0.0.10",
|
|
33
|
+
"@copilotkitnext/core": "0.0.10"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@angular/cdk": "^18.0.0 || ^19.0.0",
|