@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
|
@@ -56,7 +56,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
56
56
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
57
57
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
58
58
|
}
|
|
59
|
-
var tryCatchCallback = function(editorFunc) {
|
|
59
|
+
var tryCatchCallback = function tryCatchCallback(editorFunc) {
|
|
60
60
|
return function() {
|
|
61
61
|
for(var _len = arguments.length, editorFuncArgs = new Array(_len), _key = 0; _key < _len; _key++){
|
|
62
62
|
editorFuncArgs[_key] = arguments[_key];
|
|
@@ -70,7 +70,7 @@ var tryCatchCallback = function(editorFunc) {
|
|
|
70
70
|
}
|
|
71
71
|
};
|
|
72
72
|
};
|
|
73
|
-
export var withErrorReporting = function(editor) {
|
|
73
|
+
export var withErrorReporting = function withErrorReporting(editor) {
|
|
74
74
|
Object.entries(editor).forEach(function(param) {
|
|
75
75
|
var _param = _sliced_to_array(param, 2), key = _param[0], value = _param[1];
|
|
76
76
|
if (typeof value === 'function') {
|
|
@@ -78,7 +78,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
78
78
|
import { Editor, Node, Path, Point, Range, Transforms } from "slate";
|
|
79
79
|
import { decodeURIComponentUrl } from "../parser/parse/parseHtml";
|
|
80
80
|
import { EditorUtils } from "../utils/editorUtils";
|
|
81
|
-
export var insertAfter = function(editor, path) {
|
|
81
|
+
export var insertAfter = function insertAfter(editor, path) {
|
|
82
82
|
var node = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
83
83
|
type: 'paragraph',
|
|
84
84
|
children: [
|
|
@@ -93,7 +93,7 @@ export var insertAfter = function(editor, path) {
|
|
|
93
93
|
at: nextPath
|
|
94
94
|
});
|
|
95
95
|
};
|
|
96
|
-
var matchText = function(insert, matchString) {
|
|
96
|
+
var matchText = function matchText(insert, matchString) {
|
|
97
97
|
return function(ctx) {
|
|
98
98
|
var sel = ctx.sel, editor = ctx.editor, match = ctx.match, startText = ctx.startText;
|
|
99
99
|
var leaf = Node.leaf(editor, sel.anchor.path);
|
|
@@ -122,7 +122,7 @@ var matchText = function(insert, matchString) {
|
|
|
122
122
|
export var MdElements = {
|
|
123
123
|
table: {
|
|
124
124
|
reg: /^\s*\|((?:[^|\n]+\|?)+)\|\s*$/,
|
|
125
|
-
run: function(param) {
|
|
125
|
+
run: function run(param) {
|
|
126
126
|
var editor = param.editor, path = param.path, match = param.match;
|
|
127
127
|
var columns = match[1].split('|');
|
|
128
128
|
Transforms.delete(editor, {
|
|
@@ -172,7 +172,7 @@ export var MdElements = {
|
|
|
172
172
|
code: {
|
|
173
173
|
matchKey: ' ',
|
|
174
174
|
reg: /^\s*(```|···)([\w#\-+*]{1,30})?\s*$/,
|
|
175
|
-
run: function(param) {
|
|
175
|
+
run: function run(param) {
|
|
176
176
|
var editor = param.editor, path = param.path, match = param.match;
|
|
177
177
|
var lang = match[2];
|
|
178
178
|
Transforms.delete(editor, {
|
|
@@ -192,7 +192,7 @@ export var MdElements = {
|
|
|
192
192
|
codeSpace: {
|
|
193
193
|
matchKey: ' ',
|
|
194
194
|
reg: /^\s*(```|···)([\w#\-+*]{1,30})?\s*$/,
|
|
195
|
-
run: function(param) {
|
|
195
|
+
run: function run(param) {
|
|
196
196
|
var editor = param.editor, path = param.path, match = param.match;
|
|
197
197
|
var lang = match[2];
|
|
198
198
|
Transforms.delete(editor, {
|
|
@@ -211,7 +211,7 @@ export var MdElements = {
|
|
|
211
211
|
},
|
|
212
212
|
head: {
|
|
213
213
|
matchKey: ' ',
|
|
214
|
-
checkAllow: function(ctx) {
|
|
214
|
+
checkAllow: function checkAllow(ctx) {
|
|
215
215
|
var _ctx_node_, _ctx_node;
|
|
216
216
|
return EditorUtils.isTop(ctx.editor, ctx.node[1]) && [
|
|
217
217
|
'paragraph',
|
|
@@ -219,7 +219,7 @@ export var MdElements = {
|
|
|
219
219
|
].includes((_ctx_node = ctx.node) === null || _ctx_node === void 0 ? void 0 : (_ctx_node_ = _ctx_node[0]) === null || _ctx_node_ === void 0 ? void 0 : _ctx_node_.type) && !Path.hasPrevious(ctx.sel.anchor.path);
|
|
220
220
|
},
|
|
221
221
|
reg: /^\s*(#{1,5})(\s+)([^\n]*)$/,
|
|
222
|
-
run: function(param) {
|
|
222
|
+
run: function run(param) {
|
|
223
223
|
var editor = param.editor, path = param.path, match = param.match, sel = param.sel;
|
|
224
224
|
var text = [
|
|
225
225
|
{
|
|
@@ -246,7 +246,7 @@ export var MdElements = {
|
|
|
246
246
|
link: {
|
|
247
247
|
reg: RegExp("(?<!!)\\[([^]+)]\\(([^)]+)\\)\\s*"),
|
|
248
248
|
matchKey: ')',
|
|
249
|
-
run: function(param) {
|
|
249
|
+
run: function run(param) {
|
|
250
250
|
var editor = param.editor, match = param.match, sel = param.sel, startText = param.startText;
|
|
251
251
|
Transforms.select(editor, {
|
|
252
252
|
anchor: {
|
|
@@ -273,7 +273,7 @@ export var MdElements = {
|
|
|
273
273
|
img: {
|
|
274
274
|
reg: /!\[([^]*)]\(([^)]+)\)\s*/,
|
|
275
275
|
matchKey: ')',
|
|
276
|
-
run: function(param) {
|
|
276
|
+
run: function run(param) {
|
|
277
277
|
var editor = param.editor, match = param.match, sel = param.sel, startText = param.startText;
|
|
278
278
|
Transforms.select(editor, {
|
|
279
279
|
anchor: {
|
|
@@ -296,7 +296,7 @@ export var MdElements = {
|
|
|
296
296
|
task: {
|
|
297
297
|
reg: /^\s*\[(x|\s)]\s+/,
|
|
298
298
|
matchKey: ' ',
|
|
299
|
-
checkAllow: function(ctx) {
|
|
299
|
+
checkAllow: function checkAllow(ctx) {
|
|
300
300
|
var _ctx_node_, _ctx_node;
|
|
301
301
|
if (((_ctx_node = ctx.node) === null || _ctx_node === void 0 ? void 0 : (_ctx_node_ = _ctx_node[0]) === null || _ctx_node_ === void 0 ? void 0 : _ctx_node_.type) === 'paragraph') {
|
|
302
302
|
var list = Editor.parent(ctx.editor, ctx.node[1])[0].type === 'list-item';
|
|
@@ -304,7 +304,7 @@ export var MdElements = {
|
|
|
304
304
|
}
|
|
305
305
|
return false;
|
|
306
306
|
},
|
|
307
|
-
run: function(ctx) {
|
|
307
|
+
run: function run(ctx) {
|
|
308
308
|
Transforms.delete(ctx.editor, {
|
|
309
309
|
at: ctx.path
|
|
310
310
|
});
|
|
@@ -330,7 +330,7 @@ export var MdElements = {
|
|
|
330
330
|
list: {
|
|
331
331
|
matchKey: ' ',
|
|
332
332
|
reg: /^\s*(\d+\.|-|\*|\+)\s+?/,
|
|
333
|
-
checkAllow: function(ctx) {
|
|
333
|
+
checkAllow: function checkAllow(ctx) {
|
|
334
334
|
var _ctx_node_, _ctx_node;
|
|
335
335
|
if (Editor.parent(ctx.editor, ctx.node[1])[0].type === 'list-item') {
|
|
336
336
|
return Path.hasPrevious(ctx.node[1]);
|
|
@@ -339,7 +339,7 @@ export var MdElements = {
|
|
|
339
339
|
'paragraph'
|
|
340
340
|
].includes((_ctx_node = ctx.node) === null || _ctx_node === void 0 ? void 0 : (_ctx_node_ = _ctx_node[0]) === null || _ctx_node_ === void 0 ? void 0 : _ctx_node_.type) && !Path.hasPrevious(ctx.sel.anchor.path);
|
|
341
341
|
},
|
|
342
|
-
run: function(param) {
|
|
342
|
+
run: function run(param) {
|
|
343
343
|
var editor = param.editor, match = param.match, sel = param.sel, path = param.path;
|
|
344
344
|
var _match__match;
|
|
345
345
|
var removeLength = ((_match__match = match[0].match(/\s*(\d+\.|-|\*|\+)\s+/)) === null || _match__match === void 0 ? void 0 : _match__match[0].length) || 0;
|
|
@@ -385,11 +385,11 @@ export var MdElements = {
|
|
|
385
385
|
hr: {
|
|
386
386
|
matchKey: ' ',
|
|
387
387
|
reg: /^\s*(\*\*\*|___|---)\s*$/,
|
|
388
|
-
checkAllow: function(ctx) {
|
|
388
|
+
checkAllow: function checkAllow(ctx) {
|
|
389
389
|
var _ctx_node_, _ctx_node;
|
|
390
390
|
return ((_ctx_node = ctx.node) === null || _ctx_node === void 0 ? void 0 : (_ctx_node_ = _ctx_node[0]) === null || _ctx_node_ === void 0 ? void 0 : _ctx_node_.type) === 'paragraph' && ctx.node[1][0] !== 0;
|
|
391
391
|
},
|
|
392
|
-
run: function(param) {
|
|
392
|
+
run: function run(param) {
|
|
393
393
|
var editor = param.editor, path = param.path;
|
|
394
394
|
Transforms.delete(editor, {
|
|
395
395
|
at: path
|
|
@@ -411,11 +411,11 @@ export var MdElements = {
|
|
|
411
411
|
hrSpace: {
|
|
412
412
|
matchKey: ' ',
|
|
413
413
|
reg: /^\s*(\*\*\*|___|---)\s*/,
|
|
414
|
-
checkAllow: function(ctx) {
|
|
414
|
+
checkAllow: function checkAllow(ctx) {
|
|
415
415
|
var _ctx_node_, _ctx_node;
|
|
416
416
|
return ((_ctx_node = ctx.node) === null || _ctx_node === void 0 ? void 0 : (_ctx_node_ = _ctx_node[0]) === null || _ctx_node_ === void 0 ? void 0 : _ctx_node_.type) === 'paragraph' && ctx.node[1][0] !== 0;
|
|
417
417
|
},
|
|
418
|
-
run: function(param) {
|
|
418
|
+
run: function run(param) {
|
|
419
419
|
var editor = param.editor, path = param.path;
|
|
420
420
|
Transforms.delete(editor, {
|
|
421
421
|
at: path
|
|
@@ -435,11 +435,11 @@ export var MdElements = {
|
|
|
435
435
|
},
|
|
436
436
|
frontmatter: {
|
|
437
437
|
reg: /^\s*---\s*/,
|
|
438
|
-
checkAllow: function(ctx) {
|
|
438
|
+
checkAllow: function checkAllow(ctx) {
|
|
439
439
|
var _ctx_node_, _ctx_node;
|
|
440
440
|
return !Path.hasPrevious(ctx.node[1]) && ((_ctx_node = ctx.node) === null || _ctx_node === void 0 ? void 0 : (_ctx_node_ = _ctx_node[0]) === null || _ctx_node_ === void 0 ? void 0 : _ctx_node_.type) === 'paragraph' && EditorUtils.isTop(ctx.editor, ctx.node[1]);
|
|
441
441
|
},
|
|
442
|
-
run: function(param) {
|
|
442
|
+
run: function run(param) {
|
|
443
443
|
var editor = param.editor, path = param.path;
|
|
444
444
|
Transforms.delete(editor, {
|
|
445
445
|
at: path
|
|
@@ -462,11 +462,11 @@ export var MdElements = {
|
|
|
462
462
|
blockquote: {
|
|
463
463
|
matchKey: ' ',
|
|
464
464
|
reg: /^\s*>\s+([^\n]+)?/,
|
|
465
|
-
checkAllow: function(ctx) {
|
|
465
|
+
checkAllow: function checkAllow(ctx) {
|
|
466
466
|
var _ctx_node_, _ctx_node;
|
|
467
467
|
return ((_ctx_node = ctx.node) === null || _ctx_node === void 0 ? void 0 : (_ctx_node_ = _ctx_node[0]) === null || _ctx_node_ === void 0 ? void 0 : _ctx_node_.type) === 'paragraph';
|
|
468
468
|
},
|
|
469
|
-
run: function(param) {
|
|
469
|
+
run: function run(param) {
|
|
470
470
|
var sel = param.sel, editor = param.editor, path = param.path;
|
|
471
471
|
if (sel && Range.isCollapsed(sel)) {
|
|
472
472
|
var text = EditorUtils.cutText(editor, {
|
|
@@ -255,7 +255,7 @@ import { insertParsedHtmlNodes } from "./insertParsedHtmlNodes";
|
|
|
255
255
|
import { parseMarkdownToNodesAndInsert } from "./parseMarkdownToNodesAndInsert";
|
|
256
256
|
/**
|
|
257
257
|
* 处理粘贴的 Slate Markdown 片段
|
|
258
|
-
*/ export var handleSlateMarkdownFragment = function(editor, clipboardData, currentTextSelection) {
|
|
258
|
+
*/ export var handleSlateMarkdownFragment = function handleSlateMarkdownFragment(editor, clipboardData, currentTextSelection) {
|
|
259
259
|
try {
|
|
260
260
|
var encoded = clipboardData.getData('application/x-slate-md-fragment');
|
|
261
261
|
var fragment = JSON.parse(encoded || '[]').map(function(node) {
|
|
@@ -304,7 +304,7 @@ import { parseMarkdownToNodesAndInsert } from "./parseMarkdownToNodesAndInsert";
|
|
|
304
304
|
};
|
|
305
305
|
/**
|
|
306
306
|
* 处理粘贴的 HTML 内容
|
|
307
|
-
*/ export var handleHtmlPaste = function(editor, clipboardData, editorProps) {
|
|
307
|
+
*/ export var handleHtmlPaste = function handleHtmlPaste(editor, clipboardData, editorProps) {
|
|
308
308
|
return _async_to_generator(function() {
|
|
309
309
|
var html, rtf, error;
|
|
310
310
|
return _ts_generator(this, function(_state) {
|
|
@@ -363,7 +363,7 @@ import { parseMarkdownToNodesAndInsert } from "./parseMarkdownToNodesAndInsert";
|
|
|
363
363
|
};
|
|
364
364
|
/**
|
|
365
365
|
* 处理粘贴的文件
|
|
366
|
-
*/ export var handleFilesPaste = function(editor, clipboardData, editorProps) {
|
|
366
|
+
*/ export var handleFilesPaste = function handleFilesPaste(editor, clipboardData, editorProps) {
|
|
367
367
|
return _async_to_generator(function() {
|
|
368
368
|
var _editorProps_image, fileList, hideLoading, _editor_selection_focus, _editor_selection, url, _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _iterator, _step, _value, file, _editorProps_image1, serverUrl, err, selection, node, at, error, error1;
|
|
369
369
|
return _ts_generator(this, function(_state) {
|
|
@@ -530,7 +530,7 @@ import { parseMarkdownToNodesAndInsert } from "./parseMarkdownToNodesAndInsert";
|
|
|
530
530
|
};
|
|
531
531
|
/**
|
|
532
532
|
* 处理特殊文本格式(media:// 和 attach:// 链接)
|
|
533
|
-
*/ export var handleSpecialTextPaste = function(editor, text, selection) {
|
|
533
|
+
*/ export var handleSpecialTextPaste = function handleSpecialTextPaste(editor, text, selection) {
|
|
534
534
|
if (text.startsWith('media://') || text.startsWith('attach://')) {
|
|
535
535
|
var path = EditorUtils.findMediaInsertPath(editor);
|
|
536
536
|
var urlObject = new URL(text);
|
|
@@ -585,7 +585,7 @@ import { parseMarkdownToNodesAndInsert } from "./parseMarkdownToNodesAndInsert";
|
|
|
585
585
|
};
|
|
586
586
|
/**
|
|
587
587
|
* 处理 HTTP 链接
|
|
588
|
-
*/ export var handleHttpLinkPaste = function(editor, text, selection, store) {
|
|
588
|
+
*/ export var handleHttpLinkPaste = function handleHttpLinkPaste(editor, text, selection, store) {
|
|
589
589
|
if (text.startsWith('http')) {
|
|
590
590
|
// 添加更严格的URL类型判断,避免误识别
|
|
591
591
|
var mediaType = getMediaType(text);
|
|
@@ -596,7 +596,7 @@ import { parseMarkdownToNodesAndInsert } from "./parseMarkdownToNodesAndInsert";
|
|
|
596
596
|
'audio'
|
|
597
597
|
].includes(mediaType)) {
|
|
598
598
|
// 进一步验证URL是否真的包含媒体文件
|
|
599
|
-
var isValidMediaUrl = function(url, type) {
|
|
599
|
+
var isValidMediaUrl = function isValidMediaUrl(url, type) {
|
|
600
600
|
if (!url) return false;
|
|
601
601
|
// 检查是否为blob URL或data URL
|
|
602
602
|
if (url.startsWith('blob:') || url.startsWith('data:')) {
|
|
@@ -684,7 +684,7 @@ import { parseMarkdownToNodesAndInsert } from "./parseMarkdownToNodesAndInsert";
|
|
|
684
684
|
};
|
|
685
685
|
/**
|
|
686
686
|
* 处理普通文本粘贴
|
|
687
|
-
*/ export var handlePlainTextPaste = function(editor, text, selection, plugins) {
|
|
687
|
+
*/ export var handlePlainTextPaste = function handlePlainTextPaste(editor, text, selection, plugins) {
|
|
688
688
|
return _async_to_generator(function() {
|
|
689
689
|
var success;
|
|
690
690
|
return _ts_generator(this, function(_state) {
|
|
@@ -747,7 +747,7 @@ import { parseMarkdownToNodesAndInsert } from "./parseMarkdownToNodesAndInsert";
|
|
|
747
747
|
};
|
|
748
748
|
/**
|
|
749
749
|
* 检查是否需要直接插入文本(在特定节点类型中)
|
|
750
|
-
*/ export var shouldInsertTextDirectly = function(editor, selection) {
|
|
750
|
+
*/ export var shouldInsertTextDirectly = function shouldInsertTextDirectly(editor, selection) {
|
|
751
751
|
if (!(selection === null || selection === void 0 ? void 0 : selection.focus)) return false;
|
|
752
752
|
var rangeNodes = Editor === null || Editor === void 0 ? void 0 : Editor.node(editor, [
|
|
753
753
|
selection.focus.path.at(0)
|
|
@@ -765,7 +765,7 @@ import { parseMarkdownToNodesAndInsert } from "./parseMarkdownToNodesAndInsert";
|
|
|
765
765
|
};
|
|
766
766
|
/**
|
|
767
767
|
* 处理标签节点的粘贴
|
|
768
|
-
*/ export var handleTagNodePaste = function(editor, currentTextSelection, clipboardData, curNode) {
|
|
768
|
+
*/ export var handleTagNodePaste = function handleTagNodePaste(editor, currentTextSelection, clipboardData, curNode) {
|
|
769
769
|
if (curNode === null || curNode === void 0 ? void 0 : curNode.tag) {
|
|
770
770
|
var text = clipboardData.getData('text/plain');
|
|
771
771
|
if (text) {
|
|
@@ -73,7 +73,7 @@ import { EditorUtils } from "../../utils/editorUtils";
|
|
|
73
73
|
* - 在表格末行和代码块末行下方插入段落
|
|
74
74
|
* - 处理media/attach元素的向下移动
|
|
75
75
|
* - 处理空段落的导航
|
|
76
|
-
*/ export var keyArrow = function(store, e) {
|
|
76
|
+
*/ export var keyArrow = function keyArrow(store, e) {
|
|
77
77
|
var editor = store === null || store === void 0 ? void 0 : store.editor;
|
|
78
78
|
var sel = editor.selection;
|
|
79
79
|
if (sel && Range.isCollapsed(sel)) {
|
|
@@ -118,7 +118,7 @@ import { EditorUtils } from "../../utils/editorUtils";
|
|
|
118
118
|
at: sel.focus.path
|
|
119
119
|
});
|
|
120
120
|
var _Editor_nodes = _sliced_to_array(Editor.nodes(editor, {
|
|
121
|
-
match: function(n) {
|
|
121
|
+
match: function match(n) {
|
|
122
122
|
return n.type === 'media' || n.type === 'attach';
|
|
123
123
|
}
|
|
124
124
|
}), 1), node = _Editor_nodes[0];
|
|
@@ -155,7 +155,7 @@ import { EditorUtils } from "../../utils/editorUtils";
|
|
|
155
155
|
}
|
|
156
156
|
if (isHotkey('up', e)) {
|
|
157
157
|
var _Editor_nodes1 = _sliced_to_array(Editor.nodes(editor, {
|
|
158
|
-
match: function(n) {
|
|
158
|
+
match: function match(n) {
|
|
159
159
|
return Element.isElement(n);
|
|
160
160
|
},
|
|
161
161
|
mode: 'lowest'
|
|
@@ -176,7 +176,7 @@ import { EditorUtils } from "../../utils/editorUtils";
|
|
|
176
176
|
}
|
|
177
177
|
if (isHotkey('down', e)) {
|
|
178
178
|
var _Editor_nodes2 = _sliced_to_array(Editor.nodes(editor, {
|
|
179
|
-
match: function(n) {
|
|
179
|
+
match: function match(n) {
|
|
180
180
|
return Element.isElement(n);
|
|
181
181
|
},
|
|
182
182
|
mode: 'lowest'
|
|
@@ -132,7 +132,7 @@ export var BackspaceKey = /*#__PURE__*/ function() {
|
|
|
132
132
|
if (!sel) return;
|
|
133
133
|
var nodes = Array.from(Editor.nodes(this.editor, {
|
|
134
134
|
mode: 'lowest',
|
|
135
|
-
match: function(n) {
|
|
135
|
+
match: function match(n) {
|
|
136
136
|
return Element.isElement(n);
|
|
137
137
|
}
|
|
138
138
|
}));
|
|
@@ -108,7 +108,7 @@ export var MatchKey = /*#__PURE__*/ function() {
|
|
|
108
108
|
value: function run(e) {
|
|
109
109
|
var _node_;
|
|
110
110
|
var _Editor_nodes = _sliced_to_array(Editor.nodes(this.editor, {
|
|
111
|
-
match: function(n) {
|
|
111
|
+
match: function match(n) {
|
|
112
112
|
return Element.isElement(n);
|
|
113
113
|
},
|
|
114
114
|
mode: 'lowest'
|
|
@@ -108,7 +108,7 @@ import { getListType, isListType } from "../withListsPlugin";
|
|
|
108
108
|
e.preventDefault();
|
|
109
109
|
if (Range.isCollapsed(sel)) {
|
|
110
110
|
var _Editor_nodes = _sliced_to_array(Editor.nodes(this.editor, {
|
|
111
|
-
match: function(n) {
|
|
111
|
+
match: function match(n) {
|
|
112
112
|
return Element.isElement(n) && [
|
|
113
113
|
'table-cell',
|
|
114
114
|
'paragraph'
|
|
@@ -135,7 +135,7 @@ import { getListType, isListType } from "../withListsPlugin";
|
|
|
135
135
|
}
|
|
136
136
|
if (e.shiftKey) {
|
|
137
137
|
var _Editor_nodes1 = _sliced_to_array(Editor.nodes(this.editor, {
|
|
138
|
-
match: function(n) {
|
|
138
|
+
match: function match(n) {
|
|
139
139
|
return Text.isText(n);
|
|
140
140
|
}
|
|
141
141
|
}), 1), leaf = _Editor_nodes1[0];
|
|
@@ -166,7 +166,7 @@ import { getListType, isListType } from "../withListsPlugin";
|
|
|
166
166
|
} else {
|
|
167
167
|
var _Range_edges = _sliced_to_array(Range.edges(sel), 2), start = _Range_edges[0], end = _Range_edges[1];
|
|
168
168
|
var _Editor_nodes2 = _sliced_to_array(Editor.nodes(this.editor, {
|
|
169
|
-
match: function(n) {
|
|
169
|
+
match: function match(n) {
|
|
170
170
|
return (n === null || n === void 0 ? void 0 : n.type) === 'code';
|
|
171
171
|
}
|
|
172
172
|
}), 1), code = _Editor_nodes2[0];
|
|
@@ -176,7 +176,7 @@ import { getListType, isListType } from "../withListsPlugin";
|
|
|
176
176
|
}
|
|
177
177
|
} else if (e.shiftKey) {
|
|
178
178
|
var _Editor_nodes3 = _sliced_to_array(Editor.nodes(this.editor, {
|
|
179
|
-
match: function(n) {
|
|
179
|
+
match: function match(n) {
|
|
180
180
|
return isListType(n);
|
|
181
181
|
}
|
|
182
182
|
}), 1), node1 = _Editor_nodes3[0];
|