@gravity-ui/aikit 3.5.0 → 3.6.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.
Files changed (117) hide show
  1. package/build/cjs/components/organisms/{ThinkingMessageGroup/ThinkingMessageGroup.css → ActivityList/ActivityList.css} +46 -14
  2. package/build/cjs/components/organisms/ActivityList/ActivityList.d.ts +3 -0
  3. package/build/cjs/components/organisms/ActivityList/ActivityList.js +93 -0
  4. package/build/cjs/components/organisms/ActivityList/ActivityList.js.map +1 -0
  5. package/build/cjs/components/organisms/ActivityList/CompactHeading.d.ts +11 -0
  6. package/build/cjs/components/organisms/{ThinkingMessageGroup → ActivityList}/CompactHeading.js +10 -7
  7. package/build/cjs/components/organisms/ActivityList/CompactHeading.js.map +1 -0
  8. package/build/cjs/components/organisms/ActivityList/StepIcon.d.ts +7 -0
  9. package/build/cjs/components/organisms/{ThinkingMessageGroup → ActivityList}/StepIcon.js +12 -2
  10. package/build/cjs/components/organisms/ActivityList/StepIcon.js.map +1 -0
  11. package/build/cjs/components/organisms/ActivityList/i18n/index.js.map +1 -0
  12. package/build/cjs/components/organisms/ActivityList/index.d.ts +7 -0
  13. package/build/cjs/components/organisms/ActivityList/index.js +11 -0
  14. package/build/cjs/components/organisms/ActivityList/index.js.map +1 -0
  15. package/build/cjs/components/organisms/ActivityList/types.d.ts +41 -0
  16. package/build/cjs/components/organisms/ActivityList/types.js +3 -0
  17. package/build/cjs/components/organisms/ActivityList/types.js.map +1 -0
  18. package/build/{esm/components/organisms/ThinkingMessageGroup → cjs/components/organisms/ActivityList}/utils.d.ts +4 -4
  19. package/build/cjs/components/organisms/ActivityList/utils.js.map +1 -0
  20. package/build/cjs/components/organisms/AssistantMessage/AssistantMessage.js +3 -3
  21. package/build/cjs/components/organisms/AssistantMessage/AssistantMessage.js.map +1 -1
  22. package/build/cjs/components/organisms/ThinkingMessage/ThinkingMessage.d.ts +1 -1
  23. package/build/cjs/components/organisms/ThinkingMessage/ThinkingMessage.js +1 -1
  24. package/build/cjs/components/organisms/ThinkingMessage/ThinkingMessage.js.map +1 -1
  25. package/build/cjs/components/organisms/ThinkingMessageGroup/ThinkingMessageGroup.d.ts +3 -3
  26. package/build/cjs/components/organisms/ThinkingMessageGroup/ThinkingMessageGroup.js +4 -83
  27. package/build/cjs/components/organisms/ThinkingMessageGroup/ThinkingMessageGroup.js.map +1 -1
  28. package/build/cjs/components/organisms/ThinkingMessageGroup/ThinkingMessageGroupWithMarkdown.d.ts +1 -1
  29. package/build/cjs/components/organisms/ThinkingMessageGroup/index.d.ts +7 -3
  30. package/build/cjs/components/organisms/ThinkingMessageGroup/index.js +7 -5
  31. package/build/cjs/components/organisms/ThinkingMessageGroup/index.js.map +1 -1
  32. package/build/cjs/components/organisms/ThinkingMessageGroup/types.d.ts +9 -37
  33. package/build/cjs/components/organisms/ThinkingMessageGroup/types.js.map +1 -1
  34. package/build/cjs/components/organisms/index.d.ts +1 -0
  35. package/build/cjs/components/organisms/index.js +1 -0
  36. package/build/cjs/components/organisms/index.js.map +1 -1
  37. package/build/cjs/custom-markdown/index.d.ts +3 -1
  38. package/build/cjs/custom-markdown/index.js +2 -1
  39. package/build/cjs/custom-markdown/index.js.map +1 -1
  40. package/build/cjs/package.json +1 -1
  41. package/build/docs/INDEX.md +2 -1
  42. package/build/docs/components/organisms/ActivityList.md +204 -0
  43. package/build/docs/components/organisms/AssistantMessage.md +1 -1
  44. package/build/docs/components/organisms/MessageList.md +1 -1
  45. package/build/docs/components/organisms/ThinkingMessage.md +1 -1
  46. package/build/docs/components/organisms/ThinkingMessageGroup.md +21 -122
  47. package/build/docs/components/pages/ChatContainer.md +1 -1
  48. package/build/docs/guides/COMPONENTS.md +15 -14
  49. package/build/docs/guides/PROJECT_STRUCTURE.md +3 -2
  50. package/build/esm/components/organisms/{ThinkingMessageGroup/ThinkingMessageGroup.css → ActivityList/ActivityList.css} +46 -14
  51. package/build/esm/components/organisms/ActivityList/ActivityList.d.ts +3 -0
  52. package/build/esm/components/organisms/ActivityList/ActivityList.js +90 -0
  53. package/build/esm/components/organisms/ActivityList/ActivityList.js.map +1 -0
  54. package/build/esm/components/organisms/ActivityList/CompactHeading.d.ts +11 -0
  55. package/build/esm/components/organisms/{ThinkingMessageGroup → ActivityList}/CompactHeading.js +10 -7
  56. package/build/esm/components/organisms/ActivityList/CompactHeading.js.map +1 -0
  57. package/build/esm/components/organisms/ActivityList/StepIcon.d.ts +7 -0
  58. package/build/esm/components/organisms/ActivityList/StepIcon.js +27 -0
  59. package/build/esm/components/organisms/ActivityList/StepIcon.js.map +1 -0
  60. package/build/esm/components/organisms/ActivityList/i18n/index.js.map +1 -0
  61. package/build/esm/components/organisms/ActivityList/index.d.ts +7 -0
  62. package/build/esm/components/organisms/ActivityList/index.js +6 -0
  63. package/build/esm/components/organisms/ActivityList/index.js.map +1 -0
  64. package/build/esm/components/organisms/ActivityList/types.d.ts +41 -0
  65. package/build/esm/components/organisms/ActivityList/types.js +2 -0
  66. package/build/esm/components/organisms/ActivityList/types.js.map +1 -0
  67. package/build/{cjs/components/organisms/ThinkingMessageGroup → esm/components/organisms/ActivityList}/utils.d.ts +4 -4
  68. package/build/esm/components/organisms/ActivityList/utils.js.map +1 -0
  69. package/build/esm/components/organisms/AssistantMessage/AssistantMessage.js +3 -3
  70. package/build/esm/components/organisms/AssistantMessage/AssistantMessage.js.map +1 -1
  71. package/build/esm/components/organisms/ThinkingMessage/ThinkingMessage.d.ts +1 -1
  72. package/build/esm/components/organisms/ThinkingMessage/ThinkingMessage.js +1 -1
  73. package/build/esm/components/organisms/ThinkingMessage/ThinkingMessage.js.map +1 -1
  74. package/build/esm/components/organisms/ThinkingMessageGroup/ThinkingMessageGroup.d.ts +3 -3
  75. package/build/esm/components/organisms/ThinkingMessageGroup/ThinkingMessageGroup.js +3 -82
  76. package/build/esm/components/organisms/ThinkingMessageGroup/ThinkingMessageGroup.js.map +1 -1
  77. package/build/esm/components/organisms/ThinkingMessageGroup/ThinkingMessageGroupWithMarkdown.d.ts +1 -1
  78. package/build/esm/components/organisms/ThinkingMessageGroup/index.d.ts +7 -3
  79. package/build/esm/components/organisms/ThinkingMessageGroup/index.js +5 -2
  80. package/build/esm/components/organisms/ThinkingMessageGroup/index.js.map +1 -1
  81. package/build/esm/components/organisms/ThinkingMessageGroup/types.d.ts +9 -37
  82. package/build/esm/components/organisms/ThinkingMessageGroup/types.js.map +1 -1
  83. package/build/esm/components/organisms/index.d.ts +1 -0
  84. package/build/esm/components/organisms/index.js +1 -0
  85. package/build/esm/components/organisms/index.js.map +1 -1
  86. package/build/esm/custom-markdown/index.d.ts +3 -1
  87. package/build/esm/custom-markdown/index.js +2 -1
  88. package/build/esm/custom-markdown/index.js.map +1 -1
  89. package/build/esm/package.json +1 -1
  90. package/docs/COMPONENTS.md +15 -14
  91. package/docs/PROJECT_STRUCTURE.md +3 -2
  92. package/llms-full.txt +19 -17
  93. package/llms.txt +2 -1
  94. package/package.json +11 -1
  95. package/build/cjs/components/organisms/ThinkingMessageGroup/CompactHeading.d.ts +0 -11
  96. package/build/cjs/components/organisms/ThinkingMessageGroup/CompactHeading.js.map +0 -1
  97. package/build/cjs/components/organisms/ThinkingMessageGroup/StepIcon.d.ts +0 -6
  98. package/build/cjs/components/organisms/ThinkingMessageGroup/StepIcon.js.map +0 -1
  99. package/build/cjs/components/organisms/ThinkingMessageGroup/i18n/index.js.map +0 -1
  100. package/build/cjs/components/organisms/ThinkingMessageGroup/utils.js.map +0 -1
  101. package/build/esm/components/organisms/ThinkingMessageGroup/CompactHeading.d.ts +0 -11
  102. package/build/esm/components/organisms/ThinkingMessageGroup/CompactHeading.js.map +0 -1
  103. package/build/esm/components/organisms/ThinkingMessageGroup/StepIcon.d.ts +0 -6
  104. package/build/esm/components/organisms/ThinkingMessageGroup/StepIcon.js +0 -17
  105. package/build/esm/components/organisms/ThinkingMessageGroup/StepIcon.js.map +0 -1
  106. package/build/esm/components/organisms/ThinkingMessageGroup/i18n/index.js.map +0 -1
  107. package/build/esm/components/organisms/ThinkingMessageGroup/utils.js.map +0 -1
  108. /package/build/cjs/components/organisms/{ThinkingMessageGroup → ActivityList}/i18n/en.json +0 -0
  109. /package/build/cjs/components/organisms/{ThinkingMessageGroup → ActivityList}/i18n/index.d.ts +0 -0
  110. /package/build/cjs/components/organisms/{ThinkingMessageGroup → ActivityList}/i18n/index.js +0 -0
  111. /package/build/cjs/components/organisms/{ThinkingMessageGroup → ActivityList}/i18n/ru.json +0 -0
  112. /package/build/cjs/components/organisms/{ThinkingMessageGroup → ActivityList}/utils.js +0 -0
  113. /package/build/esm/components/organisms/{ThinkingMessageGroup → ActivityList}/i18n/en.json +0 -0
  114. /package/build/esm/components/organisms/{ThinkingMessageGroup → ActivityList}/i18n/index.d.ts +0 -0
  115. /package/build/esm/components/organisms/{ThinkingMessageGroup → ActivityList}/i18n/index.js +0 -0
  116. /package/build/esm/components/organisms/{ThinkingMessageGroup → ActivityList}/i18n/ru.json +0 -0
  117. /package/build/esm/components/organisms/{ThinkingMessageGroup → ActivityList}/utils.js +0 -0
@@ -1,87 +1,8 @@
1
1
  'use client';
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.ThinkingMessageGroup = ThinkingMessageGroup;
5
- const jsx_runtime_1 = require("react/jsx-runtime");
6
- const react_1 = require("react");
7
- const icons_1 = require("@gravity-ui/icons");
8
- const uikit_1 = require("@gravity-ui/uikit");
9
- const MarkdownProvider_1 = require("../../../markdown/MarkdownProvider.js");
10
- const clipboardUtils_1 = require("../../../utils/clipboardUtils.js");
11
- const cn_1 = require("../../../utils/cn.js");
12
- const ActionButton_1 = require("../../atoms/ActionButton/index.js");
13
- const CompactHeading_1 = require("./CompactHeading.js");
14
- const StepIcon_1 = require("./StepIcon.js");
15
- const i18n_1 = require("./i18n/index.js");
16
- require("./ThinkingMessageGroup.css");
17
- const b = (0, cn_1.block)('thinking-message-group');
18
- function ThinkingMessageGroup(props) {
19
- var _a, _b;
20
- const { t } = i18n_1.i18n.useTranslation();
21
- const { steps, stepTypes, status = (_b = (_a = steps[steps.length - 1]) === null || _a === void 0 ? void 0 : _a.status) !== null && _b !== void 0 ? _b : 'thought', activeStepId, expanded, defaultExpanded = false, maxHistoryHeight = 480, onExpandedChange, renderSummary, renderStepContent, className, qa, style, format = 'plain', transformOptions, mermaidOptions, openMarkdownLinksInNewTab, mdxOptions, mdxContext, markdownExtraProps, } = props;
22
- const [internalExpanded, setInternalExpanded] = (0, react_1.useState)(defaultExpanded);
23
- const detailsId = (0, react_1.useId)();
24
- const headingId = `${detailsId}-heading`;
25
- const isExpanded = expanded !== null && expanded !== void 0 ? expanded : internalExpanded;
26
- const activeStep = activeStepId === undefined
27
- ? [...steps].reverse().find((step) => step.status === 'thinking')
28
- : steps.find((step) => step.id === activeStepId);
29
- const completedSteps = steps.filter((step) => step.status === 'thought');
30
- const isThinking = status === 'thinking';
31
- const hasDetails = !isThinking ||
32
- steps.length > 1 ||
33
- Boolean(renderStepContent) ||
34
- steps.some((step) => {
35
- var _a;
36
- const content = Array.isArray(step.content) ? step.content : [step.content];
37
- return (Boolean(((_a = stepTypes === null || stepTypes === void 0 ? void 0 : stepTypes[step.type]) === null || _a === void 0 ? void 0 : _a.label) || step.enabledCopy || step.onCopyClick) ||
38
- content.some(Boolean));
39
- });
40
- if (steps.length === 0) {
41
- return null;
42
- }
43
- const toggleExpanded = () => {
44
- const nextExpanded = !isExpanded;
45
- if (expanded === undefined) {
46
- setInternalExpanded(nextExpanded);
47
- }
48
- onExpandedChange === null || onExpandedChange === void 0 ? void 0 : onExpandedChange(nextExpanded);
49
- };
50
- const defaultSummary = completedSteps.length > 0 ? t('completed-steps', { count: completedSteps.length }) : null;
51
- const summary = renderSummary ? renderSummary(completedSteps) : defaultSummary;
52
- const heading = ((0, jsx_runtime_1.jsx)(CompactHeading_1.CompactHeading, { activeStep: activeStep, stepTypes: stepTypes, status: status, summary: summary, hasDetails: hasDetails, isExpanded: isExpanded }));
53
- return ((0, jsx_runtime_1.jsxs)("div", { className: b(null, className), "data-qa": qa, style: style, children: [hasDetails ? ((0, jsx_runtime_1.jsx)(uikit_1.Button, { id: headingId, className: b('compact-toggle'), view: "flat-secondary", width: "auto", onClick: toggleExpanded, "aria-expanded": isExpanded, "aria-controls": isExpanded ? detailsId : undefined, children: heading })) : ((0, jsx_runtime_1.jsx)("div", { className: b('compact-header'), children: heading })), hasDetails && isExpanded && ((0, jsx_runtime_1.jsx)("ol", { className: b('steps'), id: detailsId, "aria-labelledby": headingId, tabIndex: 0, style: { maxHeight: maxHistoryHeight }, children: steps.map((step) => {
54
- const type = stepTypes === null || stepTypes === void 0 ? void 0 : stepTypes[step.type];
55
- const content = Array.isArray(step.content) ? step.content : [step.content];
56
- return ((0, jsx_runtime_1.jsxs)("li", { className: b('step'), children: [(0, jsx_runtime_1.jsx)("span", { className: b('step-marker', { status: step.status }), role: "img", "aria-label": t(`status-${step.status}`), children: (0, jsx_runtime_1.jsx)(StepIcon_1.StepIcon, { status: step.status, operationIcon: type === null || type === void 0 ? void 0 : type.icon }) }), (0, jsx_runtime_1.jsxs)("div", { className: b('step-body'), children: [(0, jsx_runtime_1.jsx)(uikit_1.Text, { className: b('step-title', {
57
- active: step.id === (activeStep === null || activeStep === void 0 ? void 0 : activeStep.id) &&
58
- step.status === 'thinking' &&
59
- isThinking,
60
- }), children: step.title || t(`status-${step.status}`) }), ((type === null || type === void 0 ? void 0 : type.label) ||
61
- (step.status !== 'thinking' &&
62
- step.status !== 'thought')) && ((0, jsx_runtime_1.jsxs)("span", { className: b('step-meta'), children: [(type === null || type === void 0 ? void 0 : type.label) && (0, jsx_runtime_1.jsx)("span", { children: type.label }), step.status !== 'thinking' &&
63
- step.status !== 'thought' && ((0, jsx_runtime_1.jsx)("span", { className: b('step-status', {
64
- error: step.status === 'error',
65
- }), children: t(`status-${step.status}`) }))] })), (0, jsx_runtime_1.jsx)("div", { className: b('step-details'), children: renderStepContent
66
- ? renderStepContent(step)
67
- : content.map((item, index) => {
68
- if (!item) {
69
- return null;
70
- }
71
- if (format === 'markdown') {
72
- return ((0, jsx_runtime_1.jsx)(MarkdownProvider_1.MarkdownContent, { className: b('step-content'), content: item, transformOptions: Object.assign({ disableCommonAnchors: true }, transformOptions), mermaidOptions: mermaidOptions, openLinksInNewTab: openMarkdownLinksInNewTab, mdxOptions: mdxOptions, mdxContext: mdxContext, extraProps: markdownExtraProps }, index));
73
- }
74
- return ((0, jsx_runtime_1.jsx)(uikit_1.Text, { className: b('step-content', {
75
- plain: true,
76
- }), children: item }, index));
77
- }) }), step.status !== 'thinking' &&
78
- (step.enabledCopy || step.onCopyClick) && ((0, jsx_runtime_1.jsx)(ActionButton_1.ActionButton, { size: "xs", "aria-label": t('copy'), tooltipTitle: t('copy'), className: b('copy'), onClick: () => {
79
- var _a;
80
- if (step.onCopyClick)
81
- step.onCopyClick();
82
- else
83
- (0, clipboardUtils_1.copyToClipboard)((_a = step.content) !== null && _a !== void 0 ? _a : '');
84
- }, children: (0, jsx_runtime_1.jsx)(uikit_1.Icon, { data: icons_1.Copy, size: 14 }) }))] })] }, step.id));
85
- }) }))] }));
86
- }
4
+ exports.ThinkingMessageGroup = void 0;
5
+ const ActivityList_1 = require("../ActivityList/ActivityList.js");
6
+ /** @deprecated Use ActivityList instead. */
7
+ exports.ThinkingMessageGroup = ActivityList_1.ActivityList;
87
8
  //# sourceMappingURL=ThinkingMessageGroup.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ThinkingMessageGroup.js","sourceRoot":"../../../../../src","sources":["components/organisms/ThinkingMessageGroup/ThinkingMessageGroup.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;AAqBb,oDAuMC;;AA1ND,iCAAsC;AAEtC,6CAAuC;AACvC,6CAAqD;AAErD,4EAAmE;AACnE,qEAA8D;AAC9D,6CAAwC;AACxC,oEAAsD;AAEtD,wDAAgD;AAChD,4CAAoC;AACpC,0CAA4B;AAG5B,sCAAqC;AAErC,MAAM,CAAC,GA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,EAAC,MAAA,IAAI,CAAC,OAAO,mCAAI,EAAE,CAAC,CAAC;wCAC7C,CAAC,YAED,uBAAC,YAAI,IAAC,IAAI,EAAE,YAAI,EAAE,IAAI,EAAE,EAAE,GAAI,GACnB,CAClB,IACH,KA1FqB,IAAI,CAAC,EAAE,CA2FjC,CACR,CAAC;gBACN,CAAC,CAAC,GACD,CACR,IACC,CACT,CAAC;AACN,CAAC","sourcesContent":["'use client';\n\nimport {useId, useState} from 'react';\n\nimport {Copy} from '@gravity-ui/icons';\nimport {Button, Icon, Text} from '@gravity-ui/uikit';\n\nimport {MarkdownContent} from '../../../markdown/MarkdownProvider';\nimport {copyToClipboard} from '../../../utils/clipboardUtils';\nimport {block} from '../../../utils/cn';\nimport {ActionButton} from '../../atoms/ActionButton';\n\nimport {CompactHeading} from './CompactHeading';\nimport {StepIcon} from './StepIcon';\nimport {i18n} from './i18n';\nimport type {ThinkingMessageGroupProps} from './types';\n\nimport './ThinkingMessageGroup.scss';\n\nconst b = block('thinking-message-group');\n\nexport function ThinkingMessageGroup(props: ThinkingMessageGroupProps) {\n const {t} = i18n.useTranslation();\n const {\n steps,\n stepTypes,\n status = steps[steps.length - 1]?.status ?? 'thought',\n activeStepId,\n expanded,\n defaultExpanded = false,\n maxHistoryHeight = 480,\n onExpandedChange,\n renderSummary,\n renderStepContent,\n className,\n qa,\n style,\n format = 'plain',\n transformOptions,\n mermaidOptions,\n openMarkdownLinksInNewTab,\n mdxOptions,\n mdxContext,\n markdownExtraProps,\n } = props;\n const [internalExpanded, setInternalExpanded] = useState(defaultExpanded);\n const detailsId = useId();\n const headingId = `${detailsId}-heading`;\n const isExpanded = expanded ?? internalExpanded;\n const activeStep =\n activeStepId === undefined\n ? [...steps].reverse().find((step) => step.status === 'thinking')\n : steps.find((step) => step.id === activeStepId);\n const completedSteps = steps.filter((step) => step.status === 'thought');\n const isThinking = status === 'thinking';\n const hasDetails =\n !isThinking ||\n steps.length > 1 ||\n Boolean(renderStepContent) ||\n steps.some((step) => {\n const content = Array.isArray(step.content) ? step.content : [step.content];\n return (\n Boolean(stepTypes?.[step.type]?.label || step.enabledCopy || step.onCopyClick) ||\n content.some(Boolean)\n );\n });\n\n if (steps.length === 0) {\n return null;\n }\n\n const toggleExpanded = () => {\n const nextExpanded = !isExpanded;\n if (expanded === undefined) {\n setInternalExpanded(nextExpanded);\n }\n onExpandedChange?.(nextExpanded);\n };\n\n const defaultSummary =\n completedSteps.length > 0 ? t('completed-steps', {count: completedSteps.length}) : null;\n const summary = renderSummary ? renderSummary(completedSteps) : defaultSummary;\n const heading = (\n <CompactHeading\n activeStep={activeStep}\n stepTypes={stepTypes}\n status={status}\n summary={summary}\n hasDetails={hasDetails}\n isExpanded={isExpanded}\n />\n );\n\n return (\n <div className={b(null, className)} data-qa={qa} style={style}>\n {hasDetails ? (\n <Button\n id={headingId}\n className={b('compact-toggle')}\n view=\"flat-secondary\"\n width=\"auto\"\n onClick={toggleExpanded}\n aria-expanded={isExpanded}\n aria-controls={isExpanded ? detailsId : undefined}\n >\n {heading}\n </Button>\n ) : (\n <div className={b('compact-header')}>{heading}</div>\n )}\n {hasDetails && isExpanded && (\n <ol\n className={b('steps')}\n id={detailsId}\n aria-labelledby={headingId}\n tabIndex={0}\n style={{maxHeight: maxHistoryHeight}}\n >\n {steps.map((step) => {\n const type = stepTypes?.[step.type];\n const content = Array.isArray(step.content) ? step.content : [step.content];\n return (\n <li className={b('step')} key={step.id}>\n <span\n className={b('step-marker', {status: step.status})}\n role=\"img\"\n aria-label={t(`status-${step.status}`)}\n >\n <StepIcon status={step.status} operationIcon={type?.icon} />\n </span>\n <div className={b('step-body')}>\n <Text\n className={b('step-title', {\n active:\n step.id === activeStep?.id &&\n step.status === 'thinking' &&\n isThinking,\n })}\n >\n {step.title || t(`status-${step.status}`)}\n </Text>\n {(type?.label ||\n (step.status !== 'thinking' &&\n step.status !== 'thought')) && (\n <span className={b('step-meta')}>\n {type?.label && <span>{type.label}</span>}\n {step.status !== 'thinking' &&\n step.status !== 'thought' && (\n <span\n className={b('step-status', {\n error: step.status === 'error',\n })}\n >\n {t(`status-${step.status}`)}\n </span>\n )}\n </span>\n )}\n <div className={b('step-details')}>\n {renderStepContent\n ? renderStepContent(step)\n : content.map((item, index) => {\n if (!item) {\n return null;\n }\n if (format === 'markdown') {\n return (\n <MarkdownContent\n className={b('step-content')}\n key={index}\n content={item}\n transformOptions={{\n disableCommonAnchors: true,\n ...transformOptions,\n }}\n mermaidOptions={mermaidOptions}\n openLinksInNewTab={\n openMarkdownLinksInNewTab\n }\n mdxOptions={mdxOptions}\n mdxContext={mdxContext}\n extraProps={markdownExtraProps}\n />\n );\n }\n return (\n <Text\n className={b('step-content', {\n plain: true,\n })}\n key={index}\n >\n {item}\n </Text>\n );\n })}\n </div>\n {step.status !== 'thinking' &&\n (step.enabledCopy || step.onCopyClick) && (\n <ActionButton\n size=\"xs\"\n aria-label={t('copy')}\n tooltipTitle={t('copy')}\n className={b('copy')}\n onClick={() => {\n if (step.onCopyClick) step.onCopyClick();\n else copyToClipboard(step.content ?? '');\n }}\n >\n <Icon data={Copy} size={14} />\n </ActionButton>\n )}\n </div>\n </li>\n );\n })}\n </ol>\n )}\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"ThinkingMessageGroup.js","sourceRoot":"../../../../../src","sources":["components/organisms/ThinkingMessageGroup/ThinkingMessageGroup.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;AAEb,kEAA0D;AAE1D,4CAA4C;AAC/B,QAAA,oBAAoB,GAAG,2BAAY,CAAC","sourcesContent":["'use client';\n\nimport {ActivityList} from '../ActivityList/ActivityList';\n\n/** @deprecated Use ActivityList instead. */\nexport const ThinkingMessageGroup = ActivityList;\n"]}
@@ -1,4 +1,4 @@
1
1
  export declare const ThinkingMessageGroup: {
2
- (props: import("./types.js").ThinkingMessageGroupProps): import("react/jsx-runtime").JSX.Element;
2
+ (props: import("../index.js").ActivityListProps): import("react/jsx-runtime").JSX.Element;
3
3
  displayName: string;
4
4
  };
@@ -1,4 +1,8 @@
1
- export { ThinkingMessageGroup } from "./ThinkingMessageGroupWithMarkdown.js";
1
+ /** @deprecated Use ActivityList instead. */
2
+ export declare const ThinkingMessageGroup: {
3
+ (props: import("../ActivityList/index.js").ActivityListProps): import("react/jsx-runtime").JSX.Element;
4
+ displayName: string;
5
+ };
2
6
  export type { ThinkingMessageGroupProps, ThinkingStep, ThinkingStepStatus, ThinkingStepType, } from "./types.js";
3
- export { thinkingMessageToStep, groupThinkingMessages } from "./utils.js";
4
- export type { ThinkingGroupEntry, GroupThinkingMessagesOptions } from "./utils.js";
7
+ export { thinkingMessageToStep, groupThinkingMessages } from "../ActivityList/index.js";
8
+ export type { ThinkingGroupEntry, GroupThinkingMessagesOptions } from "../ActivityList/index.js";
@@ -1,9 +1,11 @@
1
+ 'use client';
1
2
  "use strict";
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
3
4
  exports.groupThinkingMessages = exports.thinkingMessageToStep = exports.ThinkingMessageGroup = void 0;
4
- var ThinkingMessageGroupWithMarkdown_1 = require("./ThinkingMessageGroupWithMarkdown.js");
5
- Object.defineProperty(exports, "ThinkingMessageGroup", { enumerable: true, get: function () { return ThinkingMessageGroupWithMarkdown_1.ThinkingMessageGroup; } });
6
- var utils_1 = require("./utils.js");
7
- Object.defineProperty(exports, "thinkingMessageToStep", { enumerable: true, get: function () { return utils_1.thinkingMessageToStep; } });
8
- Object.defineProperty(exports, "groupThinkingMessages", { enumerable: true, get: function () { return utils_1.groupThinkingMessages; } });
5
+ const ActivityList_1 = require("../ActivityList/index.js");
6
+ /** @deprecated Use ActivityList instead. */
7
+ exports.ThinkingMessageGroup = ActivityList_1.ActivityList;
8
+ var ActivityList_2 = require("../ActivityList/index.js");
9
+ Object.defineProperty(exports, "thinkingMessageToStep", { enumerable: true, get: function () { return ActivityList_2.thinkingMessageToStep; } });
10
+ Object.defineProperty(exports, "groupThinkingMessages", { enumerable: true, get: function () { return ActivityList_2.groupThinkingMessages; } });
9
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../../../../../src","sources":["components/organisms/ThinkingMessageGroup/index.ts"],"names":[],"mappings":";;;AAAA,0FAAwE;AAAhE,wIAAA,oBAAoB,OAAA;AAQ5B,oCAAqE;AAA7D,8GAAA,qBAAqB,OAAA;AAAE,8GAAA,qBAAqB,OAAA","sourcesContent":["export {ThinkingMessageGroup} from './ThinkingMessageGroupWithMarkdown';\n\nexport type {\n ThinkingMessageGroupProps,\n ThinkingStep,\n ThinkingStepStatus,\n ThinkingStepType,\n} from './types';\nexport {thinkingMessageToStep, groupThinkingMessages} from './utils';\nexport type {ThinkingGroupEntry, GroupThinkingMessagesOptions} from './utils';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"../../../../../src","sources":["components/organisms/ThinkingMessageGroup/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;AAEb,2DAA6C;AAE7C,4CAA4C;AAC/B,QAAA,oBAAoB,GAAG,2BAAY,CAAC;AAQjD,yDAA6E;AAArE,qHAAA,qBAAqB,OAAA;AAAE,qHAAA,qBAAqB,OAAA","sourcesContent":["'use client';\n\nimport {ActivityList} from '../ActivityList';\n\n/** @deprecated Use ActivityList instead. */\nexport const ThinkingMessageGroup = ActivityList;\n\nexport type {\n ThinkingMessageGroupProps,\n ThinkingStep,\n ThinkingStepStatus,\n ThinkingStepType,\n} from './types';\nexport {thinkingMessageToStep, groupThinkingMessages} from '../ActivityList';\nexport type {ThinkingGroupEntry, GroupThinkingMessagesOptions} from '../ActivityList';\n"]}
@@ -1,37 +1,9 @@
1
- import type { CSSProperties, ReactNode } from 'react';
2
- import type { ThinkingMessageProps } from "../ThinkingMessage/index.js";
3
- /** Execution state is independent of the application-defined category. */
4
- export type ThinkingStepStatus = 'thinking' | 'thought' | 'error' | 'cancelled' | 'paused';
5
- export interface ThinkingStep {
6
- /** Stable identity across streaming updates. */
7
- id: string;
8
- type: string;
9
- title?: string;
10
- status: ThinkingStepStatus;
11
- /** Paragraphs belonging to this step, not separate actions. */
12
- content?: string | string[];
13
- enabledCopy?: boolean;
14
- onCopyClick?: () => void;
15
- }
16
- export interface ThinkingStepType {
17
- /** Operation icon shown while thinking and after completion; error, paused, and cancelled states use their status icon. */
18
- icon?: ReactNode;
19
- /** Shown only in the expanded history. */
20
- label?: string;
21
- }
22
- export interface ThinkingMessageGroupProps extends Pick<ThinkingMessageProps, 'format' | 'transformOptions' | 'mermaidOptions' | 'openMarkdownLinksInNewTab' | 'mdxOptions' | 'mdxContext' | 'markdownExtraProps' | 'className' | 'qa' | 'style'> {
23
- /** Ordered, accumulated steps supplied by the application. */
24
- steps: readonly ThinkingStep[];
25
- stepTypes?: Readonly<Record<string, ThinkingStepType>>;
26
- /** Defaults to the last step's status. Explicit run status takes precedence. */
27
- status?: ThinkingStepStatus;
28
- /** Defaults to the last thinking step while the group is running. */
29
- activeStepId?: string;
30
- expanded?: boolean;
31
- defaultExpanded?: boolean;
32
- /** Maximum expanded history height. Defaults to 480px; use "none" to disable the limit. */
33
- maxHistoryHeight?: CSSProperties['maxHeight'];
34
- onExpandedChange?: (expanded: boolean) => void;
35
- renderSummary?: (completedSteps: ThinkingStep[]) => ReactNode;
36
- renderStepContent?: (step: ThinkingStep) => ReactNode;
37
- }
1
+ import type { ActivityListProps, ActivityStep, ActivityStepStatus, ActivityStepType } from "../ActivityList/index.js";
2
+ /** @deprecated Use ActivityListProps instead. */
3
+ export type ThinkingMessageGroupProps = ActivityListProps;
4
+ /** @deprecated Use ActivityStep instead. */
5
+ export type ThinkingStep = ActivityStep;
6
+ /** @deprecated Use ActivityStepStatus instead. */
7
+ export type ThinkingStepStatus = ActivityStepStatus;
8
+ /** @deprecated Use ActivityStepType instead. */
9
+ export type ThinkingStepType = ActivityStepType;
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"../../../../../src","sources":["components/organisms/ThinkingMessageGroup/types.ts"],"names":[],"mappings":"","sourcesContent":["import type {CSSProperties, ReactNode} from 'react';\n\nimport type {ThinkingMessageProps} from '../ThinkingMessage';\n\n/** Execution state is independent of the application-defined category. */\nexport type ThinkingStepStatus = 'thinking' | 'thought' | 'error' | 'cancelled' | 'paused';\n\nexport interface ThinkingStep {\n /** Stable identity across streaming updates. */\n id: string;\n type: string;\n title?: string;\n status: ThinkingStepStatus;\n /** Paragraphs belonging to this step, not separate actions. */\n content?: string | string[];\n enabledCopy?: boolean;\n onCopyClick?: () => void;\n}\n\nexport interface ThinkingStepType {\n /** Operation icon shown while thinking and after completion; error, paused, and cancelled states use their status icon. */\n icon?: ReactNode;\n /** Shown only in the expanded history. */\n label?: string;\n}\n\nexport interface ThinkingMessageGroupProps\n extends Pick<\n ThinkingMessageProps,\n | 'format'\n | 'transformOptions'\n | 'mermaidOptions'\n | 'openMarkdownLinksInNewTab'\n | 'mdxOptions'\n | 'mdxContext'\n | 'markdownExtraProps'\n | 'className'\n | 'qa'\n | 'style'\n > {\n /** Ordered, accumulated steps supplied by the application. */\n steps: readonly ThinkingStep[];\n stepTypes?: Readonly<Record<string, ThinkingStepType>>;\n /** Defaults to the last step's status. Explicit run status takes precedence. */\n status?: ThinkingStepStatus;\n /** Defaults to the last thinking step while the group is running. */\n activeStepId?: string;\n expanded?: boolean;\n defaultExpanded?: boolean;\n /** Maximum expanded history height. Defaults to 480px; use \"none\" to disable the limit. */\n maxHistoryHeight?: CSSProperties['maxHeight'];\n onExpandedChange?: (expanded: boolean) => void;\n renderSummary?: (completedSteps: ThinkingStep[]) => ReactNode;\n renderStepContent?: (step: ThinkingStep) => ReactNode;\n}\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"../../../../../src","sources":["components/organisms/ThinkingMessageGroup/types.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n ActivityListProps,\n ActivityStep,\n ActivityStepStatus,\n ActivityStepType,\n} from '../ActivityList';\n\n/** @deprecated Use ActivityListProps instead. */\nexport type ThinkingMessageGroupProps = ActivityListProps;\n\n/** @deprecated Use ActivityStep instead. */\nexport type ThinkingStep = ActivityStep;\n\n/** @deprecated Use ActivityStepStatus instead. */\nexport type ThinkingStepStatus = ActivityStepStatus;\n\n/** @deprecated Use ActivityStepType instead. */\nexport type ThinkingStepType = ActivityStepType;\n"]}
@@ -1,3 +1,4 @@
1
+ export * from "./ActivityList/index.js";
1
2
  export * from "./AssistantMessage/index.js";
2
3
  export * from "./Header/index.js";
3
4
  export * from "./MessageList/index.js";
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./ActivityList/index.js"), exports);
4
5
  // Export all organisms
5
6
  tslib_1.__exportStar(require("./AssistantMessage/index.js"), exports);
6
7
  tslib_1.__exportStar(require("./Header/index.js"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../../../../src","sources":["components/organisms/index.ts"],"names":[],"mappings":";;;AAAA,uBAAuB;AACvB,sEAAmC;AACnC,4DAAyB;AACzB,iEAA8B;AAC9B,iEAA8B;AAC9B,qEAAkC;AAClC,iEAA8B;AAC9B,iEAA8B;AAC9B,sEAAmC;AACnC,sEAAmC;AACnC,0EAAuC","sourcesContent":["// Export all organisms\nexport * from './AssistantMessage';\nexport * from './Header';\nexport * from './MessageList';\nexport * from './PromptInput';\nexport * from './ThinkingMessage';\nexport * from './ToolMessage';\nexport * from './UserMessage';\nexport * from './FileUploadDialog';\nexport * from './AttachmentPicker';\nexport * from './ThinkingMessageGroup';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"../../../../src","sources":["components/organisms/index.ts"],"names":[],"mappings":";;;AAAA,kEAA+B;AAC/B,uBAAuB;AACvB,sEAAmC;AACnC,4DAAyB;AACzB,iEAA8B;AAC9B,iEAA8B;AAC9B,qEAAkC;AAClC,iEAA8B;AAC9B,iEAA8B;AAC9B,sEAAmC;AACnC,sEAAmC;AACnC,0EAAuC","sourcesContent":["export * from './ActivityList';\n// Export all organisms\nexport * from './AssistantMessage';\nexport * from './Header';\nexport * from './MessageList';\nexport * from './PromptInput';\nexport * from './ThinkingMessage';\nexport * from './ToolMessage';\nexport * from './UserMessage';\nexport * from './FileUploadDialog';\nexport * from './AttachmentPicker';\nexport * from './ThinkingMessageGroup';\n"]}
@@ -3,6 +3,8 @@ export type { MarkdownProviderProps } from "../markdown/MarkdownProvider.js";
3
3
  export type { MarkdownRendererProps, MarkdownRendererMdxOptions, MermaidOptions, } from "../markdown/types.js";
4
4
  export * from "../components/organisms/UserMessage/UserMessage.js";
5
5
  export * from "../components/organisms/ThinkingMessage/ThinkingMessage.js";
6
+ export * from "../components/organisms/ActivityList/ActivityList.js";
7
+ export type * from "../components/organisms/ActivityList/types.js";
6
8
  export * from "../components/organisms/ThinkingMessageGroup/ThinkingMessageGroup.js";
7
9
  export * from "../components/organisms/AssistantMessage/AssistantMessage.js";
8
10
  export * from "../components/organisms/MessageList/MessageList.js";
@@ -12,7 +14,7 @@ export * from "../components/pages/AIStudioChat/AIStudioChat.js";
12
14
  export type * from "../components/pages/ChatContainer/types.js";
13
15
  export type * from "../components/pages/AIStudioChat/types.js";
14
16
  export type * from "../components/organisms/ThinkingMessageGroup/types.js";
15
- export * from "../components/organisms/ThinkingMessageGroup/utils.js";
17
+ export * from "../components/organisms/ActivityList/utils.js";
16
18
  export * from "../types/index.js";
17
19
  export * from "../adapters/index.js";
18
20
  export * from "../hooks/index.js";
@@ -8,13 +8,14 @@ Object.defineProperty(exports, "MarkdownProvider", { enumerable: true, get: func
8
8
  // renderer and would pull Diplodoc into the custom-markdown entry's dependency graph.
9
9
  tslib_1.__exportStar(require("../components/organisms/UserMessage/UserMessage.js"), exports);
10
10
  tslib_1.__exportStar(require("../components/organisms/ThinkingMessage/ThinkingMessage.js"), exports);
11
+ tslib_1.__exportStar(require("../components/organisms/ActivityList/ActivityList.js"), exports);
11
12
  tslib_1.__exportStar(require("../components/organisms/ThinkingMessageGroup/ThinkingMessageGroup.js"), exports);
12
13
  tslib_1.__exportStar(require("../components/organisms/AssistantMessage/AssistantMessage.js"), exports);
13
14
  tslib_1.__exportStar(require("../components/organisms/MessageList/MessageList.js"), exports);
14
15
  tslib_1.__exportStar(require("../components/templates/ChatContent/ChatContent.js"), exports);
15
16
  tslib_1.__exportStar(require("../components/pages/ChatContainer/ChatContainer.js"), exports);
16
17
  tslib_1.__exportStar(require("../components/pages/AIStudioChat/AIStudioChat.js"), exports);
17
- tslib_1.__exportStar(require("../components/organisms/ThinkingMessageGroup/utils.js"), exports);
18
+ tslib_1.__exportStar(require("../components/organisms/ActivityList/utils.js"), exports);
18
19
  tslib_1.__exportStar(require("../types/index.js"), exports);
19
20
  tslib_1.__exportStar(require("../adapters/index.js"), exports);
20
21
  tslib_1.__exportStar(require("../hooks/index.js"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../../../src","sources":["custom-markdown/index.ts"],"names":[],"mappings":";;;;AAAA,oEAA8D;AAAtD,oHAAA,gBAAgB,OAAA;AAQxB,yFAAyF;AACzF,sFAAsF;AACtF,6FAAgE;AAChE,qGAAwE;AACxE,+GAAkF;AAClF,uGAA0E;AAC1E,6FAAgE;AAChE,6FAAgE;AAChE,6FAAgE;AAChE,2FAA8D;AAI9D,gGAAmE;AACnE,4DAAyB;AACzB,+DAA4B;AAC5B,4DAAyB;AACzB,4DAAyB","sourcesContent":["export {MarkdownProvider} from '../markdown/MarkdownProvider';\nexport type {MarkdownProviderProps} from '../markdown/MarkdownProvider';\nexport type {\n MarkdownRendererProps,\n MarkdownRendererMdxOptions,\n MermaidOptions,\n} from '../markdown/types';\n\n// Export implementations directly: public component barrels attach the built-in Markdown\n// renderer and would pull Diplodoc into the custom-markdown entry's dependency graph.\nexport * from '../components/organisms/UserMessage/UserMessage';\nexport * from '../components/organisms/ThinkingMessage/ThinkingMessage';\nexport * from '../components/organisms/ThinkingMessageGroup/ThinkingMessageGroup';\nexport * from '../components/organisms/AssistantMessage/AssistantMessage';\nexport * from '../components/organisms/MessageList/MessageList';\nexport * from '../components/templates/ChatContent/ChatContent';\nexport * from '../components/pages/ChatContainer/ChatContainer';\nexport * from '../components/pages/AIStudioChat/AIStudioChat';\nexport type * from '../components/pages/ChatContainer/types';\nexport type * from '../components/pages/AIStudioChat/types';\nexport type * from '../components/organisms/ThinkingMessageGroup/types';\nexport * from '../components/organisms/ThinkingMessageGroup/utils';\nexport * from '../types';\nexport * from '../adapters';\nexport * from '../hooks';\nexport * from '../utils';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"../../../src","sources":["custom-markdown/index.ts"],"names":[],"mappings":";;;;AAAA,oEAA8D;AAAtD,oHAAA,gBAAgB,OAAA;AAQxB,yFAAyF;AACzF,sFAAsF;AACtF,6FAAgE;AAChE,qGAAwE;AACxE,+FAAkE;AAElE,+GAAkF;AAClF,uGAA0E;AAC1E,6FAAgE;AAChE,6FAAgE;AAChE,6FAAgE;AAChE,2FAA8D;AAI9D,wFAA2D;AAC3D,4DAAyB;AACzB,+DAA4B;AAC5B,4DAAyB;AACzB,4DAAyB","sourcesContent":["export {MarkdownProvider} from '../markdown/MarkdownProvider';\nexport type {MarkdownProviderProps} from '../markdown/MarkdownProvider';\nexport type {\n MarkdownRendererProps,\n MarkdownRendererMdxOptions,\n MermaidOptions,\n} from '../markdown/types';\n\n// Export implementations directly: public component barrels attach the built-in Markdown\n// renderer and would pull Diplodoc into the custom-markdown entry's dependency graph.\nexport * from '../components/organisms/UserMessage/UserMessage';\nexport * from '../components/organisms/ThinkingMessage/ThinkingMessage';\nexport * from '../components/organisms/ActivityList/ActivityList';\nexport type * from '../components/organisms/ActivityList/types';\nexport * from '../components/organisms/ThinkingMessageGroup/ThinkingMessageGroup';\nexport * from '../components/organisms/AssistantMessage/AssistantMessage';\nexport * from '../components/organisms/MessageList/MessageList';\nexport * from '../components/templates/ChatContent/ChatContent';\nexport * from '../components/pages/ChatContainer/ChatContainer';\nexport * from '../components/pages/AIStudioChat/AIStudioChat';\nexport type * from '../components/pages/ChatContainer/types';\nexport type * from '../components/pages/AIStudioChat/types';\nexport type * from '../components/organisms/ThinkingMessageGroup/types';\nexport * from '../components/organisms/ActivityList/utils';\nexport * from '../types';\nexport * from '../adapters';\nexport * from '../hooks';\nexport * from '../utils';\n"]}
@@ -1 +1 @@
1
- {"version":"3.5.0","type":"commonjs","sideEffects":["*.css","*.scss"]}
1
+ {"version":"3.6.0","type":"commonjs","sideEffects":["*.css","*.scss"]}
@@ -138,6 +138,7 @@ function App() {
138
138
  - [molecules/ToolFooter](./components/molecules/ToolFooter.md) — Footer component for tool messages with action buttons and status message
139
139
  - [molecules/ToolHeader](./components/molecules/ToolHeader.md) — Header component for tool messages with icon, name, actions, and status indicators
140
140
  - [molecules/ToolStatus](./components/molecules/ToolStatus.md) — Component for displaying tool status with indicators and localized text
141
+ - [organisms/ActivityList](./components/organisms/ActivityList.md) — Compact progress and expandable history of reasoning, tool activity and other application-supplied steps.
141
142
  - [organisms/AssistantMessage](./components/organisms/AssistantMessage.md) — Component for rendering assistant messages with support for multiple message parts and custom renderers. Built on top of BaseMessage component with assistant variant styling.
142
143
  - [organisms/AttachmentPicker](./components/organisms/AttachmentPicker.md) — A paperclip button that opens a file upload dialog.
143
144
  - [organisms/FileUploadDialog](./components/organisms/FileUploadDialog.md) — A dialog with a drag-and-drop zone and a list of queued/uploaded files. Pure UI — upload logic is wired externally via useFileUploadStore.
@@ -146,7 +147,7 @@ function App() {
146
147
  - [organisms/PromptInput](./components/organisms/PromptInput.md) — A flexible input component for chat interfaces with support for simple and full views, expandable panels, attachments, suggestions, and more.
147
148
  - [organisms/RunActivity](./components/organisms/RunActivity.md) — Presentational ordered run history with explicit state and duration.
148
149
  - [organisms/ThinkingMessage](./components/organisms/ThinkingMessage.md) — A message component that displays AI thinking process with collapsible content and a status indicator.
149
- - [organisms/ThinkingMessageGroup](./components/organisms/ThinkingMessageGroup.md) — Compact progress and expandable reasoning history for one or more application-supplied steps.
150
+ - [organisms/ThinkingMessageGroup](./components/organisms/ThinkingMessageGroup.md) — Compatibility alias for the ActivityList component.
150
151
  - [organisms/ToolMessage](./components/organisms/ToolMessage.md) — Complete tool message component with automatic expand/collapse functionality and status-based behavior
151
152
  - [organisms/UserMessage](./components/organisms/UserMessage.md) — Component for rendering a user message in a chat interface.
152
153
  - [pages/AgentChat](./components/pages/AgentChat.md) — Agent chat composition with host-owned messages and configuration.
@@ -0,0 +1,204 @@
1
+ # ActivityList
2
+
3
+ Compact progress and expandable history of reasoning, tool activity and other application-supplied steps.
4
+
5
+ ## Features
6
+
7
+ - **Incremental adoption**: render existing thinking data without changing its public types or backend schema.
8
+ - **Controlled history**: preserve step order and identity; the application supplies accumulated data and run status.
9
+ - **Configurable categories**: pass any type and optional icon/label through `stepTypes`.
10
+ - **Text-only animation**: only the current running label pulses; icons remain static and reduced motion is respected.
11
+ - **Details and copy**: plain text, Markdown, custom content and per-step copy actions.
12
+ - **Stable expansion**: uncontrolled or controlled disclosure stays open during streaming updates.
13
+
14
+ ## Usage
15
+
16
+ ### Enable the new view for existing messages
17
+
18
+ ```tsx
19
+ <ChatContainer
20
+ {...chatProps}
21
+ messageListConfig={{...messageListConfig, thinkingMessageView: 'grouped'}}
22
+ />
23
+ ```
24
+
25
+ `MessageList` and `AssistantMessage` also accept `thinkingMessageView="grouped"`.
26
+ The default remains the legacy view. Adjacent thinking parts **inside the same assistant message**
27
+ become one group. Text, tools and custom content remain in order and break groups.
28
+ An existing custom `messageRendererRegistry.thinking` takes precedence: remove that override to
29
+ use automatic grouping, or explicitly render `ActivityList` in your custom renderer.
30
+ Markdown configuration is forwarded. The new view starts collapsed; it does not inherit individual
31
+ legacy `defaultExpanded` or `showStatusIndicator` settings.
32
+
33
+ ### Replace a custom thinking renderer
34
+
35
+ ```tsx
36
+ import {ActivityList, thinkingMessageToStep} from '@gravity-ui/aikit/ActivityList';
37
+
38
+ <ActivityList
39
+ steps={[thinkingMessageToStep(messageId, part.data)]}
40
+ format="markdown"
41
+ openMarkdownLinksInNewTab
42
+ />;
43
+ ```
44
+
45
+ Use a stable ID scoped to the response. One legacy message becomes one step, even when its
46
+ `content` is an array of paragraphs. Titles, contents, statuses and copy callbacks are preserved.
47
+ No category or action name is inferred from reasoning text. Without a title, details are shown directly; an empty step is represented by its status indicator.
48
+
49
+ ### Supply structured steps
50
+
51
+ ```tsx
52
+ import {Magnifier} from '@gravity-ui/icons';
53
+ import {Icon} from '@gravity-ui/uikit';
54
+ import {ActivityList} from '@gravity-ui/aikit/ActivityList';
55
+
56
+ <ActivityList
57
+ steps={[
58
+ {id: 'analyze', type: 'reasoning', title: 'Analyzed the request', status: 'thought'},
59
+ {id: 'search', type: 'search', title: 'Searching documentation', status: 'thinking'},
60
+ ]}
61
+ iconMode="type"
62
+ stepTypes={{search: {icon: <Icon data={Magnifier} size={16} />, label: 'Documentation search'}}}
63
+ status="thinking"
64
+ activeStepId="search"
65
+ />;
66
+ ```
67
+
68
+ Types have no fixed enum. With `iconMode="type"`, running and completed steps keep their category icon, or a static dot when none is supplied. Error, paused and cancelled steps use their status icon instead. Category labels appear
69
+ only in the expanded history. Applications choose icons; the component does not map backend event
70
+ names to icons. Details can be omitted when the backend does not supply them.
71
+
72
+ ### Configure progress presentation
73
+
74
+ ```tsx
75
+ <ActivityList
76
+ steps={steps}
77
+ iconMode="status"
78
+ activeStepLabel="Checking database clusters"
79
+ format="markdown"
80
+ />
81
+ ```
82
+
83
+ The component uses `body-1` typography by default. The top-level heading uses primary text.
84
+ Step titles use primary text with the `body-1` accent weight. Descriptions, including the running
85
+ step and Markdown inside a mobile chat, use secondary text. Only the running heading pulses.
86
+ Error indicators use the danger color. Completed steps stay neutral, not green.
87
+
88
+ In expanded history, a supplied `title` is displayed above the details. Without a title, details
89
+ are displayed directly, without a repeated "In progress" or "Completed" heading. A step with
90
+ neither a title nor details displays only its status icon; when icons are hidden, a localized
91
+ status label keeps it identifiable. Status text is never substituted for a step title, and no
92
+ title is generated from content.
93
+
94
+ When `iconMode` is omitted, running and completed steps use their application-provided
95
+ category icon, falling back to a static clock or check when no icon is supplied. Existing
96
+ `stepTypes` configurations continue to work without adding a new prop.
97
+
98
+ `iconMode="status"` explicitly ignores category icons and uses a static clock while running
99
+ and a check after completion.
100
+ `iconMode="type"` uses application-provided category icons for running/completed steps,
101
+ falling back to a dot. Error, paused and cancelled states keep their dedicated status icons.
102
+ `iconMode="none"` removes icons and the timeline gutter; accessible statuses remain, and
103
+ exceptional states retain a visible status label. Custom icons can supply their own colors.
104
+ The completed group heading does not add another checkmark above the step icons.
105
+
106
+ Use `activeStepLabel` for an application-supplied plain-text heading while running. It takes
107
+ precedence over the active step title, is truncated visually and is available in full on hover.
108
+ When omitted, the active title or localized run status is used. It does not replace stored content
109
+ or affect the completed summary (`renderSummary`).
110
+
111
+ This presentation also applies automatically with `thinkingMessageView="grouped"`.
112
+ To customize icons or the running heading inside a chat, render `ActivityList` through
113
+ the existing custom thinking renderer, as in the example above.
114
+
115
+ ## Props
116
+
117
+ | Prop | Type | Required | Default | Description |
118
+ | -------------------------- | ----------------------------------------------- | -------- | -------------------------------- | ------------------------------------------------------------------ |
119
+ | `steps` | `readonly ActivityStep[]` | Yes | — | Accumulated, ordered steps with stable unique IDs |
120
+ | `iconMode` | `'type' \| 'status' \| 'none'` | No | Category icon or status icon | Category icons, execution-state icons, or no icons/timeline |
121
+ | `activeStepLabel` | `string` | No | Active title or localized status | Plain-text override of the running heading |
122
+ | `stepTypes` | `Record<string, ActivityStepType>` | No | — | Category icons and labels |
123
+ | `status` | `ActivityStepStatus` | No | Last step status | Overall run status, independent of stored step statuses |
124
+ | `activeStepId` | `string` | No | Last thinking step | Select the active step explicitly |
125
+ | `expanded` | `boolean` | No | — | Controlled expansion |
126
+ | `defaultExpanded` | `boolean` | No | `false` | Initial uncontrolled expansion |
127
+ | `maxHistoryHeight` | `CSSProperties['maxHeight']` | No | `480` | Maximum expanded history height; use `"none"` to disable the limit |
128
+ | `onExpandedChange` | `(expanded: boolean) => void` | No | — | Disclosure change callback |
129
+ | `renderSummary` | `(completedSteps: ActivityStep[]) => ReactNode` | No | Completed count | Optional summary; null, false and empty string hide it |
130
+ | `renderStepContent` | `(step: ActivityStep) => ReactNode` | No | Content renderer | Custom details |
131
+ | `format` | `'plain' \| 'markdown'` | No | `'plain'` | Content format |
132
+ | `className`, `style`, `qa` | Standard DOM/QA props | No | — | Root customization |
133
+
134
+ Markdown options match `ThinkingMessage`: `transformOptions`, `mermaidOptions`,
135
+ `openMarkdownLinksInNewTab`, `mdxOptions`, `mdxContext`, `markdownExtraProps`.
136
+
137
+ `ActivityStep` contains `id`, `type`, `status`, optional `title`, `content`, `enabledCopy` and
138
+ `onCopyClick`. Copy is available for non-running steps; a custom callback takes precedence.
139
+ `ActivityStepStatus` is `thinking | thought | error | cancelled | paused`.
140
+ An empty group renders nothing. A single completed step remains expandable so its title is accessible.
141
+
142
+ ## Group separate messages safely
143
+
144
+ `groupThinkingMessages(items, {getStep, getGroupKey})` is a pure view transformation. It returns
145
+ `{type: 'item', item, index}` entries or `{type: 'thinking-group', id, groupKey, items, steps}` entries.
146
+ It retains source objects and individual step IDs/content/statuses without merging text or mutating history.
147
+
148
+ ```tsx
149
+ const entries = groupThinkingMessages(messages, {
150
+ getStep: (message) => {
151
+ // Only group whole messages containing exactly one thinking part.
152
+ if (message.role !== 'assistant' || !Array.isArray(message.content)) return undefined;
153
+ if (message.content.length !== 1 || message.content[0].type !== 'thinking') return undefined;
154
+ if (!message.id) return undefined;
155
+ return thinkingMessageToStep(message.id, message.content[0].data);
156
+ },
157
+ getGroupKey: (message) => {
158
+ const runId = message.metadata?.runId;
159
+ return typeof runId === 'string' ? JSON.stringify([threadId, runId]) : undefined;
160
+ },
161
+ });
162
+ ```
163
+
164
+ Supply a key that uniquely identifies a chat and response/run; use a new key for a retry.
165
+ An undefined key leaves a thinking item in its own group. Non-thinking items and key changes break
166
+ the group. Non-adjacent items are never combined. Render each group with `key={entry.id}` and
167
+ `steps={entry.steps}`. The generated ID depends on the scope and first step, so appending steps or
168
+ updating details does not remount it. Provide stable unique IDs; index fallbacks in automatic
169
+ part grouping are suitable only for append-only content arrays.
170
+
171
+ Cross-message grouping is deliberately application-controlled: AIKit cannot infer run boundaries
172
+ from adjacency or generic metadata. Streaming delta accumulation remains the adapter's job.
173
+ The component does not infer cancellation/failure from completion; pass the actual run status.
174
+
175
+ ## Migration
176
+
177
+ `ActivityList` is the new name of `ThinkingMessageGroup`. The old component and its types
178
+ remain deprecated aliases with the same implementation and props. Both root imports and
179
+ `@gravity-ui/aikit/ThinkingMessageGroup` remain supported. To migrate, replace the component
180
+ name and import path with `ActivityList`; replace `ThinkingStep`, `ThinkingStepStatus` and
181
+ `ThinkingStepType` with `ActivityStep`, `ActivityStepStatus` and `ActivityStepType`.
182
+
183
+ The status values (`thinking`, `thought`, `error`, `cancelled`, `paused`), grouping helpers
184
+ and `thinkingMessageView="grouped"` option are unchanged. `pending` and `blocked` are not
185
+ supported statuses. Activity categories remain application-defined strings, including
186
+ `reasoning`, `search` or custom tool names.
187
+
188
+ `ThinkingMessage` is deprecated in favor of this component, with removal planned for the next major
189
+ release. Its implementation, props and `ThinkingMessageContentData` remain compatible in the current
190
+ major. There are no runtime warnings and no automatic switch of the default view.
191
+
192
+ ## Accessibility
193
+
194
+ Disclosure uses a keyboard-accessible UIKit button with `aria-expanded` and `aria-controls`.
195
+ History uses an ordered list, statuses have accessible labels, and copy buttons have localized labels.
196
+ Expansion is not reset on updates. `prefers-reduced-motion` disables the text pulse.
197
+
198
+ ## Styling
199
+
200
+ Uses semantic Gravity UI color, spacing and typography tokens in both themes.
201
+ The existing `g-aikit-thinking-message-group` CSS classes and i18n namespace are preserved
202
+ for compatibility with integrations using the previous component name.
203
+ `--g-aikit-thinking-message-group-pulse-duration` controls the text pulse duration (default `1.5s`).
204
+ Long headings are truncated with a title tooltip; details wrap inside narrow containers.
@@ -191,7 +191,7 @@ The component uses CSS variables for theming:
191
191
  ## Compact thinking history
192
192
 
193
193
  Set `thinkingMessageView="grouped"` to display adjacent legacy thinking parts inside each assistant
194
- message with [ThinkingMessageGroup](./ThinkingMessageGroup.md). The default remains
194
+ message with [ActivityList](./ActivityList.md). The default remains
195
195
  `"default"`. Existing custom thinking renderers take precedence. Separate messages are not
196
196
  automatically grouped across run boundaries.
197
197
 
@@ -428,7 +428,7 @@ assistant-message column.
428
428
  ## Compact thinking history
429
429
 
430
430
  Set `thinkingMessageView="grouped"` to display adjacent legacy thinking parts inside each assistant
431
- message with [ThinkingMessageGroup](./ThinkingMessageGroup.md). The default remains
431
+ message with [ActivityList](./ActivityList.md). The default remains
432
432
  `"default"`. Existing custom thinking renderers take precedence. Separate messages are not
433
433
  automatically grouped across run boundaries.
434
434
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  A message component that displays AI thinking process with collapsible content and a status indicator.
4
4
 
5
- > Deprecated: use [ThinkingMessageGroup](./ThinkingMessageGroup.md). Removal is planned for the next major release. Existing props and data types remain supported in this major.
5
+ > Deprecated: use [ActivityList](./ActivityList.md). Removal is planned for the next major release. Existing props and data types remain supported in this major.
6
6
 
7
7
  ## Features
8
8