@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
|
@@ -275,7 +275,7 @@ import { MediaErrorLink } from "../../components/MediaErrorLink";
|
|
|
275
275
|
import { useEditorStore } from "../../store";
|
|
276
276
|
import { useGetSetState } from "../../utils";
|
|
277
277
|
import { getMediaType } from "../../utils/dom";
|
|
278
|
-
export var ReadonlyImage = function(param) {
|
|
278
|
+
export var ReadonlyImage = function ReadonlyImage(param) {
|
|
279
279
|
var src = param.src, alt = param.alt, width = param.width, height = param.height, crossOrigin = param.crossOrigin;
|
|
280
280
|
var _editorProps_image;
|
|
281
281
|
var editorProps = useEditorStore().editorProps;
|
|
@@ -293,7 +293,7 @@ export var ReadonlyImage = function(param) {
|
|
|
293
293
|
width: width ? Number(width) || width : 400,
|
|
294
294
|
height: height,
|
|
295
295
|
preview: {
|
|
296
|
-
getContainer: function() {
|
|
296
|
+
getContainer: function getContainer() {
|
|
297
297
|
return document.body;
|
|
298
298
|
}
|
|
299
299
|
},
|
|
@@ -305,7 +305,7 @@ export var ReadonlyImage = function(param) {
|
|
|
305
305
|
height: 'auto',
|
|
306
306
|
display: 'block'
|
|
307
307
|
},
|
|
308
|
-
onError: function() {
|
|
308
|
+
onError: function onError() {
|
|
309
309
|
setError(true);
|
|
310
310
|
}
|
|
311
311
|
};
|
|
@@ -322,7 +322,7 @@ export var ReadonlyImage = function(param) {
|
|
|
322
322
|
* 修复图片大小的问题
|
|
323
323
|
* @param props
|
|
324
324
|
* @returns
|
|
325
|
-
*/ export var ResizeImage = function(_0) {
|
|
325
|
+
*/ export var ResizeImage = function ResizeImage(_0) {
|
|
326
326
|
var onResizeStart = _0.onResizeStart, onResizeStop = _0.onResizeStop, selected = _0.selected, defaultSize = _0.defaultSize, props = _object_without_properties(_0, [
|
|
327
327
|
"onResizeStart",
|
|
328
328
|
"onResizeStop",
|
|
@@ -388,7 +388,7 @@ export var ReadonlyImage = function(param) {
|
|
|
388
388
|
}
|
|
389
389
|
})) : null, /*#__PURE__*/ React.createElement(Rnd, {
|
|
390
390
|
onResizeStart: onResizeStart,
|
|
391
|
-
onResizeStop: function() {
|
|
391
|
+
onResizeStop: function onResizeStop1() {
|
|
392
392
|
onResizeStop === null || onResizeStop === void 0 ? void 0 : onResizeStop(size);
|
|
393
393
|
},
|
|
394
394
|
default: {
|
|
@@ -405,7 +405,7 @@ export var ReadonlyImage = function(param) {
|
|
|
405
405
|
MozUserSelect: 'none',
|
|
406
406
|
msUserSelect: 'none'
|
|
407
407
|
},
|
|
408
|
-
onResize: function(_, dir, ele) {
|
|
408
|
+
onResize: function onResize(_, dir, ele) {
|
|
409
409
|
var _imgRef_current, _imgRef_current1;
|
|
410
410
|
(_imgRef_current = imgRef.current) === null || _imgRef_current === void 0 ? void 0 : _imgRef_current.style.setProperty('width', "".concat(ele.clientWidth, "px"));
|
|
411
411
|
(_imgRef_current1 = imgRef.current) === null || _imgRef_current1 === void 0 ? void 0 : _imgRef_current1.style.setProperty('height', "".concat((ele.clientWidth || 0) / radio.current, "px"));
|
|
@@ -417,7 +417,7 @@ export var ReadonlyImage = function(param) {
|
|
|
417
417
|
}
|
|
418
418
|
}, /*#__PURE__*/ React.createElement("img", _object_spread({
|
|
419
419
|
draggable: false,
|
|
420
|
-
onLoad: function(e) {
|
|
420
|
+
onLoad: function onLoad(e) {
|
|
421
421
|
setLoading(false);
|
|
422
422
|
var width = e.target.naturalWidth;
|
|
423
423
|
var height = e.target.naturalHeight;
|
|
@@ -430,7 +430,7 @@ export var ReadonlyImage = function(param) {
|
|
|
430
430
|
height: width / radio.current
|
|
431
431
|
});
|
|
432
432
|
},
|
|
433
|
-
onError: function() {
|
|
433
|
+
onError: function onError() {
|
|
434
434
|
setError(true);
|
|
435
435
|
},
|
|
436
436
|
alt: 'image',
|
|
@@ -589,12 +589,12 @@ export function EditorImage(param) {
|
|
|
589
589
|
},
|
|
590
590
|
selected: state().selected,
|
|
591
591
|
src: (_state = state()) === null || _state === void 0 ? void 0 : _state.url,
|
|
592
|
-
onResizeStart: function() {
|
|
592
|
+
onResizeStart: function onResizeStart() {
|
|
593
593
|
setState({
|
|
594
594
|
selected: true
|
|
595
595
|
});
|
|
596
596
|
},
|
|
597
|
-
onResizeStop: function(size) {
|
|
597
|
+
onResizeStop: function onResizeStop(size) {
|
|
598
598
|
if (!(markdownEditorRef === null || markdownEditorRef === void 0 ? void 0 : markdownEditorRef.current)) return;
|
|
599
599
|
Transforms.setNodes(markdownEditorRef.current, size, {
|
|
600
600
|
at: path
|
|
@@ -629,13 +629,13 @@ export function EditorImage(param) {
|
|
|
629
629
|
boxSizing: 'border-box'
|
|
630
630
|
},
|
|
631
631
|
draggable: false,
|
|
632
|
-
onContextMenu: function(e) {
|
|
632
|
+
onContextMenu: function onContextMenu(e) {
|
|
633
633
|
e.stopPropagation();
|
|
634
634
|
},
|
|
635
|
-
onMouseDown: function(e) {
|
|
635
|
+
onMouseDown: function onMouseDown(e) {
|
|
636
636
|
e.stopPropagation();
|
|
637
637
|
},
|
|
638
|
-
onDragStart: function(e) {
|
|
638
|
+
onDragStart: function onDragStart(e) {
|
|
639
639
|
e.preventDefault();
|
|
640
640
|
e.stopPropagation();
|
|
641
641
|
}
|
|
@@ -651,12 +651,12 @@ export function EditorImage(param) {
|
|
|
651
651
|
content: /*#__PURE__*/ React.createElement(Space, null, /*#__PURE__*/ React.createElement(ActionIconBox, {
|
|
652
652
|
title: (locale === null || locale === void 0 ? void 0 : locale.delete) || '删除',
|
|
653
653
|
type: "danger",
|
|
654
|
-
onClick: function(e) {
|
|
654
|
+
onClick: function onClick(e) {
|
|
655
655
|
e.stopPropagation();
|
|
656
656
|
Modal.confirm({
|
|
657
657
|
title: (locale === null || locale === void 0 ? void 0 : locale.deleteMedia) || '删除媒体',
|
|
658
658
|
content: (locale === null || locale === void 0 ? void 0 : locale.confirmDelete) || '确定删除该媒体吗?',
|
|
659
|
-
onOk: function() {
|
|
659
|
+
onOk: function onOk() {
|
|
660
660
|
if (!(markdownEditorRef === null || markdownEditorRef === void 0 ? void 0 : markdownEditorRef.current)) return;
|
|
661
661
|
Transforms.removeNodes(markdownEditorRef.current, {
|
|
662
662
|
at: path
|
|
@@ -666,7 +666,7 @@ export function EditorImage(param) {
|
|
|
666
666
|
}
|
|
667
667
|
}, /*#__PURE__*/ React.createElement(DeleteFilled, null)), /*#__PURE__*/ React.createElement(ActionIconBox, {
|
|
668
668
|
title: (element === null || element === void 0 ? void 0 : element.block) ? locale === null || locale === void 0 ? void 0 : locale.blockImage : locale === null || locale === void 0 ? void 0 : locale.inlineImage,
|
|
669
|
-
onClick: function(e) {
|
|
669
|
+
onClick: function onClick(e) {
|
|
670
670
|
e.stopPropagation();
|
|
671
671
|
if (!(markdownEditorRef === null || markdownEditorRef === void 0 ? void 0 : markdownEditorRef.current)) return;
|
|
672
672
|
Transforms.setNodes(markdownEditorRef.current, {
|
|
@@ -682,7 +682,7 @@ export function EditorImage(param) {
|
|
|
682
682
|
}
|
|
683
683
|
}, /*#__PURE__*/ React.createElement(BlockOutlined, null)))
|
|
684
684
|
}, /*#__PURE__*/ React.createElement("div", {
|
|
685
|
-
onClick: function() {
|
|
685
|
+
onClick: function onClick() {
|
|
686
686
|
setTimeout(function() {
|
|
687
687
|
setState({
|
|
688
688
|
selected: true
|
|
@@ -52,7 +52,7 @@ function _object_spread_props(target, source) {
|
|
|
52
52
|
}
|
|
53
53
|
import React from "react";
|
|
54
54
|
import { debugInfo } from "../../../../Utils/debugUtils";
|
|
55
|
-
export var InlineKatex = function(param) {
|
|
55
|
+
export var InlineKatex = function InlineKatex(param) {
|
|
56
56
|
var attributes = param.attributes, children = param.children, element = param.element;
|
|
57
57
|
var _element_value;
|
|
58
58
|
debugInfo('InlineKatex - 渲染内联数学公式', {
|
|
@@ -52,7 +52,7 @@ function _object_spread_props(target, source) {
|
|
|
52
52
|
}
|
|
53
53
|
import React from "react";
|
|
54
54
|
import { debugInfo } from "../../../../Utils/debugUtils";
|
|
55
|
-
export var Katex = function(param) {
|
|
55
|
+
export var Katex = function Katex(param) {
|
|
56
56
|
var attributes = param.attributes, children = param.children, element = param.element;
|
|
57
57
|
var _element_value;
|
|
58
58
|
debugInfo('Katex - 渲染数学公式块', {
|
|
@@ -142,7 +142,7 @@ import { AvatarList } from "../../components/ContributorAvatar";
|
|
|
142
142
|
style: {
|
|
143
143
|
flex: 1
|
|
144
144
|
},
|
|
145
|
-
onClick: function() {
|
|
145
|
+
onClick: function onClick() {
|
|
146
146
|
if (typeof window === 'undefined') return;
|
|
147
147
|
window.open(element === null || element === void 0 ? void 0 : element.url);
|
|
148
148
|
},
|
|
@@ -162,7 +162,7 @@ import { AvatarList } from "../../components/ContributorAvatar";
|
|
|
162
162
|
}, /*#__PURE__*/ React.createElement("a", {
|
|
163
163
|
href: element === null || element === void 0 ? void 0 : element.url,
|
|
164
164
|
className: classNames("".concat(baseCls, "-container-content-title")),
|
|
165
|
-
onClick: function(e) {
|
|
165
|
+
onClick: function onClick(e) {
|
|
166
166
|
e.stopPropagation();
|
|
167
167
|
e.preventDefault();
|
|
168
168
|
if (typeof window === 'undefined') return;
|
|
@@ -99,10 +99,10 @@ export function LinkCard(param) {
|
|
|
99
99
|
"data-be": "link-card",
|
|
100
100
|
"data-drag-el": true,
|
|
101
101
|
draggable: false,
|
|
102
|
-
onContextMenu: function(e) {
|
|
102
|
+
onContextMenu: function onContextMenu(e) {
|
|
103
103
|
e.stopPropagation();
|
|
104
104
|
},
|
|
105
|
-
onMouseDown: function(e) {
|
|
105
|
+
onMouseDown: function onMouseDown(e) {
|
|
106
106
|
e.stopPropagation();
|
|
107
107
|
},
|
|
108
108
|
style: {
|
|
@@ -122,7 +122,7 @@ export function LinkCard(param) {
|
|
|
122
122
|
style: {
|
|
123
123
|
flex: 1
|
|
124
124
|
},
|
|
125
|
-
onClick: function() {
|
|
125
|
+
onClick: function onClick() {
|
|
126
126
|
if (typeof window === 'undefined') return;
|
|
127
127
|
window.open(element === null || element === void 0 ? void 0 : element.url);
|
|
128
128
|
},
|
|
@@ -142,7 +142,7 @@ export function LinkCard(param) {
|
|
|
142
142
|
}, /*#__PURE__*/ React.createElement("a", {
|
|
143
143
|
href: element === null || element === void 0 ? void 0 : element.url,
|
|
144
144
|
className: classNames("".concat(baseCls, "-container-content-title")),
|
|
145
|
-
onClick: function(e) {
|
|
145
|
+
onClick: function onClick(e) {
|
|
146
146
|
e.stopPropagation();
|
|
147
147
|
e.preventDefault();
|
|
148
148
|
if (typeof window === 'undefined') return;
|
|
@@ -69,7 +69,7 @@ import { useEditorStore } from "../../store";
|
|
|
69
69
|
* ```tsx
|
|
70
70
|
* <List element={element} attributes={attributes} children={children} />
|
|
71
71
|
* ```
|
|
72
|
-
*/ export var List = function(param) {
|
|
72
|
+
*/ export var List = function List(param) {
|
|
73
73
|
var element = param.element, attributes = param.attributes, children = param.children;
|
|
74
74
|
var _useEditorStore = useEditorStore(), store = _useEditorStore.store, markdownContainerRef = _useEditorStore.markdownContainerRef;
|
|
75
75
|
var context = useContext(ConfigProvider.ConfigContext);
|
|
@@ -84,7 +84,7 @@ import { useEditorStore } from "../../store";
|
|
|
84
84
|
className: classNames("".concat(baseCls, "-container"), 'relative'),
|
|
85
85
|
"data-be": 'list'
|
|
86
86
|
}, attributes), {
|
|
87
|
-
onDragStart: function(e) {
|
|
87
|
+
onDragStart: function onDragStart(e) {
|
|
88
88
|
store.dragStart(e, markdownContainerRef.current);
|
|
89
89
|
}
|
|
90
90
|
}), /*#__PURE__*/ createElement(tag, _object_spread({
|
|
@@ -207,7 +207,7 @@ import classNames from "classnames";
|
|
|
207
207
|
import React, { useContext, useEffect, useMemo } from "react";
|
|
208
208
|
import { useMEditor } from "../../../hooks/editor";
|
|
209
209
|
import { useEditorStore } from "../../store";
|
|
210
|
-
var MentionsUser = function(props) {
|
|
210
|
+
var MentionsUser = function MentionsUser(props) {
|
|
211
211
|
var _editorProps_comment, _editorProps_comment1, _editorProps_comment2;
|
|
212
212
|
var _React_useState = _sliced_to_array(React.useState(false), 2), loading = _React_useState[0], setLoading = _React_useState[1];
|
|
213
213
|
var _React_useState1 = _sliced_to_array(React.useState([]), 2), users = _React_useState1[0], setUsers = _React_useState1[1];
|
|
@@ -216,7 +216,7 @@ var MentionsUser = function(props) {
|
|
|
216
216
|
onChange: props.onSelect
|
|
217
217
|
}), 2), selectedUsers = _useMountMergeState[0], setSelectedUsers = _useMountMergeState[1];
|
|
218
218
|
var _useEditorStore = useEditorStore(), editorProps = _useEditorStore.editorProps, readonly = _useEditorStore.readonly;
|
|
219
|
-
var onSearch = function(text) {
|
|
219
|
+
var onSearch = function onSearch(text) {
|
|
220
220
|
return _async_to_generator(function() {
|
|
221
221
|
var _editorProps_comment_loadMentions, _editorProps_comment, list;
|
|
222
222
|
return _ts_generator(this, function(_state) {
|
|
@@ -274,7 +274,7 @@ var MentionsUser = function(props) {
|
|
|
274
274
|
}) : null);
|
|
275
275
|
}
|
|
276
276
|
return /*#__PURE__*/ React.createElement("div", {
|
|
277
|
-
onClick: function(e) {
|
|
277
|
+
onClick: function onClick(e) {
|
|
278
278
|
e.stopPropagation();
|
|
279
279
|
e.preventDefault();
|
|
280
280
|
},
|
|
@@ -304,7 +304,7 @@ var MentionsUser = function(props) {
|
|
|
304
304
|
avatar: u.avatar
|
|
305
305
|
};
|
|
306
306
|
}),
|
|
307
|
-
onClick: function(value) {
|
|
307
|
+
onClick: function onClick(value) {
|
|
308
308
|
setSelectedUsers(users.filter(function(u) {
|
|
309
309
|
return u.name === value.key;
|
|
310
310
|
}));
|
|
@@ -367,7 +367,7 @@ var MentionsUser = function(props) {
|
|
|
367
367
|
* - 使用 `useMemo` 优化渲染性能。
|
|
368
368
|
* - 列表项支持拖拽操作。
|
|
369
369
|
* - 如果是任务列表项,会渲染一个不可编辑的复选框。
|
|
370
|
-
*/ export var ListItem = function(param) {
|
|
370
|
+
*/ export var ListItem = function ListItem(param) {
|
|
371
371
|
var element = param.element, children = param.children, attributes = param.attributes;
|
|
372
372
|
var _editorProps_comment;
|
|
373
373
|
var _useMEditor = _sliced_to_array(useMEditor(element), 2), update = _useMEditor[1];
|
|
@@ -384,7 +384,7 @@ var MentionsUser = function(props) {
|
|
|
384
384
|
className: classNames("".concat(baseCls, "-check-item"))
|
|
385
385
|
}, /*#__PURE__*/ React.createElement(Checkbox, {
|
|
386
386
|
checked: element.checked,
|
|
387
|
-
onChange: function(e) {
|
|
387
|
+
onChange: function onChange(e) {
|
|
388
388
|
update({
|
|
389
389
|
checked: e.target.checked
|
|
390
390
|
});
|
|
@@ -397,7 +397,7 @@ var MentionsUser = function(props) {
|
|
|
397
397
|
var mentionsUser = React.useMemo(function() {
|
|
398
398
|
if (!isTask) return null;
|
|
399
399
|
return /*#__PURE__*/ React.createElement(MentionsUser, {
|
|
400
|
-
onSelect: function(mentions) {
|
|
400
|
+
onSelect: function onSelect(mentions) {
|
|
401
401
|
update({
|
|
402
402
|
mentions: mentions
|
|
403
403
|
});
|
|
@@ -417,7 +417,7 @@ var MentionsUser = function(props) {
|
|
|
417
417
|
return /*#__PURE__*/ React.createElement("li", _object_spread({
|
|
418
418
|
className: classNames("".concat(baseCls, "-item"), _define_property({}, "".concat(baseCls, "-task"), isTask)),
|
|
419
419
|
"data-be": 'list-item',
|
|
420
|
-
onDragStart: function(e) {
|
|
420
|
+
onDragStart: function onDragStart(e) {
|
|
421
421
|
store.dragStart(e, markdownContainerRef.current);
|
|
422
422
|
}
|
|
423
423
|
}, attributes), listItemRender(props, {
|
|
@@ -429,7 +429,7 @@ var MentionsUser = function(props) {
|
|
|
429
429
|
return /*#__PURE__*/ React.createElement("li", _object_spread({
|
|
430
430
|
className: classNames("".concat(baseCls, "-item"), _define_property({}, "".concat(baseCls, "-task"), isTask)),
|
|
431
431
|
"data-be": 'list-item',
|
|
432
|
-
onDragStart: function(e) {
|
|
432
|
+
onDragStart: function onDragStart(e) {
|
|
433
433
|
store.dragStart(e, markdownContainerRef.current);
|
|
434
434
|
}
|
|
435
435
|
}, attributes), checkbox, mentionsUser, children);
|
|
@@ -403,7 +403,7 @@ import { ReadonlyImage } from "../Image";
|
|
|
403
403
|
},
|
|
404
404
|
src: ((_state = state()) === null || _state === void 0 ? void 0 : _state.url) || '',
|
|
405
405
|
preload: "metadata",
|
|
406
|
-
onError: function() {
|
|
406
|
+
onError: function onError() {
|
|
407
407
|
var _state;
|
|
408
408
|
console.warn('Video failed to load:', (_state = state()) === null || _state === void 0 ? void 0 : _state.url);
|
|
409
409
|
setState({
|
|
@@ -471,7 +471,7 @@ import { ReadonlyImage } from "../Image";
|
|
|
471
471
|
height: 'auto'
|
|
472
472
|
},
|
|
473
473
|
src: ((_state3 = state()) === null || _state3 === void 0 ? void 0 : _state3.url) || '',
|
|
474
|
-
onError: function() {
|
|
474
|
+
onError: function onError() {
|
|
475
475
|
var _state;
|
|
476
476
|
console.warn('Audio failed to load:', (_state = state()) === null || _state === void 0 ? void 0 : _state.url);
|
|
477
477
|
setState({
|
|
@@ -274,7 +274,7 @@ import { ReadonlyImage } from "../Image";
|
|
|
274
274
|
* onResizeStop={(size) => console.log('新尺寸:', size)}
|
|
275
275
|
* />
|
|
276
276
|
* ```
|
|
277
|
-
*/ export var ResizeImage = function(_0) {
|
|
277
|
+
*/ export var ResizeImage = function ResizeImage(_0) {
|
|
278
278
|
var onResizeStart = _0.onResizeStart, onResizeStop = _0.onResizeStop, selected = _0.selected, defaultSize = _0.defaultSize, props = _object_without_properties(_0, [
|
|
279
279
|
"onResizeStart",
|
|
280
280
|
"onResizeStop",
|
|
@@ -328,7 +328,7 @@ import { ReadonlyImage } from "../Image";
|
|
|
328
328
|
}
|
|
329
329
|
})) : null, /*#__PURE__*/ React.createElement(Rnd, {
|
|
330
330
|
onResizeStart: onResizeStart,
|
|
331
|
-
onResizeStop: function() {
|
|
331
|
+
onResizeStop: function onResizeStop1() {
|
|
332
332
|
onResizeStop === null || onResizeStop === void 0 ? void 0 : onResizeStop(size);
|
|
333
333
|
},
|
|
334
334
|
default: {
|
|
@@ -345,7 +345,7 @@ import { ReadonlyImage } from "../Image";
|
|
|
345
345
|
MozUserSelect: 'none',
|
|
346
346
|
msUserSelect: 'none'
|
|
347
347
|
},
|
|
348
|
-
onResize: function(_, dir, ele) {
|
|
348
|
+
onResize: function onResize(_, dir, ele) {
|
|
349
349
|
var _imgRef_current, _imgRef_current1;
|
|
350
350
|
(_imgRef_current = imgRef.current) === null || _imgRef_current === void 0 ? void 0 : _imgRef_current.style.setProperty('width', "".concat(ele.clientWidth, "px"));
|
|
351
351
|
(_imgRef_current1 = imgRef.current) === null || _imgRef_current1 === void 0 ? void 0 : _imgRef_current1.style.setProperty('height', "".concat((ele.clientWidth || 0) / radio.current, "px"));
|
|
@@ -358,7 +358,7 @@ import { ReadonlyImage } from "../Image";
|
|
|
358
358
|
}, /*#__PURE__*/ React.createElement("img", _object_spread({
|
|
359
359
|
"data-testid": "resize-image",
|
|
360
360
|
draggable: false,
|
|
361
|
-
onLoad: function(e) {
|
|
361
|
+
onLoad: function onLoad(e) {
|
|
362
362
|
setLoading(false);
|
|
363
363
|
var width = e.target.naturalWidth;
|
|
364
364
|
var height = e.target.naturalHeight;
|
|
@@ -541,12 +541,12 @@ export function Media(param) {
|
|
|
541
541
|
},
|
|
542
542
|
selected: state().selected,
|
|
543
543
|
src: (_state = state()) === null || _state === void 0 ? void 0 : _state.url,
|
|
544
|
-
onResizeStart: function() {
|
|
544
|
+
onResizeStart: function onResizeStart() {
|
|
545
545
|
setState({
|
|
546
546
|
selected: true
|
|
547
547
|
});
|
|
548
548
|
},
|
|
549
|
-
onResizeStop: function(size) {
|
|
549
|
+
onResizeStop: function onResizeStop(size) {
|
|
550
550
|
Transforms.setNodes(markdownEditorRef.current, size, {
|
|
551
551
|
at: path
|
|
552
552
|
});
|
|
@@ -619,7 +619,7 @@ export function Media(param) {
|
|
|
619
619
|
},
|
|
620
620
|
src: ((_state = state()) === null || _state === void 0 ? void 0 : _state.url) || '',
|
|
621
621
|
preload: "metadata",
|
|
622
|
-
onError: function() {
|
|
622
|
+
onError: function onError() {
|
|
623
623
|
var _state;
|
|
624
624
|
console.warn('Video failed to load:', (_state = state()) === null || _state === void 0 ? void 0 : _state.url);
|
|
625
625
|
setState({
|
|
@@ -687,7 +687,7 @@ export function Media(param) {
|
|
|
687
687
|
height: 'auto'
|
|
688
688
|
},
|
|
689
689
|
src: ((_state3 = state()) === null || _state3 === void 0 ? void 0 : _state3.url) || '',
|
|
690
|
-
onError: function() {
|
|
690
|
+
onError: function onError() {
|
|
691
691
|
var _state;
|
|
692
692
|
console.warn('Audio failed to load:', (_state = state()) === null || _state === void 0 ? void 0 : _state.url);
|
|
693
693
|
setState({
|
|
@@ -765,7 +765,7 @@ export function Media(param) {
|
|
|
765
765
|
padding: '0 18px'
|
|
766
766
|
}
|
|
767
767
|
}, /*#__PURE__*/ React.createElement(EyeOutlined, {
|
|
768
|
-
onClick: function() {
|
|
768
|
+
onClick: function onClick() {
|
|
769
769
|
var _state;
|
|
770
770
|
if (typeof window === 'undefined') return;
|
|
771
771
|
window.open((_state = state()) === null || _state === void 0 ? void 0 : _state.url);
|
|
@@ -802,13 +802,13 @@ export function Media(param) {
|
|
|
802
802
|
boxSizing: 'border-box'
|
|
803
803
|
},
|
|
804
804
|
draggable: false,
|
|
805
|
-
onContextMenu: function(e) {
|
|
805
|
+
onContextMenu: function onContextMenu(e) {
|
|
806
806
|
e.stopPropagation();
|
|
807
807
|
},
|
|
808
|
-
onMouseDown: function(e) {
|
|
808
|
+
onMouseDown: function onMouseDown(e) {
|
|
809
809
|
e.stopPropagation();
|
|
810
810
|
},
|
|
811
|
-
onDragStart: function(e) {
|
|
811
|
+
onDragStart: function onDragStart(e) {
|
|
812
812
|
e.preventDefault();
|
|
813
813
|
e.stopPropagation();
|
|
814
814
|
}
|
|
@@ -824,12 +824,12 @@ export function Media(param) {
|
|
|
824
824
|
content: /*#__PURE__*/ React.createElement(ActionIconBox, {
|
|
825
825
|
title: (locale === null || locale === void 0 ? void 0 : locale.delete) || '删除',
|
|
826
826
|
type: "danger",
|
|
827
|
-
onClick: function(e) {
|
|
827
|
+
onClick: function onClick(e) {
|
|
828
828
|
e.stopPropagation();
|
|
829
829
|
Modal.confirm({
|
|
830
830
|
title: (locale === null || locale === void 0 ? void 0 : locale.deleteMedia) || '删除媒体',
|
|
831
831
|
content: (locale === null || locale === void 0 ? void 0 : locale.confirmDelete) || '确定删除该媒体吗?',
|
|
832
|
-
onOk: function() {
|
|
832
|
+
onOk: function onOk() {
|
|
833
833
|
Transforms.removeNodes(markdownEditorRef.current, {
|
|
834
834
|
at: path
|
|
835
835
|
});
|
|
@@ -838,7 +838,7 @@ export function Media(param) {
|
|
|
838
838
|
}
|
|
839
839
|
}, /*#__PURE__*/ React.createElement(DeleteFilled, null))
|
|
840
840
|
}, /*#__PURE__*/ React.createElement("div", {
|
|
841
|
-
onClick: function() {
|
|
841
|
+
onClick: function onClick() {
|
|
842
842
|
setTimeout(function() {
|
|
843
843
|
setState({
|
|
844
844
|
selected: true
|
|
@@ -53,7 +53,7 @@ function _object_spread_props(target, source) {
|
|
|
53
53
|
import { ConfigProvider } from "antd";
|
|
54
54
|
import classNames from "classnames";
|
|
55
55
|
import React, { useContext } from "react";
|
|
56
|
-
export var Mermaid = function(param) {
|
|
56
|
+
export var Mermaid = function Mermaid(param) {
|
|
57
57
|
var attributes = param.attributes, children = param.children, element = param.element;
|
|
58
58
|
var _element_otherProps;
|
|
59
59
|
var context = useContext(ConfigProvider.ConfigContext);
|
|
@@ -104,7 +104,7 @@ import { debugInfo } from "../../../../Utils/debugUtils";
|
|
|
104
104
|
import { useSelStatus } from "../../../hooks/editor";
|
|
105
105
|
import { useEditorStore } from "../../store";
|
|
106
106
|
import { DragHandle } from "../../tools/DragHandle";
|
|
107
|
-
export var Paragraph = function(props) {
|
|
107
|
+
export var Paragraph = function Paragraph(props) {
|
|
108
108
|
var _props_element_align;
|
|
109
109
|
var _props_element_otherProps, _markdownEditorRef_current;
|
|
110
110
|
var align = (_props_element_align = props.element.align) !== null && _props_element_align !== void 0 ? _props_element_align : (_props_element_otherProps = props.element.otherProps) === null || _props_element_otherProps === void 0 ? void 0 : _props_element_otherProps.align;
|
|
@@ -141,7 +141,7 @@ export var Paragraph = function(props) {
|
|
|
141
141
|
}),
|
|
142
142
|
"data-align": align,
|
|
143
143
|
"data-slate-placeholder": isEmpty ? editorProps.titlePlaceholderContent || (locale === null || locale === void 0 ? void 0 : locale.inputPlaceholder) || '请输入内容...' : undefined,
|
|
144
|
-
onDragStart: function(e) {
|
|
144
|
+
onDragStart: function onDragStart(e) {
|
|
145
145
|
store.dragStart(e, markdownContainerRef.current);
|
|
146
146
|
},
|
|
147
147
|
"data-empty": isEmpty,
|
|
@@ -95,7 +95,7 @@ import { useEditorStore } from "../../store";
|
|
|
95
95
|
* 1. 自定义 apaasify 渲染器
|
|
96
96
|
* 2. AgentAR 卡片渲染
|
|
97
97
|
* 3. 默认 JSON 字符串渲染
|
|
98
|
-
*/ export var Schema = function(props) {
|
|
98
|
+
*/ export var Schema = function Schema(props) {
|
|
99
99
|
var _editorProps_codeProps;
|
|
100
100
|
debugInfo('Schema - 渲染 Schema', {
|
|
101
101
|
language: props.element.language,
|
|
@@ -165,13 +165,13 @@ import { useEditorStore } from "../../store";
|
|
|
165
165
|
border: '1px solid rgb(209 213 219 / 0.8)',
|
|
166
166
|
alignItems: 'center'
|
|
167
167
|
},
|
|
168
|
-
onClick: function(e) {
|
|
168
|
+
onClick: function onClick(e) {
|
|
169
169
|
e.stopPropagation();
|
|
170
170
|
},
|
|
171
|
-
onMouseMove: function(e) {
|
|
171
|
+
onMouseMove: function onMouseMove(e) {
|
|
172
172
|
e.stopPropagation();
|
|
173
173
|
},
|
|
174
|
-
onKeyDown: function(e) {
|
|
174
|
+
onKeyDown: function onKeyDown(e) {
|
|
175
175
|
e.stopPropagation();
|
|
176
176
|
},
|
|
177
177
|
"data-be": node === null || node === void 0 ? void 0 : node.type
|
|
@@ -203,23 +203,23 @@ import { parserSlateNodeToMarkdown } from "../../utils";
|
|
|
203
203
|
width: 'calc(80vw - 64px)'
|
|
204
204
|
},
|
|
205
205
|
ref: modelTargetRef,
|
|
206
|
-
onMouseDown: function(e) {
|
|
206
|
+
onMouseDown: function onMouseDown(e) {
|
|
207
207
|
// 阻止默认的文字选择行为
|
|
208
208
|
e.preventDefault();
|
|
209
209
|
},
|
|
210
|
-
onDragStart: function(e) {
|
|
210
|
+
onDragStart: function onDragStart(e) {
|
|
211
211
|
// 阻止拖拽开始时的文字选择
|
|
212
212
|
e.preventDefault();
|
|
213
213
|
},
|
|
214
|
-
onDoubleClick: function(e) {
|
|
214
|
+
onDoubleClick: function onDoubleClick(e) {
|
|
215
215
|
// 阻止双击选择文字
|
|
216
216
|
e.preventDefault();
|
|
217
217
|
}
|
|
218
218
|
}, /*#__PURE__*/ React.createElement(ConfigProvider, {
|
|
219
|
-
getPopupContainer: function() {
|
|
219
|
+
getPopupContainer: function getPopupContainer() {
|
|
220
220
|
return modelTargetRef.current || document.body;
|
|
221
221
|
},
|
|
222
|
-
getTargetContainer: function() {
|
|
222
|
+
getTargetContainer: function getTargetContainer() {
|
|
223
223
|
return modelTargetRef.current || document.body;
|
|
224
224
|
}
|
|
225
225
|
}, tableDom))));
|
|
@@ -59,7 +59,7 @@ import { TablePropsProvider } from "./TableContext";
|
|
|
59
59
|
/**
|
|
60
60
|
* 简单表格组件 - 仅支持只读显示
|
|
61
61
|
* 用于替代复杂的 Handsontable 实现,提供基础的表格功能
|
|
62
|
-
*/ export var SimpleTable = function(props) {
|
|
62
|
+
*/ export var SimpleTable = function SimpleTable(props) {
|
|
63
63
|
var getPrefixCls = useContext(ConfigProvider.ConfigContext).getPrefixCls;
|
|
64
64
|
var baseCls = getPrefixCls('agentic-md-editor-content-table');
|
|
65
65
|
var editor = useSlate();
|
|
@@ -180,7 +180,7 @@ import useScrollShadow from "./useScrollShadow";
|
|
|
180
180
|
* 组件还使用了 `IntersectionObserver` 来检测表格是否溢出,并相应地添加或移除 CSS 类。
|
|
181
181
|
*
|
|
182
182
|
* @see https://reactjs.org/docs/hooks-intro.html React Hooks
|
|
183
|
-
*/ export var SlateTable = function(_0) {
|
|
183
|
+
*/ export var SlateTable = function SlateTable(_0) {
|
|
184
184
|
var children = _0.children, props = _object_without_properties(_0, [
|
|
185
185
|
"children"
|
|
186
186
|
]);
|
|
@@ -261,7 +261,7 @@ import useScrollShadow from "./useScrollShadow";
|
|
|
261
261
|
// 只在编辑模式下添加resize事件监听
|
|
262
262
|
useEffect(function() {
|
|
263
263
|
if (readonly || typeof window === 'undefined') return;
|
|
264
|
-
var resize = function() {
|
|
264
|
+
var resize = function resize() {
|
|
265
265
|
var _markdownContainerRef_current_querySelector, _markdownContainerRef_current;
|
|
266
266
|
if (process.env.NODE_ENV === 'test') return;
|
|
267
267
|
var maxWidth = colWidths ? (colWidths === null || colWidths === void 0 ? void 0 : colWidths.reduce(function(a, b) {
|
|
@@ -307,7 +307,7 @@ import useScrollShadow from "./useScrollShadow";
|
|
|
307
307
|
return /*#__PURE__*/ React.createElement("table", {
|
|
308
308
|
ref: tableTargetRef,
|
|
309
309
|
className: classNames("".concat(baseCls, "-editor-table")),
|
|
310
|
-
onDragStart: function(e) {
|
|
310
|
+
onDragStart: function onDragStart(e) {
|
|
311
311
|
// 阻止拖拽开始事件
|
|
312
312
|
e.preventDefault();
|
|
313
313
|
return false;
|
|
@@ -365,11 +365,11 @@ import useScrollShadow from "./useScrollShadow";
|
|
|
365
365
|
style: _object_spread_props(_object_spread({}, boxShadowStyle), {
|
|
366
366
|
position: 'relative'
|
|
367
367
|
}),
|
|
368
|
-
onDragStart: function(e) {
|
|
368
|
+
onDragStart: function onDragStart(e) {
|
|
369
369
|
// 阻止拖拽开始时的文字选择
|
|
370
370
|
e.preventDefault();
|
|
371
371
|
},
|
|
372
|
-
onDoubleClick: function(e) {
|
|
372
|
+
onDoubleClick: function onDoubleClick(e) {
|
|
373
373
|
// 阻止双击选择文字
|
|
374
374
|
e.preventDefault();
|
|
375
375
|
}
|
|
@@ -128,7 +128,7 @@ import { TablePropsContext } from "../TableContext";
|
|
|
128
128
|
* - 不可编辑状态
|
|
129
129
|
* - 固定宽度和垂直对齐
|
|
130
130
|
* - 支持点击选中整行功能
|
|
131
|
-
*/ export var TableCellIndex = function(param) {
|
|
131
|
+
*/ export var TableCellIndex = function TableCellIndex(param) {
|
|
132
132
|
var style = param.style, className = param.className, rowIndex = param.rowIndex, tablePath = param.tablePath;
|
|
133
133
|
var context = useContext(ConfigProvider.ConfigContext);
|
|
134
134
|
var baseClassName = context === null || context === void 0 ? void 0 : context.getPrefixCls('agentic-md-editor-table-cell-index');
|
|
@@ -128,7 +128,7 @@ import { TablePropsContext } from "../TableContext";
|
|
|
128
128
|
* - 不可编辑状态
|
|
129
129
|
* - 用于占位和布局
|
|
130
130
|
* - 支持点击选中整列功能
|
|
131
|
-
*/ export var TableCellIndexSpacer = function(param) {
|
|
131
|
+
*/ export var TableCellIndexSpacer = function TableCellIndexSpacer(param) {
|
|
132
132
|
var style = param.style, className = param.className, columnIndex = param.columnIndex, tablePath = param.tablePath;
|
|
133
133
|
var context = useContext(ConfigProvider.ConfigContext);
|
|
134
134
|
var baseClassName = context === null || context === void 0 ? void 0 : context.getPrefixCls('agentic-md-editor-table-cell-index-spacer');
|
|
@@ -48,7 +48,7 @@ import React, { useCallback, useState } from "react";
|
|
|
48
48
|
export var TablePropsContext = /*#__PURE__*/ React.createContext({});
|
|
49
49
|
/**
|
|
50
50
|
* TablePropsProvider 组件 - 提供表格上下文状态管理
|
|
51
|
-
*/ export var TablePropsProvider = function(param) {
|
|
51
|
+
*/ export var TablePropsProvider = function TablePropsProvider(param) {
|
|
52
52
|
var children = param.children, tablePath = param.tablePath, tableNode = param.tableNode;
|
|
53
53
|
var _useState = _sliced_to_array(useState(null), 2), deleteIconPosition = _useState[0], setDeleteIconPosition = _useState[1];
|
|
54
54
|
var handleSetDeleteIconPosition = useCallback(function(position) {
|
|
@@ -33,7 +33,7 @@ import { TableCellIndexSpacer } from "../TableCellIndexSpacer";
|
|
|
33
33
|
* - 支持自定义样式覆盖
|
|
34
34
|
* - 根据列宽度数组生成对应的间隔单元格
|
|
35
35
|
* - 包含行索引单元格和列间隔单元格
|
|
36
|
-
*/ export var TableRowIndex = function(param) {
|
|
36
|
+
*/ export var TableRowIndex = function TableRowIndex(param) {
|
|
37
37
|
var _param_colWidths = param.colWidths, colWidths = _param_colWidths === void 0 ? [] : _param_colWidths, style = param.style, className = param.className, tablePath = param.tablePath;
|
|
38
38
|
var context = useContext(ConfigProvider.ConfigContext);
|
|
39
39
|
var baseClassName = context === null || context === void 0 ? void 0 : context.getPrefixCls('agentic-md-editor-table-row-index');
|
|
@@ -92,7 +92,7 @@ import { useSlateSelection } from "slate-react";
|
|
|
92
92
|
* - 支持隐藏单元格
|
|
93
93
|
* - 提供文本溢出处理
|
|
94
94
|
* - 类型安全检查
|
|
95
|
-
*/ export var Td = function(param) {
|
|
95
|
+
*/ export var Td = function Td(param) {
|
|
96
96
|
var attributes = param.attributes, children = param.children, style = param.style, element = param.element;
|
|
97
97
|
if (element.type !== 'table-cell') {
|
|
98
98
|
throw new Error('Element "Td" must be of type "table-cell"');
|
|
@@ -105,7 +105,7 @@ import { useSlateSelection } from "slate-react";
|
|
|
105
105
|
var prefix = getPrefixCls('agentic-md-editor-table-td');
|
|
106
106
|
var tdRef = useRef(null);
|
|
107
107
|
// 创建 ref 回调函数来处理 ref 冲突
|
|
108
|
-
var handleRef = function(node) {
|
|
108
|
+
var handleRef = function handleRef(node) {
|
|
109
109
|
tdRef.current = node;
|
|
110
110
|
if (attributes === null || attributes === void 0 ? void 0 : attributes.ref) {
|
|
111
111
|
if (typeof attributes.ref === 'function') {
|