@ant-design/agentic-ui 2.30.10 → 2.30.12
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/dist/Bubble/MessagesContent/style.js +3 -1
- package/dist/Bubble/style.js +35 -13
- package/dist/ChatLayout/index.js +9 -1
- package/dist/ChatLayout/style.js +16 -13
- package/dist/Components/ActionIconBox/index.js +4 -0
- package/dist/Components/Button/IconButton/style.js +1 -1
- package/dist/Components/Button/ToggleButton/style.js +1 -1
- package/dist/History/components/HistoryList.d.ts +2 -12
- package/dist/History/components/HistoryList.js +48 -43
- package/dist/History/style.d.ts +4 -0
- package/dist/History/style.js +3 -2
- package/dist/Hooks/useAutoScroll.js +38 -14
- package/dist/Hooks/useLanguage.d.ts +1 -0
- package/dist/I18n/locales.d.ts +1 -0
- package/dist/I18n/locales.js +2 -0
- package/dist/MarkdownEditor/BaseMarkdownEditor.js +2 -1
- package/dist/MarkdownEditor/editor/Editor.js +22 -6
- package/dist/MarkdownEditor/editor/elements/AgenticUiBlocks/AgenticUiFileMapBlock.d.ts +4 -0
- package/dist/MarkdownEditor/editor/elements/AgenticUiBlocks/AgenticUiFileMapBlock.js +83 -0
- package/dist/MarkdownEditor/editor/elements/AgenticUiBlocks/agenticUiEmbedUtils.d.ts +10 -0
- package/dist/MarkdownEditor/editor/elements/AgenticUiBlocks/agenticUiEmbedUtils.js +44 -0
- package/dist/MarkdownEditor/editor/elements/Paragraph/index.js +27 -5
- package/dist/MarkdownEditor/editor/elements/index.js +3 -0
- package/dist/MarkdownEditor/editor/parser/parse/parseCode.js +2 -1
- package/dist/MarkdownEditor/editor/parser/parserSlateNodeToMarkdown.js +1 -0
- package/dist/MarkdownEditor/editor/plugins/handlePaste.js +2 -1
- package/dist/MarkdownEditor/editor/style.js +7 -3
- package/dist/MarkdownEditor/editor/tools/JinjaTemplatePanel/index.js +2 -2
- package/dist/MarkdownEditor/types.d.ts +10 -0
- package/dist/MarkdownInputField/AttachmentButton/AttachmentFileList/AttachmentFileIcon.js +1 -1
- package/dist/MarkdownInputField/AttachmentButton/AttachmentFileList/style.js +3 -3
- package/dist/MarkdownInputField/FileMapView/style.js +3 -2
- package/dist/MarkdownInputField/SkillModeBar/style.js +1 -1
- package/dist/MarkdownInputField/style.js +1 -1
- package/dist/MarkdownRenderer/MarkdownRenderer.js +10 -2
- package/dist/MarkdownRenderer/index.d.ts +4 -1
- package/dist/MarkdownRenderer/index.js +3 -0
- package/dist/MarkdownRenderer/markdownReactShared.d.ts +35 -28
- package/dist/MarkdownRenderer/markdownReactShared.js +179 -58
- package/dist/MarkdownRenderer/renderers/AgenticUiFileMapBlockRenderer.d.ts +6 -0
- package/dist/MarkdownRenderer/renderers/AgenticUiFileMapBlockRenderer.js +79 -0
- package/dist/MarkdownRenderer/renderers/index.d.ts +3 -0
- package/dist/MarkdownRenderer/renderers/index.js +3 -0
- package/dist/MarkdownRenderer/streaming/useStreamingMarkdownReact.js +3 -2
- package/dist/MarkdownRenderer/types.d.ts +21 -0
- package/dist/MarkdownRenderer/useStreaming.js +40 -13
- package/dist/Plugins/chart/components/ChartContainer/ChartErrorBoundary.d.ts +2 -0
- package/dist/Plugins/code/components/CodeRenderer.js +22 -6
- package/dist/Plugins/code/components/CodeToolbar.d.ts +2 -0
- package/dist/Plugins/code/components/CodeToolbar.js +11 -4
- package/dist/Plugins/code/hooks/useToolbarConfig.d.ts +3 -1
- package/dist/Plugins/code/hooks/useToolbarConfig.js +5 -3
- package/dist/Plugins/code/utils/index.d.ts +1 -0
- package/dist/Plugins/code/utils/index.js +1 -0
- package/dist/Plugins/code/utils/localPreview.d.ts +12 -0
- package/dist/Plugins/code/utils/localPreview.js +190 -0
- package/dist/ThoughtChainList/style.js +1 -1
- package/dist/ToolUseBarThink/style.js +1 -1
- package/dist/Workspace/Browser/index.d.ts +6 -0
- package/dist/Workspace/Browser/index.js +22 -13
- package/dist/Workspace/Browser/style.js +14 -15
- package/dist/Workspace/File/FileComponent.js +4 -4
- package/dist/Workspace/File/PreviewComponent.js +4 -4
- package/dist/Workspace/File/style.js +33 -39
- package/dist/Workspace/RealtimeFollow/style.js +78 -85
- package/dist/Workspace/style.js +41 -53
- package/package.json +1 -2
|
@@ -52,12 +52,12 @@ function _object_spread_props(target, source) {
|
|
|
52
52
|
}
|
|
53
53
|
import { useEditorStyleRegister } from "../../Hooks/useStyle";
|
|
54
54
|
var genStyle = function genStyle(token) {
|
|
55
|
-
var _obj, _obj1, _obj2, _obj3, _obj4, _obj5;
|
|
56
|
-
return _define_property({}, "".concat(token.componentCls), (
|
|
55
|
+
var _obj, _obj1, _obj2, _obj3, _obj4, _obj5, _obj6, _obj7;
|
|
56
|
+
return _define_property({}, "".concat(token.componentCls), (_obj7 = {}, _define_property(_obj7, "&-container", {
|
|
57
57
|
display: 'flex',
|
|
58
58
|
flexDirection: 'column',
|
|
59
59
|
height: '100%'
|
|
60
|
-
}), _define_property(
|
|
60
|
+
}), _define_property(_obj7, "&-header", (_obj3 = {
|
|
61
61
|
display: 'flex',
|
|
62
62
|
alignItems: 'center',
|
|
63
63
|
justifyContent: 'space-between',
|
|
@@ -66,7 +66,7 @@ var genStyle = function genStyle(token) {
|
|
|
66
66
|
marginRight: '-12px',
|
|
67
67
|
borderBottom: '1px solid var(--color-gray-border-light)'
|
|
68
68
|
}, // 返回按钮
|
|
69
|
-
_define_property(
|
|
69
|
+
_define_property(_obj3, "&-back-button", {
|
|
70
70
|
display: 'flex',
|
|
71
71
|
alignItems: 'center',
|
|
72
72
|
justifyContent: 'center',
|
|
@@ -83,11 +83,11 @@ var genStyle = function genStyle(token) {
|
|
|
83
83
|
background: '#f0f0f0'
|
|
84
84
|
}
|
|
85
85
|
}), // 返回图标
|
|
86
|
-
_define_property(
|
|
86
|
+
_define_property(_obj3, "&-back-icon", {
|
|
87
87
|
fontSize: '16px'
|
|
88
|
-
}), _define_property(
|
|
88
|
+
}), _define_property(_obj3, "&-with-border", {
|
|
89
89
|
borderBottom: '1px solid rgba(20, 22, 28, 0.07)'
|
|
90
|
-
}), _define_property(
|
|
90
|
+
}), _define_property(_obj3, "&-with-back", _define_property({}, "".concat(token.componentCls, "-header-icon"), (_obj = {}, _define_property(_obj, "&--html", {
|
|
91
91
|
width: '16px',
|
|
92
92
|
height: '16px',
|
|
93
93
|
background: 'transparent'
|
|
@@ -95,14 +95,14 @@ var genStyle = function genStyle(token) {
|
|
|
95
95
|
width: '16px',
|
|
96
96
|
height: '16px',
|
|
97
97
|
background: 'transparent'
|
|
98
|
-
}), _obj))), _define_property(
|
|
98
|
+
}), _obj))), _define_property(_obj3, "&-left", {
|
|
99
99
|
display: 'flex',
|
|
100
100
|
alignItems: 'center',
|
|
101
101
|
gap: '8px',
|
|
102
102
|
flex: 1,
|
|
103
103
|
minWidth: 0,
|
|
104
104
|
overflow: 'hidden'
|
|
105
|
-
}), _define_property(
|
|
105
|
+
}), _define_property(_obj3, "&-icon", (_obj1 = {
|
|
106
106
|
display: 'flex',
|
|
107
107
|
alignItems: 'center',
|
|
108
108
|
justifyContent: 'center',
|
|
@@ -122,18 +122,18 @@ var genStyle = function genStyle(token) {
|
|
|
122
122
|
width: '40px',
|
|
123
123
|
height: '40px',
|
|
124
124
|
background: 'linear-gradient(180deg, #EAEEF4, #F4F6F9)'
|
|
125
|
-
}), _obj1)), _define_property(
|
|
125
|
+
}), _obj1)), _define_property(_obj3, "&-content", {
|
|
126
126
|
display: 'flex',
|
|
127
127
|
alignItems: 'center',
|
|
128
128
|
gap: '12px',
|
|
129
129
|
minWidth: 0
|
|
130
|
-
}), _define_property(
|
|
130
|
+
}), _define_property(_obj3, "&-title-wrapper", {
|
|
131
131
|
display: 'flex',
|
|
132
132
|
flexDirection: 'column',
|
|
133
133
|
gap: '-4px',
|
|
134
134
|
flex: 1,
|
|
135
135
|
minWidth: 0
|
|
136
|
-
}), _define_property(
|
|
136
|
+
}), _define_property(_obj3, "&-title", {
|
|
137
137
|
display: 'flex',
|
|
138
138
|
alignItems: 'center',
|
|
139
139
|
gap: '4px',
|
|
@@ -143,7 +143,7 @@ var genStyle = function genStyle(token) {
|
|
|
143
143
|
lineHeight: '22px',
|
|
144
144
|
letterSpacing: 'normal',
|
|
145
145
|
color: 'var(--color-gray-text-default)'
|
|
146
|
-
}), _define_property(
|
|
146
|
+
}), _define_property(_obj3, "&-subtitle", {
|
|
147
147
|
fontSize: 'var(--font-size-sm)',
|
|
148
148
|
fontWeight: 'normal',
|
|
149
149
|
color: 'var(--color-gray-text-secondary)',
|
|
@@ -155,31 +155,29 @@ var genStyle = function genStyle(token) {
|
|
|
155
155
|
whiteSpace: 'nowrap',
|
|
156
156
|
overflow: 'hidden',
|
|
157
157
|
textOverflow: 'ellipsis'
|
|
158
|
-
}), _define_property(
|
|
158
|
+
}), _define_property(_obj3, "&-right", (_obj2 = {
|
|
159
159
|
display: 'flex',
|
|
160
|
-
alignItems: 'center'
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
'
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
}), // Segmented 右侧额外内容容器
|
|
168
|
-
_define_property(_obj2, "&-segmented-right", {
|
|
160
|
+
alignItems: 'center'
|
|
161
|
+
}, _define_property(_obj2, "".concat(token.antCls, "-segmented"), {
|
|
162
|
+
borderRadius: 'var(--radius-control-base)'
|
|
163
|
+
}), _define_property(_obj2, "".concat(token.antCls, "-segmented-item-selected "), {
|
|
164
|
+
borderRadius: 'var(--radius-control-base)'
|
|
165
|
+
}), _obj2)), // Segmented 右侧额外内容容器
|
|
166
|
+
_define_property(_obj3, "&-segmented-right", {
|
|
169
167
|
display: 'flex',
|
|
170
168
|
alignItems: 'center',
|
|
171
169
|
justifyContent: 'center',
|
|
172
170
|
gap: '8px'
|
|
173
|
-
}),
|
|
171
|
+
}), _obj3)), _define_property(_obj7, "&--shell", (_obj4 = {
|
|
174
172
|
height: 'calc(100% + 16px)',
|
|
175
173
|
paddingTop: 0,
|
|
176
174
|
paddingBottom: 0,
|
|
177
175
|
margin: '0 -12px -16px'
|
|
178
|
-
}, _define_property(
|
|
176
|
+
}, _define_property(_obj4, "".concat(token.componentCls, "-header"), {
|
|
179
177
|
marginBottom: 0,
|
|
180
178
|
marginLeft: 0,
|
|
181
179
|
marginRight: 0
|
|
182
|
-
}), _define_property(
|
|
180
|
+
}), _define_property(_obj4, "".concat(token.componentCls, "-content"), _define_property({
|
|
183
181
|
width: 'unset',
|
|
184
182
|
margin: 0,
|
|
185
183
|
flex: 1,
|
|
@@ -230,83 +228,78 @@ var genStyle = function genStyle(token) {
|
|
|
230
228
|
'.code-editor-content': {
|
|
231
229
|
padding: 0,
|
|
232
230
|
background: 'transparent'
|
|
233
|
-
},
|
|
234
|
-
'.ant-empty-description': {
|
|
235
|
-
color: '#d9d9d9'
|
|
236
231
|
}
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
}), _define_property(
|
|
232
|
+
}, "".concat(token.antCls, "-empty-description"), {
|
|
233
|
+
color: '#d9d9d9'
|
|
234
|
+
})), _obj4)), _define_property(_obj7, "&--markdown", _define_property({}, "".concat(token.antCls, '-agentic-md-editor-content div[data-be="paragraph"]:last-child'), {
|
|
235
|
+
paddingBottom: '16px',
|
|
236
|
+
color: 'var(--color-gray-text-light)',
|
|
237
|
+
font: 'var(--font-text-code-base)',
|
|
238
|
+
letterSpacing: 'var(--letter-spacing-code-base, normal)'
|
|
239
|
+
})), _define_property(_obj7, "&-content", (_obj5 = {
|
|
245
240
|
position: 'relative',
|
|
246
241
|
width: 'auto',
|
|
247
242
|
height: 'calc(100% - 72px)',
|
|
248
243
|
overflow: 'auto',
|
|
249
|
-
margin: '0 -12px'
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
},
|
|
259
|
-
'.code-editor-container': {
|
|
260
|
-
maxHeight: '100%',
|
|
261
|
-
borderRadius: 'var(--radius-card-base)',
|
|
262
|
-
'.code-editor-content': {
|
|
263
|
-
padding: '0!important',
|
|
264
|
-
'.ace_gutter': {
|
|
265
|
-
color: 'var(--color-gray-text-light)',
|
|
266
|
-
font: 'var(--font-text-code-base)',
|
|
267
|
-
letterSpacing: 'var(--letter-spacing-code-base, normal)',
|
|
268
|
-
background: 'var(--color-gray-bg-card-white)'
|
|
269
|
-
},
|
|
270
|
-
'.ace-tm .ace_scroller .ace_content': {
|
|
271
|
-
fontFamily: 'Roboto Mono'
|
|
272
|
-
},
|
|
273
|
-
'.ace-tm .ace_gutter-active-line': {
|
|
274
|
-
color: 'var(--color-gray-text-default)',
|
|
275
|
-
background: 'var(--color-gray-control-fill-hover)'
|
|
276
|
-
},
|
|
277
|
-
'.ace-tm .ace_marker-layer .ace_active-line': {
|
|
278
|
-
background: 'var(--color-gray-control-fill-hover)'
|
|
279
|
-
},
|
|
280
|
-
'.ace_cursor': {
|
|
281
|
-
display: 'none !important'
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
}
|
|
244
|
+
margin: '0 -12px'
|
|
245
|
+
}, _define_property(_obj5, "".concat(token.antCls, "-workspace-html-preview-content"), {
|
|
246
|
+
'.ace-container': {
|
|
247
|
+
border: 'unset',
|
|
248
|
+
borderRadius: 'unset',
|
|
249
|
+
boxShadow: 'unset'
|
|
250
|
+
},
|
|
251
|
+
'.ace_gutter-cell': {
|
|
252
|
+
paddingLeft: 12
|
|
285
253
|
},
|
|
286
254
|
'.code-editor-container': {
|
|
287
|
-
|
|
255
|
+
maxHeight: '100%',
|
|
288
256
|
borderRadius: 'var(--radius-card-base)',
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
257
|
+
'.code-editor-content': {
|
|
258
|
+
padding: '0!important',
|
|
259
|
+
'.ace_gutter': {
|
|
260
|
+
color: 'var(--color-gray-text-light)',
|
|
261
|
+
font: 'var(--font-text-code-base)',
|
|
262
|
+
letterSpacing: 'var(--letter-spacing-code-base, normal)',
|
|
263
|
+
background: 'var(--color-gray-bg-card-white)'
|
|
264
|
+
},
|
|
265
|
+
'.ace-tm .ace_scroller .ace_content': {
|
|
266
|
+
fontFamily: 'Roboto Mono'
|
|
267
|
+
},
|
|
268
|
+
'.ace-tm .ace_gutter-active-line': {
|
|
269
|
+
color: 'var(--color-gray-text-default)',
|
|
270
|
+
background: 'var(--color-gray-control-fill-hover)'
|
|
271
|
+
},
|
|
272
|
+
'.ace-tm .ace_marker-layer .ace_active-line': {
|
|
273
|
+
background: 'var(--color-gray-control-fill-hover)'
|
|
274
|
+
},
|
|
275
|
+
'.ace_cursor': {
|
|
276
|
+
display: 'none !important'
|
|
277
|
+
}
|
|
295
278
|
}
|
|
296
279
|
}
|
|
297
|
-
}), _define_property(_obj5,
|
|
280
|
+
}), _define_property(_obj5, '.code-editor-container', {
|
|
281
|
+
position: 'relative',
|
|
282
|
+
borderRadius: 'var(--radius-card-base)',
|
|
283
|
+
background: 'var(--color-gray-bg-card-white)',
|
|
284
|
+
transition: 'border-color 0.2s ease-in-out',
|
|
285
|
+
boxSizing: 'border-box',
|
|
286
|
+
overflow: 'hidden',
|
|
287
|
+
'.ace-github': {
|
|
288
|
+
background: 'transparent'
|
|
289
|
+
}
|
|
290
|
+
}), _obj5)), _define_property(_obj7, "&-overlay", (_obj6 = {
|
|
298
291
|
position: 'absolute',
|
|
299
292
|
inset: 0,
|
|
300
293
|
display: 'flex',
|
|
301
294
|
alignItems: 'center',
|
|
302
295
|
justifyContent: 'center',
|
|
303
296
|
zIndex: 1
|
|
304
|
-
}, _define_property(
|
|
297
|
+
}, _define_property(_obj6, "&--loading", {
|
|
305
298
|
background: 'rgba(255, 255, 255, 0.6)'
|
|
306
|
-
}), _define_property(
|
|
299
|
+
}), _define_property(_obj6, "&--error", {
|
|
307
300
|
background: 'rgba(255, 245, 245, 0.6)',
|
|
308
301
|
color: '#cb1e1e'
|
|
309
|
-
}),
|
|
302
|
+
}), _obj6)), _define_property(_obj7, "&-empty", {
|
|
310
303
|
display: 'flex',
|
|
311
304
|
alignItems: 'center',
|
|
312
305
|
justifyContent: 'center',
|
|
@@ -314,7 +307,7 @@ var genStyle = function genStyle(token) {
|
|
|
314
307
|
minHeight: '240px',
|
|
315
308
|
padding: '24px',
|
|
316
309
|
textAlign: 'center'
|
|
317
|
-
}),
|
|
310
|
+
}), _obj7));
|
|
318
311
|
};
|
|
319
312
|
export function useRealtimeFollowStyle(prefixCls) {
|
|
320
313
|
return useEditorStyleRegister('WorkspaceRealtimeFollow', function(token) {
|
package/dist/Workspace/style.js
CHANGED
|
@@ -52,8 +52,8 @@ function _object_spread_props(target, source) {
|
|
|
52
52
|
}
|
|
53
53
|
import { useEditorStyleRegister } from "../Hooks/useStyle";
|
|
54
54
|
var genStyle = function genStyle(token) {
|
|
55
|
-
var _obj;
|
|
56
|
-
return _define_property({}, token.componentCls, (
|
|
55
|
+
var _obj, _obj1, _obj2;
|
|
56
|
+
return _define_property({}, token.componentCls, (_obj2 = {
|
|
57
57
|
height: '100%',
|
|
58
58
|
borderRadius: 'var(--radius-modal-base)',
|
|
59
59
|
background: 'var(--color-gray-bg-card-white)',
|
|
@@ -63,80 +63,68 @@ var genStyle = function genStyle(token) {
|
|
|
63
63
|
clipPath: 'none!important'
|
|
64
64
|
}
|
|
65
65
|
}, // 纯净模式样式
|
|
66
|
-
_define_property(
|
|
66
|
+
_define_property(_obj2, "&".concat(token.componentCls, "-pure"), {
|
|
67
67
|
borderRadius: '0',
|
|
68
68
|
background: 'transparent',
|
|
69
69
|
border: 'none',
|
|
70
70
|
boxShadow: 'none',
|
|
71
71
|
height: '100%'
|
|
72
|
-
}), _define_property(
|
|
72
|
+
}), _define_property(_obj2, "".concat(token.componentCls, "-header"), {
|
|
73
73
|
display: 'flex',
|
|
74
74
|
alignItems: 'center',
|
|
75
75
|
justifyContent: 'space-between',
|
|
76
76
|
margin: 'var(--margin-3x) var(--margin-4x)'
|
|
77
|
-
}), _define_property(
|
|
77
|
+
}), _define_property(_obj2, "".concat(token.componentCls, "-title"), {
|
|
78
78
|
font: 'var(--font-text-h5-base)',
|
|
79
79
|
color: 'var(--color-gray-text-default)',
|
|
80
80
|
letterSpacing: 'var(--letter-spacing-h5-base, normal)'
|
|
81
|
-
}), _define_property(
|
|
81
|
+
}), _define_property(_obj2, "".concat(token.componentCls, "-header-right"), _define_property({
|
|
82
82
|
display: 'flex',
|
|
83
83
|
alignItems: 'center',
|
|
84
84
|
justifyContent: 'flex-end',
|
|
85
|
-
gap: 'var(--gap-2x)'
|
|
85
|
+
gap: 'var(--gap-2x, var(--margin-2x))'
|
|
86
86
|
}, "".concat(token.componentCls, "-close"), {
|
|
87
87
|
cursor: 'pointer',
|
|
88
88
|
transition: 'all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1)'
|
|
89
|
-
})), _define_property(
|
|
89
|
+
})), _define_property(_obj2, "".concat(token.componentCls, "-tabs"), {
|
|
90
90
|
margin: 'var(--margin-3x)'
|
|
91
|
-
}),
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
'
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
},
|
|
121
|
-
'&:hover': {
|
|
122
|
-
backgroundColor: 'transparent !important'
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
'.ant-segmented-item-disabled': {
|
|
127
|
-
'&:has(.ant-segmented-item-label:empty)': {
|
|
128
|
-
opacity: '1 !important'
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}), _define_property(_obj, "".concat(token.componentCls, "-tab-item"), {
|
|
91
|
+
}), _define_property(_obj2, "".concat(token.componentCls, "-segmented"), (_obj1 = {}, _define_property(_obj1, "".concat(token.antCls, "-segmented-group"), {
|
|
92
|
+
height: '32px'
|
|
93
|
+
}), _define_property(_obj1, "&".concat(token.antCls, "-segmented:not(.chaos-segmented) ").concat(token.antCls, "-segmented-item ").concat(token.antCls, "-segmented-item-label"), {
|
|
94
|
+
height: '100%',
|
|
95
|
+
display: 'flex',
|
|
96
|
+
alignItems: 'center',
|
|
97
|
+
justifyContent: 'center'
|
|
98
|
+
}), _define_property(_obj1, "".concat(token.antCls, "-segmented-item"), _define_property({}, "&:has(".concat(token.antCls, "-segmented-item-label:empty)"), (_obj = {
|
|
99
|
+
display: 'flex',
|
|
100
|
+
alignItems: 'center',
|
|
101
|
+
justifyContent: 'center',
|
|
102
|
+
flex: '0 0 auto !important',
|
|
103
|
+
height: '100%',
|
|
104
|
+
width: '8px',
|
|
105
|
+
padding: '4px 0',
|
|
106
|
+
margin: '0 2px',
|
|
107
|
+
cursor: 'default',
|
|
108
|
+
pointerEvents: 'none',
|
|
109
|
+
backgroundColor: 'transparent !important'
|
|
110
|
+
}, _define_property(_obj, "".concat(token.antCls, "-segmented-item-label"), {
|
|
111
|
+
padding: '0',
|
|
112
|
+
height: '100%',
|
|
113
|
+
width: '1px',
|
|
114
|
+
backgroundColor: 'var(--color-gray-border-light)'
|
|
115
|
+
}), _define_property(_obj, '&:hover', {
|
|
116
|
+
backgroundColor: 'transparent !important'
|
|
117
|
+
}), _obj))), _define_property(_obj1, "".concat(token.antCls, "-segmented-item-disabled"), _define_property({}, "&:has(".concat(token.antCls, "-segmented-item-label:empty)"), {
|
|
118
|
+
opacity: '1 !important'
|
|
119
|
+
})), _obj1)), _define_property(_obj2, "".concat(token.componentCls, "-tab-item"), {
|
|
132
120
|
display: 'flex',
|
|
133
121
|
alignItems: 'center',
|
|
134
122
|
justifyContent: 'center',
|
|
135
123
|
gap: '4px'
|
|
136
|
-
}), _define_property(
|
|
124
|
+
}), _define_property(_obj2, "".concat(token.componentCls, "-tab-title"), {
|
|
137
125
|
fontSize: 'var(--font-size-base)',
|
|
138
126
|
fontWeight: 500
|
|
139
|
-
}), _define_property(
|
|
127
|
+
}), _define_property(_obj2, "".concat(token.componentCls, "-tab-count"), {
|
|
140
128
|
display: 'inline-flex',
|
|
141
129
|
alignItems: 'center',
|
|
142
130
|
justifyContent: 'center',
|
|
@@ -150,7 +138,7 @@ var genStyle = function genStyle(token) {
|
|
|
150
138
|
backgroundColor: 'var(--color-gray-control-fill-active)',
|
|
151
139
|
borderRadius: '200px',
|
|
152
140
|
boxSizing: 'border-box'
|
|
153
|
-
}), _define_property(
|
|
141
|
+
}), _define_property(_obj2, "".concat(token.componentCls, "-content"), {
|
|
154
142
|
height: 'calc(100% - 95px)',
|
|
155
143
|
padding: '0 12px 16px',
|
|
156
144
|
display: 'flex',
|
|
@@ -159,7 +147,7 @@ var genStyle = function genStyle(token) {
|
|
|
159
147
|
overflowX: 'hidden',
|
|
160
148
|
overflowY: 'auto',
|
|
161
149
|
borderRadius: 'var(--radius-card-base)'
|
|
162
|
-
}),
|
|
150
|
+
}), _obj2));
|
|
163
151
|
};
|
|
164
152
|
export function useWorkspaceStyle(prefixCls) {
|
|
165
153
|
return useEditorStyleRegister('Workspace', function(token) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ant-design/agentic-ui",
|
|
3
|
-
"version": "2.30.
|
|
3
|
+
"version": "2.30.12",
|
|
4
4
|
"description": "面向智能体的 UI 组件库,提供多步推理可视化、工具调用展示、任务执行协同等 Agentic UI 能力",
|
|
5
5
|
"repository": "git@github.com:ant-design/agentic-ui.git",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
"lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
|
|
25
25
|
"lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
|
|
26
26
|
"prepare": "husky install && dumi setup",
|
|
27
|
-
"prepublishOnly": "npm run build && npm run test",
|
|
28
27
|
"prettier": "prettier --write \"{src,docs,test}/**/*.{js,jsx,ts,tsx,css,less,json,md}\"",
|
|
29
28
|
"preview": "pnpm dumi preview",
|
|
30
29
|
"report:demo": "node scripts/generateDemoReport.js",
|