@commercetools/nimbus-mcp 3.2.0 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -1
- package/data/docs/route-manifest.json +806 -41
- package/data/docs/routes/components-buttons-button.json +25 -2
- package/data/docs/routes/components-chat-chat-message-list.json +448 -0
- package/data/docs/routes/components-chat-chat-message.json +580 -0
- package/data/docs/routes/components-content-markdown.json +548 -0
- package/data/docs/routes/components-feedback-activity-indicator.json +396 -0
- package/data/docs/routes/components-feedback-tooltip.json +23 -1
- package/data/docs/routes/components-inputs-drop-zone.json +562 -0
- package/data/docs/routes/components-inputs-file-trigger.json +421 -0
- package/data/docs/routes/components-layout-splitter.json +3 -3
- package/data/docs/routes/components-media-avatar.json +16 -5
- package/data/docs/routes/components-navigation-menu.json +1 -1
- package/data/docs/routes/components-navigation-tabnav.json +80 -14
- package/data/docs/routes/components-navigation-tabs.json +44 -11
- package/data/docs/routes/components-navigation-tree.json +445 -0
- package/data/docs/routes/home-getting-started-mcp-server-overview.json +2 -2
- package/data/docs/routes/home-getting-started-mcp-server-setup.json +2 -2
- package/data/docs/routes/patterns-buttons-floating-action-button.json +392 -0
- package/data/docs/routes/patterns-buttons.json +58 -0
- package/data/docs/search-index.json +1 -1
- package/data/docs/types/AccordionContent.json +24 -24
- package/data/docs/types/AccordionHeader.json +88 -88
- package/data/docs/types/AccordionItem.json +20 -20
- package/data/docs/types/AccordionRoot.json +14 -14
- package/data/docs/types/ActivityIndicator.json +202 -0
- package/data/docs/types/AlertDescription.json +8 -8
- package/data/docs/types/AlertDismissButton.json +98 -81
- package/data/docs/types/AlertTitle.json +8 -8
- package/data/docs/types/Avatar.json +19 -2
- package/data/docs/types/Badge.json +2 -2
- package/data/docs/types/Body.json +6 -6
- package/data/docs/types/Box.json +6 -6
- package/data/docs/types/Button.json +106 -89
- package/data/docs/types/Calendar.json +56 -56
- package/data/docs/types/Caption.json +6 -6
- package/data/docs/types/CardRoot.json +2 -2
- package/data/docs/types/Cell.json +6 -6
- package/data/docs/types/ChatMessage.json +12 -0
- package/data/docs/types/ChatMessageActions.json +42 -0
- package/data/docs/types/ChatMessageAvatar.json +140 -0
- package/data/docs/types/ChatMessageBody.json +42 -0
- package/data/docs/types/ChatMessageList.json +12 -0
- package/data/docs/types/ChatMessageListItem.json +42 -0
- package/data/docs/types/ChatMessageListRoot.json +78 -0
- package/data/docs/types/ChatMessageMeta.json +42 -0
- package/data/docs/types/ChatMessageRoot.json +119 -0
- package/data/docs/types/ChatMessageTyping.json +42 -0
- package/data/docs/types/Checkbox.json +86 -86
- package/data/docs/types/Code.json +11 -11
- package/data/docs/types/Column.json +6 -6
- package/data/docs/types/ColumnGroup.json +6 -6
- package/data/docs/types/ColumnHeader.json +6 -6
- package/data/docs/types/ComboBoxListBox.json +70 -70
- package/data/docs/types/ComboBoxOption.json +64 -64
- package/data/docs/types/ComboBoxPopover.json +91 -70
- package/data/docs/types/ComboBoxRoot.json +8 -8
- package/data/docs/types/ComboBoxSection.json +24 -24
- package/data/docs/types/ComboBoxTrigger.json +6 -6
- package/data/docs/types/DataTable.json +2 -2
- package/data/docs/types/DataTableBody.json +20 -20
- package/data/docs/types/DataTableHeader.json +25 -25
- package/data/docs/types/DataTableRoot.json +2 -2
- package/data/docs/types/DataTableTable.json +6 -6
- package/data/docs/types/DateInput.json +73 -73
- package/data/docs/types/DatePicker.json +58 -58
- package/data/docs/types/DateRangePicker.json +86 -86
- package/data/docs/types/DateRangePickerField.json +86 -86
- package/data/docs/types/DefaultPageRoot.json +2 -2
- package/data/docs/types/DialogCloseTrigger.json +96 -79
- package/data/docs/types/DraggableListField.json +88 -60
- package/data/docs/types/DraggableListItem.json +52 -52
- package/data/docs/types/DraggableListRoot.json +88 -60
- package/data/docs/types/DrawerCloseTrigger.json +96 -79
- package/data/docs/types/DropZone.json +161 -0
- package/data/docs/types/FieldErrors.json +2 -2
- package/data/docs/types/FileTrigger.json +130 -0
- package/data/docs/types/Flex.json +22 -22
- package/data/docs/types/FloatingActionButton.json +1036 -0
- package/data/docs/types/Footer.json +6 -6
- package/data/docs/types/FormActionBar.json +1 -1
- package/data/docs/types/FormFieldRoot.json +2 -2
- package/data/docs/types/Grid.json +24 -24
- package/data/docs/types/Group.json +12 -12
- package/data/docs/types/Header.json +6 -6
- package/data/docs/types/Heading.json +8 -8
- package/data/docs/types/Icon.json +4 -4
- package/data/docs/types/IconButton.json +106 -89
- package/data/docs/types/IconToggleButton.json +71 -71
- package/data/docs/types/Image.json +43 -43
- package/data/docs/types/Indicator.json +6 -6
- package/data/docs/types/InlineSvg.json +2 -2
- package/data/docs/types/Item.json +6 -6
- package/data/docs/types/Kbd.json +8 -8
- package/data/docs/types/Link.json +14 -14
- package/data/docs/types/ListIndicator.json +6 -6
- package/data/docs/types/ListItem.json +6 -6
- package/data/docs/types/ListRoot.json +11 -11
- package/data/docs/types/LoadingSpinner.json +2 -2
- package/data/docs/types/MakeElementFocusable.json +18 -18
- package/data/docs/types/Markdown.json +183 -0
- package/data/docs/types/MenuItem.json +62 -62
- package/data/docs/types/MenuRoot.json +55 -55
- package/data/docs/types/MenuSection.json +30 -30
- package/data/docs/types/MenuSubmenuTrigger.json +4 -4
- package/data/docs/types/MenuTrigger.json +88 -88
- package/data/docs/types/MultilineTextInput.json +104 -104
- package/data/docs/types/MultilineTextInputField.json +102 -102
- package/data/docs/types/NumberInput.json +86 -86
- package/data/docs/types/NumberInputField.json +82 -82
- package/data/docs/types/PageContentColumn.json +6 -6
- package/data/docs/types/PageContentRoot.json +6 -6
- package/data/docs/types/PasswordInput.json +100 -100
- package/data/docs/types/PasswordInputField.json +100 -100
- package/data/docs/types/ProgressBar.json +13 -13
- package/data/docs/types/RadioInputOption.json +56 -56
- package/data/docs/types/RadioInputRoot.json +48 -48
- package/data/docs/types/RangeCalendar.json +58 -58
- package/data/docs/types/Region.json +6 -6
- package/data/docs/types/RegionTarget.json +6 -6
- package/data/docs/types/RichTextInput.json +2 -2
- package/data/docs/types/Root.json +11 -11
- package/data/docs/types/Row.json +6 -6
- package/data/docs/types/ScrollArea.json +2 -2
- package/data/docs/types/SearchInput.json +106 -106
- package/data/docs/types/SearchInputField.json +102 -102
- package/data/docs/types/SelectOption.json +54 -54
- package/data/docs/types/SelectOptionGroup.json +18 -18
- package/data/docs/types/SelectOptions.json +64 -64
- package/data/docs/types/SelectRoot.json +92 -92
- package/data/docs/types/Separator.json +4 -4
- package/data/docs/types/SimpleGrid.json +28 -28
- package/data/docs/types/SlidingIndicatorGeometry.json +9 -0
- package/data/docs/types/SlidingIndicatorRects.json +9 -0
- package/data/docs/types/SplitButton.json +16 -20
- package/data/docs/types/Stack.json +2 -2
- package/data/docs/types/StepsRoot.json +2 -2
- package/data/docs/types/Switch.json +34 -34
- package/data/docs/types/TabNavItem.json +5 -5
- package/data/docs/types/TabNavRoot.json +5 -5
- package/data/docs/types/TableBody.json +6 -6
- package/data/docs/types/TableCaption.json +6 -6
- package/data/docs/types/TableCell.json +6 -6
- package/data/docs/types/TableColumn.json +6 -6
- package/data/docs/types/TableColumnGroup.json +6 -6
- package/data/docs/types/TableColumnHeader.json +6 -6
- package/data/docs/types/TableFooter.json +6 -6
- package/data/docs/types/TableHeader.json +6 -6
- package/data/docs/types/TableRoot.json +19 -19
- package/data/docs/types/TableRow.json +6 -6
- package/data/docs/types/TableScrollArea.json +6 -6
- package/data/docs/types/TabsList.json +2 -2
- package/data/docs/types/TabsPanel.json +2 -2
- package/data/docs/types/TabsPanels.json +2 -2
- package/data/docs/types/TabsRoot.json +3 -3
- package/data/docs/types/TabsTab.json +2 -2
- package/data/docs/types/TagGroupRoot.json +24 -24
- package/data/docs/types/TagGroupTag.json +56 -56
- package/data/docs/types/TagGroupTagList.json +14 -14
- package/data/docs/types/Text.json +8 -8
- package/data/docs/types/TextInput.json +102 -102
- package/data/docs/types/TextInputField.json +100 -100
- package/data/docs/types/TimeInput.json +68 -68
- package/data/docs/types/ToggleButton.json +73 -73
- package/data/docs/types/ToggleButtonGroupButton.json +30 -30
- package/data/docs/types/ToggleButtonGroupRoot.json +20 -20
- package/data/docs/types/Toolbar.json +9 -9
- package/data/docs/types/TooltipContent.json +28 -28
- package/data/docs/types/TooltipRoot.json +16 -16
- package/data/docs/types/Tree.json +12 -0
- package/data/docs/types/TreeIndicator.json +828 -0
- package/data/docs/types/TreeItem.json +559 -0
- package/data/docs/types/TreeItemContent.json +27 -0
- package/data/docs/types/TreeRoot.json +636 -0
- package/data/docs/types/TreeSubTree.json +40 -0
- package/data/docs/types/VisuallyHidden.json +6 -6
- package/data/docs/types/createItemsFromCsvDrop.json +4 -4
- package/data/docs/types/createItemsFromDirectoryDrop.json +4 -4
- package/data/docs/types/createItemsFromFileDrop.json +4 -4
- package/data/docs/types/createItemsFromImageDrop.json +4 -4
- package/data/docs/types/createItemsFromJsonDrop.json +4 -4
- package/data/docs/types/manifest.json +25 -0
- package/data/docs/types/useRegion.json +2 -2
- package/data/docs/types/useSlidingIndicator.json +145 -0
- package/data/docs/types/useTree.json +267 -0
- package/data/tokens.json +21 -0
- package/data/uikit-tokens.json +894 -0
- package/dist/index.js +3298 -109
- package/package.json +8 -6
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tags": {
|
|
3
|
+
"supportsStyleProps": ""
|
|
4
|
+
},
|
|
5
|
+
"filePath": "/home/runner/work/nimbus/nimbus/packages/nimbus/src/index.ts",
|
|
6
|
+
"description": "ChatMessage.Avatar - The sender's avatar.\n\nWraps the Nimbus `Avatar` (defaulting to `size=\"xs\"`, a 32px box per the\nFigma spec). Unless the consumer sets `variant` explicitly, the variant\ndefaults per `sender`: `solid` for the `agent` (a strong branded glyph) and\n`subtle` for the `user` (a softer surface that matches the user body's tint).\nThe color *palette* comes from the ChatMessage recipe (`primary`), so\nconsumers only supply the avatar content (initials via `firstName`/\n`lastName`, an image `src`, or a custom icon via `children`).\n\nAn **unconfigured** avatar (no content supplied) falls back to a\nsender-appropriate generic glyph: the AI `AutoAwesome` sparkle for the\n`agent`, and the `Avatar`'s built-in person icon for the `user`.\n\nProps flow to the **inner `Avatar`**, not to the grid-cell wrapper — the\nwrapper only exists to occupy the avatar column.\n\nAccessibility: the avatar is **decorative by default** (`aria-hidden`). A\nsender glyph duplicates information better conveyed by the message's\naccessible name and column, and a nameless `Avatar` would otherwise announce\na misleading generic label. Passing `firstName`/`lastName` or an explicit\n`aria-label` opts it back into the accessibility tree with a real name.",
|
|
7
|
+
"displayName": "ChatMessageAvatar",
|
|
8
|
+
"methods": [],
|
|
9
|
+
"props": {
|
|
10
|
+
"size": {
|
|
11
|
+
"defaultValue": {
|
|
12
|
+
"value": "xs"
|
|
13
|
+
},
|
|
14
|
+
"description": "Size variant of the avatar",
|
|
15
|
+
"name": "size",
|
|
16
|
+
"declarations": [
|
|
17
|
+
{
|
|
18
|
+
"fileName": "nimbus/packages/nimbus/src/components/avatar/avatar.types.ts",
|
|
19
|
+
"name": "TypeLiteral"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"required": false,
|
|
23
|
+
"type": {
|
|
24
|
+
"name": "ConditionalValue<\"md\" | \"2xs\" | \"xs\">"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"variant": {
|
|
28
|
+
"defaultValue": {
|
|
29
|
+
"value": "\"subtle\""
|
|
30
|
+
},
|
|
31
|
+
"description": "Visual style variant of the avatar",
|
|
32
|
+
"name": "variant",
|
|
33
|
+
"declarations": [
|
|
34
|
+
{
|
|
35
|
+
"fileName": "nimbus/packages/nimbus/src/components/avatar/avatar.types.ts",
|
|
36
|
+
"name": "TypeLiteral"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"required": false,
|
|
40
|
+
"type": {
|
|
41
|
+
"name": "ConditionalValue<\"solid\" | \"subtle\">"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"unstyled": {
|
|
45
|
+
"defaultValue": null,
|
|
46
|
+
"description": "If `true`, the element will opt out of the theme styles.",
|
|
47
|
+
"name": "unstyled",
|
|
48
|
+
"parent": {
|
|
49
|
+
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.1_@emotion+react@11.14.0_@types+react@19.2.17_react@19.2.0__react_481d5ee5504b18c9383bebdcb4b66737/node_modules/@chakra-ui/react/dist/types/styled-system/factory.types.d.ts",
|
|
50
|
+
"name": "UnstyledProp"
|
|
51
|
+
},
|
|
52
|
+
"declarations": [
|
|
53
|
+
{
|
|
54
|
+
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.1_@emotion+react@11.14.0_@types+react@19.2.17_react@19.2.0__react_481d5ee5504b18c9383bebdcb4b66737/node_modules/@chakra-ui/react/dist/types/styled-system/factory.types.d.ts",
|
|
55
|
+
"name": "UnstyledProp"
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"required": false,
|
|
59
|
+
"type": {
|
|
60
|
+
"name": "boolean"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"firstName": {
|
|
64
|
+
"defaultValue": null,
|
|
65
|
+
"description": "First name used to generate initials. Optional — empty,\nwhitespace-only, or omitted values are handled gracefully and the\ncomponent falls back to `lastName` (if usable) or to the `Person`\nicon when neither name yields a usable character.",
|
|
66
|
+
"name": "firstName",
|
|
67
|
+
"declarations": [
|
|
68
|
+
{
|
|
69
|
+
"fileName": "nimbus/packages/nimbus/src/components/avatar/avatar.types.ts",
|
|
70
|
+
"name": "TypeLiteral"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"required": false,
|
|
74
|
+
"type": {
|
|
75
|
+
"name": "string"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"lastName": {
|
|
79
|
+
"defaultValue": null,
|
|
80
|
+
"description": "Last name used to generate initials. Optional — empty,\nwhitespace-only, or omitted values are handled gracefully and the\ncomponent falls back to `firstName` (if usable) or to the `Person`\nicon when neither name yields a usable character.",
|
|
81
|
+
"name": "lastName",
|
|
82
|
+
"declarations": [
|
|
83
|
+
{
|
|
84
|
+
"fileName": "nimbus/packages/nimbus/src/components/avatar/avatar.types.ts",
|
|
85
|
+
"name": "TypeLiteral"
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"required": false,
|
|
89
|
+
"type": {
|
|
90
|
+
"name": "string"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"src": {
|
|
94
|
+
"defaultValue": null,
|
|
95
|
+
"description": "Image source URL for the avatar",
|
|
96
|
+
"name": "src",
|
|
97
|
+
"declarations": [
|
|
98
|
+
{
|
|
99
|
+
"fileName": "nimbus/packages/nimbus/src/components/avatar/avatar.types.ts",
|
|
100
|
+
"name": "TypeLiteral"
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"required": false,
|
|
104
|
+
"type": {
|
|
105
|
+
"name": "string"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"alt": {
|
|
109
|
+
"defaultValue": null,
|
|
110
|
+
"description": "Alternative text for the avatar image",
|
|
111
|
+
"name": "alt",
|
|
112
|
+
"declarations": [
|
|
113
|
+
{
|
|
114
|
+
"fileName": "nimbus/packages/nimbus/src/components/avatar/avatar.types.ts",
|
|
115
|
+
"name": "TypeLiteral"
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
"required": false,
|
|
119
|
+
"type": {
|
|
120
|
+
"name": "string"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"ref": {
|
|
124
|
+
"defaultValue": null,
|
|
125
|
+
"description": "Ref forwarding to the root element",
|
|
126
|
+
"name": "ref",
|
|
127
|
+
"declarations": [
|
|
128
|
+
{
|
|
129
|
+
"fileName": "nimbus/packages/nimbus/src/components/avatar/avatar.types.ts",
|
|
130
|
+
"name": "TypeLiteral"
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"required": false,
|
|
134
|
+
"type": {
|
|
135
|
+
"name": "Ref<HTMLDivElement>"
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"supportsStyleProps": true
|
|
140
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tags": {
|
|
3
|
+
"supportsStyleProps": ""
|
|
4
|
+
},
|
|
5
|
+
"filePath": "/home/runner/work/nimbus/nimbus/packages/nimbus/src/index.ts",
|
|
6
|
+
"description": "ChatMessage.Body - The rounded card that holds the message payload.\n\nStacks its children vertically; place `ChatMessage.Actions` as the last child\nto pin action buttons to the bottom of the body. Background, padding,\nborder-radius and max-width are set per `sender` by the recipe.",
|
|
7
|
+
"displayName": "ChatMessageBody",
|
|
8
|
+
"methods": [],
|
|
9
|
+
"props": {
|
|
10
|
+
"as": {
|
|
11
|
+
"defaultValue": null,
|
|
12
|
+
"description": "Override the rendered element (e.g. `as=\"section\"`). Defaults to a `div`.",
|
|
13
|
+
"name": "as",
|
|
14
|
+
"declarations": [
|
|
15
|
+
{
|
|
16
|
+
"fileName": "nimbus/packages/nimbus/src/components/chat-message/chat-message.types.ts",
|
|
17
|
+
"name": "TypeLiteral"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"required": false,
|
|
21
|
+
"type": {
|
|
22
|
+
"name": "ElementType<any, keyof IntrinsicElements>"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"ref": {
|
|
26
|
+
"defaultValue": null,
|
|
27
|
+
"description": "",
|
|
28
|
+
"name": "ref",
|
|
29
|
+
"declarations": [
|
|
30
|
+
{
|
|
31
|
+
"fileName": "nimbus/packages/nimbus/src/components/chat-message/chat-message.types.ts",
|
|
32
|
+
"name": "TypeLiteral"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"required": false,
|
|
36
|
+
"type": {
|
|
37
|
+
"name": "Ref<HTMLDivElement>"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"supportsStyleProps": true
|
|
42
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tags": {
|
|
3
|
+
"see": "{@link https://nimbus-documentation.vercel.app/components/feedback/chat-message-list}",
|
|
4
|
+
"example": "```tsx\n<ChatMessageList.Root aria-label=\"Conversation with the agent\">\n <ChatMessageList.Item>\n <ChatMessage.Root sender=\"user\">\n <ChatMessage.Body><Text>Summarise last week's orders?</Text></ChatMessage.Body>\n </ChatMessage.Root>\n </ChatMessageList.Item>\n <ChatMessageList.Item>\n <Box mx=\"auto\" textAlign=\"center\" color=\"neutral.11\" textStyle=\"sm\">\n Conversation history was cleared.\n </Box>\n </ChatMessageList.Item>\n</ChatMessageList.Root>\n```"
|
|
5
|
+
},
|
|
6
|
+
"filePath": "/home/runner/work/nimbus/nimbus/packages/nimbus/src/index.ts",
|
|
7
|
+
"description": "ChatMessageList\n============================================================\nA compound component that presents a **scrollable sequence of chat messages**\nand owns transcript-level scroll and announcement behavior. It is the second\nprimitive in the `Chat*` family: `ChatMessage` renders one message,\n`ChatMessageList` arranges many into a conversation.\n\nA list is defined by its items, so `ChatMessageList` is a compound of a\n`Root` and its `Item`s — not a box that happens to contain children. The\n`Item` is the list-membership socket; a `ChatMessage` (or any other content)\nis what plugs into it.\n\n`Root` wraps the Nimbus `ScrollArea`, owns autoscroll / stick-to-bottom and\nthe \"jump to latest\" affordance, and is the single persistent\n`role=\"log\"` `aria-live=\"polite\"` region that announces appended and streamed\nreplies — the counterpart to `ChatMessage`'s `isStreaming` busy flag.",
|
|
8
|
+
"displayName": "ChatMessageList",
|
|
9
|
+
"methods": [],
|
|
10
|
+
"props": {},
|
|
11
|
+
"supportsStyleProps": false
|
|
12
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tags": {
|
|
3
|
+
"supportsStyleProps": ""
|
|
4
|
+
},
|
|
5
|
+
"filePath": "/home/runner/work/nimbus/nimbus/packages/nimbus/src/index.ts",
|
|
6
|
+
"description": "ChatMessageList.Item - One member of the transcript.\n\nThe list-membership socket: it owns inter-item placement and the entry\npresentation of a newly appended member, and is content-agnostic — it holds a\n`ChatMessage` or any other content without reaching into it.\nThat child-agnosticism is what lets a system notice be a peer of a message\nrather than a message variant.\n\nIt deliberately does **not** assert `role=\"listitem\"`, which would conflict\nwith the `log` live-region semantics of `ChatMessageList.Root`; it provides\nDOM order and a structural styling hook only.",
|
|
7
|
+
"displayName": "ChatMessageListItem",
|
|
8
|
+
"methods": [],
|
|
9
|
+
"props": {
|
|
10
|
+
"as": {
|
|
11
|
+
"defaultValue": null,
|
|
12
|
+
"description": "Override the rendered element. Defaults to a `div`. Note: `Item`\ndeliberately does not assert `role=\"listitem\"` (it would conflict with the\n`log` container). `as=\"li\"` only yields real list semantics inside an\nactual `list`/`role=\"list\"` ancestor, which the transcript is not.",
|
|
13
|
+
"name": "as",
|
|
14
|
+
"declarations": [
|
|
15
|
+
{
|
|
16
|
+
"fileName": "nimbus/packages/nimbus/src/components/chat-message-list/chat-message-list.types.ts",
|
|
17
|
+
"name": "TypeLiteral"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"required": false,
|
|
21
|
+
"type": {
|
|
22
|
+
"name": "ElementType<any, keyof IntrinsicElements>"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"ref": {
|
|
26
|
+
"defaultValue": null,
|
|
27
|
+
"description": "Ref forwarding to the item element.",
|
|
28
|
+
"name": "ref",
|
|
29
|
+
"declarations": [
|
|
30
|
+
{
|
|
31
|
+
"fileName": "nimbus/packages/nimbus/src/components/chat-message-list/chat-message-list.types.ts",
|
|
32
|
+
"name": "TypeLiteral"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"required": false,
|
|
36
|
+
"type": {
|
|
37
|
+
"name": "Ref<HTMLDivElement>"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"supportsStyleProps": true
|
|
42
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tags": {
|
|
3
|
+
"supportsStyleProps": ""
|
|
4
|
+
},
|
|
5
|
+
"filePath": "/home/runner/work/nimbus/nimbus/packages/nimbus/src/index.ts",
|
|
6
|
+
"description": "ChatMessageList.Root - The scrollable transcript container.\n\nWraps the Nimbus `ScrollArea` for the viewport and owns transcript-level\nbehavior: autoscroll / stick-to-bottom (pins to the newest item while the\nuser is at the bottom, including during streaming, and releases when they\nscroll up), the \"jump to latest\" affordance, and the single persistent\n`role=\"log\"` `aria-live=\"polite\"` region that announces appended and streamed\nmessages. When there are no items it renders `emptyState`.\n\nThe list is content-agnostic: its `Item`s hold a `ChatMessage` or any other\ncontent and it never reaches into them. It renders one message's\nannouncement at the transcript level; the message itself only flags\n`aria-busy` while streaming (see `ChatMessage`).",
|
|
7
|
+
"displayName": "ChatMessageListRoot",
|
|
8
|
+
"methods": [],
|
|
9
|
+
"props": {
|
|
10
|
+
"unstyled": {
|
|
11
|
+
"defaultValue": null,
|
|
12
|
+
"description": "If `true`, the element will opt out of the theme styles.",
|
|
13
|
+
"name": "unstyled",
|
|
14
|
+
"parent": {
|
|
15
|
+
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.1_@emotion+react@11.14.0_@types+react@19.2.17_react@19.2.0__react_481d5ee5504b18c9383bebdcb4b66737/node_modules/@chakra-ui/react/dist/types/styled-system/factory.types.d.ts",
|
|
16
|
+
"name": "UnstyledProp"
|
|
17
|
+
},
|
|
18
|
+
"declarations": [
|
|
19
|
+
{
|
|
20
|
+
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.1_@emotion+react@11.14.0_@types+react@19.2.17_react@19.2.0__react_481d5ee5504b18c9383bebdcb4b66737/node_modules/@chakra-ui/react/dist/types/styled-system/factory.types.d.ts",
|
|
21
|
+
"name": "UnstyledProp"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"required": false,
|
|
25
|
+
"type": {
|
|
26
|
+
"name": "boolean"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"autoScroll": {
|
|
30
|
+
"defaultValue": {
|
|
31
|
+
"value": "true"
|
|
32
|
+
},
|
|
33
|
+
"description": "Keep the viewport pinned to the newest item while the user is at the\nbottom (including while a reply streams and grows), releasing the pin\nwhen the user scrolls up to read history. Set to `false` to disable\nautomatic scrolling entirely and drive it yourself via the ref handle.",
|
|
34
|
+
"name": "autoScroll",
|
|
35
|
+
"declarations": [
|
|
36
|
+
{
|
|
37
|
+
"fileName": "nimbus/packages/nimbus/src/components/chat-message-list/chat-message-list.types.ts",
|
|
38
|
+
"name": "TypeLiteral"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"required": false,
|
|
42
|
+
"type": {
|
|
43
|
+
"name": "boolean"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"emptyState": {
|
|
47
|
+
"defaultValue": null,
|
|
48
|
+
"description": "Content rendered when the list has no `Item` children — an onboarding\nprompt, suggested questions, or a simple \"No messages yet\" line.",
|
|
49
|
+
"name": "emptyState",
|
|
50
|
+
"declarations": [
|
|
51
|
+
{
|
|
52
|
+
"fileName": "nimbus/packages/nimbus/src/components/chat-message-list/chat-message-list.types.ts",
|
|
53
|
+
"name": "TypeLiteral"
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"required": false,
|
|
57
|
+
"type": {
|
|
58
|
+
"name": "ReactNode"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"ref": {
|
|
62
|
+
"defaultValue": null,
|
|
63
|
+
"description": "Imperative handle for programmatic scroll control.",
|
|
64
|
+
"name": "ref",
|
|
65
|
+
"declarations": [
|
|
66
|
+
{
|
|
67
|
+
"fileName": "nimbus/packages/nimbus/src/components/chat-message-list/chat-message-list.types.ts",
|
|
68
|
+
"name": "TypeLiteral"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"required": false,
|
|
72
|
+
"type": {
|
|
73
|
+
"name": "Ref<ChatMessageListHandle>"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"supportsStyleProps": true
|
|
78
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tags": {
|
|
3
|
+
"supportsStyleProps": ""
|
|
4
|
+
},
|
|
5
|
+
"filePath": "/home/runner/work/nimbus/nimbus/packages/nimbus/src/index.ts",
|
|
6
|
+
"description": "ChatMessage.Meta - Layout-only row rendered below the body.\n\nRenders a `space-between` flex row aligned with the body. Consumers provide\nthe content (timestamp, provenance/trust links, reaction icons). With a\nsingle child, `space-between` leaves it at the start of the row — pair it\nwith a spacer or a second element to push content to the end.",
|
|
7
|
+
"displayName": "ChatMessageMeta",
|
|
8
|
+
"methods": [],
|
|
9
|
+
"props": {
|
|
10
|
+
"as": {
|
|
11
|
+
"defaultValue": null,
|
|
12
|
+
"description": "Override the rendered element (e.g. `as=\"footer\"`). Defaults to a `div`.",
|
|
13
|
+
"name": "as",
|
|
14
|
+
"declarations": [
|
|
15
|
+
{
|
|
16
|
+
"fileName": "nimbus/packages/nimbus/src/components/chat-message/chat-message.types.ts",
|
|
17
|
+
"name": "TypeLiteral"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"required": false,
|
|
21
|
+
"type": {
|
|
22
|
+
"name": "ElementType<any, keyof IntrinsicElements>"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"ref": {
|
|
26
|
+
"defaultValue": null,
|
|
27
|
+
"description": "",
|
|
28
|
+
"name": "ref",
|
|
29
|
+
"declarations": [
|
|
30
|
+
{
|
|
31
|
+
"fileName": "nimbus/packages/nimbus/src/components/chat-message/chat-message.types.ts",
|
|
32
|
+
"name": "TypeLiteral"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"required": false,
|
|
36
|
+
"type": {
|
|
37
|
+
"name": "Ref<HTMLDivElement>"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"supportsStyleProps": true
|
|
42
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tags": {
|
|
3
|
+
"supportsStyleProps": ""
|
|
4
|
+
},
|
|
5
|
+
"filePath": "/home/runner/work/nimbus/nimbus/packages/nimbus/src/index.ts",
|
|
6
|
+
"description": "ChatMessage.Root - The grid container for a single chat message.\n\nEstablishes the styling context and lays out the avatar, body and optional\nmeta row. The `sender` prop selects the layout direction (avatar leading for\n`\"agent\"`, trailing for `\"user\"`) and the sender-specific styling;\n`tone=\"error\"` tints the body for a failed generation.\n\nRenders a semantic `<article>` by default (a feed item, per the ARIA APG) so\na message is a discrete node in the accessibility tree. This is a *default*,\nnot a mandate: override the element with `as` (e.g. `as=\"li\"` inside a list)\nand name the message for assistive tech with `aria-label`/`aria-labelledby`.\nThe surrounding feed / live region is the consumer's to compose — see the\naccessibility docs.",
|
|
7
|
+
"displayName": "ChatMessageRoot",
|
|
8
|
+
"methods": [],
|
|
9
|
+
"props": {
|
|
10
|
+
"unstyled": {
|
|
11
|
+
"defaultValue": null,
|
|
12
|
+
"description": "If `true`, the element will opt out of the theme styles.",
|
|
13
|
+
"name": "unstyled",
|
|
14
|
+
"parent": {
|
|
15
|
+
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.1_@emotion+react@11.14.0_@types+react@19.2.17_react@19.2.0__react_481d5ee5504b18c9383bebdcb4b66737/node_modules/@chakra-ui/react/dist/types/styled-system/factory.types.d.ts",
|
|
16
|
+
"name": "UnstyledProp"
|
|
17
|
+
},
|
|
18
|
+
"declarations": [
|
|
19
|
+
{
|
|
20
|
+
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.1_@emotion+react@11.14.0_@types+react@19.2.17_react@19.2.0__react_481d5ee5504b18c9383bebdcb4b66737/node_modules/@chakra-ui/react/dist/types/styled-system/factory.types.d.ts",
|
|
21
|
+
"name": "UnstyledProp"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"required": false,
|
|
25
|
+
"type": {
|
|
26
|
+
"name": "boolean"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"tone": {
|
|
30
|
+
"defaultValue": {
|
|
31
|
+
"value": "\"neutral\""
|
|
32
|
+
},
|
|
33
|
+
"description": "Status overlay, orthogonal to `sender`. `\"error\"` tints the body with the\ncritical palette to flag a failed generation — an *agent* message can fail,\nso error is a tone rather than a sender.",
|
|
34
|
+
"name": "tone",
|
|
35
|
+
"declarations": [
|
|
36
|
+
{
|
|
37
|
+
"fileName": "nimbus/packages/nimbus/src/components/chat-message/chat-message.types.ts",
|
|
38
|
+
"name": "TypeLiteral"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"required": false,
|
|
42
|
+
"type": {
|
|
43
|
+
"name": "ConditionalValue<\"neutral\" | \"error\">"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"sender": {
|
|
47
|
+
"defaultValue": {
|
|
48
|
+
"value": "\"agent\""
|
|
49
|
+
},
|
|
50
|
+
"description": "Which participant sent the message — drives the layout direction and the\nper-sender styling. A single value only: a message's sender is fixed, so\nresponsive/conditional values are intentionally not accepted (they would\nstyle the body per breakpoint while the avatar defaults could not follow).",
|
|
51
|
+
"name": "sender",
|
|
52
|
+
"declarations": [
|
|
53
|
+
{
|
|
54
|
+
"fileName": "nimbus/packages/nimbus/src/components/chat-message/chat-message.types.ts",
|
|
55
|
+
"name": "TypeLiteral"
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"required": false,
|
|
59
|
+
"type": {
|
|
60
|
+
"name": "enum",
|
|
61
|
+
"raw": "ChatMessageSender",
|
|
62
|
+
"value": [
|
|
63
|
+
{
|
|
64
|
+
"value": "\"user\""
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"value": "\"agent\""
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"as": {
|
|
73
|
+
"defaultValue": null,
|
|
74
|
+
"description": "Override the rendered element. Defaults to `\"article\"` (a feed item, per\nthe ARIA APG); set e.g. `as=\"li\"` when composing the message into a list.",
|
|
75
|
+
"name": "as",
|
|
76
|
+
"declarations": [
|
|
77
|
+
{
|
|
78
|
+
"fileName": "nimbus/packages/nimbus/src/components/chat-message/chat-message.types.ts",
|
|
79
|
+
"name": "TypeLiteral"
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
"required": false,
|
|
83
|
+
"type": {
|
|
84
|
+
"name": "ElementType<any, keyof IntrinsicElements>"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"isStreaming": {
|
|
88
|
+
"defaultValue": null,
|
|
89
|
+
"description": "Marks the message as still being generated. Sets `aria-busy` on the root so\nassistive tech knows the content is in flux. The live-region announcement\n(e.g. wrapping the feed in `role=\"log\" aria-live=\"polite\"`) stays the\nconsumer's responsibility — see the accessibility docs.",
|
|
90
|
+
"name": "isStreaming",
|
|
91
|
+
"declarations": [
|
|
92
|
+
{
|
|
93
|
+
"fileName": "nimbus/packages/nimbus/src/components/chat-message/chat-message.types.ts",
|
|
94
|
+
"name": "TypeLiteral"
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"required": false,
|
|
98
|
+
"type": {
|
|
99
|
+
"name": "boolean"
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"ref": {
|
|
103
|
+
"defaultValue": null,
|
|
104
|
+
"description": "",
|
|
105
|
+
"name": "ref",
|
|
106
|
+
"declarations": [
|
|
107
|
+
{
|
|
108
|
+
"fileName": "nimbus/packages/nimbus/src/components/chat-message/chat-message.types.ts",
|
|
109
|
+
"name": "TypeLiteral"
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
"required": false,
|
|
113
|
+
"type": {
|
|
114
|
+
"name": "Ref<HTMLDivElement>"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"supportsStyleProps": true
|
|
119
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tags": {
|
|
3
|
+
"supportsStyleProps": ""
|
|
4
|
+
},
|
|
5
|
+
"filePath": "/home/runner/work/nimbus/nimbus/packages/nimbus/src/index.ts",
|
|
6
|
+
"description": "ChatMessage.Typing - Animated \"generating…\" indicator for a streaming reply.\n\nRenders the Nimbus `ActivityIndicator` (three bouncing dots) inside the\nbody while a response streams. Place it as the body's payload and swap it\nfor the real content once the stream settles.\n\nAccessibility: the dots are decorative (`ActivityIndicator` is always\n`aria-hidden`). Pass a visible label as `children` (e.g. \"Agent is\ntyping…\") for a per-message affordance, and/or set `isStreaming` on\n`ChatMessage.Root` (which sets `aria-busy`) — the coalesced live-region\nannouncement stays with the consumer's feed/turn container.",
|
|
7
|
+
"displayName": "ChatMessageTyping",
|
|
8
|
+
"methods": [],
|
|
9
|
+
"props": {
|
|
10
|
+
"as": {
|
|
11
|
+
"defaultValue": null,
|
|
12
|
+
"description": "Override the rendered element. Defaults to a `div`.",
|
|
13
|
+
"name": "as",
|
|
14
|
+
"declarations": [
|
|
15
|
+
{
|
|
16
|
+
"fileName": "nimbus/packages/nimbus/src/components/chat-message/chat-message.types.ts",
|
|
17
|
+
"name": "TypeLiteral"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"required": false,
|
|
21
|
+
"type": {
|
|
22
|
+
"name": "ElementType<any, keyof IntrinsicElements>"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"ref": {
|
|
26
|
+
"defaultValue": null,
|
|
27
|
+
"description": "",
|
|
28
|
+
"name": "ref",
|
|
29
|
+
"declarations": [
|
|
30
|
+
{
|
|
31
|
+
"fileName": "nimbus/packages/nimbus/src/components/chat-message/chat-message.types.ts",
|
|
32
|
+
"name": "TypeLiteral"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"required": false,
|
|
36
|
+
"type": {
|
|
37
|
+
"name": "Ref<HTMLDivElement>"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"supportsStyleProps": true
|
|
42
|
+
}
|