@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
|
@@ -196,7 +196,7 @@ import { isMobileDevice, isVivoOrOppoDevice, isWeChat } from "../AttachmentButto
|
|
|
196
196
|
* 文件上传管理器
|
|
197
197
|
*
|
|
198
198
|
* @description 封装文件上传相关的逻辑,包括上传、删除、重试等操作
|
|
199
|
-
*/ export var useFileUploadManager = function(param) {
|
|
199
|
+
*/ export var useFileUploadManager = function useFileUploadManager(param) {
|
|
200
200
|
var attachment = param.attachment, fileMap = param.fileMap, onFileMapChange = param.onFileMapChange;
|
|
201
201
|
var locale = useContext(I18nContext).locale;
|
|
202
202
|
// 判断是否所有文件上传完成
|
|
@@ -345,7 +345,7 @@ import { isMobileDevice, isVivoOrOppoDevice, isWeChat } from "../AttachmentButto
|
|
|
345
345
|
4,
|
|
346
346
|
upLoadFileToServer(selectedFiles, _object_spread_props(_object_spread({}, attachment), {
|
|
347
347
|
fileMap: fileMap,
|
|
348
|
-
onFileMapChange: function(newFileMap) {
|
|
348
|
+
onFileMapChange: function onFileMapChange(newFileMap) {
|
|
349
349
|
updateAttachmentFiles(newFileMap);
|
|
350
350
|
},
|
|
351
351
|
locale: locale
|
|
@@ -192,7 +192,7 @@ import { useVoiceInputManager } from "./VoiceInputManager";
|
|
|
192
192
|
* - 支持快捷键发送消息
|
|
193
193
|
* - 支持自动完成功能
|
|
194
194
|
* - 支持自定义渲染配置
|
|
195
|
-
*/ var MarkdownInputFieldComponent = function(_0) {
|
|
195
|
+
*/ var MarkdownInputFieldComponent = function MarkdownInputFieldComponent(_0) {
|
|
196
196
|
var tagInputProps = _0.tagInputProps, markdownProps = _0.markdownProps, _0_borderRadius = _0.borderRadius, borderRadius = _0_borderRadius === void 0 ? 16 : _0_borderRadius, onBlur = _0.onBlur, onFocus = _0.onFocus, _0_isShowTopOperatingArea = _0.isShowTopOperatingArea, isShowTopOperatingArea = _0_isShowTopOperatingArea === void 0 ? false : _0_isShowTopOperatingArea, props = _object_without_properties(_0, [
|
|
197
197
|
"tagInputProps",
|
|
198
198
|
"markdownProps",
|
|
@@ -351,17 +351,17 @@ import { useVoiceInputManager } from "./VoiceInputManager";
|
|
|
351
351
|
maxHeight: isEnlarged ? 'none' : props.maxHeight !== undefined ? typeof props.maxHeight === 'number' ? "".concat(props.maxHeight, "px") : props.maxHeight : "min(".concat(collapsedHeightPx, "px,100%)")
|
|
352
352
|
}),
|
|
353
353
|
tabIndex: 1,
|
|
354
|
-
onMouseEnter: function() {
|
|
354
|
+
onMouseEnter: function onMouseEnter() {
|
|
355
355
|
return setHover(true);
|
|
356
356
|
},
|
|
357
|
-
onMouseLeave: function() {
|
|
357
|
+
onMouseLeave: function onMouseLeave() {
|
|
358
358
|
return setHover(false);
|
|
359
359
|
},
|
|
360
360
|
onKeyDown: handleKeyDown
|
|
361
361
|
}, /*#__PURE__*/ React.createElement(BorderBeamAnimation, {
|
|
362
362
|
isVisible: isFocused && !animationComplete,
|
|
363
363
|
borderRadius: borderRadius || 16,
|
|
364
|
-
onAnimationComplete: function() {
|
|
364
|
+
onAnimationComplete: function onAnimationComplete() {
|
|
365
365
|
return setAnimationComplete(true);
|
|
366
366
|
}
|
|
367
367
|
}), /*#__PURE__*/ React.createElement("div", {
|
|
@@ -411,7 +411,7 @@ import { useVoiceInputManager } from "./VoiceInputManager";
|
|
|
411
411
|
type: 'dropdown'
|
|
412
412
|
}, tagInputProps),
|
|
413
413
|
initValue: props.value,
|
|
414
|
-
onChange: function(value) {
|
|
414
|
+
onChange: function onChange(value) {
|
|
415
415
|
var _props_onChange;
|
|
416
416
|
// 检查并限制字符数
|
|
417
417
|
if (props.maxLength !== undefined) {
|
|
@@ -429,19 +429,19 @@ import { useVoiceInputManager } from "./VoiceInputManager";
|
|
|
429
429
|
setValue(value);
|
|
430
430
|
(_props_onChange = props.onChange) === null || _props_onChange === void 0 ? void 0 : _props_onChange.call(props, value);
|
|
431
431
|
},
|
|
432
|
-
onFocus: function(value, schema, e) {
|
|
432
|
+
onFocus: function onFocus1(value, schema, e) {
|
|
433
433
|
onFocus === null || onFocus === void 0 ? void 0 : onFocus(value, schema, e);
|
|
434
434
|
activeInput(true);
|
|
435
435
|
setIsFocused(true);
|
|
436
436
|
setAnimationComplete(false);
|
|
437
437
|
},
|
|
438
|
-
onBlur: function(value, schema, e) {
|
|
438
|
+
onBlur: function onBlur1(value, schema, e) {
|
|
439
439
|
onBlur === null || onBlur === void 0 ? void 0 : onBlur(value, schema, e);
|
|
440
440
|
activeInput(false);
|
|
441
441
|
setIsFocused(false);
|
|
442
442
|
setAnimationComplete(false);
|
|
443
443
|
},
|
|
444
|
-
onPaste: function(e) {
|
|
444
|
+
onPaste: function onPaste(e) {
|
|
445
445
|
handlePaste(e);
|
|
446
446
|
},
|
|
447
447
|
titlePlaceholderContent: props.placeholder,
|
|
@@ -458,7 +458,7 @@ import { useVoiceInputManager } from "./VoiceInputManager";
|
|
|
458
458
|
fileUploadStatus: fileUploadDone ? 'done' : 'uploading',
|
|
459
459
|
refinePrompt: props.refinePrompt,
|
|
460
460
|
editorRef: markdownEditorRef,
|
|
461
|
-
onValueChange: function(text) {
|
|
461
|
+
onValueChange: function onValueChange(text) {
|
|
462
462
|
var _props_onChange;
|
|
463
463
|
setValue(text);
|
|
464
464
|
(_props_onChange = props.onChange) === null || _props_onChange === void 0 ? void 0 : _props_onChange.call(props, text);
|
|
@@ -469,7 +469,7 @@ import { useVoiceInputManager } from "./VoiceInputManager";
|
|
|
469
469
|
enlargeable: !!((_props_enlargeable2 = props.enlargeable) === null || _props_enlargeable2 === void 0 ? void 0 : _props_enlargeable2.enable),
|
|
470
470
|
isEnlarged: isEnlarged,
|
|
471
471
|
onEnlargeClick: handleEnlargeClick,
|
|
472
|
-
onResize: function(width, rightOffset) {
|
|
472
|
+
onResize: function onResize(width, rightOffset) {
|
|
473
473
|
setTopRightPadding(width);
|
|
474
474
|
setQuickRightOffset(rightOffset);
|
|
475
475
|
}
|
|
@@ -272,7 +272,7 @@ import { RefinePromptButton } from "../RefinePromptButton";
|
|
|
272
272
|
})();
|
|
273
273
|
});
|
|
274
274
|
return /*#__PURE__*/ React.createElement(RcResizeObserver, {
|
|
275
|
-
onResize: function(e) {
|
|
275
|
+
onResize: function onResize1(e) {
|
|
276
276
|
try {
|
|
277
277
|
if (typeof window === 'undefined') {
|
|
278
278
|
onResize === null || onResize === void 0 ? void 0 : onResize(e.offsetWidth, 0);
|
|
@@ -291,18 +291,18 @@ import { RefinePromptButton } from "../RefinePromptButton";
|
|
|
291
291
|
}
|
|
292
292
|
}, /*#__PURE__*/ React.createElement("div", {
|
|
293
293
|
ref: ref,
|
|
294
|
-
onBlur: function(e) {
|
|
294
|
+
onBlur: function onBlur(e) {
|
|
295
295
|
e.stopPropagation();
|
|
296
296
|
},
|
|
297
|
-
onFocus: function(e) {
|
|
297
|
+
onFocus: function onFocus(e) {
|
|
298
298
|
e.stopPropagation();
|
|
299
299
|
},
|
|
300
300
|
contentEditable: false,
|
|
301
|
-
onClick: function(e) {
|
|
301
|
+
onClick: function onClick(e) {
|
|
302
302
|
e.stopPropagation();
|
|
303
303
|
e.preventDefault();
|
|
304
304
|
},
|
|
305
|
-
onKeyDown: function(e) {
|
|
305
|
+
onKeyDown: function onKeyDown(e) {
|
|
306
306
|
e.stopPropagation();
|
|
307
307
|
e.preventDefault();
|
|
308
308
|
},
|
|
@@ -5,17 +5,17 @@ import React, { useContext } from "react";
|
|
|
5
5
|
import { ErrorBoundary } from "react-error-boundary";
|
|
6
6
|
import { ActionIconBox } from "../../Components/ActionIconBox";
|
|
7
7
|
import { useStyle } from "./style";
|
|
8
|
-
export var RefinePromptButton = function(props) {
|
|
8
|
+
export var RefinePromptButton = function RefinePromptButton(props) {
|
|
9
9
|
var disabled = props.disabled, status = props.status, onRefine = props.onRefine;
|
|
10
10
|
var getPrefixCls = useContext(ConfigProvider.ConfigContext).getPrefixCls;
|
|
11
11
|
var baseCls = getPrefixCls('agentic-md-input-field-refine-button');
|
|
12
12
|
var wrapSSR = useStyle(baseCls).wrapSSR;
|
|
13
|
-
var handleClick = function() {
|
|
13
|
+
var handleClick = function handleClick() {
|
|
14
14
|
if (disabled) return;
|
|
15
15
|
if (status === 'loading') return;
|
|
16
16
|
onRefine();
|
|
17
17
|
};
|
|
18
|
-
var renderIcon = function() {
|
|
18
|
+
var renderIcon = function renderIcon() {
|
|
19
19
|
if (status === 'loading') return /*#__PURE__*/ React.createElement(LoadingOutlined, null);
|
|
20
20
|
return /*#__PURE__*/ React.createElement(TextOptimize, null);
|
|
21
21
|
};
|
|
@@ -60,7 +60,7 @@ var spinnerRotate = new Keyframes('refineSpinnerRotate', {
|
|
|
60
60
|
transform: 'rotate(360deg)'
|
|
61
61
|
}
|
|
62
62
|
});
|
|
63
|
-
var genStyle = function(token) {
|
|
63
|
+
var genStyle = function genStyle(token) {
|
|
64
64
|
return _define_property({}, token.componentCls, {
|
|
65
65
|
width: 20,
|
|
66
66
|
height: 20,
|
|
@@ -64,7 +64,7 @@ import { VoiceInputButton } from "../VoiceInput";
|
|
|
64
64
|
* SendActions 组件 - 发送操作按钮区域
|
|
65
65
|
*
|
|
66
66
|
* @description 封装发送操作相关的按钮,包括附件上传、语音输入、发送按钮等
|
|
67
|
-
*/ export var SendActions = function(param) {
|
|
67
|
+
*/ export var SendActions = function SendActions(param) {
|
|
68
68
|
var attachment = param.attachment, voiceRecognizer = param.voiceRecognizer, value = param.value, disabled = param.disabled, typing = param.typing, isLoading = param.isLoading, _param_fileUploadDone = param.fileUploadDone, fileUploadDone = _param_fileUploadDone === void 0 ? true : _param_fileUploadDone, _param_recording = param.recording, recording = _param_recording === void 0 ? false : _param_recording, _param_collapseSendActions = param.collapseSendActions, collapseSendActions = _param_collapseSendActions === void 0 ? false : _param_collapseSendActions, _param_allowEmptySubmit = param.allowEmptySubmit, allowEmptySubmit = _param_allowEmptySubmit === void 0 ? false : _param_allowEmptySubmit, uploadImage = param.uploadImage, onStartRecording = param.onStartRecording, onStopRecording = param.onStopRecording, onSend = param.onSend, onStop = param.onStop, actionsRender = param.actionsRender, _param_prefixCls = param.prefixCls, prefixCls = _param_prefixCls === void 0 ? 'ant-agentic-md-input-field' : _param_prefixCls, _param_hashId = param.hashId, hashId = _param_hashId === void 0 ? '' : _param_hashId, _param_hasTools = param.hasTools, hasTools = _param_hasTools === void 0 ? false : _param_hasTools, onResize = param.onResize, sendButtonProps = param.sendButtonProps, triggerSendKey = param.triggerSendKey;
|
|
69
69
|
var fileMap = attachment === null || attachment === void 0 ? void 0 : attachment.fileMap;
|
|
70
70
|
var defaultActionsLen = [
|
|
@@ -85,7 +85,7 @@ import { VoiceInputButton } from "../VoiceInput";
|
|
|
85
85
|
title: collapseSendActions && defaultActionsLen > 2 ? (locale === null || locale === void 0 ? void 0 : locale['input.fileUpload']) || '文件上传' : ''
|
|
86
86
|
}, attachment), {
|
|
87
87
|
fileMap: fileMap,
|
|
88
|
-
onFileMapChange: function(fileMap) {
|
|
88
|
+
onFileMapChange: function onFileMapChange(fileMap) {
|
|
89
89
|
var _attachment_onFileMapChange;
|
|
90
90
|
attachment === null || attachment === void 0 ? void 0 : (_attachment_onFileMapChange = attachment.onFileMapChange) === null || _attachment_onFileMapChange === void 0 ? void 0 : _attachment_onFileMapChange.call(attachment, fileMap);
|
|
91
91
|
},
|
|
@@ -108,7 +108,7 @@ import { VoiceInputButton } from "../VoiceInput";
|
|
|
108
108
|
typing: !!typing || !!isLoading,
|
|
109
109
|
isSendable: allowEmptySubmit || !!(value === null || value === void 0 ? void 0 : value.trim()) || fileMap && fileMap.size > 0 || recording,
|
|
110
110
|
disabled: disabled,
|
|
111
|
-
onClick: function() {
|
|
111
|
+
onClick: function onClick() {
|
|
112
112
|
if (typing || isLoading) {
|
|
113
113
|
onStop === null || onStop === void 0 ? void 0 : onStop();
|
|
114
114
|
return;
|
|
@@ -157,16 +157,16 @@ import { VoiceInputButton } from "../VoiceInput";
|
|
|
157
157
|
fileUploadStatus: fileUploadDone ? 'done' : 'uploading'
|
|
158
158
|
}, defaultActions) : defaultActions;
|
|
159
159
|
return /*#__PURE__*/ React.createElement(RcResizeObserver, {
|
|
160
|
-
onResize: function(e) {
|
|
160
|
+
onResize: function onResize1(e) {
|
|
161
161
|
onResize === null || onResize === void 0 ? void 0 : onResize(e.offsetWidth);
|
|
162
162
|
}
|
|
163
163
|
}, /*#__PURE__*/ React.createElement("div", {
|
|
164
164
|
contentEditable: false,
|
|
165
|
-
onClick: function(e) {
|
|
165
|
+
onClick: function onClick(e) {
|
|
166
166
|
e.stopPropagation();
|
|
167
167
|
e.preventDefault();
|
|
168
168
|
},
|
|
169
|
-
onKeyDown: function(e) {
|
|
169
|
+
onKeyDown: function onKeyDown(e) {
|
|
170
170
|
e.stopPropagation();
|
|
171
171
|
e.preventDefault();
|
|
172
172
|
},
|
|
@@ -172,7 +172,7 @@ function SendIcon(props) {
|
|
|
172
172
|
* - 支持紧凑模式显示
|
|
173
173
|
* - 支持自定义颜色配置
|
|
174
174
|
* - 在SSR环境下不渲染
|
|
175
|
-
*/ export var SendButton = function(props) {
|
|
175
|
+
*/ export var SendButton = function SendButton(props) {
|
|
176
176
|
var isSendable = props.isSendable, disabled = props.disabled, typing = props.typing, onClick = props.onClick, style = props.style, colors = props.colors, _props_triggerSendKey = props.triggerSendKey, triggerSendKey = _props_triggerSendKey === void 0 ? 'Enter' : _props_triggerSendKey;
|
|
177
177
|
useEffect(function() {
|
|
178
178
|
var _props_onInit;
|
|
@@ -201,14 +201,14 @@ function SendIcon(props) {
|
|
|
201
201
|
mouseEnterDelay: 0.5
|
|
202
202
|
}, /*#__PURE__*/ React.createElement("div", {
|
|
203
203
|
"data-testid": "send-button",
|
|
204
|
-
onClick: function() {
|
|
204
|
+
onClick: function onClick1() {
|
|
205
205
|
if (!disabled) {
|
|
206
206
|
onClick();
|
|
207
207
|
}
|
|
208
208
|
},
|
|
209
209
|
role: "button",
|
|
210
210
|
tabIndex: 0,
|
|
211
|
-
onKeyDown: function(e) {
|
|
211
|
+
onKeyDown: function onKeyDown(e) {
|
|
212
212
|
if (disabled) return;
|
|
213
213
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
214
214
|
e.preventDefault(); // 防止键盘事件触发 click 事件
|
|
@@ -61,7 +61,7 @@ var pauseIconRotate = new Keyframes('pauseIconRotate', {
|
|
|
61
61
|
transform: 'rotate(360deg)'
|
|
62
62
|
}
|
|
63
63
|
});
|
|
64
|
-
var genStyle = function(token) {
|
|
64
|
+
var genStyle = function genStyle(token) {
|
|
65
65
|
return _define_property({}, token.componentCls, {
|
|
66
66
|
fontSize: '32px',
|
|
67
67
|
height: 32,
|
|
@@ -10,7 +10,7 @@ import { useStyle } from "./style";
|
|
|
10
10
|
* @description 包含所有hooks和渲染逻辑的内部实现组件
|
|
11
11
|
* @param props - 组件属性
|
|
12
12
|
* @returns React 组件
|
|
13
|
-
*/ var SkillModeBarInner = function(param) {
|
|
13
|
+
*/ var SkillModeBarInner = function SkillModeBarInner(param) {
|
|
14
14
|
var skillMode = param.skillMode, onSkillModeOpenChange = param.onSkillModeOpenChange;
|
|
15
15
|
// 获取样式前缀和配置
|
|
16
16
|
var getPrefixCls = useContext(ConfigProvider.ConfigContext).getPrefixCls;
|
|
@@ -32,7 +32,7 @@ import { useStyle } from "./style";
|
|
|
32
32
|
var hasRightContent = rightContentArray.length > 0;
|
|
33
33
|
var isClosable = (skillMode === null || skillMode === void 0 ? void 0 : skillMode.closable) !== false;
|
|
34
34
|
var shouldShowDivider = hasRightContent && isClosable;
|
|
35
|
-
var handleCloseClick = function(e) {
|
|
35
|
+
var handleCloseClick = function handleCloseClick(e) {
|
|
36
36
|
e.stopPropagation();
|
|
37
37
|
// 使用内部状态变化处理函数
|
|
38
38
|
handleInternalSkillModeChange(false);
|
|
@@ -120,7 +120,7 @@ import { useStyle } from "./style";
|
|
|
120
120
|
* @description 用于显示技能模式的标题栏,包含标题、右侧内容和关闭按钮
|
|
121
121
|
* @param props - 组件属性
|
|
122
122
|
* @returns React 组件
|
|
123
|
-
*/ export var SkillModeBar = function(param) {
|
|
123
|
+
*/ export var SkillModeBar = function SkillModeBar(param) {
|
|
124
124
|
var skillMode = param.skillMode, onSkillModeOpenChange = param.onSkillModeOpenChange;
|
|
125
125
|
// 早期返回:当 skillMode 不存在或 enable 为 false 时,不渲染任何内容且不执行任何逻辑
|
|
126
126
|
if (!skillMode || skillMode.enable === false) {
|
|
@@ -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
|
var _obj;
|
|
56
56
|
return _obj = {}, _define_property(_obj, "".concat(token.componentCls, "-container"), {
|
|
57
57
|
// overflow: 'hidden', // 会把Quote的弹框遮挡
|
|
@@ -287,7 +287,7 @@ import { useRefFunction } from "../../Hooks/useRefFunction";
|
|
|
287
287
|
* - 支持加载状态显示
|
|
288
288
|
* - 自动处理选择事件
|
|
289
289
|
* - 支持自定义样式和内容
|
|
290
|
-
*/ export var Suggestion = function(props) {
|
|
290
|
+
*/ export var Suggestion = function Suggestion(props) {
|
|
291
291
|
var _props_tagInputProps, _props_tagInputProps1;
|
|
292
292
|
var onSelectRef = useRef(undefined);
|
|
293
293
|
var triggerNodeContext = useRef(undefined);
|
|
@@ -304,7 +304,7 @@ import { useRefFunction } from "../../Hooks/useRefFunction";
|
|
|
304
304
|
return items.map(function(item) {
|
|
305
305
|
var key = (item || {}).key;
|
|
306
306
|
return _object_spread_props(_object_spread({}, item), {
|
|
307
|
-
onClick: function() {
|
|
307
|
+
onClick: function onClick() {
|
|
308
308
|
var _onSelectRef_current;
|
|
309
309
|
setOpen(false);
|
|
310
310
|
(_onSelectRef_current = onSelectRef.current) === null || _onSelectRef_current === void 0 ? void 0 : _onSelectRef_current.call(onSelectRef, "".concat(key) || '');
|
|
@@ -313,7 +313,7 @@ import { useRefFunction } from "../../Hooks/useRefFunction";
|
|
|
313
313
|
});
|
|
314
314
|
}), 2), selectedItems = _useState1[0], setSelectedItems = _useState1[1];
|
|
315
315
|
useEffect(function() {
|
|
316
|
-
var loadingData = function() {
|
|
316
|
+
var loadingData = function loadingData() {
|
|
317
317
|
return _async_to_generator(function() {
|
|
318
318
|
var result;
|
|
319
319
|
return _ts_generator(this, function(_state) {
|
|
@@ -334,7 +334,7 @@ import { useRefFunction } from "../../Hooks/useRefFunction";
|
|
|
334
334
|
setSelectedItems(result.map(function(item) {
|
|
335
335
|
var key = (item || {}).key;
|
|
336
336
|
return _object_spread_props(_object_spread({}, item), {
|
|
337
|
-
onClick: function() {
|
|
337
|
+
onClick: function onClick() {
|
|
338
338
|
var _onSelectRef_current;
|
|
339
339
|
setOpen(false);
|
|
340
340
|
(_onSelectRef_current = onSelectRef.current) === null || _onSelectRef_current === void 0 ? void 0 : _onSelectRef_current.call(onSelectRef, "".concat(key) || '');
|
|
@@ -363,12 +363,12 @@ import { useRefFunction } from "../../Hooks/useRefFunction";
|
|
|
363
363
|
width: '100%',
|
|
364
364
|
height: '100%'
|
|
365
365
|
},
|
|
366
|
-
onKeyDown: function(e) {
|
|
366
|
+
onKeyDown: function onKeyDown(e) {
|
|
367
367
|
e.stopPropagation();
|
|
368
368
|
e.preventDefault();
|
|
369
369
|
}
|
|
370
370
|
}, loading ? /*#__PURE__*/ React.createElement(Spin, null) : dropdownRender(defaultDropdownContent, _object_spread_props(_object_spread({}, props, triggerNodeContext.current), {
|
|
371
|
-
onSelect: function(value, path) {
|
|
371
|
+
onSelect: function onSelect(value, path) {
|
|
372
372
|
var _onSelectRef_current;
|
|
373
373
|
(_onSelectRef_current = onSelectRef.current) === null || _onSelectRef_current === void 0 ? void 0 : _onSelectRef_current.call(onSelectRef, "".concat(value) || '', path);
|
|
374
374
|
setOpen(false);
|
|
@@ -397,7 +397,7 @@ import { useRefFunction } from "../../Hooks/useRefFunction";
|
|
|
397
397
|
overlayStyle: dropdownStyle,
|
|
398
398
|
menu: menu ? menu : {
|
|
399
399
|
items: selectedItems,
|
|
400
|
-
onKeyDown: function(e) {
|
|
400
|
+
onKeyDown: function onKeyDown(e) {
|
|
401
401
|
e.stopPropagation();
|
|
402
402
|
e.preventDefault();
|
|
403
403
|
}
|
|
@@ -405,7 +405,7 @@ import { useRefFunction } from "../../Hooks/useRefFunction";
|
|
|
405
405
|
forceRender: true,
|
|
406
406
|
destroyOnHidden: false,
|
|
407
407
|
placement: "top",
|
|
408
|
-
onOpenChange: function(isOpenChanged) {
|
|
408
|
+
onOpenChange: function onOpenChange(isOpenChanged) {
|
|
409
409
|
if (isOpenChanged) return;
|
|
410
410
|
setOpen(isOpenChanged);
|
|
411
411
|
},
|
|
@@ -3,12 +3,12 @@ import classNames from "classnames";
|
|
|
3
3
|
import React, { useContext } from "react";
|
|
4
4
|
import { BackTo } from "../../BackTo";
|
|
5
5
|
import { useStyle } from "./style";
|
|
6
|
-
var TopOperatingArea = function(props) {
|
|
6
|
+
var TopOperatingArea = function TopOperatingArea(props) {
|
|
7
7
|
var _props_isShowBackTo = props.isShowBackTo, isShowBackTo = _props_isShowBackTo === void 0 ? true : _props_isShowBackTo, targetRef = props.targetRef, operationBtnRender = props.operationBtnRender;
|
|
8
8
|
var getPrefixCls = useContext(ConfigProvider.ConfigContext).getPrefixCls;
|
|
9
9
|
var prefixCls = getPrefixCls('agentic-top-operating-area');
|
|
10
10
|
var _useStyle = useStyle(prefixCls), wrapSSR = _useStyle.wrapSSR, hashId = _useStyle.hashId;
|
|
11
|
-
var renderOperationButtons = function() {
|
|
11
|
+
var renderOperationButtons = function renderOperationButtons() {
|
|
12
12
|
if (!operationBtnRender) return null;
|
|
13
13
|
return /*#__PURE__*/ React.createElement("div", {
|
|
14
14
|
className: classNames("".concat(prefixCls, "-buttons"), hashId)
|
|
@@ -53,7 +53,7 @@ function _object_spread_props(target, source) {
|
|
|
53
53
|
import { useEditorStyleRegister } from "../../Hooks/useStyle";
|
|
54
54
|
export var prefixCls = 'top-operating-area';
|
|
55
55
|
// 样式生成函数
|
|
56
|
-
var genTopOperatingAreaStyle = function(token) {
|
|
56
|
+
var genTopOperatingAreaStyle = function genTopOperatingAreaStyle(token) {
|
|
57
57
|
var _obj;
|
|
58
58
|
return _define_property({}, token.componentCls, (_obj = {
|
|
59
59
|
position: 'relative',
|
|
@@ -99,7 +99,7 @@ var genTopOperatingAreaStyle = function(token) {
|
|
|
99
99
|
}
|
|
100
100
|
}), _obj));
|
|
101
101
|
};
|
|
102
|
-
export var useStyle = function(prefixCls) {
|
|
102
|
+
export var useStyle = function useStyle(prefixCls) {
|
|
103
103
|
return useEditorStyleRegister(prefixCls, function(token) {
|
|
104
104
|
var topOperatingAreaToken = _object_spread_props(_object_spread({}, token), {
|
|
105
105
|
componentCls: ".".concat(prefixCls)
|
|
@@ -152,7 +152,7 @@ import { useStyle } from "./style";
|
|
|
152
152
|
* - recording=false:未开始
|
|
153
153
|
* - recording=true:录音中
|
|
154
154
|
* 外部通过 `createRecognizer` 提供语音识别实现。
|
|
155
|
-
*/ export var VoiceInputButton = function(props) {
|
|
155
|
+
*/ export var VoiceInputButton = function VoiceInputButton(props) {
|
|
156
156
|
var recording = props.recording, disabled = props.disabled, onStart = props.onStart, onStop = props.onStop, style = props.style;
|
|
157
157
|
var getPrefixCls = useContext(ConfigProvider.ConfigContext).getPrefixCls;
|
|
158
158
|
var baseCls = getPrefixCls('agentic-md-input-field-voice-button');
|
|
@@ -186,7 +186,7 @@ import { useStyle } from "./style";
|
|
|
186
186
|
"aria-pressed": recording,
|
|
187
187
|
className: classNames(baseCls, hashId, (_obj = {}, _define_property(_obj, "".concat(baseCls, "-disabled"), disabled), _define_property(_obj, "".concat(baseCls, "-recording"), recording), _obj)),
|
|
188
188
|
style: style,
|
|
189
|
-
onClick: function() {
|
|
189
|
+
onClick: function onClick() {
|
|
190
190
|
return _async_to_generator(function() {
|
|
191
191
|
return _ts_generator(this, function(_state) {
|
|
192
192
|
switch(_state.label){
|
|
@@ -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
|
height: '32px',
|
|
57
57
|
minWidth: '32px',
|
|
@@ -178,7 +178,7 @@ import { useRefFunction } from "../../Hooks/useRefFunction";
|
|
|
178
178
|
* 语音输入管理器
|
|
179
179
|
*
|
|
180
180
|
* @description 封装语音输入相关的逻辑,包括录音控制、语音识别等
|
|
181
|
-
*/ export var useVoiceInputManager = function(param) {
|
|
181
|
+
*/ export var useVoiceInputManager = function useVoiceInputManager(param) {
|
|
182
182
|
var voiceRecognizer = param.voiceRecognizer, editorRef = param.editorRef, onValueChange = param.onValueChange;
|
|
183
183
|
var _useState = _sliced_to_array(useState(false), 2), recording = _useState[0], setRecording = _useState[1];
|
|
184
184
|
var recognizerRef = useRef(null);
|
|
@@ -221,7 +221,7 @@ import { useRefFunction } from "../../Hooks/useRefFunction";
|
|
|
221
221
|
return [
|
|
222
222
|
4,
|
|
223
223
|
voiceRecognizer({
|
|
224
|
-
onSentenceBegin: function() {
|
|
224
|
+
onSentenceBegin: function onSentenceBegin() {
|
|
225
225
|
var _editorRef_current_store, _editorRef_current;
|
|
226
226
|
// 记录当前内容位置,重置本句累积
|
|
227
227
|
var current = (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.getMDContent()) || '';
|
|
@@ -229,7 +229,7 @@ import { useRefFunction } from "../../Hooks/useRefFunction";
|
|
|
229
229
|
},
|
|
230
230
|
onPartial: updateCurrentSentence,
|
|
231
231
|
onSentenceEnd: updateCurrentSentence,
|
|
232
|
-
onError: function() {
|
|
232
|
+
onError: function onError() {
|
|
233
233
|
var _recognizerRef_current_stop, _recognizerRef_current;
|
|
234
234
|
setRecording(false);
|
|
235
235
|
(_recognizerRef_current = recognizerRef.current) === null || _recognizerRef_current === void 0 ? void 0 : (_recognizerRef_current_stop = _recognizerRef_current.stop) === null || _recognizerRef_current_stop === void 0 ? void 0 : _recognizerRef_current_stop.call(_recognizerRef_current).catch(function() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 动作计算 Hook
|
|
3
3
|
* 计算组件中各种动作相关的布尔值和计数
|
|
4
|
-
*/ export var useMarkdownInputFieldActions = function(props) {
|
|
4
|
+
*/ export var useMarkdownInputFieldActions = function useMarkdownInputFieldActions(props) {
|
|
5
5
|
var _props_enlargeable, _props_refinePrompt;
|
|
6
6
|
var hasEnlargeAction = !!(props === null || props === void 0 ? void 0 : (_props_enlargeable = props.enlargeable) === null || _props_enlargeable === void 0 ? void 0 : _props_enlargeable.enable);
|
|
7
7
|
var hasRefineAction = !!(props === null || props === void 0 ? void 0 : (_props_refinePrompt = props.refinePrompt) === null || _props_refinePrompt === void 0 ? void 0 : _props_refinePrompt.enable);
|
|
@@ -186,7 +186,7 @@ import { getFileListFromDataTransferItems } from "../FilePaste";
|
|
|
186
186
|
/**
|
|
187
187
|
* 事件处理 Hook
|
|
188
188
|
* 管理组件中的所有事件处理函数
|
|
189
|
-
*/ export var useMarkdownInputFieldHandlers = function(param) {
|
|
189
|
+
*/ export var useMarkdownInputFieldHandlers = function useMarkdownInputFieldHandlers(param) {
|
|
190
190
|
var props = param.props, markdownEditorRef = param.markdownEditorRef, inputRef = param.inputRef, isSendingRef = param.isSendingRef, isLoading = param.isLoading, setIsLoading = param.setIsLoading, value = param.value, setValue = param.setValue, fileMap = param.fileMap, setFileMap = param.setFileMap, recording = param.recording, stopRecording = param.stopRecording, isEnlarged = param.isEnlarged, setIsEnlarged = param.setIsEnlarged;
|
|
191
191
|
/**
|
|
192
192
|
* 处理放大缩小按钮点击
|
|
@@ -48,7 +48,7 @@ import { useEffect, useRef, useState } from "react";
|
|
|
48
48
|
/**
|
|
49
49
|
* 布局管理 Hook
|
|
50
50
|
* 管理组件布局相关的状态和逻辑
|
|
51
|
-
*/ export var useMarkdownInputFieldLayout = function() {
|
|
51
|
+
*/ export var useMarkdownInputFieldLayout = function useMarkdownInputFieldLayout() {
|
|
52
52
|
var _useState = _sliced_to_array(useState(function() {
|
|
53
53
|
if (typeof window === 'undefined') return false;
|
|
54
54
|
if (window.innerWidth < 460) return true;
|
|
@@ -65,7 +65,7 @@ import { useEffect, useRef, useState } from "react";
|
|
|
65
65
|
useEffect(function() {
|
|
66
66
|
if (!inputRef.current) return;
|
|
67
67
|
if (process.env.NODE_ENV === 'test') return;
|
|
68
|
-
var handleResize = function() {
|
|
68
|
+
var handleResize = function handleResize() {
|
|
69
69
|
var _inputRef_current;
|
|
70
70
|
if (!inputRef.current) return;
|
|
71
71
|
if (process.env.NODE_ENV === 'test') return;
|
|
@@ -2,7 +2,7 @@ import { useEffect, useImperativeHandle, useRef } from "react";
|
|
|
2
2
|
/**
|
|
3
3
|
* Refs 管理 Hook
|
|
4
4
|
* 管理组件中所有的 refs 和相关逻辑
|
|
5
|
-
*/ export var useMarkdownInputFieldRefs = function(props, value) {
|
|
5
|
+
*/ export var useMarkdownInputFieldRefs = function useMarkdownInputFieldRefs(props, value) {
|
|
6
6
|
var markdownEditorRef = useRef();
|
|
7
7
|
var quickActionsRef = useRef(null);
|
|
8
8
|
var actionsRef = useRef(null);
|
|
@@ -49,7 +49,7 @@ import React from "react";
|
|
|
49
49
|
/**
|
|
50
50
|
* 状态管理 Hook
|
|
51
51
|
* 管理 MarkdownInputField 组件的基础状态
|
|
52
|
-
*/ export var useMarkdownInputFieldState = function(props) {
|
|
52
|
+
*/ export var useMarkdownInputFieldState = function useMarkdownInputFieldState(props) {
|
|
53
53
|
var _props_attachment, _props_attachment1;
|
|
54
54
|
var _React_useState = _sliced_to_array(React.useState(false), 2), isHover = _React_useState[0], setHover = _React_useState[1];
|
|
55
55
|
var _React_useState1 = _sliced_to_array(React.useState(false), 2), isLoading = _React_useState1[0], setIsLoading = _React_useState1[1];
|
|
@@ -2,7 +2,7 @@ import { useMemo } from "react";
|
|
|
2
2
|
/**
|
|
3
3
|
* 样式计算 Hook
|
|
4
4
|
* 计算组件所需的样式值
|
|
5
|
-
*/ export var useMarkdownInputFieldStyles = function(param) {
|
|
5
|
+
*/ export var useMarkdownInputFieldStyles = function useMarkdownInputFieldStyles(param) {
|
|
6
6
|
var toolsRender = param.toolsRender, maxHeight = param.maxHeight, style = param.style, attachment = param.attachment, isEnlarged = param.isEnlarged, rightPadding = param.rightPadding, topRightPadding = param.topRightPadding, quickRightOffset = param.quickRightOffset, hasEnlargeAction = param.hasEnlargeAction, hasRefineAction = param.hasRefineAction, totalActionCount = param.totalActionCount, isMultiRowLayout = param.isMultiRowLayout;
|
|
7
7
|
var computedRightPadding = useMemo(function() {
|
|
8
8
|
var bottomOverlayPadding = toolsRender ? 0 : rightPadding || 52;
|
|
@@ -71,7 +71,7 @@ var DIRECT_RETURN_KEYWORDS = new Set([
|
|
|
71
71
|
'max-content'
|
|
72
72
|
]);
|
|
73
73
|
// 为任意尺寸值添加辉光边框偏移 - Add glow border offset to any size value
|
|
74
|
-
export var addGlowBorderOffset = function(size) {
|
|
74
|
+
export var addGlowBorderOffset = function addGlowBorderOffset(size) {
|
|
75
75
|
// 数字类型直接处理
|
|
76
76
|
if (typeof size === 'number') return "".concat(size + GLOW_BORDER_TOTAL_OFFSET, "px");
|
|
77
77
|
var val = size.trim();
|
|
@@ -103,7 +103,7 @@ var stopIconRotate = new Keyframes('stopIconRotate', {
|
|
|
103
103
|
transform: 'rotate(360deg)'
|
|
104
104
|
}
|
|
105
105
|
});
|
|
106
|
-
var genStyle = function(token) {
|
|
106
|
+
var genStyle = function genStyle(token) {
|
|
107
107
|
var hoverStyle = token.disableHoverAnimation ? {} : {
|
|
108
108
|
'&:hover': {
|
|
109
109
|
boxShadow: '0px 0px 1px 0px rgba(10, 48, 104, 0.25), 0px 2px 7px 0px rgba(10, 48, 104, 0.05), 0px 2px 5px -2px rgba(10, 48, 104, 0.06)'
|
|
@@ -55,7 +55,7 @@ import { AttachmentFileList } from "../AttachmentButton/AttachmentFileList";
|
|
|
55
55
|
import { SendActions } from "../SendActions";
|
|
56
56
|
/**
|
|
57
57
|
* 附件列表渲染 Hook
|
|
58
|
-
*/ export var useAttachmentList = function(param) {
|
|
58
|
+
*/ export var useAttachmentList = function useAttachmentList(param) {
|
|
59
59
|
var attachment = param.attachment, fileMap = param.fileMap, handleFileRemoval = param.handleFileRemoval, handleFileRetry = param.handleFileRetry, updateAttachmentFiles = param.updateAttachmentFiles;
|
|
60
60
|
return useMemo(function() {
|
|
61
61
|
if (!(attachment === null || attachment === void 0 ? void 0 : attachment.enable)) return null;
|
|
@@ -63,7 +63,7 @@ import { SendActions } from "../SendActions";
|
|
|
63
63
|
fileMap: fileMap,
|
|
64
64
|
onDelete: handleFileRemoval,
|
|
65
65
|
onRetry: handleFileRetry,
|
|
66
|
-
onClearFileMap: function() {
|
|
66
|
+
onClearFileMap: function onClearFileMap() {
|
|
67
67
|
updateAttachmentFiles(undefined);
|
|
68
68
|
}
|
|
69
69
|
});
|
|
@@ -77,7 +77,7 @@ import { SendActions } from "../SendActions";
|
|
|
77
77
|
};
|
|
78
78
|
/**
|
|
79
79
|
* BeforeTools 渲染 Hook
|
|
80
|
-
*/ export var useBeforeTools = function(param) {
|
|
80
|
+
*/ export var useBeforeTools = function useBeforeTools(param) {
|
|
81
81
|
var beforeToolsRender = param.beforeToolsRender, props = param.props, isHover = param.isHover, isLoading = param.isLoading;
|
|
82
82
|
return useMemo(function() {
|
|
83
83
|
if (beforeToolsRender) {
|
|
@@ -96,7 +96,7 @@ import { SendActions } from "../SendActions";
|
|
|
96
96
|
};
|
|
97
97
|
/**
|
|
98
98
|
* SendActions 节点渲染 Hook
|
|
99
|
-
*/ export var useSendActionsNode = function(param) {
|
|
99
|
+
*/ export var useSendActionsNode = function useSendActionsNode(param) {
|
|
100
100
|
var sendProps = param.props, fileMap = param.fileMap, setFileMap = param.setFileMap, supportedFormat = param.supportedFormat, fileUploadDone = param.fileUploadDone, recording = param.recording, isLoading = param.isLoading, collapseSendActions = param.collapseSendActions, uploadImage = param.uploadImage, startRecording = param.startRecording, stopRecording = param.stopRecording, sendMessage = param.sendMessage, setIsLoading = param.setIsLoading, onStop = param.onStop, setRightPadding = param.setRightPadding, baseCls = param.baseCls, hashId = param.hashId;
|
|
101
101
|
return useMemo(function() {
|
|
102
102
|
var _sendProps_attachment;
|
|
@@ -122,7 +122,7 @@ import { SendActions } from "../SendActions";
|
|
|
122
122
|
onStartRecording: startRecording,
|
|
123
123
|
onStopRecording: stopRecording,
|
|
124
124
|
onSend: sendMessage,
|
|
125
|
-
onStop: function() {
|
|
125
|
+
onStop: function onStop1() {
|
|
126
126
|
setIsLoading(false);
|
|
127
127
|
onStop === null || onStop === void 0 ? void 0 : onStop();
|
|
128
128
|
},
|
|
@@ -110,7 +110,7 @@ import { useStyle } from "./style";
|
|
|
110
110
|
* ```
|
|
111
111
|
*
|
|
112
112
|
* @since 1.0.0
|
|
113
|
-
*/ var AreaChart = function(param) {
|
|
113
|
+
*/ var AreaChart = function AreaChart(param) {
|
|
114
114
|
var title = param.title, data = param.data, _param_width = param.width, width = _param_width === void 0 ? 600 : _param_width, _param_height = param.height, height = _param_height === void 0 ? 400 : _param_height, className = param.className, classNamesProp = param.classNames, style = param.style, stylesProp = param.styles, dataTime = param.dataTime, _param_theme = param.theme, theme = _param_theme === void 0 ? 'light' : _param_theme, color = param.color, _param_showLegend = param.showLegend, showLegend = _param_showLegend === void 0 ? true : _param_showLegend, _param_legendPosition = param.legendPosition, legendPosition = _param_legendPosition === void 0 ? 'bottom' : _param_legendPosition, _param_legendAlign = param.legendAlign, legendAlign = _param_legendAlign === void 0 ? 'start' : _param_legendAlign, _param_showGrid = param.showGrid, showGrid = _param_showGrid === void 0 ? true : _param_showGrid, _param_xPosition = param.xPosition, xPosition = _param_xPosition === void 0 ? 'bottom' : _param_xPosition, _param_yPosition = param.yPosition, yPosition = _param_yPosition === void 0 ? 'left' : _param_yPosition, _param_hiddenX = param.hiddenX, hiddenX = _param_hiddenX === void 0 ? false : _param_hiddenX, _param_hiddenY = param.hiddenY, hiddenY = _param_hiddenY === void 0 ? false : _param_hiddenY, toolbarExtra = param.toolbarExtra, _param_renderFilterInToolbar = param.renderFilterInToolbar, renderFilterInToolbar = _param_renderFilterInToolbar === void 0 ? false : _param_renderFilterInToolbar, statisticConfig = param.statistic, variant = param.variant, _param_loading = param.loading, loading = _param_loading === void 0 ? false : _param_loading;
|
|
115
115
|
// 注册 Chart.js 组件
|
|
116
116
|
registerLineChartComponents();
|
|
@@ -179,7 +179,7 @@ import { useStyle } from "./style";
|
|
|
179
179
|
label: type || '默认',
|
|
180
180
|
data: typeData,
|
|
181
181
|
borderColor: resolvedColor,
|
|
182
|
-
backgroundColor: function(ctx) {
|
|
182
|
+
backgroundColor: function backgroundColor(ctx) {
|
|
183
183
|
var chart = ctx.chart;
|
|
184
184
|
var chartArea = chart.chartArea;
|
|
185
185
|
// 对于所有颜色(包括解析后的 CSS 变量),使用渐变效果
|
|
@@ -240,7 +240,7 @@ import { useStyle } from "./style";
|
|
|
240
240
|
cornerRadius: isMobile ? 6 : 8,
|
|
241
241
|
displayColors: true,
|
|
242
242
|
callbacks: {
|
|
243
|
-
label: function(context) {
|
|
243
|
+
label: function label(context) {
|
|
244
244
|
var label = context.dataset.label || '';
|
|
245
245
|
var y = context.parsed.y;
|
|
246
246
|
return "".concat(label, ": ").concat(y);
|
|
@@ -328,7 +328,7 @@ import { useStyle } from "./style";
|
|
|
328
328
|
duration: isMobile ? 200 : 400
|
|
329
329
|
}
|
|
330
330
|
};
|
|
331
|
-
var handleDownload = function() {
|
|
331
|
+
var handleDownload = function handleDownload() {
|
|
332
332
|
downloadChart(chartRef.current, 'area-chart');
|
|
333
333
|
};
|
|
334
334
|
var rootClassName = classNames(classNamesProp === null || classNamesProp === void 0 ? void 0 : classNamesProp.root, className);
|
|
@@ -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
|
// 统计数据容器样式
|
|
57
57
|
'&-statistic-container': {
|