@ant-design/agentic-ui 2.29.18 → 2.29.20

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.
Files changed (551) hide show
  1. package/dist/AILabel/index.js +2 -2
  2. package/dist/AILabel/style.js +1 -1
  3. package/dist/AgentRunBar/Robot.js +1 -1
  4. package/dist/AgentRunBar/index.js +2 -2
  5. package/dist/AgentRunBar/style.js +1 -1
  6. package/dist/AgenticLayout/index.js +2 -2
  7. package/dist/AgenticLayout/style.js +2 -2
  8. package/dist/AnswerAlert/components/ErrorIcon.js +1 -1
  9. package/dist/AnswerAlert/components/InfoIcon.js +1 -1
  10. package/dist/AnswerAlert/components/SuccessIcon.js +1 -1
  11. package/dist/AnswerAlert/components/WarningIcon.js +1 -1
  12. package/dist/AnswerAlert/index.js +1 -1
  13. package/dist/AnswerAlert/style.js +1 -1
  14. package/dist/BackTo/BackTop.js +1 -1
  15. package/dist/BackTo/ScrollVisibleButton.js +4 -4
  16. package/dist/BackTo/hooks/useScrollVisible.js +1 -1
  17. package/dist/BackTo/icons/BottomIcon.js +1 -1
  18. package/dist/BackTo/icons/TopIcon.js +1 -1
  19. package/dist/BackTo/style.js +1 -1
  20. package/dist/Bubble/AIBubble.js +5 -5
  21. package/dist/Bubble/Avatar/index.js +1 -1
  22. package/dist/Bubble/Avatar/isEmoji.js +1 -1
  23. package/dist/Bubble/Bubble.js +1 -1
  24. package/dist/Bubble/BubbleBeforeNode.js +3 -3
  25. package/dist/Bubble/FileView.js +6 -6
  26. package/dist/Bubble/List/PureBubbleList.js +3 -3
  27. package/dist/Bubble/List/index.js +3 -3
  28. package/dist/Bubble/List/style.js +1 -1
  29. package/dist/Bubble/MessagesContent/BubbleContext.js +2 -2
  30. package/dist/Bubble/MessagesContent/BubbleExtra.js +9 -11
  31. package/dist/Bubble/MessagesContent/CopyButton/index.js +2 -2
  32. package/dist/Bubble/MessagesContent/DocInfo.js +7 -7
  33. package/dist/Bubble/MessagesContent/EXCEPTION.js +1 -1
  34. package/dist/Bubble/MessagesContent/MarkdownPreview.js +1 -1
  35. package/dist/Bubble/MessagesContent/VoiceButton/index.js +8 -8
  36. package/dist/Bubble/MessagesContent/VoiceButton/style.js +1 -1
  37. package/dist/Bubble/MessagesContent/docInfoStyle.js +1 -1
  38. package/dist/Bubble/MessagesContent/icons.js +2 -2
  39. package/dist/Bubble/MessagesContent/index.js +5 -5
  40. package/dist/Bubble/MessagesContent/style.js +15 -8
  41. package/dist/Bubble/PureBubble.js +1 -1
  42. package/dist/Bubble/Title.js +4 -4
  43. package/dist/Bubble/UserBubble.js +4 -4
  44. package/dist/Bubble/schema-editor/SchemaEditorBridgeManager.js +3 -3
  45. package/dist/Bubble/schema-editor/useSchemaEditorBridge.js +1 -1
  46. package/dist/Bubble/style.js +1 -1
  47. package/dist/ChatBootPage/ButtonTab.js +1 -1
  48. package/dist/ChatBootPage/ButtonTabGroup.js +2 -2
  49. package/dist/ChatBootPage/ButtonTabGroupStyle.js +2 -2
  50. package/dist/ChatBootPage/ButtonTabStyle.js +2 -2
  51. package/dist/ChatBootPage/CaseReply.js +2 -2
  52. package/dist/ChatBootPage/CaseReplyStyle.js +2 -2
  53. package/dist/ChatBootPage/Title.js +1 -1
  54. package/dist/ChatBootPage/style.js +2 -2
  55. package/dist/ChatLayout/components/FooterBackground/images/bg.png +0 -0
  56. package/dist/ChatLayout/components/FooterBackground/index.d.ts +32 -0
  57. package/dist/ChatLayout/components/FooterBackground/index.js +89 -0
  58. package/dist/ChatLayout/index.js +6 -6
  59. package/dist/ChatLayout/style.js +7 -5
  60. package/dist/Components/ActionIconBox/index.js +12 -12
  61. package/dist/Components/ActionIconBox/style.js +1 -1
  62. package/dist/Components/ActionItemBox/ActionItemBox.js +1 -1
  63. package/dist/Components/ActionItemBox/style.js +1 -1
  64. package/dist/Components/Button/IconButton/index.js +1 -1
  65. package/dist/Components/Button/IconButton/style.js +1 -1
  66. package/dist/Components/Button/SwitchButton/index.js +3 -3
  67. package/dist/Components/Button/SwitchButton/style.js +1 -1
  68. package/dist/Components/Button/ToggleButton/index.js +1 -1
  69. package/dist/Components/Button/ToggleButton/style.js +1 -1
  70. package/dist/Components/GradientText/style.js +2 -2
  71. package/dist/Components/ImageList.js +2 -2
  72. package/dist/Components/LayoutHeader/index.js +4 -4
  73. package/dist/Components/LayoutHeader/style.js +2 -2
  74. package/dist/Components/Loading/CreativeRecommendationLoading.js +1 -1
  75. package/dist/Components/Loading/CreativeSparkLoading.js +1 -1
  76. package/dist/Components/Loading/Loading.js +1 -1
  77. package/dist/Components/Loading/style.js +1 -1
  78. package/dist/Components/Robot/index.js +1 -1
  79. package/dist/Components/Robot/lotties/BlowingWindLottie/index.js +1 -1
  80. package/dist/Components/Robot/lotties/BouncingLottie/index.js +1 -1
  81. package/dist/Components/Robot/lotties/DazingLottie/index.js +1 -1
  82. package/dist/Components/Robot/lotties/PeekLottie/index.js +1 -1
  83. package/dist/Components/Robot/lotties/ThinkingLottie/index.js +1 -1
  84. package/dist/Components/SuggestionList/index.js +4 -4
  85. package/dist/Components/SuggestionList/style.js +1 -1
  86. package/dist/Components/TextAnimate/index.js +2 -2
  87. package/dist/Components/TextAnimate/style.js +2 -2
  88. package/dist/Components/TypingAnimation/index.js +1 -1
  89. package/dist/Components/TypingAnimation/style.js +2 -2
  90. package/dist/Components/VisualList/index.js +3 -3
  91. package/dist/Components/VisualList/style.js +1 -1
  92. package/dist/Components/effects/CreativeRecommendationEffect/index.js +1 -1
  93. package/dist/Components/effects/LoadingEffect/index.js +1 -1
  94. package/dist/Components/icons/LoadingSpinnerIcon.js +1 -1
  95. package/dist/Components/lotties/CreativeSparkLottie/index.js +1 -1
  96. package/dist/Components/lotties/DazingLottie/index.js +1 -1
  97. package/dist/Components/lotties/LoadingLottie/index.js +1 -1
  98. package/dist/Components/lotties/TextLoading/index.js +1 -1
  99. package/dist/Components/lotties/TextLoading/style.js +1 -1
  100. package/dist/Components/lotties/ThinkingLottie/index.js +1 -1
  101. package/dist/Components/lotties/bubble-actions/Abstract/index.js +1 -1
  102. package/dist/Components/lotties/bubble-actions/Abstract/style.js +1 -1
  103. package/dist/Components/lotties/bubble-actions/Copy/index.js +1 -1
  104. package/dist/Components/lotties/bubble-actions/Dislike/index.js +1 -1
  105. package/dist/Components/lotties/bubble-actions/Like/index.js +1 -1
  106. package/dist/Components/lotties/bubble-actions/More/index.js +1 -1
  107. package/dist/Components/lotties/bubble-actions/Play/index.js +1 -1
  108. package/dist/Components/lotties/bubble-actions/Quote/index.js +1 -1
  109. package/dist/Components/lotties/bubble-actions/Refresh/index.js +1 -1
  110. package/dist/Components/lotties/bubble-actions/Share/index.js +1 -1
  111. package/dist/History/components/HistoryActionsBox.js +9 -9
  112. package/dist/History/components/HistoryEmpty.js +1 -1
  113. package/dist/History/components/HistoryEmptyIcon.js +1 -1
  114. package/dist/History/components/HistoryItem.js +4 -4
  115. package/dist/History/components/HistoryList.js +2 -2
  116. package/dist/History/components/LoadMoreComponent.js +2 -2
  117. package/dist/History/components/NewChatComponent.js +1 -1
  118. package/dist/History/components/NewChatComponent.style.js +2 -2
  119. package/dist/History/components/SearchComponent.js +6 -6
  120. package/dist/History/hooks/useHistory.js +1 -1
  121. package/dist/History/index.js +3 -3
  122. package/dist/History/menu.js +2 -2
  123. package/dist/History/style.js +1 -1
  124. package/dist/History/utils/index.js +2 -2
  125. package/dist/Hooks/useAutoScroll.js +3 -3
  126. package/dist/Hooks/useClickAway.js +2 -2
  127. package/dist/Hooks/useCopied.js +1 -1
  128. package/dist/Hooks/useElementSize.js +1 -1
  129. package/dist/Hooks/useIntersectionOnce.js +1 -1
  130. package/dist/Hooks/useRefFunction/index.js +1 -1
  131. package/dist/Hooks/useSpeechSynthesis.js +1 -1
  132. package/dist/Hooks/useStyle/index.js +2 -2
  133. package/dist/I18n/index.js +1 -1
  134. package/dist/Icons/animated/VoicePlayLottie/index.js +1 -1
  135. package/dist/Icons/animated/VoicingLottie/index.js +1 -1
  136. package/dist/MarkdownEditor/BaseMarkdownEditor.js +7 -7
  137. package/dist/MarkdownEditor/editor/Editor.js +21 -24
  138. package/dist/MarkdownEditor/editor/components/CommentList/index.js +6 -6
  139. package/dist/MarkdownEditor/editor/components/CommentList/style.js +1 -1
  140. package/dist/MarkdownEditor/editor/components/ContributorAvatar/index.js +2 -2
  141. package/dist/MarkdownEditor/editor/components/ContributorAvatar/style.js +1 -1
  142. package/dist/MarkdownEditor/editor/components/LazyElement/index.js +1 -1
  143. package/dist/MarkdownEditor/editor/components/LazyElement/style.js +2 -2
  144. package/dist/MarkdownEditor/editor/components/MediaErrorLink.js +2 -2
  145. package/dist/MarkdownEditor/editor/components/fntTag/index.js +1 -1
  146. package/dist/MarkdownEditor/editor/components/fntTag/style.js +1 -1
  147. package/dist/MarkdownEditor/editor/elements/Blockquote/index.js +1 -1
  148. package/dist/MarkdownEditor/editor/elements/Break/index.js +1 -1
  149. package/dist/MarkdownEditor/editor/elements/Card/index.js +1 -1
  150. package/dist/MarkdownEditor/editor/elements/Code/index.js +1 -1
  151. package/dist/MarkdownEditor/editor/elements/Comment/index.js +3 -3
  152. package/dist/MarkdownEditor/editor/elements/CommentLeaf/index.js +2 -2
  153. package/dist/MarkdownEditor/editor/elements/FncLeaf/index.js +1 -1
  154. package/dist/MarkdownEditor/editor/elements/FootnoteDefinition/index.js +2 -2
  155. package/dist/MarkdownEditor/editor/elements/FootnoteReference/index.js +2 -2
  156. package/dist/MarkdownEditor/editor/elements/Head/index.js +1 -1
  157. package/dist/MarkdownEditor/editor/elements/Hr/index.js +1 -1
  158. package/dist/MarkdownEditor/editor/elements/Image/index.js +17 -17
  159. package/dist/MarkdownEditor/editor/elements/InlineKatex/index.js +1 -1
  160. package/dist/MarkdownEditor/editor/elements/Katex/index.js +1 -1
  161. package/dist/MarkdownEditor/editor/elements/LinkCard/ReadonlyLinkCard.js +2 -2
  162. package/dist/MarkdownEditor/editor/elements/LinkCard/index.js +4 -4
  163. package/dist/MarkdownEditor/editor/elements/List/List.js +2 -2
  164. package/dist/MarkdownEditor/editor/elements/List/ListItem.js +9 -9
  165. package/dist/MarkdownEditor/editor/elements/Media/ReadonlyMedia.js +2 -2
  166. package/dist/MarkdownEditor/editor/elements/Media/index.js +15 -15
  167. package/dist/MarkdownEditor/editor/elements/Mermaid/index.js +1 -1
  168. package/dist/MarkdownEditor/editor/elements/Paragraph/index.js +2 -2
  169. package/dist/MarkdownEditor/editor/elements/Schema/index.js +4 -4
  170. package/dist/MarkdownEditor/editor/elements/Table/ReadonlyTableComponent.js +5 -5
  171. package/dist/MarkdownEditor/editor/elements/Table/SimpleTable.js +1 -1
  172. package/dist/MarkdownEditor/editor/elements/Table/Table.js +5 -5
  173. package/dist/MarkdownEditor/editor/elements/Table/TableCellIndex/index.js +1 -1
  174. package/dist/MarkdownEditor/editor/elements/Table/TableCellIndexSpacer/index.js +1 -1
  175. package/dist/MarkdownEditor/editor/elements/Table/TableContext.js +1 -1
  176. package/dist/MarkdownEditor/editor/elements/Table/TableRowIndex/index.js +1 -1
  177. package/dist/MarkdownEditor/editor/elements/Table/Td/index.js +2 -2
  178. package/dist/MarkdownEditor/editor/elements/Table/index.js +5 -5
  179. package/dist/MarkdownEditor/editor/elements/Table/useScrollShadow.js +2 -2
  180. package/dist/MarkdownEditor/editor/elements/TagPopup/index.js +18 -18
  181. package/dist/MarkdownEditor/editor/elements/index.js +9 -9
  182. package/dist/MarkdownEditor/editor/parser/parse/applyContextPropsAndConfig.js +2 -2
  183. package/dist/MarkdownEditor/editor/parser/parse/parseBlockElements.js +9 -9
  184. package/dist/MarkdownEditor/editor/parser/parse/parseCode.js +5 -5
  185. package/dist/MarkdownEditor/editor/parser/parse/parseElements.js +3 -3
  186. package/dist/MarkdownEditor/editor/parser/parse/parseEmptyLines.js +1 -1
  187. package/dist/MarkdownEditor/editor/parser/parse/parseFootnote.js +1 -1
  188. package/dist/MarkdownEditor/editor/parser/parse/parseHtml.js +18 -18
  189. package/dist/MarkdownEditor/editor/parser/parse/parseMath.js +3 -3
  190. package/dist/MarkdownEditor/editor/parser/parse/parseMedia.js +3 -3
  191. package/dist/MarkdownEditor/editor/parser/parse/parseTable.js +10 -10
  192. package/dist/MarkdownEditor/editor/parser/parse/parseText.js +5 -5
  193. package/dist/MarkdownEditor/editor/parser/parserMarkdownToSlateNode.js +24 -24
  194. package/dist/MarkdownEditor/editor/parser/parserMdToSchema.js +2 -2
  195. package/dist/MarkdownEditor/editor/parser/parserSlateNodeToMarkdown.js +41 -41
  196. package/dist/MarkdownEditor/editor/plugins/catchError.js +2 -2
  197. package/dist/MarkdownEditor/editor/plugins/elements.js +21 -21
  198. package/dist/MarkdownEditor/editor/plugins/handlePaste.js +9 -9
  199. package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/arrow.js +4 -4
  200. package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/backspace.js +1 -1
  201. package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/enter.js +1 -1
  202. package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/match.js +1 -1
  203. package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/tab.js +4 -4
  204. package/dist/MarkdownEditor/editor/plugins/insertParsedHtmlNodes.js +44 -44
  205. package/dist/MarkdownEditor/editor/plugins/parseMarkdownToNodesAndInsert.js +1 -1
  206. package/dist/MarkdownEditor/editor/plugins/useHighlight.js +5 -5
  207. package/dist/MarkdownEditor/editor/plugins/useKeyboard.js +5 -5
  208. package/dist/MarkdownEditor/editor/plugins/useOnchange.js +1 -1
  209. package/dist/MarkdownEditor/editor/plugins/utils.js +2 -2
  210. package/dist/MarkdownEditor/editor/plugins/withCardPlugin.js +2 -2
  211. package/dist/MarkdownEditor/editor/plugins/withCodeTagPlugin.js +2 -2
  212. package/dist/MarkdownEditor/editor/plugins/withInlineNodes.js +1 -1
  213. package/dist/MarkdownEditor/editor/plugins/withLinkAndMediaPlugin.js +2 -2
  214. package/dist/MarkdownEditor/editor/plugins/withListsPlugin.js +3 -3
  215. package/dist/MarkdownEditor/editor/plugins/withMarkdown.js +1 -1
  216. package/dist/MarkdownEditor/editor/plugins/withSchemaPlugin.js +2 -2
  217. package/dist/MarkdownEditor/editor/plugins/withVoidNodes.js +1 -1
  218. package/dist/MarkdownEditor/editor/store.js +7 -7
  219. package/dist/MarkdownEditor/editor/style.js +2 -2
  220. package/dist/MarkdownEditor/editor/tools/DragHandle.js +2 -2
  221. package/dist/MarkdownEditor/editor/tools/InsertAutocomplete.js +22 -22
  222. package/dist/MarkdownEditor/editor/tools/InsertLink.js +7 -7
  223. package/dist/MarkdownEditor/editor/tools/Leading.js +8 -8
  224. package/dist/MarkdownEditor/editor/tools/ToolBar/BaseBar.js +6 -6
  225. package/dist/MarkdownEditor/editor/tools/ToolBar/FloatBar.js +5 -5
  226. package/dist/MarkdownEditor/editor/tools/ToolBar/ReadonlyBaseBar.js +7 -7
  227. package/dist/MarkdownEditor/editor/tools/ToolBar/ToolBar.js +2 -2
  228. package/dist/MarkdownEditor/editor/tools/ToolBar/components/ColorPickerButton.js +1 -1
  229. package/dist/MarkdownEditor/editor/tools/ToolBar/components/FormattingTools.js +1 -1
  230. package/dist/MarkdownEditor/editor/tools/ToolBar/components/HeadingDropdown.js +1 -1
  231. package/dist/MarkdownEditor/editor/tools/ToolBar/config/toolsConfig.js +9 -9
  232. package/dist/MarkdownEditor/editor/tools/ToolBar/floatBarStyle.js +1 -1
  233. package/dist/MarkdownEditor/editor/tools/ToolBar/hooks/useToolBarLogic.js +4 -4
  234. package/dist/MarkdownEditor/editor/tools/ToolBar/toolBarStyle.js +1 -1
  235. package/dist/MarkdownEditor/editor/tools/insertAutocompleteStyle.js +1 -1
  236. package/dist/MarkdownEditor/editor/utils/ace.js +3 -3
  237. package/dist/MarkdownEditor/editor/utils/docx/docxDeserializer.js +2 -2
  238. package/dist/MarkdownEditor/editor/utils/docx/module.js +9 -9
  239. package/dist/MarkdownEditor/editor/utils/docx/utils.js +5 -5
  240. package/dist/MarkdownEditor/editor/utils/dom.js +5 -5
  241. package/dist/MarkdownEditor/editor/utils/editorCommands.js +5 -5
  242. package/dist/MarkdownEditor/editor/utils/editorUtils.js +17 -17
  243. package/dist/MarkdownEditor/editor/utils/index.js +9 -9
  244. package/dist/MarkdownEditor/editor/utils/keyboard.js +4 -4
  245. package/dist/MarkdownEditor/editor/utils/markdownToHtml.js +6 -6
  246. package/dist/MarkdownEditor/editor/utils/media.js +2 -2
  247. package/dist/MarkdownEditor/editor/utils/path.js +3 -3
  248. package/dist/MarkdownEditor/editor/utils/performanceMonitor.js +2 -2
  249. package/dist/MarkdownEditor/editor/utils/useLocalState.js +1 -1
  250. package/dist/MarkdownEditor/hooks/editor.js +2 -2
  251. package/dist/MarkdownEditor/hooks/subscribe.js +1 -1
  252. package/dist/MarkdownEditor/index.js +1 -1
  253. package/dist/MarkdownEditor/style.js +1 -1
  254. package/dist/MarkdownEditor/utils/exportHtml.js +2 -2
  255. package/dist/MarkdownEditor/utils/native-table/native-table-editor.js +4 -4
  256. package/dist/MarkdownInputField/AttachmentButton/AttachmentButtonPopover.js +8 -8
  257. package/dist/MarkdownInputField/AttachmentButton/AttachmentFileList/AttachmentFileIcon.js +1 -1
  258. package/dist/MarkdownInputField/AttachmentButton/AttachmentFileList/AttachmentFileListItem.js +10 -10
  259. package/dist/MarkdownInputField/AttachmentButton/AttachmentFileList/index.js +10 -10
  260. package/dist/MarkdownInputField/AttachmentButton/AttachmentFileList/style.js +1 -1
  261. package/dist/MarkdownInputField/AttachmentButton/index.js +18 -18
  262. package/dist/MarkdownInputField/AttachmentButton/style.js +1 -1
  263. package/dist/MarkdownInputField/AttachmentButton/utils.js +8 -8
  264. package/dist/MarkdownInputField/BeforeToolContainer/BeforeToolContainer.js +4 -4
  265. package/dist/MarkdownInputField/BorderBeamAnimation.js +1 -1
  266. package/dist/MarkdownInputField/Enlargement/index.js +1 -1
  267. package/dist/MarkdownInputField/FileMapView/FileMapViewItem.js +8 -8
  268. package/dist/MarkdownInputField/FileMapView/index.js +2 -2
  269. package/dist/MarkdownInputField/FileMapView/style.js +1 -1
  270. package/dist/MarkdownInputField/FilePaste/index.js +2 -2
  271. package/dist/MarkdownInputField/FileUploadManager/index.js +2 -2
  272. package/dist/MarkdownInputField/MarkdownInputField.js +10 -10
  273. package/dist/MarkdownInputField/QuickActions/index.js +5 -5
  274. package/dist/MarkdownInputField/RefinePromptButton/index.js +3 -3
  275. package/dist/MarkdownInputField/RefinePromptButton/style.js +1 -1
  276. package/dist/MarkdownInputField/SendActions/index.js +6 -6
  277. package/dist/MarkdownInputField/SendButton/index.js +3 -3
  278. package/dist/MarkdownInputField/SendButton/style.js +1 -1
  279. package/dist/MarkdownInputField/SkillModeBar/index.js +3 -3
  280. package/dist/MarkdownInputField/SkillModeBar/style.js +1 -1
  281. package/dist/MarkdownInputField/Suggestion/index.js +8 -8
  282. package/dist/MarkdownInputField/TopOperatingArea/index.js +2 -2
  283. package/dist/MarkdownInputField/TopOperatingArea/style.js +2 -2
  284. package/dist/MarkdownInputField/VoiceInput/index.js +2 -2
  285. package/dist/MarkdownInputField/VoiceInput/style.js +1 -1
  286. package/dist/MarkdownInputField/VoiceInputManager/index.js +3 -3
  287. package/dist/MarkdownInputField/hooks/useMarkdownInputFieldActions.js +1 -1
  288. package/dist/MarkdownInputField/hooks/useMarkdownInputFieldHandlers.js +1 -1
  289. package/dist/MarkdownInputField/hooks/useMarkdownInputFieldLayout.js +2 -2
  290. package/dist/MarkdownInputField/hooks/useMarkdownInputFieldRefs.js +1 -1
  291. package/dist/MarkdownInputField/hooks/useMarkdownInputFieldState.js +1 -1
  292. package/dist/MarkdownInputField/hooks/useMarkdownInputFieldStyles.js +1 -1
  293. package/dist/MarkdownInputField/style.js +2 -2
  294. package/dist/MarkdownInputField/utils/renderHelpers.js +5 -5
  295. package/dist/Plugins/chart/AreaChart/index.js +4 -4
  296. package/dist/Plugins/chart/AreaChart/style.js +1 -1
  297. package/dist/Plugins/chart/BarChart/index.js +11 -11
  298. package/dist/Plugins/chart/BarChart/style.js +1 -1
  299. package/dist/Plugins/chart/ChartAttrToolBar/ChartAttrToolBarStyle.js +1 -1
  300. package/dist/Plugins/chart/ChartAttrToolBar/index.js +3 -3
  301. package/dist/Plugins/chart/ChartMark/Area.js +2 -2
  302. package/dist/Plugins/chart/ChartMark/Bar.js +2 -2
  303. package/dist/Plugins/chart/ChartMark/Column.js +2 -2
  304. package/dist/Plugins/chart/ChartMark/Container.js +1 -1
  305. package/dist/Plugins/chart/ChartMark/Line.js +2 -2
  306. package/dist/Plugins/chart/ChartMark/Pie.js +2 -2
  307. package/dist/Plugins/chart/ChartRender.js +19 -19
  308. package/dist/Plugins/chart/ChartStatistic/index.js +3 -3
  309. package/dist/Plugins/chart/ChartStatistic/style.js +1 -1
  310. package/dist/Plugins/chart/ChartStatistic/utils.js +2 -2
  311. package/dist/Plugins/chart/DonutChart/Legend.js +3 -3
  312. package/dist/Plugins/chart/DonutChart/hooks.js +5 -5
  313. package/dist/Plugins/chart/DonutChart/index.js +11 -11
  314. package/dist/Plugins/chart/DonutChart/plugins.js +3 -3
  315. package/dist/Plugins/chart/DonutChart/style.js +1 -1
  316. package/dist/Plugins/chart/FunnelChart/index.js +14 -14
  317. package/dist/Plugins/chart/FunnelChart/style.js +1 -1
  318. package/dist/Plugins/chart/LineChart/index.js +3 -3
  319. package/dist/Plugins/chart/LineChart/style.js +1 -1
  320. package/dist/Plugins/chart/RadarChart/index.js +7 -7
  321. package/dist/Plugins/chart/RadarChart/style.js +1 -1
  322. package/dist/Plugins/chart/ScatterChart/index.js +7 -7
  323. package/dist/Plugins/chart/ScatterChart/style.js +1 -1
  324. package/dist/Plugins/chart/components/ChartContainer/ChartContainer.js +1 -1
  325. package/dist/Plugins/chart/components/ChartContainer/style.js +2 -2
  326. package/dist/Plugins/chart/components/ChartFilter/ChartFilter.js +6 -6
  327. package/dist/Plugins/chart/components/ChartFilter/style.js +1 -1
  328. package/dist/Plugins/chart/components/ChartToolBar/ChartToolBar.js +2 -2
  329. package/dist/Plugins/chart/components/ChartToolBar/style.js +1 -1
  330. package/dist/Plugins/chart/components/icons/TimeIcon.js +1 -1
  331. package/dist/Plugins/chart/components/index.js +1 -1
  332. package/dist/Plugins/chart/hooks/useChartDataFilter.js +1 -1
  333. package/dist/Plugins/chart/hooks/useChartStatistics.js +1 -1
  334. package/dist/Plugins/chart/hooks/useChartTheme.js +1 -1
  335. package/dist/Plugins/chart/hooks/useResponsiveSize.js +2 -2
  336. package/dist/Plugins/chart/index.js +8 -8
  337. package/dist/Plugins/chart/loadChartRuntime.js +1 -1
  338. package/dist/Plugins/chart/utils/registerChart.js +3 -3
  339. package/dist/Plugins/chart/utils.js +12 -12
  340. package/dist/Plugins/code/CodeUI/Katex/Katex.js +1 -1
  341. package/dist/Plugins/code/components/AceEditor.js +2 -2
  342. package/dist/Plugins/code/components/CodeContainer.js +3 -3
  343. package/dist/Plugins/code/components/CodeRenderer.js +2 -2
  344. package/dist/Plugins/code/components/CodeToolbar.js +5 -5
  345. package/dist/Plugins/code/components/LanguageSelector.js +7 -7
  346. package/dist/Plugins/code/components/LoadImage.js +3 -3
  347. package/dist/Plugins/code/components/ThinkBlock.js +2 -2
  348. package/dist/Plugins/code/index.js +1 -1
  349. package/dist/Plugins/code/langIcons/AbapIcon.js +1 -1
  350. package/dist/Plugins/code/langIcons/ActionscriptIcon.js +1 -1
  351. package/dist/Plugins/code/langIcons/AdaIcon.js +1 -1
  352. package/dist/Plugins/code/langIcons/ApacheIcon.js +1 -1
  353. package/dist/Plugins/code/langIcons/ApexIcon.js +1 -1
  354. package/dist/Plugins/code/langIcons/AplIcon.js +1 -1
  355. package/dist/Plugins/code/langIcons/ApplescriptIcon.js +1 -1
  356. package/dist/Plugins/code/langIcons/AstroIcon.js +1 -1
  357. package/dist/Plugins/code/langIcons/AwkIcon.js +1 -1
  358. package/dist/Plugins/code/langIcons/BallerinaIcon.js +1 -1
  359. package/dist/Plugins/code/langIcons/BatIcon.js +1 -1
  360. package/dist/Plugins/code/langIcons/BicepIcon.js +1 -1
  361. package/dist/Plugins/code/langIcons/BladeIcon.js +1 -1
  362. package/dist/Plugins/code/langIcons/CIcon.js +1 -1
  363. package/dist/Plugins/code/langIcons/CadenceIcon.js +1 -1
  364. package/dist/Plugins/code/langIcons/ClojureIcon.js +1 -1
  365. package/dist/Plugins/code/langIcons/CmakeIcon.js +1 -1
  366. package/dist/Plugins/code/langIcons/CobolIcon.js +1 -1
  367. package/dist/Plugins/code/langIcons/CodeqlIcon.js +1 -1
  368. package/dist/Plugins/code/langIcons/CoffeeIcon.js +1 -1
  369. package/dist/Plugins/code/langIcons/ConsoleIcon.js +1 -1
  370. package/dist/Plugins/code/langIcons/CppIcon.js +1 -1
  371. package/dist/Plugins/code/langIcons/CrystalIcon.js +1 -1
  372. package/dist/Plugins/code/langIcons/CsharpIcon.js +1 -1
  373. package/dist/Plugins/code/langIcons/CssIcon.js +1 -1
  374. package/dist/Plugins/code/langIcons/DIcon.js +1 -1
  375. package/dist/Plugins/code/langIcons/DartIcon.js +1 -1
  376. package/dist/Plugins/code/langIcons/DatabaseIcon.js +1 -1
  377. package/dist/Plugins/code/langIcons/DiffIcon.js +1 -1
  378. package/dist/Plugins/code/langIcons/DockerIcon.js +1 -1
  379. package/dist/Plugins/code/langIcons/DotenvIcon.js +1 -1
  380. package/dist/Plugins/code/langIcons/ElixirIcon.js +1 -1
  381. package/dist/Plugins/code/langIcons/ElmIcon.js +1 -1
  382. package/dist/Plugins/code/langIcons/ErbIcon.js +1 -1
  383. package/dist/Plugins/code/langIcons/ErlangIcon.js +1 -1
  384. package/dist/Plugins/code/langIcons/FsharpIcon.js +1 -1
  385. package/dist/Plugins/code/langIcons/GdscriptIcon.js +1 -1
  386. package/dist/Plugins/code/langIcons/GlslIcon.js +1 -1
  387. package/dist/Plugins/code/langIcons/GnuplotIcon.js +1 -1
  388. package/dist/Plugins/code/langIcons/GoIcon.js +1 -1
  389. package/dist/Plugins/code/langIcons/GraphqlIcon.js +1 -1
  390. package/dist/Plugins/code/langIcons/GroovyIcon.js +1 -1
  391. package/dist/Plugins/code/langIcons/HackIcon.js +1 -1
  392. package/dist/Plugins/code/langIcons/HamlIcon.js +1 -1
  393. package/dist/Plugins/code/langIcons/HandlebarsIcon.js +1 -1
  394. package/dist/Plugins/code/langIcons/HaskellIcon.js +1 -1
  395. package/dist/Plugins/code/langIcons/HclIcon.js +1 -1
  396. package/dist/Plugins/code/langIcons/HclLightIcon.js +1 -1
  397. package/dist/Plugins/code/langIcons/HjsonIcon.js +1 -1
  398. package/dist/Plugins/code/langIcons/HlslIcon.js +1 -1
  399. package/dist/Plugins/code/langIcons/HtmlIcon.js +1 -1
  400. package/dist/Plugins/code/langIcons/HttpIcon.js +1 -1
  401. package/dist/Plugins/code/langIcons/ImbaIcon.js +1 -1
  402. package/dist/Plugins/code/langIcons/IniIcon.js +1 -1
  403. package/dist/Plugins/code/langIcons/JavaIcon.js +1 -1
  404. package/dist/Plugins/code/langIcons/JavascriptIcon.js +1 -1
  405. package/dist/Plugins/code/langIcons/JinjaIcon.js +1 -1
  406. package/dist/Plugins/code/langIcons/Json5Icon.js +1 -1
  407. package/dist/Plugins/code/langIcons/JsonIcon.js +1 -1
  408. package/dist/Plugins/code/langIcons/JsonnetIcon.js +1 -1
  409. package/dist/Plugins/code/langIcons/JuliaIcon.js +1 -1
  410. package/dist/Plugins/code/langIcons/KotlinIcon.js +1 -1
  411. package/dist/Plugins/code/langIcons/KustoIcon.js +1 -1
  412. package/dist/Plugins/code/langIcons/LessIcon.js +1 -1
  413. package/dist/Plugins/code/langIcons/LiquidIcon.js +1 -1
  414. package/dist/Plugins/code/langIcons/LispIcon.js +1 -1
  415. package/dist/Plugins/code/langIcons/LuaIcon.js +1 -1
  416. package/dist/Plugins/code/langIcons/MakefileIcon.js +1 -1
  417. package/dist/Plugins/code/langIcons/MarkdownIcon.js +1 -1
  418. package/dist/Plugins/code/langIcons/MarkojsIcon.js +1 -1
  419. package/dist/Plugins/code/langIcons/MatlabIcon.js +1 -1
  420. package/dist/Plugins/code/langIcons/MdxIcon.js +1 -1
  421. package/dist/Plugins/code/langIcons/MermaidIcon.js +1 -1
  422. package/dist/Plugins/code/langIcons/MojoIcon.js +1 -1
  423. package/dist/Plugins/code/langIcons/NginxIcon.js +1 -1
  424. package/dist/Plugins/code/langIcons/NimIcon.js +1 -1
  425. package/dist/Plugins/code/langIcons/NixIcon.js +1 -1
  426. package/dist/Plugins/code/langIcons/ObjectiveCIcon.js +1 -1
  427. package/dist/Plugins/code/langIcons/ObjectiveCppIcon.js +1 -1
  428. package/dist/Plugins/code/langIcons/OcamlIcon.js +1 -1
  429. package/dist/Plugins/code/langIcons/PascalIcon.js +1 -1
  430. package/dist/Plugins/code/langIcons/Perl6Icon.js +1 -1
  431. package/dist/Plugins/code/langIcons/PerlIcon.js +1 -1
  432. package/dist/Plugins/code/langIcons/PhpIcon.js +1 -1
  433. package/dist/Plugins/code/langIcons/PostcssIcon.js +1 -1
  434. package/dist/Plugins/code/langIcons/PowershellIcon.js +1 -1
  435. package/dist/Plugins/code/langIcons/PrismaIcon.js +1 -1
  436. package/dist/Plugins/code/langIcons/PrologIcon.js +1 -1
  437. package/dist/Plugins/code/langIcons/ProtoIcon.js +1 -1
  438. package/dist/Plugins/code/langIcons/PugIcon.js +1 -1
  439. package/dist/Plugins/code/langIcons/PuppetIcon.js +1 -1
  440. package/dist/Plugins/code/langIcons/PurescriptIcon.js +1 -1
  441. package/dist/Plugins/code/langIcons/PythonIcon.js +1 -1
  442. package/dist/Plugins/code/langIcons/RIcon.js +1 -1
  443. package/dist/Plugins/code/langIcons/RazorIcon.js +1 -1
  444. package/dist/Plugins/code/langIcons/ReactIcon.js +1 -1
  445. package/dist/Plugins/code/langIcons/ReactTsIcon.js +1 -1
  446. package/dist/Plugins/code/langIcons/RubyIcon.js +1 -1
  447. package/dist/Plugins/code/langIcons/RustIcon.js +1 -1
  448. package/dist/Plugins/code/langIcons/SasIcon.js +1 -1
  449. package/dist/Plugins/code/langIcons/SassIcon.js +1 -1
  450. package/dist/Plugins/code/langIcons/ScalaIcon.js +1 -1
  451. package/dist/Plugins/code/langIcons/SchemeIcon.js +1 -1
  452. package/dist/Plugins/code/langIcons/ShaderlabIcon.js +1 -1
  453. package/dist/Plugins/code/langIcons/SolidityIcon.js +1 -1
  454. package/dist/Plugins/code/langIcons/SparqlIcon.js +1 -1
  455. package/dist/Plugins/code/langIcons/StataIcon.js +1 -1
  456. package/dist/Plugins/code/langIcons/StylusIcon.js +1 -1
  457. package/dist/Plugins/code/langIcons/SvelteIcon.js +1 -1
  458. package/dist/Plugins/code/langIcons/SwiftIcon.js +1 -1
  459. package/dist/Plugins/code/langIcons/SystemverilogIcon.js +1 -1
  460. package/dist/Plugins/code/langIcons/TclIcon.js +1 -1
  461. package/dist/Plugins/code/langIcons/TexIcon.js +1 -1
  462. package/dist/Plugins/code/langIcons/TomlIcon.js +1 -1
  463. package/dist/Plugins/code/langIcons/TwigIcon.js +1 -1
  464. package/dist/Plugins/code/langIcons/TypescriptIcon.js +1 -1
  465. package/dist/Plugins/code/langIcons/VerilogIcon.js +1 -1
  466. package/dist/Plugins/code/langIcons/VhdlIcon.js +1 -1
  467. package/dist/Plugins/code/langIcons/VimIcon.js +1 -1
  468. package/dist/Plugins/code/langIcons/VueIcon.js +1 -1
  469. package/dist/Plugins/code/langIcons/WebassemblyIcon.js +1 -1
  470. package/dist/Plugins/code/langIcons/WenyanIcon.js +1 -1
  471. package/dist/Plugins/code/langIcons/WgslIcon.js +1 -1
  472. package/dist/Plugins/code/langIcons/WolframlanguageIcon.js +1 -1
  473. package/dist/Plugins/code/langIcons/XmlIcon.js +1 -1
  474. package/dist/Plugins/code/langIcons/XslIcon.js +1 -1
  475. package/dist/Plugins/code/langIcons/YamlIcon.js +1 -1
  476. package/dist/Plugins/code/langIcons/ZigIcon.js +1 -1
  477. package/dist/Plugins/code/loadAceEditor.js +3 -3
  478. package/dist/Plugins/katex/InlineKatex.js +2 -2
  479. package/dist/Plugins/katex/Katex.js +1 -1
  480. package/dist/Plugins/katex/index.js +2 -2
  481. package/dist/Plugins/katex/loadKatex.js +2 -2
  482. package/dist/Plugins/mermaid/Mermaid.js +1 -1
  483. package/dist/Plugins/mermaid/MermaidFallback.js +1 -1
  484. package/dist/Plugins/mermaid/MermaidRendererImpl.js +1 -1
  485. package/dist/Plugins/mermaid/index.js +5 -5
  486. package/dist/Plugins/mermaid/style.js +1 -1
  487. package/dist/Plugins/mermaid/useMermaidRender.js +1 -1
  488. package/dist/Plugins/mermaid/utils.js +3 -3
  489. package/dist/Quote/index.js +2 -2
  490. package/dist/Quote/style.js +1 -1
  491. package/dist/Schema/SchemaEditor/AceEditorWrapper.js +1 -1
  492. package/dist/Schema/SchemaEditor/index.js +6 -6
  493. package/dist/Schema/SchemaEditor/style.js +1 -1
  494. package/dist/Schema/SchemaForm/index.js +4 -4
  495. package/dist/Schema/SchemaRenderer/index.js +8 -8
  496. package/dist/TaskList/index.js +4 -4
  497. package/dist/TaskList/style.js +1 -1
  498. package/dist/ThoughtChainList/CostMillis.js +2 -2
  499. package/dist/ThoughtChainList/DeepThink.js +1 -1
  500. package/dist/ThoughtChainList/DotAni/index.js +1 -1
  501. package/dist/ThoughtChainList/DotAni/style.js +1 -1
  502. package/dist/ThoughtChainList/MarkdownEditor.js +2 -2
  503. package/dist/ThoughtChainList/RagRetrievalInfo.js +2 -2
  504. package/dist/ThoughtChainList/TableSql.js +8 -8
  505. package/dist/ThoughtChainList/TitleInfo.js +3 -3
  506. package/dist/ThoughtChainList/ToolCall.js +7 -7
  507. package/dist/ThoughtChainList/WebSearch.js +1 -1
  508. package/dist/ThoughtChainList/style.js +1 -1
  509. package/dist/ToolUseBar/BarItem/Content.js +5 -5
  510. package/dist/ToolUseBar/BarItem/index.js +1 -1
  511. package/dist/ToolUseBar/index.js +1 -1
  512. package/dist/ToolUseBar/style.js +1 -1
  513. package/dist/ToolUseBarThink/index.js +10 -10
  514. package/dist/ToolUseBarThink/style.js +1 -1
  515. package/dist/Types/message.d.ts +1 -0
  516. package/dist/Utils/debugUtils.js +1 -1
  517. package/dist/Utils/formatTime.js +1 -1
  518. package/dist/Utils/getScroll.js +2 -2
  519. package/dist/Utils/loadCSS.js +2 -2
  520. package/dist/Utils/proxySandbox/ProxySandbox.js +37 -37
  521. package/dist/Utils/proxySandbox/SecurityContextManager.js +6 -6
  522. package/dist/Utils/scrollTo.js +1 -1
  523. package/dist/Utils/throttleByAnimationFrame.js +2 -2
  524. package/dist/WelcomeMessage/index.js +1 -1
  525. package/dist/WelcomeMessage/style.js +1 -1
  526. package/dist/Workspace/Browser/index.js +13 -13
  527. package/dist/Workspace/Browser/style.js +1 -1
  528. package/dist/Workspace/File/FileComponent.js +38 -38
  529. package/dist/Workspace/File/FileTypeProcessor.js +8 -8
  530. package/dist/Workspace/File/PreviewComponent.js +14 -14
  531. package/dist/Workspace/File/style.js +1 -1
  532. package/dist/Workspace/File/utils.js +3 -3
  533. package/dist/Workspace/HtmlPreview/index.js +5 -5
  534. package/dist/Workspace/HtmlPreview/style.js +1 -1
  535. package/dist/Workspace/RealtimeFollow/index.js +18 -18
  536. package/dist/Workspace/RealtimeFollow/style.js +1 -1
  537. package/dist/Workspace/Task/index.js +3 -3
  538. package/dist/Workspace/Task/style.js +1 -1
  539. package/dist/Workspace/index.js +9 -9
  540. package/dist/Workspace/style.js +1 -1
  541. package/dist/Workspace/types.js +3 -3
  542. package/dist/Workspace/utils/codeLanguageUtils.js +3 -3
  543. package/dist/Workspace/utils.js +2 -2
  544. package/package.json +4 -4
  545. package/dist/ChatLayout/components/FooterBackgroundLottie/images/img_0.png +0 -0
  546. package/dist/ChatLayout/components/FooterBackgroundLottie/images/img_1.png +0 -0
  547. package/dist/ChatLayout/components/FooterBackgroundLottie/images/img_2.png +0 -0
  548. package/dist/ChatLayout/components/FooterBackgroundLottie/index.d.ts +0 -51
  549. package/dist/ChatLayout/components/FooterBackgroundLottie/index.js +0 -45
  550. package/dist/ChatLayout/components/FooterBackgroundLottie/lottie.d.ts +0 -85
  551. package/dist/ChatLayout/components/FooterBackgroundLottie/lottie.js +0 -382
@@ -88,7 +88,7 @@ var inlineNode = new Set([
88
88
  ]);
89
89
  /**
90
90
  * 尝试使用插件转换节点
91
- */ var tryPluginConversion = function(node, preString, parent, plugins) {
91
+ */ var tryPluginConversion = function tryPluginConversion(node, preString, parent, plugins) {
92
92
  if (!(plugins === null || plugins === void 0 ? void 0 : plugins.length)) return null;
93
93
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
94
94
  try {
@@ -120,7 +120,7 @@ var inlineNode = new Set([
120
120
  };
121
121
  /**
122
122
  * 转换插件节点为 Markdown 字符串
123
- */ var convertPluginNode = function(converted, preString, parent, plugins) {
123
+ */ var convertPluginNode = function convertPluginNode(converted, preString, parent, plugins) {
124
124
  switch(converted.type){
125
125
  case 'code':
126
126
  return convertCodeNode(converted, preString);
@@ -138,7 +138,7 @@ var inlineNode = new Set([
138
138
  };
139
139
  /**
140
140
  * 转换代码节点
141
- */ var convertCodeNode = function(codeNode, preString) {
141
+ */ var convertCodeNode = function convertCodeNode(codeNode, preString) {
142
142
  var language = codeNode.lang || '';
143
143
  var value = codeNode.value || '';
144
144
  if (!(value === null || value === void 0 ? void 0 : value.trim())) {
@@ -153,7 +153,7 @@ var inlineNode = new Set([
153
153
  };
154
154
  /**
155
155
  * 转换引用节点
156
- */ var convertBlockquoteNode = function(blockquoteNode, preString, parent, plugins) {
156
+ */ var convertBlockquoteNode = function convertBlockquoteNode(blockquoteNode, preString, parent, plugins) {
157
157
  return '> ' + parserSlateNodeToMarkdown(blockquoteNode.children || [], preString, _to_consumable_array(parent).concat([
158
158
  _object_spread_props(_object_spread({}, blockquoteNode), {
159
159
  converted: true
@@ -162,7 +162,7 @@ var inlineNode = new Set([
162
162
  };
163
163
  /**
164
164
  * 转换段落节点
165
- */ var convertParagraphNode = function(paragraphNode, preString, parent, plugins) {
165
+ */ var convertParagraphNode = function convertParagraphNode(paragraphNode, preString, parent, plugins) {
166
166
  return preString + parserSlateNodeToMarkdown(paragraphNode.children || [], preString, _to_consumable_array(parent).concat([
167
167
  _object_spread_props(_object_spread({}, paragraphNode), {
168
168
  converted: true
@@ -171,7 +171,7 @@ var inlineNode = new Set([
171
171
  };
172
172
  /**
173
173
  * 转换标题节点
174
- */ var convertHeadingNode = function(headingNode, preString, parent, plugins) {
174
+ */ var convertHeadingNode = function convertHeadingNode(headingNode, preString, parent, plugins) {
175
175
  var level = headingNode.depth || 1;
176
176
  var content = parserSlateNodeToMarkdown(headingNode.children || [], preString, _to_consumable_array(parent).concat([
177
177
  _object_spread_props(_object_spread({}, headingNode), {
@@ -247,7 +247,7 @@ var inlineNode = new Set([
247
247
  * const result = parserNode(codeNode, '', []);
248
248
  * // 输出: "```javascript\nconsole.log(\"hello\");\n```"
249
249
  * ```
250
- */ var parserNode = function(node) {
250
+ */ var parserNode = function parserNode(node) {
251
251
  var preString = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : '', parent = arguments.length > 2 ? arguments[2] : void 0, plugins = arguments.length > 3 ? arguments[3] : void 0;
252
252
  var _parent_;
253
253
  var str = '';
@@ -348,7 +348,7 @@ var inlineNode = new Set([
348
348
  * 该函数遍历 Slate 节点树,并根据节点类型和属性生成相应的 Markdown 字符串。
349
349
  * 对于具有其他属性的节点,会将这些属性转换为 JSON 字符串并作为注释插入。
350
350
  * 对于列表项、引用块、段落等不同类型的节点,会根据其特定的格式生成相应的 Markdown。
351
- */ export var parserSlateNodeToMarkdown = function(tree) {
351
+ */ export var parserSlateNodeToMarkdown = function parserSlateNodeToMarkdown(tree) {
352
352
  var _loop = function(i) {
353
353
  var _tree_, _tree_1, _tree_2, _tree_3, _tree_4, _tree_5;
354
354
  var node = tree[i];
@@ -400,7 +400,7 @@ var inlineNode = new Set([
400
400
  * 将对象转换为数组(处理 {0: {...}, 1: {...}} 这种错误格式)
401
401
  * @param obj - 要转换的对象
402
402
  * @returns 转换后的数组,如果不是数字键对象则返回原对象
403
- */ var convertObjectToArray = function(obj) {
403
+ */ var convertObjectToArray = function convertObjectToArray(obj) {
404
404
  if (!obj || (typeof obj === "undefined" ? "undefined" : _type_of(obj)) !== 'object' || Array.isArray(obj)) {
405
405
  return obj;
406
406
  }
@@ -694,7 +694,7 @@ var inlineNode = new Set([
694
694
  });
695
695
  return str;
696
696
  };
697
- export var isMix = function(t) {
697
+ export var isMix = function isMix(t) {
698
698
  return Object.keys(t).filter(function(key) {
699
699
  return [
700
700
  'bold',
@@ -717,7 +717,7 @@ export var isMix = function(t) {
717
717
  * - `<b>` if `bold` is true.
718
718
  * - `<del>` if `strikethrough` is true.
719
719
  * - `<a href="{url}">` if `url` is defined.
720
- */ var textHtml = function(t) {
720
+ */ var textHtml = function textHtml(t) {
721
721
  var str = t.text || '';
722
722
  if (t.highColor) str = '<span style="color:'.concat(t.highColor, '">').concat(str, "</span>");
723
723
  if (t.code) str = "<code>".concat(str, "</code>");
@@ -744,7 +744,7 @@ export var isMix = function(t) {
744
744
  * - 转义反斜杠
745
745
  * - 将换行符转换为 Markdown 换行符
746
746
  * - 保留文本前后的空白字符
747
- */ var textStyle = function(t) {
747
+ */ var textStyle = function textStyle(t) {
748
748
  var _t_text;
749
749
  if (!t.text && !t.tag) return '';
750
750
  var str = (t === null || t === void 0 ? void 0 : (_t_text = t.text) === null || _t_text === void 0 ? void 0 : _t_text.replace(RegExp("(?<!\\\\)\\\\", "g"), '\\').replace(/\n/g, ' \n')) || '';
@@ -823,7 +823,7 @@ export var isMix = function(t) {
823
823
  * - 高亮颜色:使用 span 标签和 style 属性
824
824
  * - 脚注标识:使用 [^] 语法
825
825
  * - 混合样式:确保相邻文本之间的空格正确
826
- */ var composeText = function(t, parent) {
826
+ */ var composeText = function composeText(t, parent) {
827
827
  var _parent_;
828
828
  if (!t.text && !t.tag) return '';
829
829
  if (t.highColor || t.identifier || t.fnc || t.strikethrough && (t.bold || t.italic || t.code)) return textHtml(t);
@@ -879,7 +879,7 @@ export var isMix = function(t) {
879
879
  * |:--- |:---:| ---:|
880
880
  * | 左对齐 | 居中 | 右对齐 |
881
881
  * ```
882
- */ var table = function(el, parent, plugins) {
882
+ */ var table = function table(el, parent, plugins) {
883
883
  var _el_children, _children_;
884
884
  debugInfo('parserSlateNodeToMarkdown.table - 开始处理表格', {
885
885
  elType: el.type,
@@ -904,14 +904,14 @@ export var isMix = function(t) {
904
904
  var maxColumns = 0;
905
905
  // 使用策略模式处理不同类型的表格
906
906
  var tableProcessors = {
907
- default: function() {
907
+ default: function _default() {
908
908
  var rowIndex = 0;
909
909
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
910
910
  try {
911
911
  for(var _iterator = children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
912
912
  var c = _step.value;
913
913
  if (!c) continue;
914
- var processRow = function(cells, processCell) {
914
+ var processRow = function processRow(cells, processCell) {
915
915
  var row = new Array(cells.length);
916
916
  // 处理每个单元格,包括空单元格
917
917
  for(var i = 0; i < cells.length; i++){
@@ -926,7 +926,7 @@ export var isMix = function(t) {
926
926
  rowIndex++;
927
927
  }
928
928
  };
929
- var cellProcessor = function(cell) {
929
+ var cellProcessor = function cellProcessor(cell) {
930
930
  if (cell.type !== 'table-cell') return '';
931
931
  // 对于表格单元格,直接提取文本内容,避免段落格式化
932
932
  return cell.children.map(function(child) {
@@ -1005,32 +1005,32 @@ export var isMix = function(t) {
1005
1005
  }
1006
1006
  // 对齐策略表
1007
1007
  var alignStrategies = {
1008
- right: function(str, diff) {
1008
+ right: function right(str, diff) {
1009
1009
  return ' '.repeat(diff) + str;
1010
1010
  },
1011
- center: function(str, diff) {
1011
+ center: function center(str, diff) {
1012
1012
  var pre = Math.floor(diff / 2);
1013
1013
  return ' '.repeat(pre) + str + ' '.repeat(diff - pre);
1014
1014
  },
1015
- left: function(str, diff) {
1015
+ left: function left(str, diff) {
1016
1016
  return str + ' '.repeat(diff);
1017
1017
  },
1018
- default: function(str, diff) {
1018
+ default: function _default(str, diff) {
1019
1019
  return str + ' '.repeat(diff);
1020
1020
  }
1021
1021
  };
1022
1022
  // 修改分隔符策略表
1023
1023
  var separatorStrategies = {
1024
- left: function(length) {
1024
+ left: function left(length) {
1025
1025
  return ':' + '-'.repeat(Math.max(3, length - 1));
1026
1026
  },
1027
- center: function(length) {
1027
+ center: function center(length) {
1028
1028
  return ':' + '-'.repeat(Math.max(3, length - 2)) + ':';
1029
1029
  },
1030
- right: function(length) {
1030
+ right: function right(length) {
1031
1031
  return '-'.repeat(Math.max(3, length - 1)) + ':';
1032
1032
  },
1033
- default: function(length) {
1033
+ default: function _default(length) {
1034
1034
  return ':' + '-'.repeat(Math.max(3, length - 1));
1035
1035
  }
1036
1036
  };
@@ -1078,7 +1078,7 @@ export var isMix = function(t) {
1078
1078
  * @param parent - 父节点数组
1079
1079
  * @param plugins - 可选的插件数组
1080
1080
  * @returns 处理后的 Markdown 字符串
1081
- */ var handleCard = function(node, preString, parent, plugins) {
1081
+ */ var handleCard = function handleCard(node, preString, parent, plugins) {
1082
1082
  return parserSlateNodeToMarkdown(node === null || node === void 0 ? void 0 : node.children, preString, _to_consumable_array(parent).concat([
1083
1083
  node
1084
1084
  ]), plugins);
@@ -1090,7 +1090,7 @@ export var isMix = function(t) {
1090
1090
  * @param parent - 父节点数组
1091
1091
  * @param plugins - 可选的插件数组
1092
1092
  * @returns 处理后的 Markdown 字符串
1093
- */ var handleParagraph = function(node, preString, parent, plugins) {
1093
+ */ var handleParagraph = function handleParagraph(node, preString, parent, plugins) {
1094
1094
  var _node_align;
1095
1095
  var _node_otherProps;
1096
1096
  var str = '';
@@ -1115,7 +1115,7 @@ export var isMix = function(t) {
1115
1115
  * @param parent - 父节点数组
1116
1116
  * @param plugins - 可选的插件数组
1117
1117
  * @returns 处理后的 Markdown 标题字符串
1118
- */ var handleHead = function(node, preString, parent, plugins) {
1118
+ */ var handleHead = function handleHead(node, preString, parent, plugins) {
1119
1119
  var _node_align;
1120
1120
  var _node_otherProps;
1121
1121
  var str = '';
@@ -1138,7 +1138,7 @@ export var isMix = function(t) {
1138
1138
  * @param node - 代码节点,包含 language、value、render、frontmatter 等属性
1139
1139
  * @param preString - 前缀字符串,用于处理缩进
1140
1140
  * @returns 处理后的代码块字符串
1141
- */ var handleCode = function(node, preString) {
1141
+ */ var handleCode = function handleCode(node, preString) {
1142
1142
  var code = (node === null || node === void 0 ? void 0 : node.value) || '';
1143
1143
  // 如果 code 是对象,则转换为 JSON 字符串,实现对 apaasify 等节点的支持
1144
1144
  if ((typeof code === "undefined" ? "undefined" : _type_of(code)) === 'object') {
@@ -1180,7 +1180,7 @@ export var isMix = function(t) {
1180
1180
  * 处理附件节点,生成带下载属性的链接标签
1181
1181
  * @param node - 附件节点,包含 url、size、name 属性
1182
1182
  * @returns 处理后的 HTML 链接标签字符串
1183
- */ var handleAttach = function(node) {
1183
+ */ var handleAttach = function handleAttach(node) {
1184
1184
  return '<a href="'.concat(encodeURI(node === null || node === void 0 ? void 0 : node.url), '" download data-size="').concat(node.size, '">').concat(node.name, "</a>");
1185
1185
  };
1186
1186
  /**
@@ -1190,7 +1190,7 @@ export var isMix = function(t) {
1190
1190
  * @param parent - 父节点数组
1191
1191
  * @param plugins - 可选的插件数组
1192
1192
  * @returns 处理后的 Markdown 引用字符串
1193
- */ var handleBlockquote = function(node, preString, parent, plugins) {
1193
+ */ var handleBlockquote = function handleBlockquote(node, preString, parent, plugins) {
1194
1194
  // Handle empty blockquotes
1195
1195
  if (!node.children || node.children.length === 0) {
1196
1196
  return '> ';
@@ -1225,7 +1225,7 @@ export var isMix = function(t) {
1225
1225
  * 处理图片节点,支持宽度、高度和块级显示参数
1226
1226
  * @param node - 图片节点,包含 url、width、height、block、alt 属性
1227
1227
  * @returns 处理后的 Markdown 图片字符串
1228
- */ var handleImage = function(node) {
1228
+ */ var handleImage = function handleImage(node) {
1229
1229
  try {
1230
1230
  var nodeImageUrl = new URL(node === null || node === void 0 ? void 0 : node.url);
1231
1231
  if (node.width) {
@@ -1247,7 +1247,7 @@ export var isMix = function(t) {
1247
1247
  * 处理媒体节点,支持视频、图片和 iframe
1248
1248
  * @param node - 媒体节点,包含 url、mediaType、height、align、alt 属性
1249
1249
  * @returns 处理后的 HTML 媒体标签或 Markdown 图片字符串
1250
- */ var handleMedia = function(node) {
1250
+ */ var handleMedia = function handleMedia(node) {
1251
1251
  var nodeUrl = node === null || node === void 0 ? void 0 : node.url;
1252
1252
  var type = node.mediaType || getMediaType(nodeUrl, node === null || node === void 0 ? void 0 : node.alt);
1253
1253
  if (node.height) {
@@ -1278,7 +1278,7 @@ export var isMix = function(t) {
1278
1278
  * @param parent - 父节点数组
1279
1279
  * @param plugins - 可选的插件数组
1280
1280
  * @returns 处理后的 Markdown 列表字符串
1281
- */ var handleList = function(node, preString, parent, plugins) {
1281
+ */ var handleList = function handleList(node, preString, parent, plugins) {
1282
1282
  var _parent_;
1283
1283
  // 检查是否在嵌套列表中(父节点是 list-item)
1284
1284
  var isNested = parent.length > 0 && ((_parent_ = parent[parent.length - 1]) === null || _parent_ === void 0 ? void 0 : _parent_.type) === 'list-item';
@@ -1303,7 +1303,7 @@ export var isMix = function(t) {
1303
1303
  * @param parent - 父节点数组
1304
1304
  * @param plugins - 可选的插件数组
1305
1305
  * @returns 处理后的 Markdown 列表项字符串
1306
- */ var handleListItem = function(node, preString, parent, plugins) {
1306
+ */ var handleListItem = function handleListItem(node, preString, parent, plugins) {
1307
1307
  // 列表项的第一个子节点应该是段落或其他块级元素
1308
1308
  // 后续子节点可能是嵌套的列表
1309
1309
  var result = [];
@@ -1331,35 +1331,35 @@ export var isMix = function(t) {
1331
1331
  * 处理模式定义节点,生成 schema 代码块
1332
1332
  * @param node - 模式定义节点,包含 otherProps 属性
1333
1333
  * @returns 处理后的 schema 代码块字符串
1334
- */ var handleSchema = function(node) {
1334
+ */ var handleSchema = function handleSchema(node) {
1335
1335
  return '```schema\n' + JSON.stringify(node.otherProps, null, 2) + '\n```';
1336
1336
  };
1337
1337
  /**
1338
1338
  * 处理链接卡片节点,生成 Markdown 链接格式
1339
1339
  * @param node - 链接卡片节点,包含 name、url 属性
1340
1340
  * @returns 处理后的 Markdown 链接字符串
1341
- */ var handleLinkCard = function(node) {
1341
+ */ var handleLinkCard = function handleLinkCard(node) {
1342
1342
  return "[".concat(node.name, "](").concat(node === null || node === void 0 ? void 0 : node.url, ' "').concat(node.name, '")');
1343
1343
  };
1344
1344
  /**
1345
1345
  * 处理水平分割线节点
1346
1346
  * @param preString - 前缀字符串,用于处理缩进
1347
1347
  * @returns 处理后的 Markdown 分割线字符串
1348
- */ var handleHr = function(preString) {
1348
+ */ var handleHr = function handleHr(preString) {
1349
1349
  return preString + '***';
1350
1350
  };
1351
1351
  /**
1352
1352
  * 处理换行节点
1353
1353
  * @param preString - 前缀字符串,用于处理缩进
1354
1354
  * @returns 处理后的 HTML 换行标签字符串
1355
- */ var handleBreak = function(preString) {
1355
+ */ var handleBreak = function handleBreak(preString) {
1356
1356
  return preString + '<br/>';
1357
1357
  };
1358
1358
  /**
1359
1359
  * 处理脚注定义节点
1360
1360
  * @param node - 脚注定义节点,包含 identifier、value、url 属性
1361
1361
  * @returns 处理后的 Markdown 脚注字符串
1362
- */ var handleFootnoteDefinition = function(node) {
1362
+ */ var handleFootnoteDefinition = function handleFootnoteDefinition(node) {
1363
1363
  return "[^".concat(node.identifier, "]: [").concat(node.value, "](").concat(node.url, ")\n");
1364
1364
  };
1365
1365
  /**
@@ -1367,7 +1367,7 @@ export var isMix = function(t) {
1367
1367
  * @param node - 文本节点
1368
1368
  * @param parent - 父节点数组
1369
1369
  * @returns 处理后的文本字符串
1370
- */ var handleDefault = function(node, parent) {
1370
+ */ var handleDefault = function handleDefault(node, parent) {
1371
1371
  if (node.text || node.tag) return composeText(node, parent);
1372
1372
  return '';
1373
1373
  };
@@ -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
  }));
@@ -132,7 +132,7 @@ export var EnterKey = /*#__PURE__*/ function() {
132
132
  return;
133
133
  }
134
134
  var _Editor_nodes = _sliced_to_array(Editor.nodes(this.editor, {
135
- match: function(n) {
135
+ match: function match(n) {
136
136
  return Element.isElement(n);
137
137
  },
138
138
  mode: 'lowest'
@@ -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'