@mcp-elements/angular 0.1.0 → 0.1.2
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/index.d.ts +506 -0
- package/dist/index.js +2738 -0
- package/dist/index.js.map +1 -0
- package/package.json +28 -11
- package/src/accordion.component.ts +0 -74
- package/src/ai-badge.component.ts +0 -26
- package/src/alert.component.ts +0 -25
- package/src/avatar.component.ts +0 -24
- package/src/badge.component.ts +0 -17
- package/src/button.component.ts +0 -27
- package/src/card.component.ts +0 -46
- package/src/chat-bubble.component.ts +0 -53
- package/src/chips.component.ts +0 -33
- package/src/counter.component.ts +0 -48
- package/src/dialog.component.ts +0 -42
- package/src/drawer.component.ts +0 -48
- package/src/dropdown-menu.component.ts +0 -62
- package/src/feedback.component.ts +0 -71
- package/src/index.ts +0 -86
- package/src/input.component.ts +0 -46
- package/src/loader.component.ts +0 -12
- package/src/mcp/index.ts +0 -9
- package/src/mcp/mcp-app-frame.component.ts +0 -60
- package/src/mcp/mcp-consent-dialog.component.ts +0 -63
- package/src/mcp/mcp-resource-browser.component.ts +0 -86
- package/src/mcp/mcp-scope-inspector.component.ts +0 -81
- package/src/mcp/mcp-server-status.component.ts +0 -44
- package/src/mcp/mcp-tool-call.component.ts +0 -105
- package/src/mcp/mcp-tool-form.component.ts +0 -127
- package/src/password-input.component.ts +0 -35
- package/src/popover.component.ts +0 -40
- package/src/progress.component.ts +0 -20
- package/src/prompt-input.component.ts +0 -70
- package/src/select.component.ts +0 -106
- package/src/separator.component.ts +0 -15
- package/src/skeleton.component.ts +0 -11
- package/src/source-card.component.ts +0 -34
- package/src/streaming-text.component.ts +0 -43
- package/src/suggestion-chips.component.ts +0 -23
- package/src/switch.component.ts +0 -32
- package/src/tabs.component.ts +0 -95
- package/src/textarea.component.ts +0 -22
- package/src/toast.component.ts +0 -62
- package/src/tooltip.directive.ts +0 -63
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,506 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { ElementRef, OnDestroy, Renderer2, OnInit } from '@angular/core';
|
|
3
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
4
|
+
import * as _mcp_elements_core from '@mcp-elements/core';
|
|
5
|
+
import { TabItem, AccordionItemConfig, SelectOption, ToolStateApi, ToolStateSnapshot, JsonSchema, FieldDescriptor, ScopeDescriptor, AppMessageEnvelope } from '@mcp-elements/core';
|
|
6
|
+
|
|
7
|
+
type ButtonVariant = 'primary' | 'secondary' | 'outline' | 'ghost' | 'destructive' | 'link';
|
|
8
|
+
type ButtonSize = 'sm' | 'md' | 'lg' | 'icon';
|
|
9
|
+
declare class SnxButtonComponent {
|
|
10
|
+
variant: _angular_core.InputSignal<ButtonVariant>;
|
|
11
|
+
size: _angular_core.InputSignal<ButtonSize>;
|
|
12
|
+
disabled: _angular_core.InputSignal<boolean>;
|
|
13
|
+
type: _angular_core.InputSignal<"button" | "submit" | "reset">;
|
|
14
|
+
class: _angular_core.InputSignal<string>;
|
|
15
|
+
classes: _angular_core.Signal<string>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
type BadgeVariant = 'default' | 'secondary' | 'outline' | 'destructive';
|
|
19
|
+
declare class SnxBadgeComponent {
|
|
20
|
+
variant: _angular_core.InputSignal<BadgeVariant>;
|
|
21
|
+
class: _angular_core.InputSignal<string>;
|
|
22
|
+
classes: _angular_core.Signal<string>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
declare class SnxCardComponent {
|
|
26
|
+
class: _angular_core.InputSignal<string>;
|
|
27
|
+
classes: _angular_core.Signal<string>;
|
|
28
|
+
}
|
|
29
|
+
declare class SnxCardHeaderComponent {
|
|
30
|
+
}
|
|
31
|
+
declare class SnxCardTitleComponent {
|
|
32
|
+
}
|
|
33
|
+
declare class SnxCardDescriptionComponent {
|
|
34
|
+
}
|
|
35
|
+
declare class SnxCardContentComponent {
|
|
36
|
+
}
|
|
37
|
+
declare class SnxCardFooterComponent {
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
declare class SnxInputComponent implements ControlValueAccessor {
|
|
41
|
+
type: _angular_core.InputSignal<string>;
|
|
42
|
+
placeholder: _angular_core.InputSignal<string>;
|
|
43
|
+
disabled: _angular_core.InputSignal<boolean>;
|
|
44
|
+
value: _angular_core.InputSignal<string>;
|
|
45
|
+
class: _angular_core.InputSignal<string>;
|
|
46
|
+
classes: _angular_core.Signal<string>;
|
|
47
|
+
private onChange;
|
|
48
|
+
onTouched: () => void;
|
|
49
|
+
onInput(event: Event): void;
|
|
50
|
+
writeValue(value: string): void;
|
|
51
|
+
registerOnChange(fn: (value: string) => void): void;
|
|
52
|
+
registerOnTouched(fn: () => void): void;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
declare class SnxTextareaComponent {
|
|
56
|
+
placeholder: _angular_core.InputSignal<string>;
|
|
57
|
+
disabled: _angular_core.InputSignal<boolean>;
|
|
58
|
+
rows: _angular_core.InputSignal<number>;
|
|
59
|
+
class: _angular_core.InputSignal<string>;
|
|
60
|
+
classes: _angular_core.Signal<string>;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
declare class SnxAvatarComponent {
|
|
64
|
+
src: _angular_core.InputSignal<string>;
|
|
65
|
+
alt: _angular_core.InputSignal<string>;
|
|
66
|
+
fallback: _angular_core.InputSignal<string>;
|
|
67
|
+
class: _angular_core.InputSignal<string>;
|
|
68
|
+
hasError: _angular_core.WritableSignal<boolean>;
|
|
69
|
+
classes: _angular_core.Signal<string>;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
declare class SnxSeparatorComponent {
|
|
73
|
+
orientation: _angular_core.InputSignal<"horizontal" | "vertical">;
|
|
74
|
+
class: _angular_core.InputSignal<string>;
|
|
75
|
+
classes: _angular_core.Signal<string>;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
declare class SnxSkeletonComponent {
|
|
79
|
+
class: _angular_core.InputSignal<string>;
|
|
80
|
+
classes: _angular_core.Signal<string>;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
declare class SnxDialogComponent {
|
|
84
|
+
modal: _angular_core.InputSignal<boolean>;
|
|
85
|
+
open: _angular_core.WritableSignal<boolean>;
|
|
86
|
+
openChange: _angular_core.OutputEmitterRef<boolean>;
|
|
87
|
+
toggle(): void;
|
|
88
|
+
close(): void;
|
|
89
|
+
show(): void;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
declare class SnxTabsComponent {
|
|
93
|
+
items: _angular_core.InputSignal<TabItem[]>;
|
|
94
|
+
defaultValue: _angular_core.InputSignal<string>;
|
|
95
|
+
activeValue: _angular_core.WritableSignal<string>;
|
|
96
|
+
private api;
|
|
97
|
+
constructor();
|
|
98
|
+
getTabProps(value: string): {
|
|
99
|
+
role: "tab";
|
|
100
|
+
'aria-selected': boolean;
|
|
101
|
+
'aria-controls': string;
|
|
102
|
+
id: string;
|
|
103
|
+
tabIndex: number;
|
|
104
|
+
disabled: boolean;
|
|
105
|
+
onClick: () => void;
|
|
106
|
+
onKeyDown: (e: KeyboardEvent) => void;
|
|
107
|
+
};
|
|
108
|
+
getPanelProps(value: string): {
|
|
109
|
+
role: "tabpanel";
|
|
110
|
+
id: string;
|
|
111
|
+
'aria-labelledby': string;
|
|
112
|
+
hidden: true | undefined;
|
|
113
|
+
tabIndex: number;
|
|
114
|
+
};
|
|
115
|
+
isActive(value: string): boolean;
|
|
116
|
+
select(value: string): void;
|
|
117
|
+
}
|
|
118
|
+
declare class SnxTabsListComponent {
|
|
119
|
+
}
|
|
120
|
+
declare class SnxTabsTriggerComponent {
|
|
121
|
+
isActive: _angular_core.InputSignal<boolean>;
|
|
122
|
+
onClick: _angular_core.OutputEmitterRef<void>;
|
|
123
|
+
class: _angular_core.InputSignal<string>;
|
|
124
|
+
classes: _angular_core.Signal<string>;
|
|
125
|
+
}
|
|
126
|
+
declare class SnxTabsContentComponent {
|
|
127
|
+
isActive: _angular_core.InputSignal<boolean>;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
declare class SnxAccordionComponent {
|
|
131
|
+
items: _angular_core.InputSignal<AccordionItemConfig[]>;
|
|
132
|
+
type: _angular_core.InputSignal<"single" | "multiple">;
|
|
133
|
+
collapsible: _angular_core.InputSignal<boolean>;
|
|
134
|
+
expandedValues: _angular_core.WritableSignal<string[]>;
|
|
135
|
+
private api;
|
|
136
|
+
isExpanded(value: string): boolean;
|
|
137
|
+
toggle(value: string): void;
|
|
138
|
+
}
|
|
139
|
+
declare class SnxAccordionItemComponent {
|
|
140
|
+
}
|
|
141
|
+
declare class SnxAccordionTriggerComponent {
|
|
142
|
+
isExpanded: _angular_core.InputSignal<boolean>;
|
|
143
|
+
onClick: _angular_core.OutputEmitterRef<void>;
|
|
144
|
+
}
|
|
145
|
+
declare class SnxAccordionContentComponent {
|
|
146
|
+
isExpanded: _angular_core.InputSignal<boolean>;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
declare class SnxSelectComponent {
|
|
150
|
+
options: _angular_core.InputSignal<SelectOption[]>;
|
|
151
|
+
placeholder: _angular_core.InputSignal<string>;
|
|
152
|
+
valueChange: _angular_core.OutputEmitterRef<string>;
|
|
153
|
+
isOpen: _angular_core.WritableSignal<boolean>;
|
|
154
|
+
selectedValue: _angular_core.WritableSignal<string | null>;
|
|
155
|
+
highlightedIndex: _angular_core.WritableSignal<number>;
|
|
156
|
+
container: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
157
|
+
selectedLabel: _angular_core.Signal<string>;
|
|
158
|
+
toggle(): void;
|
|
159
|
+
selectOption(option: SelectOption): void;
|
|
160
|
+
getItemClasses(option: SelectOption, index: number): string;
|
|
161
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
162
|
+
onDocumentClick(event: MouseEvent): void;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
declare class SnxTooltipDirective implements OnDestroy {
|
|
166
|
+
private el;
|
|
167
|
+
private renderer;
|
|
168
|
+
mcpeTooltip: _angular_core.InputSignal<string>;
|
|
169
|
+
tooltipDelay: _angular_core.InputSignal<number>;
|
|
170
|
+
private tooltipEl;
|
|
171
|
+
private timeoutId;
|
|
172
|
+
constructor(el: ElementRef, renderer: Renderer2);
|
|
173
|
+
onShow(): void;
|
|
174
|
+
onHide(): void;
|
|
175
|
+
private show;
|
|
176
|
+
private hide;
|
|
177
|
+
private clearDelay;
|
|
178
|
+
ngOnDestroy(): void;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
declare class SnxPopoverComponent {
|
|
182
|
+
isOpen: _angular_core.WritableSignal<boolean>;
|
|
183
|
+
container: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
184
|
+
toggle(): void;
|
|
185
|
+
close(): void;
|
|
186
|
+
show(): void;
|
|
187
|
+
onDocumentClick(event: MouseEvent): void;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
interface ToastData {
|
|
191
|
+
id: string;
|
|
192
|
+
title?: string;
|
|
193
|
+
description?: string;
|
|
194
|
+
variant?: 'default' | 'destructive' | 'success';
|
|
195
|
+
}
|
|
196
|
+
declare class SnxToastService {
|
|
197
|
+
toasts: _angular_core.WritableSignal<ToastData[]>;
|
|
198
|
+
private counter;
|
|
199
|
+
show(toast: Omit<ToastData, 'id'>, duration?: number): string;
|
|
200
|
+
success(title: string, description?: string): string;
|
|
201
|
+
error(title: string, description?: string): string;
|
|
202
|
+
dismiss(id: string): void;
|
|
203
|
+
}
|
|
204
|
+
declare class SnxToasterComponent {
|
|
205
|
+
toastService: SnxToastService;
|
|
206
|
+
constructor(toastService: SnxToastService);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
declare class SnxDrawerComponent {
|
|
210
|
+
side: _angular_core.InputSignal<"bottom" | "left" | "right" | "top">;
|
|
211
|
+
open: _angular_core.WritableSignal<boolean>;
|
|
212
|
+
openChange: _angular_core.OutputEmitterRef<boolean>;
|
|
213
|
+
show(): void;
|
|
214
|
+
close(): void;
|
|
215
|
+
toggle(): void;
|
|
216
|
+
}
|
|
217
|
+
declare class SnxDrawerHeaderComponent {
|
|
218
|
+
}
|
|
219
|
+
declare class SnxDrawerFooterComponent {
|
|
220
|
+
}
|
|
221
|
+
declare class SnxDrawerTitleComponent {
|
|
222
|
+
}
|
|
223
|
+
declare class SnxDrawerDescriptionComponent {
|
|
224
|
+
}
|
|
225
|
+
declare class SnxDrawerBodyComponent {
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
interface DropdownItem {
|
|
229
|
+
id: string;
|
|
230
|
+
label: string;
|
|
231
|
+
disabled?: boolean;
|
|
232
|
+
type?: 'item' | 'separator' | 'label';
|
|
233
|
+
shortcut?: string;
|
|
234
|
+
}
|
|
235
|
+
declare class SnxDropdownMenuComponent {
|
|
236
|
+
items: _angular_core.InputSignal<DropdownItem[]>;
|
|
237
|
+
isOpen: _angular_core.WritableSignal<boolean>;
|
|
238
|
+
container: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
239
|
+
toggle(): void;
|
|
240
|
+
close(): void;
|
|
241
|
+
selectItem(item: DropdownItem): void;
|
|
242
|
+
onDocumentClick(event: MouseEvent): void;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
declare class SnxSwitchComponent {
|
|
246
|
+
checked: _angular_core.WritableSignal<boolean>;
|
|
247
|
+
disabled: _angular_core.InputSignal<boolean>;
|
|
248
|
+
checkedChange: _angular_core.OutputEmitterRef<boolean>;
|
|
249
|
+
toggle(): void;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
declare class SnxProgressComponent {
|
|
253
|
+
value: _angular_core.InputSignal<number>;
|
|
254
|
+
max: _angular_core.InputSignal<number>;
|
|
255
|
+
transform: _angular_core.Signal<string>;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
declare class SnxLoaderComponent {
|
|
259
|
+
size: _angular_core.InputSignal<"sm" | "md" | "lg" | "xl">;
|
|
260
|
+
variant: _angular_core.InputSignal<"primary" | "muted">;
|
|
261
|
+
classes: _angular_core.Signal<string>;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
declare class SnxChipComponent {
|
|
265
|
+
variant: _angular_core.InputSignal<"primary" | "outline" | "destructive" | "default">;
|
|
266
|
+
removable: _angular_core.InputSignal<boolean>;
|
|
267
|
+
remove: _angular_core.OutputEmitterRef<void>;
|
|
268
|
+
classes: _angular_core.Signal<string>;
|
|
269
|
+
}
|
|
270
|
+
declare class SnxChipsComponent {
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
declare class SnxPasswordInputComponent {
|
|
274
|
+
placeholder: _angular_core.InputSignal<string>;
|
|
275
|
+
disabled: _angular_core.InputSignal<boolean>;
|
|
276
|
+
showPassword: _angular_core.WritableSignal<boolean>;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
declare class SnxCounterComponent {
|
|
280
|
+
value: _angular_core.WritableSignal<number>;
|
|
281
|
+
min: _angular_core.InputSignal<number>;
|
|
282
|
+
max: _angular_core.InputSignal<number>;
|
|
283
|
+
step: _angular_core.InputSignal<number>;
|
|
284
|
+
disabled: _angular_core.InputSignal<boolean>;
|
|
285
|
+
valueChange: _angular_core.OutputEmitterRef<number>;
|
|
286
|
+
decrement(): void;
|
|
287
|
+
increment(): void;
|
|
288
|
+
onInput(event: Event): void;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
declare class SnxAlertComponent {
|
|
292
|
+
variant: _angular_core.InputSignal<"destructive" | "default" | "success" | "warning">;
|
|
293
|
+
classes: _angular_core.Signal<string>;
|
|
294
|
+
}
|
|
295
|
+
declare class SnxAlertTitleComponent {
|
|
296
|
+
}
|
|
297
|
+
declare class SnxAlertDescriptionComponent {
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
declare class SnxPromptInputComponent {
|
|
301
|
+
class: _angular_core.InputSignal<string>;
|
|
302
|
+
classes: _angular_core.Signal<string>;
|
|
303
|
+
}
|
|
304
|
+
declare class SnxPromptInputTextareaComponent {
|
|
305
|
+
placeholder: _angular_core.InputSignal<string>;
|
|
306
|
+
rows: _angular_core.InputSignal<number>;
|
|
307
|
+
}
|
|
308
|
+
declare class SnxPromptInputFooterComponent {
|
|
309
|
+
}
|
|
310
|
+
declare class SnxPromptInputActionsComponent {
|
|
311
|
+
}
|
|
312
|
+
declare class SnxPromptInputCharCountComponent {
|
|
313
|
+
count: _angular_core.InputSignal<number>;
|
|
314
|
+
max: _angular_core.InputSignal<number | undefined>;
|
|
315
|
+
}
|
|
316
|
+
declare class SnxPromptInputAttachmentsComponent {
|
|
317
|
+
}
|
|
318
|
+
declare class SnxPromptInputAttachmentComponent {
|
|
319
|
+
remove: _angular_core.OutputEmitterRef<void>;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
type ChatBubbleVariant = 'user' | 'ai';
|
|
323
|
+
declare class SnxChatBubbleComponent {
|
|
324
|
+
variant: _angular_core.InputSignal<ChatBubbleVariant>;
|
|
325
|
+
class: _angular_core.InputSignal<string>;
|
|
326
|
+
classes: _angular_core.Signal<string>;
|
|
327
|
+
}
|
|
328
|
+
declare class SnxChatBubbleAvatarComponent {
|
|
329
|
+
src: _angular_core.InputSignal<string>;
|
|
330
|
+
alt: _angular_core.InputSignal<string>;
|
|
331
|
+
}
|
|
332
|
+
declare class SnxChatBubbleContentComponent {
|
|
333
|
+
}
|
|
334
|
+
declare class SnxChatBubbleTimestampComponent {
|
|
335
|
+
}
|
|
336
|
+
declare class SnxChatBubbleTypingComponent {
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
type AiBadgeVariant = 'default' | 'prominent' | 'subtle';
|
|
340
|
+
declare class SnxAiBadgeComponent {
|
|
341
|
+
variant: _angular_core.InputSignal<AiBadgeVariant>;
|
|
342
|
+
showIcon: _angular_core.InputSignal<boolean>;
|
|
343
|
+
class: _angular_core.InputSignal<string>;
|
|
344
|
+
classes: _angular_core.Signal<string>;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
type SuggestionChipVariant = 'default' | 'primary' | 'outline';
|
|
348
|
+
declare class SnxSuggestionChipsComponent {
|
|
349
|
+
}
|
|
350
|
+
declare class SnxSuggestionChipComponent {
|
|
351
|
+
variant: _angular_core.InputSignal<SuggestionChipVariant>;
|
|
352
|
+
class: _angular_core.InputSignal<string>;
|
|
353
|
+
classes: _angular_core.Signal<string>;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
declare class SnxSourceCardsComponent {
|
|
357
|
+
}
|
|
358
|
+
declare class SnxSourceCardComponent {
|
|
359
|
+
href: _angular_core.InputSignal<string>;
|
|
360
|
+
favicon: _angular_core.InputSignal<string>;
|
|
361
|
+
title: _angular_core.InputSignal<string>;
|
|
362
|
+
domain: _angular_core.InputSignal<string>;
|
|
363
|
+
index: _angular_core.InputSignal<number | undefined>;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
declare class SnxStreamingTextComponent {
|
|
367
|
+
}
|
|
368
|
+
declare class SnxStreamingTextFadeInComponent {
|
|
369
|
+
}
|
|
370
|
+
declare class SnxStreamingTextWordComponent {
|
|
371
|
+
}
|
|
372
|
+
declare class SnxStreamingTextLineComponent {
|
|
373
|
+
}
|
|
374
|
+
declare class SnxStreamingTextSkeletonComponent {
|
|
375
|
+
}
|
|
376
|
+
declare class SnxStreamingTextSkeletonLineComponent {
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
declare class SnxFeedbackComponent {
|
|
380
|
+
}
|
|
381
|
+
type FeedbackType = 'up' | 'down';
|
|
382
|
+
declare class SnxFeedbackButtonComponent {
|
|
383
|
+
feedbackType: _angular_core.InputSignal<FeedbackType>;
|
|
384
|
+
selected: _angular_core.InputSignal<boolean>;
|
|
385
|
+
class: _angular_core.InputSignal<string>;
|
|
386
|
+
classes: _angular_core.Signal<string>;
|
|
387
|
+
}
|
|
388
|
+
declare class SnxFeedbackSeparatorComponent {
|
|
389
|
+
}
|
|
390
|
+
declare class SnxFeedbackFormComponent {
|
|
391
|
+
}
|
|
392
|
+
declare class SnxFeedbackInputComponent {
|
|
393
|
+
placeholder: _angular_core.InputSignal<string>;
|
|
394
|
+
}
|
|
395
|
+
declare class SnxFeedbackSubmitComponent {
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
type McpConnectionStatus = 'connected' | 'connecting' | 'disconnected' | 'error';
|
|
399
|
+
declare class McpeMcpServerStatusComponent {
|
|
400
|
+
status: _angular_core.InputSignal<McpConnectionStatus>;
|
|
401
|
+
serverName: _angular_core.InputSignal<string | undefined>;
|
|
402
|
+
class: _angular_core.InputSignal<string>;
|
|
403
|
+
classes: _angular_core.Signal<string>;
|
|
404
|
+
label: _angular_core.Signal<string>;
|
|
405
|
+
ariaLabel: _angular_core.Signal<string>;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
declare class McpeMcpToolCallComponent implements OnDestroy {
|
|
409
|
+
state: _angular_core.InputSignal<ToolStateApi>;
|
|
410
|
+
toolName: _angular_core.InputSignal<string | undefined>;
|
|
411
|
+
args: _angular_core.InputSignal<Record<string, unknown> | undefined>;
|
|
412
|
+
onRetry: _angular_core.OutputEmitterRef<void>;
|
|
413
|
+
class: _angular_core.InputSignal<string>;
|
|
414
|
+
readonly statusLabels: Record<string, string>;
|
|
415
|
+
snap: _angular_core.WritableSignal<ToolStateSnapshot>;
|
|
416
|
+
private _unsub;
|
|
417
|
+
constructor();
|
|
418
|
+
ngOnDestroy(): void;
|
|
419
|
+
classes: _angular_core.Signal<string>;
|
|
420
|
+
badgeClass: _angular_core.Signal<string>;
|
|
421
|
+
displayName: _angular_core.Signal<string>;
|
|
422
|
+
displayArgs: _angular_core.Signal<Record<string, unknown> | undefined>;
|
|
423
|
+
textBlocks: _angular_core.Signal<string[]>;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
declare class McpeMcpToolFormComponent implements OnInit {
|
|
427
|
+
schema: _angular_core.InputSignal<JsonSchema>;
|
|
428
|
+
loading: _angular_core.InputSignal<boolean>;
|
|
429
|
+
submitLabel: _angular_core.InputSignal<string>;
|
|
430
|
+
class: _angular_core.InputSignal<string>;
|
|
431
|
+
onSubmit: _angular_core.OutputEmitterRef<Record<string, unknown>>;
|
|
432
|
+
fields: _angular_core.Signal<FieldDescriptor[]>;
|
|
433
|
+
values: _angular_core.WritableSignal<Record<string, unknown>>;
|
|
434
|
+
ngOnInit(): void;
|
|
435
|
+
classes: _angular_core.Signal<string>;
|
|
436
|
+
setValue(key: string, value: unknown): void;
|
|
437
|
+
onInputChange(key: string, event: Event): void;
|
|
438
|
+
onNumberChange(key: string, event: Event): void;
|
|
439
|
+
onCheckChange(key: string, event: Event): void;
|
|
440
|
+
getStr(key: string): string;
|
|
441
|
+
getBool(key: string): boolean;
|
|
442
|
+
labelClass(field: FieldDescriptor): string;
|
|
443
|
+
inputType(field: FieldDescriptor): string;
|
|
444
|
+
handleSubmit(): void;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
declare class McpeMcpConsentDialogComponent {
|
|
448
|
+
open: _angular_core.InputSignal<boolean>;
|
|
449
|
+
serverName: _angular_core.InputSignal<string>;
|
|
450
|
+
serverIcon: _angular_core.InputSignal<string | undefined>;
|
|
451
|
+
scopes: _angular_core.InputSignal<string[]>;
|
|
452
|
+
onApprove: _angular_core.OutputEmitterRef<void>;
|
|
453
|
+
onDeny: _angular_core.OutputEmitterRef<void>;
|
|
454
|
+
parsedScopes: _angular_core.Signal<_mcp_elements_core.ScopeDescriptor[]>;
|
|
455
|
+
approve(): void;
|
|
456
|
+
deny(): void;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
declare class McpeMcpScopeInspectorComponent {
|
|
460
|
+
scopes: _angular_core.InputSignal<string | ScopeDescriptor[]>;
|
|
461
|
+
descriptions: _angular_core.InputSignal<Record<string, string>>;
|
|
462
|
+
class: _angular_core.InputSignal<string>;
|
|
463
|
+
openKeys: _angular_core.WritableSignal<Set<string>>;
|
|
464
|
+
parsedScopes: _angular_core.Signal<ScopeDescriptor[]>;
|
|
465
|
+
classes: _angular_core.Signal<string>;
|
|
466
|
+
toggle(key: string): void;
|
|
467
|
+
isOpen(key: string): boolean;
|
|
468
|
+
chevronClass(key: string): string;
|
|
469
|
+
getDescription(s: ScopeDescriptor): string | undefined;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
interface McpResource {
|
|
473
|
+
uri: string;
|
|
474
|
+
name: string;
|
|
475
|
+
mimeType?: string;
|
|
476
|
+
description?: string;
|
|
477
|
+
}
|
|
478
|
+
declare class McpeMcpResourceBrowserComponent {
|
|
479
|
+
resources: _angular_core.InputSignal<McpResource[]>;
|
|
480
|
+
selectedUri: _angular_core.InputSignal<string | undefined>;
|
|
481
|
+
loading: _angular_core.InputSignal<boolean>;
|
|
482
|
+
class: _angular_core.InputSignal<string>;
|
|
483
|
+
onSelect: _angular_core.OutputEmitterRef<McpResource>;
|
|
484
|
+
readonly skeletonItems: number[];
|
|
485
|
+
classes: _angular_core.Signal<string>;
|
|
486
|
+
itemClass(uri: string): string;
|
|
487
|
+
mimeLabel(mimeType?: string): string;
|
|
488
|
+
select(r: McpResource): void;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
declare class McpeMcpAppFrameComponent implements OnDestroy {
|
|
492
|
+
src: _angular_core.InputSignal<string>;
|
|
493
|
+
height: _angular_core.InputSignal<number>;
|
|
494
|
+
sandbox: _angular_core.InputSignal<string>;
|
|
495
|
+
class: _angular_core.InputSignal<string>;
|
|
496
|
+
onMessage: _angular_core.OutputEmitterRef<AppMessageEnvelope>;
|
|
497
|
+
frame: _angular_core.Signal<ElementRef<HTMLIFrameElement> | undefined>;
|
|
498
|
+
private _unsub;
|
|
499
|
+
private _removeListener;
|
|
500
|
+
constructor();
|
|
501
|
+
private _cleanup;
|
|
502
|
+
ngOnDestroy(): void;
|
|
503
|
+
classes: _angular_core.Signal<string>;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
export { type McpConnectionStatus, type McpResource, McpeMcpAppFrameComponent, McpeMcpConsentDialogComponent, McpeMcpResourceBrowserComponent, McpeMcpScopeInspectorComponent, McpeMcpServerStatusComponent, McpeMcpToolCallComponent, McpeMcpToolFormComponent, SnxAccordionComponent, SnxAccordionContentComponent, SnxAccordionItemComponent, SnxAccordionTriggerComponent, SnxAiBadgeComponent, SnxAlertComponent, SnxAlertDescriptionComponent, SnxAlertTitleComponent, SnxAvatarComponent, SnxBadgeComponent, SnxButtonComponent, SnxCardComponent, SnxCardContentComponent, SnxCardDescriptionComponent, SnxCardFooterComponent, SnxCardHeaderComponent, SnxCardTitleComponent, SnxChatBubbleAvatarComponent, SnxChatBubbleComponent, SnxChatBubbleContentComponent, SnxChatBubbleTimestampComponent, SnxChatBubbleTypingComponent, SnxChipComponent, SnxChipsComponent, SnxCounterComponent, SnxDialogComponent, SnxDrawerBodyComponent, SnxDrawerComponent, SnxDrawerDescriptionComponent, SnxDrawerFooterComponent, SnxDrawerHeaderComponent, SnxDrawerTitleComponent, SnxDropdownMenuComponent, SnxFeedbackButtonComponent, SnxFeedbackComponent, SnxFeedbackFormComponent, SnxFeedbackInputComponent, SnxFeedbackSeparatorComponent, SnxFeedbackSubmitComponent, SnxInputComponent, SnxLoaderComponent, SnxPasswordInputComponent, SnxPopoverComponent, SnxProgressComponent, SnxPromptInputActionsComponent, SnxPromptInputAttachmentComponent, SnxPromptInputAttachmentsComponent, SnxPromptInputCharCountComponent, SnxPromptInputComponent, SnxPromptInputFooterComponent, SnxPromptInputTextareaComponent, SnxSelectComponent, SnxSeparatorComponent, SnxSkeletonComponent, SnxSourceCardComponent, SnxSourceCardsComponent, SnxStreamingTextComponent, SnxStreamingTextFadeInComponent, SnxStreamingTextLineComponent, SnxStreamingTextSkeletonComponent, SnxStreamingTextSkeletonLineComponent, SnxStreamingTextWordComponent, SnxSuggestionChipComponent, SnxSuggestionChipsComponent, SnxSwitchComponent, SnxTabsComponent, SnxTabsContentComponent, SnxTabsListComponent, SnxTabsTriggerComponent, SnxTextareaComponent, SnxToastService, SnxToasterComponent, SnxTooltipDirective };
|