@ant-design/agentic-ui 2.4.2 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Bubble/List/PureBubbleList.d.ts +32 -0
- package/dist/Bubble/List/PureBubbleList.js +143 -0
- package/dist/Bubble/List/index.d.ts +1 -0
- package/dist/Bubble/List/index.js +2 -0
- package/dist/Bubble/PureBubble.d.ts +15 -0
- package/dist/Bubble/PureBubble.js +350 -0
- package/dist/Bubble/index.d.ts +2 -0
- package/dist/Bubble/index.js +6 -0
- package/dist/MarkdownEditor/BaseMarkdownEditor.js +6 -2
- package/dist/MarkdownEditor/editor/store.d.ts +4 -2
- package/dist/MarkdownEditor/editor/store.js +8 -3
- package/dist/MarkdownEditor/editor/utils/markdownToHtml.d.ts +6 -2
- package/dist/MarkdownEditor/editor/utils/markdownToHtml.js +44 -11
- package/dist/MarkdownEditor/types.d.ts +5 -0
- package/package.json +2 -2
- package/dist/AgentRunBar/Robot.d.ts.map +0 -1
- package/dist/AgentRunBar/icons/PauseIcon.d.ts.map +0 -1
- package/dist/AgentRunBar/icons/PlayIcon.d.ts.map +0 -1
- package/dist/AgentRunBar/icons/SimplePauseIcon.d.ts.map +0 -1
- package/dist/AgentRunBar/icons/SimplePlayIcon.d.ts.map +0 -1
- package/dist/AgentRunBar/icons/SimpleStopIcon.d.ts.map +0 -1
- package/dist/AgentRunBar/icons/StopIcon.d.ts.map +0 -1
- package/dist/AgentRunBar/icons/index.d.ts.map +0 -1
- package/dist/AgentRunBar/index.d.ts.map +0 -1
- package/dist/AgentRunBar/style.d.ts.map +0 -1
- package/dist/AgenticLayout/index.d.ts.map +0 -1
- package/dist/AgenticLayout/style.d.ts.map +0 -1
- package/dist/AnswerAlert/components/CloseIcon.d.ts.map +0 -1
- package/dist/AnswerAlert/components/ErrorIcon.d.ts.map +0 -1
- package/dist/AnswerAlert/components/InfoIcon.d.ts.map +0 -1
- package/dist/AnswerAlert/components/LoaderIcon.d.ts.map +0 -1
- package/dist/AnswerAlert/components/SuccessIcon.d.ts.map +0 -1
- package/dist/AnswerAlert/components/WarningIcon.d.ts.map +0 -1
- package/dist/AnswerAlert/index.d.ts.map +0 -1
- package/dist/AnswerAlert/style.d.ts.map +0 -1
- package/dist/BackTo/BackBottom.d.ts.map +0 -1
- package/dist/BackTo/BackTop.d.ts.map +0 -1
- package/dist/BackTo/ScrollVisibleButton.d.ts.map +0 -1
- package/dist/BackTo/hooks/useScrollVisible.d.ts.map +0 -1
- package/dist/BackTo/icons/BottomIcon.d.ts.map +0 -1
- package/dist/BackTo/icons/TopIcon.d.ts.map +0 -1
- package/dist/BackTo/index.d.ts.map +0 -1
- package/dist/BackTo/style.d.ts.map +0 -1
- package/dist/Bubble/AIBubble.d.ts.map +0 -1
- package/dist/Bubble/Avatar/index.d.ts.map +0 -1
- package/dist/Bubble/Avatar/isEmoji.d.ts.map +0 -1
- package/dist/Bubble/Bubble.d.ts.map +0 -1
- package/dist/Bubble/BubbleBeforeNode.d.ts.map +0 -1
- package/dist/Bubble/BubbleConfigProvide.d.ts.map +0 -1
- package/dist/Bubble/FileView.d.ts.map +0 -1
- package/dist/Bubble/List/SkeletonList.d.ts.map +0 -1
- package/dist/Bubble/List/index.d.ts.map +0 -1
- package/dist/Bubble/List/style.d.ts.map +0 -1
- package/dist/Bubble/MessagesContent/BubbleContext.d.ts.map +0 -1
- package/dist/Bubble/MessagesContent/BubbleExtra.d.ts.map +0 -1
- package/dist/Bubble/MessagesContent/CopyButton/index.d.ts.map +0 -1
- package/dist/Bubble/MessagesContent/DocInfo.d.ts.map +0 -1
- package/dist/Bubble/MessagesContent/EXCEPTION.d.ts.map +0 -1
- package/dist/Bubble/MessagesContent/MarkdownPreview.d.ts.map +0 -1
- package/dist/Bubble/MessagesContent/VoiceButton/index.d.ts.map +0 -1
- package/dist/Bubble/MessagesContent/VoiceButton/style.d.ts.map +0 -1
- package/dist/Bubble/MessagesContent/VoiceButton/types.d.ts.map +0 -1
- package/dist/Bubble/MessagesContent/docInfoStyle.d.ts.map +0 -1
- package/dist/Bubble/MessagesContent/icons.d.ts.map +0 -1
- package/dist/Bubble/MessagesContent/index.d.ts.map +0 -1
- package/dist/Bubble/Title.d.ts.map +0 -1
- package/dist/Bubble/UserBubble.d.ts.map +0 -1
- package/dist/Bubble/index.d.ts.map +0 -1
- package/dist/Bubble/style.d.ts.map +0 -1
- package/dist/Bubble/type.d.ts.map +0 -1
- package/dist/Bubble/types/BubbleExtra.d.ts.map +0 -1
- package/dist/Bubble/types/DocInfo.d.ts.map +0 -1
- package/dist/ChatBootPage/ButtonTab.d.ts.map +0 -1
- package/dist/ChatBootPage/ButtonTabGroup.d.ts.map +0 -1
- package/dist/ChatBootPage/ButtonTabGroupStyle.d.ts.map +0 -1
- package/dist/ChatBootPage/ButtonTabStyle.d.ts.map +0 -1
- package/dist/ChatBootPage/CaseReply.d.ts.map +0 -1
- package/dist/ChatBootPage/CaseReplyStyle.d.ts.map +0 -1
- package/dist/ChatBootPage/Title.d.ts.map +0 -1
- package/dist/ChatBootPage/index.d.ts.map +0 -1
- package/dist/ChatBootPage/style.d.ts.map +0 -1
- package/dist/ChatLayout/index.d.ts.map +0 -1
- package/dist/ChatLayout/style.d.ts.map +0 -1
- package/dist/ChatLayout/types.d.ts.map +0 -1
- package/dist/Components/ActionIconBox/index.d.ts.map +0 -1
- package/dist/Components/ActionIconBox/style.d.ts.map +0 -1
- package/dist/Components/ActionItemBox/ActionItemBox.d.ts.map +0 -1
- package/dist/Components/ActionItemBox/index.d.ts.map +0 -1
- package/dist/Components/ActionItemBox/style.d.ts.map +0 -1
- package/dist/Components/Button/IconButton/index.d.ts.map +0 -1
- package/dist/Components/Button/IconButton/style.d.ts.map +0 -1
- package/dist/Components/Button/SwitchButton/index.d.ts.map +0 -1
- package/dist/Components/Button/SwitchButton/style.d.ts.map +0 -1
- package/dist/Components/Button/ToggleButton/index.d.ts.map +0 -1
- package/dist/Components/Button/ToggleButton/style.d.ts.map +0 -1
- package/dist/Components/Button/index.d.ts.map +0 -1
- package/dist/Components/GradientText/index.d.ts.map +0 -1
- package/dist/Components/GradientText/style.d.ts.map +0 -1
- package/dist/Components/ImageList.d.ts.map +0 -1
- package/dist/Components/LayoutHeader/index.d.ts.map +0 -1
- package/dist/Components/LayoutHeader/style.d.ts.map +0 -1
- package/dist/Components/LayoutHeader/types.d.ts.map +0 -1
- package/dist/Components/Loading/index.d.ts.map +0 -1
- package/dist/Components/Robot/index.d.ts.map +0 -1
- package/dist/Components/Robot/lotties/DazingLottie/index.d.ts.map +0 -1
- package/dist/Components/Robot/lotties/ThinkingLottie/index.d.ts.map +0 -1
- package/dist/Components/Robot/lotties/index.d.ts.map +0 -1
- package/dist/Components/SuggestionList/index.d.ts.map +0 -1
- package/dist/Components/SuggestionList/style.d.ts.map +0 -1
- package/dist/Components/TextAnimate/index.d.ts.map +0 -1
- package/dist/Components/TextAnimate/style.d.ts.map +0 -1
- package/dist/Components/TypingAnimation/index.d.ts.map +0 -1
- package/dist/Components/TypingAnimation/style.d.ts.map +0 -1
- package/dist/Components/VisualList/index.d.ts.map +0 -1
- package/dist/Components/VisualList/style.d.ts.map +0 -1
- package/dist/Components/icons/LoadingSpinnerIcon.d.ts.map +0 -1
- package/dist/Components/lotties/DazingLottie/index.d.ts.map +0 -1
- package/dist/Components/lotties/LoadingLottie/index.d.ts.map +0 -1
- package/dist/Components/lotties/TextLoading/index.d.ts.map +0 -1
- package/dist/Components/lotties/TextLoading/style.d.ts.map +0 -1
- package/dist/Components/lotties/ThinkingLottie/index.d.ts.map +0 -1
- package/dist/Components/lotties/index.d.ts.map +0 -1
- package/dist/Constants/colors.d.ts.map +0 -1
- package/dist/History/components/HistoryActionsBox.d.ts.map +0 -1
- package/dist/History/components/HistoryItem.d.ts.map +0 -1
- package/dist/History/components/HistoryRunningIcon.d.ts.map +0 -1
- package/dist/History/components/NewChatComponent.d.ts.map +0 -1
- package/dist/History/components/NewChatComponent.style.d.ts.map +0 -1
- package/dist/History/menu.d.ts.map +0 -1
- package/dist/History/types/HistoryData.d.ts.map +0 -1
- package/dist/History/types/HistoryList.d.ts.map +0 -1
- package/dist/History/utils/index.d.ts.map +0 -1
- package/dist/Hooks/useAutoScroll.d.ts.map +0 -1
- package/dist/Hooks/useClickAway.d.ts.map +0 -1
- package/dist/Hooks/useCopied.d.ts.map +0 -1
- package/dist/Hooks/useDebounceFn/index.d.ts.map +0 -1
- package/dist/Hooks/useIntersectionOnce.d.ts.map +0 -1
- package/dist/Hooks/useLanguage.d.ts.map +0 -1
- package/dist/Hooks/useRefFunction/index.d.ts.map +0 -1
- package/dist/Hooks/useSpeechSynthesis.d.ts.map +0 -1
- package/dist/Hooks/useStyle/index.d.ts.map +0 -1
- package/dist/Hooks/useThrottleFn/index.d.ts.map +0 -1
- package/dist/I18n/index.d.ts.map +0 -1
- package/dist/Icons/animated/VoicePlayLottie/index.d.ts.map +0 -1
- package/dist/Icons/animated/VoicingLottie/index.d.ts.map +0 -1
- package/dist/MarkdownEditor/BaseMarkdownEditor.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/Editor.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/components/CommentList/index.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/components/CommentList/style.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/components/ContributorAvatar/index.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/components/ContributorAvatar/style.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/components/LazyElement/index.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/components/LazyElement/style.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/components/fntTag/index.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/components/fntTag/style.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/components/index.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/Blockquote.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/Break.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/Card/index.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/Code.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/Comment/index.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/ErrorBoundary.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/FootnoteDefinition.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/FootnoteReference.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/Head.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/Hr.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/Image/index.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/InlineKatex.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/Katex.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/LinkCard/index.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/LinkCard/style.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/List/List.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/List/ListItem.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/List/index.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/List/style.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/Media.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/Mermaid.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/Paragraph.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/Schema.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/Table/ReadonlyTableComponent.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/Table/SimpleTable.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/Table/Table.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/Table/TableCellIndex/index.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/Table/TableCellIndex/style.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/Table/TableCellIndexSpacer/index.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/Table/TableCellIndexSpacer/style.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/Table/TableContext.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/Table/TableRowIndex/index.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/Table/TableRowIndex/style.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/Table/Td/index.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/Table/Td/style.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/Table/index.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/Table/style.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/Table/useScrollShadow.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/TagPopup/index.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/TagPopup/style.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/elements/index.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/parser/json-parse.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/parser/parserMdToSchema.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/parser/parserSlateNodeToMarkdown.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/plugins/catchError.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/plugins/elements.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/plugins/handlePaste.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/arrow.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/backspace.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/enter.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/match.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/tab.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/plugins/index.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/plugins/insertParsedHtmlNodes.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/plugins/parseMarkdownToNodesAndInsert.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/plugins/useHighlight.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/plugins/useKeyboard.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/plugins/useOnchange.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/plugins/withMarkdown.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/store.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/style.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/tagStyles.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/tools/DragHandle.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/tools/InsertAutocomplete.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/tools/InsertLink.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/tools/Leading.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/tools/ToolBar/BaseBar.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/tools/ToolBar/FloatBar.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/tools/ToolBar/ReadonlyBaseBar.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/tools/ToolBar/ToolBar.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/tools/ToolBar/components/ClearFormatButton.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/tools/ToolBar/components/ColorPickerButton.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/tools/ToolBar/components/FormatButton.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/tools/ToolBar/components/FormattingTools.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/tools/ToolBar/components/HeadingDropdown.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/tools/ToolBar/components/LinkButton.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/tools/ToolBar/components/ToolBarItem.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/tools/ToolBar/components/UndoRedoButtons.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/tools/ToolBar/config/toolsConfig.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/tools/ToolBar/floatBarStyle.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/tools/ToolBar/hooks/useToolBarLogic.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/tools/ToolBar/index.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/tools/ToolBar/toolBarStyle.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/tools/insertAutocompleteStyle.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/types/Table.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/utils/InlineChromiumBugfix.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/utils/ace.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/utils/docx/docxDeserializer.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/utils/docx/index.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/utils/docx/module.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/utils/docx/utils.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/utils/dom.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/utils/editorUtils.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/utils/htmlToMarkdown.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/utils/index.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/utils/isMarkdown.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/utils/keyboard.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/utils/media.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/utils/path.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/utils/performanceMonitor.d.ts.map +0 -1
- package/dist/MarkdownEditor/editor/utils/useLocalState.d.ts.map +0 -1
- package/dist/MarkdownEditor/el.d.ts.map +0 -1
- package/dist/MarkdownEditor/hooks/editor.d.ts.map +0 -1
- package/dist/MarkdownEditor/hooks/subscribe.d.ts.map +0 -1
- package/dist/MarkdownEditor/index.d.ts.map +0 -1
- package/dist/MarkdownEditor/plugin.d.ts.map +0 -1
- package/dist/MarkdownEditor/style.d.ts.map +0 -1
- package/dist/MarkdownEditor/types.d.ts.map +0 -1
- package/dist/MarkdownEditor/utils/exportHtml.d.ts.map +0 -1
- package/dist/MarkdownEditor/utils/native-table/index.d.ts.map +0 -1
- package/dist/MarkdownEditor/utils/native-table/native-table-editor.d.ts.map +0 -1
- package/dist/MarkdownEditor/utils/native-table/native-table-keyboard.d.ts.map +0 -1
- package/dist/MarkdownInputField/AttachmentButton/AttachmentButtonPopover.d.ts.map +0 -1
- package/dist/MarkdownInputField/AttachmentButton/AttachmentFileList/AttachmentFileIcon.d.ts.map +0 -1
- package/dist/MarkdownInputField/AttachmentButton/AttachmentFileList/AttachmentFileListItem.d.ts.map +0 -1
- package/dist/MarkdownInputField/AttachmentButton/AttachmentFileList/index.d.ts.map +0 -1
- package/dist/MarkdownInputField/AttachmentButton/AttachmentFileList/style.d.ts.map +0 -1
- package/dist/MarkdownInputField/AttachmentButton/style.d.ts.map +0 -1
- package/dist/MarkdownInputField/AttachmentButton/types.d.ts.map +0 -1
- package/dist/MarkdownInputField/AttachmentButton/utils.d.ts.map +0 -1
- package/dist/MarkdownInputField/BeforeToolContainer/BeforeToolContainer.d.ts.map +0 -1
- package/dist/MarkdownInputField/Enlargement/index.d.ts.map +0 -1
- package/dist/MarkdownInputField/FileMapView/FileMapViewItem.d.ts.map +0 -1
- package/dist/MarkdownInputField/FileMapView/index.d.ts.map +0 -1
- package/dist/MarkdownInputField/FileMapView/style.d.ts.map +0 -1
- package/dist/MarkdownInputField/FilePaste/index.d.ts.map +0 -1
- package/dist/MarkdownInputField/QuickActions/index.d.ts.map +0 -1
- package/dist/MarkdownInputField/RefinePromptButton/index.d.ts.map +0 -1
- package/dist/MarkdownInputField/RefinePromptButton/style.d.ts.map +0 -1
- package/dist/MarkdownInputField/SendActions/index.d.ts.map +0 -1
- package/dist/MarkdownInputField/SendButton/index.d.ts.map +0 -1
- package/dist/MarkdownInputField/SendButton/style.d.ts.map +0 -1
- package/dist/MarkdownInputField/SkillModeBar/hooks/index.d.ts.map +0 -1
- package/dist/MarkdownInputField/SkillModeBar/hooks/useSkillModeState.d.ts.map +0 -1
- package/dist/MarkdownInputField/SkillModeBar/index.d.ts.map +0 -1
- package/dist/MarkdownInputField/SkillModeBar/style.d.ts.map +0 -1
- package/dist/MarkdownInputField/Suggestion/index.d.ts.map +0 -1
- package/dist/MarkdownInputField/TopOperatingArea/index.d.ts.map +0 -1
- package/dist/MarkdownInputField/TopOperatingArea/style.d.ts.map +0 -1
- package/dist/MarkdownInputField/VoiceInput/index.d.ts.map +0 -1
- package/dist/MarkdownInputField/VoiceInput/style.d.ts.map +0 -1
- package/dist/MarkdownInputField/VoiceInputManager/index.d.ts.map +0 -1
- package/dist/MarkdownInputField/style.d.ts.map +0 -1
- package/dist/Plugins/chart/AreaChart/index.d.ts.map +0 -1
- package/dist/Plugins/chart/AreaChart/style.d.ts.map +0 -1
- package/dist/Plugins/chart/BarChart/index.d.ts.map +0 -1
- package/dist/Plugins/chart/BarChart/style.d.ts.map +0 -1
- package/dist/Plugins/chart/ChartAttrToolBar/ChartAttrToolBarStyle.d.ts.map +0 -1
- package/dist/Plugins/chart/ChartAttrToolBar/index.d.ts.map +0 -1
- package/dist/Plugins/chart/ChartMark/Area.d.ts.map +0 -1
- package/dist/Plugins/chart/ChartMark/Bar.d.ts.map +0 -1
- package/dist/Plugins/chart/ChartMark/Column.d.ts.map +0 -1
- package/dist/Plugins/chart/ChartMark/Container.d.ts.map +0 -1
- package/dist/Plugins/chart/ChartMark/Line.d.ts.map +0 -1
- package/dist/Plugins/chart/ChartMark/Pie.d.ts.map +0 -1
- package/dist/Plugins/chart/ChartMark/index.d.ts.map +0 -1
- package/dist/Plugins/chart/ChartMark/useChart.d.ts.map +0 -1
- package/dist/Plugins/chart/ChartStatistic/index.d.ts.map +0 -1
- package/dist/Plugins/chart/ChartStatistic/style.d.ts.map +0 -1
- package/dist/Plugins/chart/ChartStatistic/utils.d.ts.map +0 -1
- package/dist/Plugins/chart/DonutChart/Legend.d.ts.map +0 -1
- package/dist/Plugins/chart/DonutChart/constants.d.ts.map +0 -1
- package/dist/Plugins/chart/DonutChart/hooks.d.ts.map +0 -1
- package/dist/Plugins/chart/DonutChart/index.d.ts.map +0 -1
- package/dist/Plugins/chart/DonutChart/plugins.d.ts.map +0 -1
- package/dist/Plugins/chart/DonutChart/style.d.ts.map +0 -1
- package/dist/Plugins/chart/DonutChart/types.d.ts.map +0 -1
- package/dist/Plugins/chart/FunnelChart/index.d.ts.map +0 -1
- package/dist/Plugins/chart/FunnelChart/style.d.ts.map +0 -1
- package/dist/Plugins/chart/LineChart/index.d.ts.map +0 -1
- package/dist/Plugins/chart/LineChart/style.d.ts.map +0 -1
- package/dist/Plugins/chart/RadarChart/index.d.ts.map +0 -1
- package/dist/Plugins/chart/RadarChart/style.d.ts.map +0 -1
- package/dist/Plugins/chart/ScatterChart/index.d.ts.map +0 -1
- package/dist/Plugins/chart/ScatterChart/style.d.ts.map +0 -1
- package/dist/Plugins/chart/components/ChartContainer/ChartContainer.d.ts.map +0 -1
- package/dist/Plugins/chart/components/ChartContainer/ChartErrorBoundary.d.ts.map +0 -1
- package/dist/Plugins/chart/components/ChartContainer/ChartErrorBoundaryExample.d.ts.map +0 -1
- package/dist/Plugins/chart/components/ChartContainer/index.d.ts.map +0 -1
- package/dist/Plugins/chart/components/ChartContainer/style.d.ts.map +0 -1
- package/dist/Plugins/chart/components/ChartFilter/ChartFilter.d.ts.map +0 -1
- package/dist/Plugins/chart/components/ChartFilter/style.d.ts.map +0 -1
- package/dist/Plugins/chart/components/ChartToolBar/ChartToolBar.d.ts.map +0 -1
- package/dist/Plugins/chart/components/ChartToolBar/style.d.ts.map +0 -1
- package/dist/Plugins/chart/components/icons/TimeIcon.d.ts.map +0 -1
- package/dist/Plugins/chart/components/index.d.ts.map +0 -1
- package/dist/Plugins/chart/const.d.ts.map +0 -1
- package/dist/Plugins/chart/hooks/useChartStatistic.d.ts.map +0 -1
- package/dist/Plugins/chart/index.d.ts.map +0 -1
- package/dist/Plugins/chart/loadChartRuntime.d.ts.map +0 -1
- package/dist/Plugins/chart/utils.d.ts.map +0 -1
- package/dist/Plugins/code/CodeUI/Katex/Katex.d.ts.map +0 -1
- package/dist/Plugins/code/components/AceEditor.d.ts.map +0 -1
- package/dist/Plugins/code/components/AceEditorContainer.d.ts.map +0 -1
- package/dist/Plugins/code/components/CodeContainer.d.ts.map +0 -1
- package/dist/Plugins/code/components/CodeRenderer.d.ts.map +0 -1
- package/dist/Plugins/code/components/CodeToolbar.d.ts.map +0 -1
- package/dist/Plugins/code/components/HtmlPreview.d.ts.map +0 -1
- package/dist/Plugins/code/components/LanguageSelector.d.ts.map +0 -1
- package/dist/Plugins/code/components/LoadImage.d.ts.map +0 -1
- package/dist/Plugins/code/components/ThinkBlock.d.ts.map +0 -1
- package/dist/Plugins/code/components/index.d.ts.map +0 -1
- package/dist/Plugins/code/hooks/index.d.ts.map +0 -1
- package/dist/Plugins/code/hooks/useCodeEditorState.d.ts.map +0 -1
- package/dist/Plugins/code/hooks/useRenderConditions.d.ts.map +0 -1
- package/dist/Plugins/code/hooks/useToolbarConfig.d.ts.map +0 -1
- package/dist/Plugins/code/index.d.ts.map +0 -1
- package/dist/Plugins/code/langIconMap.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/AbapIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/ActionscriptIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/AdaIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/ApacheIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/ApexIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/AplIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/ApplescriptIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/AstroIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/AwkIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/BallerinaIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/BatIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/BicepIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/BladeIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/CIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/CadenceIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/ClojureIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/CmakeIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/CobolIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/CodeqlIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/CoffeeIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/ConsoleIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/CppIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/CrystalIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/CsharpIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/CssIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/DIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/DartIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/DatabaseIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/DiffIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/DockerIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/DotenvIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/ElixirIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/ElmIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/ErbIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/ErlangIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/FsharpIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/GdscriptIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/GlslIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/GnuplotIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/GoIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/GraphqlIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/GroovyIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/HackIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/HamlIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/HandlebarsIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/HaskellIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/HclIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/HclLightIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/HjsonIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/HlslIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/HtmlIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/HttpIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/ImbaIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/IniIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/JavaIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/JavascriptIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/JinjaIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/Json5Icon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/JsonIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/JsonnetIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/JuliaIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/KotlinIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/KustoIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/LessIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/LiquidIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/LispIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/LuaIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/MakefileIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/MarkdownIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/MarkojsIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/MatlabIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/MdxIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/MermaidIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/MojoIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/NginxIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/NimIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/NixIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/ObjectiveCIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/ObjectiveCppIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/OcamlIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/PascalIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/Perl6Icon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/PerlIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/PhpIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/PostcssIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/PowershellIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/PrismaIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/PrologIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/ProtoIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/PugIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/PuppetIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/PurescriptIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/PythonIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/RIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/RazorIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/ReactIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/ReactTsIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/RubyIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/RustIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/SasIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/SassIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/ScalaIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/SchemeIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/ShaderlabIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/SolidityIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/SparqlIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/StataIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/StylusIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/SvelteIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/SwiftIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/SystemverilogIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/TclIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/TexIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/TomlIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/TwigIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/TypescriptIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/VerilogIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/VhdlIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/VimIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/VueIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/WebassemblyIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/WenyanIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/WgslIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/WolframlanguageIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/XmlIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/XslIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/YamlIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/ZigIcon.d.ts.map +0 -1
- package/dist/Plugins/code/langIcons/index.d.ts.map +0 -1
- package/dist/Plugins/code/utils/index.d.ts.map +0 -1
- package/dist/Plugins/code/utils/langOptions.d.ts.map +0 -1
- package/dist/Plugins/defaultPlugins.d.ts.map +0 -1
- package/dist/Plugins/formatter/index.d.ts.map +0 -1
- package/dist/Plugins/index.d.ts.map +0 -1
- package/dist/Plugins/katex/Katex.d.ts.map +0 -1
- package/dist/Plugins/katex/index.d.ts.map +0 -1
- package/dist/Plugins/mermaid/index.d.ts.map +0 -1
- package/dist/Quote/index.d.ts.map +0 -1
- package/dist/Quote/style.d.ts.map +0 -1
- package/dist/Schema/SchemaEditor/AceEditorWrapper.d.ts.map +0 -1
- package/dist/Schema/SchemaEditor/index.d.ts.map +0 -1
- package/dist/Schema/SchemaEditor/style.d.ts.map +0 -1
- package/dist/Schema/SchemaForm/index.d.ts.map +0 -1
- package/dist/Schema/SchemaForm/types.d.ts.map +0 -1
- package/dist/Schema/SchemaRenderer/index.d.ts.map +0 -1
- package/dist/Schema/SchemaRenderer/templateEngine.d.ts.map +0 -1
- package/dist/Schema/index.d.ts.map +0 -1
- package/dist/Schema/types.d.ts.map +0 -1
- package/dist/Schema/validator.d.ts.map +0 -1
- package/dist/TaskList/index.d.ts.map +0 -1
- package/dist/TaskList/style.d.ts.map +0 -1
- package/dist/ThoughtChainList/CostMillis.d.ts.map +0 -1
- package/dist/ThoughtChainList/DeepThink.d.ts.map +0 -1
- package/dist/ThoughtChainList/DotAni/index.d.ts.map +0 -1
- package/dist/ThoughtChainList/DotAni/style.d.ts.map +0 -1
- package/dist/ThoughtChainList/FlipText/index.d.ts.map +0 -1
- package/dist/ThoughtChainList/MarkdownEditor.d.ts.map +0 -1
- package/dist/ThoughtChainList/RagRetrievalInfo.d.ts.map +0 -1
- package/dist/ThoughtChainList/TableSql.d.ts.map +0 -1
- package/dist/ThoughtChainList/ThoughtChainListItem.d.ts.map +0 -1
- package/dist/ThoughtChainList/TitleInfo.d.ts.map +0 -1
- package/dist/ThoughtChainList/ToolCall.d.ts.map +0 -1
- package/dist/ThoughtChainList/WebSearch.d.ts.map +0 -1
- package/dist/ThoughtChainList/index.d.ts.map +0 -1
- package/dist/ThoughtChainList/style.d.ts.map +0 -1
- package/dist/ThoughtChainList/types.d.ts.map +0 -1
- package/dist/ToolUseBar/ToolUseBarItem.d.ts.map +0 -1
- package/dist/ToolUseBar/ToolUseBarItemComponents.d.ts.map +0 -1
- package/dist/ToolUseBar/ToolUseBarThink.d.ts.map +0 -1
- package/dist/ToolUseBar/index.d.ts.map +0 -1
- package/dist/ToolUseBar/style.d.ts.map +0 -1
- package/dist/ToolUseBar/thinkStyle.d.ts.map +0 -1
- package/dist/Types/common.d.ts.map +0 -1
- package/dist/Types/index.d.ts.map +0 -1
- package/dist/Types/message.d.ts.map +0 -1
- package/dist/Utils/easings.d.ts.map +0 -1
- package/dist/Utils/formatTime.d.ts.map +0 -1
- package/dist/Utils/getScroll.d.ts.map +0 -1
- package/dist/Utils/language.d.ts.map +0 -1
- package/dist/Utils/proxySandbox/ProxySandbox.d.ts.map +0 -1
- package/dist/Utils/proxySandbox/SecurityContextManager.d.ts.map +0 -1
- package/dist/Utils/proxySandbox/index.d.ts.map +0 -1
- package/dist/Utils/proxySandbox/types.d.ts.map +0 -1
- package/dist/Utils/scrollTo.d.ts.map +0 -1
- package/dist/Utils/throttleByAnimationFrame.d.ts.map +0 -1
- package/dist/WelcomeMessage/index.d.ts.map +0 -1
- package/dist/WelcomeMessage/style.d.ts.map +0 -1
- package/dist/Workspace/Browser/index.d.ts.map +0 -1
- package/dist/Workspace/Browser/style.d.ts.map +0 -1
- package/dist/Workspace/File/DataSourceStrategy.d.ts.map +0 -1
- package/dist/Workspace/File/FileTypeProcessor.d.ts.map +0 -1
- package/dist/Workspace/File/PreviewComponent.d.ts.map +0 -1
- package/dist/Workspace/File/index.d.ts.map +0 -1
- package/dist/Workspace/File/style.d.ts.map +0 -1
- package/dist/Workspace/File/utils.d.ts.map +0 -1
- package/dist/Workspace/HtmlPreview/index.d.ts.map +0 -1
- package/dist/Workspace/HtmlPreview/style.d.ts.map +0 -1
- package/dist/Workspace/Task/index.d.ts.map +0 -1
- package/dist/Workspace/Task/style.d.ts.map +0 -1
- package/dist/Workspace/index.d.ts.map +0 -1
- package/dist/Workspace/style.d.ts.map +0 -1
- package/dist/Workspace/utils/codeLanguageUtils.d.ts.map +0 -1
- package/dist/Workspace/utils.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { MutableRefObject } from 'react';
|
|
2
|
+
import type { BubbleMetaData, BubbleProps, MessageBubbleData } from '../type';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export interface PureBubbleListProps {
|
|
5
|
+
bubbleList: MessageBubbleData[];
|
|
6
|
+
readonly?: boolean;
|
|
7
|
+
bubbleListRef?: MutableRefObject<HTMLDivElement | null>;
|
|
8
|
+
bubbleRef?: MutableRefObject<any | undefined>;
|
|
9
|
+
isLoading?: boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
bubbleRenderConfig?: BubbleProps['bubbleRenderConfig'];
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
userMeta?: BubbleMetaData;
|
|
14
|
+
assistantMeta?: BubbleMetaData;
|
|
15
|
+
styles?: BubbleProps['styles'];
|
|
16
|
+
classNames?: BubbleProps['classNames'];
|
|
17
|
+
markdownRenderConfig?: BubbleProps['markdownRenderConfig'];
|
|
18
|
+
docListProps?: BubbleProps['docListProps'];
|
|
19
|
+
onDisLike?: BubbleProps['onDisLike'];
|
|
20
|
+
onLike?: BubbleProps['onLike'];
|
|
21
|
+
onCancelLike?: BubbleProps['onCancelLike'];
|
|
22
|
+
onReply?: BubbleProps['onReply'];
|
|
23
|
+
onAvatarClick?: BubbleProps['onAvatarClick'];
|
|
24
|
+
onDoubleClick?: BubbleProps['onDoubleClick'];
|
|
25
|
+
shouldShowCopy?: BubbleProps['shouldShowCopy'];
|
|
26
|
+
shouldShowVoice?: BubbleProps['shouldShowVoice'];
|
|
27
|
+
onScroll?: (event: React.UIEvent<HTMLDivElement>) => void;
|
|
28
|
+
onWheel?: (event: React.WheelEvent<HTMLDivElement>, bubbleListRef: HTMLDivElement | null) => void;
|
|
29
|
+
onTouchMove?: (event: React.TouchEvent<HTMLDivElement>, bubbleListRef: HTMLDivElement | null) => void;
|
|
30
|
+
}
|
|
31
|
+
export declare const PureBubbleList: React.FC<PureBubbleListProps>;
|
|
32
|
+
export default PureBubbleList;
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
|
|
21
|
+
// src/Bubble/List/PureBubbleList.tsx
|
|
22
|
+
import SkeletonList from "./SkeletonList";
|
|
23
|
+
import { useContext, useMemo } from "react";
|
|
24
|
+
import { ConfigProvider } from "antd";
|
|
25
|
+
import cx from "classnames";
|
|
26
|
+
import React from "react";
|
|
27
|
+
import { PureAIBubble, PureUserBubble } from "../PureBubble";
|
|
28
|
+
import { BubbleConfigContext } from "../BubbleConfigProvide";
|
|
29
|
+
import { useStyle } from "./style";
|
|
30
|
+
var PureBubbleList = (props) => {
|
|
31
|
+
const {
|
|
32
|
+
bubbleList,
|
|
33
|
+
bubbleListRef,
|
|
34
|
+
bubbleRenderConfig,
|
|
35
|
+
className,
|
|
36
|
+
classNames,
|
|
37
|
+
docListProps,
|
|
38
|
+
isLoading,
|
|
39
|
+
markdownRenderConfig,
|
|
40
|
+
onAvatarClick,
|
|
41
|
+
onCancelLike,
|
|
42
|
+
onDisLike,
|
|
43
|
+
onDoubleClick,
|
|
44
|
+
onLike,
|
|
45
|
+
onReply,
|
|
46
|
+
onScroll,
|
|
47
|
+
onTouchMove,
|
|
48
|
+
onWheel,
|
|
49
|
+
shouldShowCopy,
|
|
50
|
+
shouldShowVoice,
|
|
51
|
+
style,
|
|
52
|
+
styles,
|
|
53
|
+
userMeta,
|
|
54
|
+
assistantMeta
|
|
55
|
+
} = props;
|
|
56
|
+
const { getPrefixCls } = useContext(ConfigProvider.ConfigContext);
|
|
57
|
+
const { compact } = useContext(BubbleConfigContext) || {};
|
|
58
|
+
const prefixClass = getPrefixCls("agentic-bubble-list");
|
|
59
|
+
const { wrapSSR, hashId } = useStyle(prefixClass);
|
|
60
|
+
const deps = useMemo(() => [props.style], [JSON.stringify(props.style)]);
|
|
61
|
+
const listDom = useMemo(() => {
|
|
62
|
+
return bubbleList.map((item, index) => {
|
|
63
|
+
const placement = item.role === "user" ? "right" : "left";
|
|
64
|
+
const BubbleComponent = placement === "right" ? PureUserBubble : PureAIBubble;
|
|
65
|
+
const isLast = index === bubbleList.length - 1;
|
|
66
|
+
item.isLatest = isLast;
|
|
67
|
+
item.isLast = isLast;
|
|
68
|
+
return /* @__PURE__ */ React.createElement(
|
|
69
|
+
BubbleComponent,
|
|
70
|
+
{
|
|
71
|
+
key: item.id,
|
|
72
|
+
"data-id": item.id,
|
|
73
|
+
avatar: __spreadValues(__spreadValues({}, placement === "right" ? userMeta : assistantMeta), item.meta),
|
|
74
|
+
preMessage: bubbleList[index - 1],
|
|
75
|
+
id: item.id,
|
|
76
|
+
style: __spreadValues({}, styles == null ? void 0 : styles.bubbleListItemStyle),
|
|
77
|
+
originData: item,
|
|
78
|
+
placement,
|
|
79
|
+
time: item.updateAt || item.createAt,
|
|
80
|
+
deps,
|
|
81
|
+
pure: true,
|
|
82
|
+
bubbleListRef,
|
|
83
|
+
bubbleRenderConfig,
|
|
84
|
+
classNames,
|
|
85
|
+
bubbleRef: props.bubbleRef,
|
|
86
|
+
markdownRenderConfig,
|
|
87
|
+
docListProps,
|
|
88
|
+
styles: __spreadProps(__spreadValues({}, styles), {
|
|
89
|
+
bubbleListItemContentStyle: __spreadValues(__spreadValues({}, styles == null ? void 0 : styles.bubbleListItemContentStyle), placement === "right" ? styles == null ? void 0 : styles.bubbleListRightItemContentStyle : styles == null ? void 0 : styles.bubbleListLeftItemContentStyle)
|
|
90
|
+
}),
|
|
91
|
+
readonly: props.readonly,
|
|
92
|
+
onReply,
|
|
93
|
+
onDisLike,
|
|
94
|
+
onLike,
|
|
95
|
+
onCancelLike,
|
|
96
|
+
onAvatarClick,
|
|
97
|
+
onDoubleClick,
|
|
98
|
+
customConfig: bubbleRenderConfig == null ? void 0 : bubbleRenderConfig.customConfig,
|
|
99
|
+
shouldShowCopy,
|
|
100
|
+
shouldShowVoice
|
|
101
|
+
}
|
|
102
|
+
);
|
|
103
|
+
});
|
|
104
|
+
}, [bubbleList, props.style]);
|
|
105
|
+
if (isLoading) {
|
|
106
|
+
return wrapSSR(
|
|
107
|
+
/* @__PURE__ */ React.createElement(
|
|
108
|
+
"div",
|
|
109
|
+
{
|
|
110
|
+
className: cx(prefixClass, `${prefixClass}-loading`, className, hashId),
|
|
111
|
+
ref: bubbleListRef,
|
|
112
|
+
style: {
|
|
113
|
+
padding: 24
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
/* @__PURE__ */ React.createElement(SkeletonList, null)
|
|
117
|
+
)
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
return wrapSSR(
|
|
121
|
+
/* @__PURE__ */ React.createElement(
|
|
122
|
+
"div",
|
|
123
|
+
{
|
|
124
|
+
className: cx(`${prefixClass}`, className, hashId, {
|
|
125
|
+
[`${prefixClass}-readonly`]: props.readonly,
|
|
126
|
+
[`${prefixClass}-compact`]: compact
|
|
127
|
+
}),
|
|
128
|
+
"data-chat-list": bubbleList.length,
|
|
129
|
+
style,
|
|
130
|
+
ref: bubbleListRef,
|
|
131
|
+
onScroll,
|
|
132
|
+
onWheel: (event) => onWheel == null ? void 0 : onWheel(event, (bubbleListRef == null ? void 0 : bubbleListRef.current) || null),
|
|
133
|
+
onTouchMove: (event) => onTouchMove == null ? void 0 : onTouchMove(event, (bubbleListRef == null ? void 0 : bubbleListRef.current) || null)
|
|
134
|
+
},
|
|
135
|
+
listDom
|
|
136
|
+
)
|
|
137
|
+
);
|
|
138
|
+
};
|
|
139
|
+
var PureBubbleList_default = PureBubbleList;
|
|
140
|
+
export {
|
|
141
|
+
PureBubbleList,
|
|
142
|
+
PureBubbleList_default as default
|
|
143
|
+
};
|
|
@@ -20,6 +20,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20
20
|
|
|
21
21
|
// src/Bubble/List/index.tsx
|
|
22
22
|
import SkeletonList from "./SkeletonList";
|
|
23
|
+
import { PureBubbleList } from "./PureBubbleList";
|
|
23
24
|
import { useContext, useMemo } from "react";
|
|
24
25
|
import { ConfigProvider } from "antd";
|
|
25
26
|
import cx from "classnames";
|
|
@@ -131,5 +132,6 @@ var BubbleList = (props) => {
|
|
|
131
132
|
var List_default = BubbleList;
|
|
132
133
|
export {
|
|
133
134
|
BubbleList,
|
|
135
|
+
PureBubbleList,
|
|
134
136
|
List_default as default
|
|
135
137
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MutableRefObject } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { BubbleProps } from './type';
|
|
4
|
+
export declare const PureBubble: React.FC<BubbleProps & {
|
|
5
|
+
deps?: any[];
|
|
6
|
+
bubbleRef?: MutableRefObject<any | undefined>;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const PureAIBubble: React.FC<BubbleProps & {
|
|
9
|
+
deps?: any[];
|
|
10
|
+
bubbleRef?: MutableRefObject<any | undefined>;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const PureUserBubble: React.FC<BubbleProps & {
|
|
13
|
+
deps?: any[];
|
|
14
|
+
bubbleRef?: MutableRefObject<any | undefined>;
|
|
15
|
+
}>;
|
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __objRest = (source, exclude) => {
|
|
21
|
+
var target = {};
|
|
22
|
+
for (var prop in source)
|
|
23
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
+
target[prop] = source[prop];
|
|
25
|
+
if (source != null && __getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
};
|
|
32
|
+
var __async = (__this, __arguments, generator) => {
|
|
33
|
+
return new Promise((resolve, reject) => {
|
|
34
|
+
var fulfilled = (value) => {
|
|
35
|
+
try {
|
|
36
|
+
step(generator.next(value));
|
|
37
|
+
} catch (e) {
|
|
38
|
+
reject(e);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
var rejected = (value) => {
|
|
42
|
+
try {
|
|
43
|
+
step(generator.throw(value));
|
|
44
|
+
} catch (e) {
|
|
45
|
+
reject(e);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
49
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
// src/Bubble/PureBubble.tsx
|
|
54
|
+
import { memo, useContext } from "react";
|
|
55
|
+
import { ConfigProvider, Flex } from "antd";
|
|
56
|
+
import cx from "classnames";
|
|
57
|
+
import React from "react";
|
|
58
|
+
import { BaseMarkdownEditor } from "../MarkdownEditor/BaseMarkdownEditor";
|
|
59
|
+
import { runRender } from "./AIBubble";
|
|
60
|
+
import { BubbleAvatar } from "./Avatar";
|
|
61
|
+
import { BubbleConfigContext } from "./BubbleConfigProvide";
|
|
62
|
+
import { MessagesContext } from "./MessagesContent/BubbleContext";
|
|
63
|
+
import { BubbleExtra } from "./MessagesContent/BubbleExtra";
|
|
64
|
+
import { useStyle } from "./style";
|
|
65
|
+
import { BubbleTitle } from "./Title";
|
|
66
|
+
var PureBubble = memo((props) => {
|
|
67
|
+
var _a, _c, _d, _e, _f;
|
|
68
|
+
const {
|
|
69
|
+
onAvatarClick,
|
|
70
|
+
className,
|
|
71
|
+
style,
|
|
72
|
+
bubbleRenderConfig,
|
|
73
|
+
classNames,
|
|
74
|
+
styles,
|
|
75
|
+
originData
|
|
76
|
+
} = props;
|
|
77
|
+
const [hidePadding, setHidePadding] = React.useState(false);
|
|
78
|
+
const { getPrefixCls } = useContext(ConfigProvider.ConfigContext);
|
|
79
|
+
const context = useContext(BubbleConfigContext);
|
|
80
|
+
const { compact, standalone, locale } = context || {};
|
|
81
|
+
const prefixClass = getPrefixCls("agentic");
|
|
82
|
+
const { wrapSSR, hashId } = useStyle(prefixClass);
|
|
83
|
+
const placement = (_a = props.placement) != null ? _a : "left";
|
|
84
|
+
const isRightPlacement = placement === "right";
|
|
85
|
+
const time = (originData == null ? void 0 : originData.createAt) || props.time;
|
|
86
|
+
const avatar = (originData == null ? void 0 : originData.meta) || props.avatar;
|
|
87
|
+
const defaultMarkdown = typeof (originData == null ? void 0 : originData.content) === "string" ? originData.content : "";
|
|
88
|
+
const _b = props.markdownRenderConfig || {}, {
|
|
89
|
+
initValue: configInitValue,
|
|
90
|
+
readonly: configReadonly
|
|
91
|
+
} = _b, markdownConfig = __objRest(_b, [
|
|
92
|
+
"initValue",
|
|
93
|
+
"readonly"
|
|
94
|
+
]);
|
|
95
|
+
const editorInitValue = configInitValue != null ? configInitValue : defaultMarkdown;
|
|
96
|
+
const editorReadonly = (_d = (_c = props.readonly) != null ? _c : configReadonly) != null ? _d : false;
|
|
97
|
+
const titleDom = runRender(
|
|
98
|
+
bubbleRenderConfig == null ? void 0 : bubbleRenderConfig.titleRender,
|
|
99
|
+
props,
|
|
100
|
+
/* @__PURE__ */ React.createElement(
|
|
101
|
+
BubbleTitle,
|
|
102
|
+
{
|
|
103
|
+
bubbleNameClassName: classNames == null ? void 0 : classNames.bubbleNameClassName,
|
|
104
|
+
className: classNames == null ? void 0 : classNames.bubbleListItemTitleClassName,
|
|
105
|
+
style: styles == null ? void 0 : styles.bubbleListItemTitleStyle,
|
|
106
|
+
prefixClass: cx(`${prefixClass}-bubble-title`),
|
|
107
|
+
title: (avatar == null ? void 0 : avatar.title) || (avatar == null ? void 0 : avatar.name),
|
|
108
|
+
placement,
|
|
109
|
+
time
|
|
110
|
+
}
|
|
111
|
+
)
|
|
112
|
+
);
|
|
113
|
+
const avatarDom = runRender(
|
|
114
|
+
bubbleRenderConfig == null ? void 0 : bubbleRenderConfig.avatarRender,
|
|
115
|
+
props,
|
|
116
|
+
/* @__PURE__ */ React.createElement(
|
|
117
|
+
BubbleAvatar,
|
|
118
|
+
{
|
|
119
|
+
className: classNames == null ? void 0 : classNames.bubbleListItemAvatarClassName,
|
|
120
|
+
avatar: avatar == null ? void 0 : avatar.avatar,
|
|
121
|
+
background: avatar == null ? void 0 : avatar.backgroundColor,
|
|
122
|
+
title: (avatar == null ? void 0 : avatar.title) || (avatar == null ? void 0 : avatar.name),
|
|
123
|
+
onClick: onAvatarClick,
|
|
124
|
+
prefixCls: `${prefixClass}-bubble-avatar`,
|
|
125
|
+
style: styles == null ? void 0 : styles.bubbleListItemAvatarStyle
|
|
126
|
+
}
|
|
127
|
+
)
|
|
128
|
+
);
|
|
129
|
+
const markdownEditorDom = /* @__PURE__ */ React.createElement(
|
|
130
|
+
BaseMarkdownEditor,
|
|
131
|
+
__spreadProps(__spreadValues({}, markdownConfig), {
|
|
132
|
+
initValue: editorInitValue,
|
|
133
|
+
readonly: editorReadonly
|
|
134
|
+
})
|
|
135
|
+
);
|
|
136
|
+
const contentBeforeDom = runRender(
|
|
137
|
+
bubbleRenderConfig == null ? void 0 : bubbleRenderConfig.contentBeforeRender,
|
|
138
|
+
props,
|
|
139
|
+
null
|
|
140
|
+
);
|
|
141
|
+
const contentAfterDom = runRender(
|
|
142
|
+
bubbleRenderConfig == null ? void 0 : bubbleRenderConfig.contentAfterRender,
|
|
143
|
+
props,
|
|
144
|
+
null
|
|
145
|
+
);
|
|
146
|
+
const messageContent = runRender(
|
|
147
|
+
bubbleRenderConfig == null ? void 0 : bubbleRenderConfig.contentRender,
|
|
148
|
+
props,
|
|
149
|
+
markdownEditorDom
|
|
150
|
+
);
|
|
151
|
+
const extraDom = (bubbleRenderConfig == null ? void 0 : bubbleRenderConfig.extraRender) === false ? null : /* @__PURE__ */ React.createElement(
|
|
152
|
+
BubbleExtra,
|
|
153
|
+
{
|
|
154
|
+
pure: true,
|
|
155
|
+
style: styles == null ? void 0 : styles.bubbleListItemExtraStyle,
|
|
156
|
+
readonly: props.readonly,
|
|
157
|
+
rightRender: (_e = props == null ? void 0 : props.bubbleRenderConfig) == null ? void 0 : _e.extraRightRender,
|
|
158
|
+
onReply: props.onReply,
|
|
159
|
+
onCancelLike: props.onCancelLike,
|
|
160
|
+
shouldShowCopy: props.shouldShowCopy,
|
|
161
|
+
useSpeech: props.useSpeech,
|
|
162
|
+
shouldShowVoice: props.shouldShowVoice,
|
|
163
|
+
onDisLike: props.onDisLike ? () => __async(void 0, null, function* () {
|
|
164
|
+
var _a2, _b2, _c2, _d2;
|
|
165
|
+
try {
|
|
166
|
+
yield (_a2 = props.onDisLike) == null ? void 0 : _a2.call(props, props.originData);
|
|
167
|
+
(_d2 = (_c2 = (_b2 = props.bubbleRef) == null ? void 0 : _b2.current) == null ? void 0 : _c2.setMessageItem) == null ? void 0 : _d2.call(_c2, props.id, {
|
|
168
|
+
feedback: "thumbsDown"
|
|
169
|
+
});
|
|
170
|
+
} catch (error) {
|
|
171
|
+
}
|
|
172
|
+
}) : void 0,
|
|
173
|
+
bubble: props,
|
|
174
|
+
onLike: props.onLike ? () => __async(void 0, null, function* () {
|
|
175
|
+
var _a2, _b2, _c2, _d2;
|
|
176
|
+
try {
|
|
177
|
+
yield (_a2 = props.onLike) == null ? void 0 : _a2.call(props, props.originData);
|
|
178
|
+
(_d2 = (_c2 = (_b2 = props.bubbleRef) == null ? void 0 : _b2.current) == null ? void 0 : _c2.setMessageItem) == null ? void 0 : _d2.call(_c2, props.id, {
|
|
179
|
+
feedback: "thumbsUp"
|
|
180
|
+
});
|
|
181
|
+
} catch (error) {
|
|
182
|
+
}
|
|
183
|
+
}) : void 0
|
|
184
|
+
}
|
|
185
|
+
);
|
|
186
|
+
const itemDom = wrapSSR(
|
|
187
|
+
/* @__PURE__ */ React.createElement(
|
|
188
|
+
BubbleConfigContext.Provider,
|
|
189
|
+
{
|
|
190
|
+
value: {
|
|
191
|
+
compact,
|
|
192
|
+
standalone: !!standalone,
|
|
193
|
+
locale,
|
|
194
|
+
bubble: props
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
/* @__PURE__ */ React.createElement(
|
|
198
|
+
Flex,
|
|
199
|
+
{
|
|
200
|
+
className: cx(
|
|
201
|
+
hashId,
|
|
202
|
+
className,
|
|
203
|
+
`${prefixClass}-bubble`,
|
|
204
|
+
`${prefixClass}-bubble-${placement}`,
|
|
205
|
+
`${prefixClass}-bubble-pure`,
|
|
206
|
+
{
|
|
207
|
+
[`${prefixClass}-bubble-compact`]: compact
|
|
208
|
+
},
|
|
209
|
+
classNames == null ? void 0 : classNames.bubbleClassName
|
|
210
|
+
),
|
|
211
|
+
style,
|
|
212
|
+
vertical: true,
|
|
213
|
+
id: props.id,
|
|
214
|
+
"data-id": props.id,
|
|
215
|
+
gap: 12
|
|
216
|
+
},
|
|
217
|
+
/* @__PURE__ */ React.createElement(
|
|
218
|
+
"div",
|
|
219
|
+
{
|
|
220
|
+
style,
|
|
221
|
+
className: cx(
|
|
222
|
+
`${prefixClass}-bubble-container`,
|
|
223
|
+
`${prefixClass}-bubble-container-${placement}`,
|
|
224
|
+
{
|
|
225
|
+
[`${prefixClass}-bubble-container-pure`]: props.pure
|
|
226
|
+
},
|
|
227
|
+
hashId
|
|
228
|
+
)
|
|
229
|
+
},
|
|
230
|
+
/* @__PURE__ */ React.createElement(
|
|
231
|
+
"div",
|
|
232
|
+
{
|
|
233
|
+
className: cx(
|
|
234
|
+
`${prefixClass}-bubble-avatar-title`,
|
|
235
|
+
`${prefixClass}-bubble-avatar-title-${placement}`,
|
|
236
|
+
`${prefixClass}-bubble-avatar-title-pure`,
|
|
237
|
+
classNames == null ? void 0 : classNames.bubbleAvatarTitleClassName,
|
|
238
|
+
hashId,
|
|
239
|
+
{
|
|
240
|
+
[`${prefixClass}-bubble-avatar-title-compact`]: compact
|
|
241
|
+
}
|
|
242
|
+
)
|
|
243
|
+
},
|
|
244
|
+
isRightPlacement ? titleDom : avatarDom,
|
|
245
|
+
isRightPlacement ? avatarDom : titleDom
|
|
246
|
+
),
|
|
247
|
+
/* @__PURE__ */ React.createElement(
|
|
248
|
+
"div",
|
|
249
|
+
{
|
|
250
|
+
style: __spreadValues({
|
|
251
|
+
display: "flex",
|
|
252
|
+
gap: 4,
|
|
253
|
+
flexDirection: "column",
|
|
254
|
+
alignItems: isRightPlacement ? "flex-end" : "flex-start"
|
|
255
|
+
}, styles == null ? void 0 : styles.bubbleListItemContentStyle),
|
|
256
|
+
className: cx(
|
|
257
|
+
`${prefixClass}-bubble-content-wrapper`,
|
|
258
|
+
hashId,
|
|
259
|
+
classNames == null ? void 0 : classNames.bubbleContainerClassName
|
|
260
|
+
),
|
|
261
|
+
"data-testid": "chat-message"
|
|
262
|
+
},
|
|
263
|
+
contentBeforeDom ? /* @__PURE__ */ React.createElement(
|
|
264
|
+
"div",
|
|
265
|
+
{
|
|
266
|
+
style: styles == null ? void 0 : styles.bubbleListItemExtraStyle,
|
|
267
|
+
className: cx(
|
|
268
|
+
`${prefixClass}-bubble-before`,
|
|
269
|
+
`${prefixClass}-bubble-before-${placement}`,
|
|
270
|
+
hashId
|
|
271
|
+
),
|
|
272
|
+
"data-testid": "message-before"
|
|
273
|
+
},
|
|
274
|
+
contentBeforeDom
|
|
275
|
+
) : null,
|
|
276
|
+
/* @__PURE__ */ React.createElement(
|
|
277
|
+
"div",
|
|
278
|
+
{
|
|
279
|
+
className: cx(
|
|
280
|
+
`${prefixClass}-bubble-content`,
|
|
281
|
+
`${prefixClass}-bubble-content-${placement}`,
|
|
282
|
+
`${prefixClass}-bubble-content-pure`,
|
|
283
|
+
classNames == null ? void 0 : classNames.bubbleListItemContentClassName,
|
|
284
|
+
hashId
|
|
285
|
+
),
|
|
286
|
+
onDoubleClick: props.onDoubleClick,
|
|
287
|
+
"data-testid": "message-content"
|
|
288
|
+
},
|
|
289
|
+
messageContent
|
|
290
|
+
),
|
|
291
|
+
contentAfterDom
|
|
292
|
+
)
|
|
293
|
+
)
|
|
294
|
+
)
|
|
295
|
+
)
|
|
296
|
+
);
|
|
297
|
+
if ((bubbleRenderConfig == null ? void 0 : bubbleRenderConfig.render) === false)
|
|
298
|
+
return null;
|
|
299
|
+
return /* @__PURE__ */ React.createElement(
|
|
300
|
+
MessagesContext.Provider,
|
|
301
|
+
{
|
|
302
|
+
value: {
|
|
303
|
+
message: props.originData,
|
|
304
|
+
hidePadding,
|
|
305
|
+
setHidePadding,
|
|
306
|
+
setMessage: (message) => {
|
|
307
|
+
var _a2, _b2, _c2;
|
|
308
|
+
(_c2 = (_b2 = (_a2 = props == null ? void 0 : props.bubbleRef) == null ? void 0 : _a2.current) == null ? void 0 : _b2.setMessageItem) == null ? void 0 : _c2.call(
|
|
309
|
+
_b2,
|
|
310
|
+
props.id,
|
|
311
|
+
message
|
|
312
|
+
);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
/* @__PURE__ */ React.createElement(React.Fragment, null, ((_f = bubbleRenderConfig == null ? void 0 : bubbleRenderConfig.render) == null ? void 0 : _f.call(
|
|
317
|
+
bubbleRenderConfig,
|
|
318
|
+
props,
|
|
319
|
+
{
|
|
320
|
+
avatar: avatarDom,
|
|
321
|
+
title: titleDom,
|
|
322
|
+
header: /* @__PURE__ */ React.createElement(
|
|
323
|
+
"div",
|
|
324
|
+
{
|
|
325
|
+
className: cx(
|
|
326
|
+
`${prefixClass}-bubble-avatar-title`,
|
|
327
|
+
`${prefixClass}-bubble-avatar-title-${placement}`,
|
|
328
|
+
`${prefixClass}-bubble-avatar-title-pure`,
|
|
329
|
+
classNames == null ? void 0 : classNames.bubbleAvatarTitleClassName,
|
|
330
|
+
hashId
|
|
331
|
+
)
|
|
332
|
+
},
|
|
333
|
+
isRightPlacement ? titleDom : avatarDom,
|
|
334
|
+
isRightPlacement ? avatarDom : titleDom
|
|
335
|
+
),
|
|
336
|
+
extra: extraDom,
|
|
337
|
+
messageContent,
|
|
338
|
+
itemDom
|
|
339
|
+
},
|
|
340
|
+
itemDom
|
|
341
|
+
)) || itemDom)
|
|
342
|
+
);
|
|
343
|
+
});
|
|
344
|
+
var PureAIBubble = memo((props) => /* @__PURE__ */ React.createElement(PureBubble, __spreadProps(__spreadValues({}, props), { placement: "left" })));
|
|
345
|
+
var PureUserBubble = memo((props) => /* @__PURE__ */ React.createElement(PureBubble, __spreadProps(__spreadValues({}, props), { placement: "right" })));
|
|
346
|
+
export {
|
|
347
|
+
PureAIBubble,
|
|
348
|
+
PureBubble,
|
|
349
|
+
PureUserBubble
|
|
350
|
+
};
|
package/dist/Bubble/index.d.ts
CHANGED
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
export { AIBubble, runRender } from './AIBubble';
|
|
8
8
|
export { Bubble } from './Bubble';
|
|
9
9
|
export * from './BubbleConfigProvide';
|
|
10
|
+
export { PureBubbleList } from './List/PureBubbleList';
|
|
11
|
+
export { PureAIBubble, PureBubble, PureUserBubble } from './PureBubble';
|
|
10
12
|
export * from './MessagesContent/BubbleContext';
|
|
11
13
|
export * from './type';
|
|
12
14
|
export { UserBubble } from './UserBubble';
|
package/dist/Bubble/index.js
CHANGED
|
@@ -2,12 +2,18 @@
|
|
|
2
2
|
import { AIBubble, runRender } from "./AIBubble";
|
|
3
3
|
import { Bubble } from "./Bubble";
|
|
4
4
|
export * from "./BubbleConfigProvide";
|
|
5
|
+
import { PureBubbleList } from "./List/PureBubbleList";
|
|
6
|
+
import { PureAIBubble, PureBubble, PureUserBubble } from "./PureBubble";
|
|
5
7
|
export * from "./MessagesContent/BubbleContext";
|
|
6
8
|
export * from "./type";
|
|
7
9
|
import { UserBubble } from "./UserBubble";
|
|
8
10
|
export {
|
|
9
11
|
AIBubble,
|
|
10
12
|
Bubble,
|
|
13
|
+
PureAIBubble,
|
|
14
|
+
PureBubble,
|
|
15
|
+
PureBubbleList,
|
|
16
|
+
PureUserBubble,
|
|
11
17
|
UserBubble,
|
|
12
18
|
runRender
|
|
13
19
|
};
|
|
@@ -171,8 +171,12 @@ var BaseMarkdownEditor = (props) => {
|
|
|
171
171
|
};
|
|
172
172
|
}, []);
|
|
173
173
|
const store = useMemo(
|
|
174
|
-
() => new EditorStore(
|
|
175
|
-
|
|
174
|
+
() => new EditorStore(
|
|
175
|
+
markdownEditorRef,
|
|
176
|
+
props.plugins,
|
|
177
|
+
props.markdownToHtmlOptions
|
|
178
|
+
),
|
|
179
|
+
[props.plugins, props.markdownToHtmlOptions]
|
|
176
180
|
);
|
|
177
181
|
const initSchemaValue = useMemo(() => {
|
|
178
182
|
var _a2;
|
|
@@ -8,6 +8,7 @@ import { FootnoteDefinitionNode } from '../el';
|
|
|
8
8
|
import type { MarkdownEditorPlugin } from '../plugin';
|
|
9
9
|
import { CommentDataType, MarkdownEditorProps } from '../types';
|
|
10
10
|
import { KeyboardTask, Methods } from './utils';
|
|
11
|
+
import type { MarkdownToHtmlOptions } from './utils/markdownToHtml';
|
|
11
12
|
/**
|
|
12
13
|
* 编辑器上下文接口
|
|
13
14
|
*
|
|
@@ -88,13 +89,14 @@ export declare class EditorStore {
|
|
|
88
89
|
_editor: React.MutableRefObject<BaseEditor & ReactEditor & HistoryEditor>;
|
|
89
90
|
/** 当前 setMDContent 操作的 AbortController */
|
|
90
91
|
private _currentAbortController;
|
|
92
|
+
private markdownToHtmlOptions?;
|
|
91
93
|
/**
|
|
92
94
|
* 获取当前编辑器实例。
|
|
93
95
|
*
|
|
94
96
|
* @returns 当前的 Slate 编辑器实例。
|
|
95
97
|
*/
|
|
96
98
|
get editor(): BaseEditor & ReactEditor & HistoryEditor;
|
|
97
|
-
constructor(_editor: React.MutableRefObject<BaseEditor & ReactEditor & HistoryEditor>, plugins?: MarkdownEditorPlugin[]);
|
|
99
|
+
constructor(_editor: React.MutableRefObject<BaseEditor & ReactEditor & HistoryEditor>, plugins?: MarkdownEditorPlugin[], markdownToHtmlOptions?: MarkdownToHtmlOptions);
|
|
98
100
|
/**
|
|
99
101
|
* 聚焦到编辑器
|
|
100
102
|
*/
|
|
@@ -240,7 +242,7 @@ export declare class EditorStore {
|
|
|
240
242
|
*
|
|
241
243
|
* @returns 转换为 HTML 的当前编辑器内容
|
|
242
244
|
*/
|
|
243
|
-
getHtmlContent(): string;
|
|
245
|
+
getHtmlContent(options?: MarkdownToHtmlOptions): string;
|
|
244
246
|
/**
|
|
245
247
|
* 使用节点列表设置编辑器内容
|
|
246
248
|
*
|
|
@@ -52,7 +52,7 @@ var useEditorStore = () => {
|
|
|
52
52
|
};
|
|
53
53
|
var SUPPORT_TYPING_TAG = ["table-cell", "paragraph", "head"];
|
|
54
54
|
var EditorStore = class {
|
|
55
|
-
constructor(_editor, plugins) {
|
|
55
|
+
constructor(_editor, plugins, markdownToHtmlOptions) {
|
|
56
56
|
/** 高亮缓存映射表 */
|
|
57
57
|
this.highlightCache = /* @__PURE__ */ new Map();
|
|
58
58
|
/** 允许进入的元素类型集合 */
|
|
@@ -83,6 +83,7 @@ var EditorStore = class {
|
|
|
83
83
|
this.dragStart = this.dragStart.bind(this);
|
|
84
84
|
this._editor = _editor;
|
|
85
85
|
this.plugins = plugins;
|
|
86
|
+
this.markdownToHtmlOptions = markdownToHtmlOptions;
|
|
86
87
|
}
|
|
87
88
|
/**
|
|
88
89
|
* 获取当前编辑器实例。
|
|
@@ -629,9 +630,13 @@ var EditorStore = class {
|
|
|
629
630
|
*
|
|
630
631
|
* @returns 转换为 HTML 的当前编辑器内容
|
|
631
632
|
*/
|
|
632
|
-
getHtmlContent() {
|
|
633
|
+
getHtmlContent(options) {
|
|
633
634
|
const markdown = this.getMDContent();
|
|
634
|
-
|
|
635
|
+
const appliedOptions = options != null ? options : this.markdownToHtmlOptions;
|
|
636
|
+
if (options) {
|
|
637
|
+
this.markdownToHtmlOptions = options;
|
|
638
|
+
}
|
|
639
|
+
return markdownToHtmlSync(markdown, appliedOptions);
|
|
635
640
|
}
|
|
636
641
|
/**
|
|
637
642
|
* 使用节点列表设置编辑器内容
|