@aleph-alpha/lib-mcp 2.1.1 → 3.0.0

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.
@@ -103,6 +103,44 @@
103
103
  ],
104
104
  "_autoGenerated": true
105
105
  },
106
+ "CkDropZoneOverlay": {
107
+ "description": "Full-window drag-and-drop overlay. Listens for file drags anywhere on the page, reveals a teleported overlay, validates dropped files against `accept`, `maxFileSizeBytes` and `maxFiles`, and emits the accepted files. Purely presentational and self-contained: it owns its own drag state and has no knowledge of the host app. All limits and copy are configurable, and rejection handling can be delegated to the consumer via the `rejected` event.",
108
+ "category": "Form Inputs",
109
+ "useCases": [
110
+ "page-level file attachment",
111
+ "drag-and-drop upload",
112
+ "chat composer"
113
+ ],
114
+ "keywords": [
115
+ "drag and drop",
116
+ "drop zone",
117
+ "file upload",
118
+ "overlay",
119
+ "attachments",
120
+ "drop",
121
+ "zone"
122
+ ],
123
+ "related": [
124
+ "CkFileItemsList",
125
+ "CkPromptInput"
126
+ ],
127
+ "props": [
128
+ "accept",
129
+ "maxFileSizeBytes",
130
+ "maxFiles",
131
+ "disabled",
132
+ "heading",
133
+ "hint",
134
+ "ariaLabel",
135
+ "showErrors",
136
+ "errorTimeoutMs"
137
+ ],
138
+ "examples": [
139
+ "Default",
140
+ "SingleFile"
141
+ ],
142
+ "_autoGenerated": true
143
+ },
106
144
  "CkFeedbackButton": {
107
145
  "description": "Binary thumbs up / thumbs down feedback control for assistant messages. Fully prop-driven: the host application owns the selection and lock state and decides when (or if) to persist it to a backend. Labels default to those provided by `useChatKitLabels` (which can be translated via `provideChatKitLabels`). The `ariaLabel*` props override the injected labels on a per-instance basis when set.",
108
146
  "category": "Feedback",
@@ -148,6 +186,54 @@
148
186
  ],
149
187
  "_autoGenerated": true
150
188
  },
189
+ "CkFeedbackDialog": {
190
+ "description": "Modal dialog for collecting qualitative feedback on an assistant response. Opened after a binary thumbs-up / thumbs-down click (see `CkFeedbackButton`), it lets the user pick one or more reason codes and add an optional free-text comment, then submit them alongside the original sentiment. Multiple reasons per submission: the backend (feedback-kit) stores a list of reason codes per response (each becomes its own categorical score), so the chips are multi-select. Fully prop-driven: the host application owns `open`, the list of reasons to show (fetched from `GET /feedback/config`), the response text to display, and the submission handler. The component only manages transient form state (the selected reasons and free-text value) until the user submits or cancels. capture a free-text comment, drive a two-step rating flow rating, comment CkConversation, UiDialog, UiToggleGroup",
191
+ "category": "Feedback",
192
+ "useCases": [
193
+ "collect qualitative feedback",
194
+ "gather a reason code for a response"
195
+ ],
196
+ "keywords": [
197
+ "feedback",
198
+ "dialog",
199
+ "modal",
200
+ "reason codes",
201
+ "free text",
202
+ "qualitative"
203
+ ],
204
+ "related": [
205
+ "CkFeedbackButton",
206
+ "CkMessageActionButton",
207
+ "CkAgentMessage"
208
+ ],
209
+ "props": [
210
+ "open",
211
+ "sentiment",
212
+ "responseText",
213
+ "reasons",
214
+ "maxFreeTextLength",
215
+ "submitting",
216
+ "disabled",
217
+ "titlePositive",
218
+ "titleNegative",
219
+ "responseHeading",
220
+ "description",
221
+ "otherLabel",
222
+ "otherTooltip",
223
+ "freeTextPlaceholder",
224
+ "cancelLabel",
225
+ "submitLabel"
226
+ ],
227
+ "examples": [
228
+ "Positive",
229
+ "Negative",
230
+ "NoResponseColumn",
231
+ "Submitting",
232
+ "LongResponse",
233
+ "WithFeedbackButton"
234
+ ],
235
+ "_autoGenerated": true
236
+ },
151
237
  "CkFileItemsList": {
152
238
  "description": "Horizontal list of file attachments; collapses to a popover once the count exceeds `maxInline`.",
153
239
  "category": "Form Inputs",
@@ -177,6 +263,7 @@
177
263
  "isRemovable",
178
264
  "removeLabel",
179
265
  "disabled",
266
+ "showStatus",
180
267
  "triggerLabel",
181
268
  "triggerAriaLabel",
182
269
  "listLabel",
@@ -185,6 +272,7 @@
185
272
  "examples": [
186
273
  "Inline",
187
274
  "Collapsed",
275
+ "UploadStatus",
188
276
  "Removable",
189
277
  "CustomItem",
190
278
  "Clickable",
@@ -318,52 +406,53 @@
318
406
  ],
319
407
  "_autoGenerated": true
320
408
  },
321
- "CkPromptActionButton": {
322
- "description": "Icon-only call-to-action button styled for the chat prompt area (brand color). Typically used as the \"send\" button inside a prompt input toolbar, but works for any primary prompt-level action.",
409
+ "CkModelSelector": {
410
+ "description": "Compact dropdown for choosing the active model, sized to sit inline in a prompt field next to the send button. Controlled component: pass the available `models` and the `selectedModelId`, and react to `update:selectedModelId` (so it works with `v-model:selected-model-id`). Purely presentational — fetching the list and persisting the choice are the consumer's responsibility.",
323
411
  "category": "Actions",
324
412
  "useCases": [
325
- "send message button",
326
- "submit prompt",
327
- "primary chat action",
328
- "loading send button",
329
- "disabled send button"
413
+ "select model",
414
+ "choose LLM",
415
+ "model picker in prompt field",
416
+ "switch model mid-conversation"
330
417
  ],
331
418
  "keywords": [
419
+ "model",
420
+ "selector",
421
+ "picker",
422
+ "dropdown",
423
+ "llm",
332
424
  "prompt",
333
- "send",
334
- "action",
335
- "button",
336
- "icon",
337
- "submit",
338
- "loading",
339
- "brand"
425
+ "choose",
426
+ "switch"
340
427
  ],
341
428
  "related": [
342
429
  "CkPromptInput",
343
- "CkInput",
344
- "CkMessageActionButton"
430
+ "CkPromptSendButton"
345
431
  ],
346
432
  "props": [
347
- "ariaLabel",
433
+ "models",
434
+ "selectedModelId",
348
435
  "disabled",
349
- "loading",
350
- "type"
436
+ "side",
437
+ "align",
438
+ "sideOffset"
351
439
  ],
352
440
  "examples": [
353
441
  "Default",
354
- "Disabled",
355
- "Loading"
442
+ "Placeholder",
443
+ "Disabled"
356
444
  ],
357
445
  "_autoGenerated": true
358
446
  },
359
447
  "CkPromptInput": {
360
- "description": "Low-level prompt input: a single auto-growing textarea with left/right toolbar slots, a footer slot, and keyboard submission (Enter to submit, Shift+Enter for newline). Use when you need full control over the prompt layout; for a turnkey chat input use `CkInput` instead.",
448
+ "description": "Low-level prompt input: an auto-growing textarea (1–6 lines, then internal scroll) with `toolbar-top` / `toolbar-left` / `toolbar-right` / `footer` slots and keyboard submission (Enter to submit, Shift+Enter for newline). The form layout adapts between a compact single-row variant (large 3xl radius) and a stacked multi-row variant (2xl radius) automatically — driven by content height and whether `toolbar-top` is filled. Use when you need full control over the prompt layout; for a turnkey chat input use `CkInput` instead.",
361
449
  "category": "Form Inputs",
362
450
  "useCases": [
363
451
  "raw chat prompt textarea",
364
452
  "custom prompt toolbar",
365
- "auto-growing textarea",
366
- "compose box",
453
+ "auto-growing compose box",
454
+ "file-attachment chip row",
455
+ "multi-line chat input",
367
456
  "keyboard submit"
368
457
  ],
369
458
  "keywords": [
@@ -371,27 +460,37 @@
371
460
  "input",
372
461
  "textarea",
373
462
  "chat",
374
- "auto-grow",
375
463
  "compose",
376
464
  "submit",
377
- "v-model"
465
+ "v-model",
466
+ "auto-grow",
467
+ "multi-line",
468
+ "toolbar"
378
469
  ],
379
470
  "related": [
380
471
  "CkInput",
381
- "CkPromptActionButton",
382
- "CkPromptInputDisclaimer"
472
+ "CkPromptSendButton",
473
+ "CkPromptStopButton",
474
+ "CkPromptMenuButton",
475
+ "CkPromptInputDisclaimer",
476
+ "CkFileItemsList"
383
477
  ],
384
478
  "props": [
385
479
  "modelValue",
386
480
  "placeholder",
387
481
  "disabled",
388
- "maxHeight",
389
482
  "ariaLabel"
390
483
  ],
391
484
  "examples": [
392
485
  "Default",
393
486
  "WithToolbarSlots",
394
487
  "WithFooterSlot",
488
+ "WithFooterControls",
489
+ "WithToolbarTopSlot",
490
+ "WithUploadAndModelSelection",
491
+ "WithMultiLineContent",
492
+ "WithCollapsedFileChips",
493
+ "WithUploadAndModelSelectionStreaming",
395
494
  "Disabled"
396
495
  ],
397
496
  "_autoGenerated": true
@@ -428,8 +527,85 @@
428
527
  ],
429
528
  "_autoGenerated": true
430
529
  },
530
+ "CkPromptMenuButton": {
531
+ "description": "Icon-only menu trigger styled for the chat prompt area (ghost variant, pill-shaped). Sits in `CkPromptInput`'s `toolbar-left` slot as the entry point to a dropdown of prompt actions — attach files, attach folders, toggle tools, switch length, etc. Defaults to a `plus` icon when the slot is empty; pass any icon to override.",
532
+ "category": "Actions",
533
+ "useCases": [
534
+ "open prompt menu",
535
+ "attach files",
536
+ "add resources",
537
+ "toggle tools",
538
+ "prompt input toolbar"
539
+ ],
540
+ "keywords": [
541
+ "prompt",
542
+ "menu",
543
+ "plus",
544
+ "add",
545
+ "button",
546
+ "icon",
547
+ "ghost",
548
+ "dropdown trigger",
549
+ "tools"
550
+ ],
551
+ "related": [
552
+ "CkPromptInput",
553
+ "CkPromptSendButton",
554
+ "CkPromptStopButton",
555
+ "CkDropZoneOverlay",
556
+ "CkFileItemsList"
557
+ ],
558
+ "props": [
559
+ "ariaLabel",
560
+ "disabled",
561
+ "type"
562
+ ],
563
+ "examples": [
564
+ "Default",
565
+ "Disabled"
566
+ ],
567
+ "_autoGenerated": true
568
+ },
569
+ "CkPromptSendButton": {
570
+ "description": "Icon-only send button styled for the chat prompt area (brand color, pill shape). Sits in `CkPromptInput`'s `toolbar-right` slot as the submit trigger. Shows a spinner via `loading` while the previous request is in flight; pair with `CkPromptStopButton` to expose an abort control.",
571
+ "category": "Actions",
572
+ "useCases": [
573
+ "send message button",
574
+ "submit prompt",
575
+ "primary chat send action",
576
+ "loading send button",
577
+ "disabled send button"
578
+ ],
579
+ "keywords": [
580
+ "prompt",
581
+ "send",
582
+ "submit",
583
+ "button",
584
+ "icon",
585
+ "loading",
586
+ "brand"
587
+ ],
588
+ "related": [
589
+ "CkPromptInput",
590
+ "CkPromptStopButton",
591
+ "CkInput",
592
+ "CkSendIcon"
593
+ ],
594
+ "props": [
595
+ "ariaLabel",
596
+ "disabled",
597
+ "loading",
598
+ "type"
599
+ ],
600
+ "examples": [
601
+ "Default",
602
+ "Disabled",
603
+ "Loading"
604
+ ],
605
+ "_autoGenerated": true
606
+ },
431
607
  "CkPromptStopButton": {
432
- "description": "Icon-only button used to stop an in-flight assistant generation. Shares the brand styling of `CkPromptActionButton` but is intended to replace it in the prompt toolbar while a response is streaming.",
608
+ "description": "Icon-only button used to stop an in-flight assistant generation. Visually de-emphasized counterpart to `CkPromptSendButton` — uses UiButton's `secondary` variant (muted background) per Figma spec, so the user's eye doesn't read it as a primary call-to-action. Swap it in for `CkPromptSendButton` in the prompt toolbar while a response is streaming.",
433
609
  "category": "Actions",
434
610
  "useCases": [
435
611
  "stop assistant generation",
@@ -442,15 +618,17 @@
442
618
  "cancel",
443
619
  "abort",
444
620
  "prompt",
445
- "action",
446
621
  "button",
447
622
  "icon",
448
- "streaming"
623
+ "streaming",
624
+ "secondary"
449
625
  ],
450
626
  "related": [
451
- "CkPromptActionButton",
627
+ "CkPromptSendButton",
628
+ "CkPromptMenuButton",
452
629
  "CkPromptInput",
453
- "CkInput"
630
+ "CkInput",
631
+ "CkStopIcon"
454
632
  ],
455
633
  "props": [
456
634
  "ariaLabel",
@@ -463,34 +641,38 @@
463
641
  "_autoGenerated": true
464
642
  },
465
643
  "CkUserMessage": {
466
- "description": "Bubble layout for a single user turn in a conversation. Renders the message text on the right side with a tokenized background and max-width; supports a default slot for custom inline content.",
644
+ "description": "Layout for a single user turn in a conversation. Renders the message text right-aligned in the muted on-surface color with a max-width; supports a default slot for custom inline content. When `collapsedLines` is set, long messages are clamped with a fade and a \"Show more\" / \"Show less\" toggle.",
467
645
  "category": "Messages",
468
646
  "useCases": [
469
- "render user message bubble",
647
+ "render user message",
470
648
  "conversation turn from user",
471
649
  "chat input preview",
472
- "right-aligned message"
650
+ "right-aligned message",
651
+ "collapsible long message"
473
652
  ],
474
653
  "keywords": [
475
654
  "user",
476
655
  "message",
477
- "bubble",
478
656
  "chat",
479
657
  "conversation",
480
- "turn"
658
+ "turn",
659
+ "collapse",
660
+ "show more"
481
661
  ],
482
662
  "related": [
483
663
  "CkAgentMessage",
484
664
  "CkConversation"
485
665
  ],
486
666
  "props": [
487
- "message"
667
+ "message",
668
+ "collapsedLines"
488
669
  ],
489
670
  "examples": [
490
671
  "Default",
491
672
  "LongMessage",
492
673
  "MultilineMessage",
493
- "WithSlotContent"
674
+ "WithSlotContent",
675
+ "Collapsible"
494
676
  ],
495
677
  "_autoGenerated": true
496
678
  },
@@ -575,18 +757,24 @@
575
757
  "hrefResolver",
576
758
  "activeId",
577
759
  "showAction",
578
- "showActionOnHover"
760
+ "showActionOnHover",
761
+ "timeFormatter",
762
+ "collapsedLimit",
763
+ "maxHeight"
579
764
  ],
580
765
  "examples": [
581
766
  "Default",
582
767
  "WithoutActions",
583
768
  "RouterLinkIntegration",
584
- "WithCustomItem"
769
+ "WithCustomItem",
770
+ "WithoutTime",
771
+ "CollapsedWithShowAll",
772
+ "NoCollapse"
585
773
  ],
586
774
  "_autoGenerated": true
587
775
  },
588
776
  "CkInput": {
589
- "description": "Drop-in chat input: combines `CkPromptInput`, a `CkPromptActionButton` send button, and a `CkPromptInputDisclaimer`. Supports `v-model`, loading and disabled states, and slots to customize the toolbar and footer.",
777
+ "description": "Drop-in chat input: combines `CkPromptInput`, a `CkPromptSendButton` send button, and a `CkPromptInputDisclaimer`. Supports `v-model`, loading and disabled states, and slots to customize the toolbar and footer.",
590
778
  "category": "Form Inputs",
591
779
  "useCases": [
592
780
  "chat compose input",
@@ -608,7 +796,7 @@
608
796
  ],
609
797
  "related": [
610
798
  "CkPromptInput",
611
- "CkPromptActionButton",
799
+ "CkPromptSendButton",
612
800
  "CkPromptInputDisclaimer",
613
801
  "CkConversation"
614
802
  ],
@@ -617,7 +805,6 @@
617
805
  "placeholder",
618
806
  "disabled",
619
807
  "loading",
620
- "maxHeight",
621
808
  "ariaLabel",
622
809
  "stopAriaLabel",
623
810
  "disclaimer"
@@ -90,6 +90,39 @@
90
90
  ],
91
91
  "_autoGenerated": true
92
92
  },
93
+ "UiAutocomplete": {
94
+ "description": "Filterable select input for choosing one or many options.",
95
+ "category": "Form Inputs",
96
+ "useCases": [
97
+ "autocomplete",
98
+ "searchable select",
99
+ "multi select",
100
+ "command picker"
101
+ ],
102
+ "keywords": [
103
+ "autocomplete",
104
+ "combobox",
105
+ "select",
106
+ "search",
107
+ "filter",
108
+ "multi-select"
109
+ ],
110
+ "related": [
111
+ "UiSelect",
112
+ "UiTagsInput",
113
+ "UiListbox"
114
+ ],
115
+ "props": [],
116
+ "examples": [
117
+ "Default",
118
+ "Multiple",
119
+ "WithSlots",
120
+ "WithBadges",
121
+ "WithCheckboxes",
122
+ "WithExternalItems"
123
+ ],
124
+ "_autoGenerated": true
125
+ },
93
126
  "UiAvatar": {
94
127
  "description": "A circular image for representing users or entities. Use for profile pictures, user lists, or any person/entity representation.",
95
128
  "category": "Data Display",
@@ -204,22 +237,20 @@
204
237
  ],
205
238
  "examples": [
206
239
  "Default",
240
+ "DesignNotes",
241
+ "Accessibility",
207
242
  "Outline",
208
243
  "Secondary",
209
244
  "Ghost",
210
245
  "Destructive",
211
246
  "Link",
212
247
  "Sizes",
213
- "WithStartIcon",
214
- "WithEndIcon",
215
- "WithBothIcons",
248
+ "IconUsage",
216
249
  "Loading",
217
250
  "LoadingWithBothIcons",
218
- "WithIconSlot",
219
251
  "AsChild",
220
252
  "AllVariants",
221
253
  "DisabledHoverBleed",
222
- "IconSizes",
223
254
  "AllVariantsAndSizes"
224
255
  ],
225
256
  "_autoGenerated": true
@@ -348,6 +379,8 @@
348
379
  "props": [],
349
380
  "examples": [
350
381
  "Default",
382
+ "DesignNotes",
383
+ "Accessibility",
351
384
  "WithDescription",
352
385
  "Disabled",
353
386
  "Card"
@@ -611,6 +644,8 @@
611
644
  ],
612
645
  "examples": [
613
646
  "Default",
647
+ "DesignNotes",
648
+ "Accessibility",
614
649
  "DescriptionWithCheckbox",
615
650
  "WithLabelInfo",
616
651
  "WithError",
@@ -871,6 +906,8 @@
871
906
  ],
872
907
  "examples": [
873
908
  "Basic",
909
+ "DesignNotes",
910
+ "Accessibility",
874
911
  "Variants",
875
912
  "Sizes",
876
913
  "CustomSlots",
@@ -1247,7 +1284,6 @@
1247
1284
  "WithDisabledItems",
1248
1285
  "WithIcons",
1249
1286
  "Disabled",
1250
- "Sizes",
1251
1287
  "Multiple",
1252
1288
  "MultipleWithDefaultValue",
1253
1289
  "WithDefaultValue"