@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
|
@@ -164,7 +164,7 @@ export * from "./editor/utils";
|
|
|
164
164
|
export * from "./el";
|
|
165
165
|
export * from "./types";
|
|
166
166
|
// 组合器函数
|
|
167
|
-
var composeEditors = function(editor, plugins) {
|
|
167
|
+
var composeEditors = function composeEditors(editor, plugins) {
|
|
168
168
|
if (plugins.length > 1) {
|
|
169
169
|
return plugins.reduce(function(acc, plugin) {
|
|
170
170
|
return plugin.withEditor ? plugin.withEditor(acc) : acc;
|
|
@@ -221,7 +221,7 @@ var composeEditors = function(editor, plugins) {
|
|
|
221
221
|
* - 支持错误捕获
|
|
222
222
|
* - 支持键盘事件处理
|
|
223
223
|
* - 提供Markdown解析和渲染
|
|
224
|
-
*/ export var BaseMarkdownEditor = function(props) {
|
|
224
|
+
*/ export var BaseMarkdownEditor = function BaseMarkdownEditor(props) {
|
|
225
225
|
var _props_typewriter, _props_readonly;
|
|
226
226
|
var _props_floatBar, _props_floatBar1, _props_textAreaProps;
|
|
227
227
|
var initValue = props.initValue, width = props.width, _props_toolBar = props.toolBar, toolBar = _props_toolBar === void 0 ? {} : _props_toolBar, editorRef = props.editorRef, _props_toc = props.toc, toc = _props_toc === void 0 ? false : _props_toc, readonly = props.readonly, lazy = props.lazy, style = props.style, _props_contentStyle = props.contentStyle, contentStyle = _props_contentStyle === void 0 ? {
|
|
@@ -258,7 +258,7 @@ var composeEditors = function(editor, plugins) {
|
|
|
258
258
|
useEffect(function() {
|
|
259
259
|
if (!(rest === null || rest === void 0 ? void 0 : rest.onBlur)) return;
|
|
260
260
|
if (readonly) return;
|
|
261
|
-
var handleClickOutside = function(event) {
|
|
261
|
+
var handleClickOutside = function handleClickOutside(event) {
|
|
262
262
|
if (isEditorFocused && markdownContainerRef.current && !markdownContainerRef.current.contains(event.target)) {
|
|
263
263
|
var _markdownEditorRef_current, _markdownEditorRef_current1, _rest_onBlur;
|
|
264
264
|
EditorUtils.blur(markdownEditorRef.current);
|
|
@@ -279,7 +279,7 @@ var composeEditors = function(editor, plugins) {
|
|
|
279
279
|
// 监听编辑器焦点
|
|
280
280
|
useEffect(function() {
|
|
281
281
|
var _markdownContainerRef_current;
|
|
282
|
-
var handleEditorFocus = function() {
|
|
282
|
+
var handleEditorFocus = function handleEditorFocus() {
|
|
283
283
|
var _markdownContainerRef_current;
|
|
284
284
|
if (((_markdownContainerRef_current = markdownContainerRef.current) === null || _markdownContainerRef_current === void 0 ? void 0 : _markdownContainerRef_current.contains(document.activeElement)) || markdownContainerRef.current === document.activeElement) {
|
|
285
285
|
setIsEditorFocused(true);
|
|
@@ -330,7 +330,7 @@ var composeEditors = function(editor, plugins) {
|
|
|
330
330
|
store: store,
|
|
331
331
|
markdownContainerRef: markdownContainerRef,
|
|
332
332
|
markdownEditorRef: markdownEditorRef,
|
|
333
|
-
exportHtml: function(filename) {
|
|
333
|
+
exportHtml: function exportHtml1(filename) {
|
|
334
334
|
var htmlContent = store.getHtmlContent();
|
|
335
335
|
exportHtml(htmlContent, filename);
|
|
336
336
|
}
|
|
@@ -412,7 +412,7 @@ var composeEditors = function(editor, plugins) {
|
|
|
412
412
|
'--content-padding': "".concat(typeof contentStyle.padding === 'number' ? "".concat(contentStyle.padding, "px") : contentStyle.padding),
|
|
413
413
|
padding: contentStyle.padding
|
|
414
414
|
} : {}, contentStyle),
|
|
415
|
-
ref: function(dom) {
|
|
415
|
+
ref: function ref(dom) {
|
|
416
416
|
markdownContainerRef.current = dom;
|
|
417
417
|
setMountedStatus(true);
|
|
418
418
|
},
|
|
@@ -421,7 +421,7 @@ var composeEditors = function(editor, plugins) {
|
|
|
421
421
|
prefixCls: baseClassName
|
|
422
422
|
}, rest), {
|
|
423
423
|
lazy: lazy,
|
|
424
|
-
onChange: function(value, schema) {
|
|
424
|
+
onChange: function onChange(value, schema) {
|
|
425
425
|
var _rest_onChange;
|
|
426
426
|
setSchema(schema);
|
|
427
427
|
rest === null || rest === void 0 ? void 0 : (_rest_onChange = rest.onChange) === null || _rest_onChange === void 0 ? void 0 : _rest_onChange.call(rest, value, schema);
|
|
@@ -273,7 +273,7 @@ var defaultAllowedTypes = [
|
|
|
273
273
|
* @param config - 配置对象
|
|
274
274
|
* @param config.minColumn - 最小列数
|
|
275
275
|
* @param config.minRows - 最小行数
|
|
276
|
-
*/ var genTableMinSize = function(elements, config) {
|
|
276
|
+
*/ var genTableMinSize = function genTableMinSize1(elements, config) {
|
|
277
277
|
if (!config) return elements;
|
|
278
278
|
elements.forEach(function(element) {
|
|
279
279
|
if (element.children) {
|
|
@@ -322,7 +322,7 @@ var defaultAllowedTypes = [
|
|
|
322
322
|
* - 提供粘贴处理
|
|
323
323
|
* - 支持错误边界
|
|
324
324
|
* - 响应式布局
|
|
325
|
-
*/ export var SlateMarkdownEditor = function(props) {
|
|
325
|
+
*/ export var SlateMarkdownEditor = function SlateMarkdownEditor(props) {
|
|
326
326
|
var _markdownEditorRef_current, _props_textAreaProps, _props_comment, _markdownEditorRef_current1;
|
|
327
327
|
// 所有hooks必须在组件顶部按固定顺序调用
|
|
328
328
|
var _useEditorStore = useEditorStore(), store = _useEditorStore.store, markdownEditorRef = _useEditorStore.markdownEditorRef, markdownContainerRef = _useEditorStore.markdownContainerRef, readonly = _useEditorStore.readonly, setDomRect = _useEditorStore.setDomRect;
|
|
@@ -333,7 +333,7 @@ var defaultAllowedTypes = [
|
|
|
333
333
|
// 计算懒加载元素总数的函数
|
|
334
334
|
var countLazyElements = useRefFunction(function(nodes) {
|
|
335
335
|
var count = 0;
|
|
336
|
-
var traverse = function(nodeList) {
|
|
336
|
+
var traverse = function traverse1(nodeList) {
|
|
337
337
|
nodeList.forEach(function(node) {
|
|
338
338
|
// 跳过表格单元格和表格行
|
|
339
339
|
if (node.type !== 'table-cell' && node.type !== 'table-row') {
|
|
@@ -426,7 +426,7 @@ var defaultAllowedTypes = [
|
|
|
426
426
|
}
|
|
427
427
|
currentSelection = markdownEditorRef.current.selection;
|
|
428
428
|
// 获取选中内容的 markdown 和节点
|
|
429
|
-
getSelectionContent = function(selection) {
|
|
429
|
+
getSelectionContent = function getSelectionContent(selection) {
|
|
430
430
|
if (!selection || Range.isCollapsed(selection)) {
|
|
431
431
|
return {
|
|
432
432
|
markdown: '',
|
|
@@ -531,7 +531,7 @@ var defaultAllowedTypes = [
|
|
|
531
531
|
useEffect(function() {
|
|
532
532
|
var container = markdownContainerRef === null || markdownContainerRef === void 0 ? void 0 : markdownContainerRef.current;
|
|
533
533
|
if (!container) return;
|
|
534
|
-
var handleMouseUp = function(e) {
|
|
534
|
+
var handleMouseUp = function handleMouseUp(e) {
|
|
535
535
|
e.preventDefault();
|
|
536
536
|
handleSelectionChange.run();
|
|
537
537
|
};
|
|
@@ -703,7 +703,7 @@ var defaultAllowedTypes = [
|
|
|
703
703
|
});
|
|
704
704
|
/**
|
|
705
705
|
* 初始化编辑器
|
|
706
|
-
*/ var initialNote = function() {
|
|
706
|
+
*/ var initialNote = function initialNote() {
|
|
707
707
|
return _async_to_generator(function() {
|
|
708
708
|
var tableConfig, _props_initSchemaValue;
|
|
709
709
|
return _ts_generator(this, function(_state) {
|
|
@@ -742,7 +742,7 @@ var defaultAllowedTypes = [
|
|
|
742
742
|
* 处理粘贴事件,会把粘贴的内容转换为对应的节点
|
|
743
743
|
* @description paste event
|
|
744
744
|
* @param {React.ClipboardEvent<HTMLDivElement>} e
|
|
745
|
-
*/ var onPaste = function(event) {
|
|
745
|
+
*/ var onPaste = function onPaste(event) {
|
|
746
746
|
return _async_to_generator(function() {
|
|
747
747
|
return _ts_generator(this, function(_state) {
|
|
748
748
|
switch(_state.label){
|
|
@@ -762,7 +762,7 @@ var defaultAllowedTypes = [
|
|
|
762
762
|
};
|
|
763
763
|
/**
|
|
764
764
|
* 实际的粘贴处理逻辑
|
|
765
|
-
*/ var handlePasteEvent = function(event) {
|
|
765
|
+
*/ var handlePasteEvent = function handlePasteEvent(event) {
|
|
766
766
|
return _async_to_generator(function() {
|
|
767
767
|
var _props_onPaste, _event_clipboardData, pasteConfig, currentTextSelection, nodeList, curNode, result, types, allowedTypes, result1, _event_clipboardData_getData, _event_clipboardData_getData1, _event_clipboardData1, text, _event_clipboardData_getData2, _event_clipboardData_getData3, _event_clipboardData2, text1, selection, e;
|
|
768
768
|
return _ts_generator(this, function(_state) {
|
|
@@ -927,7 +927,7 @@ var defaultAllowedTypes = [
|
|
|
927
927
|
};
|
|
928
928
|
/**
|
|
929
929
|
* 处理输入法开始事件
|
|
930
|
-
*/ var onCompositionStart = function(e) {
|
|
930
|
+
*/ var onCompositionStart = function onCompositionStart(e) {
|
|
931
931
|
var _markdownEditorRef_current_selection;
|
|
932
932
|
if (markdownContainerRef.current) {
|
|
933
933
|
markdownContainerRef.current.setAttribute('data-composition', '');
|
|
@@ -953,7 +953,7 @@ var defaultAllowedTypes = [
|
|
|
953
953
|
};
|
|
954
954
|
/**
|
|
955
955
|
* 处理输入法结束事件
|
|
956
|
-
*/ var onCompositionEnd = function() {
|
|
956
|
+
*/ var onCompositionEnd = function onCompositionEnd() {
|
|
957
957
|
var _markdownEditorRef_current_selection;
|
|
958
958
|
store.inputComposition = false;
|
|
959
959
|
if (markdownContainerRef.current) {
|
|
@@ -986,7 +986,7 @@ var defaultAllowedTypes = [
|
|
|
986
986
|
});
|
|
987
987
|
}
|
|
988
988
|
var defaultDom = /*#__PURE__*/ React.createElement(ErrorBoundary, {
|
|
989
|
-
fallbackRender: function() {
|
|
989
|
+
fallbackRender: function fallbackRender() {
|
|
990
990
|
return null;
|
|
991
991
|
}
|
|
992
992
|
}, /*#__PURE__*/ React.createElement(MElement, _object_spread_props(_object_spread({}, eleProps), {
|
|
@@ -1069,7 +1069,7 @@ var defaultAllowedTypes = [
|
|
|
1069
1069
|
tagInputProps: props.tagInputProps
|
|
1070
1070
|
}), defaultDom);
|
|
1071
1071
|
});
|
|
1072
|
-
var decorateFn = function(e) {
|
|
1072
|
+
var decorateFn = function decorateFn(e) {
|
|
1073
1073
|
var _props_comment;
|
|
1074
1074
|
// 始终运行 useHighlight,以支持 fnc(脚注)、链接等基础展示
|
|
1075
1075
|
var decorateList = high(e) || [];
|
|
@@ -1187,7 +1187,7 @@ var defaultAllowedTypes = [
|
|
|
1187
1187
|
onChange: onSlateChange
|
|
1188
1188
|
}, /*#__PURE__*/ React.createElement(Editable, {
|
|
1189
1189
|
decorate: decorateFn,
|
|
1190
|
-
onDragOver: function(e) {
|
|
1190
|
+
onDragOver: function onDragOver(e) {
|
|
1191
1191
|
return e.preventDefault();
|
|
1192
1192
|
},
|
|
1193
1193
|
readOnly: readonly,
|
|
@@ -1199,27 +1199,27 @@ var defaultAllowedTypes = [
|
|
|
1199
1199
|
className: classNames(props.className, baseClassName, (_obj = {}, _define_property(_obj, "".concat(baseClassName, "-").concat(readonlyCls), readonlyCls), _define_property(_obj, "".concat(baseClassName, "-report"), props.reportMode), _define_property(_obj, "".concat(baseClassName, "-edit"), !readonly), _define_property(_obj, "".concat(baseClassName, "-compact"), props.compact), _obj), hashId),
|
|
1200
1200
|
style: props.style,
|
|
1201
1201
|
onSelect: handleSelectionChange.run,
|
|
1202
|
-
onCut: function(event) {
|
|
1202
|
+
onCut: function onCut(event) {
|
|
1203
1203
|
var handled = handleClipboardCopy(event, 'cut');
|
|
1204
1204
|
if (!handled) {
|
|
1205
1205
|
event.preventDefault();
|
|
1206
1206
|
}
|
|
1207
1207
|
},
|
|
1208
|
-
onFocus: function(e) {
|
|
1208
|
+
onFocus: function onFocus(e) {
|
|
1209
1209
|
var _props_onFocus;
|
|
1210
1210
|
(_props_onFocus = props.onFocus) === null || _props_onFocus === void 0 ? void 0 : _props_onFocus.call(props, parserSlateNodeToMarkdown(markdownEditorRef.current.children), markdownEditorRef.current.children, e);
|
|
1211
1211
|
},
|
|
1212
|
-
onBlur: function() {
|
|
1212
|
+
onBlur: function onBlur() {
|
|
1213
1213
|
// 失去焦点时清除工具栏
|
|
1214
1214
|
setDomRect === null || setDomRect === void 0 ? void 0 : setDomRect(null);
|
|
1215
1215
|
},
|
|
1216
1216
|
onMouseDown: checkEnd,
|
|
1217
|
-
onPaste: function(event) {
|
|
1217
|
+
onPaste: function onPaste1(event) {
|
|
1218
1218
|
event.preventDefault();
|
|
1219
1219
|
event.stopPropagation();
|
|
1220
1220
|
onPaste(event);
|
|
1221
1221
|
},
|
|
1222
|
-
onCopy: function(event) {
|
|
1222
|
+
onCopy: function onCopy(event) {
|
|
1223
1223
|
var handled = handleClipboardCopy(event, 'copy');
|
|
1224
1224
|
if (!handled) {
|
|
1225
1225
|
event.preventDefault();
|
|
@@ -213,7 +213,7 @@ import { useStyle } from "./style";
|
|
|
213
213
|
* - 显示评论时间戳
|
|
214
214
|
* - 响应式布局设计
|
|
215
215
|
* - 支持自定义样式和类名
|
|
216
|
-
*/ export var CommentList = function(props) {
|
|
216
|
+
*/ export var CommentList = function CommentList(props) {
|
|
217
217
|
var _props_commentList, _props_commentList1;
|
|
218
218
|
var markdownEditorRef = useEditorStore().markdownEditorRef;
|
|
219
219
|
var context = useContext(ConfigProvider.ConfigContext);
|
|
@@ -247,7 +247,7 @@ import { useStyle } from "./style";
|
|
|
247
247
|
cursor: 'pointer'
|
|
248
248
|
}
|
|
249
249
|
}, "划词评论 (", (_props_commentList = props.commentList) === null || _props_commentList === void 0 ? void 0 : _props_commentList.length, ")", /*#__PURE__*/ React.createElement(CloseOutlined, {
|
|
250
|
-
onClick: function() {
|
|
250
|
+
onClick: function onClick() {
|
|
251
251
|
setShowComment === null || setShowComment === void 0 ? void 0 : setShowComment([]);
|
|
252
252
|
}
|
|
253
253
|
})), /*#__PURE__*/ React.createElement(motion.div, {
|
|
@@ -267,7 +267,7 @@ import { useStyle } from "./style";
|
|
|
267
267
|
scale: 1.04
|
|
268
268
|
},
|
|
269
269
|
variants: itemVariants,
|
|
270
|
-
onClick: function(e) {
|
|
270
|
+
onClick: function onClick(e) {
|
|
271
271
|
return _async_to_generator(function() {
|
|
272
272
|
var _props_comment_onClick, _props_comment;
|
|
273
273
|
return _ts_generator(this, function(_state) {
|
|
@@ -307,7 +307,7 @@ import { useStyle } from "./style";
|
|
|
307
307
|
className: classNames("".concat(baseCls, "-item-header-action"), hashId)
|
|
308
308
|
}, ((_props_comment = props.comment) === null || _props_comment === void 0 ? void 0 : _props_comment.onDelete) ? /*#__PURE__*/ React.createElement(Popconfirm, {
|
|
309
309
|
title: ((_props_comment1 = props.comment) === null || _props_comment1 === void 0 ? void 0 : _props_comment1.deleteConfirmText) || 'Are you sure to delete this comment?',
|
|
310
|
-
onConfirm: function(e) {
|
|
310
|
+
onConfirm: function onConfirm(e) {
|
|
311
311
|
return _async_to_generator(function() {
|
|
312
312
|
var _props_comment_onDelete, _props_comment, error;
|
|
313
313
|
return _ts_generator(this, function(_state) {
|
|
@@ -361,7 +361,7 @@ import { useStyle } from "./style";
|
|
|
361
361
|
title: "编辑评论"
|
|
362
362
|
}, /*#__PURE__*/ React.createElement("span", {
|
|
363
363
|
className: classNames("".concat(baseCls, "-item-header-action-item"), hashId),
|
|
364
|
-
onClick: function(e) {
|
|
364
|
+
onClick: function onClick(e) {
|
|
365
365
|
return _async_to_generator(function() {
|
|
366
366
|
var _props_comment_onEdit, _props_comment;
|
|
367
367
|
return _ts_generator(this, function(_state) {
|
|
@@ -386,7 +386,7 @@ import { useStyle } from "./style";
|
|
|
386
386
|
title: "跳转到评论位置"
|
|
387
387
|
}, /*#__PURE__*/ React.createElement("span", {
|
|
388
388
|
className: classNames("".concat(baseCls, "-item-header-action-item"), hashId),
|
|
389
|
-
onClick: function(e) {
|
|
389
|
+
onClick: function onClick(e) {
|
|
390
390
|
return _async_to_generator(function() {
|
|
391
391
|
var _props_comment_onClick, _props_comment, element;
|
|
392
392
|
return _ts_generator(this, function(_state) {
|
|
@@ -51,7 +51,7 @@ function _object_spread_props(target, source) {
|
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
53
|
import { useEditorStyleRegister } from "../../../../Hooks/useStyle";
|
|
54
|
-
var genStyle = function(token) {
|
|
54
|
+
var genStyle = function genStyle(token) {
|
|
55
55
|
return _define_property({}, token.componentCls, {
|
|
56
56
|
display: 'flex',
|
|
57
57
|
flexDirection: 'column',
|
|
@@ -38,7 +38,7 @@ var COLOR_LIST = [
|
|
|
38
38
|
'#f44336',
|
|
39
39
|
'#87d068'
|
|
40
40
|
];
|
|
41
|
-
export var ContributorAvatar = function(props) {
|
|
41
|
+
export var ContributorAvatar = function ContributorAvatar(props) {
|
|
42
42
|
var tmp = props.item, name = (tmp === void 0 ? {} : tmp).name, _props_index = props.index, index = _props_index === void 0 ? 0 : _props_index;
|
|
43
43
|
return /*#__PURE__*/ React.createElement(Tooltip, {
|
|
44
44
|
title: name
|
|
@@ -53,7 +53,7 @@ export var ContributorAvatar = function(props) {
|
|
|
53
53
|
}
|
|
54
54
|
}, name === null || name === void 0 ? void 0 : name.slice(0, 2))));
|
|
55
55
|
};
|
|
56
|
-
export var AvatarList = function(param) {
|
|
56
|
+
export var AvatarList = function AvatarList(param) {
|
|
57
57
|
var displayList = param.displayList, style = param.style;
|
|
58
58
|
var context = React.useContext(ConfigProvider.ConfigContext);
|
|
59
59
|
var baseCls = context === null || context === void 0 ? void 0 : context.getPrefixCls('agentic-contributor-avatar-list');
|
|
@@ -51,7 +51,7 @@ function _object_spread_props(target, source) {
|
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
53
|
import { useEditorStyleRegister } from "../../../../Hooks/useStyle";
|
|
54
|
-
var genStyle = function(token) {
|
|
54
|
+
var genStyle = function genStyle(token) {
|
|
55
55
|
return _define_property({}, token.componentCls, {
|
|
56
56
|
display: 'flex',
|
|
57
57
|
alignItems: 'center',
|
|
@@ -116,7 +116,7 @@ import React, { useEffect, useRef, useState } from "react";
|
|
|
116
116
|
* - 元素一旦被渲染后将保持渲染状态(不会卸载)
|
|
117
117
|
* - 提供 rootMargin 参数可以提前加载元素
|
|
118
118
|
* - 占位符保持与内容相同的高度以避免布局抖动
|
|
119
|
-
*/ export var LazyElement = function(param) {
|
|
119
|
+
*/ export var LazyElement = function LazyElement(param) {
|
|
120
120
|
var children = param.children, _param_placeholderHeight = param.placeholderHeight, placeholderHeight = _param_placeholderHeight === void 0 ? 25 : _param_placeholderHeight, _param_rootMargin = param.rootMargin, rootMargin = _param_rootMargin === void 0 ? '200px' : _param_rootMargin, placeholderStyle = param.placeholderStyle, renderPlaceholder = param.renderPlaceholder, elementInfo = param.elementInfo;
|
|
121
121
|
var containerRef = useRef(null);
|
|
122
122
|
var _useState = _sliced_to_array(useState(false), 2), isVisible = _useState[0], setIsVisible = _useState[1];
|
|
@@ -53,7 +53,7 @@ function _object_spread_props(target, source) {
|
|
|
53
53
|
import { resetComponent, useEditorStyleRegister } from "../../../../Hooks/useStyle";
|
|
54
54
|
/**
|
|
55
55
|
* LazyElement 样式生成器
|
|
56
|
-
*/ var genLazyElementStyle = function(token) {
|
|
56
|
+
*/ var genLazyElementStyle = function genLazyElementStyle(token) {
|
|
57
57
|
return _define_property({}, "".concat(token.componentCls), {
|
|
58
58
|
position: 'relative',
|
|
59
59
|
width: '100%'
|
|
@@ -61,7 +61,7 @@ import { resetComponent, useEditorStyleRegister } from "../../../../Hooks/useSty
|
|
|
61
61
|
};
|
|
62
62
|
/**
|
|
63
63
|
* LazyElement 组件样式 Hook
|
|
64
|
-
*/ export var useStyle = function(prefixCls) {
|
|
64
|
+
*/ export var useStyle = function useStyle(prefixCls) {
|
|
65
65
|
return useEditorStyleRegister('LazyElement', function(token) {
|
|
66
66
|
var componentToken = _object_spread_props(_object_spread({}, token), {
|
|
67
67
|
componentCls: ".".concat(prefixCls)
|
|
@@ -46,10 +46,10 @@ import { useEditorStore } from "../store";
|
|
|
46
46
|
* displayText="图片链接"
|
|
47
47
|
* />
|
|
48
48
|
* ```
|
|
49
|
-
*/ var MediaErrorLinkComponent = function(param) {
|
|
49
|
+
*/ var MediaErrorLinkComponent = function MediaErrorLinkComponent(param) {
|
|
50
50
|
var url = param.url, fallbackUrl = param.fallbackUrl, displayText = param.displayText, style = param.style;
|
|
51
51
|
var editorProps = useEditorStore().editorProps;
|
|
52
|
-
var handleClick = function(e) {
|
|
52
|
+
var handleClick = function handleClick(e) {
|
|
53
53
|
var _editorProps_linkConfig, _editorProps_linkConfig1;
|
|
54
54
|
var finalUrl = url || fallbackUrl;
|
|
55
55
|
if (!finalUrl) return;
|
|
@@ -2,7 +2,7 @@ import { ConfigProvider } from "antd";
|
|
|
2
2
|
import classNames from "classnames";
|
|
3
3
|
import React, { useContext } from "react";
|
|
4
4
|
import { useStyle } from "./style";
|
|
5
|
-
export var TextStyleTag = function(props) {
|
|
5
|
+
export var TextStyleTag = function TextStyleTag(props) {
|
|
6
6
|
var context = useContext(ConfigProvider.ConfigContext);
|
|
7
7
|
var baseCls = context === null || context === void 0 ? void 0 : context.getPrefixCls('agentic-md-editor-text-style-tag');
|
|
8
8
|
var _useStyle = useStyle(baseCls), wrapSSR = _useStyle.wrapSSR, hashId = _useStyle.hashId;
|
|
@@ -52,7 +52,7 @@ function _object_spread_props(target, source) {
|
|
|
52
52
|
}
|
|
53
53
|
import { useEditorStyleRegister } from "../../../../Hooks/useStyle";
|
|
54
54
|
import { FNC_TAG_STYLES } from "../../tagStyles";
|
|
55
|
-
var genStyle = function(token) {
|
|
55
|
+
var genStyle = function genStyle(token) {
|
|
56
56
|
return _define_property({}, token.componentCls, _object_spread({}, FNC_TAG_STYLES));
|
|
57
57
|
};
|
|
58
58
|
/**
|
|
@@ -89,7 +89,7 @@ import { useEditorStore } from "../../store";
|
|
|
89
89
|
return /*#__PURE__*/ React.createElement("blockquote", _object_spread_props(_object_spread({
|
|
90
90
|
"data-be": 'blockquote'
|
|
91
91
|
}, props.attributes), {
|
|
92
|
-
onDragStart: function(e) {
|
|
92
|
+
onDragStart: function onDragStart(e) {
|
|
93
93
|
store.dragStart(e, markdownContainerRef.current);
|
|
94
94
|
}
|
|
95
95
|
}), props.children);
|
|
@@ -51,7 +51,7 @@ function _object_spread_props(target, source) {
|
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
53
|
import React from "react";
|
|
54
|
-
export var Break = function(param) {
|
|
54
|
+
export var Break = function Break(param) {
|
|
55
55
|
var attributes = param.attributes, children = param.children;
|
|
56
56
|
return /*#__PURE__*/ React.createElement("span", _object_spread_props(_object_spread({}, attributes), {
|
|
57
57
|
contentEditable: false
|
|
@@ -99,7 +99,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
99
99
|
import React from "react";
|
|
100
100
|
import { useSelStatus } from "../../../hooks/editor";
|
|
101
101
|
import { useEditorStore } from "../../store";
|
|
102
|
-
export var WarpCard = function(props) {
|
|
102
|
+
export var WarpCard = function WarpCard(props) {
|
|
103
103
|
var _useSelStatus = _sliced_to_array(useSelStatus(props.element), 2), selected = _useSelStatus[0], path = _useSelStatus[1];
|
|
104
104
|
var readonly = useEditorStore().readonly;
|
|
105
105
|
return React.useMemo(function() {
|
|
@@ -53,7 +53,7 @@ function _object_spread_props(target, source) {
|
|
|
53
53
|
import DOMPurify from "dompurify";
|
|
54
54
|
import React from "react";
|
|
55
55
|
import { debugInfo } from "../../../../Utils/debugUtils";
|
|
56
|
-
export var Code = function(param) {
|
|
56
|
+
export var Code = function Code(param) {
|
|
57
57
|
var attributes = param.attributes, children = param.children, element = param.element;
|
|
58
58
|
var _element_value, _element_otherProps, _element_otherProps1, _element_otherProps2, _element_otherProps3, _element_value1;
|
|
59
59
|
debugInfo('Code - 渲染代码块', {
|
|
@@ -23,7 +23,7 @@ import React, { useContext, useMemo } from "react";
|
|
|
23
23
|
*
|
|
24
24
|
* @param props - 组件属性
|
|
25
25
|
* @returns 渲染的评论视图组件
|
|
26
|
-
*/ export var CommentView = function(props) {
|
|
26
|
+
*/ export var CommentView = function CommentView(props) {
|
|
27
27
|
var _props_commentItem;
|
|
28
28
|
var setShowComment = props.setShowComment;
|
|
29
29
|
var context = useContext(ConfigProvider.ConfigContext);
|
|
@@ -51,7 +51,7 @@ import React, { useContext, useMemo } from "react";
|
|
|
51
51
|
style: {
|
|
52
52
|
position: 'relative'
|
|
53
53
|
},
|
|
54
|
-
onClick: function(e) {
|
|
54
|
+
onClick: function onClick(e) {
|
|
55
55
|
var _props_commentItem;
|
|
56
56
|
e.stopPropagation();
|
|
57
57
|
setShowComment === null || setShowComment === void 0 ? void 0 : setShowComment((_props_commentItem = props.commentItem) === null || _props_commentItem === void 0 ? void 0 : _props_commentItem.filter(function(item) {
|
|
@@ -70,7 +70,7 @@ import React, { useContext, useMemo } from "react";
|
|
|
70
70
|
*
|
|
71
71
|
* @param props - 组件属性
|
|
72
72
|
* @returns 渲染的评论创建组件
|
|
73
|
-
*/ export var CommentCreate = function(props) {
|
|
73
|
+
*/ export var CommentCreate = function CommentCreate(props) {
|
|
74
74
|
var _props_comment;
|
|
75
75
|
var dom = /*#__PURE__*/ React.createElement("div", {
|
|
76
76
|
"data-testid": "comment-create-default"
|
|
@@ -4,7 +4,7 @@ import { useEditorStore } from "../../store";
|
|
|
4
4
|
import { CommentView } from "../Comment";
|
|
5
5
|
/**
|
|
6
6
|
* 比较函数,用于优化 CommentLeaf 组件的渲染性能
|
|
7
|
-
*/ var areCommentLeafPropsEqual = function(prevProps, nextProps) {
|
|
7
|
+
*/ var areCommentLeafPropsEqual = function areCommentLeafPropsEqual(prevProps, nextProps) {
|
|
8
8
|
// 首先进行快速引用比较
|
|
9
9
|
if (prevProps.leaf === nextProps.leaf && prevProps.children === nextProps.children && prevProps.comment === nextProps.comment) {
|
|
10
10
|
return true;
|
|
@@ -27,7 +27,7 @@ import { CommentView } from "../Comment";
|
|
|
27
27
|
/**
|
|
28
28
|
* CommentLeaf 组件:专门处理 comment(评论)类型的叶子节点
|
|
29
29
|
* 这是一个包装器组件,用于包裹需要显示评论的 DOM 元素
|
|
30
|
-
*/ var CommentLeafComponent = function(param) {
|
|
30
|
+
*/ var CommentLeafComponent = function CommentLeafComponent(param) {
|
|
31
31
|
var children = param.children, leaf = param.leaf, comment = param.comment;
|
|
32
32
|
var setShowComment = useEditorStore().setShowComment;
|
|
33
33
|
// 使用 useMemo 优化计算逻辑(必须在所有条件返回之前调用)
|
|
@@ -57,7 +57,7 @@ import { isMobileDevice } from "../../../../MarkdownInputField/AttachmentButton/
|
|
|
57
57
|
import { dragStart } from "../index";
|
|
58
58
|
/**
|
|
59
59
|
* FncLeaf 组件:专门处理 fnc(函数调用)和 fnd(函数定义)类型的叶子节点
|
|
60
|
-
*/ export var FncLeaf = function(param) {
|
|
60
|
+
*/ export var FncLeaf = function FncLeaf(param) {
|
|
61
61
|
var attributes = param.attributes, children = param.children, leaf = param.leaf, fncProps = param.fncProps, linkConfig = param.linkConfig, _param_style = param.style, style = _param_style === void 0 ? {} : _param_style, _param_prefixClassName = param.prefixClassName, prefixClassName = _param_prefixClassName === void 0 ? '' : _param_prefixClassName;
|
|
62
62
|
var context = useContext(ConfigProvider.ConfigContext);
|
|
63
63
|
var mdEditorBaseClass = context === null || context === void 0 ? void 0 : context.getPrefixCls('agentic-md-editor-content');
|
|
@@ -56,7 +56,7 @@ import { Node } from "slate";
|
|
|
56
56
|
import { debugInfo } from "../../../../Utils/debugUtils";
|
|
57
57
|
import { useEditorStore } from "../../store";
|
|
58
58
|
import { DragHandle } from "../../tools/DragHandle";
|
|
59
|
-
export var FootnoteDefinition = function(props) {
|
|
59
|
+
export var FootnoteDefinition = function FootnoteDefinition(props) {
|
|
60
60
|
debugInfo('FootnoteDefinition - 渲染脚注定义', {
|
|
61
61
|
identifier: props.element.identifier,
|
|
62
62
|
url: props.element.url
|
|
@@ -88,7 +88,7 @@ export var FootnoteDefinition = function(props) {
|
|
|
88
88
|
"data-be": 'footnoteDefinition',
|
|
89
89
|
"data-drag-el": true,
|
|
90
90
|
className: !str ? 'empty' : undefined,
|
|
91
|
-
onDragStart: function(e) {
|
|
91
|
+
onDragStart: function onDragStart(e) {
|
|
92
92
|
store.dragStart(e, markdownContainerRef.current);
|
|
93
93
|
}
|
|
94
94
|
}), /*#__PURE__*/ React.createElement(DragHandle, null), element.identifier, ".", /*#__PURE__*/ React.createElement("span", {
|
|
@@ -102,7 +102,7 @@ import { debugInfo } from "../../../../Utils/debugUtils";
|
|
|
102
102
|
import { useSelStatus } from "../../../hooks/editor";
|
|
103
103
|
import { useEditorStore } from "../../store";
|
|
104
104
|
import { DragHandle } from "../../tools/DragHandle";
|
|
105
|
-
export var FootnoteReference = function(props) {
|
|
105
|
+
export var FootnoteReference = function FootnoteReference(props) {
|
|
106
106
|
debugInfo('FootnoteReference - 渲染脚注引用', {
|
|
107
107
|
identifier: props.element.identifier
|
|
108
108
|
});
|
|
@@ -120,7 +120,7 @@ export var FootnoteReference = function(props) {
|
|
|
120
120
|
"data-testid": "footnote-reference",
|
|
121
121
|
"data-drag-el": true,
|
|
122
122
|
className: !str ? 'empty' : undefined,
|
|
123
|
-
onDragStart: function(e) {
|
|
123
|
+
onDragStart: function onDragStart(e) {
|
|
124
124
|
store.dragStart(e, markdownContainerRef.current);
|
|
125
125
|
},
|
|
126
126
|
"data-empty": !str && selected ? 'true' : undefined
|
|
@@ -119,7 +119,7 @@ export function Head(param) {
|
|
|
119
119
|
var _obj;
|
|
120
120
|
return /*#__PURE__*/ createElement("h".concat(element.level), _object_spread_props(_object_spread({}, attributes), (_obj = {
|
|
121
121
|
id: slugify(str)
|
|
122
|
-
}, _define_property(_obj, 'data-be', 'head'), _define_property(_obj, 'data-head', slugify(Node.string(element) || '')), _define_property(_obj, 'data-title', (path === null || path === void 0 ? void 0 : path[0]) === 0), _define_property(_obj, "onDragStart", function(e) {
|
|
122
|
+
}, _define_property(_obj, 'data-be', 'head'), _define_property(_obj, 'data-head', slugify(Node.string(element) || '')), _define_property(_obj, 'data-title', (path === null || path === void 0 ? void 0 : path[0]) === 0), _define_property(_obj, "onDragStart", function onDragStart(e) {
|
|
123
123
|
store.dragStart(e, markdownContainerRef.current);
|
|
124
124
|
}), _define_property(_obj, 'data-empty', !str && selected ? 'true' : undefined), _define_property(_obj, 'data-align', element.align), _define_property(_obj, 'data-drag-el', true), _define_property(_obj, "style", {
|
|
125
125
|
textAlign: element.align
|
|
@@ -51,7 +51,7 @@ function _object_spread_props(target, source) {
|
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
53
|
import React from "react";
|
|
54
|
-
export var Hr = function(param) {
|
|
54
|
+
export var Hr = function Hr(param) {
|
|
55
55
|
var attributes = param.attributes, children = param.children;
|
|
56
56
|
return /*#__PURE__*/ React.createElement("div", _object_spread_props(_object_spread({}, attributes), {
|
|
57
57
|
"data-be": "hr",
|