@aleph-alpha/lib-mcp 5.1.0 → 5.2.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.
|
@@ -190,6 +190,56 @@
|
|
|
190
190
|
],
|
|
191
191
|
"_autoGenerated": true
|
|
192
192
|
},
|
|
193
|
+
"CkCodeEditor": {
|
|
194
|
+
"description": "Single-document code editor built on [CodeMirror 6](https://codemirror.net/). Its surface is the one `UiCodeBlock` renders for fenced code inside {@link CkMarkdownRenderer}: the same bordered, rounded panel, the same muted header carrying the language and a copy button, the same monospace metrics, and syntax colours approximating Shiki's `github-light` / `github-dark`. A snippet therefore looks the same whether it is being read in a reply or edited here. Use it wherever a whole document *is* code — a snippet field, a config or template editor, a \"create skill\" form. For prose that merely contains code, use {@link CkMilkdownEditor}, whose fenced blocks share this same theme. Grammars load on demand from CodeMirror's language data, so only the languages actually opened are fetched, and the editor itself loads lazily on mount so importing the component costs nothing until one is shown.",
|
|
195
|
+
"category": "Form Inputs",
|
|
196
|
+
"useCases": [
|
|
197
|
+
"edit a code snippet",
|
|
198
|
+
"config or template editor",
|
|
199
|
+
"code field in a form",
|
|
200
|
+
"review and tweak generated code"
|
|
201
|
+
],
|
|
202
|
+
"keywords": [
|
|
203
|
+
"code",
|
|
204
|
+
"editor",
|
|
205
|
+
"codemirror",
|
|
206
|
+
"syntax highlighting",
|
|
207
|
+
"snippet",
|
|
208
|
+
"v-model",
|
|
209
|
+
"monospace",
|
|
210
|
+
"language"
|
|
211
|
+
],
|
|
212
|
+
"related": [
|
|
213
|
+
"CkMilkdownEditor",
|
|
214
|
+
"CkMarkdownRenderer"
|
|
215
|
+
],
|
|
216
|
+
"props": [
|
|
217
|
+
"modelValue",
|
|
218
|
+
"language",
|
|
219
|
+
"filename",
|
|
220
|
+
"placeholder",
|
|
221
|
+
"readonly",
|
|
222
|
+
"disabled",
|
|
223
|
+
"ariaLabel",
|
|
224
|
+
"showHeader",
|
|
225
|
+
"showCopyButton",
|
|
226
|
+
"showLineNumbers",
|
|
227
|
+
"lineWrapping",
|
|
228
|
+
"maxHeight",
|
|
229
|
+
"autofocus",
|
|
230
|
+
"writeToClipboard"
|
|
231
|
+
],
|
|
232
|
+
"examples": [
|
|
233
|
+
"Default",
|
|
234
|
+
"WithFilename",
|
|
235
|
+
"PlainText",
|
|
236
|
+
"Readonly",
|
|
237
|
+
"WithoutHeader",
|
|
238
|
+
"ScrollingAndWrapping",
|
|
239
|
+
"MatchesTheRenderer"
|
|
240
|
+
],
|
|
241
|
+
"_autoGenerated": true
|
|
242
|
+
},
|
|
193
243
|
"CkConversationLayout": {
|
|
194
244
|
"description": "Scroll-aware container that renders a list of messages with sticky-to-bottom behavior, a shrinking spacer so streaming agent replies don't jitter the viewport, and slots for rendering user/agent messages.",
|
|
195
245
|
"category": "Layout",
|
|
@@ -675,12 +725,14 @@
|
|
|
675
725
|
"disabled",
|
|
676
726
|
"ariaLabel",
|
|
677
727
|
"classes",
|
|
678
|
-
"autofocus"
|
|
728
|
+
"autofocus",
|
|
729
|
+
"showLineNumbers"
|
|
679
730
|
],
|
|
680
731
|
"examples": [
|
|
681
732
|
"Default",
|
|
682
733
|
"WithInitialContent",
|
|
683
734
|
"Readonly",
|
|
735
|
+
"WithLineNumbers",
|
|
684
736
|
"Disabled",
|
|
685
737
|
"CustomClasses",
|
|
686
738
|
"SideBySideWithRenderer"
|