@ant-design/agentic-ui 2.29.19 → 2.29.21
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/AILabel/index.js +2 -2
- package/dist/AILabel/style.js +1 -1
- package/dist/AgentRunBar/Robot.js +1 -1
- package/dist/AgentRunBar/index.js +2 -2
- package/dist/AgentRunBar/style.js +1 -1
- package/dist/AgenticLayout/index.js +2 -2
- package/dist/AgenticLayout/style.js +2 -2
- package/dist/AnswerAlert/components/ErrorIcon.js +1 -1
- package/dist/AnswerAlert/components/InfoIcon.js +1 -1
- package/dist/AnswerAlert/components/SuccessIcon.js +1 -1
- package/dist/AnswerAlert/components/WarningIcon.js +1 -1
- package/dist/AnswerAlert/index.js +1 -1
- package/dist/AnswerAlert/style.js +1 -1
- package/dist/BackTo/BackTop.js +1 -1
- package/dist/BackTo/ScrollVisibleButton.js +4 -4
- package/dist/BackTo/hooks/useScrollVisible.js +1 -1
- package/dist/BackTo/icons/BottomIcon.js +1 -1
- package/dist/BackTo/icons/TopIcon.js +1 -1
- package/dist/BackTo/style.js +1 -1
- package/dist/Bubble/AIBubble.js +5 -5
- package/dist/Bubble/Avatar/index.js +1 -1
- package/dist/Bubble/Avatar/isEmoji.js +1 -1
- package/dist/Bubble/Bubble.js +1 -1
- package/dist/Bubble/BubbleBeforeNode.js +3 -3
- package/dist/Bubble/FileView.js +6 -6
- package/dist/Bubble/List/PureBubbleList.js +3 -3
- package/dist/Bubble/List/index.js +3 -3
- package/dist/Bubble/List/style.js +1 -1
- package/dist/Bubble/MessagesContent/BubbleContext.js +2 -2
- package/dist/Bubble/MessagesContent/BubbleExtra.js +9 -11
- package/dist/Bubble/MessagesContent/CopyButton/index.js +2 -2
- package/dist/Bubble/MessagesContent/DocInfo.js +7 -7
- package/dist/Bubble/MessagesContent/EXCEPTION.js +1 -1
- package/dist/Bubble/MessagesContent/MarkdownPreview.js +1 -1
- package/dist/Bubble/MessagesContent/VoiceButton/index.js +8 -8
- package/dist/Bubble/MessagesContent/VoiceButton/style.js +1 -1
- package/dist/Bubble/MessagesContent/docInfoStyle.js +1 -1
- package/dist/Bubble/MessagesContent/icons.js +2 -2
- package/dist/Bubble/MessagesContent/index.js +10 -10
- package/dist/Bubble/MessagesContent/style.js +15 -8
- package/dist/Bubble/PureBubble.js +1 -1
- package/dist/Bubble/Title.js +4 -4
- package/dist/Bubble/UserBubble.js +4 -4
- package/dist/Bubble/schema-editor/SchemaEditorBridgeManager.js +3 -3
- package/dist/Bubble/schema-editor/useSchemaEditorBridge.js +1 -1
- package/dist/Bubble/style.js +1 -1
- package/dist/ChatBootPage/ButtonTab.js +1 -1
- package/dist/ChatBootPage/ButtonTabGroup.js +2 -2
- package/dist/ChatBootPage/ButtonTabGroupStyle.js +2 -2
- package/dist/ChatBootPage/ButtonTabStyle.js +2 -2
- package/dist/ChatBootPage/CaseReply.js +2 -2
- package/dist/ChatBootPage/CaseReplyStyle.js +2 -2
- package/dist/ChatBootPage/Title.js +1 -1
- package/dist/ChatBootPage/style.js +2 -2
- package/dist/ChatLayout/components/FooterBackground/index.js +1 -1
- package/dist/ChatLayout/index.js +1 -1
- package/dist/ChatLayout/style.js +1 -1
- package/dist/Components/ActionIconBox/index.js +12 -12
- package/dist/Components/ActionIconBox/style.js +1 -1
- package/dist/Components/ActionItemBox/ActionItemBox.js +1 -1
- package/dist/Components/ActionItemBox/style.js +1 -1
- package/dist/Components/Button/IconButton/index.js +1 -1
- package/dist/Components/Button/IconButton/style.js +1 -1
- package/dist/Components/Button/SwitchButton/index.js +3 -3
- package/dist/Components/Button/SwitchButton/style.js +1 -1
- package/dist/Components/Button/ToggleButton/index.js +1 -1
- package/dist/Components/Button/ToggleButton/style.js +1 -1
- package/dist/Components/GradientText/style.js +2 -2
- package/dist/Components/ImageList.js +2 -2
- package/dist/Components/LayoutHeader/index.js +4 -4
- package/dist/Components/LayoutHeader/style.js +2 -2
- package/dist/Components/Loading/CreativeRecommendationLoading.js +1 -1
- package/dist/Components/Loading/CreativeSparkLoading.js +1 -1
- package/dist/Components/Loading/Loading.js +1 -1
- package/dist/Components/Loading/style.js +1 -1
- package/dist/Components/Robot/index.js +1 -1
- package/dist/Components/Robot/lotties/BlowingWindLottie/index.js +1 -1
- package/dist/Components/Robot/lotties/BouncingLottie/index.js +1 -1
- package/dist/Components/Robot/lotties/DazingLottie/index.js +1 -1
- package/dist/Components/Robot/lotties/PeekLottie/index.js +1 -1
- package/dist/Components/Robot/lotties/ThinkingLottie/index.js +1 -1
- package/dist/Components/SuggestionList/index.js +4 -4
- package/dist/Components/SuggestionList/style.js +1 -1
- package/dist/Components/TextAnimate/index.js +2 -2
- package/dist/Components/TextAnimate/style.js +2 -2
- package/dist/Components/TypingAnimation/index.js +1 -1
- package/dist/Components/TypingAnimation/style.js +2 -2
- package/dist/Components/VisualList/index.js +3 -3
- package/dist/Components/VisualList/style.js +1 -1
- package/dist/Components/effects/CreativeRecommendationEffect/index.js +1 -1
- package/dist/Components/effects/LoadingEffect/index.js +1 -1
- package/dist/Components/icons/LoadingSpinnerIcon.js +1 -1
- package/dist/Components/lotties/CreativeSparkLottie/index.js +1 -1
- package/dist/Components/lotties/DazingLottie/index.js +1 -1
- package/dist/Components/lotties/LoadingLottie/index.js +1 -1
- package/dist/Components/lotties/TextLoading/index.js +1 -1
- package/dist/Components/lotties/TextLoading/style.js +1 -1
- package/dist/Components/lotties/ThinkingLottie/index.js +1 -1
- package/dist/Components/lotties/bubble-actions/Abstract/index.js +1 -1
- package/dist/Components/lotties/bubble-actions/Abstract/style.js +1 -1
- package/dist/Components/lotties/bubble-actions/Copy/index.js +1 -1
- package/dist/Components/lotties/bubble-actions/Dislike/index.js +1 -1
- package/dist/Components/lotties/bubble-actions/Like/index.js +1 -1
- package/dist/Components/lotties/bubble-actions/More/index.js +1 -1
- package/dist/Components/lotties/bubble-actions/Play/index.js +1 -1
- package/dist/Components/lotties/bubble-actions/Quote/index.js +1 -1
- package/dist/Components/lotties/bubble-actions/Refresh/index.js +1 -1
- package/dist/Components/lotties/bubble-actions/Share/index.js +1 -1
- package/dist/History/components/HistoryActionsBox.js +9 -9
- package/dist/History/components/HistoryEmpty.js +1 -1
- package/dist/History/components/HistoryEmptyIcon.js +1 -1
- package/dist/History/components/HistoryItem.js +4 -4
- package/dist/History/components/HistoryList.js +2 -2
- package/dist/History/components/LoadMoreComponent.js +2 -2
- package/dist/History/components/NewChatComponent.js +1 -1
- package/dist/History/components/NewChatComponent.style.js +2 -2
- package/dist/History/components/SearchComponent.js +6 -6
- package/dist/History/hooks/useHistory.js +1 -1
- package/dist/History/index.js +3 -3
- package/dist/History/menu.js +2 -2
- package/dist/History/style.js +1 -1
- package/dist/History/utils/index.js +2 -2
- package/dist/Hooks/useAutoScroll.js +3 -3
- package/dist/Hooks/useClickAway.js +2 -2
- package/dist/Hooks/useCopied.js +1 -1
- package/dist/Hooks/useElementSize.js +1 -1
- package/dist/Hooks/useIntersectionOnce.js +1 -1
- package/dist/Hooks/useRefFunction/index.js +1 -1
- package/dist/Hooks/useSpeechSynthesis.js +1 -1
- package/dist/Hooks/useStyle/index.js +2 -2
- package/dist/I18n/index.js +1 -1
- package/dist/Icons/animated/VoicePlayLottie/index.js +1 -1
- package/dist/Icons/animated/VoicingLottie/index.js +1 -1
- package/dist/MarkdownEditor/BaseMarkdownEditor.js +7 -7
- package/dist/MarkdownEditor/editor/Editor.js +18 -18
- package/dist/MarkdownEditor/editor/components/CommentList/index.js +6 -6
- package/dist/MarkdownEditor/editor/components/CommentList/style.js +1 -1
- package/dist/MarkdownEditor/editor/components/ContributorAvatar/index.js +2 -2
- package/dist/MarkdownEditor/editor/components/ContributorAvatar/style.js +1 -1
- package/dist/MarkdownEditor/editor/components/LazyElement/index.js +1 -1
- package/dist/MarkdownEditor/editor/components/LazyElement/style.js +2 -2
- package/dist/MarkdownEditor/editor/components/MediaErrorLink.js +2 -2
- package/dist/MarkdownEditor/editor/components/fntTag/index.js +1 -1
- package/dist/MarkdownEditor/editor/components/fntTag/style.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Blockquote/index.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Break/index.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Card/index.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Code/index.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Comment/index.js +3 -3
- package/dist/MarkdownEditor/editor/elements/CommentLeaf/index.js +2 -2
- package/dist/MarkdownEditor/editor/elements/FncLeaf/index.js +1 -1
- package/dist/MarkdownEditor/editor/elements/FootnoteDefinition/index.js +2 -2
- package/dist/MarkdownEditor/editor/elements/FootnoteReference/index.js +2 -2
- package/dist/MarkdownEditor/editor/elements/Head/index.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Hr/index.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Image/index.js +17 -17
- package/dist/MarkdownEditor/editor/elements/InlineKatex/index.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Katex/index.js +1 -1
- package/dist/MarkdownEditor/editor/elements/LinkCard/ReadonlyLinkCard.js +2 -2
- package/dist/MarkdownEditor/editor/elements/LinkCard/index.js +4 -4
- package/dist/MarkdownEditor/editor/elements/List/List.js +2 -2
- package/dist/MarkdownEditor/editor/elements/List/ListItem.js +9 -9
- package/dist/MarkdownEditor/editor/elements/Media/ReadonlyMedia.js +2 -2
- package/dist/MarkdownEditor/editor/elements/Media/index.js +15 -15
- package/dist/MarkdownEditor/editor/elements/Mermaid/index.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Paragraph/index.js +2 -2
- package/dist/MarkdownEditor/editor/elements/Schema/index.js +4 -4
- package/dist/MarkdownEditor/editor/elements/Table/ReadonlyTableComponent.js +5 -5
- package/dist/MarkdownEditor/editor/elements/Table/SimpleTable.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Table/Table.js +5 -5
- package/dist/MarkdownEditor/editor/elements/Table/TableCellIndex/index.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Table/TableCellIndexSpacer/index.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Table/TableContext.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Table/TableRowIndex/index.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Table/Td/index.js +2 -2
- package/dist/MarkdownEditor/editor/elements/Table/index.js +5 -5
- package/dist/MarkdownEditor/editor/elements/Table/useScrollShadow.js +2 -2
- package/dist/MarkdownEditor/editor/elements/TagPopup/index.js +18 -18
- package/dist/MarkdownEditor/editor/elements/index.js +9 -9
- package/dist/MarkdownEditor/editor/parser/parse/applyContextPropsAndConfig.js +2 -2
- package/dist/MarkdownEditor/editor/parser/parse/parseBlockElements.js +9 -9
- package/dist/MarkdownEditor/editor/parser/parse/parseCode.js +5 -5
- package/dist/MarkdownEditor/editor/parser/parse/parseElements.js +3 -3
- package/dist/MarkdownEditor/editor/parser/parse/parseEmptyLines.js +1 -1
- package/dist/MarkdownEditor/editor/parser/parse/parseFootnote.js +1 -1
- package/dist/MarkdownEditor/editor/parser/parse/parseHtml.js +18 -18
- package/dist/MarkdownEditor/editor/parser/parse/parseMath.js +3 -3
- package/dist/MarkdownEditor/editor/parser/parse/parseMedia.js +3 -3
- package/dist/MarkdownEditor/editor/parser/parse/parseTable.js +10 -10
- package/dist/MarkdownEditor/editor/parser/parse/parseText.js +5 -5
- package/dist/MarkdownEditor/editor/parser/parserMarkdownToSlateNode.js +24 -24
- package/dist/MarkdownEditor/editor/parser/parserMdToSchema.js +2 -2
- package/dist/MarkdownEditor/editor/parser/parserSlateNodeToMarkdown.js +41 -41
- package/dist/MarkdownEditor/editor/plugins/catchError.js +2 -2
- package/dist/MarkdownEditor/editor/plugins/elements.js +21 -21
- package/dist/MarkdownEditor/editor/plugins/handlePaste.js +9 -9
- package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/arrow.js +4 -4
- package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/backspace.js +1 -1
- package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/enter.js +1 -1
- package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/match.js +1 -1
- package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/tab.js +4 -4
- package/dist/MarkdownEditor/editor/plugins/insertParsedHtmlNodes.js +44 -44
- package/dist/MarkdownEditor/editor/plugins/parseMarkdownToNodesAndInsert.js +1 -1
- package/dist/MarkdownEditor/editor/plugins/useHighlight.js +5 -5
- package/dist/MarkdownEditor/editor/plugins/useKeyboard.js +5 -5
- package/dist/MarkdownEditor/editor/plugins/useOnchange.js +1 -1
- package/dist/MarkdownEditor/editor/plugins/utils.js +2 -2
- package/dist/MarkdownEditor/editor/plugins/withCardPlugin.js +2 -2
- package/dist/MarkdownEditor/editor/plugins/withCodeTagPlugin.js +2 -2
- package/dist/MarkdownEditor/editor/plugins/withInlineNodes.js +1 -1
- package/dist/MarkdownEditor/editor/plugins/withLinkAndMediaPlugin.js +2 -2
- package/dist/MarkdownEditor/editor/plugins/withListsPlugin.js +3 -3
- package/dist/MarkdownEditor/editor/plugins/withMarkdown.js +1 -1
- package/dist/MarkdownEditor/editor/plugins/withSchemaPlugin.js +2 -2
- package/dist/MarkdownEditor/editor/plugins/withVoidNodes.js +1 -1
- package/dist/MarkdownEditor/editor/store.js +6 -6
- package/dist/MarkdownEditor/editor/style.js +2 -2
- package/dist/MarkdownEditor/editor/tools/DragHandle.js +2 -2
- package/dist/MarkdownEditor/editor/tools/InsertAutocomplete.js +22 -22
- package/dist/MarkdownEditor/editor/tools/InsertLink.js +7 -7
- package/dist/MarkdownEditor/editor/tools/Leading.js +8 -8
- package/dist/MarkdownEditor/editor/tools/ToolBar/BaseBar.js +6 -6
- package/dist/MarkdownEditor/editor/tools/ToolBar/FloatBar.js +5 -5
- package/dist/MarkdownEditor/editor/tools/ToolBar/ReadonlyBaseBar.js +7 -7
- package/dist/MarkdownEditor/editor/tools/ToolBar/ToolBar.js +2 -2
- package/dist/MarkdownEditor/editor/tools/ToolBar/components/ColorPickerButton.js +1 -1
- package/dist/MarkdownEditor/editor/tools/ToolBar/components/FormattingTools.js +1 -1
- package/dist/MarkdownEditor/editor/tools/ToolBar/components/HeadingDropdown.js +1 -1
- package/dist/MarkdownEditor/editor/tools/ToolBar/config/toolsConfig.js +9 -9
- package/dist/MarkdownEditor/editor/tools/ToolBar/floatBarStyle.js +1 -1
- package/dist/MarkdownEditor/editor/tools/ToolBar/hooks/useToolBarLogic.js +4 -4
- package/dist/MarkdownEditor/editor/tools/ToolBar/toolBarStyle.js +1 -1
- package/dist/MarkdownEditor/editor/tools/insertAutocompleteStyle.js +1 -1
- package/dist/MarkdownEditor/editor/utils/ace.js +3 -3
- package/dist/MarkdownEditor/editor/utils/docx/docxDeserializer.js +2 -2
- package/dist/MarkdownEditor/editor/utils/docx/module.js +9 -9
- package/dist/MarkdownEditor/editor/utils/docx/utils.js +5 -5
- package/dist/MarkdownEditor/editor/utils/dom.js +5 -5
- package/dist/MarkdownEditor/editor/utils/editorCommands.js +5 -5
- package/dist/MarkdownEditor/editor/utils/editorUtils.js +17 -17
- package/dist/MarkdownEditor/editor/utils/index.js +9 -9
- package/dist/MarkdownEditor/editor/utils/keyboard.js +4 -4
- package/dist/MarkdownEditor/editor/utils/markdownToHtml.js +6 -6
- package/dist/MarkdownEditor/editor/utils/media.js +2 -2
- package/dist/MarkdownEditor/editor/utils/path.js +3 -3
- package/dist/MarkdownEditor/editor/utils/performanceMonitor.js +2 -2
- package/dist/MarkdownEditor/editor/utils/useLocalState.js +1 -1
- package/dist/MarkdownEditor/hooks/editor.js +2 -2
- package/dist/MarkdownEditor/hooks/subscribe.js +1 -1
- package/dist/MarkdownEditor/index.js +1 -1
- package/dist/MarkdownEditor/style.js +1 -1
- package/dist/MarkdownEditor/utils/exportHtml.js +2 -2
- package/dist/MarkdownEditor/utils/native-table/native-table-editor.js +4 -4
- package/dist/MarkdownInputField/AttachmentButton/AttachmentButtonPopover.js +8 -8
- package/dist/MarkdownInputField/AttachmentButton/AttachmentFileList/AttachmentFileIcon.js +1 -1
- package/dist/MarkdownInputField/AttachmentButton/AttachmentFileList/AttachmentFileListItem.js +10 -10
- package/dist/MarkdownInputField/AttachmentButton/AttachmentFileList/index.js +10 -10
- package/dist/MarkdownInputField/AttachmentButton/AttachmentFileList/style.js +1 -1
- package/dist/MarkdownInputField/AttachmentButton/index.js +18 -18
- package/dist/MarkdownInputField/AttachmentButton/style.js +1 -1
- package/dist/MarkdownInputField/AttachmentButton/utils.js +8 -8
- package/dist/MarkdownInputField/BeforeToolContainer/BeforeToolContainer.js +4 -4
- package/dist/MarkdownInputField/BorderBeamAnimation.js +1 -1
- package/dist/MarkdownInputField/Enlargement/index.js +1 -1
- package/dist/MarkdownInputField/FileMapView/FileMapViewItem.js +8 -8
- package/dist/MarkdownInputField/FileMapView/index.js +2 -2
- package/dist/MarkdownInputField/FileMapView/style.js +1 -1
- package/dist/MarkdownInputField/FilePaste/index.js +2 -2
- package/dist/MarkdownInputField/FileUploadManager/index.js +2 -2
- package/dist/MarkdownInputField/MarkdownInputField.js +10 -10
- package/dist/MarkdownInputField/QuickActions/index.js +5 -5
- package/dist/MarkdownInputField/RefinePromptButton/index.js +3 -3
- package/dist/MarkdownInputField/RefinePromptButton/style.js +1 -1
- package/dist/MarkdownInputField/SendActions/index.js +6 -6
- package/dist/MarkdownInputField/SendButton/index.js +3 -3
- package/dist/MarkdownInputField/SendButton/style.js +1 -1
- package/dist/MarkdownInputField/SkillModeBar/index.js +3 -3
- package/dist/MarkdownInputField/SkillModeBar/style.js +1 -1
- package/dist/MarkdownInputField/Suggestion/index.js +8 -8
- package/dist/MarkdownInputField/TopOperatingArea/index.js +2 -2
- package/dist/MarkdownInputField/TopOperatingArea/style.js +2 -2
- package/dist/MarkdownInputField/VoiceInput/index.js +2 -2
- package/dist/MarkdownInputField/VoiceInput/style.js +1 -1
- package/dist/MarkdownInputField/VoiceInputManager/index.js +3 -3
- package/dist/MarkdownInputField/hooks/useMarkdownInputFieldActions.js +1 -1
- package/dist/MarkdownInputField/hooks/useMarkdownInputFieldHandlers.js +1 -1
- package/dist/MarkdownInputField/hooks/useMarkdownInputFieldLayout.js +2 -2
- package/dist/MarkdownInputField/hooks/useMarkdownInputFieldRefs.js +1 -1
- package/dist/MarkdownInputField/hooks/useMarkdownInputFieldState.js +1 -1
- package/dist/MarkdownInputField/hooks/useMarkdownInputFieldStyles.js +1 -1
- package/dist/MarkdownInputField/style.js +2 -2
- package/dist/MarkdownInputField/utils/renderHelpers.js +5 -5
- package/dist/Plugins/chart/AreaChart/index.js +4 -4
- package/dist/Plugins/chart/AreaChart/style.js +1 -1
- package/dist/Plugins/chart/BarChart/index.js +11 -11
- package/dist/Plugins/chart/BarChart/style.js +1 -1
- package/dist/Plugins/chart/ChartAttrToolBar/ChartAttrToolBarStyle.js +1 -1
- package/dist/Plugins/chart/ChartAttrToolBar/index.js +3 -3
- package/dist/Plugins/chart/ChartMark/Area.js +2 -2
- package/dist/Plugins/chart/ChartMark/Bar.js +2 -2
- package/dist/Plugins/chart/ChartMark/Column.js +2 -2
- package/dist/Plugins/chart/ChartMark/Container.js +1 -1
- package/dist/Plugins/chart/ChartMark/Line.js +2 -2
- package/dist/Plugins/chart/ChartMark/Pie.js +2 -2
- package/dist/Plugins/chart/ChartRender.js +19 -19
- package/dist/Plugins/chart/ChartStatistic/index.js +3 -3
- package/dist/Plugins/chart/ChartStatistic/style.js +1 -1
- package/dist/Plugins/chart/ChartStatistic/utils.js +2 -2
- package/dist/Plugins/chart/DonutChart/Legend.js +3 -3
- package/dist/Plugins/chart/DonutChart/hooks.js +5 -5
- package/dist/Plugins/chart/DonutChart/index.js +11 -11
- package/dist/Plugins/chart/DonutChart/plugins.js +3 -3
- package/dist/Plugins/chart/DonutChart/style.js +1 -1
- package/dist/Plugins/chart/FunnelChart/index.js +14 -14
- package/dist/Plugins/chart/FunnelChart/style.js +1 -1
- package/dist/Plugins/chart/LineChart/index.js +3 -3
- package/dist/Plugins/chart/LineChart/style.js +1 -1
- package/dist/Plugins/chart/RadarChart/index.js +7 -7
- package/dist/Plugins/chart/RadarChart/style.js +1 -1
- package/dist/Plugins/chart/ScatterChart/index.js +7 -7
- package/dist/Plugins/chart/ScatterChart/style.js +1 -1
- package/dist/Plugins/chart/components/ChartContainer/ChartContainer.js +1 -1
- package/dist/Plugins/chart/components/ChartContainer/style.js +2 -2
- package/dist/Plugins/chart/components/ChartFilter/ChartFilter.js +6 -6
- package/dist/Plugins/chart/components/ChartFilter/style.js +1 -1
- package/dist/Plugins/chart/components/ChartToolBar/ChartToolBar.js +2 -2
- package/dist/Plugins/chart/components/ChartToolBar/style.js +1 -1
- package/dist/Plugins/chart/components/icons/TimeIcon.js +1 -1
- package/dist/Plugins/chart/components/index.js +1 -1
- package/dist/Plugins/chart/hooks/useChartDataFilter.js +1 -1
- package/dist/Plugins/chart/hooks/useChartStatistics.js +1 -1
- package/dist/Plugins/chart/hooks/useChartTheme.js +1 -1
- package/dist/Plugins/chart/hooks/useResponsiveSize.js +2 -2
- package/dist/Plugins/chart/index.js +8 -8
- package/dist/Plugins/chart/loadChartRuntime.js +1 -1
- package/dist/Plugins/chart/utils/registerChart.js +3 -3
- package/dist/Plugins/chart/utils.js +12 -12
- package/dist/Plugins/code/CodeUI/Katex/Katex.js +1 -1
- package/dist/Plugins/code/components/AceEditor.js +2 -2
- package/dist/Plugins/code/components/CodeContainer.js +3 -3
- package/dist/Plugins/code/components/CodeRenderer.js +2 -2
- package/dist/Plugins/code/components/CodeToolbar.js +5 -5
- package/dist/Plugins/code/components/LanguageSelector.js +7 -7
- package/dist/Plugins/code/components/LoadImage.js +3 -3
- package/dist/Plugins/code/components/ThinkBlock.js +2 -2
- package/dist/Plugins/code/index.js +1 -1
- package/dist/Plugins/code/langIcons/AbapIcon.js +1 -1
- package/dist/Plugins/code/langIcons/ActionscriptIcon.js +1 -1
- package/dist/Plugins/code/langIcons/AdaIcon.js +1 -1
- package/dist/Plugins/code/langIcons/ApacheIcon.js +1 -1
- package/dist/Plugins/code/langIcons/ApexIcon.js +1 -1
- package/dist/Plugins/code/langIcons/AplIcon.js +1 -1
- package/dist/Plugins/code/langIcons/ApplescriptIcon.js +1 -1
- package/dist/Plugins/code/langIcons/AstroIcon.js +1 -1
- package/dist/Plugins/code/langIcons/AwkIcon.js +1 -1
- package/dist/Plugins/code/langIcons/BallerinaIcon.js +1 -1
- package/dist/Plugins/code/langIcons/BatIcon.js +1 -1
- package/dist/Plugins/code/langIcons/BicepIcon.js +1 -1
- package/dist/Plugins/code/langIcons/BladeIcon.js +1 -1
- package/dist/Plugins/code/langIcons/CIcon.js +1 -1
- package/dist/Plugins/code/langIcons/CadenceIcon.js +1 -1
- package/dist/Plugins/code/langIcons/ClojureIcon.js +1 -1
- package/dist/Plugins/code/langIcons/CmakeIcon.js +1 -1
- package/dist/Plugins/code/langIcons/CobolIcon.js +1 -1
- package/dist/Plugins/code/langIcons/CodeqlIcon.js +1 -1
- package/dist/Plugins/code/langIcons/CoffeeIcon.js +1 -1
- package/dist/Plugins/code/langIcons/ConsoleIcon.js +1 -1
- package/dist/Plugins/code/langIcons/CppIcon.js +1 -1
- package/dist/Plugins/code/langIcons/CrystalIcon.js +1 -1
- package/dist/Plugins/code/langIcons/CsharpIcon.js +1 -1
- package/dist/Plugins/code/langIcons/CssIcon.js +1 -1
- package/dist/Plugins/code/langIcons/DIcon.js +1 -1
- package/dist/Plugins/code/langIcons/DartIcon.js +1 -1
- package/dist/Plugins/code/langIcons/DatabaseIcon.js +1 -1
- package/dist/Plugins/code/langIcons/DiffIcon.js +1 -1
- package/dist/Plugins/code/langIcons/DockerIcon.js +1 -1
- package/dist/Plugins/code/langIcons/DotenvIcon.js +1 -1
- package/dist/Plugins/code/langIcons/ElixirIcon.js +1 -1
- package/dist/Plugins/code/langIcons/ElmIcon.js +1 -1
- package/dist/Plugins/code/langIcons/ErbIcon.js +1 -1
- package/dist/Plugins/code/langIcons/ErlangIcon.js +1 -1
- package/dist/Plugins/code/langIcons/FsharpIcon.js +1 -1
- package/dist/Plugins/code/langIcons/GdscriptIcon.js +1 -1
- package/dist/Plugins/code/langIcons/GlslIcon.js +1 -1
- package/dist/Plugins/code/langIcons/GnuplotIcon.js +1 -1
- package/dist/Plugins/code/langIcons/GoIcon.js +1 -1
- package/dist/Plugins/code/langIcons/GraphqlIcon.js +1 -1
- package/dist/Plugins/code/langIcons/GroovyIcon.js +1 -1
- package/dist/Plugins/code/langIcons/HackIcon.js +1 -1
- package/dist/Plugins/code/langIcons/HamlIcon.js +1 -1
- package/dist/Plugins/code/langIcons/HandlebarsIcon.js +1 -1
- package/dist/Plugins/code/langIcons/HaskellIcon.js +1 -1
- package/dist/Plugins/code/langIcons/HclIcon.js +1 -1
- package/dist/Plugins/code/langIcons/HclLightIcon.js +1 -1
- package/dist/Plugins/code/langIcons/HjsonIcon.js +1 -1
- package/dist/Plugins/code/langIcons/HlslIcon.js +1 -1
- package/dist/Plugins/code/langIcons/HtmlIcon.js +1 -1
- package/dist/Plugins/code/langIcons/HttpIcon.js +1 -1
- package/dist/Plugins/code/langIcons/ImbaIcon.js +1 -1
- package/dist/Plugins/code/langIcons/IniIcon.js +1 -1
- package/dist/Plugins/code/langIcons/JavaIcon.js +1 -1
- package/dist/Plugins/code/langIcons/JavascriptIcon.js +1 -1
- package/dist/Plugins/code/langIcons/JinjaIcon.js +1 -1
- package/dist/Plugins/code/langIcons/Json5Icon.js +1 -1
- package/dist/Plugins/code/langIcons/JsonIcon.js +1 -1
- package/dist/Plugins/code/langIcons/JsonnetIcon.js +1 -1
- package/dist/Plugins/code/langIcons/JuliaIcon.js +1 -1
- package/dist/Plugins/code/langIcons/KotlinIcon.js +1 -1
- package/dist/Plugins/code/langIcons/KustoIcon.js +1 -1
- package/dist/Plugins/code/langIcons/LessIcon.js +1 -1
- package/dist/Plugins/code/langIcons/LiquidIcon.js +1 -1
- package/dist/Plugins/code/langIcons/LispIcon.js +1 -1
- package/dist/Plugins/code/langIcons/LuaIcon.js +1 -1
- package/dist/Plugins/code/langIcons/MakefileIcon.js +1 -1
- package/dist/Plugins/code/langIcons/MarkdownIcon.js +1 -1
- package/dist/Plugins/code/langIcons/MarkojsIcon.js +1 -1
- package/dist/Plugins/code/langIcons/MatlabIcon.js +1 -1
- package/dist/Plugins/code/langIcons/MdxIcon.js +1 -1
- package/dist/Plugins/code/langIcons/MermaidIcon.js +1 -1
- package/dist/Plugins/code/langIcons/MojoIcon.js +1 -1
- package/dist/Plugins/code/langIcons/NginxIcon.js +1 -1
- package/dist/Plugins/code/langIcons/NimIcon.js +1 -1
- package/dist/Plugins/code/langIcons/NixIcon.js +1 -1
- package/dist/Plugins/code/langIcons/ObjectiveCIcon.js +1 -1
- package/dist/Plugins/code/langIcons/ObjectiveCppIcon.js +1 -1
- package/dist/Plugins/code/langIcons/OcamlIcon.js +1 -1
- package/dist/Plugins/code/langIcons/PascalIcon.js +1 -1
- package/dist/Plugins/code/langIcons/Perl6Icon.js +1 -1
- package/dist/Plugins/code/langIcons/PerlIcon.js +1 -1
- package/dist/Plugins/code/langIcons/PhpIcon.js +1 -1
- package/dist/Plugins/code/langIcons/PostcssIcon.js +1 -1
- package/dist/Plugins/code/langIcons/PowershellIcon.js +1 -1
- package/dist/Plugins/code/langIcons/PrismaIcon.js +1 -1
- package/dist/Plugins/code/langIcons/PrologIcon.js +1 -1
- package/dist/Plugins/code/langIcons/ProtoIcon.js +1 -1
- package/dist/Plugins/code/langIcons/PugIcon.js +1 -1
- package/dist/Plugins/code/langIcons/PuppetIcon.js +1 -1
- package/dist/Plugins/code/langIcons/PurescriptIcon.js +1 -1
- package/dist/Plugins/code/langIcons/PythonIcon.js +1 -1
- package/dist/Plugins/code/langIcons/RIcon.js +1 -1
- package/dist/Plugins/code/langIcons/RazorIcon.js +1 -1
- package/dist/Plugins/code/langIcons/ReactIcon.js +1 -1
- package/dist/Plugins/code/langIcons/ReactTsIcon.js +1 -1
- package/dist/Plugins/code/langIcons/RubyIcon.js +1 -1
- package/dist/Plugins/code/langIcons/RustIcon.js +1 -1
- package/dist/Plugins/code/langIcons/SasIcon.js +1 -1
- package/dist/Plugins/code/langIcons/SassIcon.js +1 -1
- package/dist/Plugins/code/langIcons/ScalaIcon.js +1 -1
- package/dist/Plugins/code/langIcons/SchemeIcon.js +1 -1
- package/dist/Plugins/code/langIcons/ShaderlabIcon.js +1 -1
- package/dist/Plugins/code/langIcons/SolidityIcon.js +1 -1
- package/dist/Plugins/code/langIcons/SparqlIcon.js +1 -1
- package/dist/Plugins/code/langIcons/StataIcon.js +1 -1
- package/dist/Plugins/code/langIcons/StylusIcon.js +1 -1
- package/dist/Plugins/code/langIcons/SvelteIcon.js +1 -1
- package/dist/Plugins/code/langIcons/SwiftIcon.js +1 -1
- package/dist/Plugins/code/langIcons/SystemverilogIcon.js +1 -1
- package/dist/Plugins/code/langIcons/TclIcon.js +1 -1
- package/dist/Plugins/code/langIcons/TexIcon.js +1 -1
- package/dist/Plugins/code/langIcons/TomlIcon.js +1 -1
- package/dist/Plugins/code/langIcons/TwigIcon.js +1 -1
- package/dist/Plugins/code/langIcons/TypescriptIcon.js +1 -1
- package/dist/Plugins/code/langIcons/VerilogIcon.js +1 -1
- package/dist/Plugins/code/langIcons/VhdlIcon.js +1 -1
- package/dist/Plugins/code/langIcons/VimIcon.js +1 -1
- package/dist/Plugins/code/langIcons/VueIcon.js +1 -1
- package/dist/Plugins/code/langIcons/WebassemblyIcon.js +1 -1
- package/dist/Plugins/code/langIcons/WenyanIcon.js +1 -1
- package/dist/Plugins/code/langIcons/WgslIcon.js +1 -1
- package/dist/Plugins/code/langIcons/WolframlanguageIcon.js +1 -1
- package/dist/Plugins/code/langIcons/XmlIcon.js +1 -1
- package/dist/Plugins/code/langIcons/XslIcon.js +1 -1
- package/dist/Plugins/code/langIcons/YamlIcon.js +1 -1
- package/dist/Plugins/code/langIcons/ZigIcon.js +1 -1
- package/dist/Plugins/code/loadAceEditor.js +3 -3
- package/dist/Plugins/katex/InlineKatex.js +2 -2
- package/dist/Plugins/katex/Katex.js +1 -1
- package/dist/Plugins/katex/index.js +2 -2
- package/dist/Plugins/katex/loadKatex.js +2 -2
- package/dist/Plugins/mermaid/Mermaid.js +1 -1
- package/dist/Plugins/mermaid/MermaidFallback.js +1 -1
- package/dist/Plugins/mermaid/MermaidRendererImpl.js +1 -1
- package/dist/Plugins/mermaid/index.js +5 -5
- package/dist/Plugins/mermaid/style.js +1 -1
- package/dist/Plugins/mermaid/useMermaidRender.js +1 -1
- package/dist/Plugins/mermaid/utils.js +3 -3
- package/dist/Quote/index.js +2 -2
- package/dist/Quote/style.js +1 -1
- package/dist/Schema/SchemaEditor/AceEditorWrapper.js +1 -1
- package/dist/Schema/SchemaEditor/index.js +6 -6
- package/dist/Schema/SchemaEditor/style.js +1 -1
- package/dist/Schema/SchemaForm/index.js +4 -4
- package/dist/Schema/SchemaRenderer/index.js +8 -8
- package/dist/TaskList/index.js +4 -4
- package/dist/TaskList/style.js +1 -1
- package/dist/ThoughtChainList/CostMillis.js +2 -2
- package/dist/ThoughtChainList/DeepThink.js +1 -1
- package/dist/ThoughtChainList/DotAni/index.js +1 -1
- package/dist/ThoughtChainList/DotAni/style.js +1 -1
- package/dist/ThoughtChainList/MarkdownEditor.js +2 -2
- package/dist/ThoughtChainList/RagRetrievalInfo.js +2 -2
- package/dist/ThoughtChainList/TableSql.js +8 -8
- package/dist/ThoughtChainList/TitleInfo.js +3 -3
- package/dist/ThoughtChainList/ToolCall.js +7 -7
- package/dist/ThoughtChainList/WebSearch.js +1 -1
- package/dist/ThoughtChainList/style.js +1 -1
- package/dist/ToolUseBar/BarItem/Content.js +5 -5
- package/dist/ToolUseBar/BarItem/index.js +1 -1
- package/dist/ToolUseBar/index.js +1 -1
- package/dist/ToolUseBar/style.js +1 -1
- package/dist/ToolUseBarThink/index.js +10 -10
- package/dist/ToolUseBarThink/style.js +1 -1
- package/dist/Types/message.d.ts +1 -0
- package/dist/Utils/debugUtils.js +1 -1
- package/dist/Utils/formatTime.js +1 -1
- package/dist/Utils/getScroll.js +2 -2
- package/dist/Utils/loadCSS.js +2 -2
- package/dist/Utils/proxySandbox/ProxySandbox.js +37 -37
- package/dist/Utils/proxySandbox/SecurityContextManager.js +6 -6
- package/dist/Utils/scrollTo.js +1 -1
- package/dist/Utils/throttleByAnimationFrame.js +2 -2
- package/dist/WelcomeMessage/index.js +1 -1
- package/dist/WelcomeMessage/style.js +1 -1
- package/dist/Workspace/Browser/index.js +13 -13
- package/dist/Workspace/Browser/style.js +1 -1
- package/dist/Workspace/File/FileComponent.js +38 -38
- package/dist/Workspace/File/FileTypeProcessor.js +8 -8
- package/dist/Workspace/File/PreviewComponent.js +14 -14
- package/dist/Workspace/File/style.js +1 -1
- package/dist/Workspace/File/utils.js +3 -3
- package/dist/Workspace/HtmlPreview/index.js +5 -5
- package/dist/Workspace/HtmlPreview/style.js +1 -1
- package/dist/Workspace/RealtimeFollow/index.js +18 -18
- package/dist/Workspace/RealtimeFollow/style.js +1 -1
- package/dist/Workspace/Task/index.js +3 -3
- package/dist/Workspace/Task/style.js +1 -1
- package/dist/Workspace/index.js +9 -9
- package/dist/Workspace/style.js +1 -1
- package/dist/Workspace/types.js +3 -3
- package/dist/Workspace/utils/codeLanguageUtils.js +3 -3
- package/dist/Workspace/utils.js +2 -2
- package/package.json +4 -3
|
@@ -288,24 +288,24 @@ import { useStyle } from "./style";
|
|
|
288
288
|
// 暴露 ref 方法
|
|
289
289
|
useImperativeHandle(ref, function() {
|
|
290
290
|
return {
|
|
291
|
-
setSchema: function(newSchema) {
|
|
291
|
+
setSchema: function setSchema(newSchema) {
|
|
292
292
|
handleSchemaChange(newSchema);
|
|
293
293
|
schemaRef.current = newSchema;
|
|
294
294
|
},
|
|
295
|
-
setHtmlContent: function(newHtml) {
|
|
295
|
+
setHtmlContent: function setHtmlContent(newHtml) {
|
|
296
296
|
setContent(newHtml, 'html');
|
|
297
297
|
},
|
|
298
|
-
setSchemaString: function(newJsonString) {
|
|
298
|
+
setSchemaString: function setSchemaString(newJsonString) {
|
|
299
299
|
setContent(newJsonString, 'json');
|
|
300
300
|
},
|
|
301
|
-
getSchema: function() {
|
|
301
|
+
getSchema: function getSchema() {
|
|
302
302
|
return schemaRef.current;
|
|
303
303
|
},
|
|
304
|
-
getHtmlContent: function() {
|
|
304
|
+
getHtmlContent: function getHtmlContent() {
|
|
305
305
|
var _schemaRef_current_component;
|
|
306
306
|
return ((_schemaRef_current_component = schemaRef.current.component) === null || _schemaRef_current_component === void 0 ? void 0 : _schemaRef_current_component.schema) || '';
|
|
307
307
|
},
|
|
308
|
-
getSchemaString: function() {
|
|
308
|
+
getSchemaString: function getSchemaString() {
|
|
309
309
|
return schemaToJson(schemaRef.current);
|
|
310
310
|
},
|
|
311
311
|
run: handleRunClick,
|
|
@@ -51,7 +51,7 @@ function _object_spread_props(target, source) {
|
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
53
|
import { useEditorStyleRegister } from "../../Hooks/useStyle";
|
|
54
|
-
var genStyle = function(token) {
|
|
54
|
+
var genStyle = function genStyle(token) {
|
|
55
55
|
var _obj, _obj1;
|
|
56
56
|
return _obj1 = {}, // 主容器样式
|
|
57
57
|
_define_property(_obj1, "".concat(token.componentCls), {
|
|
@@ -152,7 +152,7 @@ import { I18nContext, cnLabels } from "../../I18n";
|
|
|
152
152
|
* - 支持嵌套对象和数组
|
|
153
153
|
* - 提供动态字段添加/删除
|
|
154
154
|
* - 响应式布局适配
|
|
155
|
-
*/ var SchemaFormComponent = function(param) {
|
|
155
|
+
*/ var SchemaFormComponent = function SchemaFormComponent(param) {
|
|
156
156
|
var schema = param.schema, onValuesChange = param.onValuesChange, initialValues = param.initialValues, _param_readonly = param.readonly, readonly = _param_readonly === void 0 ? false : _param_readonly;
|
|
157
157
|
var _Form_useForm = _sliced_to_array(Form.useForm(), 1), form = _Form_useForm[0];
|
|
158
158
|
var _ref = (schema === null || schema === void 0 ? void 0 : schema.component) || {}, _ref_properties = _ref.properties, properties = _ref_properties === void 0 ? {} : _ref_properties;
|
|
@@ -332,14 +332,14 @@ import { I18nContext, cnLabels } from "../../I18n";
|
|
|
332
332
|
danger: true,
|
|
333
333
|
size: "small",
|
|
334
334
|
icon: /*#__PURE__*/ React.createElement(MinusCircleOutlined, null),
|
|
335
|
-
onClick: function() {
|
|
335
|
+
onClick: function onClick() {
|
|
336
336
|
return remove(name);
|
|
337
337
|
}
|
|
338
338
|
})
|
|
339
339
|
}, renderArrayItemContent(name, property.items, true));
|
|
340
340
|
}), !readonly && /*#__PURE__*/ React.createElement(Form.Item, null, /*#__PURE__*/ React.createElement(Button, {
|
|
341
341
|
type: "dashed",
|
|
342
|
-
onClick: function() {
|
|
342
|
+
onClick: function onClick() {
|
|
343
343
|
return add();
|
|
344
344
|
},
|
|
345
345
|
block: true,
|
|
@@ -446,7 +446,7 @@ import { I18nContext, cnLabels } from "../../I18n";
|
|
|
446
446
|
form: form,
|
|
447
447
|
layout: "vertical",
|
|
448
448
|
initialValues: defaultValues,
|
|
449
|
-
onValuesChange: function(_, allValues) {
|
|
449
|
+
onValuesChange: function onValuesChange1(_, allValues) {
|
|
450
450
|
onValuesChange === null || onValuesChange === void 0 ? void 0 : onValuesChange(_, allValues);
|
|
451
451
|
},
|
|
452
452
|
style: {
|
|
@@ -314,7 +314,7 @@ import { TemplateEngine } from "./templateEngine";
|
|
|
314
314
|
export * from "./templateEngine";
|
|
315
315
|
/**
|
|
316
316
|
* 创建沙箱实例
|
|
317
|
-
*/ var createSandboxInstance = function(sandboxConfig) {
|
|
317
|
+
*/ var createSandboxInstance = function createSandboxInstance(sandboxConfig) {
|
|
318
318
|
var _sandboxConfig_allowDOM, _sandboxConfig_strictMode;
|
|
319
319
|
return createSandbox(_object_spread_props(_object_spread({}, DEFAULT_SANDBOX_CONFIG), {
|
|
320
320
|
allowDOM: (_sandboxConfig_allowDOM = sandboxConfig.allowDOM) !== null && _sandboxConfig_allowDOM !== void 0 ? _sandboxConfig_allowDOM : true,
|
|
@@ -326,7 +326,7 @@ export * from "./templateEngine";
|
|
|
326
326
|
};
|
|
327
327
|
/**
|
|
328
328
|
* 创建沙箱上下文
|
|
329
|
-
*/ var createSandboxContext = function(shadowRoot) {
|
|
329
|
+
*/ var createSandboxContext = function createSandboxContext(shadowRoot) {
|
|
330
330
|
return {
|
|
331
331
|
shadowRoot: shadowRoot,
|
|
332
332
|
safeWindow: {
|
|
@@ -338,7 +338,7 @@ export * from "./templateEngine";
|
|
|
338
338
|
};
|
|
339
339
|
/**
|
|
340
340
|
* 执行不安全的脚本(沙箱禁用时)
|
|
341
|
-
*/ var executeUnsafeScript = function(script, shadowRoot) {
|
|
341
|
+
*/ var executeUnsafeScript = function executeUnsafeScript(script, shadowRoot) {
|
|
342
342
|
console.warn('沙箱已禁用,使用不安全的脚本执行方式');
|
|
343
343
|
var scriptFn = new Function('shadowRoot', 'window', script.textContent || '');
|
|
344
344
|
try {
|
|
@@ -351,7 +351,7 @@ export * from "./templateEngine";
|
|
|
351
351
|
};
|
|
352
352
|
/**
|
|
353
353
|
* 执行外部脚本
|
|
354
|
-
*/ var executeExternalScript = function(script, shadowRoot) {
|
|
354
|
+
*/ var executeExternalScript = function executeExternalScript(script, shadowRoot) {
|
|
355
355
|
console.warn('外部脚本暂时不通过沙箱执行:', script.src);
|
|
356
356
|
try {
|
|
357
357
|
shadowRoot === null || shadowRoot === void 0 ? void 0 : shadowRoot.appendChild(script);
|
|
@@ -361,7 +361,7 @@ export * from "./templateEngine";
|
|
|
361
361
|
};
|
|
362
362
|
/**
|
|
363
363
|
* 在沙箱中执行脚本
|
|
364
|
-
*/ var executeSandboxedScript = function(script, shadowRoot, sandboxConfig) {
|
|
364
|
+
*/ var executeSandboxedScript = function executeSandboxedScript(script, shadowRoot, sandboxConfig) {
|
|
365
365
|
return _async_to_generator(function() {
|
|
366
366
|
var sandbox, result, evalError;
|
|
367
367
|
return _ts_generator(this, function(_state) {
|
|
@@ -411,7 +411,7 @@ export * from "./templateEngine";
|
|
|
411
411
|
};
|
|
412
412
|
/**
|
|
413
413
|
* 执行内联脚本
|
|
414
|
-
*/ var executeInlineScript = function(script, shadowRoot, sandboxConfig) {
|
|
414
|
+
*/ var executeInlineScript = function executeInlineScript(script, shadowRoot, sandboxConfig) {
|
|
415
415
|
return _async_to_generator(function() {
|
|
416
416
|
return _ts_generator(this, function(_state) {
|
|
417
417
|
switch(_state.label){
|
|
@@ -437,7 +437,7 @@ export * from "./templateEngine";
|
|
|
437
437
|
};
|
|
438
438
|
/**
|
|
439
439
|
* 执行脚本(内联或外部)
|
|
440
|
-
*/ var executeScript = function(script, shadowRoot, sandboxConfig) {
|
|
440
|
+
*/ var executeScript = function executeScript(script, shadowRoot, sandboxConfig) {
|
|
441
441
|
return _async_to_generator(function() {
|
|
442
442
|
var scriptError;
|
|
443
443
|
return _ts_generator(this, function(_state) {
|
|
@@ -596,7 +596,7 @@ export * from "./templateEngine";
|
|
|
596
596
|
* - 提供调试模式
|
|
597
597
|
* - 支持默认值处理
|
|
598
598
|
* - 响应式布局适配
|
|
599
|
-
*/ export var SchemaRenderer = function(param) {
|
|
599
|
+
*/ export var SchemaRenderer = function SchemaRenderer(param) {
|
|
600
600
|
var schema = param.schema, values = param.values, config = param.config, fallbackContent = param.fallbackContent, _param_debug = param.debug, debug = _param_debug === void 0 ? true : _param_debug, _param_useDefaultValues = param.useDefaultValues, useDefaultValues = _param_useDefaultValues === void 0 ? true : _param_useDefaultValues, onRenderSuccess = param.onRenderSuccess, _param_sandboxConfig = param.sandboxConfig, sandboxConfig = _param_sandboxConfig === void 0 ? {
|
|
601
601
|
enabled: true,
|
|
602
602
|
allowDOM: true,
|
package/dist/TaskList/index.js
CHANGED
|
@@ -68,19 +68,19 @@ import { useRefFunction } from "../Hooks/useRefFunction";
|
|
|
68
68
|
import { I18nContext } from "../I18n";
|
|
69
69
|
import { useStyle } from "./style";
|
|
70
70
|
var LOADING_SIZE = 16;
|
|
71
|
-
var buildClassName = function() {
|
|
71
|
+
var buildClassName = function buildClassName() {
|
|
72
72
|
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
|
|
73
73
|
args[_key] = arguments[_key];
|
|
74
74
|
}
|
|
75
75
|
return classNames.apply(void 0, _to_consumable_array(args));
|
|
76
76
|
};
|
|
77
|
-
var hasTaskContent = function(content) {
|
|
77
|
+
var hasTaskContent = function hasTaskContent(content) {
|
|
78
78
|
if (Array.isArray(content)) {
|
|
79
79
|
return content.length > 0;
|
|
80
80
|
}
|
|
81
81
|
return !!content;
|
|
82
82
|
};
|
|
83
|
-
var getArrowRotation = function(collapsed) {
|
|
83
|
+
var getArrowRotation = function getArrowRotation(collapsed) {
|
|
84
84
|
return {
|
|
85
85
|
transform: collapsed ? 'rotate(0deg)' : 'rotate(180deg)',
|
|
86
86
|
transition: 'transform 0.3s ease'
|
|
@@ -196,7 +196,7 @@ var TaskListItem = /*#__PURE__*/ memo(function(param) {
|
|
|
196
196
|
}, item.content)))));
|
|
197
197
|
});
|
|
198
198
|
TaskListItem.displayName = 'TaskListItem';
|
|
199
|
-
var getDefaultExpandedKeys = function(items, isControlled) {
|
|
199
|
+
var getDefaultExpandedKeys = function getDefaultExpandedKeys(items, isControlled) {
|
|
200
200
|
return isControlled ? [] : items.map(function(item) {
|
|
201
201
|
return item.key;
|
|
202
202
|
});
|
package/dist/TaskList/style.js
CHANGED
|
@@ -51,7 +51,7 @@ function _object_spread_props(target, source) {
|
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
53
|
import { useEditorStyleRegister } from "../Hooks/useStyle";
|
|
54
|
-
var genStyle = function(token) {
|
|
54
|
+
var genStyle = function genStyle(token) {
|
|
55
55
|
var _obj;
|
|
56
56
|
return _define_property({}, token.componentCls, {
|
|
57
57
|
'&-thoughtChainItem': {
|
|
@@ -13,7 +13,7 @@ import { I18nContext } from "../I18n";
|
|
|
13
13
|
* msToTimes(1500, locale) // "1.5s"
|
|
14
14
|
* msToTimes(65000, locale) // "1m 5s"
|
|
15
15
|
* msToTimes(3665000, locale) // "1H 1m 5s"
|
|
16
|
-
*/ var msToTimes = function(ms, locale) {
|
|
16
|
+
*/ var msToTimes = function msToTimes(ms, locale) {
|
|
17
17
|
if (ms === undefined || ms === null) {
|
|
18
18
|
return '';
|
|
19
19
|
}
|
|
@@ -79,7 +79,7 @@ import { I18nContext } from "../I18n";
|
|
|
79
79
|
* - 美观的渐变背景设计
|
|
80
80
|
* - 响应式布局适配
|
|
81
81
|
* - 图标和文字组合显示
|
|
82
|
-
*/ export var CostMillis = function(props) {
|
|
82
|
+
*/ export var CostMillis = function CostMillis(props) {
|
|
83
83
|
var locale = useContext(I18nContext).locale;
|
|
84
84
|
return useMemo(function() {
|
|
85
85
|
if (props.costMillis === undefined || props.costMillis === null) {
|
|
@@ -97,7 +97,7 @@ import { MarkdownEditorUpdate } from "./MarkdownEditor";
|
|
|
97
97
|
* - 提供状态指示
|
|
98
98
|
* - 支持国际化
|
|
99
99
|
* - 提供自定义配置
|
|
100
|
-
*/ export var DeepThink = function(props) {
|
|
100
|
+
*/ export var DeepThink = function DeepThink(props) {
|
|
101
101
|
var _props_output, _props_output_response, _props_output1, _props_output_response1, _props_output2;
|
|
102
102
|
var errorMsg = ((_props_output = props.output) === null || _props_output === void 0 ? void 0 : _props_output.errorMsg) || ((_props_output1 = props.output) === null || _props_output1 === void 0 ? void 0 : (_props_output_response = _props_output1.response) === null || _props_output_response === void 0 ? void 0 : _props_output_response.error) || ((_props_output2 = props.output) === null || _props_output2 === void 0 ? void 0 : (_props_output_response1 = _props_output2.response) === null || _props_output_response1 === void 0 ? void 0 : _props_output_response1.errorMsg);
|
|
103
103
|
var i18n = useContext(I18nContext);
|
|
@@ -25,7 +25,7 @@ import { useDotAniStyle } from "./style";
|
|
|
25
25
|
* - 使用 role="progressbar" 提供无障碍支持
|
|
26
26
|
* - 使用 aria-label="Loading" 提供屏幕阅读器支持
|
|
27
27
|
* - 样式定义在 index.css 文件中
|
|
28
|
-
*/ export var DotLoading = function() {
|
|
28
|
+
*/ export var DotLoading = function DotLoading() {
|
|
29
29
|
var _useDotAniStyle = useDotAniStyle('agentic-md-editor-loader'), wrapSSR = _useDotAniStyle.wrapSSR, hashId = _useDotAniStyle.hashId;
|
|
30
30
|
return wrapSSR(/*#__PURE__*/ React.createElement("div", {
|
|
31
31
|
"data-testid": "dot-loading",
|
|
@@ -51,7 +51,7 @@ function _object_spread_props(target, source) {
|
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
53
|
import { useEditorStyleRegister } from "../../Hooks/useStyle";
|
|
54
|
-
var genStyle = function(token) {
|
|
54
|
+
var genStyle = function genStyle(token) {
|
|
55
55
|
return(// 加载器样式
|
|
56
56
|
_define_property({}, "".concat(token.componentCls), {
|
|
57
57
|
width: '20px',
|
|
@@ -57,7 +57,7 @@ import { MarkdownFormatter } from "../Plugins/formatter";
|
|
|
57
57
|
* 将内容转换为列表格式的 Markdown
|
|
58
58
|
* @param {string} content - 原始内容
|
|
59
59
|
* @returns {string} 转换后的内容
|
|
60
|
-
*/ var toListMarkdown = function(content) {
|
|
60
|
+
*/ var toListMarkdown = function toListMarkdown(content) {
|
|
61
61
|
return content;
|
|
62
62
|
};
|
|
63
63
|
/**
|
|
@@ -94,7 +94,7 @@ import { MarkdownFormatter } from "../Plugins/formatter";
|
|
|
94
94
|
* - 只读模式
|
|
95
95
|
* - 自动更新节点列表
|
|
96
96
|
* - 响应式布局
|
|
97
|
-
*/ export var MarkdownEditorUpdate = function(props) {
|
|
97
|
+
*/ export var MarkdownEditorUpdate = function MarkdownEditorUpdate(props) {
|
|
98
98
|
var editorRef = React.useRef();
|
|
99
99
|
useEffect(function() {
|
|
100
100
|
var _editorRef_current_store, _editorRef_current;
|
|
@@ -12,7 +12,7 @@ import { CostMillis } from "./CostMillis";
|
|
|
12
12
|
* @param props.costMillis - 检索过程的耗时(毫秒)。
|
|
13
13
|
*
|
|
14
14
|
* @returns 显示搜索查询和检索结果的 JSX 元素。
|
|
15
|
-
*/ export var RagRetrievalInfo = function(props) {
|
|
15
|
+
*/ export var RagRetrievalInfo = function RagRetrievalInfo(props) {
|
|
16
16
|
var i18n = useContext(I18nContext);
|
|
17
17
|
return useMemo(function() {
|
|
18
18
|
var _i18n_locale, _props_input_searchQueries, _props_input, _props_output_chunks, _props_output, _i18n_locale1, _Array_from, _props_output_chunks1, _props_output1;
|
|
@@ -111,7 +111,7 @@ import { CostMillis } from "./CostMillis";
|
|
|
111
111
|
width: 'max-content',
|
|
112
112
|
maxWidth: 'min(860px,100%)'
|
|
113
113
|
},
|
|
114
|
-
onClick: function() {
|
|
114
|
+
onClick: function onClick() {
|
|
115
115
|
var _props_onMetaClick;
|
|
116
116
|
if (!chunk) return;
|
|
117
117
|
(_props_onMetaClick = props.onMetaClick) === null || _props_onMetaClick === void 0 ? void 0 : _props_onMetaClick.call(props, chunk.docMeta);
|
|
@@ -121,7 +121,7 @@ import { CostMillis } from "./CostMillis";
|
|
|
121
121
|
* - 在 SQL 查询执行中时,显示执行中的提示。
|
|
122
122
|
* - 显示 SQL 查询结果,并提供复制功能。
|
|
123
123
|
* - 如果 SQL 查询出错,显示错误信息,并提供复制功能。
|
|
124
|
-
*/ export var TableSql = function(props) {
|
|
124
|
+
*/ export var TableSql = function TableSql(props) {
|
|
125
125
|
var _props_input;
|
|
126
126
|
var locale = useContext(I18nContext).locale;
|
|
127
127
|
var _React_useState = _sliced_to_array(React.useState(false), 2), editor = _React_useState[0], setEditor = _React_useState[1];
|
|
@@ -196,7 +196,7 @@ import { CostMillis } from "./CostMillis";
|
|
|
196
196
|
padding: '4px 24px',
|
|
197
197
|
borderRadius: '12px 12px 12px 12px'
|
|
198
198
|
},
|
|
199
|
-
onClick: function() {
|
|
199
|
+
onClick: function onClick() {
|
|
200
200
|
var _props_input_sql, _props_input, _editorRef_current_store, _editorRef_current;
|
|
201
201
|
setEditor(false);
|
|
202
202
|
(_editorRef_current = editorRef.current) === null || _editorRef_current === void 0 ? void 0 : (_editorRef_current_store = _editorRef_current.store) === null || _editorRef_current_store === void 0 ? void 0 : _editorRef_current_store.setMDContent("```sql\n".concat((_props_input = props.input) === null || _props_input === void 0 ? void 0 : (_props_input_sql = _props_input.sql) === null || _props_input_sql === void 0 ? void 0 : _props_input_sql.trim(), "\n```"));
|
|
@@ -208,7 +208,7 @@ import { CostMillis } from "./CostMillis";
|
|
|
208
208
|
borderRadius: '12px 12px 12px 12px'
|
|
209
209
|
},
|
|
210
210
|
type: "primary",
|
|
211
|
-
onClick: function() {
|
|
211
|
+
onClick: function onClick() {
|
|
212
212
|
var _editorRef_current_store_editor, _editorRef_current, _parserSlateNodeToMarkdown;
|
|
213
213
|
setEditor(false);
|
|
214
214
|
var schema = editorRef === null || editorRef === void 0 ? void 0 : (_editorRef_current = editorRef.current) === null || _editorRef_current === void 0 ? void 0 : (_editorRef_current_store_editor = _editorRef_current.store.editor) === null || _editorRef_current_store_editor === void 0 ? void 0 : _editorRef_current_store_editor.children;
|
|
@@ -281,7 +281,7 @@ import { CostMillis } from "./CostMillis";
|
|
|
281
281
|
costMillis: props.costMillis
|
|
282
282
|
}) : null, /*#__PURE__*/ React.createElement(ActionIconBox, {
|
|
283
283
|
title: locale === null || locale === void 0 ? void 0 : locale.copy,
|
|
284
|
-
onClick: function() {
|
|
284
|
+
onClick: function onClick() {
|
|
285
285
|
try {
|
|
286
286
|
var _props_input;
|
|
287
287
|
copy(((_props_input = props.input) === null || _props_input === void 0 ? void 0 : _props_input.sql) || '');
|
|
@@ -291,7 +291,7 @@ import { CostMillis } from "./CostMillis";
|
|
|
291
291
|
}
|
|
292
292
|
}, /*#__PURE__*/ React.createElement(Copy, null)), props.onItemChange || props.onChangeItem ? /*#__PURE__*/ React.createElement(ActionIconBox, {
|
|
293
293
|
title: locale === null || locale === void 0 ? void 0 : locale.edit,
|
|
294
|
-
onClick: function() {
|
|
294
|
+
onClick: function onClick() {
|
|
295
295
|
setEditor(true);
|
|
296
296
|
}
|
|
297
297
|
}, /*#__PURE__*/ React.createElement(EditOutlined, null)) : null)), /*#__PURE__*/ React.createElement("div", {
|
|
@@ -360,7 +360,7 @@ import { CostMillis } from "./CostMillis";
|
|
|
360
360
|
}
|
|
361
361
|
}, /*#__PURE__*/ React.createElement(ActionIconBox, {
|
|
362
362
|
title: locale === null || locale === void 0 ? void 0 : locale.copy,
|
|
363
|
-
onClick: function() {
|
|
363
|
+
onClick: function onClick() {
|
|
364
364
|
try {
|
|
365
365
|
var _props_output;
|
|
366
366
|
copy(JSON.stringify(((_props_output = props.output) === null || _props_output === void 0 ? void 0 : _props_output.tableData) || {}, null, 2));
|
|
@@ -381,7 +381,7 @@ import { CostMillis } from "./CostMillis";
|
|
|
381
381
|
},
|
|
382
382
|
size: "small",
|
|
383
383
|
pagination: false,
|
|
384
|
-
rowKey: function(row) {
|
|
384
|
+
rowKey: function rowKey(row) {
|
|
385
385
|
return Object.values(row || {}).join('-');
|
|
386
386
|
},
|
|
387
387
|
dataSource: dataSource,
|
|
@@ -433,7 +433,7 @@ import { CostMillis } from "./CostMillis";
|
|
|
433
433
|
}
|
|
434
434
|
}, /*#__PURE__*/ React.createElement(ActionIconBox, {
|
|
435
435
|
title: locale === null || locale === void 0 ? void 0 : locale.copy,
|
|
436
|
-
onClick: function() {
|
|
436
|
+
onClick: function onClick() {
|
|
437
437
|
try {
|
|
438
438
|
copy(errorMsg);
|
|
439
439
|
} catch (error) {
|
|
@@ -52,7 +52,7 @@ import { FlipText } from "./FlipText";
|
|
|
52
52
|
* - 支持国际化
|
|
53
53
|
* - 美观的动画效果
|
|
54
54
|
* - 响应式布局
|
|
55
|
-
*/ export var TitleInfo = function(props) {
|
|
55
|
+
*/ export var TitleInfo = function TitleInfo(props) {
|
|
56
56
|
var collapse = props.collapse, isFinished = props.isFinished, setCollapse = props.setCollapse;
|
|
57
57
|
var locale = useContext(I18nContext).locale;
|
|
58
58
|
var titleDom = useMemo(function() {
|
|
@@ -109,7 +109,7 @@ import { FlipText } from "./FlipText";
|
|
|
109
109
|
return /*#__PURE__*/ React.createElement(motion.span, {
|
|
110
110
|
key: "".concat(index, "-").concat(subIndex),
|
|
111
111
|
className: classNames("".concat(props.prefixCls, "-content-list-item-info"), props.hashId),
|
|
112
|
-
onClick: function() {
|
|
112
|
+
onClick: function onClick() {
|
|
113
113
|
var _props_onMetaClick;
|
|
114
114
|
props === null || props === void 0 ? void 0 : (_props_onMetaClick = props.onMetaClick) === null || _props_onMetaClick === void 0 ? void 0 : _props_onMetaClick.call(props, {
|
|
115
115
|
doc_name: item.name,
|
|
@@ -173,7 +173,7 @@ import { FlipText } from "./FlipText";
|
|
|
173
173
|
var extraTitleDom = /*#__PURE__*/ React.createElement(ActionIconBox, {
|
|
174
174
|
"data-testid": "action-icon-box",
|
|
175
175
|
title: collapse ? locale === null || locale === void 0 ? void 0 : locale.expand : locale === null || locale === void 0 ? void 0 : locale.collapse,
|
|
176
|
-
onClick: function() {
|
|
176
|
+
onClick: function onClick() {
|
|
177
177
|
setCollapse === null || setCollapse === void 0 ? void 0 : setCollapse(!collapse);
|
|
178
178
|
}
|
|
179
179
|
}, !collapse ? /*#__PURE__*/ React.createElement(ChevronsDownUp, {
|
|
@@ -151,7 +151,7 @@ import { DotLoading } from "./DotAni";
|
|
|
151
151
|
* - 支持Markdown渲染
|
|
152
152
|
* - 提供状态指示
|
|
153
153
|
* - 支持自定义配置
|
|
154
|
-
*/ export var ToolCall = function(props) {
|
|
154
|
+
*/ export var ToolCall = function ToolCall(props) {
|
|
155
155
|
var _props_output, _props_output_response, _props_output1, _props_output_response1, _props_output2, _props_input;
|
|
156
156
|
var _React_useState = _sliced_to_array(React.useState(false), 2), editor = _React_useState[0], setEditor = _React_useState[1];
|
|
157
157
|
var editorRef = React.useRef(undefined);
|
|
@@ -230,7 +230,7 @@ import { DotLoading } from "./DotAni";
|
|
|
230
230
|
padding: '4px 24px',
|
|
231
231
|
borderRadius: '12px 12px 12px 12px'
|
|
232
232
|
},
|
|
233
|
-
onClick: function() {
|
|
233
|
+
onClick: function onClick() {
|
|
234
234
|
var _props_input, _editorRef_current_store, _editorRef_current;
|
|
235
235
|
setEditor(false);
|
|
236
236
|
(_editorRef_current = editorRef.current) === null || _editorRef_current === void 0 ? void 0 : (_editorRef_current_store = _editorRef_current.store) === null || _editorRef_current_store === void 0 ? void 0 : _editorRef_current_store.setMDContent("```json\n".concat(JSON.stringify(((_props_input = props.input) === null || _props_input === void 0 ? void 0 : _props_input.inputArgs) || {}, null, 2).trim(), "\n```").trim());
|
|
@@ -242,7 +242,7 @@ import { DotLoading } from "./DotAni";
|
|
|
242
242
|
borderRadius: '12px 12px 12px 12px'
|
|
243
243
|
},
|
|
244
244
|
type: "primary",
|
|
245
|
-
onClick: function() {
|
|
245
|
+
onClick: function onClick() {
|
|
246
246
|
var _editorRef_current_store, _editorRef_current, _parserSlateNodeToMarkdown;
|
|
247
247
|
setEditor(false);
|
|
248
248
|
var schema = editorRef === null || editorRef === void 0 ? void 0 : (_editorRef_current = editorRef.current) === null || _editorRef_current === void 0 ? void 0 : (_editorRef_current_store = _editorRef_current.store) === null || _editorRef_current_store === void 0 ? void 0 : _editorRef_current_store.editor.children;
|
|
@@ -305,7 +305,7 @@ import { DotLoading } from "./DotAni";
|
|
|
305
305
|
costMillis: props.costMillis
|
|
306
306
|
}) : null, /*#__PURE__*/ React.createElement(ActionIconBox, {
|
|
307
307
|
title: locale === null || locale === void 0 ? void 0 : locale.copy,
|
|
308
|
-
onClick: function() {
|
|
308
|
+
onClick: function onClick() {
|
|
309
309
|
try {
|
|
310
310
|
var _props_input;
|
|
311
311
|
copy(JSON.stringify(((_props_input = props.input) === null || _props_input === void 0 ? void 0 : _props_input.inputArgs) || {}, null, 2));
|
|
@@ -315,7 +315,7 @@ import { DotLoading } from "./DotAni";
|
|
|
315
315
|
}
|
|
316
316
|
}, /*#__PURE__*/ React.createElement(Copy, null)), props.onItemChange || props.onChangeItem ? /*#__PURE__*/ React.createElement(ActionIconBox, {
|
|
317
317
|
title: locale === null || locale === void 0 ? void 0 : locale.edit,
|
|
318
|
-
onClick: function() {
|
|
318
|
+
onClick: function onClick() {
|
|
319
319
|
setEditor(true);
|
|
320
320
|
}
|
|
321
321
|
}, /*#__PURE__*/ React.createElement(EditOutlined, null)) : null)), /*#__PURE__*/ React.createElement("div", {
|
|
@@ -383,7 +383,7 @@ import { DotLoading } from "./DotAni";
|
|
|
383
383
|
}
|
|
384
384
|
}, /*#__PURE__*/ React.createElement(ActionIconBox, {
|
|
385
385
|
title: locale === null || locale === void 0 ? void 0 : locale.copy,
|
|
386
|
-
onClick: function() {
|
|
386
|
+
onClick: function onClick() {
|
|
387
387
|
try {
|
|
388
388
|
var _props_output;
|
|
389
389
|
copy(JSON.stringify(((_props_output = props.output) === null || _props_output === void 0 ? void 0 : _props_output.response) || {}, null, 2));
|
|
@@ -451,7 +451,7 @@ import { DotLoading } from "./DotAni";
|
|
|
451
451
|
}
|
|
452
452
|
}, /*#__PURE__*/ React.createElement(ActionIconBox, {
|
|
453
453
|
title: locale === null || locale === void 0 ? void 0 : locale.copy,
|
|
454
|
-
onClick: function() {
|
|
454
|
+
onClick: function onClick() {
|
|
455
455
|
try {
|
|
456
456
|
copy(errorMsg);
|
|
457
457
|
} catch (error) {
|
|
@@ -96,7 +96,7 @@ import { MarkdownEditorUpdate } from "./MarkdownEditor";
|
|
|
96
96
|
* - 提供状态指示
|
|
97
97
|
* - 支持国际化
|
|
98
98
|
* - 美观的UI设计
|
|
99
|
-
*/ export var WebSearch = function(props) {
|
|
99
|
+
*/ export var WebSearch = function WebSearch(props) {
|
|
100
100
|
var _props_output, _props_output_response, _props_output1, _props_output_response1, _props_output2, _props_output3;
|
|
101
101
|
var errorMsg = ((_props_output = props.output) === null || _props_output === void 0 ? void 0 : _props_output.errorMsg) || ((_props_output1 = props.output) === null || _props_output1 === void 0 ? void 0 : (_props_output_response = _props_output1.response) === null || _props_output_response === void 0 ? void 0 : _props_output_response.error) || ((_props_output2 = props.output) === null || _props_output2 === void 0 ? void 0 : (_props_output_response1 = _props_output2.response) === null || _props_output_response1 === void 0 ? void 0 : _props_output_response1.errorMsg);
|
|
102
102
|
var i18n = useContext(I18nContext);
|
|
@@ -51,7 +51,7 @@ function _object_spread_props(target, source) {
|
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
53
|
import { resetComponent, useEditorStyleRegister } from "../Hooks/useStyle";
|
|
54
|
-
var genStyle = function(token) {
|
|
54
|
+
var genStyle = function genStyle(token) {
|
|
55
55
|
return _define_property({}, token.componentCls, {
|
|
56
56
|
padding: '12px',
|
|
57
57
|
'*': {
|
|
@@ -31,7 +31,7 @@ import classnames from "classnames";
|
|
|
31
31
|
import { AnimatePresence, motion } from "framer-motion";
|
|
32
32
|
import React, { memo, useMemo } from "react";
|
|
33
33
|
import { useRefFunction } from "../../Hooks/useRefFunction";
|
|
34
|
-
var ToolImageComponent = function(param) {
|
|
34
|
+
var ToolImageComponent = function ToolImageComponent(param) {
|
|
35
35
|
var tool = param.tool, prefixCls = param.prefixCls, hashId = param.hashId;
|
|
36
36
|
var toolImageWrapperClassName = useMemo(function() {
|
|
37
37
|
var _obj;
|
|
@@ -95,7 +95,7 @@ var ToolImageComponent = function(param) {
|
|
|
95
95
|
}, iconElement));
|
|
96
96
|
};
|
|
97
97
|
export var ToolImage = /*#__PURE__*/ memo(ToolImageComponent);
|
|
98
|
-
var ToolHeaderRightComponent = function(param) {
|
|
98
|
+
var ToolHeaderRightComponent = function ToolHeaderRightComponent(param) {
|
|
99
99
|
var tool = param.tool, prefixCls = param.prefixCls, hashId = param.hashId, light = param.light;
|
|
100
100
|
var toolHeaderRightClassName = useMemo(function() {
|
|
101
101
|
return classnames("".concat(prefixCls, "-tool-header-right"), _define_property({}, "".concat(prefixCls, "-tool-header-right-light"), light), hashId);
|
|
@@ -172,7 +172,7 @@ var ToolHeaderRightComponent = function(param) {
|
|
|
172
172
|
}, animationProps), toolNameElement, toolTargetElement);
|
|
173
173
|
};
|
|
174
174
|
export var ToolHeaderRight = /*#__PURE__*/ memo(ToolHeaderRightComponent);
|
|
175
|
-
var ToolTimeComponent = function(param) {
|
|
175
|
+
var ToolTimeComponent = function ToolTimeComponent(param) {
|
|
176
176
|
var tool = param.tool, prefixCls = param.prefixCls, hashId = param.hashId;
|
|
177
177
|
var toolTimeClassName = useMemo(function() {
|
|
178
178
|
return classnames("".concat(prefixCls, "-tool-time"), hashId);
|
|
@@ -192,7 +192,7 @@ var ToolTimeComponent = function(param) {
|
|
|
192
192
|
return timeElement;
|
|
193
193
|
};
|
|
194
194
|
export var ToolTime = /*#__PURE__*/ memo(ToolTimeComponent);
|
|
195
|
-
var ToolExpandComponent = function(param) {
|
|
195
|
+
var ToolExpandComponent = function ToolExpandComponent(param) {
|
|
196
196
|
var showContent = param.showContent, expanded = param.expanded, prefixCls = param.prefixCls, hashId = param.hashId, onExpandClick = param.onExpandClick;
|
|
197
197
|
var toolExpandClassName = useMemo(function() {
|
|
198
198
|
return classnames("".concat(prefixCls, "-tool-expand"), hashId);
|
|
@@ -231,7 +231,7 @@ var ToolExpandComponent = function(param) {
|
|
|
231
231
|
return expandElement;
|
|
232
232
|
};
|
|
233
233
|
export var ToolExpand = /*#__PURE__*/ memo(ToolExpandComponent);
|
|
234
|
-
var ToolContentComponent = function(param) {
|
|
234
|
+
var ToolContentComponent = function ToolContentComponent(param) {
|
|
235
235
|
var tool = param.tool, prefixCls = param.prefixCls, hashId = param.hashId, light = param.light, showContent = param.showContent, expanded = param.expanded;
|
|
236
236
|
var toolContainerClassName = useMemo(function() {
|
|
237
237
|
return classnames("".concat(prefixCls, "-tool-container"), hashId, _define_property({}, "".concat(prefixCls, "-tool-container-light"), light));
|
|
@@ -69,7 +69,7 @@ import { useMergedState } from "rc-util";
|
|
|
69
69
|
import React, { memo, useMemo } from "react";
|
|
70
70
|
import { useRefFunction } from "../../Hooks/useRefFunction";
|
|
71
71
|
import { ToolContent, ToolExpand, ToolHeaderRight, ToolImage, ToolTime } from "./Content";
|
|
72
|
-
var ToolUseBarItemComponent = function(param) {
|
|
72
|
+
var ToolUseBarItemComponent = function ToolUseBarItemComponent(param) {
|
|
73
73
|
var tool = param.tool, prefixCls = param.prefixCls, hashId = param.hashId, onClick = param.onClick, isActive = param.isActive, onActiveChange = param.onActiveChange, isExpanded = param.isExpanded, onExpandedChange = param.onExpandedChange, defaultExpanded = param.defaultExpanded, _param_light = param.light, light = _param_light === void 0 ? false : _param_light;
|
|
74
74
|
// 使用 useMergedState 来管理展开状态
|
|
75
75
|
var _useMergedState = _sliced_to_array(useMergedState(defaultExpanded !== null && defaultExpanded !== void 0 ? defaultExpanded : false, {
|
package/dist/ToolUseBar/index.js
CHANGED
|
@@ -141,7 +141,7 @@ export * from "./BarItem";
|
|
|
141
141
|
* - 支持工具点击交互
|
|
142
142
|
* - 提供加载状态显示
|
|
143
143
|
* - 支持错误状态处理
|
|
144
|
-
*/ var ToolUseBarComponent = function(_0) {
|
|
144
|
+
*/ var ToolUseBarComponent = function ToolUseBarComponent(_0) {
|
|
145
145
|
var tools = _0.tools, onActiveKeysChange = _0.onActiveKeysChange, onExpandedKeysChange = _0.onExpandedKeysChange, _0_light = _0.light, light = _0_light === void 0 ? false : _0_light, style = _0.style, props = _object_without_properties(_0, [
|
|
146
146
|
"tools",
|
|
147
147
|
"onActiveKeysChange",
|
package/dist/ToolUseBar/style.js
CHANGED
|
@@ -51,7 +51,7 @@ function _object_spread_props(target, source) {
|
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
53
|
import { useEditorStyleRegister } from "../Hooks/useStyle";
|
|
54
|
-
var genStyle = function(token) {
|
|
54
|
+
var genStyle = function genStyle(token) {
|
|
55
55
|
return _define_property({}, token.componentCls, {
|
|
56
56
|
display: 'flex',
|
|
57
57
|
flexDirection: 'column',
|
|
@@ -92,7 +92,7 @@ import { useMergedState } from "rc-util";
|
|
|
92
92
|
import React, { memo, useContext, useEffect, useMemo } from "react";
|
|
93
93
|
import { useRefFunction } from "../Hooks/useRefFunction";
|
|
94
94
|
import { useStyle } from "./style";
|
|
95
|
-
var getChevronStyle = function(expanded) {
|
|
95
|
+
var getChevronStyle = function getChevronStyle(expanded) {
|
|
96
96
|
return {
|
|
97
97
|
transform: expanded ? 'rotate(0deg)' : 'rotate(-90deg)',
|
|
98
98
|
transition: 'transform 0.2s'
|
|
@@ -145,13 +145,13 @@ var HEADER_RIGHT_LOADING_ANIMATION = {
|
|
|
145
145
|
maskImage: 'linear-gradient(to right, rgba(0,0,0,0.99) -30%, rgba(0,0,0,0.15) -50%, rgba(0,0,0,0.99) 120%)'
|
|
146
146
|
}
|
|
147
147
|
};
|
|
148
|
-
var buildClassName = function() {
|
|
148
|
+
var buildClassName = function buildClassName() {
|
|
149
149
|
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
|
|
150
150
|
args[_key] = arguments[_key];
|
|
151
151
|
}
|
|
152
152
|
return classNames.apply(void 0, _to_consumable_array(args));
|
|
153
153
|
};
|
|
154
|
-
var LightModeIcon = function(param) {
|
|
154
|
+
var LightModeIcon = function LightModeIcon(param) {
|
|
155
155
|
var prefixCls = param.prefixCls, hashId = param.hashId, hover = param.hover, expandedState = param.expandedState;
|
|
156
156
|
var iconClassName = buildClassName("".concat(prefixCls, "-header-left-icon"), "".concat(prefixCls, "-header-left-icon-light"), hashId);
|
|
157
157
|
var chevronStyle = getChevronStyle(expandedState);
|
|
@@ -162,7 +162,7 @@ var LightModeIcon = function(param) {
|
|
|
162
162
|
className: iconClassName
|
|
163
163
|
}, icon);
|
|
164
164
|
};
|
|
165
|
-
var HeaderContent = function(param) {
|
|
165
|
+
var HeaderContent = function HeaderContent(param) {
|
|
166
166
|
var toolName = param.toolName, toolTarget = param.toolTarget, prefixCls = param.prefixCls, hashId = param.hashId, light = param.light, customClassNames = param.classNames, styles = param.styles;
|
|
167
167
|
var nameClassName = buildClassName("".concat(prefixCls, "-name"), _define_property({}, "".concat(prefixCls, "-name-light"), light), hashId, customClassNames === null || customClassNames === void 0 ? void 0 : customClassNames.name);
|
|
168
168
|
var targetClassName = buildClassName("".concat(prefixCls, "-target"), hashId, customClassNames === null || customClassNames === void 0 ? void 0 : customClassNames.target);
|
|
@@ -174,7 +174,7 @@ var HeaderContent = function(param) {
|
|
|
174
174
|
style: styles === null || styles === void 0 ? void 0 : styles.target
|
|
175
175
|
}, toolTarget) : /*#__PURE__*/ React.createElement("div", null));
|
|
176
176
|
};
|
|
177
|
-
var TimeElement = function(param) {
|
|
177
|
+
var TimeElement = function TimeElement(param) {
|
|
178
178
|
var time = param.time, prefixCls = param.prefixCls, hashId = param.hashId, customClassNames = param.classNames, styles = param.styles;
|
|
179
179
|
if (!time) return null;
|
|
180
180
|
var timeClassName = buildClassName("".concat(prefixCls, "-time"), hashId, customClassNames === null || customClassNames === void 0 ? void 0 : customClassNames.time);
|
|
@@ -183,7 +183,7 @@ var TimeElement = function(param) {
|
|
|
183
183
|
style: styles === null || styles === void 0 ? void 0 : styles.time
|
|
184
184
|
}, time);
|
|
185
185
|
};
|
|
186
|
-
var ExpandButton = function(param) {
|
|
186
|
+
var ExpandButton = function ExpandButton(param) {
|
|
187
187
|
var thinkContent = param.thinkContent, light = param.light, expandedState = param.expandedState, prefixCls = param.prefixCls, hashId = param.hashId, customClassNames = param.classNames, styles = param.styles, onToggleExpand = param.onToggleExpand;
|
|
188
188
|
if (!thinkContent || light) return null;
|
|
189
189
|
var expandClassName = buildClassName("".concat(prefixCls, "-expand"), hashId, customClassNames === null || customClassNames === void 0 ? void 0 : customClassNames.expand);
|
|
@@ -194,7 +194,7 @@ var ExpandButton = function(param) {
|
|
|
194
194
|
style: styles === null || styles === void 0 ? void 0 : styles.expand
|
|
195
195
|
}, expandIcon);
|
|
196
196
|
};
|
|
197
|
-
var ThinkContainer = function(param) {
|
|
197
|
+
var ThinkContainer = function ThinkContainer(param) {
|
|
198
198
|
var thinkContent = param.thinkContent, expandedState = param.expandedState, floatingExpandedState = param.floatingExpandedState, status = param.status, light = param.light, prefixCls = param.prefixCls, hashId = param.hashId, customClassNames = param.classNames, styles = param.styles, onToggleFloatingExpand = param.onToggleFloatingExpand;
|
|
199
199
|
var _obj;
|
|
200
200
|
var containerClassName = buildClassName("".concat(prefixCls, "-container"), hashId, customClassNames === null || customClassNames === void 0 ? void 0 : customClassNames.container, (_obj = {}, _define_property(_obj, "".concat(prefixCls, "-container-expanded"), expandedState), _define_property(_obj, "".concat(prefixCls, "-container-loading"), status === 'loading' && !floatingExpandedState), _define_property(_obj, "".concat(prefixCls, "-container-light"), light), _define_property(_obj, "".concat(prefixCls, "-container-floating-expanded"), floatingExpandedState), _obj));
|
|
@@ -288,7 +288,7 @@ var ThinkContainer = function(param) {
|
|
|
288
288
|
* thinkContent={<div>思考内容...</div>}
|
|
289
289
|
* />
|
|
290
290
|
* ```
|
|
291
|
-
*/ var ToolUseBarThinkComponent = function(param) {
|
|
291
|
+
*/ var ToolUseBarThinkComponent = function ToolUseBarThinkComponent(param) {
|
|
292
292
|
var toolName = param.toolName, toolTarget = param.toolTarget, time = param.time, icon = param.icon, thinkContent = param.thinkContent, status = param.status, testId = param.testId, expanded = param.expanded, _param_defaultExpanded = param.defaultExpanded, defaultExpanded = _param_defaultExpanded === void 0 ? false : _param_defaultExpanded, onExpandedChange = param.onExpandedChange, floatingExpanded = param.floatingExpanded, _param_defaultFloatingExpanded = param.defaultFloatingExpanded, defaultFloatingExpanded = _param_defaultFloatingExpanded === void 0 ? false : _param_defaultFloatingExpanded, onFloatingExpandedChange = param.onFloatingExpandedChange, customClassNames = param.classNames, styles = param.styles, _param_light = param.light, light = _param_light === void 0 ? false : _param_light;
|
|
293
293
|
var getPrefixCls = useContext(ConfigProvider.ConfigContext).getPrefixCls;
|
|
294
294
|
var prefixCls = getPrefixCls('agentic-tool-use-bar-think');
|
|
@@ -340,10 +340,10 @@ var ThinkContainer = function(param) {
|
|
|
340
340
|
className: headerClassName,
|
|
341
341
|
"data-testid": "tool-use-bar-think-header",
|
|
342
342
|
style: styles === null || styles === void 0 ? void 0 : styles.header,
|
|
343
|
-
onMouseMove: function() {
|
|
343
|
+
onMouseMove: function onMouseMove() {
|
|
344
344
|
return setHover(true);
|
|
345
345
|
},
|
|
346
|
-
onMouseLeave: function() {
|
|
346
|
+
onMouseLeave: function onMouseLeave() {
|
|
347
347
|
return setHover(false);
|
|
348
348
|
}
|
|
349
349
|
}, /*#__PURE__*/ React.createElement("div", {
|
|
@@ -53,7 +53,7 @@ function _object_spread_props(target, source) {
|
|
|
53
53
|
import { useEditorStyleRegister } from "../Hooks/useStyle";
|
|
54
54
|
var LIGHT_MODE_BACKGROUND = 'rgba(255, 255, 255, 0.65)';
|
|
55
55
|
var LIGHT_MODE_BACKDROP_FILTER = 'blur(12px)';
|
|
56
|
-
var genStyle = function(token) {
|
|
56
|
+
var genStyle = function genStyle(token) {
|
|
57
57
|
return _define_property({}, token.componentCls, {
|
|
58
58
|
position: 'relative',
|
|
59
59
|
cursor: 'pointer',
|