@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
|
@@ -104,7 +104,7 @@ import { I18nContext } from "../../I18n";
|
|
|
104
104
|
import { BaseMarkdownEditor } from "../../MarkdownEditor/BaseMarkdownEditor";
|
|
105
105
|
import { BubbleConfigContext } from "../BubbleConfigProvide";
|
|
106
106
|
import { useStyle } from "./docInfoStyle";
|
|
107
|
-
var replaceAllPlaceHolder = function(str, placeholder) {
|
|
107
|
+
var replaceAllPlaceHolder = function replaceAllPlaceHolder(str, placeholder) {
|
|
108
108
|
var message = str;
|
|
109
109
|
placeholder === null || placeholder === void 0 ? void 0 : placeholder.forEach(function(item) {
|
|
110
110
|
message = message.replaceAll("`${".concat(item.placeholder, "}`"), "(".concat(item.url || item.doc_id, ")")).replaceAll("$".concat(item.placeholder), "(".concat(item.url || item.doc_id, ")")).replaceAll("$[".concat(item.placeholder, "]"), "(".concat(item.url || item.doc_id, ")"));
|
|
@@ -128,7 +128,7 @@ var replaceAllPlaceHolder = function(str, placeholder) {
|
|
|
128
128
|
* @param {Function} [props.render] - 自定义渲染函数,用于自定义列表项的渲染
|
|
129
129
|
*
|
|
130
130
|
* @returns {JSX.Element} 文档信息列表组件
|
|
131
|
-
*/ export var DocInfoList = function(_0) {
|
|
131
|
+
*/ export var DocInfoList = function DocInfoList(_0) {
|
|
132
132
|
var reference_url_info_list = _0.reference_url_info_list, props = _object_without_properties(_0, [
|
|
133
133
|
"reference_url_info_list"
|
|
134
134
|
]);
|
|
@@ -146,7 +146,7 @@ var replaceAllPlaceHolder = function(str, placeholder) {
|
|
|
146
146
|
return wrapSSR(/*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement(Drawer, {
|
|
147
147
|
title: (locale === null || locale === void 0 ? void 0 : locale['chat.message.preview']) || '预览' + (docMeta === null || docMeta === void 0 ? void 0 : docMeta.doc_name),
|
|
148
148
|
open: !!docMeta,
|
|
149
|
-
onClose: function() {
|
|
149
|
+
onClose: function onClose() {
|
|
150
150
|
setDocMeta(null);
|
|
151
151
|
},
|
|
152
152
|
width: '40vw'
|
|
@@ -185,7 +185,7 @@ var replaceAllPlaceHolder = function(str, placeholder) {
|
|
|
185
185
|
className: classNames(baseCls, hashId, _define_property({}, "".concat(baseCls, "-compact"), chatContext === null || chatContext === void 0 ? void 0 : chatContext.compact))
|
|
186
186
|
}, /*#__PURE__*/ React.createElement("div", {
|
|
187
187
|
className: classNames("".concat(baseCls, "-label"), hashId, _define_property({}, "".concat(baseCls, "-label-compact"), chatContext === null || chatContext === void 0 ? void 0 : chatContext.compact)),
|
|
188
|
-
onClick: function() {
|
|
188
|
+
onClick: function onClick() {
|
|
189
189
|
setExpanded(!expanded);
|
|
190
190
|
}
|
|
191
191
|
}, /*#__PURE__*/ React.createElement("span", {
|
|
@@ -262,7 +262,7 @@ var replaceAllPlaceHolder = function(str, placeholder) {
|
|
|
262
262
|
key: index,
|
|
263
263
|
className: classNames("".concat(baseCls, "-list-item"), hashId),
|
|
264
264
|
title: item === null || item === void 0 ? void 0 : item.content,
|
|
265
|
-
onClick: function() {
|
|
265
|
+
onClick: function onClick() {
|
|
266
266
|
if (item === null || item === void 0 ? void 0 : item.originUrl) {
|
|
267
267
|
var _props_onOriginUrlClick;
|
|
268
268
|
return (_props_onOriginUrlClick = props.onOriginUrlClick) === null || _props_onOriginUrlClick === void 0 ? void 0 : _props_onOriginUrlClick.call(props, item.originUrl);
|
|
@@ -330,7 +330,7 @@ var replaceAllPlaceHolder = function(str, placeholder) {
|
|
|
330
330
|
style: {
|
|
331
331
|
fontSize: '1em'
|
|
332
332
|
},
|
|
333
|
-
onClick: function(e) {
|
|
333
|
+
onClick: function onClick(e) {
|
|
334
334
|
e.stopPropagation();
|
|
335
335
|
e.preventDefault();
|
|
336
336
|
if (item === null || item === void 0 ? void 0 : item.originUrl) {
|
|
@@ -385,7 +385,7 @@ var replaceAllPlaceHolder = function(str, placeholder) {
|
|
|
385
385
|
cursor: 'pointer',
|
|
386
386
|
zIndex: 1
|
|
387
387
|
},
|
|
388
|
-
onClick: function() {
|
|
388
|
+
onClick: function onClick() {
|
|
389
389
|
setDocMeta(item.docMeta);
|
|
390
390
|
}
|
|
391
391
|
}, /*#__PURE__*/ React.createElement("img", {
|
|
@@ -30,7 +30,7 @@ import React from "react";
|
|
|
30
30
|
* - 支持额外的内容显示
|
|
31
31
|
* - 自动换行和文本包装
|
|
32
32
|
* - 响应式设计
|
|
33
|
-
*/ export var EXCEPTION = function(param) {
|
|
33
|
+
*/ export var EXCEPTION = function EXCEPTION(param) {
|
|
34
34
|
var extra = param.extra, content = param.content;
|
|
35
35
|
var token = theme.useToken().token;
|
|
36
36
|
return /*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement("div", {
|
|
@@ -91,7 +91,7 @@ import { MessagesContext } from "./BubbleContext";
|
|
|
91
91
|
* afterContent={<div>后置内容</div>}
|
|
92
92
|
* />
|
|
93
93
|
* ```
|
|
94
|
-
*/ export var MarkdownPreview = function(props) {
|
|
94
|
+
*/ export var MarkdownPreview = function MarkdownPreview(props) {
|
|
95
95
|
var _props_originData;
|
|
96
96
|
var content = props.content, extra = props.extra, typing = props.typing, htmlRef = props.htmlRef, fncProps = props.fncProps, docListNode = props.docListNode, beforeContent = props.beforeContent, afterContent = props.afterContent;
|
|
97
97
|
var MarkdownEditorRef = React.useRef(undefined);
|
|
@@ -64,7 +64,7 @@ import React, { useMemo, useState } from "react";
|
|
|
64
64
|
import { useSpeechSynthesis } from "../../../Hooks/useSpeechSynthesis";
|
|
65
65
|
import VoicingLottie from "../../../Icons/animated/VoicingLottie";
|
|
66
66
|
import { useStyle } from "./style";
|
|
67
|
-
export var VoiceButton = function(param) {
|
|
67
|
+
export var VoiceButton = function VoiceButton(param) {
|
|
68
68
|
var text = param.text, _param_defaultRate = param.defaultRate, defaultRate = _param_defaultRate === void 0 ? 1 : _param_defaultRate, _param_rateOptions = param.rateOptions, rateOptions = _param_rateOptions === void 0 ? [
|
|
69
69
|
1.5,
|
|
70
70
|
1.25,
|
|
@@ -91,7 +91,7 @@ export var VoiceButton = function(param) {
|
|
|
91
91
|
speechAdapter,
|
|
92
92
|
isSupported
|
|
93
93
|
]);
|
|
94
|
-
var handleClick = function() {
|
|
94
|
+
var handleClick = function handleClick() {
|
|
95
95
|
if (!isFeatureSupported || !text) return;
|
|
96
96
|
if (!isPlaying) {
|
|
97
97
|
start();
|
|
@@ -99,18 +99,18 @@ export var VoiceButton = function(param) {
|
|
|
99
99
|
}
|
|
100
100
|
stop();
|
|
101
101
|
};
|
|
102
|
-
var handleStop = function() {
|
|
102
|
+
var handleStop = function handleStop() {
|
|
103
103
|
setIsPlayingHovered(false);
|
|
104
104
|
setIsPlayHover(false);
|
|
105
105
|
stop();
|
|
106
106
|
};
|
|
107
|
-
var handlePlayingMouseEnter = function() {
|
|
107
|
+
var handlePlayingMouseEnter = function handlePlayingMouseEnter() {
|
|
108
108
|
setIsPlayingHovered(true);
|
|
109
109
|
if (isPlaying) {
|
|
110
110
|
pause();
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
|
-
var handlePlayingMouseLeave = function() {
|
|
113
|
+
var handlePlayingMouseLeave = function handlePlayingMouseLeave() {
|
|
114
114
|
setIsPlayingHovered(false);
|
|
115
115
|
if (isPlaying) {
|
|
116
116
|
resume();
|
|
@@ -160,10 +160,10 @@ export var VoiceButton = function(param) {
|
|
|
160
160
|
gap: 8
|
|
161
161
|
}
|
|
162
162
|
}, !isPlaying ? /*#__PURE__*/ React.createElement("div", {
|
|
163
|
-
onMouseEnter: function() {
|
|
163
|
+
onMouseEnter: function onMouseEnter() {
|
|
164
164
|
return setIsPlayHover(true);
|
|
165
165
|
},
|
|
166
|
-
onMouseLeave: function() {
|
|
166
|
+
onMouseLeave: function onMouseLeave() {
|
|
167
167
|
return setIsPlayHover(false);
|
|
168
168
|
},
|
|
169
169
|
onClick: handleClick,
|
|
@@ -206,7 +206,7 @@ export var VoiceButton = function(param) {
|
|
|
206
206
|
],
|
|
207
207
|
menu: {
|
|
208
208
|
items: menuItems,
|
|
209
|
-
onClick: function(info) {
|
|
209
|
+
onClick: function onClick(info) {
|
|
210
210
|
var v = Number(info.key);
|
|
211
211
|
if (!Number.isNaN(v)) setRate(v);
|
|
212
212
|
}
|
|
@@ -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 playBoxSize = 28;
|
|
56
56
|
var innerBoxSize = 24;
|
|
57
57
|
return _define_property({}, token.componentCls, {
|
|
@@ -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
|
display: 'flex',
|
|
57
57
|
gap: 4,
|
|
@@ -130,9 +130,9 @@ import React from "react";
|
|
|
130
130
|
* - 使用 currentColor 继承父元素颜色
|
|
131
131
|
* - 点击时自动旋转 360 度
|
|
132
132
|
* - 旋转动画持续 0.5 秒,使用 ease-in-out 缓动
|
|
133
|
-
*/ export var ReloadIcon = function(props) {
|
|
133
|
+
*/ export var ReloadIcon = function ReloadIcon(props) {
|
|
134
134
|
var _React_useState = _sliced_to_array(React.useState(0), 2), rotation = _React_useState[0], setRotation = _React_useState[1];
|
|
135
|
-
var handleClick = function(e) {
|
|
135
|
+
var handleClick = function handleClick(e) {
|
|
136
136
|
var // 调用传入的onClick
|
|
137
137
|
_props_onClick;
|
|
138
138
|
setRotation(function(prevRotation) {
|
|
@@ -309,7 +309,7 @@ export var LOADING_FLAT = '...';
|
|
|
309
309
|
*
|
|
310
310
|
* @see {@link BubbleProps} 了解更多关于聊天项属性的信息
|
|
311
311
|
* @see {@link BaseChatProps} 了解更多关于基础聊天属性的信息
|
|
312
|
-
*/ export var BubbleMessageDisplay = function(_0) {
|
|
312
|
+
*/ export var BubbleMessageDisplay = function BubbleMessageDisplay(_0) {
|
|
313
313
|
var content = _0.content, bubbleRef = _0.bubbleRef, readonly = _0.readonly, contentAfterDom = _0.contentAfterDom, props = _object_without_properties(_0, [
|
|
314
314
|
"content",
|
|
315
315
|
"bubbleRef",
|
|
@@ -324,7 +324,7 @@ export var LOADING_FLAT = '...';
|
|
|
324
324
|
var locale = useContext(I18nContext).locale;
|
|
325
325
|
var _React_useState = _sliced_to_array(React.useState(false), 2), isExtraNull = _React_useState[0], setIsExtraNull = _React_useState[1];
|
|
326
326
|
var _React_useState1 = _sliced_to_array(React.useState([]), 2), nodeList = _React_useState1[0], setNodeList = _React_useState1[1];
|
|
327
|
-
var
|
|
327
|
+
var _useMessagesContentStyle = useMessagesContentStyle(), hashId = _useMessagesContentStyle.hashId, wrapSSR = _useMessagesContentStyle.wrapSSR;
|
|
328
328
|
var getPrefixCls = useContext(ConfigProvider.ConfigContext).getPrefixCls;
|
|
329
329
|
var chatCls = getPrefixCls('agentic-ui');
|
|
330
330
|
var funRender = useRefFunction(function(props) {
|
|
@@ -367,10 +367,10 @@ export var LOADING_FLAT = '...';
|
|
|
367
367
|
if (content === LOADING_FLAT || !((_props_originData = props.originData) === null || _props_originData === void 0 ? void 0 : _props_originData.isFinished) && !content) {
|
|
368
368
|
var _context_thoughtChain;
|
|
369
369
|
if ((context === null || context === void 0 ? void 0 : (_context_thoughtChain = context.thoughtChain) === null || _context_thoughtChain === void 0 ? void 0 : _context_thoughtChain.alwaysRender) !== true) {
|
|
370
|
-
return /*#__PURE__*/ React.createElement("div", {
|
|
370
|
+
return wrapSSR(/*#__PURE__*/ React.createElement("div", {
|
|
371
371
|
className: classNames('agent-item-default-content', "".concat(chatCls, "-messages-content-loading"), (context === null || context === void 0 ? void 0 : context.compact) ? "".concat(chatCls, "-messages-content-loading-compact") : "".concat(chatCls, "-messages-content-loading-default"), hashId),
|
|
372
372
|
"data-testid": "message-content"
|
|
373
|
-
}, (locale === null || locale === void 0 ? void 0 : locale['chat.message.thinking']) || '思考中...');
|
|
373
|
+
}, (locale === null || locale === void 0 ? void 0 : locale['chat.message.thinking']) || '思考中...'));
|
|
374
374
|
}
|
|
375
375
|
return null;
|
|
376
376
|
}
|
|
@@ -464,7 +464,7 @@ export var LOADING_FLAT = '...';
|
|
|
464
464
|
})();
|
|
465
465
|
} : undefined,
|
|
466
466
|
bubble: props,
|
|
467
|
-
onRenderExtraNull: function(isNull) {
|
|
467
|
+
onRenderExtraNull: function onRenderExtraNull(isNull) {
|
|
468
468
|
return setIsExtraNull(isNull);
|
|
469
469
|
},
|
|
470
470
|
onLike: props.onLike ? function() {
|
|
@@ -510,7 +510,7 @@ export var LOADING_FLAT = '...';
|
|
|
510
510
|
var extra = (props === null || props === void 0 ? void 0 : (_props_bubbleRenderConfig2 = props.bubbleRenderConfig) === null || _props_bubbleRenderConfig2 === void 0 ? void 0 : _props_bubbleRenderConfig2.extraRender) !== false && (props === null || props === void 0 ? void 0 : (_props_bubbleRenderConfig3 = props.bubbleRenderConfig) === null || _props_bubbleRenderConfig3 === void 0 ? void 0 : _props_bubbleRenderConfig3.extraRender) ? props === null || props === void 0 ? void 0 : (_props_bubbleRenderConfig4 = props.bubbleRenderConfig) === null || _props_bubbleRenderConfig4 === void 0 ? void 0 : (_props_bubbleRenderConfig_extraRender = _props_bubbleRenderConfig4.extraRender) === null || _props_bubbleRenderConfig_extraRender === void 0 ? void 0 : _props_bubbleRenderConfig_extraRender.call(_props_bubbleRenderConfig4, props, defaultExtra) : defaultExtra;
|
|
511
511
|
if (content === '...' || /*#__PURE__*/ React.isValidElement(content) || props.placement !== 'left' || (props === null || props === void 0 ? void 0 : (_props_originData1 = props.originData) === null || _props_originData1 === void 0 ? void 0 : (_props_originData_extra = _props_originData1.extra) === null || _props_originData_extra === void 0 ? void 0 : (_props_originData_extra_tags = _props_originData_extra.tags) === null || _props_originData_extra_tags === void 0 ? void 0 : (_props_originData_extra_tags_includes = _props_originData_extra_tags.includes) === null || _props_originData_extra_tags_includes === void 0 ? void 0 : _props_originData_extra_tags_includes.call(_props_originData_extra_tags, 'REJECT_TO_ANSWER')) || ((_props_originData2 = props.originData) === null || _props_originData2 === void 0 ? void 0 : _props_originData2.role) === 'bot') {
|
|
512
512
|
var _props_originData11, _props_originData12;
|
|
513
|
-
return /*#__PURE__*/ React.createElement("div", {
|
|
513
|
+
return wrapSSR(/*#__PURE__*/ React.createElement("div", {
|
|
514
514
|
className: classNames('agent-item-default-content', "".concat(chatCls, "-messages-content-message"), hashId),
|
|
515
515
|
"data-testid": "message-box-content",
|
|
516
516
|
onDoubleClick: props.onDoubleClick
|
|
@@ -528,7 +528,7 @@ export var LOADING_FLAT = '...';
|
|
|
528
528
|
typing: false,
|
|
529
529
|
originData: props.originData,
|
|
530
530
|
content: (_props_originData12 = props.originData) === null || _props_originData12 === void 0 ? void 0 : _props_originData12.content
|
|
531
|
-
}));
|
|
531
|
+
})));
|
|
532
532
|
}
|
|
533
533
|
// answerStatus= 'EXCEPTION'时 一定是异常情况
|
|
534
534
|
if (((_props_originData3 = props.originData) === null || _props_originData3 === void 0 ? void 0 : (_props_originData_extra1 = _props_originData3.extra) === null || _props_originData_extra1 === void 0 ? void 0 : _props_originData_extra1.answerStatus) === 'EXCEPTION' || ((_props_originData4 = props.originData) === null || _props_originData4 === void 0 ? void 0 : (_props_originData_extra2 = _props_originData4.extra) === null || _props_originData_extra2 === void 0 ? void 0 : _props_originData_extra2.answerStatus) && !((_props_originData5 = props.originData) === null || _props_originData5 === void 0 ? void 0 : _props_originData5.content)) {
|
|
@@ -564,7 +564,7 @@ export var LOADING_FLAT = '...';
|
|
|
564
564
|
beforeContent: beforeContent,
|
|
565
565
|
afterContent: afterContent,
|
|
566
566
|
fncProps: _object_spread({
|
|
567
|
-
render: function(mdProps, _) {
|
|
567
|
+
render: function render(mdProps, _) {
|
|
568
568
|
var _props_originData_extra, _props_originData, _props_customConfig_PopoverProps, _props_customConfig, _props_customConfig1, _props_customConfig_PopoverProps1, _props_customConfig2, _item_origin_text;
|
|
569
569
|
var reference_url_info_list = ((_props_originData = props.originData) === null || _props_originData === void 0 ? void 0 : (_props_originData_extra = _props_originData.extra) === null || _props_originData_extra === void 0 ? void 0 : _props_originData_extra.reference_url_info_list) || [];
|
|
570
570
|
var item = reference_url_info_list.find(function(item) {
|
|
@@ -579,7 +579,7 @@ export var LOADING_FLAT = '...';
|
|
|
579
579
|
}, /*#__PURE__*/ React.createElement("div", null, (locale === null || locale === void 0 ? void 0 : locale['chat.message.referenceDocument']) || '参考文档'), (item === null || item === void 0 ? void 0 : item.origin_url) ? /*#__PURE__*/ React.createElement(ActionIconBox, {
|
|
580
580
|
title: (locale === null || locale === void 0 ? void 0 : locale['chat.message.viewOriginal']) || '查看原文',
|
|
581
581
|
tooltipProps: props === null || props === void 0 ? void 0 : (_props_customConfig1 = props.customConfig) === null || _props_customConfig1 === void 0 ? void 0 : _props_customConfig1.TooltipProps,
|
|
582
|
-
onClick: function() {
|
|
582
|
+
onClick: function onClick() {
|
|
583
583
|
var _props_markdownRenderConfig_fncProps, _props_markdownRenderConfig;
|
|
584
584
|
if ((_props_markdownRenderConfig = props.markdownRenderConfig) === null || _props_markdownRenderConfig === void 0 ? void 0 : (_props_markdownRenderConfig_fncProps = _props_markdownRenderConfig.fncProps) === null || _props_markdownRenderConfig_fncProps === void 0 ? void 0 : _props_markdownRenderConfig_fncProps.onOriginUrlClick) {
|
|
585
585
|
var _props_markdownRenderConfig_fncProps1, _props_markdownRenderConfig1;
|
|
@@ -625,7 +625,7 @@ export var LOADING_FLAT = '...';
|
|
|
625
625
|
}, item === null || item === void 0 ? void 0 : item.doc_name))) : null)
|
|
626
626
|
}, _);
|
|
627
627
|
},
|
|
628
|
-
onFootnoteDefinitionChange: function(nodeList) {
|
|
628
|
+
onFootnoteDefinitionChange: function onFootnoteDefinitionChange(nodeList) {
|
|
629
629
|
setNodeList(nodeList);
|
|
630
630
|
}
|
|
631
631
|
}, ((_props_markdownRenderConfig = props.markdownRenderConfig) === null || _props_markdownRenderConfig === void 0 ? void 0 : _props_markdownRenderConfig.fncProps) || {}),
|
|
@@ -51,19 +51,20 @@ 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 _obj = {}, // 加载状态容器(compact模式)
|
|
57
57
|
_define_property(_obj, "".concat(token.chatCls, "-messages-content-loading"), {
|
|
58
58
|
lineHeight: '24px',
|
|
59
59
|
display: 'flex',
|
|
60
60
|
alignItems: 'center',
|
|
61
|
-
gap:
|
|
61
|
+
gap: 'var(--padding-2x)',
|
|
62
|
+
padding: 'var(--padding-3x)',
|
|
62
63
|
'&-compact': {
|
|
63
|
-
padding: '
|
|
64
|
+
padding: 'var(--padding-2x)'
|
|
64
65
|
},
|
|
65
66
|
'&-default': {
|
|
66
|
-
padding: '
|
|
67
|
+
padding: 'var(--padding-3x)'
|
|
67
68
|
}
|
|
68
69
|
}), // 消息内容容器
|
|
69
70
|
_define_property(_obj, "".concat(token.chatCls, "-messages-content-message"), {
|
|
@@ -84,20 +85,26 @@ var genStyle = function(token) {
|
|
|
84
85
|
maxHeight: 400,
|
|
85
86
|
overflow: 'auto',
|
|
86
87
|
flexDirection: 'column',
|
|
87
|
-
gap:
|
|
88
|
+
gap: 'var(--padding-3x)'
|
|
88
89
|
}), // MarkdownEditor 容器样式
|
|
89
90
|
_define_property(_obj, "".concat(token.chatCls, "-messages-content-markdown-editor"), {
|
|
90
91
|
padding: 0,
|
|
91
92
|
width: '100%'
|
|
93
|
+
}), // 重新生成按钮容器
|
|
94
|
+
_define_property(_obj, "div[data-messages-content-retry]", {
|
|
95
|
+
gap: 4,
|
|
96
|
+
display: 'flex',
|
|
97
|
+
cursor: 'pointer',
|
|
98
|
+
alignItems: 'center'
|
|
92
99
|
}), // 文档标签容器
|
|
93
100
|
_define_property(_obj, "".concat(token.chatCls, "-messages-content-doc-tag"), {
|
|
94
|
-
borderRadius: '
|
|
101
|
+
borderRadius: 'var(--padding-5x)',
|
|
95
102
|
opacity: 1,
|
|
96
103
|
display: 'flex',
|
|
97
104
|
flexDirection: 'row',
|
|
98
105
|
alignItems: 'center',
|
|
99
|
-
padding: '
|
|
100
|
-
gap: '
|
|
106
|
+
padding: 'var(--padding-2x) var(--padding-3x)',
|
|
107
|
+
gap: 'var(--padding-2x)',
|
|
101
108
|
alignSelf: 'stretch',
|
|
102
109
|
background: '#FBFCFD',
|
|
103
110
|
cursor: 'pointer',
|
|
@@ -491,7 +491,7 @@ export var PureBubble = /*#__PURE__*/ memo(function(props) {
|
|
|
491
491
|
message: props.originData,
|
|
492
492
|
hidePadding: hidePadding,
|
|
493
493
|
setHidePadding: setHidePadding,
|
|
494
|
-
setMessage: function(message) {
|
|
494
|
+
setMessage: function setMessage(message) {
|
|
495
495
|
var _props_bubbleRef_current_setMessageItem, _props_bubbleRef_current, _props_bubbleRef;
|
|
496
496
|
props === null || props === void 0 ? void 0 : (_props_bubbleRef = props.bubbleRef) === null || _props_bubbleRef === void 0 ? void 0 : (_props_bubbleRef_current = _props_bubbleRef.current) === null || _props_bubbleRef_current === void 0 ? void 0 : (_props_bubbleRef_current_setMessageItem = _props_bubbleRef_current.setMessageItem) === null || _props_bubbleRef_current_setMessageItem === void 0 ? void 0 : _props_bubbleRef_current_setMessageItem.call(_props_bubbleRef_current, props.id, message);
|
|
497
497
|
}
|
package/dist/Bubble/Title.js
CHANGED
|
@@ -56,10 +56,10 @@ import React from "react";
|
|
|
56
56
|
import { resetComponent, useEditorStyleRegister } from "../Hooks/useStyle";
|
|
57
57
|
import { formatTime } from "../Utils/formatTime";
|
|
58
58
|
var TITLE_GAP = 8;
|
|
59
|
-
var getFlexDirection = function(placement) {
|
|
59
|
+
var getFlexDirection = function getFlexDirection(placement) {
|
|
60
60
|
return placement === 'left' ? 'row' : 'row-reverse';
|
|
61
61
|
};
|
|
62
|
-
var genStyle = function(token) {
|
|
62
|
+
var genStyle = function genStyle(token) {
|
|
63
63
|
return _define_property({}, token.componentCls, {
|
|
64
64
|
font: 'var(--font-text-h6-base)',
|
|
65
65
|
letterSpacing: [
|
|
@@ -79,7 +79,7 @@ var genStyle = function(token) {
|
|
|
79
79
|
})
|
|
80
80
|
});
|
|
81
81
|
};
|
|
82
|
-
var useStyle = function(prefixCls) {
|
|
82
|
+
var useStyle = function useStyle(prefixCls) {
|
|
83
83
|
return useEditorStyleRegister('Title', function(token) {
|
|
84
84
|
var titleToken = _object_spread_props(_object_spread({}, token), {
|
|
85
85
|
componentCls: ".".concat(prefixCls)
|
|
@@ -103,7 +103,7 @@ var useStyle = function(prefixCls) {
|
|
|
103
103
|
* placement="left"
|
|
104
104
|
* />
|
|
105
105
|
* ```
|
|
106
|
-
*/ export var BubbleTitle = function(param) {
|
|
106
|
+
*/ export var BubbleTitle = function BubbleTitle(param) {
|
|
107
107
|
var style = param.style, prefixClass = param.prefixClass, className = param.className, placement = param.placement, time = param.time, bubbleNameClassName = param.bubbleNameClassName, quote = param.quote, title = param.title;
|
|
108
108
|
var _useStyle = useStyle(prefixClass), wrapSSR = _useStyle.wrapSSR, hashId = _useStyle.hashId;
|
|
109
109
|
var flexStyle = _object_spread({
|
|
@@ -88,7 +88,7 @@ import { BubbleTitle } from "./Title";
|
|
|
88
88
|
var USER_PLACEMENT = 'right';
|
|
89
89
|
var BUBBLE_GAP = 12;
|
|
90
90
|
var FILE_VIEW_PADDING_LEFT = 12;
|
|
91
|
-
var getContentContainerStyle = function() {
|
|
91
|
+
var getContentContainerStyle = function getContentContainerStyle() {
|
|
92
92
|
return {
|
|
93
93
|
display: 'flex',
|
|
94
94
|
gap: 4,
|
|
@@ -96,13 +96,13 @@ var getContentContainerStyle = function() {
|
|
|
96
96
|
alignItems: 'flex-end'
|
|
97
97
|
};
|
|
98
98
|
};
|
|
99
|
-
var getFileViewStyle = function(standalone, customStyle) {
|
|
99
|
+
var getFileViewStyle = function getFileViewStyle(standalone, customStyle) {
|
|
100
100
|
return _object_spread({
|
|
101
101
|
minWidth: standalone ? 'min(296px,100%)' : '0px',
|
|
102
102
|
paddingLeft: FILE_VIEW_PADDING_LEFT
|
|
103
103
|
}, customStyle);
|
|
104
104
|
};
|
|
105
|
-
var getContentStyle = function(standalone, customStyle) {
|
|
105
|
+
var getContentStyle = function getContentStyle(standalone, customStyle) {
|
|
106
106
|
return _object_spread({
|
|
107
107
|
minWidth: standalone ? 'min(16px,100%)' : '0px'
|
|
108
108
|
}, customStyle);
|
|
@@ -223,7 +223,7 @@ var getContentStyle = function(standalone, customStyle) {
|
|
|
223
223
|
message: props.originData,
|
|
224
224
|
hidePadding: hidePadding,
|
|
225
225
|
setHidePadding: setHidePadding,
|
|
226
|
-
setMessage: function(message) {
|
|
226
|
+
setMessage: function setMessage(message) {
|
|
227
227
|
var _props_bubbleRef_current_setMessageItem, _props_bubbleRef_current, _props_bubbleRef;
|
|
228
228
|
props === null || props === void 0 ? void 0 : (_props_bubbleRef = props.bubbleRef) === null || _props_bubbleRef === void 0 ? void 0 : (_props_bubbleRef_current = _props_bubbleRef.current) === null || _props_bubbleRef_current === void 0 ? void 0 : (_props_bubbleRef_current_setMessageItem = _props_bubbleRef_current.setMessageItem) === null || _props_bubbleRef_current_setMessageItem === void 0 ? void 0 : _props_bubbleRef_current_setMessageItem.call(_props_bubbleRef_current, props.id, message);
|
|
229
229
|
}
|
|
@@ -142,7 +142,7 @@ import { MarkdownEditor } from "../../MarkdownEditor";
|
|
|
142
142
|
var _this = this;
|
|
143
143
|
if (this.bridge) return;
|
|
144
144
|
this.bridge = createSchemaElementEditorBridge({
|
|
145
|
-
getSchema: function(params) {
|
|
145
|
+
getSchema: function getSchema(params) {
|
|
146
146
|
var handler = _this.registry.get(params);
|
|
147
147
|
if (!handler) {
|
|
148
148
|
// 返回 undefined 表示该元素不可编辑,插件将无法打开编辑器
|
|
@@ -153,7 +153,7 @@ import { MarkdownEditor } from "../../MarkdownEditor";
|
|
|
153
153
|
_this.currentEditingId = params;
|
|
154
154
|
return handler.getContent();
|
|
155
155
|
},
|
|
156
|
-
updateSchema: function(schema, params) {
|
|
156
|
+
updateSchema: function updateSchema(schema, params) {
|
|
157
157
|
var handler = _this.registry.get(params);
|
|
158
158
|
if (!handler) {
|
|
159
159
|
return false;
|
|
@@ -167,7 +167,7 @@ import { MarkdownEditor } from "../../MarkdownEditor";
|
|
|
167
167
|
return false;
|
|
168
168
|
}
|
|
169
169
|
},
|
|
170
|
-
renderPreview: function(schema, containerId) {
|
|
170
|
+
renderPreview: function renderPreview(schema, containerId) {
|
|
171
171
|
/** 使用当前编辑 Bubble 的自定义预览 */ if (_this.currentEditingId) {
|
|
172
172
|
var handler = _this.registry.get(_this.currentEditingId);
|
|
173
173
|
if (handler === null || handler === void 0 ? void 0 : handler.renderPreview) {
|
package/dist/Bubble/style.js
CHANGED
|
@@ -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, classNames) {
|
|
54
|
+
var genStyle = function genStyle(token, classNames) {
|
|
55
55
|
var _obj;
|
|
56
56
|
return _define_property({}, token.componentCls, {
|
|
57
57
|
'&-bubble': {
|
|
@@ -14,7 +14,7 @@ function _define_property(obj, key, value) {
|
|
|
14
14
|
import classNames from "classnames";
|
|
15
15
|
import React, { memo, useCallback } from "react";
|
|
16
16
|
import { useStyle } from "./ButtonTabStyle";
|
|
17
|
-
var ButtonTabComponent = function(param) {
|
|
17
|
+
var ButtonTabComponent = function ButtonTabComponent(param) {
|
|
18
18
|
var children = param.children, _param_selected = param.selected, selected = _param_selected === void 0 ? false : _param_selected, onClick = param.onClick, onIconClick = param.onIconClick, className = param.className, icon = param.icon, _param_prefixCls = param.prefixCls, prefixCls = _param_prefixCls === void 0 ? 'md-editor-button-tab' : _param_prefixCls;
|
|
19
19
|
var _useStyle = useStyle(prefixCls), wrapSSR = _useStyle.wrapSSR, hashId = _useStyle.hashId;
|
|
20
20
|
// 使用 useCallback 优化事件处理函数
|
|
@@ -47,7 +47,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
47
47
|
import React, { memo, useCallback, useState } from "react";
|
|
48
48
|
import ButtonTab from "./ButtonTab";
|
|
49
49
|
import { useStyle } from "./ButtonTabGroupStyle";
|
|
50
|
-
var ButtonTabGroupComponent = function(param) {
|
|
50
|
+
var ButtonTabGroupComponent = function ButtonTabGroupComponent(param) {
|
|
51
51
|
var _param_items = param.items, items = _param_items === void 0 ? [] : _param_items, activeKey = param.activeKey, defaultActiveKey = param.defaultActiveKey, onChange = param.onChange, className = param.className, _param_prefixCls = param.prefixCls, prefixCls = _param_prefixCls === void 0 ? 'md-editor-button-tab-group' : _param_prefixCls;
|
|
52
52
|
var _items_;
|
|
53
53
|
var _useStyle = useStyle(prefixCls), wrapSSR = _useStyle.wrapSSR, hashId = _useStyle.hashId;
|
|
@@ -72,7 +72,7 @@ var ButtonTabGroupComponent = function(param) {
|
|
|
72
72
|
return /*#__PURE__*/ React.createElement(ButtonTab, {
|
|
73
73
|
key: item.key,
|
|
74
74
|
selected: currentActiveKey === item.key,
|
|
75
|
-
onClick: function() {
|
|
75
|
+
onClick: function onClick() {
|
|
76
76
|
return handleTabClick(item.key, item.disabled);
|
|
77
77
|
},
|
|
78
78
|
onIconClick: item.onIconClick,
|
|
@@ -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: 'inline-flex',
|
|
57
57
|
alignItems: 'center',
|
|
@@ -66,7 +66,7 @@ var genStyle = function(token) {
|
|
|
66
66
|
};
|
|
67
67
|
/**
|
|
68
68
|
* ButtonTabGroup 组件样式
|
|
69
|
-
*/ export var useStyle = function(prefixCls) {
|
|
69
|
+
*/ export var useStyle = function useStyle(prefixCls) {
|
|
70
70
|
return useEditorStyleRegister('ChatBootButtonTabGroup', function(token) {
|
|
71
71
|
var buttonTabGroupToken = _object_spread_props(_object_spread({}, token), {
|
|
72
72
|
componentCls: ".".concat(prefixCls)
|
|
@@ -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: 'inline-flex',
|
|
57
57
|
alignItems: 'center',
|
|
@@ -116,7 +116,7 @@ var genStyle = function(token) {
|
|
|
116
116
|
};
|
|
117
117
|
/**
|
|
118
118
|
* ButtonTab 组件样式
|
|
119
|
-
*/ export var useStyle = function(prefixCls) {
|
|
119
|
+
*/ export var useStyle = function useStyle(prefixCls) {
|
|
120
120
|
return useEditorStyleRegister('ChatBootButtonTab', function(token) {
|
|
121
121
|
var buttonTabToken = _object_spread_props(_object_spread({}, token), {
|
|
122
122
|
componentCls: ".".concat(prefixCls)
|
|
@@ -49,7 +49,7 @@ import { ConfigProvider } from "antd";
|
|
|
49
49
|
import classNames from "classnames";
|
|
50
50
|
import React, { memo, useCallback, useContext, useState } from "react";
|
|
51
51
|
import { useStyle } from "./CaseReplyStyle";
|
|
52
|
-
var CaseReplyComponent = function(param) {
|
|
52
|
+
var CaseReplyComponent = function CaseReplyComponent(param) {
|
|
53
53
|
var _param_coverBackground = param.coverBackground, coverBackground = _param_coverBackground === void 0 ? 'rgba(132, 220, 24, 0.15)' : _param_coverBackground, _param_quoteIconColor = param.quoteIconColor, quoteIconColor = _param_quoteIconColor === void 0 ? 'rgb(132, 220, 24)' : _param_quoteIconColor, quote = param.quote, title = param.title, description = param.description, _param_buttonText = param.buttonText, buttonText = _param_buttonText === void 0 ? '查看回放' : _param_buttonText, buttonBar = param.buttonBar, onButtonClick = param.onButtonClick, onClick = param.onClick, style = param.style, className = param.className, customPrefixCls = param.prefixCls;
|
|
54
54
|
var getPrefixCls = useContext(ConfigProvider.ConfigContext).getPrefixCls;
|
|
55
55
|
var prefixCls = getPrefixCls('agentic-chatboot-case-reply', customPrefixCls);
|
|
@@ -120,7 +120,7 @@ var CaseReplyComponent = function(param) {
|
|
|
120
120
|
className: buttonBarCls
|
|
121
121
|
}, buttonBar || /*#__PURE__*/ React.createElement("button", {
|
|
122
122
|
type: "button",
|
|
123
|
-
onClick: function(e) {
|
|
123
|
+
onClick: function onClick(e) {
|
|
124
124
|
e.stopPropagation();
|
|
125
125
|
onButtonClick === null || onButtonClick === void 0 ? void 0 : onButtonClick(e);
|
|
126
126
|
}
|
|
@@ -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
|
maxWidth: '322px',
|
|
57
57
|
background: '#fdfdfd',
|
|
@@ -212,7 +212,7 @@ var genStyle = function(token) {
|
|
|
212
212
|
};
|
|
213
213
|
/**
|
|
214
214
|
* CaseReply 组件样式
|
|
215
|
-
*/ export var useStyle = function(prefixCls) {
|
|
215
|
+
*/ export var useStyle = function useStyle(prefixCls) {
|
|
216
216
|
return useEditorStyleRegister('ChatBootCaseReply', function(token) {
|
|
217
217
|
var caseReplyToken = _object_spread_props(_object_spread({}, token), {
|
|
218
218
|
componentCls: ".".concat(prefixCls)
|
|
@@ -2,7 +2,7 @@ import { ConfigProvider } from "antd";
|
|
|
2
2
|
import classNames from "classnames";
|
|
3
3
|
import React, { memo, useContext } from "react";
|
|
4
4
|
import { useStyle } from "./style";
|
|
5
|
-
var TitleComponent = function(param) {
|
|
5
|
+
var TitleComponent = function TitleComponent(param) {
|
|
6
6
|
var title = param.title, subtitle = param.subtitle, style = param.style, className = param.className, customPrefixCls = param.prefixCls;
|
|
7
7
|
var getPrefixCls = useContext(ConfigProvider.ConfigContext).getPrefixCls;
|
|
8
8
|
var prefixCls = getPrefixCls('agentic-chatboot-title', customPrefixCls);
|
|
@@ -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
|
textAlign: 'center',
|
|
57
57
|
marginBottom: 24,
|
|
@@ -73,7 +73,7 @@ var genStyle = function(token) {
|
|
|
73
73
|
* Title 组件样式
|
|
74
74
|
* @param prefixCls
|
|
75
75
|
* @returns
|
|
76
|
-
*/ export var useStyle = function(prefixCls) {
|
|
76
|
+
*/ export var useStyle = function useStyle(prefixCls) {
|
|
77
77
|
return useEditorStyleRegister('ChatBootTitle', function(token) {
|
|
78
78
|
var titleToken = _object_spread_props(_object_spread({}, token), {
|
|
79
79
|
componentCls: ".".concat(prefixCls)
|
|
@@ -76,7 +76,7 @@ import bg from "./images/bg.png";
|
|
|
76
76
|
* - 使用背景图片
|
|
77
77
|
* - 提供流畅的背景效果
|
|
78
78
|
* - 支持自定义样式
|
|
79
|
-
*/ export var FooterBackground = function(param) {
|
|
79
|
+
*/ export var FooterBackground = function FooterBackground(param) {
|
|
80
80
|
var className = param.className, style = param.style;
|
|
81
81
|
return /*#__PURE__*/ React.createElement("div", {
|
|
82
82
|
className: className,
|
package/dist/ChatLayout/index.js
CHANGED
|
@@ -105,7 +105,7 @@ import { useStyle } from "./style";
|
|
|
105
105
|
var _useStyle = useStyle(prefixCls), wrapSSR = _useStyle.wrapSSR, hashId = _useStyle.hashId;
|
|
106
106
|
var _useAutoScroll = useAutoScroll({
|
|
107
107
|
SCROLL_TOLERANCE: 30,
|
|
108
|
-
onResize: function() {},
|
|
108
|
+
onResize: function onResize() {},
|
|
109
109
|
timeout: 200,
|
|
110
110
|
scrollBehavior: scrollBehavior
|
|
111
111
|
}), containerRef = _useAutoScroll.containerRef, scrollToBottom = _useAutoScroll.scrollToBottom;
|
package/dist/ChatLayout/style.js
CHANGED
|
@@ -52,7 +52,7 @@ function _object_spread_props(target, source) {
|
|
|
52
52
|
}
|
|
53
53
|
import { MOBILE_BREAKPOINT, MOBILE_PADDING } from "../Constants/mobile";
|
|
54
54
|
import { resetComponent, useEditorStyleRegister } from "../Hooks/useStyle";
|
|
55
|
-
var genStyle = function(token) {
|
|
55
|
+
var genStyle = function genStyle(token) {
|
|
56
56
|
return _define_property({}, token.componentCls, _define_property({
|
|
57
57
|
display: 'flex',
|
|
58
58
|
flexDirection: 'column',
|