@kitnai/chat 0.7.0 → 0.8.1
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/README.md +9 -9
- package/dist/custom-elements.json +1626 -883
- package/dist/kitn-chat.es.js +36 -36
- package/dist/llms/llms-full.txt +303 -142
- package/dist/llms/llms.txt +18 -18
- package/dist/schemas/card-envelope.schema.json +14 -0
- package/dist/schemas/card-event.schema.json +12 -0
- package/dist/schemas/confirm.schema.json +65 -0
- package/dist/schemas/embed.schema.json +65 -0
- package/dist/schemas/form.result.schema.json +7 -0
- package/dist/schemas/form.schema.json +33 -0
- package/dist/schemas/link.schema.json +56 -0
- package/dist/schemas/task-list.result.schema.json +16 -0
- package/dist/schemas/task-list.schema.json +78 -0
- package/dist/theme.tokens.css +65 -65
- package/dist/tsx-B8rCNbgL.js +1 -0
- package/dist/typescript-RycA9KXf.js +1 -0
- package/frameworks/react/index.tsx +356 -189
- package/frameworks/react/runtime.tsx +2 -2
- package/llms-full.txt +303 -142
- package/llms.txt +18 -18
- package/package.json +5 -2
- package/src/components/artifact.stories.tsx +138 -0
- package/src/components/artifact.tsx +581 -0
- package/src/components/attachments.stories.tsx +7 -8
- package/src/components/attachments.tsx +2 -2
- package/src/components/card.tsx +110 -0
- package/src/components/chain-of-thought.stories.tsx +7 -8
- package/src/components/chat-container.stories.tsx +7 -8
- package/src/components/chat-container.tsx +4 -0
- package/src/components/checkpoint.stories.tsx +7 -8
- package/src/components/checkpoint.tsx +3 -0
- package/src/components/code-block.stories.tsx +8 -9
- package/src/components/code-block.tsx +5 -2
- package/src/components/component-meta.json +3419 -0
- package/src/components/confirm-card.stories.tsx +74 -0
- package/src/components/confirm-card.tsx +299 -0
- package/src/components/context.stories.tsx +7 -8
- package/src/components/conversation-item.stories.tsx +7 -8
- package/src/components/conversation-item.tsx +2 -2
- package/src/components/conversation-list.stories.tsx +7 -8
- package/src/components/conversation-list.tsx +1 -1
- package/src/components/embed.tsx +196 -0
- package/src/components/empty.stories.tsx +8 -9
- package/src/components/feedback-bar.stories.tsx +7 -8
- package/src/components/file-tree.stories.tsx +73 -0
- package/src/components/file-tree.tsx +383 -0
- package/src/components/file-upload.stories.tsx +7 -8
- package/src/components/form-widgets.tsx +461 -0
- package/src/components/form.tsx +796 -0
- package/src/components/image.stories.tsx +7 -8
- package/src/components/link-card.tsx +194 -0
- package/src/components/loader.stories.tsx +7 -8
- package/src/components/markdown.stories.tsx +7 -8
- package/src/components/message-narrow.stories.tsx +12 -13
- package/src/components/message-skills.stories.tsx +16 -17
- package/src/components/message.stories.tsx +17 -18
- package/src/components/model-switcher.stories.tsx +7 -8
- package/src/components/prompt-input.stories.tsx +8 -9
- package/src/components/prompt-suggestion.stories.tsx +7 -8
- package/src/components/prompt-suggestion.tsx +3 -3
- package/src/components/reasoning.stories.tsx +7 -8
- package/src/components/scroll-button.stories.tsx +7 -8
- package/src/components/slash-command.stories.tsx +8 -9
- package/src/components/slash-command.tsx +2 -2
- package/src/components/source.stories.tsx +7 -8
- package/src/components/source.tsx +1 -1
- package/src/components/task-list-card.stories.tsx +78 -0
- package/src/components/task-list-card.tsx +388 -0
- package/src/components/text-shimmer.stories.tsx +7 -8
- package/src/components/thinking-bar.stories.tsx +7 -8
- package/src/components/tool.stories.tsx +7 -8
- package/src/components/tool.tsx +2 -2
- package/src/components/voice-input.stories.tsx +7 -8
- package/src/elements/artifact.stories.tsx +291 -0
- package/src/elements/artifact.tsx +72 -0
- package/src/elements/{kitn-attachments.stories.tsx → attachments.stories.tsx} +11 -20
- package/src/elements/attachments.tsx +4 -4
- package/src/elements/card.stories.tsx +118 -0
- package/src/elements/card.tsx +40 -0
- package/src/elements/catalog.stories.tsx +491 -0
- package/src/elements/{kitn-chain-of-thought.stories.tsx → chain-of-thought.stories.tsx} +13 -22
- package/src/elements/chain-of-thought.tsx +3 -3
- package/src/elements/{kitn-chat-scope-picker.stories.tsx → chat-scope-picker.stories.tsx} +10 -19
- package/src/elements/chat-scope-picker.tsx +4 -4
- package/src/elements/{kitn-chat-workspace.stories.tsx → chat-workspace.stories.tsx} +15 -23
- package/src/elements/chat-workspace.tsx +2 -2
- package/src/elements/{kitn-chat.stories.tsx → chat.stories.tsx} +12 -20
- package/src/elements/chat.tsx +2 -2
- package/src/elements/{kitn-checkpoint.stories.tsx → checkpoint.stories.tsx} +11 -20
- package/src/elements/checkpoint.tsx +8 -4
- package/src/elements/{kitn-code-block.stories.tsx → code-block.stories.tsx} +10 -19
- package/src/elements/code-block.tsx +3 -3
- package/src/elements/compiled.css +1 -1
- package/src/elements/composed-shell.stories.tsx +316 -0
- package/src/elements/confirm-card.stories.tsx +186 -0
- package/src/elements/confirm-card.tsx +45 -0
- package/src/elements/{kitn-context-meter.stories.tsx → context-meter.stories.tsx} +10 -19
- package/src/elements/context-meter.tsx +3 -3
- package/src/elements/{kitn-conversation-list.stories.tsx → conversation-list.stories.tsx} +12 -20
- package/src/elements/conversation-list.tsx +2 -2
- package/src/elements/css.ts +1 -1
- package/src/elements/define.tsx +10 -10
- package/src/elements/element-meta.json +1379 -733
- package/src/elements/element-types.d.ts +251 -125
- package/src/elements/embed.stories.tsx +197 -0
- package/src/elements/embed.tsx +35 -0
- package/src/elements/{kitn-empty.stories.tsx → empty.stories.tsx} +12 -21
- package/src/elements/empty.tsx +3 -3
- package/src/elements/{kitn-feedback-bar.stories.tsx → feedback-bar.stories.tsx} +11 -20
- package/src/elements/feedback-bar.tsx +4 -4
- package/src/elements/file-tree.stories.tsx +133 -0
- package/src/elements/file-tree.tsx +52 -0
- package/src/elements/{kitn-file-upload.stories.tsx → file-upload.stories.tsx} +12 -21
- package/src/elements/file-upload.tsx +4 -4
- package/src/elements/form.stories.tsx +204 -0
- package/src/elements/form.tsx +37 -0
- package/src/elements/{kitn-image.stories.tsx → image.stories.tsx} +10 -19
- package/src/elements/image.tsx +3 -3
- package/src/elements/link-card.stories.tsx +193 -0
- package/src/elements/link-card.tsx +34 -0
- package/src/elements/{kitn-loader.stories.tsx → loader.stories.tsx} +11 -20
- package/src/elements/loader.tsx +3 -3
- package/src/elements/{kitn-markdown.stories.tsx → markdown.stories.tsx} +10 -19
- package/src/elements/markdown.tsx +3 -3
- package/src/elements/{kitn-message-skills.stories.tsx → message-skills.stories.tsx} +10 -19
- package/src/elements/message-skills.tsx +3 -3
- package/src/elements/{kitn-message.stories.tsx → message.stories.tsx} +12 -21
- package/src/elements/message.tsx +5 -5
- package/src/elements/{kitn-model-switcher.stories.tsx → model-switcher.stories.tsx} +10 -19
- package/src/elements/model-switcher.tsx +5 -5
- package/src/elements/{kitn-prompt-input.stories.tsx → prompt-input.stories.tsx} +14 -22
- package/src/elements/prompt-input.tsx +3 -3
- package/src/elements/{kitn-prompt-suggestions.stories.tsx → prompt-suggestions.stories.tsx} +13 -22
- package/src/elements/prompt-suggestions.tsx +4 -4
- package/src/elements/{kitn-reasoning.stories.tsx → reasoning.stories.tsx} +10 -19
- package/src/elements/reasoning.tsx +4 -4
- package/src/elements/register.ts +11 -1
- package/src/elements/resizable.stories.tsx +200 -0
- package/src/elements/resizable.tsx +264 -0
- package/src/elements/{kitn-response-stream.stories.tsx → response-stream.stories.tsx} +10 -19
- package/src/elements/response-stream.tsx +4 -4
- package/src/elements/{kitn-source-list.stories.tsx → source-list.stories.tsx} +11 -20
- package/src/elements/{kitn-source.stories.tsx → source.stories.tsx} +12 -21
- package/src/elements/source.tsx +5 -5
- package/src/elements/styles.css +140 -1
- package/src/elements/task-list-card.stories.tsx +194 -0
- package/src/elements/task-list-card.tsx +40 -0
- package/src/elements/{kitn-text-shimmer.stories.tsx → text-shimmer.stories.tsx} +10 -19
- package/src/elements/text-shimmer.tsx +3 -3
- package/src/elements/{kitn-thinking-bar.stories.tsx → thinking-bar.stories.tsx} +11 -20
- package/src/elements/thinking-bar.tsx +5 -5
- package/src/elements/{kitn-tool.stories.tsx → tool.stories.tsx} +10 -19
- package/src/elements/tool.tsx +3 -3
- package/src/elements/{kitn-voice-input.stories.tsx → voice-input.stories.tsx} +10 -19
- package/src/elements/voice-input.tsx +4 -4
- package/src/index.ts +94 -2
- package/src/primitives/card-contract.ts +60 -0
- package/src/primitives/card-host.tsx +35 -0
- package/src/primitives/card-routing.ts +79 -0
- package/src/primitives/card-schemas/card-envelope.schema.json +14 -0
- package/src/primitives/card-schemas/card-event.schema.json +12 -0
- package/src/primitives/card-schemas/confirm.schema.json +65 -0
- package/src/primitives/card-schemas/embed.schema.json +65 -0
- package/src/primitives/card-schemas/form.result.schema.json +7 -0
- package/src/primitives/card-schemas/form.schema.json +33 -0
- package/src/primitives/card-schemas/link.schema.json +56 -0
- package/src/primitives/card-schemas/task-list.result.schema.json +16 -0
- package/src/primitives/card-schemas/task-list.schema.json +78 -0
- package/src/primitives/card-validate.ts +95 -0
- package/src/primitives/embed-providers.ts +254 -0
- package/src/primitives/highlighter.ts +4 -0
- package/src/primitives/link-preview.ts +87 -0
- package/src/primitives/pdf-preview.ts +121 -0
- package/src/stories/chat-panel-layout.stories.tsx +2 -1
- package/src/stories/chat-scene.tsx +22 -21
- package/src/stories/checkpoint-restore.stories.tsx +10 -10
- package/src/stories/conversation-with-reasoning.stories.tsx +4 -4
- package/src/stories/conversation-with-sources.stories.tsx +7 -7
- package/src/stories/docs/Accessibility.mdx +2 -2
- package/src/stories/docs/ForAIAgents.mdx +3 -3
- package/src/stories/docs/GettingStarted.mdx +2 -2
- package/src/stories/docs/Installation.mdx +2 -2
- package/src/stories/docs/Integrations.mdx +29 -29
- package/src/stories/docs/Introduction.mdx +3 -3
- package/src/stories/docs/Theming.mdx +2 -2
- package/src/stories/docs/element-controls.ts +32 -0
- package/src/stories/docs/theme-editor/theme-editor.tsx +1 -0
- package/src/stories/examples/ChoosingComponents.mdx +94 -0
- package/src/stories/examples/sample-data.ts +79 -0
- package/src/stories/message-actions.stories.tsx +13 -13
- package/src/stories/pattern-centered-conversation.stories.tsx +3 -3
- package/src/stories/pattern-docked-widget.stories.tsx +1 -1
- package/src/stories/pattern-empty-state.stories.tsx +3 -3
- package/src/stories/prompt-input-variants.stories.tsx +13 -13
- package/src/stories/streaming-response.stories.tsx +3 -3
- package/src/stories/typography.stories.tsx +4 -4
- package/src/ui/avatar.stories.tsx +7 -8
- package/src/ui/badge.stories.tsx +7 -8
- package/src/ui/button.stories.tsx +8 -9
- package/src/ui/button.tsx +1 -0
- package/src/ui/collapsible.stories.tsx +6 -7
- package/src/ui/dropdown.stories.tsx +6 -7
- package/src/ui/hover-card.stories.tsx +6 -7
- package/src/ui/resizable.stories.tsx +74 -9
- package/src/ui/resizable.tsx +351 -71
- package/src/ui/scroll-area.stories.tsx +6 -7
- package/src/ui/scroll-area.tsx +3 -1
- package/src/ui/separator.stories.tsx +7 -8
- package/src/ui/skeleton.stories.tsx +7 -8
- package/src/ui/textarea.stories.tsx +6 -7
- package/src/ui/tooltip.stories.tsx +8 -9
- package/theme.css +65 -65
- package/src/stories/docs/element-spec.tsx +0 -86
|
@@ -1,7 +1,92 @@
|
|
|
1
1
|
[
|
|
2
2
|
{
|
|
3
|
-
"tag": "
|
|
4
|
-
"className": "
|
|
3
|
+
"tag": "kc-artifact",
|
|
4
|
+
"className": "KcArtifactElement",
|
|
5
|
+
"props": [
|
|
6
|
+
{
|
|
7
|
+
"name": "src",
|
|
8
|
+
"type": "undefined | string",
|
|
9
|
+
"optional": true,
|
|
10
|
+
"scalar": true,
|
|
11
|
+
"description": "URL the preview iframe frames. Consumer-controlled.",
|
|
12
|
+
"displayType": "undefined | string"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "files",
|
|
16
|
+
"type": "{ path: string; url?: undefined | string; code?: undefined | string; language?: undefined | string; type?: undefined | \"html\" | \"pdf\" | \"image\" | \"other\" }[]",
|
|
17
|
+
"optional": false,
|
|
18
|
+
"scalar": false,
|
|
19
|
+
"description": "Files for the Code tab tree + each file's preview `url`. Set as a JS property (array).",
|
|
20
|
+
"default": "[]",
|
|
21
|
+
"displayType": "{ path: string; url?: undefined | string; code?: undefined | string; language?: undefined | string; type?: undefined | \"html\" | \"pdf\" | \"image\" | \"other\" }[]"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "tab",
|
|
25
|
+
"type": "undefined | \"preview\" | \"code\"",
|
|
26
|
+
"optional": true,
|
|
27
|
+
"scalar": true,
|
|
28
|
+
"description": "Active tab: `preview` (default) or `code`.",
|
|
29
|
+
"default": "'preview'",
|
|
30
|
+
"displayType": "undefined | \"preview\" | \"code\""
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "activeFile",
|
|
34
|
+
"type": "undefined | string",
|
|
35
|
+
"optional": true,
|
|
36
|
+
"scalar": true,
|
|
37
|
+
"description": "Selected file path — syncs the tree highlight, Code source, and preview.",
|
|
38
|
+
"displayType": "undefined | string"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "sandbox",
|
|
42
|
+
"type": "undefined | string",
|
|
43
|
+
"optional": true,
|
|
44
|
+
"scalar": true,
|
|
45
|
+
"description": "iframe `sandbox` override. Secure default `allow-scripts allow-forms` (NOT `allow-same-origin`).",
|
|
46
|
+
"default": "'allow-scripts allow-forms'",
|
|
47
|
+
"displayType": "undefined | string"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "iframeTitle",
|
|
51
|
+
"type": "undefined | string",
|
|
52
|
+
"optional": true,
|
|
53
|
+
"scalar": true,
|
|
54
|
+
"description": "Accessible title for the preview iframe.",
|
|
55
|
+
"displayType": "undefined | string"
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"events": [
|
|
59
|
+
{
|
|
60
|
+
"name": "fileselect",
|
|
61
|
+
"detail": "{ path: string }",
|
|
62
|
+
"description": "Fired when a file is selected. `detail.path`.",
|
|
63
|
+
"displayDetail": "{ path: string }"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "navigate",
|
|
67
|
+
"detail": "{ url: string }",
|
|
68
|
+
"description": "Fired when the preview navigates. `detail.url` = the new location.",
|
|
69
|
+
"displayDetail": "{ url: string }"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "tabchange",
|
|
73
|
+
"detail": "{ tab: \"preview\" | \"code\" }",
|
|
74
|
+
"description": "Fired when the Preview|Code tab changes. `detail.tab`.",
|
|
75
|
+
"displayDetail": "{ tab: \"preview\" | \"code\" }"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"composedFrom": [
|
|
79
|
+
{
|
|
80
|
+
"name": "Artifact",
|
|
81
|
+
"group": "Components",
|
|
82
|
+
"storyId": "components-artifact--docs"
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"tokens": []
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"tag": "kc-attachments",
|
|
89
|
+
"className": "KcAttachmentsElement",
|
|
5
90
|
"props": [
|
|
6
91
|
{
|
|
7
92
|
"name": "items",
|
|
@@ -9,7 +94,8 @@
|
|
|
9
94
|
"optional": false,
|
|
10
95
|
"scalar": false,
|
|
11
96
|
"description": "The attachments to render. Set as a JS property (array).",
|
|
12
|
-
"default": "[]"
|
|
97
|
+
"default": "[]",
|
|
98
|
+
"displayType": "AttachmentData[]"
|
|
13
99
|
},
|
|
14
100
|
{
|
|
15
101
|
"name": "variant",
|
|
@@ -17,7 +103,8 @@
|
|
|
17
103
|
"optional": true,
|
|
18
104
|
"scalar": true,
|
|
19
105
|
"description": "Layout: `grid` = visual tiles, `inline` = icon + label chips, `list` = rows.",
|
|
20
|
-
"default": "'grid'"
|
|
106
|
+
"default": "'grid'",
|
|
107
|
+
"displayType": "undefined | \"grid\" | \"inline\" | \"list\""
|
|
21
108
|
},
|
|
22
109
|
{
|
|
23
110
|
"name": "hoverCard",
|
|
@@ -25,7 +112,8 @@
|
|
|
25
112
|
"optional": true,
|
|
26
113
|
"scalar": true,
|
|
27
114
|
"description": "Wrap each item in a hover card that previews its details.",
|
|
28
|
-
"default": "false"
|
|
115
|
+
"default": "false",
|
|
116
|
+
"displayType": "undefined | false | true"
|
|
29
117
|
},
|
|
30
118
|
{
|
|
31
119
|
"name": "removable",
|
|
@@ -33,7 +121,8 @@
|
|
|
33
121
|
"optional": true,
|
|
34
122
|
"scalar": true,
|
|
35
123
|
"description": "Show a remove button per item; clicking it fires a `remove` event.",
|
|
36
|
-
"default": "false"
|
|
124
|
+
"default": "false",
|
|
125
|
+
"displayType": "undefined | false | true"
|
|
37
126
|
},
|
|
38
127
|
{
|
|
39
128
|
"name": "showMediaType",
|
|
@@ -41,21 +130,24 @@
|
|
|
41
130
|
"optional": true,
|
|
42
131
|
"scalar": true,
|
|
43
132
|
"description": "Also show the media type beneath the filename (non-grid variants).",
|
|
44
|
-
"default": "false"
|
|
133
|
+
"default": "false",
|
|
134
|
+
"displayType": "undefined | false | true"
|
|
45
135
|
},
|
|
46
136
|
{
|
|
47
137
|
"name": "emptyText",
|
|
48
138
|
"type": "undefined | string",
|
|
49
139
|
"optional": true,
|
|
50
140
|
"scalar": true,
|
|
51
|
-
"description": "Text shown when `items` is empty."
|
|
141
|
+
"description": "Text shown when `items` is empty.",
|
|
142
|
+
"displayType": "undefined | string"
|
|
52
143
|
}
|
|
53
144
|
],
|
|
54
145
|
"events": [
|
|
55
146
|
{
|
|
56
147
|
"name": "remove",
|
|
57
148
|
"detail": "{ id: string }",
|
|
58
|
-
"description": "A remove button was clicked."
|
|
149
|
+
"description": "A remove button was clicked.",
|
|
150
|
+
"displayDetail": "{ id: string }"
|
|
59
151
|
}
|
|
60
152
|
],
|
|
61
153
|
"composedFrom": [
|
|
@@ -108,8 +200,56 @@
|
|
|
108
200
|
"tokens": []
|
|
109
201
|
},
|
|
110
202
|
{
|
|
111
|
-
"tag": "
|
|
112
|
-
"className": "
|
|
203
|
+
"tag": "kc-card",
|
|
204
|
+
"className": "KcCardElement",
|
|
205
|
+
"props": [
|
|
206
|
+
{
|
|
207
|
+
"name": "heading",
|
|
208
|
+
"type": "undefined | string",
|
|
209
|
+
"optional": true,
|
|
210
|
+
"scalar": true,
|
|
211
|
+
"description": "Heading rendered in the card chrome (= CardEnvelope.title). Attribute: `heading`.",
|
|
212
|
+
"displayType": "undefined | string"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"name": "description",
|
|
216
|
+
"type": "undefined | string",
|
|
217
|
+
"optional": true,
|
|
218
|
+
"scalar": true,
|
|
219
|
+
"description": "Supporting text under the heading. Attribute: `description`.",
|
|
220
|
+
"displayType": "undefined | string"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"name": "errorMessage",
|
|
224
|
+
"type": "undefined | string",
|
|
225
|
+
"optional": true,
|
|
226
|
+
"scalar": true,
|
|
227
|
+
"description": "When set, the card renders its inline error state instead of the body. Attribute: `error-message`.",
|
|
228
|
+
"displayType": "undefined | string"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"name": "dense",
|
|
232
|
+
"type": "undefined | false | true",
|
|
233
|
+
"optional": true,
|
|
234
|
+
"scalar": true,
|
|
235
|
+
"description": "Compact spacing for dense lists. Attribute: `dense`.",
|
|
236
|
+
"default": "false",
|
|
237
|
+
"displayType": "undefined | false | true"
|
|
238
|
+
}
|
|
239
|
+
],
|
|
240
|
+
"events": [],
|
|
241
|
+
"composedFrom": [
|
|
242
|
+
{
|
|
243
|
+
"name": "Card",
|
|
244
|
+
"group": "Components",
|
|
245
|
+
"storyId": "components-card--docs"
|
|
246
|
+
}
|
|
247
|
+
],
|
|
248
|
+
"tokens": []
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"tag": "kc-chain-of-thought",
|
|
252
|
+
"className": "KcChainOfThoughtElement",
|
|
113
253
|
"props": [
|
|
114
254
|
{
|
|
115
255
|
"name": "steps",
|
|
@@ -117,7 +257,8 @@
|
|
|
117
257
|
"optional": false,
|
|
118
258
|
"scalar": false,
|
|
119
259
|
"description": "The reasoning steps. Set as a JS property. Compound sub-parts collapse to this one data model (Route 1).",
|
|
120
|
-
"default": "[]"
|
|
260
|
+
"default": "[]",
|
|
261
|
+
"displayType": "{ label: string; content?: undefined | string }[]"
|
|
121
262
|
}
|
|
122
263
|
],
|
|
123
264
|
"events": [],
|
|
@@ -151,8 +292,8 @@
|
|
|
151
292
|
"tokens": []
|
|
152
293
|
},
|
|
153
294
|
{
|
|
154
|
-
"tag": "
|
|
155
|
-
"className": "
|
|
295
|
+
"tag": "kc-chat",
|
|
296
|
+
"className": "KcChatElement",
|
|
156
297
|
"props": [
|
|
157
298
|
{
|
|
158
299
|
"name": "messages",
|
|
@@ -160,14 +301,16 @@
|
|
|
160
301
|
"optional": false,
|
|
161
302
|
"scalar": false,
|
|
162
303
|
"description": "The full message thread to render, newest last. Each entry carries its role, content, and optional reasoning/tools/attachments/actions. Set as a JS property (`el.messages = [...]`).",
|
|
163
|
-
"default": "[]"
|
|
304
|
+
"default": "[]",
|
|
305
|
+
"displayType": "ChatMessage[]"
|
|
164
306
|
},
|
|
165
307
|
{
|
|
166
308
|
"name": "value",
|
|
167
309
|
"type": "undefined | string",
|
|
168
310
|
"optional": true,
|
|
169
311
|
"scalar": true,
|
|
170
|
-
"description": "Controlled value of the input. When set, the host owns the input text and must update it on `valuechange`; leave unset for uncontrolled behavior."
|
|
312
|
+
"description": "Controlled value of the input. When set, the host owns the input text and must update it on `valuechange`; leave unset for uncontrolled behavior.",
|
|
313
|
+
"displayType": "undefined | string"
|
|
171
314
|
},
|
|
172
315
|
{
|
|
173
316
|
"name": "placeholder",
|
|
@@ -175,7 +318,8 @@
|
|
|
175
318
|
"optional": true,
|
|
176
319
|
"scalar": true,
|
|
177
320
|
"description": "Placeholder text shown in the empty input.",
|
|
178
|
-
"default": "'Send a message...'"
|
|
321
|
+
"default": "'Send a message...'",
|
|
322
|
+
"displayType": "undefined | string"
|
|
179
323
|
},
|
|
180
324
|
{
|
|
181
325
|
"name": "loading",
|
|
@@ -183,14 +327,16 @@
|
|
|
183
327
|
"optional": true,
|
|
184
328
|
"scalar": true,
|
|
185
329
|
"description": "When true, shows the loading/streaming state and disables submit (use while awaiting the assistant's reply).",
|
|
186
|
-
"default": "false"
|
|
330
|
+
"default": "false",
|
|
331
|
+
"displayType": "undefined | false | true"
|
|
187
332
|
},
|
|
188
333
|
{
|
|
189
334
|
"name": "suggestions",
|
|
190
335
|
"type": "undefined | string[]",
|
|
191
336
|
"optional": true,
|
|
192
337
|
"scalar": false,
|
|
193
|
-
"description": "Starter prompts shown above the input when the thread is empty. Clicking one follows `suggestionMode`. Set as a JS property."
|
|
338
|
+
"description": "Starter prompts shown above the input when the thread is empty. Clicking one follows `suggestionMode`. Set as a JS property.",
|
|
339
|
+
"displayType": "undefined | string[]"
|
|
194
340
|
},
|
|
195
341
|
{
|
|
196
342
|
"name": "suggestionMode",
|
|
@@ -198,7 +344,8 @@
|
|
|
198
344
|
"optional": true,
|
|
199
345
|
"scalar": true,
|
|
200
346
|
"description": "What clicking a suggestion does: `'submit'` (default) sends it immediately as if typed and submitted; `'fill'` just places it in the input.",
|
|
201
|
-
"default": "'submit'"
|
|
347
|
+
"default": "'submit'",
|
|
348
|
+
"displayType": "undefined | \"submit\" | \"fill\""
|
|
202
349
|
},
|
|
203
350
|
{
|
|
204
351
|
"name": "proseSize",
|
|
@@ -206,7 +353,8 @@
|
|
|
206
353
|
"optional": true,
|
|
207
354
|
"scalar": true,
|
|
208
355
|
"description": "Body/prose font scale for rendered markdown (`'xs' | 'sm' | 'base' | 'lg'`). Defaults to `'sm'`.",
|
|
209
|
-
"default": "'sm'"
|
|
356
|
+
"default": "'sm'",
|
|
357
|
+
"displayType": "undefined | \"xs\" | \"sm\" | \"base\" | \"lg\""
|
|
210
358
|
},
|
|
211
359
|
{
|
|
212
360
|
"name": "codeTheme",
|
|
@@ -214,7 +362,8 @@
|
|
|
214
362
|
"optional": true,
|
|
215
363
|
"scalar": true,
|
|
216
364
|
"description": "Shiki theme name for syntax-highlighted code blocks (e.g. `'github-dark-dimmed'`).",
|
|
217
|
-
"default": "'github-dark-dimmed'"
|
|
365
|
+
"default": "'github-dark-dimmed'",
|
|
366
|
+
"displayType": "undefined | string"
|
|
218
367
|
},
|
|
219
368
|
{
|
|
220
369
|
"name": "codeHighlight",
|
|
@@ -222,35 +371,40 @@
|
|
|
222
371
|
"optional": true,
|
|
223
372
|
"scalar": true,
|
|
224
373
|
"description": "Enable Shiki syntax highlighting in code blocks. Turn off to render plain `<pre>` blocks (lighter, no highlighter load). Default true.",
|
|
225
|
-
"default": "true"
|
|
374
|
+
"default": "true",
|
|
375
|
+
"displayType": "undefined | false | true"
|
|
226
376
|
},
|
|
227
377
|
{
|
|
228
378
|
"name": "chatTitle",
|
|
229
379
|
"type": "undefined | string",
|
|
230
380
|
"optional": true,
|
|
231
381
|
"scalar": true,
|
|
232
|
-
"description": "Optional header title shown on the left of the header."
|
|
382
|
+
"description": "Optional header title shown on the left of the header.",
|
|
383
|
+
"displayType": "undefined | string"
|
|
233
384
|
},
|
|
234
385
|
{
|
|
235
386
|
"name": "models",
|
|
236
387
|
"type": "undefined | { id: string; name: string; provider?: undefined | string }[]",
|
|
237
388
|
"optional": true,
|
|
238
389
|
"scalar": false,
|
|
239
|
-
"description": "Optional model list. When set (>1 model) a ModelSwitcher is shown in the header and a `modelchange` event fires on selection."
|
|
390
|
+
"description": "Optional model list. When set (>1 model) a ModelSwitcher is shown in the header and a `modelchange` event fires on selection.",
|
|
391
|
+
"displayType": "ModelOption[] | undefined"
|
|
240
392
|
},
|
|
241
393
|
{
|
|
242
394
|
"name": "currentModel",
|
|
243
395
|
"type": "undefined | string",
|
|
244
396
|
"optional": true,
|
|
245
397
|
"scalar": true,
|
|
246
|
-
"description": "The currently selected model id (pairs with `models`)."
|
|
398
|
+
"description": "The currently selected model id (pairs with `models`).",
|
|
399
|
+
"displayType": "undefined | string"
|
|
247
400
|
},
|
|
248
401
|
{
|
|
249
402
|
"name": "context",
|
|
250
403
|
"type": "undefined | { usedTokens: number; maxTokens: number; inputTokens?: undefined | number; outputTokens?: undefined | number; estimatedCost?: undefined | number }",
|
|
251
404
|
"optional": true,
|
|
252
405
|
"scalar": false,
|
|
253
|
-
"description": "Optional context-window token usage. When set, a Context token meter is shown in the header."
|
|
406
|
+
"description": "Optional context-window token usage. When set, a Context token meter is shown in the header.",
|
|
407
|
+
"displayType": "ContextData | undefined"
|
|
254
408
|
},
|
|
255
409
|
{
|
|
256
410
|
"name": "scrollButton",
|
|
@@ -258,7 +412,8 @@
|
|
|
258
412
|
"optional": true,
|
|
259
413
|
"scalar": true,
|
|
260
414
|
"description": "Show the scroll-to-bottom button inside the scroll area. Default true.",
|
|
261
|
-
"default": "true"
|
|
415
|
+
"default": "true",
|
|
416
|
+
"displayType": "undefined | false | true"
|
|
262
417
|
},
|
|
263
418
|
{
|
|
264
419
|
"name": "search",
|
|
@@ -266,7 +421,8 @@
|
|
|
266
421
|
"optional": true,
|
|
267
422
|
"scalar": true,
|
|
268
423
|
"description": "Show a Search (Globe) button in the input toolbar; fires a `search` event.",
|
|
269
|
-
"default": "false"
|
|
424
|
+
"default": "false",
|
|
425
|
+
"displayType": "undefined | false | true"
|
|
270
426
|
},
|
|
271
427
|
{
|
|
272
428
|
"name": "voice",
|
|
@@ -274,21 +430,24 @@
|
|
|
274
430
|
"optional": true,
|
|
275
431
|
"scalar": true,
|
|
276
432
|
"description": "Show a Voice (Mic) button in the input toolbar; fires a `voice` event.",
|
|
277
|
-
"default": "false"
|
|
433
|
+
"default": "false",
|
|
434
|
+
"displayType": "undefined | false | true"
|
|
278
435
|
},
|
|
279
436
|
{
|
|
280
437
|
"name": "slashCommands",
|
|
281
438
|
"type": "undefined | { id: string; label: string; description?: undefined | string; category?: undefined | string }[]",
|
|
282
439
|
"optional": true,
|
|
283
440
|
"scalar": false,
|
|
284
|
-
"description": "Slash commands — when set, typing `/` in the input opens the command palette and fires `slashselect`. Set as a JS property."
|
|
441
|
+
"description": "Slash commands — when set, typing `/` in the input opens the command palette and fires `slashselect`. Set as a JS property.",
|
|
442
|
+
"displayType": "SlashCommandItem[] | undefined"
|
|
285
443
|
},
|
|
286
444
|
{
|
|
287
445
|
"name": "slashActiveIds",
|
|
288
446
|
"type": "undefined | string[]",
|
|
289
447
|
"optional": true,
|
|
290
448
|
"scalar": false,
|
|
291
|
-
"description": "Command ids to highlight as active in the palette."
|
|
449
|
+
"description": "Command ids to highlight as active in the palette.",
|
|
450
|
+
"displayType": "undefined | string[]"
|
|
292
451
|
},
|
|
293
452
|
{
|
|
294
453
|
"name": "slashCompact",
|
|
@@ -296,49 +455,58 @@
|
|
|
296
455
|
"optional": true,
|
|
297
456
|
"scalar": true,
|
|
298
457
|
"description": "Single-line palette rows.",
|
|
299
|
-
"default": "false"
|
|
458
|
+
"default": "false",
|
|
459
|
+
"displayType": "undefined | false | true"
|
|
300
460
|
}
|
|
301
461
|
],
|
|
302
462
|
"events": [
|
|
303
463
|
{
|
|
304
464
|
"name": "messageaction",
|
|
305
465
|
"detail": "{ messageId: string; action: \"copy\" | \"like\" | \"dislike\" | \"regenerate\" | \"edit\" }",
|
|
306
|
-
"description": "An action button on a message was clicked."
|
|
466
|
+
"description": "An action button on a message was clicked.",
|
|
467
|
+
"displayDetail": "{ messageId: string; action: ChatMessageAction }"
|
|
307
468
|
},
|
|
308
469
|
{
|
|
309
470
|
"name": "modelchange",
|
|
310
471
|
"detail": "{ modelId: string }",
|
|
311
|
-
"description": "The header model switcher changed."
|
|
472
|
+
"description": "The header model switcher changed.",
|
|
473
|
+
"displayDetail": "{ modelId: string }"
|
|
312
474
|
},
|
|
313
475
|
{
|
|
314
476
|
"name": "search",
|
|
315
477
|
"detail": "Record<string, never>",
|
|
316
|
-
"description": "The Search button was clicked."
|
|
478
|
+
"description": "The Search button was clicked.",
|
|
479
|
+
"displayDetail": "Record<string, never>"
|
|
317
480
|
},
|
|
318
481
|
{
|
|
319
482
|
"name": "slashselect",
|
|
320
483
|
"detail": "{ command: { id: string; label: string; description?: undefined | string; category?: undefined | string } }",
|
|
321
|
-
"description": "A slash command was chosen from the palette."
|
|
484
|
+
"description": "A slash command was chosen from the palette.",
|
|
485
|
+
"displayDetail": "{ command: SlashCommandItem }"
|
|
322
486
|
},
|
|
323
487
|
{
|
|
324
488
|
"name": "submit",
|
|
325
489
|
"detail": "{ value: string; attachments: { id: string; type: \"file\" | \"source-document\"; filename?: undefined | string; mediaType?: undefined | string; url?: undefined | string; title?: undefined | string }[] }",
|
|
326
|
-
"description": "User submitted a message."
|
|
490
|
+
"description": "User submitted a message.",
|
|
491
|
+
"displayDetail": "{ value: string; attachments: AttachmentData[] }"
|
|
327
492
|
},
|
|
328
493
|
{
|
|
329
494
|
"name": "suggestionclick",
|
|
330
495
|
"detail": "{ value: string }",
|
|
331
|
-
"description": "A suggestion chip was clicked (only in `suggestion-mode=\"fill\"`)."
|
|
496
|
+
"description": "A suggestion chip was clicked (only in `suggestion-mode=\"fill\"`).",
|
|
497
|
+
"displayDetail": "{ value: string }"
|
|
332
498
|
},
|
|
333
499
|
{
|
|
334
500
|
"name": "valuechange",
|
|
335
501
|
"detail": "{ value: string }",
|
|
336
|
-
"description": "Fired on every input change."
|
|
502
|
+
"description": "Fired on every input change.",
|
|
503
|
+
"displayDetail": "{ value: string }"
|
|
337
504
|
},
|
|
338
505
|
{
|
|
339
506
|
"name": "voice",
|
|
340
507
|
"detail": "Record<string, never>",
|
|
341
|
-
"description": "The Mic / voice button was clicked."
|
|
508
|
+
"description": "The Mic / voice button was clicked.",
|
|
509
|
+
"displayDetail": "Record<string, never>"
|
|
342
510
|
}
|
|
343
511
|
],
|
|
344
512
|
"composedFrom": [
|
|
@@ -351,790 +519,678 @@
|
|
|
351
519
|
"tokens": []
|
|
352
520
|
},
|
|
353
521
|
{
|
|
354
|
-
"tag": "
|
|
355
|
-
"className": "
|
|
522
|
+
"tag": "kc-checkpoint",
|
|
523
|
+
"className": "KcCheckpointElement",
|
|
356
524
|
"props": [
|
|
357
525
|
{
|
|
358
|
-
"name": "
|
|
359
|
-
"type": "string
|
|
360
|
-
"optional":
|
|
361
|
-
"scalar":
|
|
362
|
-
"description": "
|
|
363
|
-
"
|
|
526
|
+
"name": "label",
|
|
527
|
+
"type": "undefined | string",
|
|
528
|
+
"optional": true,
|
|
529
|
+
"scalar": true,
|
|
530
|
+
"description": "Optional text beside the icon.",
|
|
531
|
+
"displayType": "undefined | string"
|
|
364
532
|
},
|
|
365
533
|
{
|
|
366
|
-
"name": "
|
|
367
|
-
"type": "string
|
|
368
|
-
"optional":
|
|
369
|
-
"scalar":
|
|
370
|
-
"description": "
|
|
371
|
-
"
|
|
534
|
+
"name": "tooltip",
|
|
535
|
+
"type": "undefined | string",
|
|
536
|
+
"optional": true,
|
|
537
|
+
"scalar": true,
|
|
538
|
+
"description": "Tooltip on hover.",
|
|
539
|
+
"displayType": "undefined | string"
|
|
372
540
|
},
|
|
373
541
|
{
|
|
374
|
-
"name": "
|
|
375
|
-
"type": "undefined |
|
|
542
|
+
"name": "variant",
|
|
543
|
+
"type": "undefined | \"ghost\" | \"default\" | \"outline\"",
|
|
376
544
|
"optional": true,
|
|
377
545
|
"scalar": true,
|
|
378
|
-
"description": "
|
|
379
|
-
"default": "'
|
|
546
|
+
"description": "Visual button style.",
|
|
547
|
+
"default": "'ghost'",
|
|
548
|
+
"displayType": "undefined | \"ghost\" | \"default\" | \"outline\""
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
"name": "size",
|
|
552
|
+
"type": "undefined | \"sm\" | \"lg\" | \"md\" | \"icon\" | \"icon-sm\"",
|
|
553
|
+
"optional": true,
|
|
554
|
+
"scalar": true,
|
|
555
|
+
"description": "Button size (use an `icon*` size for an icon-only checkpoint).",
|
|
556
|
+
"default": "'sm'",
|
|
557
|
+
"displayType": "undefined | \"sm\" | \"lg\" | \"md\" | \"icon\" | \"icon-sm\""
|
|
380
558
|
}
|
|
381
559
|
],
|
|
382
560
|
"events": [
|
|
383
561
|
{
|
|
384
|
-
"name": "
|
|
385
|
-
"detail":
|
|
386
|
-
"description": "
|
|
562
|
+
"name": "select",
|
|
563
|
+
"detail": null,
|
|
564
|
+
"description": "The checkpoint was clicked.",
|
|
565
|
+
"displayDetail": null
|
|
387
566
|
}
|
|
388
567
|
],
|
|
389
568
|
"composedFrom": [
|
|
390
569
|
{
|
|
391
|
-
"name": "
|
|
570
|
+
"name": "Checkpoint",
|
|
392
571
|
"group": "Components",
|
|
393
|
-
"storyId": "components-
|
|
572
|
+
"storyId": "components-checkpoint--docs"
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
"name": "CheckpointIcon",
|
|
576
|
+
"group": "Components",
|
|
577
|
+
"storyId": "components-checkpointicon--docs"
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
"name": "CheckpointTrigger",
|
|
581
|
+
"group": "Components",
|
|
582
|
+
"storyId": "components-checkpointtrigger--docs"
|
|
394
583
|
}
|
|
395
584
|
],
|
|
396
585
|
"tokens": []
|
|
397
586
|
},
|
|
398
587
|
{
|
|
399
|
-
"tag": "
|
|
400
|
-
"className": "
|
|
588
|
+
"tag": "kc-code-block",
|
|
589
|
+
"className": "KcCodeBlockElement",
|
|
401
590
|
"props": [
|
|
402
591
|
{
|
|
403
|
-
"name": "
|
|
404
|
-
"type": "
|
|
405
|
-
"optional": false,
|
|
406
|
-
"scalar": false,
|
|
407
|
-
"description": "Pre-bucketed conversation groups for the sidebar. Set as a JS property.",
|
|
408
|
-
"default": "[]"
|
|
409
|
-
},
|
|
410
|
-
{
|
|
411
|
-
"name": "conversations",
|
|
412
|
-
"type": "{ id: string; title: string; groupId?: undefined | string; scope: { type: \"document\" | \"collection\"; documentId?: undefined | string; filters?: undefined | { tags?: undefined | string[]; authors?: undefined | string[]; contentType?: undefined | \"transcript\" | \"markdown\"; dateRange?: undefined | { from: string; to: string } } }; messageCount: number; lastMessageAt: string; updatedAt: string }[]",
|
|
592
|
+
"name": "code",
|
|
593
|
+
"type": "string",
|
|
413
594
|
"optional": false,
|
|
414
|
-
"scalar": false,
|
|
415
|
-
"description": "Flat conversation list (auto-bucketed if `groups` is empty). Set as a JS property.",
|
|
416
|
-
"default": "[]"
|
|
417
|
-
},
|
|
418
|
-
{
|
|
419
|
-
"name": "activeId",
|
|
420
|
-
"type": "undefined | string",
|
|
421
|
-
"optional": true,
|
|
422
595
|
"scalar": true,
|
|
423
|
-
"description": "
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
"name": "messages",
|
|
427
|
-
"type": "{ id: string; role: \"user\" | \"assistant\"; content: string; reasoning?: undefined | { text: string; label?: undefined | string }; tools?: undefined | { type: string; state: \"input-streaming\" | \"input-available\" | \"output-available\" | \"output-error\"; input?: undefined | Record<string, unknown>; output?: undefined | Record<string, unknown>; toolCallId?: undefined | string; errorText?: undefined | string }[]; attachments?: undefined | { id: string; type: \"file\" | \"source-document\"; filename?: undefined | string; mediaType?: undefined | string; url?: undefined | string; title?: undefined | string }[]; actions?: undefined | (\"copy\" | \"like\" | \"dislike\" | \"regenerate\" | \"edit\")[] }[]",
|
|
428
|
-
"optional": false,
|
|
429
|
-
"scalar": false,
|
|
430
|
-
"description": "The active conversation's message thread, newest last. Set as a JS property.",
|
|
431
|
-
"default": "[]"
|
|
596
|
+
"description": "The source code to render.",
|
|
597
|
+
"default": "''",
|
|
598
|
+
"displayType": "string"
|
|
432
599
|
},
|
|
433
600
|
{
|
|
434
|
-
"name": "
|
|
601
|
+
"name": "language",
|
|
435
602
|
"type": "undefined | string",
|
|
436
603
|
"optional": true,
|
|
437
604
|
"scalar": true,
|
|
438
|
-
"description": ""
|
|
605
|
+
"description": "Language grammar (e.g. `js`, `python`). Defaults to `tsx`.",
|
|
606
|
+
"displayType": "undefined | string"
|
|
439
607
|
},
|
|
440
608
|
{
|
|
441
|
-
"name": "
|
|
609
|
+
"name": "codeTheme",
|
|
442
610
|
"type": "undefined | string",
|
|
443
611
|
"optional": true,
|
|
444
612
|
"scalar": true,
|
|
445
|
-
"description": "",
|
|
446
|
-
"default": "'
|
|
613
|
+
"description": "Shiki theme name.",
|
|
614
|
+
"default": "'github-dark-dimmed'",
|
|
615
|
+
"displayType": "undefined | string"
|
|
447
616
|
},
|
|
448
617
|
{
|
|
449
|
-
"name": "
|
|
618
|
+
"name": "codeHighlight",
|
|
450
619
|
"type": "undefined | false | true",
|
|
451
620
|
"optional": true,
|
|
452
621
|
"scalar": true,
|
|
453
|
-
"description": "",
|
|
454
|
-
"default": "
|
|
455
|
-
|
|
456
|
-
{
|
|
457
|
-
"name": "suggestions",
|
|
458
|
-
"type": "undefined | string[]",
|
|
459
|
-
"optional": true,
|
|
460
|
-
"scalar": false,
|
|
461
|
-
"description": ""
|
|
462
|
-
},
|
|
463
|
-
{
|
|
464
|
-
"name": "suggestionMode",
|
|
465
|
-
"type": "undefined | \"submit\" | \"fill\"",
|
|
466
|
-
"optional": true,
|
|
467
|
-
"scalar": true,
|
|
468
|
-
"description": "",
|
|
469
|
-
"default": "'submit'"
|
|
622
|
+
"description": "Disable syntax highlighting (renders plain text, no Shiki).",
|
|
623
|
+
"default": "true",
|
|
624
|
+
"displayType": "undefined | false | true"
|
|
470
625
|
},
|
|
471
626
|
{
|
|
472
627
|
"name": "proseSize",
|
|
473
628
|
"type": "undefined | \"xs\" | \"sm\" | \"base\" | \"lg\"",
|
|
474
629
|
"optional": true,
|
|
475
630
|
"scalar": true,
|
|
476
|
-
"description": "",
|
|
477
|
-
"default": "'sm'"
|
|
478
|
-
|
|
631
|
+
"description": "Code text sizing.",
|
|
632
|
+
"default": "'sm'",
|
|
633
|
+
"displayType": "undefined | \"xs\" | \"sm\" | \"base\" | \"lg\""
|
|
634
|
+
}
|
|
635
|
+
],
|
|
636
|
+
"events": [],
|
|
637
|
+
"composedFrom": [
|
|
479
638
|
{
|
|
480
|
-
"name": "
|
|
481
|
-
"
|
|
482
|
-
"
|
|
483
|
-
"scalar": true,
|
|
484
|
-
"description": "",
|
|
485
|
-
"default": "'github-dark-dimmed'"
|
|
639
|
+
"name": "CodeBlock",
|
|
640
|
+
"group": "Components",
|
|
641
|
+
"storyId": "components-codeblock--docs"
|
|
486
642
|
},
|
|
487
643
|
{
|
|
488
|
-
"name": "
|
|
489
|
-
"
|
|
644
|
+
"name": "CodeBlockCode",
|
|
645
|
+
"group": "Components",
|
|
646
|
+
"storyId": "components-codeblockcode--docs"
|
|
647
|
+
}
|
|
648
|
+
],
|
|
649
|
+
"tokens": [
|
|
650
|
+
"--color-code-foreground"
|
|
651
|
+
]
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
"tag": "kc-confirm",
|
|
655
|
+
"className": "KcConfirmElement",
|
|
656
|
+
"props": [
|
|
657
|
+
{
|
|
658
|
+
"name": "data",
|
|
659
|
+
"type": "undefined | Record<string, unknown>",
|
|
490
660
|
"optional": true,
|
|
491
|
-
"scalar":
|
|
492
|
-
"description": "",
|
|
493
|
-
"
|
|
661
|
+
"scalar": false,
|
|
662
|
+
"description": "The confirm definition (the CardEnvelope.data). Set as a JS PROPERTY: `el.data = { body, tone, actions:[…] }`. Import `ConfirmCardData` from `@kitnai/chat` for the full shape.",
|
|
663
|
+
"displayType": "undefined | Record<string, unknown>"
|
|
494
664
|
},
|
|
495
665
|
{
|
|
496
|
-
"name": "
|
|
666
|
+
"name": "cardId",
|
|
497
667
|
"type": "undefined | string",
|
|
498
668
|
"optional": true,
|
|
499
669
|
"scalar": true,
|
|
500
|
-
"description": ""
|
|
670
|
+
"description": "Stable card id correlating every emitted CardEvent. Attribute: `card-id`.",
|
|
671
|
+
"displayType": "undefined | string"
|
|
501
672
|
},
|
|
502
673
|
{
|
|
503
|
-
"name": "
|
|
504
|
-
"type": "undefined |
|
|
674
|
+
"name": "heading",
|
|
675
|
+
"type": "undefined | string",
|
|
505
676
|
"optional": true,
|
|
506
|
-
"scalar":
|
|
507
|
-
"description": ""
|
|
677
|
+
"scalar": true,
|
|
678
|
+
"description": "Heading rendered in the card chrome (= CardEnvelope.title). Attribute: `heading`.",
|
|
679
|
+
"displayType": "undefined | string"
|
|
508
680
|
},
|
|
509
681
|
{
|
|
510
|
-
"name": "
|
|
511
|
-
"type": "undefined |
|
|
682
|
+
"name": "autofocus",
|
|
683
|
+
"type": "undefined | false | true",
|
|
512
684
|
"optional": true,
|
|
513
685
|
"scalar": true,
|
|
514
|
-
"description": ""
|
|
515
|
-
|
|
686
|
+
"description": "Focus the default action on mount (off by default — no focus-stealing). Attribute: `autofocus`.",
|
|
687
|
+
"default": "false",
|
|
688
|
+
"displayType": "undefined | false | true"
|
|
689
|
+
}
|
|
690
|
+
],
|
|
691
|
+
"events": [],
|
|
692
|
+
"composedFrom": [
|
|
693
|
+
{
|
|
694
|
+
"name": "ConfirmCard",
|
|
695
|
+
"group": "Components",
|
|
696
|
+
"storyId": "components-confirmcard--docs"
|
|
697
|
+
}
|
|
698
|
+
],
|
|
699
|
+
"tokens": []
|
|
700
|
+
},
|
|
701
|
+
{
|
|
702
|
+
"tag": "kc-context",
|
|
703
|
+
"className": "KcContextElement",
|
|
704
|
+
"props": [
|
|
516
705
|
{
|
|
517
706
|
"name": "context",
|
|
518
|
-
"type": "undefined | { usedTokens: number; maxTokens: number; inputTokens?: undefined | number; outputTokens?: undefined | number; estimatedCost?: undefined | number }",
|
|
707
|
+
"type": "undefined | { usedTokens: number; maxTokens: number; inputTokens?: undefined | number; outputTokens?: undefined | number; reasoningTokens?: undefined | number; cacheTokens?: undefined | number; estimatedCost?: undefined | number }",
|
|
519
708
|
"optional": true,
|
|
520
709
|
"scalar": false,
|
|
521
|
-
"description": ""
|
|
710
|
+
"description": "Token-usage data. Set as a JS property.",
|
|
711
|
+
"displayType": "ContextData | undefined"
|
|
712
|
+
}
|
|
713
|
+
],
|
|
714
|
+
"events": [],
|
|
715
|
+
"composedFrom": [
|
|
716
|
+
{
|
|
717
|
+
"name": "Context",
|
|
718
|
+
"group": "Components",
|
|
719
|
+
"storyId": "components-context--docs"
|
|
522
720
|
},
|
|
523
721
|
{
|
|
524
|
-
"name": "
|
|
525
|
-
"
|
|
526
|
-
"
|
|
527
|
-
"scalar": true,
|
|
528
|
-
"description": "",
|
|
529
|
-
"default": "true"
|
|
722
|
+
"name": "ContextTrigger",
|
|
723
|
+
"group": "Components",
|
|
724
|
+
"storyId": "components-contexttrigger--docs"
|
|
530
725
|
},
|
|
531
726
|
{
|
|
532
|
-
"name": "
|
|
533
|
-
"
|
|
534
|
-
"
|
|
535
|
-
"scalar": true,
|
|
536
|
-
"description": "",
|
|
537
|
-
"default": "false"
|
|
727
|
+
"name": "ContextContent",
|
|
728
|
+
"group": "Components",
|
|
729
|
+
"storyId": "components-contextcontent--docs"
|
|
538
730
|
},
|
|
539
731
|
{
|
|
540
|
-
"name": "
|
|
541
|
-
"
|
|
542
|
-
"
|
|
543
|
-
"scalar": true,
|
|
544
|
-
"description": "",
|
|
545
|
-
"default": "false"
|
|
546
|
-
},
|
|
547
|
-
{
|
|
548
|
-
"name": "slashCommands",
|
|
549
|
-
"type": "undefined | { id: string; label: string; description?: undefined | string; category?: undefined | string }[]",
|
|
550
|
-
"optional": true,
|
|
551
|
-
"scalar": false,
|
|
552
|
-
"description": ""
|
|
732
|
+
"name": "ContextContentHeader",
|
|
733
|
+
"group": "Components",
|
|
734
|
+
"storyId": "components-contextcontentheader--docs"
|
|
553
735
|
},
|
|
554
736
|
{
|
|
555
|
-
"name": "
|
|
556
|
-
"
|
|
557
|
-
"
|
|
558
|
-
"scalar": false,
|
|
559
|
-
"description": ""
|
|
737
|
+
"name": "ContextContentBody",
|
|
738
|
+
"group": "Components",
|
|
739
|
+
"storyId": "components-contextcontentbody--docs"
|
|
560
740
|
},
|
|
561
741
|
{
|
|
562
|
-
"name": "
|
|
563
|
-
"
|
|
564
|
-
"
|
|
565
|
-
"scalar": true,
|
|
566
|
-
"description": "",
|
|
567
|
-
"default": "false"
|
|
742
|
+
"name": "ContextContentFooter",
|
|
743
|
+
"group": "Components",
|
|
744
|
+
"storyId": "components-contextcontentfooter--docs"
|
|
568
745
|
},
|
|
569
746
|
{
|
|
570
|
-
"name": "
|
|
571
|
-
"
|
|
572
|
-
"
|
|
573
|
-
"scalar": true,
|
|
574
|
-
"description": "Sidebar default width as a percent of the workspace (default 22).",
|
|
575
|
-
"default": "22"
|
|
747
|
+
"name": "ContextInputUsage",
|
|
748
|
+
"group": "Components",
|
|
749
|
+
"storyId": "components-contextinputusage--docs"
|
|
576
750
|
},
|
|
577
751
|
{
|
|
578
|
-
"name": "
|
|
579
|
-
"
|
|
580
|
-
"
|
|
581
|
-
"scalar": true,
|
|
582
|
-
"description": "Sidebar min width in px (default 200).",
|
|
583
|
-
"default": "200"
|
|
752
|
+
"name": "ContextOutputUsage",
|
|
753
|
+
"group": "Components",
|
|
754
|
+
"storyId": "components-contextoutputusage--docs"
|
|
584
755
|
},
|
|
585
756
|
{
|
|
586
|
-
"name": "
|
|
587
|
-
"
|
|
588
|
-
"
|
|
589
|
-
"scalar": true,
|
|
590
|
-
"description": "Sidebar max width in px (default 420).",
|
|
591
|
-
"default": "420"
|
|
757
|
+
"name": "ContextReasoningUsage",
|
|
758
|
+
"group": "Components",
|
|
759
|
+
"storyId": "components-contextreasoningusage--docs"
|
|
592
760
|
},
|
|
593
761
|
{
|
|
594
|
-
"name": "
|
|
595
|
-
"
|
|
596
|
-
"
|
|
597
|
-
"scalar": true,
|
|
598
|
-
"description": "Initial collapsed state of the sidebar (default false).",
|
|
599
|
-
"default": "false"
|
|
762
|
+
"name": "ContextCacheUsage",
|
|
763
|
+
"group": "Components",
|
|
764
|
+
"storyId": "components-contextcacheusage--docs"
|
|
600
765
|
}
|
|
601
766
|
],
|
|
602
|
-
"
|
|
767
|
+
"tokens": []
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
"tag": "kc-conversations",
|
|
771
|
+
"className": "KcConversationsElement",
|
|
772
|
+
"props": [
|
|
603
773
|
{
|
|
604
|
-
"name": "
|
|
605
|
-
"
|
|
606
|
-
"
|
|
774
|
+
"name": "groups",
|
|
775
|
+
"type": "{ id: string; userId?: undefined | string; teamId?: undefined | string; name: string; sortOrder: number; createdAt: string }[]",
|
|
776
|
+
"optional": false,
|
|
777
|
+
"scalar": false,
|
|
778
|
+
"description": "Pre-bucketed conversation groups (e.g. \"Today\", \"Yesterday\"), each with its own conversations. Use this when you want to control the grouping/headers yourself; otherwise pass a flat `conversations` array. Set as a JS property.",
|
|
779
|
+
"default": "[]",
|
|
780
|
+
"displayType": "ConversationGroup[]"
|
|
607
781
|
},
|
|
608
782
|
{
|
|
609
|
-
"name": "
|
|
610
|
-
"
|
|
611
|
-
"
|
|
783
|
+
"name": "conversations",
|
|
784
|
+
"type": "{ id: string; title: string; groupId?: undefined | string; scope: { type: \"document\" | \"collection\"; documentId?: undefined | string; filters?: undefined | { tags?: undefined | string[]; authors?: undefined | string[]; contentType?: undefined | \"transcript\" | \"markdown\"; dateRange?: undefined | { from: string; to: string } } }; messageCount: number; lastMessageAt: string; updatedAt: string }[]",
|
|
785
|
+
"optional": false,
|
|
786
|
+
"scalar": false,
|
|
787
|
+
"description": "A flat list of conversation summaries; the component buckets them by recency for you. Ignored when `groups` is provided. Set as a JS property.",
|
|
788
|
+
"default": "[]",
|
|
789
|
+
"displayType": "ConversationSummary[]"
|
|
612
790
|
},
|
|
613
791
|
{
|
|
614
|
-
"name": "
|
|
615
|
-
"
|
|
616
|
-
"
|
|
617
|
-
|
|
792
|
+
"name": "activeId",
|
|
793
|
+
"type": "undefined | string",
|
|
794
|
+
"optional": true,
|
|
795
|
+
"scalar": true,
|
|
796
|
+
"description": "The id of the currently-open conversation, highlighted in the list.",
|
|
797
|
+
"displayType": "undefined | string"
|
|
798
|
+
}
|
|
799
|
+
],
|
|
800
|
+
"events": [
|
|
618
801
|
{
|
|
619
802
|
"name": "newchat",
|
|
620
803
|
"detail": "Record<string, never>",
|
|
621
|
-
"description": "The \"New chat\" button was clicked."
|
|
804
|
+
"description": "The \"New chat\" button was clicked.",
|
|
805
|
+
"displayDetail": "Record<string, never>"
|
|
622
806
|
},
|
|
623
807
|
{
|
|
624
|
-
"name": "
|
|
625
|
-
"detail": "
|
|
626
|
-
"description": "
|
|
808
|
+
"name": "select",
|
|
809
|
+
"detail": "{ id: string }",
|
|
810
|
+
"description": "A conversation was selected.",
|
|
811
|
+
"displayDetail": "{ id: string }"
|
|
627
812
|
},
|
|
628
813
|
{
|
|
629
|
-
"name": "
|
|
630
|
-
"detail": "
|
|
631
|
-
"description": "The sidebar was
|
|
632
|
-
|
|
814
|
+
"name": "togglesidebar",
|
|
815
|
+
"detail": "Record<string, never>",
|
|
816
|
+
"description": "The sidebar toggle was clicked.",
|
|
817
|
+
"displayDetail": "Record<string, never>"
|
|
818
|
+
}
|
|
819
|
+
],
|
|
820
|
+
"composedFrom": [
|
|
633
821
|
{
|
|
634
|
-
"name": "
|
|
635
|
-
"
|
|
636
|
-
"
|
|
637
|
-
}
|
|
822
|
+
"name": "ConversationList",
|
|
823
|
+
"group": "Components",
|
|
824
|
+
"storyId": "components-conversationlist--docs"
|
|
825
|
+
}
|
|
826
|
+
],
|
|
827
|
+
"tokens": [
|
|
828
|
+
"--color-sidebar",
|
|
829
|
+
"--color-scrollbar-thumb"
|
|
830
|
+
]
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
"tag": "kc-embed",
|
|
834
|
+
"className": "KcEmbedElement",
|
|
835
|
+
"props": [
|
|
638
836
|
{
|
|
639
|
-
"name": "
|
|
640
|
-
"
|
|
641
|
-
"
|
|
837
|
+
"name": "cardId",
|
|
838
|
+
"type": "undefined | string",
|
|
839
|
+
"optional": true,
|
|
840
|
+
"scalar": true,
|
|
841
|
+
"description": "Stable card id correlating every emitted event. Set as an attribute or property.",
|
|
842
|
+
"displayType": "undefined | string"
|
|
642
843
|
},
|
|
643
844
|
{
|
|
644
|
-
"name": "
|
|
645
|
-
"
|
|
646
|
-
"
|
|
647
|
-
|
|
845
|
+
"name": "data",
|
|
846
|
+
"type": "undefined | { provider: \"youtube\" | \"vimeo\" | \"generic\"; id?: undefined | string; url?: undefined | string; title?: undefined | string; poster?: undefined | string; start?: undefined | number; aspectRatio?: undefined | \"16:9\" | \"4:3\" | \"1:1\" | \"9:16\" }",
|
|
847
|
+
"optional": true,
|
|
848
|
+
"scalar": false,
|
|
849
|
+
"description": "The embed payload (provider + id/url + options). Set as a JS **property** (object).",
|
|
850
|
+
"displayType": "undefined | { provider: \"youtube\" | \"vimeo\" | \"generic\"; id?: undefined | string; url?: undefined | string; title?: undefined | string; poster?: undefined | string; start?: undefined | number; aspectRatio?: undefined | \"16:9\" | \"4:3\" | \"1:1\" | \"9:16\" }"
|
|
851
|
+
}
|
|
852
|
+
],
|
|
853
|
+
"events": [],
|
|
854
|
+
"composedFrom": [
|
|
648
855
|
{
|
|
649
|
-
"name": "
|
|
650
|
-
"
|
|
651
|
-
"
|
|
856
|
+
"name": "Embed",
|
|
857
|
+
"group": "Components",
|
|
858
|
+
"storyId": "components-embed--docs"
|
|
859
|
+
}
|
|
860
|
+
],
|
|
861
|
+
"tokens": []
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
"tag": "kc-empty",
|
|
865
|
+
"className": "KcEmptyElement",
|
|
866
|
+
"props": [
|
|
867
|
+
{
|
|
868
|
+
"name": "emptyTitle",
|
|
869
|
+
"type": "undefined | string",
|
|
870
|
+
"optional": true,
|
|
871
|
+
"scalar": true,
|
|
872
|
+
"description": "Title text. Attribute: `empty-title` (`title` is a global HTML attribute).",
|
|
873
|
+
"default": "''",
|
|
874
|
+
"displayType": "undefined | string"
|
|
652
875
|
},
|
|
653
876
|
{
|
|
654
|
-
"name": "
|
|
655
|
-
"
|
|
656
|
-
"
|
|
877
|
+
"name": "description",
|
|
878
|
+
"type": "undefined | string",
|
|
879
|
+
"optional": true,
|
|
880
|
+
"scalar": true,
|
|
881
|
+
"description": "Description text.",
|
|
882
|
+
"default": "''",
|
|
883
|
+
"displayType": "undefined | string"
|
|
657
884
|
}
|
|
658
885
|
],
|
|
886
|
+
"events": [],
|
|
659
887
|
"composedFrom": [
|
|
660
888
|
{
|
|
661
|
-
"name": "
|
|
889
|
+
"name": "Empty",
|
|
662
890
|
"group": "Components",
|
|
663
|
-
"storyId": "components-
|
|
891
|
+
"storyId": "components-empty--docs"
|
|
664
892
|
},
|
|
665
893
|
{
|
|
666
|
-
"name": "
|
|
894
|
+
"name": "EmptyHeader",
|
|
667
895
|
"group": "Components",
|
|
668
|
-
"storyId": "components-
|
|
896
|
+
"storyId": "components-emptyheader--docs"
|
|
669
897
|
},
|
|
670
898
|
{
|
|
671
|
-
"name": "
|
|
672
|
-
"group": "
|
|
673
|
-
"storyId": "
|
|
899
|
+
"name": "EmptyMedia",
|
|
900
|
+
"group": "Components",
|
|
901
|
+
"storyId": "components-emptymedia--docs"
|
|
674
902
|
},
|
|
675
903
|
{
|
|
676
|
-
"name": "
|
|
677
|
-
"group": "
|
|
678
|
-
"storyId": "
|
|
904
|
+
"name": "EmptyTitle",
|
|
905
|
+
"group": "Components",
|
|
906
|
+
"storyId": "components-emptytitle--docs"
|
|
679
907
|
},
|
|
680
908
|
{
|
|
681
|
-
"name": "
|
|
682
|
-
"group": "
|
|
683
|
-
"storyId": "
|
|
909
|
+
"name": "EmptyDescription",
|
|
910
|
+
"group": "Components",
|
|
911
|
+
"storyId": "components-emptydescription--docs"
|
|
684
912
|
},
|
|
685
913
|
{
|
|
686
|
-
"name": "
|
|
687
|
-
"group": "
|
|
688
|
-
"storyId": "
|
|
914
|
+
"name": "EmptyContent",
|
|
915
|
+
"group": "Components",
|
|
916
|
+
"storyId": "components-emptycontent--docs"
|
|
689
917
|
}
|
|
690
918
|
],
|
|
691
919
|
"tokens": []
|
|
692
920
|
},
|
|
693
921
|
{
|
|
694
|
-
"tag": "
|
|
695
|
-
"className": "
|
|
922
|
+
"tag": "kc-feedback-bar",
|
|
923
|
+
"className": "KcFeedbackBarElement",
|
|
696
924
|
"props": [
|
|
697
925
|
{
|
|
698
|
-
"name": "
|
|
926
|
+
"name": "barTitle",
|
|
699
927
|
"type": "undefined | string",
|
|
700
928
|
"optional": true,
|
|
701
929
|
"scalar": true,
|
|
702
|
-
"description": "
|
|
930
|
+
"description": "The banner label (e.g. \"Was this helpful?\"). Attribute: `bar-title` (`title` is avoided — it's a global HTML attribute).",
|
|
931
|
+
"default": "'Was this helpful?'",
|
|
932
|
+
"displayType": "undefined | string"
|
|
933
|
+
}
|
|
934
|
+
],
|
|
935
|
+
"events": [
|
|
936
|
+
{
|
|
937
|
+
"name": "close",
|
|
938
|
+
"detail": null,
|
|
939
|
+
"description": "The user dismissed the banner.",
|
|
940
|
+
"displayDetail": null
|
|
703
941
|
},
|
|
704
942
|
{
|
|
705
|
-
"name": "
|
|
706
|
-
"
|
|
707
|
-
"
|
|
708
|
-
"
|
|
709
|
-
"description": "Tooltip on hover."
|
|
943
|
+
"name": "helpful",
|
|
944
|
+
"detail": null,
|
|
945
|
+
"description": "The user clicked thumbs-up.",
|
|
946
|
+
"displayDetail": null
|
|
710
947
|
},
|
|
711
948
|
{
|
|
712
|
-
"name": "
|
|
713
|
-
"
|
|
949
|
+
"name": "nothelpful",
|
|
950
|
+
"detail": null,
|
|
951
|
+
"description": "The user clicked thumbs-down.",
|
|
952
|
+
"displayDetail": null
|
|
953
|
+
}
|
|
954
|
+
],
|
|
955
|
+
"composedFrom": [
|
|
956
|
+
{
|
|
957
|
+
"name": "FeedbackBar",
|
|
958
|
+
"group": "Components",
|
|
959
|
+
"storyId": "components-feedbackbar--docs"
|
|
960
|
+
}
|
|
961
|
+
],
|
|
962
|
+
"tokens": []
|
|
963
|
+
},
|
|
964
|
+
{
|
|
965
|
+
"tag": "kc-file-tree",
|
|
966
|
+
"className": "KcFileTreeElement",
|
|
967
|
+
"props": [
|
|
968
|
+
{
|
|
969
|
+
"name": "files",
|
|
970
|
+
"type": "{ path: string; url?: undefined | string; code?: undefined | string; language?: undefined | string; type?: undefined | \"html\" | \"pdf\" | \"image\" | \"other\" }[]",
|
|
971
|
+
"optional": false,
|
|
972
|
+
"scalar": false,
|
|
973
|
+
"description": "The files to render. Set as a JS property (array of `{ path, url?, code?, language?, type? }`).",
|
|
974
|
+
"default": "[]",
|
|
975
|
+
"displayType": "{ path: string; url?: undefined | string; code?: undefined | string; language?: undefined | string; type?: undefined | \"html\" | \"pdf\" | \"image\" | \"other\" }[]"
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
"name": "activeFile",
|
|
979
|
+
"type": "undefined | string",
|
|
714
980
|
"optional": true,
|
|
715
981
|
"scalar": true,
|
|
716
|
-
"description": "
|
|
717
|
-
"
|
|
982
|
+
"description": "Selected file path — highlighted in the tree.",
|
|
983
|
+
"displayType": "undefined | string"
|
|
718
984
|
},
|
|
719
985
|
{
|
|
720
|
-
"name": "
|
|
721
|
-
"type": "undefined |
|
|
986
|
+
"name": "defaultExpanded",
|
|
987
|
+
"type": "undefined | string[]",
|
|
722
988
|
"optional": true,
|
|
723
|
-
"scalar":
|
|
724
|
-
"description": "
|
|
725
|
-
"
|
|
989
|
+
"scalar": false,
|
|
990
|
+
"description": "Folder paths expanded initially. Omit to start with all folders open.",
|
|
991
|
+
"displayType": "undefined | string[]"
|
|
726
992
|
}
|
|
727
993
|
],
|
|
728
994
|
"events": [
|
|
729
995
|
{
|
|
730
996
|
"name": "select",
|
|
731
|
-
"detail":
|
|
732
|
-
"description": "
|
|
997
|
+
"detail": "{ path: string }",
|
|
998
|
+
"description": "Fired when a file is selected. `detail.path` = the file's path.",
|
|
999
|
+
"displayDetail": "{ path: string }"
|
|
733
1000
|
}
|
|
734
1001
|
],
|
|
735
1002
|
"composedFrom": [
|
|
736
1003
|
{
|
|
737
|
-
"name": "
|
|
738
|
-
"group": "Components",
|
|
739
|
-
"storyId": "components-checkpoint--docs"
|
|
740
|
-
},
|
|
741
|
-
{
|
|
742
|
-
"name": "CheckpointIcon",
|
|
743
|
-
"group": "Components",
|
|
744
|
-
"storyId": "components-checkpointicon--docs"
|
|
745
|
-
},
|
|
746
|
-
{
|
|
747
|
-
"name": "CheckpointTrigger",
|
|
1004
|
+
"name": "FileTree",
|
|
748
1005
|
"group": "Components",
|
|
749
|
-
"storyId": "components-
|
|
1006
|
+
"storyId": "components-filetree--docs"
|
|
750
1007
|
}
|
|
751
1008
|
],
|
|
752
1009
|
"tokens": []
|
|
753
1010
|
},
|
|
754
1011
|
{
|
|
755
|
-
"tag": "
|
|
756
|
-
"className": "
|
|
1012
|
+
"tag": "kc-file-upload",
|
|
1013
|
+
"className": "KcFileUploadElement",
|
|
757
1014
|
"props": [
|
|
758
1015
|
{
|
|
759
|
-
"name": "
|
|
760
|
-
"type": "
|
|
761
|
-
"optional":
|
|
1016
|
+
"name": "multiple",
|
|
1017
|
+
"type": "undefined | false | true",
|
|
1018
|
+
"optional": true,
|
|
762
1019
|
"scalar": true,
|
|
763
|
-
"description": "
|
|
764
|
-
"default": "
|
|
1020
|
+
"description": "Allow selecting multiple files (default true).",
|
|
1021
|
+
"default": "true",
|
|
1022
|
+
"displayType": "undefined | false | true"
|
|
765
1023
|
},
|
|
766
1024
|
{
|
|
767
|
-
"name": "
|
|
1025
|
+
"name": "accept",
|
|
768
1026
|
"type": "undefined | string",
|
|
769
1027
|
"optional": true,
|
|
770
1028
|
"scalar": true,
|
|
771
|
-
"description": "
|
|
1029
|
+
"description": "`accept` attribute for the file picker (e.g. `image/*`).",
|
|
1030
|
+
"displayType": "undefined | string"
|
|
772
1031
|
},
|
|
773
1032
|
{
|
|
774
|
-
"name": "
|
|
775
|
-
"type": "undefined | string",
|
|
776
|
-
"optional": true,
|
|
777
|
-
"scalar": true,
|
|
778
|
-
"description": "Shiki theme name.",
|
|
779
|
-
"default": "'github-dark-dimmed'"
|
|
780
|
-
},
|
|
781
|
-
{
|
|
782
|
-
"name": "codeHighlight",
|
|
1033
|
+
"name": "disabled",
|
|
783
1034
|
"type": "undefined | false | true",
|
|
784
1035
|
"optional": true,
|
|
785
1036
|
"scalar": true,
|
|
786
|
-
"description": "Disable
|
|
787
|
-
"default": "
|
|
1037
|
+
"description": "Disable the dropzone — no clicking, no drag-and-drop.",
|
|
1038
|
+
"default": "false",
|
|
1039
|
+
"displayType": "undefined | false | true"
|
|
788
1040
|
},
|
|
789
1041
|
{
|
|
790
|
-
"name": "
|
|
791
|
-
"type": "undefined |
|
|
1042
|
+
"name": "label",
|
|
1043
|
+
"type": "undefined | string",
|
|
792
1044
|
"optional": true,
|
|
793
1045
|
"scalar": true,
|
|
794
|
-
"description": "
|
|
795
|
-
"default": "'
|
|
796
|
-
|
|
797
|
-
],
|
|
798
|
-
"events": [],
|
|
799
|
-
"composedFrom": [
|
|
800
|
-
{
|
|
801
|
-
"name": "CodeBlock",
|
|
802
|
-
"group": "Components",
|
|
803
|
-
"storyId": "components-codeblock--docs"
|
|
804
|
-
},
|
|
805
|
-
{
|
|
806
|
-
"name": "CodeBlockCode",
|
|
807
|
-
"group": "Components",
|
|
808
|
-
"storyId": "components-codeblockcode--docs"
|
|
1046
|
+
"description": "Default dropzone label (overridable via the default slot).",
|
|
1047
|
+
"default": "'Click or drop files to upload'",
|
|
1048
|
+
"displayType": "undefined | string"
|
|
809
1049
|
}
|
|
810
1050
|
],
|
|
811
|
-
"
|
|
812
|
-
"--color-code-foreground"
|
|
813
|
-
]
|
|
814
|
-
},
|
|
815
|
-
{
|
|
816
|
-
"tag": "kitn-context-meter",
|
|
817
|
-
"className": "KitnContextMeterElement",
|
|
818
|
-
"props": [
|
|
1051
|
+
"events": [
|
|
819
1052
|
{
|
|
820
|
-
"name": "
|
|
821
|
-
"
|
|
822
|
-
"
|
|
823
|
-
"
|
|
824
|
-
"description": "Token-usage data. Set as a JS property."
|
|
1053
|
+
"name": "filesadded",
|
|
1054
|
+
"detail": "{ files: File[] }",
|
|
1055
|
+
"description": "Files were picked or dropped.",
|
|
1056
|
+
"displayDetail": "{ files: File[] }"
|
|
825
1057
|
}
|
|
826
1058
|
],
|
|
827
|
-
"events": [],
|
|
828
1059
|
"composedFrom": [
|
|
829
1060
|
{
|
|
830
|
-
"name": "
|
|
831
|
-
"group": "Components",
|
|
832
|
-
"storyId": "components-context--docs"
|
|
833
|
-
},
|
|
834
|
-
{
|
|
835
|
-
"name": "ContextTrigger",
|
|
836
|
-
"group": "Components",
|
|
837
|
-
"storyId": "components-contexttrigger--docs"
|
|
838
|
-
},
|
|
839
|
-
{
|
|
840
|
-
"name": "ContextContent",
|
|
841
|
-
"group": "Components",
|
|
842
|
-
"storyId": "components-contextcontent--docs"
|
|
843
|
-
},
|
|
844
|
-
{
|
|
845
|
-
"name": "ContextContentHeader",
|
|
846
|
-
"group": "Components",
|
|
847
|
-
"storyId": "components-contextcontentheader--docs"
|
|
848
|
-
},
|
|
849
|
-
{
|
|
850
|
-
"name": "ContextContentBody",
|
|
851
|
-
"group": "Components",
|
|
852
|
-
"storyId": "components-contextcontentbody--docs"
|
|
853
|
-
},
|
|
854
|
-
{
|
|
855
|
-
"name": "ContextContentFooter",
|
|
856
|
-
"group": "Components",
|
|
857
|
-
"storyId": "components-contextcontentfooter--docs"
|
|
858
|
-
},
|
|
859
|
-
{
|
|
860
|
-
"name": "ContextInputUsage",
|
|
861
|
-
"group": "Components",
|
|
862
|
-
"storyId": "components-contextinputusage--docs"
|
|
863
|
-
},
|
|
864
|
-
{
|
|
865
|
-
"name": "ContextOutputUsage",
|
|
866
|
-
"group": "Components",
|
|
867
|
-
"storyId": "components-contextoutputusage--docs"
|
|
868
|
-
},
|
|
869
|
-
{
|
|
870
|
-
"name": "ContextReasoningUsage",
|
|
1061
|
+
"name": "FileUpload",
|
|
871
1062
|
"group": "Components",
|
|
872
|
-
"storyId": "components-
|
|
1063
|
+
"storyId": "components-fileupload--docs"
|
|
873
1064
|
},
|
|
874
1065
|
{
|
|
875
|
-
"name": "
|
|
1066
|
+
"name": "FileUploadTrigger",
|
|
876
1067
|
"group": "Components",
|
|
877
|
-
"storyId": "components-
|
|
1068
|
+
"storyId": "components-fileuploadtrigger--docs"
|
|
878
1069
|
}
|
|
879
1070
|
],
|
|
880
1071
|
"tokens": []
|
|
881
1072
|
},
|
|
882
1073
|
{
|
|
883
|
-
"tag": "
|
|
884
|
-
"className": "
|
|
1074
|
+
"tag": "kc-form",
|
|
1075
|
+
"className": "KcFormElement",
|
|
885
1076
|
"props": [
|
|
886
1077
|
{
|
|
887
|
-
"name": "
|
|
888
|
-
"type": "
|
|
889
|
-
"optional": false,
|
|
890
|
-
"scalar": false,
|
|
891
|
-
"description": "Pre-bucketed conversation groups (e.g. \"Today\", \"Yesterday\"), each with its own conversations. Use this when you want to control the grouping/headers yourself; otherwise pass a flat `conversations` array. Set as a JS property.",
|
|
892
|
-
"default": "[]"
|
|
893
|
-
},
|
|
894
|
-
{
|
|
895
|
-
"name": "conversations",
|
|
896
|
-
"type": "{ id: string; title: string; groupId?: undefined | string; scope: { type: \"document\" | \"collection\"; documentId?: undefined | string; filters?: undefined | { tags?: undefined | string[]; authors?: undefined | string[]; contentType?: undefined | \"transcript\" | \"markdown\"; dateRange?: undefined | { from: string; to: string } } }; messageCount: number; lastMessageAt: string; updatedAt: string }[]",
|
|
897
|
-
"optional": false,
|
|
898
|
-
"scalar": false,
|
|
899
|
-
"description": "A flat list of conversation summaries; the component buckets them by recency for you. Ignored when `groups` is provided. Set as a JS property.",
|
|
900
|
-
"default": "[]"
|
|
901
|
-
},
|
|
902
|
-
{
|
|
903
|
-
"name": "activeId",
|
|
904
|
-
"type": "undefined | string",
|
|
1078
|
+
"name": "data",
|
|
1079
|
+
"type": "undefined | Record<string, unknown>",
|
|
905
1080
|
"optional": true,
|
|
906
|
-
"scalar":
|
|
907
|
-
"description": "The
|
|
908
|
-
|
|
909
|
-
],
|
|
910
|
-
"events": [
|
|
911
|
-
{
|
|
912
|
-
"name": "newchat",
|
|
913
|
-
"detail": "Record<string, never>",
|
|
914
|
-
"description": "The \"New chat\" button was clicked."
|
|
915
|
-
},
|
|
916
|
-
{
|
|
917
|
-
"name": "select",
|
|
918
|
-
"detail": "{ id: string }",
|
|
919
|
-
"description": "A conversation was selected."
|
|
1081
|
+
"scalar": false,
|
|
1082
|
+
"description": "The form definition — a JSON Schema (`type:'object'`) + `x-kc-*` UI hints (the CardEnvelope.data). Set as a JS PROPERTY: `el.data = { type:'object', properties:{…} }`. Import the `FormDefinition` type from `@kitnai/chat` for the full shape (it is self-referential, so the element types it loosely).",
|
|
1083
|
+
"displayType": "undefined | Record<string, unknown>"
|
|
920
1084
|
},
|
|
921
1085
|
{
|
|
922
|
-
"name": "
|
|
923
|
-
"detail": "Record<string, never>",
|
|
924
|
-
"description": "The sidebar toggle was clicked."
|
|
925
|
-
}
|
|
926
|
-
],
|
|
927
|
-
"composedFrom": [
|
|
928
|
-
{
|
|
929
|
-
"name": "ConversationList",
|
|
930
|
-
"group": "Components",
|
|
931
|
-
"storyId": "components-conversationlist--docs"
|
|
932
|
-
}
|
|
933
|
-
],
|
|
934
|
-
"tokens": [
|
|
935
|
-
"--color-sidebar",
|
|
936
|
-
"--color-scrollbar-thumb"
|
|
937
|
-
]
|
|
938
|
-
},
|
|
939
|
-
{
|
|
940
|
-
"tag": "kitn-empty",
|
|
941
|
-
"className": "KitnEmptyElement",
|
|
942
|
-
"props": [
|
|
943
|
-
{
|
|
944
|
-
"name": "emptyTitle",
|
|
1086
|
+
"name": "cardId",
|
|
945
1087
|
"type": "undefined | string",
|
|
946
1088
|
"optional": true,
|
|
947
1089
|
"scalar": true,
|
|
948
|
-
"description": "
|
|
949
|
-
"
|
|
1090
|
+
"description": "Stable card id correlating every emitted CardEvent. Attribute: `card-id`.",
|
|
1091
|
+
"displayType": "undefined | string"
|
|
950
1092
|
},
|
|
951
1093
|
{
|
|
952
|
-
"name": "
|
|
1094
|
+
"name": "heading",
|
|
953
1095
|
"type": "undefined | string",
|
|
954
1096
|
"optional": true,
|
|
955
1097
|
"scalar": true,
|
|
956
|
-
"description": "
|
|
957
|
-
"
|
|
1098
|
+
"description": "Heading rendered in the card chrome (= CardEnvelope.title). Attribute: `heading`.",
|
|
1099
|
+
"displayType": "undefined | string"
|
|
958
1100
|
}
|
|
959
1101
|
],
|
|
960
1102
|
"events": [],
|
|
961
1103
|
"composedFrom": [
|
|
962
1104
|
{
|
|
963
|
-
"name": "
|
|
964
|
-
"group": "Components",
|
|
965
|
-
"storyId": "components-empty--docs"
|
|
966
|
-
},
|
|
967
|
-
{
|
|
968
|
-
"name": "EmptyHeader",
|
|
969
|
-
"group": "Components",
|
|
970
|
-
"storyId": "components-emptyheader--docs"
|
|
971
|
-
},
|
|
972
|
-
{
|
|
973
|
-
"name": "EmptyMedia",
|
|
974
|
-
"group": "Components",
|
|
975
|
-
"storyId": "components-emptymedia--docs"
|
|
976
|
-
},
|
|
977
|
-
{
|
|
978
|
-
"name": "EmptyTitle",
|
|
979
|
-
"group": "Components",
|
|
980
|
-
"storyId": "components-emptytitle--docs"
|
|
981
|
-
},
|
|
982
|
-
{
|
|
983
|
-
"name": "EmptyDescription",
|
|
984
|
-
"group": "Components",
|
|
985
|
-
"storyId": "components-emptydescription--docs"
|
|
986
|
-
},
|
|
987
|
-
{
|
|
988
|
-
"name": "EmptyContent",
|
|
1105
|
+
"name": "Form",
|
|
989
1106
|
"group": "Components",
|
|
990
|
-
"storyId": "components-
|
|
1107
|
+
"storyId": "components-form--docs"
|
|
991
1108
|
}
|
|
992
1109
|
],
|
|
993
1110
|
"tokens": []
|
|
994
1111
|
},
|
|
995
1112
|
{
|
|
996
|
-
"tag": "
|
|
997
|
-
"className": "
|
|
1113
|
+
"tag": "kc-image",
|
|
1114
|
+
"className": "KcImageElement",
|
|
998
1115
|
"props": [
|
|
999
1116
|
{
|
|
1000
|
-
"name": "
|
|
1117
|
+
"name": "base64",
|
|
1001
1118
|
"type": "undefined | string",
|
|
1002
1119
|
"optional": true,
|
|
1003
1120
|
"scalar": true,
|
|
1004
|
-
"description": "
|
|
1005
|
-
"
|
|
1006
|
-
}
|
|
1007
|
-
],
|
|
1008
|
-
"events": [
|
|
1009
|
-
{
|
|
1010
|
-
"name": "close",
|
|
1011
|
-
"detail": null,
|
|
1012
|
-
"description": "The user dismissed the banner."
|
|
1013
|
-
},
|
|
1014
|
-
{
|
|
1015
|
-
"name": "helpful",
|
|
1016
|
-
"detail": null,
|
|
1017
|
-
"description": "The user clicked thumbs-up."
|
|
1121
|
+
"description": "Base64-encoded image data (pair with `media-type`).",
|
|
1122
|
+
"displayType": "undefined | string"
|
|
1018
1123
|
},
|
|
1019
1124
|
{
|
|
1020
|
-
"name": "
|
|
1021
|
-
"
|
|
1022
|
-
"description": "The user clicked thumbs-down."
|
|
1023
|
-
}
|
|
1024
|
-
],
|
|
1025
|
-
"composedFrom": [
|
|
1026
|
-
{
|
|
1027
|
-
"name": "FeedbackBar",
|
|
1028
|
-
"group": "Components",
|
|
1029
|
-
"storyId": "components-feedbackbar--docs"
|
|
1030
|
-
}
|
|
1031
|
-
],
|
|
1032
|
-
"tokens": []
|
|
1033
|
-
},
|
|
1034
|
-
{
|
|
1035
|
-
"tag": "kitn-file-upload",
|
|
1036
|
-
"className": "KitnFileUploadElement",
|
|
1037
|
-
"props": [
|
|
1038
|
-
{
|
|
1039
|
-
"name": "multiple",
|
|
1040
|
-
"type": "undefined | false | true",
|
|
1125
|
+
"name": "bytes",
|
|
1126
|
+
"type": "undefined | Uint8Array<ArrayBufferLike>",
|
|
1041
1127
|
"optional": true,
|
|
1042
|
-
"scalar":
|
|
1043
|
-
"description": "
|
|
1044
|
-
"
|
|
1128
|
+
"scalar": false,
|
|
1129
|
+
"description": "Raw image bytes (set as a JS property).",
|
|
1130
|
+
"displayType": "undefined | Uint8Array<ArrayBufferLike>"
|
|
1045
1131
|
},
|
|
1046
1132
|
{
|
|
1047
|
-
"name": "
|
|
1133
|
+
"name": "alt",
|
|
1048
1134
|
"type": "undefined | string",
|
|
1049
1135
|
"optional": true,
|
|
1050
1136
|
"scalar": true,
|
|
1051
|
-
"description": "
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
"name": "disabled",
|
|
1055
|
-
"type": "undefined | false | true",
|
|
1056
|
-
"optional": true,
|
|
1057
|
-
"scalar": true,
|
|
1058
|
-
"description": "Disable the dropzone — no clicking, no drag-and-drop.",
|
|
1059
|
-
"default": "false"
|
|
1137
|
+
"description": "Alt text.",
|
|
1138
|
+
"default": "''",
|
|
1139
|
+
"displayType": "undefined | string"
|
|
1060
1140
|
},
|
|
1061
1141
|
{
|
|
1062
|
-
"name": "
|
|
1142
|
+
"name": "mediaType",
|
|
1063
1143
|
"type": "undefined | string",
|
|
1064
1144
|
"optional": true,
|
|
1065
1145
|
"scalar": true,
|
|
1066
|
-
"description": "
|
|
1067
|
-
"
|
|
1068
|
-
}
|
|
1069
|
-
],
|
|
1070
|
-
"events": [
|
|
1071
|
-
{
|
|
1072
|
-
"name": "filesadded",
|
|
1073
|
-
"detail": "{ files: File[] }",
|
|
1074
|
-
"description": "Files were picked or dropped."
|
|
1146
|
+
"description": "MIME type (default `image/png`).",
|
|
1147
|
+
"displayType": "undefined | string"
|
|
1075
1148
|
}
|
|
1076
1149
|
],
|
|
1150
|
+
"events": [],
|
|
1077
1151
|
"composedFrom": [
|
|
1078
1152
|
{
|
|
1079
|
-
"name": "
|
|
1080
|
-
"group": "Components",
|
|
1081
|
-
"storyId": "components-fileupload--docs"
|
|
1082
|
-
},
|
|
1083
|
-
{
|
|
1084
|
-
"name": "FileUploadTrigger",
|
|
1153
|
+
"name": "Image",
|
|
1085
1154
|
"group": "Components",
|
|
1086
|
-
"storyId": "components-
|
|
1155
|
+
"storyId": "components-image--docs"
|
|
1087
1156
|
}
|
|
1088
1157
|
],
|
|
1089
1158
|
"tokens": []
|
|
1090
1159
|
},
|
|
1091
1160
|
{
|
|
1092
|
-
"tag": "
|
|
1093
|
-
"className": "
|
|
1161
|
+
"tag": "kc-link-card",
|
|
1162
|
+
"className": "KcLinkCardElement",
|
|
1094
1163
|
"props": [
|
|
1095
1164
|
{
|
|
1096
|
-
"name": "
|
|
1165
|
+
"name": "cardId",
|
|
1097
1166
|
"type": "undefined | string",
|
|
1098
1167
|
"optional": true,
|
|
1099
1168
|
"scalar": true,
|
|
1100
|
-
"description": "
|
|
1169
|
+
"description": "Stable card id correlating every emitted event. Set as an attribute or property.",
|
|
1170
|
+
"displayType": "undefined | string"
|
|
1101
1171
|
},
|
|
1102
1172
|
{
|
|
1103
|
-
"name": "
|
|
1104
|
-
"type": "undefined |
|
|
1173
|
+
"name": "data",
|
|
1174
|
+
"type": "undefined | { url: string; title?: undefined | string; description?: undefined | string; image?: undefined | string; imageAlt?: undefined | string; favicon?: undefined | string; domain?: undefined | string; siteName?: undefined | string }",
|
|
1105
1175
|
"optional": true,
|
|
1106
1176
|
"scalar": false,
|
|
1107
|
-
"description": "
|
|
1108
|
-
|
|
1109
|
-
{
|
|
1110
|
-
"name": "alt",
|
|
1111
|
-
"type": "undefined | string",
|
|
1112
|
-
"optional": true,
|
|
1113
|
-
"scalar": true,
|
|
1114
|
-
"description": "Alt text.",
|
|
1115
|
-
"default": "''"
|
|
1116
|
-
},
|
|
1117
|
-
{
|
|
1118
|
-
"name": "mediaType",
|
|
1119
|
-
"type": "undefined | string",
|
|
1120
|
-
"optional": true,
|
|
1121
|
-
"scalar": true,
|
|
1122
|
-
"description": "MIME type (default `image/png`)."
|
|
1177
|
+
"description": "The link payload (OG metadata). Set as a JS **property** (object).",
|
|
1178
|
+
"displayType": "undefined | { url: string; title?: undefined | string; description?: undefined | string; image?: undefined | string; imageAlt?: undefined | string; favicon?: undefined | string; domain?: undefined | string; siteName?: undefined | string }"
|
|
1123
1179
|
}
|
|
1124
1180
|
],
|
|
1125
1181
|
"events": [],
|
|
1126
1182
|
"composedFrom": [
|
|
1127
1183
|
{
|
|
1128
|
-
"name": "
|
|
1184
|
+
"name": "LinkCard",
|
|
1129
1185
|
"group": "Components",
|
|
1130
|
-
"storyId": "components-
|
|
1186
|
+
"storyId": "components-linkcard--docs"
|
|
1131
1187
|
}
|
|
1132
1188
|
],
|
|
1133
1189
|
"tokens": []
|
|
1134
1190
|
},
|
|
1135
1191
|
{
|
|
1136
|
-
"tag": "
|
|
1137
|
-
"className": "
|
|
1192
|
+
"tag": "kc-loader",
|
|
1193
|
+
"className": "KcLoaderElement",
|
|
1138
1194
|
"props": [
|
|
1139
1195
|
{
|
|
1140
1196
|
"name": "variant",
|
|
@@ -1142,7 +1198,8 @@
|
|
|
1142
1198
|
"optional": true,
|
|
1143
1199
|
"scalar": true,
|
|
1144
1200
|
"description": "The animation style: `'circular' | 'classic' | 'pulse' | 'pulse-dot' | 'dots' | 'typing' | 'wave' | 'bars' | 'terminal' | 'text-blink' | 'text-shimmer' | 'loading-dots'`. Defaults to `'circular'`.",
|
|
1145
|
-
"default": "'circular'"
|
|
1201
|
+
"default": "'circular'",
|
|
1202
|
+
"displayType": "LoaderVariant | undefined"
|
|
1146
1203
|
},
|
|
1147
1204
|
{
|
|
1148
1205
|
"name": "size",
|
|
@@ -1150,14 +1207,16 @@
|
|
|
1150
1207
|
"optional": true,
|
|
1151
1208
|
"scalar": true,
|
|
1152
1209
|
"description": "Loader size: `'sm' | 'md' | 'lg'`. Defaults to `'md'`.",
|
|
1153
|
-
"default": "'md'"
|
|
1210
|
+
"default": "'md'",
|
|
1211
|
+
"displayType": "undefined | \"sm\" | \"lg\" | \"md\""
|
|
1154
1212
|
},
|
|
1155
1213
|
{
|
|
1156
1214
|
"name": "text",
|
|
1157
1215
|
"type": "undefined | string",
|
|
1158
1216
|
"optional": true,
|
|
1159
1217
|
"scalar": true,
|
|
1160
|
-
"description": "Label for the text-based variants."
|
|
1218
|
+
"description": "Label for the text-based variants.",
|
|
1219
|
+
"displayType": "undefined | string"
|
|
1161
1220
|
}
|
|
1162
1221
|
],
|
|
1163
1222
|
"events": [],
|
|
@@ -1171,8 +1230,8 @@
|
|
|
1171
1230
|
"tokens": []
|
|
1172
1231
|
},
|
|
1173
1232
|
{
|
|
1174
|
-
"tag": "
|
|
1175
|
-
"className": "
|
|
1233
|
+
"tag": "kc-markdown",
|
|
1234
|
+
"className": "KcMarkdownElement",
|
|
1176
1235
|
"props": [
|
|
1177
1236
|
{
|
|
1178
1237
|
"name": "content",
|
|
@@ -1180,7 +1239,8 @@
|
|
|
1180
1239
|
"optional": false,
|
|
1181
1240
|
"scalar": true,
|
|
1182
1241
|
"description": "The markdown source to render.",
|
|
1183
|
-
"default": "''"
|
|
1242
|
+
"default": "''",
|
|
1243
|
+
"displayType": "string"
|
|
1184
1244
|
},
|
|
1185
1245
|
{
|
|
1186
1246
|
"name": "proseSize",
|
|
@@ -1188,7 +1248,8 @@
|
|
|
1188
1248
|
"optional": true,
|
|
1189
1249
|
"scalar": true,
|
|
1190
1250
|
"description": "Text/markdown sizing.",
|
|
1191
|
-
"default": "'sm'"
|
|
1251
|
+
"default": "'sm'",
|
|
1252
|
+
"displayType": "undefined | \"xs\" | \"sm\" | \"base\" | \"lg\""
|
|
1192
1253
|
},
|
|
1193
1254
|
{
|
|
1194
1255
|
"name": "codeTheme",
|
|
@@ -1196,7 +1257,8 @@
|
|
|
1196
1257
|
"optional": true,
|
|
1197
1258
|
"scalar": true,
|
|
1198
1259
|
"description": "Shiki theme for fenced code blocks.",
|
|
1199
|
-
"default": "'github-dark-dimmed'"
|
|
1260
|
+
"default": "'github-dark-dimmed'",
|
|
1261
|
+
"displayType": "undefined | string"
|
|
1200
1262
|
},
|
|
1201
1263
|
{
|
|
1202
1264
|
"name": "codeHighlight",
|
|
@@ -1204,7 +1266,8 @@
|
|
|
1204
1266
|
"optional": true,
|
|
1205
1267
|
"scalar": true,
|
|
1206
1268
|
"description": "Disable syntax highlighting (no Shiki loads).",
|
|
1207
|
-
"default": "true"
|
|
1269
|
+
"default": "true",
|
|
1270
|
+
"displayType": "undefined | false | true"
|
|
1208
1271
|
}
|
|
1209
1272
|
],
|
|
1210
1273
|
"events": [],
|
|
@@ -1218,15 +1281,16 @@
|
|
|
1218
1281
|
"tokens": []
|
|
1219
1282
|
},
|
|
1220
1283
|
{
|
|
1221
|
-
"tag": "
|
|
1222
|
-
"className": "
|
|
1284
|
+
"tag": "kc-message",
|
|
1285
|
+
"className": "KcMessageElement",
|
|
1223
1286
|
"props": [
|
|
1224
1287
|
{
|
|
1225
1288
|
"name": "message",
|
|
1226
1289
|
"type": "undefined | { id: string; role: \"user\" | \"assistant\"; content: string; reasoning?: undefined | { text: string; label?: undefined | string }; tools?: undefined | { type: string; state: \"input-streaming\" | \"input-available\" | \"output-available\" | \"output-error\"; input?: undefined | Record<string, unknown>; output?: undefined | Record<string, unknown>; toolCallId?: undefined | string; errorText?: undefined | string }[]; attachments?: undefined | { id: string; type: \"file\" | \"source-document\"; filename?: undefined | string; mediaType?: undefined | string; url?: undefined | string; title?: undefined | string }[]; actions?: undefined | (\"copy\" | \"like\" | \"dislike\" | \"regenerate\" | \"edit\")[] }",
|
|
1227
1290
|
"optional": true,
|
|
1228
1291
|
"scalar": false,
|
|
1229
|
-
"description": "The full message object. Set as a JS property."
|
|
1292
|
+
"description": "The full message object. Set as a JS property.",
|
|
1293
|
+
"displayType": "ChatMessage | undefined"
|
|
1230
1294
|
},
|
|
1231
1295
|
{
|
|
1232
1296
|
"name": "role",
|
|
@@ -1234,21 +1298,24 @@
|
|
|
1234
1298
|
"optional": true,
|
|
1235
1299
|
"scalar": true,
|
|
1236
1300
|
"description": "Convenience for simple cases when not passing a `message` object.",
|
|
1237
|
-
"default": "'assistant'"
|
|
1301
|
+
"default": "'assistant'",
|
|
1302
|
+
"displayType": "undefined | \"user\" | \"assistant\""
|
|
1238
1303
|
},
|
|
1239
1304
|
{
|
|
1240
1305
|
"name": "content",
|
|
1241
1306
|
"type": "undefined | string",
|
|
1242
1307
|
"optional": true,
|
|
1243
1308
|
"scalar": true,
|
|
1244
|
-
"description": "Convenience content (used when `message` is not set)."
|
|
1309
|
+
"description": "Convenience content (used when `message` is not set).",
|
|
1310
|
+
"displayType": "undefined | string"
|
|
1245
1311
|
},
|
|
1246
1312
|
{
|
|
1247
1313
|
"name": "markdown",
|
|
1248
1314
|
"type": "undefined | false | true",
|
|
1249
1315
|
"optional": true,
|
|
1250
1316
|
"scalar": true,
|
|
1251
|
-
"description": "Force markdown on/off. Defaults to on for assistant, off for user."
|
|
1317
|
+
"description": "Force markdown on/off. Defaults to on for assistant, off for user.",
|
|
1318
|
+
"displayType": "undefined | false | true"
|
|
1252
1319
|
},
|
|
1253
1320
|
{
|
|
1254
1321
|
"name": "proseSize",
|
|
@@ -1256,7 +1323,8 @@
|
|
|
1256
1323
|
"optional": true,
|
|
1257
1324
|
"scalar": true,
|
|
1258
1325
|
"description": "Text/markdown sizing for the message body.",
|
|
1259
|
-
"default": "'sm'"
|
|
1326
|
+
"default": "'sm'",
|
|
1327
|
+
"displayType": "undefined | \"xs\" | \"sm\" | \"base\" | \"lg\""
|
|
1260
1328
|
},
|
|
1261
1329
|
{
|
|
1262
1330
|
"name": "codeTheme",
|
|
@@ -1264,7 +1332,8 @@
|
|
|
1264
1332
|
"optional": true,
|
|
1265
1333
|
"scalar": true,
|
|
1266
1334
|
"description": "Shiki theme name used for fenced code blocks in the content.",
|
|
1267
|
-
"default": "'github-dark-dimmed'"
|
|
1335
|
+
"default": "'github-dark-dimmed'",
|
|
1336
|
+
"displayType": "undefined | string"
|
|
1268
1337
|
},
|
|
1269
1338
|
{
|
|
1270
1339
|
"name": "codeHighlight",
|
|
@@ -1272,14 +1341,16 @@
|
|
|
1272
1341
|
"optional": true,
|
|
1273
1342
|
"scalar": true,
|
|
1274
1343
|
"description": "Disable syntax highlighting for code blocks (no Shiki loads).",
|
|
1275
|
-
"default": "true"
|
|
1344
|
+
"default": "true",
|
|
1345
|
+
"displayType": "undefined | false | true"
|
|
1276
1346
|
}
|
|
1277
1347
|
],
|
|
1278
1348
|
"events": [
|
|
1279
1349
|
{
|
|
1280
1350
|
"name": "messageaction",
|
|
1281
1351
|
"detail": "{ messageId: string; action: \"copy\" | \"like\" | \"dislike\" | \"regenerate\" | \"edit\" }",
|
|
1282
|
-
"description": "An action button was clicked."
|
|
1352
|
+
"description": "An action button was clicked.",
|
|
1353
|
+
"displayDetail": "{ messageId: string; action: ChatMessageAction }"
|
|
1283
1354
|
}
|
|
1284
1355
|
],
|
|
1285
1356
|
"composedFrom": [
|
|
@@ -1347,53 +1418,33 @@
|
|
|
1347
1418
|
"tokens": []
|
|
1348
1419
|
},
|
|
1349
1420
|
{
|
|
1350
|
-
"tag": "
|
|
1351
|
-
"className": "
|
|
1421
|
+
"tag": "kc-model-switcher",
|
|
1422
|
+
"className": "KcModelSwitcherElement",
|
|
1352
1423
|
"props": [
|
|
1353
1424
|
{
|
|
1354
|
-
"name": "
|
|
1355
|
-
"type": "{ id: string; name: string }[]",
|
|
1356
|
-
"optional": false,
|
|
1357
|
-
"scalar": false,
|
|
1358
|
-
"description": "The active skills to badge. Set as a JS property.",
|
|
1359
|
-
"default": "[]"
|
|
1360
|
-
}
|
|
1361
|
-
],
|
|
1362
|
-
"events": [],
|
|
1363
|
-
"composedFrom": [
|
|
1364
|
-
{
|
|
1365
|
-
"name": "MessageSkills",
|
|
1366
|
-
"group": "Components",
|
|
1367
|
-
"storyId": "components-messageskills--docs"
|
|
1368
|
-
}
|
|
1369
|
-
],
|
|
1370
|
-
"tokens": []
|
|
1371
|
-
},
|
|
1372
|
-
{
|
|
1373
|
-
"tag": "kitn-model-switcher",
|
|
1374
|
-
"className": "KitnModelSwitcherElement",
|
|
1375
|
-
"props": [
|
|
1376
|
-
{
|
|
1377
|
-
"name": "models",
|
|
1378
|
-
"type": "{ id: string; name: string; provider?: undefined | string }[]",
|
|
1425
|
+
"name": "models",
|
|
1426
|
+
"type": "{ id: string; name: string; provider?: undefined | string }[]",
|
|
1379
1427
|
"optional": false,
|
|
1380
1428
|
"scalar": false,
|
|
1381
1429
|
"description": "The selectable models. Set as a JS property (array).",
|
|
1382
|
-
"default": "[]"
|
|
1430
|
+
"default": "[]",
|
|
1431
|
+
"displayType": "{ id: string; name: string; provider?: undefined | string }[]"
|
|
1383
1432
|
},
|
|
1384
1433
|
{
|
|
1385
1434
|
"name": "currentModel",
|
|
1386
1435
|
"type": "undefined | string",
|
|
1387
1436
|
"optional": true,
|
|
1388
1437
|
"scalar": true,
|
|
1389
|
-
"description": "The currently-selected model id. Defaults to the first model."
|
|
1438
|
+
"description": "The currently-selected model id. Defaults to the first model.",
|
|
1439
|
+
"displayType": "undefined | string"
|
|
1390
1440
|
}
|
|
1391
1441
|
],
|
|
1392
1442
|
"events": [
|
|
1393
1443
|
{
|
|
1394
1444
|
"name": "modelchange",
|
|
1395
1445
|
"detail": "{ modelId: string }",
|
|
1396
|
-
"description": "A model was selected."
|
|
1446
|
+
"description": "A model was selected.",
|
|
1447
|
+
"displayDetail": "{ modelId: string }"
|
|
1397
1448
|
}
|
|
1398
1449
|
],
|
|
1399
1450
|
"composedFrom": [
|
|
@@ -1406,15 +1457,16 @@
|
|
|
1406
1457
|
"tokens": []
|
|
1407
1458
|
},
|
|
1408
1459
|
{
|
|
1409
|
-
"tag": "
|
|
1410
|
-
"className": "
|
|
1460
|
+
"tag": "kc-prompt-input",
|
|
1461
|
+
"className": "KcPromptInputElement",
|
|
1411
1462
|
"props": [
|
|
1412
1463
|
{
|
|
1413
1464
|
"name": "value",
|
|
1414
1465
|
"type": "undefined | string",
|
|
1415
1466
|
"optional": true,
|
|
1416
1467
|
"scalar": true,
|
|
1417
|
-
"description": "Controlled value of the input. When set, the host owns the text and must update it on `valuechange`; leave unset for uncontrolled behavior."
|
|
1468
|
+
"description": "Controlled value of the input. When set, the host owns the text and must update it on `valuechange`; leave unset for uncontrolled behavior.",
|
|
1469
|
+
"displayType": "undefined | string"
|
|
1418
1470
|
},
|
|
1419
1471
|
{
|
|
1420
1472
|
"name": "placeholder",
|
|
@@ -1422,7 +1474,8 @@
|
|
|
1422
1474
|
"optional": true,
|
|
1423
1475
|
"scalar": true,
|
|
1424
1476
|
"description": "Placeholder text shown in the empty input.",
|
|
1425
|
-
"default": "'Send a message...'"
|
|
1477
|
+
"default": "'Send a message...'",
|
|
1478
|
+
"displayType": "undefined | string"
|
|
1426
1479
|
},
|
|
1427
1480
|
{
|
|
1428
1481
|
"name": "disabled",
|
|
@@ -1430,7 +1483,8 @@
|
|
|
1430
1483
|
"optional": true,
|
|
1431
1484
|
"scalar": true,
|
|
1432
1485
|
"description": "Disable the input and submit button entirely (non-interactive).",
|
|
1433
|
-
"default": "false"
|
|
1486
|
+
"default": "false",
|
|
1487
|
+
"displayType": "undefined | false | true"
|
|
1434
1488
|
},
|
|
1435
1489
|
{
|
|
1436
1490
|
"name": "loading",
|
|
@@ -1438,14 +1492,16 @@
|
|
|
1438
1492
|
"optional": true,
|
|
1439
1493
|
"scalar": true,
|
|
1440
1494
|
"description": "Show the loading/streaming state and block submit (use while awaiting a reply).",
|
|
1441
|
-
"default": "false"
|
|
1495
|
+
"default": "false",
|
|
1496
|
+
"displayType": "undefined | false | true"
|
|
1442
1497
|
},
|
|
1443
1498
|
{
|
|
1444
1499
|
"name": "suggestions",
|
|
1445
1500
|
"type": "undefined | string[]",
|
|
1446
1501
|
"optional": true,
|
|
1447
1502
|
"scalar": false,
|
|
1448
|
-
"description": "Starter prompts shown above the input. Clicking one follows `suggestionMode`. Set as a JS property."
|
|
1503
|
+
"description": "Starter prompts shown above the input. Clicking one follows `suggestionMode`. Set as a JS property.",
|
|
1504
|
+
"displayType": "undefined | string[]"
|
|
1449
1505
|
},
|
|
1450
1506
|
{
|
|
1451
1507
|
"name": "suggestionMode",
|
|
@@ -1453,21 +1509,24 @@
|
|
|
1453
1509
|
"optional": true,
|
|
1454
1510
|
"scalar": true,
|
|
1455
1511
|
"description": "What clicking a suggestion does: `'submit'` (default) sends it immediately as if typed and submitted; `'fill'` just places it in the input.",
|
|
1456
|
-
"default": "'submit'"
|
|
1512
|
+
"default": "'submit'",
|
|
1513
|
+
"displayType": "undefined | \"submit\" | \"fill\""
|
|
1457
1514
|
},
|
|
1458
1515
|
{
|
|
1459
1516
|
"name": "slashCommands",
|
|
1460
1517
|
"type": "undefined | { id: string; label: string; description?: undefined | string; category?: undefined | string }[]",
|
|
1461
1518
|
"optional": true,
|
|
1462
1519
|
"scalar": false,
|
|
1463
|
-
"description": "Slash commands — when set, typing `/` opens the command palette. Set as a JS property."
|
|
1520
|
+
"description": "Slash commands — when set, typing `/` opens the command palette. Set as a JS property.",
|
|
1521
|
+
"displayType": "SlashCommandItem[] | undefined"
|
|
1464
1522
|
},
|
|
1465
1523
|
{
|
|
1466
1524
|
"name": "slashActiveIds",
|
|
1467
1525
|
"type": "undefined | string[]",
|
|
1468
1526
|
"optional": true,
|
|
1469
1527
|
"scalar": false,
|
|
1470
|
-
"description": "Command ids to highlight as active."
|
|
1528
|
+
"description": "Command ids to highlight as active.",
|
|
1529
|
+
"displayType": "undefined | string[]"
|
|
1471
1530
|
},
|
|
1472
1531
|
{
|
|
1473
1532
|
"name": "slashCompact",
|
|
@@ -1475,7 +1534,8 @@
|
|
|
1475
1534
|
"optional": true,
|
|
1476
1535
|
"scalar": true,
|
|
1477
1536
|
"description": "Single-line palette rows.",
|
|
1478
|
-
"default": "false"
|
|
1537
|
+
"default": "false",
|
|
1538
|
+
"displayType": "undefined | false | true"
|
|
1479
1539
|
},
|
|
1480
1540
|
{
|
|
1481
1541
|
"name": "search",
|
|
@@ -1483,7 +1543,8 @@
|
|
|
1483
1543
|
"optional": true,
|
|
1484
1544
|
"scalar": true,
|
|
1485
1545
|
"description": "Show a Search (Globe) button in the left toolbar; clicking it fires a `search` event.",
|
|
1486
|
-
"default": "false"
|
|
1546
|
+
"default": "false",
|
|
1547
|
+
"displayType": "undefined | false | true"
|
|
1487
1548
|
},
|
|
1488
1549
|
{
|
|
1489
1550
|
"name": "voice",
|
|
@@ -1491,183 +1552,233 @@
|
|
|
1491
1552
|
"optional": true,
|
|
1492
1553
|
"scalar": true,
|
|
1493
1554
|
"description": "Show a Voice (Mic) button in the left toolbar; clicking it fires a `voice` event.",
|
|
1494
|
-
"default": "false"
|
|
1555
|
+
"default": "false",
|
|
1556
|
+
"displayType": "undefined | false | true"
|
|
1495
1557
|
},
|
|
1496
1558
|
{
|
|
1497
1559
|
"name": "attachments",
|
|
1498
1560
|
"type": "undefined | { id: string; type: \"file\" | \"source-document\"; filename?: undefined | string; mediaType?: undefined | string; url?: undefined | string; title?: undefined | string }[]",
|
|
1499
1561
|
"optional": true,
|
|
1500
1562
|
"scalar": false,
|
|
1501
|
-
"description": "Attachments to seed the input with (so a consumer can pre-populate staged files without an upload). Set as a JS property; the element then manages its own attachment state from there (add via the paperclip, remove per chip)."
|
|
1563
|
+
"description": "Attachments to seed the input with (so a consumer can pre-populate staged files without an upload). Set as a JS property; the element then manages its own attachment state from there (add via the paperclip, remove per chip).",
|
|
1564
|
+
"displayType": "AttachmentData[] | undefined"
|
|
1502
1565
|
}
|
|
1503
1566
|
],
|
|
1504
1567
|
"events": [
|
|
1505
1568
|
{
|
|
1506
1569
|
"name": "search",
|
|
1507
1570
|
"detail": "Record<string, never>",
|
|
1508
|
-
"description": "The Search (Globe) toolbar button was clicked."
|
|
1571
|
+
"description": "The Search (Globe) toolbar button was clicked.",
|
|
1572
|
+
"displayDetail": "Record<string, never>"
|
|
1509
1573
|
},
|
|
1510
1574
|
{
|
|
1511
1575
|
"name": "slashselect",
|
|
1512
1576
|
"detail": "{ command: { id: string; label: string; description?: undefined | string; category?: undefined | string } }",
|
|
1513
|
-
"description": "A slash command was chosen from the palette."
|
|
1577
|
+
"description": "A slash command was chosen from the palette.",
|
|
1578
|
+
"displayDetail": "{ command: SlashCommandItem }"
|
|
1514
1579
|
},
|
|
1515
1580
|
{
|
|
1516
1581
|
"name": "submit",
|
|
1517
1582
|
"detail": "{ value: string; attachments: { id: string; type: \"file\" | \"source-document\"; filename?: undefined | string; mediaType?: undefined | string; url?: undefined | string; title?: undefined | string }[] }",
|
|
1518
|
-
"description": "The user submitted the prompt (Enter or send button) with its attachments."
|
|
1583
|
+
"description": "The user submitted the prompt (Enter or send button) with its attachments.",
|
|
1584
|
+
"displayDetail": "{ value: string; attachments: AttachmentData[] }"
|
|
1519
1585
|
},
|
|
1520
1586
|
{
|
|
1521
1587
|
"name": "suggestionclick",
|
|
1522
1588
|
"detail": "{ value: string }",
|
|
1523
|
-
"description": "A suggestion was clicked while `suggestion-mode=\"fill\"`."
|
|
1589
|
+
"description": "A suggestion was clicked while `suggestion-mode=\"fill\"`.",
|
|
1590
|
+
"displayDetail": "{ value: string }"
|
|
1524
1591
|
},
|
|
1525
1592
|
{
|
|
1526
1593
|
"name": "valuechange",
|
|
1527
1594
|
"detail": "{ value: string }",
|
|
1528
|
-
"description": "The input text changed (fires on every keystroke)."
|
|
1595
|
+
"description": "The input text changed (fires on every keystroke).",
|
|
1596
|
+
"displayDetail": "{ value: string }"
|
|
1529
1597
|
},
|
|
1530
1598
|
{
|
|
1531
1599
|
"name": "voice",
|
|
1532
1600
|
"detail": "Record<string, never>",
|
|
1533
|
-
"description": "The Voice (Mic) toolbar button was clicked."
|
|
1601
|
+
"description": "The Voice (Mic) toolbar button was clicked.",
|
|
1602
|
+
"displayDetail": "Record<string, never>"
|
|
1534
1603
|
}
|
|
1535
1604
|
],
|
|
1536
1605
|
"composedFrom": [],
|
|
1537
1606
|
"tokens": []
|
|
1538
1607
|
},
|
|
1539
1608
|
{
|
|
1540
|
-
"tag": "
|
|
1541
|
-
"className": "
|
|
1609
|
+
"tag": "kc-reasoning",
|
|
1610
|
+
"className": "KcReasoningElement",
|
|
1542
1611
|
"props": [
|
|
1543
1612
|
{
|
|
1544
|
-
"name": "
|
|
1545
|
-
"type": "
|
|
1613
|
+
"name": "text",
|
|
1614
|
+
"type": "string",
|
|
1546
1615
|
"optional": false,
|
|
1547
|
-
"scalar":
|
|
1548
|
-
"description": "The
|
|
1549
|
-
"default": "
|
|
1616
|
+
"scalar": true,
|
|
1617
|
+
"description": "The reasoning text to display.",
|
|
1618
|
+
"default": "''",
|
|
1619
|
+
"displayType": "string"
|
|
1550
1620
|
},
|
|
1551
1621
|
{
|
|
1552
|
-
"name": "
|
|
1553
|
-
"type": "undefined |
|
|
1622
|
+
"name": "label",
|
|
1623
|
+
"type": "undefined | string",
|
|
1554
1624
|
"optional": true,
|
|
1555
1625
|
"scalar": true,
|
|
1556
|
-
"description": "
|
|
1557
|
-
"default": "'
|
|
1626
|
+
"description": "Trigger label.",
|
|
1627
|
+
"default": "'Reasoning'",
|
|
1628
|
+
"displayType": "undefined | string"
|
|
1558
1629
|
},
|
|
1559
1630
|
{
|
|
1560
|
-
"name": "
|
|
1561
|
-
"type": "undefined |
|
|
1631
|
+
"name": "open",
|
|
1632
|
+
"type": "undefined | false | true",
|
|
1562
1633
|
"optional": true,
|
|
1563
1634
|
"scalar": true,
|
|
1564
|
-
"description": "
|
|
1635
|
+
"description": "Controlled open state — set as a property (`el.open = true`). Omit for uncontrolled (the trigger toggles it).",
|
|
1636
|
+
"displayType": "undefined | false | true"
|
|
1565
1637
|
},
|
|
1566
1638
|
{
|
|
1567
|
-
"name": "
|
|
1639
|
+
"name": "streaming",
|
|
1568
1640
|
"type": "undefined | false | true",
|
|
1569
1641
|
"optional": true,
|
|
1570
1642
|
"scalar": true,
|
|
1571
|
-
"description": "
|
|
1572
|
-
"default": "false"
|
|
1643
|
+
"description": "While true, auto-expands (and re-collapses when it flips false).",
|
|
1644
|
+
"default": "false",
|
|
1645
|
+
"displayType": "undefined | false | true"
|
|
1573
1646
|
},
|
|
1574
1647
|
{
|
|
1575
|
-
"name": "
|
|
1576
|
-
"type": "undefined |
|
|
1648
|
+
"name": "markdown",
|
|
1649
|
+
"type": "undefined | false | true",
|
|
1577
1650
|
"optional": true,
|
|
1578
1651
|
"scalar": true,
|
|
1579
|
-
"description": "
|
|
1652
|
+
"description": "Render `text` as markdown.",
|
|
1653
|
+
"default": "true",
|
|
1654
|
+
"displayType": "undefined | false | true"
|
|
1580
1655
|
}
|
|
1581
1656
|
],
|
|
1582
1657
|
"events": [
|
|
1583
1658
|
{
|
|
1584
|
-
"name": "
|
|
1585
|
-
"detail": "{
|
|
1586
|
-
"description": "
|
|
1659
|
+
"name": "openchange",
|
|
1660
|
+
"detail": "{ open: false | true }",
|
|
1661
|
+
"description": "Open state changed (via the trigger or streaming auto-open).",
|
|
1662
|
+
"displayDetail": "{ open: false | true }"
|
|
1587
1663
|
}
|
|
1588
1664
|
],
|
|
1589
1665
|
"composedFrom": [
|
|
1590
1666
|
{
|
|
1591
|
-
"name": "
|
|
1667
|
+
"name": "Reasoning",
|
|
1592
1668
|
"group": "Components",
|
|
1593
|
-
"storyId": "components-
|
|
1669
|
+
"storyId": "components-reasoning--docs"
|
|
1670
|
+
},
|
|
1671
|
+
{
|
|
1672
|
+
"name": "ReasoningTrigger",
|
|
1673
|
+
"group": "Components",
|
|
1674
|
+
"storyId": "components-reasoningtrigger--docs"
|
|
1675
|
+
},
|
|
1676
|
+
{
|
|
1677
|
+
"name": "ReasoningContent",
|
|
1678
|
+
"group": "Components",
|
|
1679
|
+
"storyId": "components-reasoningcontent--docs"
|
|
1594
1680
|
}
|
|
1595
1681
|
],
|
|
1596
1682
|
"tokens": []
|
|
1597
1683
|
},
|
|
1598
1684
|
{
|
|
1599
|
-
"tag": "
|
|
1600
|
-
"className": "
|
|
1685
|
+
"tag": "kc-resizable",
|
|
1686
|
+
"className": "KcResizableElement",
|
|
1601
1687
|
"props": [
|
|
1602
1688
|
{
|
|
1603
|
-
"name": "
|
|
1604
|
-
"type": "
|
|
1605
|
-
"optional":
|
|
1689
|
+
"name": "orientation",
|
|
1690
|
+
"type": "undefined | \"horizontal\" | \"vertical\"",
|
|
1691
|
+
"optional": true,
|
|
1606
1692
|
"scalar": true,
|
|
1607
|
-
"description": "
|
|
1608
|
-
"default": "''"
|
|
1693
|
+
"description": "Layout axis: `horizontal` (row, default) or `vertical` (column).",
|
|
1694
|
+
"default": "'horizontal'",
|
|
1695
|
+
"displayType": "undefined | \"horizontal\" | \"vertical\""
|
|
1696
|
+
}
|
|
1697
|
+
],
|
|
1698
|
+
"events": [
|
|
1699
|
+
{
|
|
1700
|
+
"name": "change",
|
|
1701
|
+
"detail": "{ sizes: number[] }",
|
|
1702
|
+
"description": "Fired on drag-end / keyboard resize / visibility change. `detail.sizes` = panel sizes in percent.",
|
|
1703
|
+
"displayDetail": "{ sizes: number[] }"
|
|
1704
|
+
}
|
|
1705
|
+
],
|
|
1706
|
+
"composedFrom": [
|
|
1707
|
+
{
|
|
1708
|
+
"name": "ResizableHandle",
|
|
1709
|
+
"group": "UI",
|
|
1710
|
+
"storyId": "ui-resizablehandle--docs"
|
|
1711
|
+
}
|
|
1712
|
+
],
|
|
1713
|
+
"tokens": []
|
|
1714
|
+
},
|
|
1715
|
+
{
|
|
1716
|
+
"tag": "kc-resizable-item",
|
|
1717
|
+
"className": "KcResizableItemElement",
|
|
1718
|
+
"props": [
|
|
1719
|
+
{
|
|
1720
|
+
"name": "size",
|
|
1721
|
+
"type": "undefined | string",
|
|
1722
|
+
"optional": true,
|
|
1723
|
+
"scalar": true,
|
|
1724
|
+
"description": "Initial main-axis size: `\"280px\"` (fixed) or `\"25%\"`/`25` (percent). Omitted → flexible.",
|
|
1725
|
+
"displayType": "undefined | string"
|
|
1609
1726
|
},
|
|
1610
1727
|
{
|
|
1611
|
-
"name": "
|
|
1728
|
+
"name": "min",
|
|
1612
1729
|
"type": "undefined | string",
|
|
1613
1730
|
"optional": true,
|
|
1614
1731
|
"scalar": true,
|
|
1615
|
-
"description": "
|
|
1616
|
-
"
|
|
1732
|
+
"description": "Minimum size during resize (px or %).",
|
|
1733
|
+
"displayType": "undefined | string"
|
|
1617
1734
|
},
|
|
1618
1735
|
{
|
|
1619
|
-
"name": "
|
|
1620
|
-
"type": "undefined |
|
|
1736
|
+
"name": "max",
|
|
1737
|
+
"type": "undefined | string",
|
|
1621
1738
|
"optional": true,
|
|
1622
1739
|
"scalar": true,
|
|
1623
|
-
"description": "
|
|
1740
|
+
"description": "Maximum size during resize (px or %).",
|
|
1741
|
+
"displayType": "undefined | string"
|
|
1624
1742
|
},
|
|
1625
1743
|
{
|
|
1626
|
-
"name": "
|
|
1744
|
+
"name": "locked",
|
|
1627
1745
|
"type": "undefined | false | true",
|
|
1628
1746
|
"optional": true,
|
|
1629
1747
|
"scalar": true,
|
|
1630
|
-
"description": "
|
|
1631
|
-
"default": "false"
|
|
1748
|
+
"description": "Fix this panel's size; adjacent dividers become non-draggable.",
|
|
1749
|
+
"default": "false",
|
|
1750
|
+
"displayType": "undefined | false | true"
|
|
1632
1751
|
},
|
|
1633
1752
|
{
|
|
1634
|
-
"name": "
|
|
1753
|
+
"name": "hidden",
|
|
1635
1754
|
"type": "undefined | false | true",
|
|
1636
1755
|
"optional": true,
|
|
1637
1756
|
"scalar": true,
|
|
1638
|
-
"description": "
|
|
1639
|
-
"default": "
|
|
1757
|
+
"description": "Hide this panel; its divider is dropped and the rest reflow.",
|
|
1758
|
+
"default": "false",
|
|
1759
|
+
"displayType": "undefined | false | true"
|
|
1640
1760
|
}
|
|
1641
1761
|
],
|
|
1642
1762
|
"events": [
|
|
1643
1763
|
{
|
|
1644
|
-
"name": "
|
|
1645
|
-
"detail": "
|
|
1646
|
-
"description": "
|
|
1764
|
+
"name": "change",
|
|
1765
|
+
"detail": "unknown",
|
|
1766
|
+
"description": "",
|
|
1767
|
+
"displayDetail": "unknown"
|
|
1647
1768
|
}
|
|
1648
1769
|
],
|
|
1649
1770
|
"composedFrom": [
|
|
1650
1771
|
{
|
|
1651
|
-
"name": "
|
|
1652
|
-
"group": "
|
|
1653
|
-
"storyId": "
|
|
1654
|
-
},
|
|
1655
|
-
{
|
|
1656
|
-
"name": "ReasoningTrigger",
|
|
1657
|
-
"group": "Components",
|
|
1658
|
-
"storyId": "components-reasoningtrigger--docs"
|
|
1659
|
-
},
|
|
1660
|
-
{
|
|
1661
|
-
"name": "ReasoningContent",
|
|
1662
|
-
"group": "Components",
|
|
1663
|
-
"storyId": "components-reasoningcontent--docs"
|
|
1772
|
+
"name": "ResizableHandle",
|
|
1773
|
+
"group": "UI",
|
|
1774
|
+
"storyId": "ui-resizablehandle--docs"
|
|
1664
1775
|
}
|
|
1665
1776
|
],
|
|
1666
1777
|
"tokens": []
|
|
1667
1778
|
},
|
|
1668
1779
|
{
|
|
1669
|
-
"tag": "
|
|
1670
|
-
"className": "
|
|
1780
|
+
"tag": "kc-response-stream",
|
|
1781
|
+
"className": "KcResponseStreamElement",
|
|
1671
1782
|
"props": [
|
|
1672
1783
|
{
|
|
1673
1784
|
"name": "text",
|
|
@@ -1675,7 +1786,8 @@
|
|
|
1675
1786
|
"optional": true,
|
|
1676
1787
|
"scalar": false,
|
|
1677
1788
|
"description": "Text to stream. A string, or an `AsyncIterable<string>` (set as a JS property — async iterables can't be HTML attributes).",
|
|
1678
|
-
"default": "''"
|
|
1789
|
+
"default": "''",
|
|
1790
|
+
"displayType": "undefined | string | AsyncIterable<string>"
|
|
1679
1791
|
},
|
|
1680
1792
|
{
|
|
1681
1793
|
"name": "mode",
|
|
@@ -1683,7 +1795,8 @@
|
|
|
1683
1795
|
"optional": true,
|
|
1684
1796
|
"scalar": true,
|
|
1685
1797
|
"description": "Reveal animation.",
|
|
1686
|
-
"default": "'typewriter'"
|
|
1798
|
+
"default": "'typewriter'",
|
|
1799
|
+
"displayType": "undefined | \"typewriter\" | \"fade\""
|
|
1687
1800
|
},
|
|
1688
1801
|
{
|
|
1689
1802
|
"name": "speed",
|
|
@@ -1691,21 +1804,24 @@
|
|
|
1691
1804
|
"optional": true,
|
|
1692
1805
|
"scalar": true,
|
|
1693
1806
|
"description": "Characters/segments per tick.",
|
|
1694
|
-
"default": "20"
|
|
1807
|
+
"default": "20",
|
|
1808
|
+
"displayType": "undefined | number"
|
|
1695
1809
|
},
|
|
1696
1810
|
{
|
|
1697
1811
|
"name": "as",
|
|
1698
1812
|
"type": "undefined | string",
|
|
1699
1813
|
"optional": true,
|
|
1700
1814
|
"scalar": true,
|
|
1701
|
-
"description": "Element tag to render as."
|
|
1815
|
+
"description": "Element tag to render as.",
|
|
1816
|
+
"displayType": "undefined | string"
|
|
1702
1817
|
}
|
|
1703
1818
|
],
|
|
1704
1819
|
"events": [
|
|
1705
1820
|
{
|
|
1706
1821
|
"name": "complete",
|
|
1707
1822
|
"detail": null,
|
|
1708
|
-
"description": "Streaming finished."
|
|
1823
|
+
"description": "Streaming finished.",
|
|
1824
|
+
"displayDetail": null
|
|
1709
1825
|
}
|
|
1710
1826
|
],
|
|
1711
1827
|
"composedFrom": [
|
|
@@ -1718,8 +1834,81 @@
|
|
|
1718
1834
|
"tokens": []
|
|
1719
1835
|
},
|
|
1720
1836
|
{
|
|
1721
|
-
"tag": "
|
|
1722
|
-
"className": "
|
|
1837
|
+
"tag": "kc-scope-picker",
|
|
1838
|
+
"className": "KcScopePickerElement",
|
|
1839
|
+
"props": [
|
|
1840
|
+
{
|
|
1841
|
+
"name": "availableAuthors",
|
|
1842
|
+
"type": "string[]",
|
|
1843
|
+
"optional": false,
|
|
1844
|
+
"scalar": false,
|
|
1845
|
+
"description": "Authors to offer as scope filters. Set as a JS property.",
|
|
1846
|
+
"default": "[]",
|
|
1847
|
+
"displayType": "string[]"
|
|
1848
|
+
},
|
|
1849
|
+
{
|
|
1850
|
+
"name": "availableTags",
|
|
1851
|
+
"type": "string[]",
|
|
1852
|
+
"optional": false,
|
|
1853
|
+
"scalar": false,
|
|
1854
|
+
"description": "Tags to offer as scope filters. Set as a JS property.",
|
|
1855
|
+
"default": "[]",
|
|
1856
|
+
"displayType": "string[]"
|
|
1857
|
+
},
|
|
1858
|
+
{
|
|
1859
|
+
"name": "currentLabel",
|
|
1860
|
+
"type": "undefined | string",
|
|
1861
|
+
"optional": true,
|
|
1862
|
+
"scalar": true,
|
|
1863
|
+
"description": "The label shown on the trigger for the active scope.",
|
|
1864
|
+
"default": "'All Content'",
|
|
1865
|
+
"displayType": "undefined | string"
|
|
1866
|
+
}
|
|
1867
|
+
],
|
|
1868
|
+
"events": [
|
|
1869
|
+
{
|
|
1870
|
+
"name": "scopechange",
|
|
1871
|
+
"detail": "{ filters: undefined | { tags?: undefined | string[]; authors?: undefined | string[]; contentType?: undefined | \"transcript\" | \"markdown\"; dateRange?: undefined | { from: string; to: string } } }",
|
|
1872
|
+
"description": "A scope was chosen (`undefined` filters = \"All Content\").",
|
|
1873
|
+
"displayDetail": "{ filters: SearchFilters | undefined }"
|
|
1874
|
+
}
|
|
1875
|
+
],
|
|
1876
|
+
"composedFrom": [
|
|
1877
|
+
{
|
|
1878
|
+
"name": "ChatScopePicker",
|
|
1879
|
+
"group": "Components",
|
|
1880
|
+
"storyId": "components-chatscopepicker--docs"
|
|
1881
|
+
}
|
|
1882
|
+
],
|
|
1883
|
+
"tokens": []
|
|
1884
|
+
},
|
|
1885
|
+
{
|
|
1886
|
+
"tag": "kc-skills",
|
|
1887
|
+
"className": "KcSkillsElement",
|
|
1888
|
+
"props": [
|
|
1889
|
+
{
|
|
1890
|
+
"name": "skills",
|
|
1891
|
+
"type": "{ id: string; name: string }[]",
|
|
1892
|
+
"optional": false,
|
|
1893
|
+
"scalar": false,
|
|
1894
|
+
"description": "The active skills to badge. Set as a JS property.",
|
|
1895
|
+
"default": "[]",
|
|
1896
|
+
"displayType": "{ id: string; name: string }[]"
|
|
1897
|
+
}
|
|
1898
|
+
],
|
|
1899
|
+
"events": [],
|
|
1900
|
+
"composedFrom": [
|
|
1901
|
+
{
|
|
1902
|
+
"name": "MessageSkills",
|
|
1903
|
+
"group": "Components",
|
|
1904
|
+
"storyId": "components-messageskills--docs"
|
|
1905
|
+
}
|
|
1906
|
+
],
|
|
1907
|
+
"tokens": []
|
|
1908
|
+
},
|
|
1909
|
+
{
|
|
1910
|
+
"tag": "kc-source",
|
|
1911
|
+
"className": "KcSourceElement",
|
|
1723
1912
|
"props": [
|
|
1724
1913
|
{
|
|
1725
1914
|
"name": "href",
|
|
@@ -1727,14 +1916,16 @@
|
|
|
1727
1916
|
"optional": true,
|
|
1728
1917
|
"scalar": true,
|
|
1729
1918
|
"description": "The URL this citation links to (the domain also seeds the default label/favicon).",
|
|
1730
|
-
"default": "''"
|
|
1919
|
+
"default": "''",
|
|
1920
|
+
"displayType": "undefined | string"
|
|
1731
1921
|
},
|
|
1732
1922
|
{
|
|
1733
1923
|
"name": "label",
|
|
1734
1924
|
"type": "undefined | string",
|
|
1735
1925
|
"optional": true,
|
|
1736
1926
|
"scalar": true,
|
|
1737
|
-
"description": "Trigger label (defaults to the domain)."
|
|
1927
|
+
"description": "Trigger label (defaults to the domain).",
|
|
1928
|
+
"displayType": "undefined | string"
|
|
1738
1929
|
},
|
|
1739
1930
|
{
|
|
1740
1931
|
"name": "headline",
|
|
@@ -1742,7 +1933,8 @@
|
|
|
1742
1933
|
"optional": true,
|
|
1743
1934
|
"scalar": true,
|
|
1744
1935
|
"description": "Hover-card headline. Attribute: `headline` (`title` is avoided — it's a global HTML attribute that reflects in a CE constructor and breaks it).",
|
|
1745
|
-
"default": "''"
|
|
1936
|
+
"default": "''",
|
|
1937
|
+
"displayType": "undefined | string"
|
|
1746
1938
|
},
|
|
1747
1939
|
{
|
|
1748
1940
|
"name": "description",
|
|
@@ -1750,7 +1942,8 @@
|
|
|
1750
1942
|
"optional": true,
|
|
1751
1943
|
"scalar": true,
|
|
1752
1944
|
"description": "Hover-card body text describing the source.",
|
|
1753
|
-
"default": "''"
|
|
1945
|
+
"default": "''",
|
|
1946
|
+
"displayType": "undefined | string"
|
|
1754
1947
|
},
|
|
1755
1948
|
{
|
|
1756
1949
|
"name": "showFavicon",
|
|
@@ -1758,7 +1951,8 @@
|
|
|
1758
1951
|
"optional": true,
|
|
1759
1952
|
"scalar": true,
|
|
1760
1953
|
"description": "Show the source's favicon next to the trigger label.",
|
|
1761
|
-
"default": "false"
|
|
1954
|
+
"default": "false",
|
|
1955
|
+
"displayType": "undefined | false | true"
|
|
1762
1956
|
}
|
|
1763
1957
|
],
|
|
1764
1958
|
"events": [],
|
|
@@ -1787,8 +1981,8 @@
|
|
|
1787
1981
|
"tokens": []
|
|
1788
1982
|
},
|
|
1789
1983
|
{
|
|
1790
|
-
"tag": "
|
|
1791
|
-
"className": "
|
|
1984
|
+
"tag": "kc-sources",
|
|
1985
|
+
"className": "KcSourcesElement",
|
|
1792
1986
|
"props": [
|
|
1793
1987
|
{
|
|
1794
1988
|
"name": "sources",
|
|
@@ -1796,7 +1990,8 @@
|
|
|
1796
1990
|
"optional": false,
|
|
1797
1991
|
"scalar": false,
|
|
1798
1992
|
"description": "The sources to render. Set as a JS property.",
|
|
1799
|
-
"default": "[]"
|
|
1993
|
+
"default": "[]",
|
|
1994
|
+
"displayType": "SourceItem[]"
|
|
1800
1995
|
},
|
|
1801
1996
|
{
|
|
1802
1997
|
"name": "showFavicon",
|
|
@@ -1804,7 +1999,8 @@
|
|
|
1804
1999
|
"optional": true,
|
|
1805
2000
|
"scalar": true,
|
|
1806
2001
|
"description": "Show favicons on all items (per-item `showFavicon` overrides).",
|
|
1807
|
-
"default": "false"
|
|
2002
|
+
"default": "false",
|
|
2003
|
+
"displayType": "undefined | false | true"
|
|
1808
2004
|
}
|
|
1809
2005
|
],
|
|
1810
2006
|
"events": [],
|
|
@@ -1833,8 +2029,112 @@
|
|
|
1833
2029
|
"tokens": []
|
|
1834
2030
|
},
|
|
1835
2031
|
{
|
|
1836
|
-
"tag": "
|
|
1837
|
-
"className": "
|
|
2032
|
+
"tag": "kc-suggestions",
|
|
2033
|
+
"className": "KcSuggestionsElement",
|
|
2034
|
+
"props": [
|
|
2035
|
+
{
|
|
2036
|
+
"name": "suggestions",
|
|
2037
|
+
"type": "(string | { label: string; value?: undefined | string })[]",
|
|
2038
|
+
"optional": false,
|
|
2039
|
+
"scalar": false,
|
|
2040
|
+
"description": "The suggestions. Strings, or `{ label, value }` when the displayed text and the emitted value differ. Set as a JS property.",
|
|
2041
|
+
"default": "[]",
|
|
2042
|
+
"displayType": "(string | { label: string; value?: undefined | string })[]"
|
|
2043
|
+
},
|
|
2044
|
+
{
|
|
2045
|
+
"name": "variant",
|
|
2046
|
+
"type": "undefined | \"ghost\" | \"default\" | \"outline\"",
|
|
2047
|
+
"optional": true,
|
|
2048
|
+
"scalar": true,
|
|
2049
|
+
"description": "Chip style: `'outline'` (default), `'ghost'`, or `'default'` (filled).",
|
|
2050
|
+
"default": "'outline'",
|
|
2051
|
+
"displayType": "undefined | \"ghost\" | \"default\" | \"outline\""
|
|
2052
|
+
},
|
|
2053
|
+
{
|
|
2054
|
+
"name": "size",
|
|
2055
|
+
"type": "undefined | \"sm\" | \"lg\" | \"md\" | \"icon\" | \"icon-sm\"",
|
|
2056
|
+
"optional": true,
|
|
2057
|
+
"scalar": true,
|
|
2058
|
+
"description": "Size preset for each chip. Defaults to the pill default (`'lg'`); pass `'sm'` for smaller pills (or `'md'`).",
|
|
2059
|
+
"displayType": "undefined | \"sm\" | \"lg\" | \"md\" | \"icon\" | \"icon-sm\""
|
|
2060
|
+
},
|
|
2061
|
+
{
|
|
2062
|
+
"name": "block",
|
|
2063
|
+
"type": "undefined | false | true",
|
|
2064
|
+
"optional": true,
|
|
2065
|
+
"scalar": true,
|
|
2066
|
+
"description": "Full-width left-aligned rows instead of pills.",
|
|
2067
|
+
"default": "false",
|
|
2068
|
+
"displayType": "undefined | false | true"
|
|
2069
|
+
},
|
|
2070
|
+
{
|
|
2071
|
+
"name": "highlight",
|
|
2072
|
+
"type": "undefined | string",
|
|
2073
|
+
"optional": true,
|
|
2074
|
+
"scalar": true,
|
|
2075
|
+
"description": "Substring to highlight within each suggestion.",
|
|
2076
|
+
"displayType": "undefined | string"
|
|
2077
|
+
}
|
|
2078
|
+
],
|
|
2079
|
+
"events": [
|
|
2080
|
+
{
|
|
2081
|
+
"name": "select",
|
|
2082
|
+
"detail": "{ value: string }",
|
|
2083
|
+
"description": "A suggestion was clicked.",
|
|
2084
|
+
"displayDetail": "{ value: string }"
|
|
2085
|
+
}
|
|
2086
|
+
],
|
|
2087
|
+
"composedFrom": [
|
|
2088
|
+
{
|
|
2089
|
+
"name": "PromptSuggestion",
|
|
2090
|
+
"group": "Components",
|
|
2091
|
+
"storyId": "components-promptsuggestion--docs"
|
|
2092
|
+
}
|
|
2093
|
+
],
|
|
2094
|
+
"tokens": []
|
|
2095
|
+
},
|
|
2096
|
+
{
|
|
2097
|
+
"tag": "kc-task-list",
|
|
2098
|
+
"className": "KcTaskListElement",
|
|
2099
|
+
"props": [
|
|
2100
|
+
{
|
|
2101
|
+
"name": "data",
|
|
2102
|
+
"type": "undefined | Record<string, unknown>",
|
|
2103
|
+
"optional": true,
|
|
2104
|
+
"scalar": false,
|
|
2105
|
+
"description": "The task-list definition (the CardEnvelope.data). Set as a JS PROPERTY: `el.data = { tasks:[…], selectAll, confirmLabel, … }`. Import `TaskListCardData` from `@kitnai/chat` for the full shape.",
|
|
2106
|
+
"displayType": "undefined | Record<string, unknown>"
|
|
2107
|
+
},
|
|
2108
|
+
{
|
|
2109
|
+
"name": "cardId",
|
|
2110
|
+
"type": "undefined | string",
|
|
2111
|
+
"optional": true,
|
|
2112
|
+
"scalar": true,
|
|
2113
|
+
"description": "Stable card id correlating every emitted CardEvent. Attribute: `card-id`.",
|
|
2114
|
+
"displayType": "undefined | string"
|
|
2115
|
+
},
|
|
2116
|
+
{
|
|
2117
|
+
"name": "heading",
|
|
2118
|
+
"type": "undefined | string",
|
|
2119
|
+
"optional": true,
|
|
2120
|
+
"scalar": true,
|
|
2121
|
+
"description": "Heading rendered in the card chrome (= CardEnvelope.title). Attribute: `heading`.",
|
|
2122
|
+
"displayType": "undefined | string"
|
|
2123
|
+
}
|
|
2124
|
+
],
|
|
2125
|
+
"events": [],
|
|
2126
|
+
"composedFrom": [
|
|
2127
|
+
{
|
|
2128
|
+
"name": "TaskListCard",
|
|
2129
|
+
"group": "Components",
|
|
2130
|
+
"storyId": "components-tasklistcard--docs"
|
|
2131
|
+
}
|
|
2132
|
+
],
|
|
2133
|
+
"tokens": []
|
|
2134
|
+
},
|
|
2135
|
+
{
|
|
2136
|
+
"tag": "kc-text-shimmer",
|
|
2137
|
+
"className": "KcTextShimmerElement",
|
|
1838
2138
|
"props": [
|
|
1839
2139
|
{
|
|
1840
2140
|
"name": "text",
|
|
@@ -1842,7 +2142,8 @@
|
|
|
1842
2142
|
"optional": true,
|
|
1843
2143
|
"scalar": true,
|
|
1844
2144
|
"description": "The text to shimmer.",
|
|
1845
|
-
"default": "''"
|
|
2145
|
+
"default": "''",
|
|
2146
|
+
"displayType": "undefined | string"
|
|
1846
2147
|
},
|
|
1847
2148
|
{
|
|
1848
2149
|
"name": "as",
|
|
@@ -1850,7 +2151,8 @@
|
|
|
1850
2151
|
"optional": true,
|
|
1851
2152
|
"scalar": true,
|
|
1852
2153
|
"description": "Element tag to render as (default `span`).",
|
|
1853
|
-
"default": "'span'"
|
|
2154
|
+
"default": "'span'",
|
|
2155
|
+
"displayType": "undefined | string"
|
|
1854
2156
|
},
|
|
1855
2157
|
{
|
|
1856
2158
|
"name": "duration",
|
|
@@ -1858,7 +2160,8 @@
|
|
|
1858
2160
|
"optional": true,
|
|
1859
2161
|
"scalar": true,
|
|
1860
2162
|
"description": "Animation duration in seconds.",
|
|
1861
|
-
"default": "4"
|
|
2163
|
+
"default": "4",
|
|
2164
|
+
"displayType": "undefined | number"
|
|
1862
2165
|
},
|
|
1863
2166
|
{
|
|
1864
2167
|
"name": "spread",
|
|
@@ -1866,7 +2169,8 @@
|
|
|
1866
2169
|
"optional": true,
|
|
1867
2170
|
"scalar": true,
|
|
1868
2171
|
"description": "Gradient spread (5–45).",
|
|
1869
|
-
"default": "20"
|
|
2172
|
+
"default": "20",
|
|
2173
|
+
"displayType": "undefined | number"
|
|
1870
2174
|
}
|
|
1871
2175
|
],
|
|
1872
2176
|
"events": [],
|
|
@@ -1880,8 +2184,8 @@
|
|
|
1880
2184
|
"tokens": []
|
|
1881
2185
|
},
|
|
1882
2186
|
{
|
|
1883
|
-
"tag": "
|
|
1884
|
-
"className": "
|
|
2187
|
+
"tag": "kc-thinking-bar",
|
|
2188
|
+
"className": "KcThinkingBarElement",
|
|
1885
2189
|
"props": [
|
|
1886
2190
|
{
|
|
1887
2191
|
"name": "text",
|
|
@@ -1889,7 +2193,8 @@
|
|
|
1889
2193
|
"optional": true,
|
|
1890
2194
|
"scalar": true,
|
|
1891
2195
|
"description": "The shimmering label, e.g. \"Thinking…\".",
|
|
1892
|
-
"default": "'Thinking'"
|
|
2196
|
+
"default": "'Thinking'",
|
|
2197
|
+
"displayType": "undefined | string"
|
|
1893
2198
|
},
|
|
1894
2199
|
{
|
|
1895
2200
|
"name": "stoppable",
|
|
@@ -1897,7 +2202,8 @@
|
|
|
1897
2202
|
"optional": true,
|
|
1898
2203
|
"scalar": true,
|
|
1899
2204
|
"description": "When true, show a \"stop\" affordance that fires a `stop` event.",
|
|
1900
|
-
"default": "false"
|
|
2205
|
+
"default": "false",
|
|
2206
|
+
"displayType": "undefined | false | true"
|
|
1901
2207
|
},
|
|
1902
2208
|
{
|
|
1903
2209
|
"name": "stopLabel",
|
|
@@ -1905,14 +2211,16 @@
|
|
|
1905
2211
|
"optional": true,
|
|
1906
2212
|
"scalar": true,
|
|
1907
2213
|
"description": "Label for the stop affordance.",
|
|
1908
|
-
"default": "'Answer now'"
|
|
2214
|
+
"default": "'Answer now'",
|
|
2215
|
+
"displayType": "undefined | string"
|
|
1909
2216
|
}
|
|
1910
2217
|
],
|
|
1911
2218
|
"events": [
|
|
1912
2219
|
{
|
|
1913
2220
|
"name": "stop",
|
|
1914
2221
|
"detail": null,
|
|
1915
|
-
"description": "The \"stop / answer now\" affordance was clicked."
|
|
2222
|
+
"description": "The \"stop / answer now\" affordance was clicked.",
|
|
2223
|
+
"displayDetail": null
|
|
1916
2224
|
}
|
|
1917
2225
|
],
|
|
1918
2226
|
"composedFrom": [
|
|
@@ -1925,15 +2233,16 @@
|
|
|
1925
2233
|
"tokens": []
|
|
1926
2234
|
},
|
|
1927
2235
|
{
|
|
1928
|
-
"tag": "
|
|
1929
|
-
"className": "
|
|
2236
|
+
"tag": "kc-tool",
|
|
2237
|
+
"className": "KcToolElement",
|
|
1930
2238
|
"props": [
|
|
1931
2239
|
{
|
|
1932
2240
|
"name": "tool",
|
|
1933
2241
|
"type": "undefined | { type: string; state: \"input-streaming\" | \"input-available\" | \"output-available\" | \"output-error\"; input?: undefined | Record<string, unknown>; output?: undefined | Record<string, unknown>; toolCallId?: undefined | string; errorText?: undefined | string }",
|
|
1934
2242
|
"optional": true,
|
|
1935
2243
|
"scalar": false,
|
|
1936
|
-
"description": "The tool-call to display. Set as a JS property."
|
|
2244
|
+
"description": "The tool-call to display. Set as a JS property.",
|
|
2245
|
+
"displayType": "ToolPart | undefined"
|
|
1937
2246
|
},
|
|
1938
2247
|
{
|
|
1939
2248
|
"name": "open",
|
|
@@ -1941,7 +2250,8 @@
|
|
|
1941
2250
|
"optional": true,
|
|
1942
2251
|
"scalar": true,
|
|
1943
2252
|
"description": "Start expanded.",
|
|
1944
|
-
"default": "false"
|
|
2253
|
+
"default": "false",
|
|
2254
|
+
"displayType": "undefined | false | true"
|
|
1945
2255
|
}
|
|
1946
2256
|
],
|
|
1947
2257
|
"events": [],
|
|
@@ -1960,15 +2270,16 @@
|
|
|
1960
2270
|
]
|
|
1961
2271
|
},
|
|
1962
2272
|
{
|
|
1963
|
-
"tag": "
|
|
1964
|
-
"className": "
|
|
2273
|
+
"tag": "kc-voice-input",
|
|
2274
|
+
"className": "KcVoiceInputElement",
|
|
1965
2275
|
"props": [
|
|
1966
2276
|
{
|
|
1967
2277
|
"name": "transcribe",
|
|
1968
2278
|
"type": "undefined | (audio: Blob) => Promise<string>",
|
|
1969
2279
|
"optional": true,
|
|
1970
2280
|
"scalar": false,
|
|
1971
|
-
"description": "Transcriber the host supplies — records audio, returns the text. This is a **function-valued property** (`el.transcribe = async blob => '...'`) because a value-returning callback can't be modelled as a fire-and-forget event."
|
|
2281
|
+
"description": "Transcriber the host supplies — records audio, returns the text. This is a **function-valued property** (`el.transcribe = async blob => '...'`) because a value-returning callback can't be modelled as a fire-and-forget event.",
|
|
2282
|
+
"displayType": "undefined | (audio: Blob) => Promise<string>"
|
|
1972
2283
|
},
|
|
1973
2284
|
{
|
|
1974
2285
|
"name": "disabled",
|
|
@@ -1976,19 +2287,22 @@
|
|
|
1976
2287
|
"optional": true,
|
|
1977
2288
|
"scalar": true,
|
|
1978
2289
|
"description": "Disable the mic button (non-interactive).",
|
|
1979
|
-
"default": "false"
|
|
2290
|
+
"default": "false",
|
|
2291
|
+
"displayType": "undefined | false | true"
|
|
1980
2292
|
}
|
|
1981
2293
|
],
|
|
1982
2294
|
"events": [
|
|
1983
2295
|
{
|
|
1984
2296
|
"name": "audiocaptured",
|
|
1985
2297
|
"detail": "{ blob: Blob }",
|
|
1986
|
-
"description": "Raw audio captured (before transcription) — for hosts that prefer to handle transcription themselves instead of via the `transcribe` property."
|
|
2298
|
+
"description": "Raw audio captured (before transcription) — for hosts that prefer to handle transcription themselves instead of via the `transcribe` property.",
|
|
2299
|
+
"displayDetail": "{ blob: Blob }"
|
|
1987
2300
|
},
|
|
1988
2301
|
{
|
|
1989
2302
|
"name": "transcription",
|
|
1990
2303
|
"detail": "{ text: string }",
|
|
1991
|
-
"description": "Transcription completed (the `transcribe` property resolved)."
|
|
2304
|
+
"description": "Transcription completed (the `transcribe` property resolved).",
|
|
2305
|
+
"displayDetail": "{ text: string }"
|
|
1992
2306
|
}
|
|
1993
2307
|
],
|
|
1994
2308
|
"composedFrom": [
|
|
@@ -1999,5 +2313,337 @@
|
|
|
1999
2313
|
}
|
|
2000
2314
|
],
|
|
2001
2315
|
"tokens": []
|
|
2316
|
+
},
|
|
2317
|
+
{
|
|
2318
|
+
"tag": "kc-workspace",
|
|
2319
|
+
"className": "KcWorkspaceElement",
|
|
2320
|
+
"props": [
|
|
2321
|
+
{
|
|
2322
|
+
"name": "groups",
|
|
2323
|
+
"type": "{ id: string; userId?: undefined | string; teamId?: undefined | string; name: string; sortOrder: number; createdAt: string }[]",
|
|
2324
|
+
"optional": false,
|
|
2325
|
+
"scalar": false,
|
|
2326
|
+
"description": "Pre-bucketed conversation groups for the sidebar. Set as a JS property.",
|
|
2327
|
+
"default": "[]",
|
|
2328
|
+
"displayType": "ConversationGroup[]"
|
|
2329
|
+
},
|
|
2330
|
+
{
|
|
2331
|
+
"name": "conversations",
|
|
2332
|
+
"type": "{ id: string; title: string; groupId?: undefined | string; scope: { type: \"document\" | \"collection\"; documentId?: undefined | string; filters?: undefined | { tags?: undefined | string[]; authors?: undefined | string[]; contentType?: undefined | \"transcript\" | \"markdown\"; dateRange?: undefined | { from: string; to: string } } }; messageCount: number; lastMessageAt: string; updatedAt: string }[]",
|
|
2333
|
+
"optional": false,
|
|
2334
|
+
"scalar": false,
|
|
2335
|
+
"description": "Flat conversation list (auto-bucketed if `groups` is empty). Set as a JS property.",
|
|
2336
|
+
"default": "[]",
|
|
2337
|
+
"displayType": "ConversationSummary[]"
|
|
2338
|
+
},
|
|
2339
|
+
{
|
|
2340
|
+
"name": "activeId",
|
|
2341
|
+
"type": "undefined | string",
|
|
2342
|
+
"optional": true,
|
|
2343
|
+
"scalar": true,
|
|
2344
|
+
"description": "Id of the open conversation, highlighted in the sidebar.",
|
|
2345
|
+
"displayType": "undefined | string"
|
|
2346
|
+
},
|
|
2347
|
+
{
|
|
2348
|
+
"name": "messages",
|
|
2349
|
+
"type": "{ id: string; role: \"user\" | \"assistant\"; content: string; reasoning?: undefined | { text: string; label?: undefined | string }; tools?: undefined | { type: string; state: \"input-streaming\" | \"input-available\" | \"output-available\" | \"output-error\"; input?: undefined | Record<string, unknown>; output?: undefined | Record<string, unknown>; toolCallId?: undefined | string; errorText?: undefined | string }[]; attachments?: undefined | { id: string; type: \"file\" | \"source-document\"; filename?: undefined | string; mediaType?: undefined | string; url?: undefined | string; title?: undefined | string }[]; actions?: undefined | (\"copy\" | \"like\" | \"dislike\" | \"regenerate\" | \"edit\")[] }[]",
|
|
2350
|
+
"optional": false,
|
|
2351
|
+
"scalar": false,
|
|
2352
|
+
"description": "The active conversation's message thread, newest last. Set as a JS property.",
|
|
2353
|
+
"default": "[]",
|
|
2354
|
+
"displayType": "ChatMessage[]"
|
|
2355
|
+
},
|
|
2356
|
+
{
|
|
2357
|
+
"name": "value",
|
|
2358
|
+
"type": "undefined | string",
|
|
2359
|
+
"optional": true,
|
|
2360
|
+
"scalar": true,
|
|
2361
|
+
"description": "",
|
|
2362
|
+
"displayType": "undefined | string"
|
|
2363
|
+
},
|
|
2364
|
+
{
|
|
2365
|
+
"name": "placeholder",
|
|
2366
|
+
"type": "undefined | string",
|
|
2367
|
+
"optional": true,
|
|
2368
|
+
"scalar": true,
|
|
2369
|
+
"description": "",
|
|
2370
|
+
"default": "'Send a message...'",
|
|
2371
|
+
"displayType": "undefined | string"
|
|
2372
|
+
},
|
|
2373
|
+
{
|
|
2374
|
+
"name": "loading",
|
|
2375
|
+
"type": "undefined | false | true",
|
|
2376
|
+
"optional": true,
|
|
2377
|
+
"scalar": true,
|
|
2378
|
+
"description": "",
|
|
2379
|
+
"default": "false",
|
|
2380
|
+
"displayType": "undefined | false | true"
|
|
2381
|
+
},
|
|
2382
|
+
{
|
|
2383
|
+
"name": "suggestions",
|
|
2384
|
+
"type": "undefined | string[]",
|
|
2385
|
+
"optional": true,
|
|
2386
|
+
"scalar": false,
|
|
2387
|
+
"description": "",
|
|
2388
|
+
"displayType": "undefined | string[]"
|
|
2389
|
+
},
|
|
2390
|
+
{
|
|
2391
|
+
"name": "suggestionMode",
|
|
2392
|
+
"type": "undefined | \"submit\" | \"fill\"",
|
|
2393
|
+
"optional": true,
|
|
2394
|
+
"scalar": true,
|
|
2395
|
+
"description": "",
|
|
2396
|
+
"default": "'submit'",
|
|
2397
|
+
"displayType": "undefined | \"submit\" | \"fill\""
|
|
2398
|
+
},
|
|
2399
|
+
{
|
|
2400
|
+
"name": "proseSize",
|
|
2401
|
+
"type": "undefined | \"xs\" | \"sm\" | \"base\" | \"lg\"",
|
|
2402
|
+
"optional": true,
|
|
2403
|
+
"scalar": true,
|
|
2404
|
+
"description": "",
|
|
2405
|
+
"default": "'sm'",
|
|
2406
|
+
"displayType": "undefined | \"xs\" | \"sm\" | \"base\" | \"lg\""
|
|
2407
|
+
},
|
|
2408
|
+
{
|
|
2409
|
+
"name": "codeTheme",
|
|
2410
|
+
"type": "undefined | string",
|
|
2411
|
+
"optional": true,
|
|
2412
|
+
"scalar": true,
|
|
2413
|
+
"description": "",
|
|
2414
|
+
"default": "'github-dark-dimmed'",
|
|
2415
|
+
"displayType": "undefined | string"
|
|
2416
|
+
},
|
|
2417
|
+
{
|
|
2418
|
+
"name": "codeHighlight",
|
|
2419
|
+
"type": "undefined | false | true",
|
|
2420
|
+
"optional": true,
|
|
2421
|
+
"scalar": true,
|
|
2422
|
+
"description": "",
|
|
2423
|
+
"default": "true",
|
|
2424
|
+
"displayType": "undefined | false | true"
|
|
2425
|
+
},
|
|
2426
|
+
{
|
|
2427
|
+
"name": "chatTitle",
|
|
2428
|
+
"type": "undefined | string",
|
|
2429
|
+
"optional": true,
|
|
2430
|
+
"scalar": true,
|
|
2431
|
+
"description": "",
|
|
2432
|
+
"displayType": "undefined | string"
|
|
2433
|
+
},
|
|
2434
|
+
{
|
|
2435
|
+
"name": "models",
|
|
2436
|
+
"type": "undefined | { id: string; name: string; provider?: undefined | string }[]",
|
|
2437
|
+
"optional": true,
|
|
2438
|
+
"scalar": false,
|
|
2439
|
+
"description": "",
|
|
2440
|
+
"displayType": "ModelOption[] | undefined"
|
|
2441
|
+
},
|
|
2442
|
+
{
|
|
2443
|
+
"name": "currentModel",
|
|
2444
|
+
"type": "undefined | string",
|
|
2445
|
+
"optional": true,
|
|
2446
|
+
"scalar": true,
|
|
2447
|
+
"description": "",
|
|
2448
|
+
"displayType": "undefined | string"
|
|
2449
|
+
},
|
|
2450
|
+
{
|
|
2451
|
+
"name": "context",
|
|
2452
|
+
"type": "undefined | { usedTokens: number; maxTokens: number; inputTokens?: undefined | number; outputTokens?: undefined | number; estimatedCost?: undefined | number }",
|
|
2453
|
+
"optional": true,
|
|
2454
|
+
"scalar": false,
|
|
2455
|
+
"description": "",
|
|
2456
|
+
"displayType": "ContextData | undefined"
|
|
2457
|
+
},
|
|
2458
|
+
{
|
|
2459
|
+
"name": "scrollButton",
|
|
2460
|
+
"type": "undefined | false | true",
|
|
2461
|
+
"optional": true,
|
|
2462
|
+
"scalar": true,
|
|
2463
|
+
"description": "",
|
|
2464
|
+
"default": "true",
|
|
2465
|
+
"displayType": "undefined | false | true"
|
|
2466
|
+
},
|
|
2467
|
+
{
|
|
2468
|
+
"name": "search",
|
|
2469
|
+
"type": "undefined | false | true",
|
|
2470
|
+
"optional": true,
|
|
2471
|
+
"scalar": true,
|
|
2472
|
+
"description": "",
|
|
2473
|
+
"default": "false",
|
|
2474
|
+
"displayType": "undefined | false | true"
|
|
2475
|
+
},
|
|
2476
|
+
{
|
|
2477
|
+
"name": "voice",
|
|
2478
|
+
"type": "undefined | false | true",
|
|
2479
|
+
"optional": true,
|
|
2480
|
+
"scalar": true,
|
|
2481
|
+
"description": "",
|
|
2482
|
+
"default": "false",
|
|
2483
|
+
"displayType": "undefined | false | true"
|
|
2484
|
+
},
|
|
2485
|
+
{
|
|
2486
|
+
"name": "slashCommands",
|
|
2487
|
+
"type": "undefined | { id: string; label: string; description?: undefined | string; category?: undefined | string }[]",
|
|
2488
|
+
"optional": true,
|
|
2489
|
+
"scalar": false,
|
|
2490
|
+
"description": "",
|
|
2491
|
+
"displayType": "SlashCommandItem[] | undefined"
|
|
2492
|
+
},
|
|
2493
|
+
{
|
|
2494
|
+
"name": "slashActiveIds",
|
|
2495
|
+
"type": "undefined | string[]",
|
|
2496
|
+
"optional": true,
|
|
2497
|
+
"scalar": false,
|
|
2498
|
+
"description": "",
|
|
2499
|
+
"displayType": "undefined | string[]"
|
|
2500
|
+
},
|
|
2501
|
+
{
|
|
2502
|
+
"name": "slashCompact",
|
|
2503
|
+
"type": "undefined | false | true",
|
|
2504
|
+
"optional": true,
|
|
2505
|
+
"scalar": true,
|
|
2506
|
+
"description": "",
|
|
2507
|
+
"default": "false",
|
|
2508
|
+
"displayType": "undefined | false | true"
|
|
2509
|
+
},
|
|
2510
|
+
{
|
|
2511
|
+
"name": "sidebarWidth",
|
|
2512
|
+
"type": "undefined | number",
|
|
2513
|
+
"optional": true,
|
|
2514
|
+
"scalar": true,
|
|
2515
|
+
"description": "Sidebar default width as a percent of the workspace (default 22).",
|
|
2516
|
+
"default": "22",
|
|
2517
|
+
"displayType": "undefined | number"
|
|
2518
|
+
},
|
|
2519
|
+
{
|
|
2520
|
+
"name": "sidebarMinWidth",
|
|
2521
|
+
"type": "undefined | number",
|
|
2522
|
+
"optional": true,
|
|
2523
|
+
"scalar": true,
|
|
2524
|
+
"description": "Sidebar min width in px (default 200).",
|
|
2525
|
+
"default": "200",
|
|
2526
|
+
"displayType": "undefined | number"
|
|
2527
|
+
},
|
|
2528
|
+
{
|
|
2529
|
+
"name": "sidebarMaxWidth",
|
|
2530
|
+
"type": "undefined | number",
|
|
2531
|
+
"optional": true,
|
|
2532
|
+
"scalar": true,
|
|
2533
|
+
"description": "Sidebar max width in px (default 420).",
|
|
2534
|
+
"default": "420",
|
|
2535
|
+
"displayType": "undefined | number"
|
|
2536
|
+
},
|
|
2537
|
+
{
|
|
2538
|
+
"name": "sidebarCollapsed",
|
|
2539
|
+
"type": "undefined | false | true",
|
|
2540
|
+
"optional": true,
|
|
2541
|
+
"scalar": true,
|
|
2542
|
+
"description": "Initial collapsed state of the sidebar (default false).",
|
|
2543
|
+
"default": "false",
|
|
2544
|
+
"displayType": "undefined | false | true"
|
|
2545
|
+
}
|
|
2546
|
+
],
|
|
2547
|
+
"events": [
|
|
2548
|
+
{
|
|
2549
|
+
"name": "conversationselect",
|
|
2550
|
+
"detail": "{ id: string }",
|
|
2551
|
+
"description": "A conversation was selected in the sidebar.",
|
|
2552
|
+
"displayDetail": "{ id: string }"
|
|
2553
|
+
},
|
|
2554
|
+
{
|
|
2555
|
+
"name": "messageaction",
|
|
2556
|
+
"detail": "{ messageId: string; action: \"copy\" | \"like\" | \"dislike\" | \"regenerate\" | \"edit\" }",
|
|
2557
|
+
"description": "An action button on a message was clicked.",
|
|
2558
|
+
"displayDetail": "{ messageId: string; action: ChatMessageAction }"
|
|
2559
|
+
},
|
|
2560
|
+
{
|
|
2561
|
+
"name": "modelchange",
|
|
2562
|
+
"detail": "{ modelId: string }",
|
|
2563
|
+
"description": "The header model switcher changed.",
|
|
2564
|
+
"displayDetail": "{ modelId: string }"
|
|
2565
|
+
},
|
|
2566
|
+
{
|
|
2567
|
+
"name": "newchat",
|
|
2568
|
+
"detail": "Record<string, never>",
|
|
2569
|
+
"description": "The \"New chat\" button was clicked.",
|
|
2570
|
+
"displayDetail": "Record<string, never>"
|
|
2571
|
+
},
|
|
2572
|
+
{
|
|
2573
|
+
"name": "search",
|
|
2574
|
+
"detail": "Record<string, never>",
|
|
2575
|
+
"description": "The Search button was clicked.",
|
|
2576
|
+
"displayDetail": "Record<string, never>"
|
|
2577
|
+
},
|
|
2578
|
+
{
|
|
2579
|
+
"name": "sidebartoggle",
|
|
2580
|
+
"detail": "{ collapsed: false | true }",
|
|
2581
|
+
"description": "The sidebar was collapsed or expanded.",
|
|
2582
|
+
"displayDetail": "{ collapsed: false | true }"
|
|
2583
|
+
},
|
|
2584
|
+
{
|
|
2585
|
+
"name": "slashselect",
|
|
2586
|
+
"detail": "{ command: { id: string; label: string; description?: undefined | string; category?: undefined | string } }",
|
|
2587
|
+
"description": "A slash command was chosen from the palette.",
|
|
2588
|
+
"displayDetail": "{ command: SlashCommandItem }"
|
|
2589
|
+
},
|
|
2590
|
+
{
|
|
2591
|
+
"name": "submit",
|
|
2592
|
+
"detail": "{ value: string; attachments: { id: string; type: \"file\" | \"source-document\"; filename?: undefined | string; mediaType?: undefined | string; url?: undefined | string; title?: undefined | string }[] }",
|
|
2593
|
+
"description": "User submitted a message.",
|
|
2594
|
+
"displayDetail": "{ value: string; attachments: AttachmentData[] }"
|
|
2595
|
+
},
|
|
2596
|
+
{
|
|
2597
|
+
"name": "suggestionclick",
|
|
2598
|
+
"detail": "{ value: string }",
|
|
2599
|
+
"description": "A suggestion chip was clicked (only in `suggestion-mode=\"fill\"`).",
|
|
2600
|
+
"displayDetail": "{ value: string }"
|
|
2601
|
+
},
|
|
2602
|
+
{
|
|
2603
|
+
"name": "valuechange",
|
|
2604
|
+
"detail": "{ value: string }",
|
|
2605
|
+
"description": "Fired on every input change.",
|
|
2606
|
+
"displayDetail": "{ value: string }"
|
|
2607
|
+
},
|
|
2608
|
+
{
|
|
2609
|
+
"name": "voice",
|
|
2610
|
+
"detail": "Record<string, never>",
|
|
2611
|
+
"description": "The Mic / voice button was clicked.",
|
|
2612
|
+
"displayDetail": "Record<string, never>"
|
|
2613
|
+
}
|
|
2614
|
+
],
|
|
2615
|
+
"composedFrom": [
|
|
2616
|
+
{
|
|
2617
|
+
"name": "ChatThread",
|
|
2618
|
+
"group": "Components",
|
|
2619
|
+
"storyId": "components-chatthread--docs"
|
|
2620
|
+
},
|
|
2621
|
+
{
|
|
2622
|
+
"name": "ConversationList",
|
|
2623
|
+
"group": "Components",
|
|
2624
|
+
"storyId": "components-conversationlist--docs"
|
|
2625
|
+
},
|
|
2626
|
+
{
|
|
2627
|
+
"name": "ResizablePanelGroup",
|
|
2628
|
+
"group": "UI",
|
|
2629
|
+
"storyId": "ui-resizablepanelgroup--docs"
|
|
2630
|
+
},
|
|
2631
|
+
{
|
|
2632
|
+
"name": "ResizablePanel",
|
|
2633
|
+
"group": "UI",
|
|
2634
|
+
"storyId": "ui-resizablepanel--docs"
|
|
2635
|
+
},
|
|
2636
|
+
{
|
|
2637
|
+
"name": "ResizableHandle",
|
|
2638
|
+
"group": "UI",
|
|
2639
|
+
"storyId": "ui-resizablehandle--docs"
|
|
2640
|
+
},
|
|
2641
|
+
{
|
|
2642
|
+
"name": "Button",
|
|
2643
|
+
"group": "UI",
|
|
2644
|
+
"storyId": "ui-button--docs"
|
|
2645
|
+
}
|
|
2646
|
+
],
|
|
2647
|
+
"tokens": []
|
|
2002
2648
|
}
|
|
2003
2649
|
]
|