@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.
Files changed (542) 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 +10 -10
  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/index.js +1 -1
  56. package/dist/ChatLayout/index.js +1 -1
  57. package/dist/ChatLayout/style.js +1 -1
  58. package/dist/Components/ActionIconBox/index.js +12 -12
  59. package/dist/Components/ActionIconBox/style.js +1 -1
  60. package/dist/Components/ActionItemBox/ActionItemBox.js +1 -1
  61. package/dist/Components/ActionItemBox/style.js +1 -1
  62. package/dist/Components/Button/IconButton/index.js +1 -1
  63. package/dist/Components/Button/IconButton/style.js +1 -1
  64. package/dist/Components/Button/SwitchButton/index.js +3 -3
  65. package/dist/Components/Button/SwitchButton/style.js +1 -1
  66. package/dist/Components/Button/ToggleButton/index.js +1 -1
  67. package/dist/Components/Button/ToggleButton/style.js +1 -1
  68. package/dist/Components/GradientText/style.js +2 -2
  69. package/dist/Components/ImageList.js +2 -2
  70. package/dist/Components/LayoutHeader/index.js +4 -4
  71. package/dist/Components/LayoutHeader/style.js +2 -2
  72. package/dist/Components/Loading/CreativeRecommendationLoading.js +1 -1
  73. package/dist/Components/Loading/CreativeSparkLoading.js +1 -1
  74. package/dist/Components/Loading/Loading.js +1 -1
  75. package/dist/Components/Loading/style.js +1 -1
  76. package/dist/Components/Robot/index.js +1 -1
  77. package/dist/Components/Robot/lotties/BlowingWindLottie/index.js +1 -1
  78. package/dist/Components/Robot/lotties/BouncingLottie/index.js +1 -1
  79. package/dist/Components/Robot/lotties/DazingLottie/index.js +1 -1
  80. package/dist/Components/Robot/lotties/PeekLottie/index.js +1 -1
  81. package/dist/Components/Robot/lotties/ThinkingLottie/index.js +1 -1
  82. package/dist/Components/SuggestionList/index.js +4 -4
  83. package/dist/Components/SuggestionList/style.js +1 -1
  84. package/dist/Components/TextAnimate/index.js +2 -2
  85. package/dist/Components/TextAnimate/style.js +2 -2
  86. package/dist/Components/TypingAnimation/index.js +1 -1
  87. package/dist/Components/TypingAnimation/style.js +2 -2
  88. package/dist/Components/VisualList/index.js +3 -3
  89. package/dist/Components/VisualList/style.js +1 -1
  90. package/dist/Components/effects/CreativeRecommendationEffect/index.js +1 -1
  91. package/dist/Components/effects/LoadingEffect/index.js +1 -1
  92. package/dist/Components/icons/LoadingSpinnerIcon.js +1 -1
  93. package/dist/Components/lotties/CreativeSparkLottie/index.js +1 -1
  94. package/dist/Components/lotties/DazingLottie/index.js +1 -1
  95. package/dist/Components/lotties/LoadingLottie/index.js +1 -1
  96. package/dist/Components/lotties/TextLoading/index.js +1 -1
  97. package/dist/Components/lotties/TextLoading/style.js +1 -1
  98. package/dist/Components/lotties/ThinkingLottie/index.js +1 -1
  99. package/dist/Components/lotties/bubble-actions/Abstract/index.js +1 -1
  100. package/dist/Components/lotties/bubble-actions/Abstract/style.js +1 -1
  101. package/dist/Components/lotties/bubble-actions/Copy/index.js +1 -1
  102. package/dist/Components/lotties/bubble-actions/Dislike/index.js +1 -1
  103. package/dist/Components/lotties/bubble-actions/Like/index.js +1 -1
  104. package/dist/Components/lotties/bubble-actions/More/index.js +1 -1
  105. package/dist/Components/lotties/bubble-actions/Play/index.js +1 -1
  106. package/dist/Components/lotties/bubble-actions/Quote/index.js +1 -1
  107. package/dist/Components/lotties/bubble-actions/Refresh/index.js +1 -1
  108. package/dist/Components/lotties/bubble-actions/Share/index.js +1 -1
  109. package/dist/History/components/HistoryActionsBox.js +9 -9
  110. package/dist/History/components/HistoryEmpty.js +1 -1
  111. package/dist/History/components/HistoryEmptyIcon.js +1 -1
  112. package/dist/History/components/HistoryItem.js +4 -4
  113. package/dist/History/components/HistoryList.js +2 -2
  114. package/dist/History/components/LoadMoreComponent.js +2 -2
  115. package/dist/History/components/NewChatComponent.js +1 -1
  116. package/dist/History/components/NewChatComponent.style.js +2 -2
  117. package/dist/History/components/SearchComponent.js +6 -6
  118. package/dist/History/hooks/useHistory.js +1 -1
  119. package/dist/History/index.js +3 -3
  120. package/dist/History/menu.js +2 -2
  121. package/dist/History/style.js +1 -1
  122. package/dist/History/utils/index.js +2 -2
  123. package/dist/Hooks/useAutoScroll.js +3 -3
  124. package/dist/Hooks/useClickAway.js +2 -2
  125. package/dist/Hooks/useCopied.js +1 -1
  126. package/dist/Hooks/useElementSize.js +1 -1
  127. package/dist/Hooks/useIntersectionOnce.js +1 -1
  128. package/dist/Hooks/useRefFunction/index.js +1 -1
  129. package/dist/Hooks/useSpeechSynthesis.js +1 -1
  130. package/dist/Hooks/useStyle/index.js +2 -2
  131. package/dist/I18n/index.js +1 -1
  132. package/dist/Icons/animated/VoicePlayLottie/index.js +1 -1
  133. package/dist/Icons/animated/VoicingLottie/index.js +1 -1
  134. package/dist/MarkdownEditor/BaseMarkdownEditor.js +7 -7
  135. package/dist/MarkdownEditor/editor/Editor.js +18 -18
  136. package/dist/MarkdownEditor/editor/components/CommentList/index.js +6 -6
  137. package/dist/MarkdownEditor/editor/components/CommentList/style.js +1 -1
  138. package/dist/MarkdownEditor/editor/components/ContributorAvatar/index.js +2 -2
  139. package/dist/MarkdownEditor/editor/components/ContributorAvatar/style.js +1 -1
  140. package/dist/MarkdownEditor/editor/components/LazyElement/index.js +1 -1
  141. package/dist/MarkdownEditor/editor/components/LazyElement/style.js +2 -2
  142. package/dist/MarkdownEditor/editor/components/MediaErrorLink.js +2 -2
  143. package/dist/MarkdownEditor/editor/components/fntTag/index.js +1 -1
  144. package/dist/MarkdownEditor/editor/components/fntTag/style.js +1 -1
  145. package/dist/MarkdownEditor/editor/elements/Blockquote/index.js +1 -1
  146. package/dist/MarkdownEditor/editor/elements/Break/index.js +1 -1
  147. package/dist/MarkdownEditor/editor/elements/Card/index.js +1 -1
  148. package/dist/MarkdownEditor/editor/elements/Code/index.js +1 -1
  149. package/dist/MarkdownEditor/editor/elements/Comment/index.js +3 -3
  150. package/dist/MarkdownEditor/editor/elements/CommentLeaf/index.js +2 -2
  151. package/dist/MarkdownEditor/editor/elements/FncLeaf/index.js +1 -1
  152. package/dist/MarkdownEditor/editor/elements/FootnoteDefinition/index.js +2 -2
  153. package/dist/MarkdownEditor/editor/elements/FootnoteReference/index.js +2 -2
  154. package/dist/MarkdownEditor/editor/elements/Head/index.js +1 -1
  155. package/dist/MarkdownEditor/editor/elements/Hr/index.js +1 -1
  156. package/dist/MarkdownEditor/editor/elements/Image/index.js +17 -17
  157. package/dist/MarkdownEditor/editor/elements/InlineKatex/index.js +1 -1
  158. package/dist/MarkdownEditor/editor/elements/Katex/index.js +1 -1
  159. package/dist/MarkdownEditor/editor/elements/LinkCard/ReadonlyLinkCard.js +2 -2
  160. package/dist/MarkdownEditor/editor/elements/LinkCard/index.js +4 -4
  161. package/dist/MarkdownEditor/editor/elements/List/List.js +2 -2
  162. package/dist/MarkdownEditor/editor/elements/List/ListItem.js +9 -9
  163. package/dist/MarkdownEditor/editor/elements/Media/ReadonlyMedia.js +2 -2
  164. package/dist/MarkdownEditor/editor/elements/Media/index.js +15 -15
  165. package/dist/MarkdownEditor/editor/elements/Mermaid/index.js +1 -1
  166. package/dist/MarkdownEditor/editor/elements/Paragraph/index.js +2 -2
  167. package/dist/MarkdownEditor/editor/elements/Schema/index.js +4 -4
  168. package/dist/MarkdownEditor/editor/elements/Table/ReadonlyTableComponent.js +5 -5
  169. package/dist/MarkdownEditor/editor/elements/Table/SimpleTable.js +1 -1
  170. package/dist/MarkdownEditor/editor/elements/Table/Table.js +5 -5
  171. package/dist/MarkdownEditor/editor/elements/Table/TableCellIndex/index.js +1 -1
  172. package/dist/MarkdownEditor/editor/elements/Table/TableCellIndexSpacer/index.js +1 -1
  173. package/dist/MarkdownEditor/editor/elements/Table/TableContext.js +1 -1
  174. package/dist/MarkdownEditor/editor/elements/Table/TableRowIndex/index.js +1 -1
  175. package/dist/MarkdownEditor/editor/elements/Table/Td/index.js +2 -2
  176. package/dist/MarkdownEditor/editor/elements/Table/index.js +5 -5
  177. package/dist/MarkdownEditor/editor/elements/Table/useScrollShadow.js +2 -2
  178. package/dist/MarkdownEditor/editor/elements/TagPopup/index.js +18 -18
  179. package/dist/MarkdownEditor/editor/elements/index.js +9 -9
  180. package/dist/MarkdownEditor/editor/parser/parse/applyContextPropsAndConfig.js +2 -2
  181. package/dist/MarkdownEditor/editor/parser/parse/parseBlockElements.js +9 -9
  182. package/dist/MarkdownEditor/editor/parser/parse/parseCode.js +5 -5
  183. package/dist/MarkdownEditor/editor/parser/parse/parseElements.js +3 -3
  184. package/dist/MarkdownEditor/editor/parser/parse/parseEmptyLines.js +1 -1
  185. package/dist/MarkdownEditor/editor/parser/parse/parseFootnote.js +1 -1
  186. package/dist/MarkdownEditor/editor/parser/parse/parseHtml.js +18 -18
  187. package/dist/MarkdownEditor/editor/parser/parse/parseMath.js +3 -3
  188. package/dist/MarkdownEditor/editor/parser/parse/parseMedia.js +3 -3
  189. package/dist/MarkdownEditor/editor/parser/parse/parseTable.js +10 -10
  190. package/dist/MarkdownEditor/editor/parser/parse/parseText.js +5 -5
  191. package/dist/MarkdownEditor/editor/parser/parserMarkdownToSlateNode.js +24 -24
  192. package/dist/MarkdownEditor/editor/parser/parserMdToSchema.js +2 -2
  193. package/dist/MarkdownEditor/editor/parser/parserSlateNodeToMarkdown.js +41 -41
  194. package/dist/MarkdownEditor/editor/plugins/catchError.js +2 -2
  195. package/dist/MarkdownEditor/editor/plugins/elements.js +21 -21
  196. package/dist/MarkdownEditor/editor/plugins/handlePaste.js +9 -9
  197. package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/arrow.js +4 -4
  198. package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/backspace.js +1 -1
  199. package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/enter.js +1 -1
  200. package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/match.js +1 -1
  201. package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/tab.js +4 -4
  202. package/dist/MarkdownEditor/editor/plugins/insertParsedHtmlNodes.js +44 -44
  203. package/dist/MarkdownEditor/editor/plugins/parseMarkdownToNodesAndInsert.js +1 -1
  204. package/dist/MarkdownEditor/editor/plugins/useHighlight.js +5 -5
  205. package/dist/MarkdownEditor/editor/plugins/useKeyboard.js +5 -5
  206. package/dist/MarkdownEditor/editor/plugins/useOnchange.js +1 -1
  207. package/dist/MarkdownEditor/editor/plugins/utils.js +2 -2
  208. package/dist/MarkdownEditor/editor/plugins/withCardPlugin.js +2 -2
  209. package/dist/MarkdownEditor/editor/plugins/withCodeTagPlugin.js +2 -2
  210. package/dist/MarkdownEditor/editor/plugins/withInlineNodes.js +1 -1
  211. package/dist/MarkdownEditor/editor/plugins/withLinkAndMediaPlugin.js +2 -2
  212. package/dist/MarkdownEditor/editor/plugins/withListsPlugin.js +3 -3
  213. package/dist/MarkdownEditor/editor/plugins/withMarkdown.js +1 -1
  214. package/dist/MarkdownEditor/editor/plugins/withSchemaPlugin.js +2 -2
  215. package/dist/MarkdownEditor/editor/plugins/withVoidNodes.js +1 -1
  216. package/dist/MarkdownEditor/editor/store.js +6 -6
  217. package/dist/MarkdownEditor/editor/style.js +2 -2
  218. package/dist/MarkdownEditor/editor/tools/DragHandle.js +2 -2
  219. package/dist/MarkdownEditor/editor/tools/InsertAutocomplete.js +22 -22
  220. package/dist/MarkdownEditor/editor/tools/InsertLink.js +7 -7
  221. package/dist/MarkdownEditor/editor/tools/Leading.js +8 -8
  222. package/dist/MarkdownEditor/editor/tools/ToolBar/BaseBar.js +6 -6
  223. package/dist/MarkdownEditor/editor/tools/ToolBar/FloatBar.js +5 -5
  224. package/dist/MarkdownEditor/editor/tools/ToolBar/ReadonlyBaseBar.js +7 -7
  225. package/dist/MarkdownEditor/editor/tools/ToolBar/ToolBar.js +2 -2
  226. package/dist/MarkdownEditor/editor/tools/ToolBar/components/ColorPickerButton.js +1 -1
  227. package/dist/MarkdownEditor/editor/tools/ToolBar/components/FormattingTools.js +1 -1
  228. package/dist/MarkdownEditor/editor/tools/ToolBar/components/HeadingDropdown.js +1 -1
  229. package/dist/MarkdownEditor/editor/tools/ToolBar/config/toolsConfig.js +9 -9
  230. package/dist/MarkdownEditor/editor/tools/ToolBar/floatBarStyle.js +1 -1
  231. package/dist/MarkdownEditor/editor/tools/ToolBar/hooks/useToolBarLogic.js +4 -4
  232. package/dist/MarkdownEditor/editor/tools/ToolBar/toolBarStyle.js +1 -1
  233. package/dist/MarkdownEditor/editor/tools/insertAutocompleteStyle.js +1 -1
  234. package/dist/MarkdownEditor/editor/utils/ace.js +3 -3
  235. package/dist/MarkdownEditor/editor/utils/docx/docxDeserializer.js +2 -2
  236. package/dist/MarkdownEditor/editor/utils/docx/module.js +9 -9
  237. package/dist/MarkdownEditor/editor/utils/docx/utils.js +5 -5
  238. package/dist/MarkdownEditor/editor/utils/dom.js +5 -5
  239. package/dist/MarkdownEditor/editor/utils/editorCommands.js +5 -5
  240. package/dist/MarkdownEditor/editor/utils/editorUtils.js +17 -17
  241. package/dist/MarkdownEditor/editor/utils/index.js +9 -9
  242. package/dist/MarkdownEditor/editor/utils/keyboard.js +4 -4
  243. package/dist/MarkdownEditor/editor/utils/markdownToHtml.js +6 -6
  244. package/dist/MarkdownEditor/editor/utils/media.js +2 -2
  245. package/dist/MarkdownEditor/editor/utils/path.js +3 -3
  246. package/dist/MarkdownEditor/editor/utils/performanceMonitor.js +2 -2
  247. package/dist/MarkdownEditor/editor/utils/useLocalState.js +1 -1
  248. package/dist/MarkdownEditor/hooks/editor.js +2 -2
  249. package/dist/MarkdownEditor/hooks/subscribe.js +1 -1
  250. package/dist/MarkdownEditor/index.js +1 -1
  251. package/dist/MarkdownEditor/style.js +1 -1
  252. package/dist/MarkdownEditor/utils/exportHtml.js +2 -2
  253. package/dist/MarkdownEditor/utils/native-table/native-table-editor.js +4 -4
  254. package/dist/MarkdownInputField/AttachmentButton/AttachmentButtonPopover.js +8 -8
  255. package/dist/MarkdownInputField/AttachmentButton/AttachmentFileList/AttachmentFileIcon.js +1 -1
  256. package/dist/MarkdownInputField/AttachmentButton/AttachmentFileList/AttachmentFileListItem.js +10 -10
  257. package/dist/MarkdownInputField/AttachmentButton/AttachmentFileList/index.js +10 -10
  258. package/dist/MarkdownInputField/AttachmentButton/AttachmentFileList/style.js +1 -1
  259. package/dist/MarkdownInputField/AttachmentButton/index.js +18 -18
  260. package/dist/MarkdownInputField/AttachmentButton/style.js +1 -1
  261. package/dist/MarkdownInputField/AttachmentButton/utils.js +8 -8
  262. package/dist/MarkdownInputField/BeforeToolContainer/BeforeToolContainer.js +4 -4
  263. package/dist/MarkdownInputField/BorderBeamAnimation.js +1 -1
  264. package/dist/MarkdownInputField/Enlargement/index.js +1 -1
  265. package/dist/MarkdownInputField/FileMapView/FileMapViewItem.js +8 -8
  266. package/dist/MarkdownInputField/FileMapView/index.js +2 -2
  267. package/dist/MarkdownInputField/FileMapView/style.js +1 -1
  268. package/dist/MarkdownInputField/FilePaste/index.js +2 -2
  269. package/dist/MarkdownInputField/FileUploadManager/index.js +2 -2
  270. package/dist/MarkdownInputField/MarkdownInputField.js +10 -10
  271. package/dist/MarkdownInputField/QuickActions/index.js +5 -5
  272. package/dist/MarkdownInputField/RefinePromptButton/index.js +3 -3
  273. package/dist/MarkdownInputField/RefinePromptButton/style.js +1 -1
  274. package/dist/MarkdownInputField/SendActions/index.js +6 -6
  275. package/dist/MarkdownInputField/SendButton/index.js +3 -3
  276. package/dist/MarkdownInputField/SendButton/style.js +1 -1
  277. package/dist/MarkdownInputField/SkillModeBar/index.js +3 -3
  278. package/dist/MarkdownInputField/SkillModeBar/style.js +1 -1
  279. package/dist/MarkdownInputField/Suggestion/index.js +8 -8
  280. package/dist/MarkdownInputField/TopOperatingArea/index.js +2 -2
  281. package/dist/MarkdownInputField/TopOperatingArea/style.js +2 -2
  282. package/dist/MarkdownInputField/VoiceInput/index.js +2 -2
  283. package/dist/MarkdownInputField/VoiceInput/style.js +1 -1
  284. package/dist/MarkdownInputField/VoiceInputManager/index.js +3 -3
  285. package/dist/MarkdownInputField/hooks/useMarkdownInputFieldActions.js +1 -1
  286. package/dist/MarkdownInputField/hooks/useMarkdownInputFieldHandlers.js +1 -1
  287. package/dist/MarkdownInputField/hooks/useMarkdownInputFieldLayout.js +2 -2
  288. package/dist/MarkdownInputField/hooks/useMarkdownInputFieldRefs.js +1 -1
  289. package/dist/MarkdownInputField/hooks/useMarkdownInputFieldState.js +1 -1
  290. package/dist/MarkdownInputField/hooks/useMarkdownInputFieldStyles.js +1 -1
  291. package/dist/MarkdownInputField/style.js +2 -2
  292. package/dist/MarkdownInputField/utils/renderHelpers.js +5 -5
  293. package/dist/Plugins/chart/AreaChart/index.js +4 -4
  294. package/dist/Plugins/chart/AreaChart/style.js +1 -1
  295. package/dist/Plugins/chart/BarChart/index.js +11 -11
  296. package/dist/Plugins/chart/BarChart/style.js +1 -1
  297. package/dist/Plugins/chart/ChartAttrToolBar/ChartAttrToolBarStyle.js +1 -1
  298. package/dist/Plugins/chart/ChartAttrToolBar/index.js +3 -3
  299. package/dist/Plugins/chart/ChartMark/Area.js +2 -2
  300. package/dist/Plugins/chart/ChartMark/Bar.js +2 -2
  301. package/dist/Plugins/chart/ChartMark/Column.js +2 -2
  302. package/dist/Plugins/chart/ChartMark/Container.js +1 -1
  303. package/dist/Plugins/chart/ChartMark/Line.js +2 -2
  304. package/dist/Plugins/chart/ChartMark/Pie.js +2 -2
  305. package/dist/Plugins/chart/ChartRender.js +19 -19
  306. package/dist/Plugins/chart/ChartStatistic/index.js +3 -3
  307. package/dist/Plugins/chart/ChartStatistic/style.js +1 -1
  308. package/dist/Plugins/chart/ChartStatistic/utils.js +2 -2
  309. package/dist/Plugins/chart/DonutChart/Legend.js +3 -3
  310. package/dist/Plugins/chart/DonutChart/hooks.js +5 -5
  311. package/dist/Plugins/chart/DonutChart/index.js +11 -11
  312. package/dist/Plugins/chart/DonutChart/plugins.js +3 -3
  313. package/dist/Plugins/chart/DonutChart/style.js +1 -1
  314. package/dist/Plugins/chart/FunnelChart/index.js +14 -14
  315. package/dist/Plugins/chart/FunnelChart/style.js +1 -1
  316. package/dist/Plugins/chart/LineChart/index.js +3 -3
  317. package/dist/Plugins/chart/LineChart/style.js +1 -1
  318. package/dist/Plugins/chart/RadarChart/index.js +7 -7
  319. package/dist/Plugins/chart/RadarChart/style.js +1 -1
  320. package/dist/Plugins/chart/ScatterChart/index.js +7 -7
  321. package/dist/Plugins/chart/ScatterChart/style.js +1 -1
  322. package/dist/Plugins/chart/components/ChartContainer/ChartContainer.js +1 -1
  323. package/dist/Plugins/chart/components/ChartContainer/style.js +2 -2
  324. package/dist/Plugins/chart/components/ChartFilter/ChartFilter.js +6 -6
  325. package/dist/Plugins/chart/components/ChartFilter/style.js +1 -1
  326. package/dist/Plugins/chart/components/ChartToolBar/ChartToolBar.js +2 -2
  327. package/dist/Plugins/chart/components/ChartToolBar/style.js +1 -1
  328. package/dist/Plugins/chart/components/icons/TimeIcon.js +1 -1
  329. package/dist/Plugins/chart/components/index.js +1 -1
  330. package/dist/Plugins/chart/hooks/useChartDataFilter.js +1 -1
  331. package/dist/Plugins/chart/hooks/useChartStatistics.js +1 -1
  332. package/dist/Plugins/chart/hooks/useChartTheme.js +1 -1
  333. package/dist/Plugins/chart/hooks/useResponsiveSize.js +2 -2
  334. package/dist/Plugins/chart/index.js +8 -8
  335. package/dist/Plugins/chart/loadChartRuntime.js +1 -1
  336. package/dist/Plugins/chart/utils/registerChart.js +3 -3
  337. package/dist/Plugins/chart/utils.js +12 -12
  338. package/dist/Plugins/code/CodeUI/Katex/Katex.js +1 -1
  339. package/dist/Plugins/code/components/AceEditor.js +2 -2
  340. package/dist/Plugins/code/components/CodeContainer.js +3 -3
  341. package/dist/Plugins/code/components/CodeRenderer.js +2 -2
  342. package/dist/Plugins/code/components/CodeToolbar.js +5 -5
  343. package/dist/Plugins/code/components/LanguageSelector.js +7 -7
  344. package/dist/Plugins/code/components/LoadImage.js +3 -3
  345. package/dist/Plugins/code/components/ThinkBlock.js +2 -2
  346. package/dist/Plugins/code/index.js +1 -1
  347. package/dist/Plugins/code/langIcons/AbapIcon.js +1 -1
  348. package/dist/Plugins/code/langIcons/ActionscriptIcon.js +1 -1
  349. package/dist/Plugins/code/langIcons/AdaIcon.js +1 -1
  350. package/dist/Plugins/code/langIcons/ApacheIcon.js +1 -1
  351. package/dist/Plugins/code/langIcons/ApexIcon.js +1 -1
  352. package/dist/Plugins/code/langIcons/AplIcon.js +1 -1
  353. package/dist/Plugins/code/langIcons/ApplescriptIcon.js +1 -1
  354. package/dist/Plugins/code/langIcons/AstroIcon.js +1 -1
  355. package/dist/Plugins/code/langIcons/AwkIcon.js +1 -1
  356. package/dist/Plugins/code/langIcons/BallerinaIcon.js +1 -1
  357. package/dist/Plugins/code/langIcons/BatIcon.js +1 -1
  358. package/dist/Plugins/code/langIcons/BicepIcon.js +1 -1
  359. package/dist/Plugins/code/langIcons/BladeIcon.js +1 -1
  360. package/dist/Plugins/code/langIcons/CIcon.js +1 -1
  361. package/dist/Plugins/code/langIcons/CadenceIcon.js +1 -1
  362. package/dist/Plugins/code/langIcons/ClojureIcon.js +1 -1
  363. package/dist/Plugins/code/langIcons/CmakeIcon.js +1 -1
  364. package/dist/Plugins/code/langIcons/CobolIcon.js +1 -1
  365. package/dist/Plugins/code/langIcons/CodeqlIcon.js +1 -1
  366. package/dist/Plugins/code/langIcons/CoffeeIcon.js +1 -1
  367. package/dist/Plugins/code/langIcons/ConsoleIcon.js +1 -1
  368. package/dist/Plugins/code/langIcons/CppIcon.js +1 -1
  369. package/dist/Plugins/code/langIcons/CrystalIcon.js +1 -1
  370. package/dist/Plugins/code/langIcons/CsharpIcon.js +1 -1
  371. package/dist/Plugins/code/langIcons/CssIcon.js +1 -1
  372. package/dist/Plugins/code/langIcons/DIcon.js +1 -1
  373. package/dist/Plugins/code/langIcons/DartIcon.js +1 -1
  374. package/dist/Plugins/code/langIcons/DatabaseIcon.js +1 -1
  375. package/dist/Plugins/code/langIcons/DiffIcon.js +1 -1
  376. package/dist/Plugins/code/langIcons/DockerIcon.js +1 -1
  377. package/dist/Plugins/code/langIcons/DotenvIcon.js +1 -1
  378. package/dist/Plugins/code/langIcons/ElixirIcon.js +1 -1
  379. package/dist/Plugins/code/langIcons/ElmIcon.js +1 -1
  380. package/dist/Plugins/code/langIcons/ErbIcon.js +1 -1
  381. package/dist/Plugins/code/langIcons/ErlangIcon.js +1 -1
  382. package/dist/Plugins/code/langIcons/FsharpIcon.js +1 -1
  383. package/dist/Plugins/code/langIcons/GdscriptIcon.js +1 -1
  384. package/dist/Plugins/code/langIcons/GlslIcon.js +1 -1
  385. package/dist/Plugins/code/langIcons/GnuplotIcon.js +1 -1
  386. package/dist/Plugins/code/langIcons/GoIcon.js +1 -1
  387. package/dist/Plugins/code/langIcons/GraphqlIcon.js +1 -1
  388. package/dist/Plugins/code/langIcons/GroovyIcon.js +1 -1
  389. package/dist/Plugins/code/langIcons/HackIcon.js +1 -1
  390. package/dist/Plugins/code/langIcons/HamlIcon.js +1 -1
  391. package/dist/Plugins/code/langIcons/HandlebarsIcon.js +1 -1
  392. package/dist/Plugins/code/langIcons/HaskellIcon.js +1 -1
  393. package/dist/Plugins/code/langIcons/HclIcon.js +1 -1
  394. package/dist/Plugins/code/langIcons/HclLightIcon.js +1 -1
  395. package/dist/Plugins/code/langIcons/HjsonIcon.js +1 -1
  396. package/dist/Plugins/code/langIcons/HlslIcon.js +1 -1
  397. package/dist/Plugins/code/langIcons/HtmlIcon.js +1 -1
  398. package/dist/Plugins/code/langIcons/HttpIcon.js +1 -1
  399. package/dist/Plugins/code/langIcons/ImbaIcon.js +1 -1
  400. package/dist/Plugins/code/langIcons/IniIcon.js +1 -1
  401. package/dist/Plugins/code/langIcons/JavaIcon.js +1 -1
  402. package/dist/Plugins/code/langIcons/JavascriptIcon.js +1 -1
  403. package/dist/Plugins/code/langIcons/JinjaIcon.js +1 -1
  404. package/dist/Plugins/code/langIcons/Json5Icon.js +1 -1
  405. package/dist/Plugins/code/langIcons/JsonIcon.js +1 -1
  406. package/dist/Plugins/code/langIcons/JsonnetIcon.js +1 -1
  407. package/dist/Plugins/code/langIcons/JuliaIcon.js +1 -1
  408. package/dist/Plugins/code/langIcons/KotlinIcon.js +1 -1
  409. package/dist/Plugins/code/langIcons/KustoIcon.js +1 -1
  410. package/dist/Plugins/code/langIcons/LessIcon.js +1 -1
  411. package/dist/Plugins/code/langIcons/LiquidIcon.js +1 -1
  412. package/dist/Plugins/code/langIcons/LispIcon.js +1 -1
  413. package/dist/Plugins/code/langIcons/LuaIcon.js +1 -1
  414. package/dist/Plugins/code/langIcons/MakefileIcon.js +1 -1
  415. package/dist/Plugins/code/langIcons/MarkdownIcon.js +1 -1
  416. package/dist/Plugins/code/langIcons/MarkojsIcon.js +1 -1
  417. package/dist/Plugins/code/langIcons/MatlabIcon.js +1 -1
  418. package/dist/Plugins/code/langIcons/MdxIcon.js +1 -1
  419. package/dist/Plugins/code/langIcons/MermaidIcon.js +1 -1
  420. package/dist/Plugins/code/langIcons/MojoIcon.js +1 -1
  421. package/dist/Plugins/code/langIcons/NginxIcon.js +1 -1
  422. package/dist/Plugins/code/langIcons/NimIcon.js +1 -1
  423. package/dist/Plugins/code/langIcons/NixIcon.js +1 -1
  424. package/dist/Plugins/code/langIcons/ObjectiveCIcon.js +1 -1
  425. package/dist/Plugins/code/langIcons/ObjectiveCppIcon.js +1 -1
  426. package/dist/Plugins/code/langIcons/OcamlIcon.js +1 -1
  427. package/dist/Plugins/code/langIcons/PascalIcon.js +1 -1
  428. package/dist/Plugins/code/langIcons/Perl6Icon.js +1 -1
  429. package/dist/Plugins/code/langIcons/PerlIcon.js +1 -1
  430. package/dist/Plugins/code/langIcons/PhpIcon.js +1 -1
  431. package/dist/Plugins/code/langIcons/PostcssIcon.js +1 -1
  432. package/dist/Plugins/code/langIcons/PowershellIcon.js +1 -1
  433. package/dist/Plugins/code/langIcons/PrismaIcon.js +1 -1
  434. package/dist/Plugins/code/langIcons/PrologIcon.js +1 -1
  435. package/dist/Plugins/code/langIcons/ProtoIcon.js +1 -1
  436. package/dist/Plugins/code/langIcons/PugIcon.js +1 -1
  437. package/dist/Plugins/code/langIcons/PuppetIcon.js +1 -1
  438. package/dist/Plugins/code/langIcons/PurescriptIcon.js +1 -1
  439. package/dist/Plugins/code/langIcons/PythonIcon.js +1 -1
  440. package/dist/Plugins/code/langIcons/RIcon.js +1 -1
  441. package/dist/Plugins/code/langIcons/RazorIcon.js +1 -1
  442. package/dist/Plugins/code/langIcons/ReactIcon.js +1 -1
  443. package/dist/Plugins/code/langIcons/ReactTsIcon.js +1 -1
  444. package/dist/Plugins/code/langIcons/RubyIcon.js +1 -1
  445. package/dist/Plugins/code/langIcons/RustIcon.js +1 -1
  446. package/dist/Plugins/code/langIcons/SasIcon.js +1 -1
  447. package/dist/Plugins/code/langIcons/SassIcon.js +1 -1
  448. package/dist/Plugins/code/langIcons/ScalaIcon.js +1 -1
  449. package/dist/Plugins/code/langIcons/SchemeIcon.js +1 -1
  450. package/dist/Plugins/code/langIcons/ShaderlabIcon.js +1 -1
  451. package/dist/Plugins/code/langIcons/SolidityIcon.js +1 -1
  452. package/dist/Plugins/code/langIcons/SparqlIcon.js +1 -1
  453. package/dist/Plugins/code/langIcons/StataIcon.js +1 -1
  454. package/dist/Plugins/code/langIcons/StylusIcon.js +1 -1
  455. package/dist/Plugins/code/langIcons/SvelteIcon.js +1 -1
  456. package/dist/Plugins/code/langIcons/SwiftIcon.js +1 -1
  457. package/dist/Plugins/code/langIcons/SystemverilogIcon.js +1 -1
  458. package/dist/Plugins/code/langIcons/TclIcon.js +1 -1
  459. package/dist/Plugins/code/langIcons/TexIcon.js +1 -1
  460. package/dist/Plugins/code/langIcons/TomlIcon.js +1 -1
  461. package/dist/Plugins/code/langIcons/TwigIcon.js +1 -1
  462. package/dist/Plugins/code/langIcons/TypescriptIcon.js +1 -1
  463. package/dist/Plugins/code/langIcons/VerilogIcon.js +1 -1
  464. package/dist/Plugins/code/langIcons/VhdlIcon.js +1 -1
  465. package/dist/Plugins/code/langIcons/VimIcon.js +1 -1
  466. package/dist/Plugins/code/langIcons/VueIcon.js +1 -1
  467. package/dist/Plugins/code/langIcons/WebassemblyIcon.js +1 -1
  468. package/dist/Plugins/code/langIcons/WenyanIcon.js +1 -1
  469. package/dist/Plugins/code/langIcons/WgslIcon.js +1 -1
  470. package/dist/Plugins/code/langIcons/WolframlanguageIcon.js +1 -1
  471. package/dist/Plugins/code/langIcons/XmlIcon.js +1 -1
  472. package/dist/Plugins/code/langIcons/XslIcon.js +1 -1
  473. package/dist/Plugins/code/langIcons/YamlIcon.js +1 -1
  474. package/dist/Plugins/code/langIcons/ZigIcon.js +1 -1
  475. package/dist/Plugins/code/loadAceEditor.js +3 -3
  476. package/dist/Plugins/katex/InlineKatex.js +2 -2
  477. package/dist/Plugins/katex/Katex.js +1 -1
  478. package/dist/Plugins/katex/index.js +2 -2
  479. package/dist/Plugins/katex/loadKatex.js +2 -2
  480. package/dist/Plugins/mermaid/Mermaid.js +1 -1
  481. package/dist/Plugins/mermaid/MermaidFallback.js +1 -1
  482. package/dist/Plugins/mermaid/MermaidRendererImpl.js +1 -1
  483. package/dist/Plugins/mermaid/index.js +5 -5
  484. package/dist/Plugins/mermaid/style.js +1 -1
  485. package/dist/Plugins/mermaid/useMermaidRender.js +1 -1
  486. package/dist/Plugins/mermaid/utils.js +3 -3
  487. package/dist/Quote/index.js +2 -2
  488. package/dist/Quote/style.js +1 -1
  489. package/dist/Schema/SchemaEditor/AceEditorWrapper.js +1 -1
  490. package/dist/Schema/SchemaEditor/index.js +6 -6
  491. package/dist/Schema/SchemaEditor/style.js +1 -1
  492. package/dist/Schema/SchemaForm/index.js +4 -4
  493. package/dist/Schema/SchemaRenderer/index.js +8 -8
  494. package/dist/TaskList/index.js +4 -4
  495. package/dist/TaskList/style.js +1 -1
  496. package/dist/ThoughtChainList/CostMillis.js +2 -2
  497. package/dist/ThoughtChainList/DeepThink.js +1 -1
  498. package/dist/ThoughtChainList/DotAni/index.js +1 -1
  499. package/dist/ThoughtChainList/DotAni/style.js +1 -1
  500. package/dist/ThoughtChainList/MarkdownEditor.js +2 -2
  501. package/dist/ThoughtChainList/RagRetrievalInfo.js +2 -2
  502. package/dist/ThoughtChainList/TableSql.js +8 -8
  503. package/dist/ThoughtChainList/TitleInfo.js +3 -3
  504. package/dist/ThoughtChainList/ToolCall.js +7 -7
  505. package/dist/ThoughtChainList/WebSearch.js +1 -1
  506. package/dist/ThoughtChainList/style.js +1 -1
  507. package/dist/ToolUseBar/BarItem/Content.js +5 -5
  508. package/dist/ToolUseBar/BarItem/index.js +1 -1
  509. package/dist/ToolUseBar/index.js +1 -1
  510. package/dist/ToolUseBar/style.js +1 -1
  511. package/dist/ToolUseBarThink/index.js +10 -10
  512. package/dist/ToolUseBarThink/style.js +1 -1
  513. package/dist/Types/message.d.ts +1 -0
  514. package/dist/Utils/debugUtils.js +1 -1
  515. package/dist/Utils/formatTime.js +1 -1
  516. package/dist/Utils/getScroll.js +2 -2
  517. package/dist/Utils/loadCSS.js +2 -2
  518. package/dist/Utils/proxySandbox/ProxySandbox.js +37 -37
  519. package/dist/Utils/proxySandbox/SecurityContextManager.js +6 -6
  520. package/dist/Utils/scrollTo.js +1 -1
  521. package/dist/Utils/throttleByAnimationFrame.js +2 -2
  522. package/dist/WelcomeMessage/index.js +1 -1
  523. package/dist/WelcomeMessage/style.js +1 -1
  524. package/dist/Workspace/Browser/index.js +13 -13
  525. package/dist/Workspace/Browser/style.js +1 -1
  526. package/dist/Workspace/File/FileComponent.js +38 -38
  527. package/dist/Workspace/File/FileTypeProcessor.js +8 -8
  528. package/dist/Workspace/File/PreviewComponent.js +14 -14
  529. package/dist/Workspace/File/style.js +1 -1
  530. package/dist/Workspace/File/utils.js +3 -3
  531. package/dist/Workspace/HtmlPreview/index.js +5 -5
  532. package/dist/Workspace/HtmlPreview/style.js +1 -1
  533. package/dist/Workspace/RealtimeFollow/index.js +18 -18
  534. package/dist/Workspace/RealtimeFollow/style.js +1 -1
  535. package/dist/Workspace/Task/index.js +3 -3
  536. package/dist/Workspace/Task/style.js +1 -1
  537. package/dist/Workspace/index.js +9 -9
  538. package/dist/Workspace/style.js +1 -1
  539. package/dist/Workspace/types.js +3 -3
  540. package/dist/Workspace/utils/codeLanguageUtils.js +3 -3
  541. package/dist/Workspace/utils.js +2 -2
  542. package/package.json +4 -3
@@ -255,7 +255,7 @@ var MAX_SYNC_SIZE = 1000; // 同步处理的最大字符数
255
255
  'media',
256
256
  'image'
257
257
  ];
258
- var shouldExcludeFromUpload = function(fragment) {
258
+ var shouldExcludeFromUpload = function shouldExcludeFromUpload(fragment) {
259
259
  if (UPLOAD_EXCLUDED_FRAGMENT_TYPES.includes(fragment === null || fragment === void 0 ? void 0 : fragment.type)) {
260
260
  return true;
261
261
  }
@@ -266,7 +266,7 @@ var shouldExcludeFromUpload = function(fragment) {
266
266
  }
267
267
  return false;
268
268
  };
269
- var findElementByNode = function(node) {
269
+ var findElementByNode = function findElementByNode(node) {
270
270
  var index = Array.prototype.indexOf.call(node.parentNode.childNodes, node);
271
271
  return node.parentElement.children[index];
272
272
  };
@@ -276,12 +276,12 @@ var fragment = new Set([
276
276
  'div'
277
277
  ]);
278
278
  export var ELEMENT_TAGS = {
279
- BLOCKQUOTE: function() {
279
+ BLOCKQUOTE: function BLOCKQUOTE() {
280
280
  return {
281
281
  type: 'blockquote'
282
282
  };
283
283
  },
284
- H1: function(el) {
284
+ H1: function H1(el) {
285
285
  var _el_style;
286
286
  var align = (el && typeof el.getAttribute === 'function' ? el.getAttribute('align') : null) || (el === null || el === void 0 ? void 0 : (_el_style = el.style) === null || _el_style === void 0 ? void 0 : _el_style.textAlign) || (el && typeof el.getAttribute === 'function' ? el.getAttribute('data-align') : null);
287
287
  return _object_spread({
@@ -291,7 +291,7 @@ export var ELEMENT_TAGS = {
291
291
  align: align
292
292
  } : {});
293
293
  },
294
- H2: function(el) {
294
+ H2: function H2(el) {
295
295
  var _el_style;
296
296
  var align = (el && typeof el.getAttribute === 'function' ? el.getAttribute('align') : null) || (el === null || el === void 0 ? void 0 : (_el_style = el.style) === null || _el_style === void 0 ? void 0 : _el_style.textAlign) || (el && typeof el.getAttribute === 'function' ? el.getAttribute('data-align') : null);
297
297
  return _object_spread({
@@ -301,7 +301,7 @@ export var ELEMENT_TAGS = {
301
301
  align: align
302
302
  } : {});
303
303
  },
304
- H3: function(el) {
304
+ H3: function H3(el) {
305
305
  var _el_style;
306
306
  var align = (el && typeof el.getAttribute === 'function' ? el.getAttribute('align') : null) || (el === null || el === void 0 ? void 0 : (_el_style = el.style) === null || _el_style === void 0 ? void 0 : _el_style.textAlign) || (el && typeof el.getAttribute === 'function' ? el.getAttribute('data-align') : null);
307
307
  return _object_spread({
@@ -311,7 +311,7 @@ export var ELEMENT_TAGS = {
311
311
  align: align
312
312
  } : {});
313
313
  },
314
- H4: function(el) {
314
+ H4: function H4(el) {
315
315
  var _el_style;
316
316
  var align = (el && typeof el.getAttribute === 'function' ? el.getAttribute('align') : null) || (el === null || el === void 0 ? void 0 : (_el_style = el.style) === null || _el_style === void 0 ? void 0 : _el_style.textAlign) || (el && typeof el.getAttribute === 'function' ? el.getAttribute('data-align') : null);
317
317
  return _object_spread({
@@ -321,7 +321,7 @@ export var ELEMENT_TAGS = {
321
321
  align: align
322
322
  } : {});
323
323
  },
324
- H5: function(el) {
324
+ H5: function H5(el) {
325
325
  var _el_style;
326
326
  var align = (el && typeof el.getAttribute === 'function' ? el.getAttribute('align') : null) || (el === null || el === void 0 ? void 0 : (_el_style = el.style) === null || _el_style === void 0 ? void 0 : _el_style.textAlign) || (el && typeof el.getAttribute === 'function' ? el.getAttribute('data-align') : null);
327
327
  return _object_spread({
@@ -331,17 +331,17 @@ export var ELEMENT_TAGS = {
331
331
  align: align
332
332
  } : {});
333
333
  },
334
- TABLE: function() {
334
+ TABLE: function TABLE() {
335
335
  return {
336
336
  type: 'table'
337
337
  };
338
338
  },
339
- IMG: function(el) {
339
+ IMG: function IMG(el) {
340
340
  // 添加更严格的图片URL验证,避免将普通URL误识别为图片
341
341
  var src = el === null || el === void 0 ? void 0 : el.src;
342
342
  var alt = el === null || el === void 0 ? void 0 : el.alt;
343
343
  // 检查是否为有效的图片URL
344
- var isValidImageUrl = function(url) {
344
+ var isValidImageUrl = function isValidImageUrl(url) {
345
345
  if (!url) return false;
346
346
  // 检查是否为blob URL或data URL
347
347
  if (url.startsWith('blob:') || url.startsWith('data:')) {
@@ -398,34 +398,34 @@ export var ELEMENT_TAGS = {
398
398
  downloadUrl: src && /^https?:/.test(src) ? src : undefined
399
399
  });
400
400
  },
401
- TR: function() {
401
+ TR: function TR() {
402
402
  return {
403
403
  type: 'table-row'
404
404
  };
405
405
  },
406
- TH: function() {
406
+ TH: function TH() {
407
407
  return {
408
408
  type: 'table-cell',
409
409
  title: true
410
410
  };
411
411
  },
412
- TD: function() {
412
+ TD: function TD() {
413
413
  return {
414
414
  type: 'table-cell'
415
415
  };
416
416
  },
417
- LI: function() {
417
+ LI: function LI() {
418
418
  return {
419
419
  type: 'list-item'
420
420
  };
421
421
  },
422
- OL: function() {
422
+ OL: function OL() {
423
423
  return {
424
424
  type: 'list',
425
425
  order: true
426
426
  };
427
427
  },
428
- P: function(el) {
428
+ P: function P(el) {
429
429
  var _el_style;
430
430
  var align = (el && typeof el.getAttribute === 'function' ? el.getAttribute('align') : null) || (el === null || el === void 0 ? void 0 : (_el_style = el.style) === null || _el_style === void 0 ? void 0 : _el_style.textAlign) || (el && typeof el.getAttribute === 'function' ? el.getAttribute('data-align') : null);
431
431
  return _object_spread({
@@ -434,70 +434,70 @@ export var ELEMENT_TAGS = {
434
434
  align: align
435
435
  } : {});
436
436
  },
437
- PRE: function() {
437
+ PRE: function PRE() {
438
438
  return {
439
439
  type: 'code'
440
440
  };
441
441
  },
442
- UL: function() {
442
+ UL: function UL() {
443
443
  return {
444
444
  type: 'bulleted-list'
445
445
  };
446
446
  }
447
447
  };
448
448
  export var TEXT_TAGS = {
449
- A: function(el) {
449
+ A: function A(el) {
450
450
  return {
451
451
  url: el && typeof el.getAttribute === 'function' ? el.getAttribute('href') : null
452
452
  };
453
453
  },
454
- CODE: function() {
454
+ CODE: function CODE() {
455
455
  return {
456
456
  code: true
457
457
  };
458
458
  },
459
- KBD: function() {
459
+ KBD: function KBD() {
460
460
  return {
461
461
  code: true
462
462
  };
463
463
  },
464
- SPAN: function(el) {
464
+ SPAN: function SPAN(el) {
465
465
  return {
466
466
  text: el === null || el === void 0 ? void 0 : el.textContent
467
467
  };
468
468
  },
469
- DEL: function() {
469
+ DEL: function DEL() {
470
470
  return {
471
471
  strikethrough: true
472
472
  };
473
473
  },
474
- EM: function() {
474
+ EM: function EM() {
475
475
  return {
476
476
  italic: true
477
477
  };
478
478
  },
479
- I: function() {
479
+ I: function I() {
480
480
  return {
481
481
  italic: true
482
482
  };
483
483
  },
484
- S: function() {
484
+ S: function S() {
485
485
  return {
486
486
  strikethrough: true
487
487
  };
488
488
  },
489
- STRONG: function() {
489
+ STRONG: function STRONG() {
490
490
  return {
491
491
  bold: true
492
492
  };
493
493
  },
494
- B: function() {
494
+ B: function B() {
495
495
  return {
496
496
  bold: true
497
497
  };
498
498
  }
499
499
  };
500
- export var deserialize = function(el) {
500
+ export var deserialize = function deserialize1(el) {
501
501
  var parentTag = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : '';
502
502
  if ((el === null || el === void 0 ? void 0 : el.nodeName.toLowerCase()) === 'script') return [];
503
503
  if ((el === null || el === void 0 ? void 0 : el.nodeName.toLowerCase()) === 'style') return [];
@@ -598,12 +598,12 @@ export var deserialize = function(el) {
598
598
  }
599
599
  return children;
600
600
  };
601
- var parserCodeText = function(el) {
601
+ var parserCodeText = function parserCodeText(el) {
602
602
  if (!el) return '';
603
603
  el.innerHTML = el === null || el === void 0 ? void 0 : el.innerHTML.replace(/<br\/?>|<\/div>(?=\S)/g, '\n');
604
604
  return el === null || el === void 0 ? void 0 : el.innerText;
605
605
  };
606
- var getTextsNode = function(nodes) {
606
+ var getTextsNode = function getTextsNode1(nodes) {
607
607
  var text = [];
608
608
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
609
609
  try {
@@ -633,7 +633,7 @@ var getTextsNode = function(nodes) {
633
633
  }
634
634
  return text;
635
635
  };
636
- var blobToFile = function(blobUrl, fileName) {
636
+ var blobToFile = function blobToFile(blobUrl, fileName) {
637
637
  return _async_to_generator(function() {
638
638
  var blob, file;
639
639
  return _ts_generator(this, function(_state) {
@@ -660,7 +660,7 @@ var blobToFile = function(blobUrl, fileName) {
660
660
  };
661
661
  /**
662
662
  * 从片段列表中递归移除所有媒体类型的片段(图片、视频、音频等)
663
- */ var removeMediaFragments = function(fragments) {
663
+ */ var removeMediaFragments = function removeMediaFragments1(fragments) {
664
664
  for(var i = fragments.length - 1; i >= 0; i--){
665
665
  var fragment = fragments[i];
666
666
  if (fragment.type === 'media') {
@@ -674,7 +674,7 @@ var blobToFile = function(blobUrl, fileName) {
674
674
  };
675
675
  /**
676
676
  * 分段处理文件上传,避免阻塞主线程
677
- */ var upLoadFileBatch = function(fragmentList, editorProps) {
677
+ */ var upLoadFileBatch = function upLoadFileBatch(fragmentList, editorProps) {
678
678
  return _async_to_generator(function() {
679
679
  var _editorProps_image, mediaFragments, collectMediaFragments, hideLoading, i, batch, progress, error;
680
680
  return _ts_generator(this, function(_state) {
@@ -689,7 +689,7 @@ var blobToFile = function(blobUrl, fileName) {
689
689
  }
690
690
  mediaFragments = [];
691
691
  // 收集所有需要上传的媒体文件
692
- collectMediaFragments = function(fragments) {
692
+ collectMediaFragments = function collectMediaFragments1(fragments) {
693
693
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
694
694
  try {
695
695
  for(var _iterator = fragments[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
@@ -862,7 +862,7 @@ var blobToFile = function(blobUrl, fileName) {
862
862
  };
863
863
  /**
864
864
  * 分段插入节点,避免一次性插入大量内容导致卡顿
865
- */ var insertNodesBatch = function(editor, nodes, at, options) {
865
+ */ var insertNodesBatch = function insertNodesBatch(editor, nodes, at, options) {
866
866
  return _async_to_generator(function() {
867
867
  var i, batch, insertAt;
868
868
  return _ts_generator(this, function(_state) {
@@ -922,7 +922,7 @@ var blobToFile = function(blobUrl, fileName) {
922
922
  };
923
923
  /**
924
924
  * 优化的HTML解析函数,支持分段处理
925
- */ var parseHtmlOptimized = function(html, rtf) {
925
+ */ var parseHtmlOptimized = function parseHtmlOptimized(html, rtf) {
926
926
  return _async_to_generator(function() {
927
927
  var result;
928
928
  return _ts_generator(this, function(_state) {
@@ -950,7 +950,7 @@ var blobToFile = function(blobUrl, fileName) {
950
950
  2,
951
951
  new Promise(function(resolve) {
952
952
  // 使用 requestIdleCallback 在空闲时间处理
953
- var processInIdle = function() {
953
+ var processInIdle = function processInIdle() {
954
954
  try {
955
955
  debugInfo('parseHtmlOptimized - 异步解析开始');
956
956
  var result = docxDeserializer(rtf, html.trim());
@@ -987,7 +987,7 @@ var blobToFile = function(blobUrl, fileName) {
987
987
  * @param editor
988
988
  * @param html
989
989
  * @returns
990
- */ export var htmlToFragmentList = function(html, rtl) {
990
+ */ export var htmlToFragmentList = function htmlToFragmentList(html, rtl) {
991
991
  debugInfo('htmlToFragmentList - 开始转换', {
992
992
  htmlLength: html.length,
993
993
  rtlLength: rtl.length
@@ -1019,7 +1019,7 @@ var blobToFile = function(blobUrl, fileName) {
1019
1019
  });
1020
1020
  return result;
1021
1021
  };
1022
- export var insertParsedHtmlNodes = function(editor, html, editorProps, rtl) {
1022
+ export var insertParsedHtmlNodes = function insertParsedHtmlNodes(editor, html, editorProps, rtl) {
1023
1023
  return _async_to_generator(function() {
1024
1024
  var fragmentList, fragmentsToUpload, _Editor_nodes, node, selection, processedNodes, back, _Editor_nodes1, specialNode, parsed, inner, hasCodeTags, textContent, children, _Editor_nodes2, p, parent, nextPath, texts, text, processedNodes1, error;
1025
1025
  return _ts_generator(this, function(_state) {
@@ -1071,7 +1071,7 @@ export var insertParsedHtmlNodes = function(editor, html, editorProps, rtl) {
1071
1071
  _state.sent();
1072
1072
  // 5. 获取当前节点
1073
1073
  _Editor_nodes = _sliced_to_array(Editor.nodes(editor, {
1074
- match: function(n) {
1074
+ match: function match(n) {
1075
1075
  return Element.isElement(n);
1076
1076
  }
1077
1077
  }), 1), node = _Editor_nodes[0];
@@ -1137,7 +1137,7 @@ export var insertParsedHtmlNodes = function(editor, html, editorProps, rtl) {
1137
1137
  }
1138
1138
  // 8. 获取特殊节点类型
1139
1139
  _Editor_nodes1 = _sliced_to_array(Editor.nodes(editor, {
1140
- match: function(n) {
1140
+ match: function match(n) {
1141
1141
  return Element.isElement(n) && [
1142
1142
  'code',
1143
1143
  'table-cell',
@@ -1215,7 +1215,7 @@ export var insertParsedHtmlNodes = function(editor, html, editorProps, rtl) {
1215
1215
  ];
1216
1216
  }
1217
1217
  _Editor_nodes2 = _sliced_to_array(Editor.nodes(editor, {
1218
- match: function(n) {
1218
+ match: function match(n) {
1219
1219
  return Element.isElement(n) && n.type === 'paragraph';
1220
1220
  },
1221
1221
  at: Range.isCollapsed(selection) ? selection.anchor.path : Range.start(selection).path
@@ -7,7 +7,7 @@ import { parserMdToSchema } from "../parser/parserMdToSchema";
7
7
  * @param markdown - 要解析的Markdown字符串
8
8
  * @param plugins - 可选的Markdown编辑器插件数组,用于扩展解析功能
9
9
  * @returns 如果插入成功则返回true
10
- */ export var parseMarkdownToNodesAndInsert = function(editor, markdown, plugins) {
10
+ */ export var parseMarkdownToNodesAndInsert = function parseMarkdownToNodesAndInsert(editor, markdown, plugins) {
11
11
  var nodes = JSON.parse(JSON.stringify(parserMdToSchema(markdown, plugins).schema));
12
12
  if (nodes.length === 0) {
13
13
  nodes.push({
@@ -92,9 +92,9 @@ var LINK_REG = /(https?|ftp):\/\/[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=
92
92
  var FOOTNOTE_REG = /\[\^[^\]]+\]/g;
93
93
  var TABLE_ROW_REG = /^\|([^|]+\|)+$/;
94
94
  export var cacheTextNode = new WeakMap();
95
- export var clearInlineKatex = function(editor) {
95
+ export var clearInlineKatex = function clearInlineKatex(editor) {
96
96
  var inlineMath = Array.from(Editor.nodes(editor, {
97
- match: function(n) {
97
+ match: function match(n) {
98
98
  return n.type === 'inline-katex';
99
99
  },
100
100
  at: []
@@ -116,7 +116,7 @@ var highlightNodes = new Set([
116
116
  'inline-katex'
117
117
  ]);
118
118
  // 创建 range 对象的工厂函数,复用 path 数组
119
- var createRange = function(path, childIndex, offset, length) {
119
+ var createRange = function createRange(path, childIndex, offset, length) {
120
120
  var props = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {};
121
121
  var childPath = path.concat(childIndex);
122
122
  return _object_spread({
@@ -131,7 +131,7 @@ var createRange = function(path, childIndex, offset, length) {
131
131
  }, props);
132
132
  };
133
133
  // 处理文本节点的匹配逻辑
134
- var processTextMatches = function(text, path, childIndex) {
134
+ var processTextMatches = function processTextMatches(text, path, childIndex) {
135
135
  var ranges = [];
136
136
  // 匹配 footnote reference
137
137
  var match;
@@ -158,7 +158,7 @@ var processTextMatches = function(text, path, childIndex) {
158
158
  return ranges;
159
159
  };
160
160
  // 处理链接匹配
161
- var processLinkMatches = function(text, path, childIndex) {
161
+ var processLinkMatches = function processLinkMatches(text, path, childIndex) {
162
162
  var ranges = [];
163
163
  var match;
164
164
  LINK_REG.lastIndex = 0;
@@ -93,7 +93,7 @@ import { useEditorStore } from "../store";
93
93
  * - 支持跨平台快捷键(Windows/Mac)
94
94
  * - 与编辑器状态深度集成,实现上下文相关的行为
95
95
  * - 提供良好的用户体验和 Markdown 编辑效率
96
- */ export var useKeyboard = function(store, markdownEditorRef, props) {
96
+ */ export var useKeyboard = function useKeyboard(store, markdownEditorRef, props) {
97
97
  var _useEditorStore = useEditorStore(), openInsertCompletion = _useEditorStore.openInsertCompletion, insertCompletionText$ = _useEditorStore.insertCompletionText$, setOpenInsertCompletion = _useEditorStore.setOpenInsertCompletion;
98
98
  return useMemo(function() {
99
99
  var tab = new TabKey(markdownEditorRef.current);
@@ -159,7 +159,7 @@ import { useEditorStore } from "../store";
159
159
  if (selection && Range.isCollapsed(selection)) {
160
160
  var _Editor_nodes = _sliced_to_array(Editor.nodes(markdownEditorRef.current, {
161
161
  at: selection.focus.path,
162
- match: function(n) {
162
+ match: function match(n) {
163
163
  return n.tag === true;
164
164
  }
165
165
  }), 1), node = _Editor_nodes[0];
@@ -205,7 +205,7 @@ import { useEditorStore } from "../store";
205
205
  if (selection1 && Range.isCollapsed(selection1)) {
206
206
  var _Editor_nodes1 = _sliced_to_array(Editor.nodes(markdownEditorRef.current, {
207
207
  at: selection1.focus.path,
208
- match: function(n) {
208
+ match: function match(n) {
209
209
  return Element.isElement(n) && n.type === 'list-item';
210
210
  },
211
211
  mode: 'lowest'
@@ -222,7 +222,7 @@ import { useEditorStore } from "../store";
222
222
  return;
223
223
  }
224
224
  var _Editor_nodes2 = _sliced_to_array(Editor.nodes(markdownEditorRef.current, {
225
- match: function(n) {
225
+ match: function match(n) {
226
226
  return Element.isElement(n);
227
227
  },
228
228
  mode: 'lowest'
@@ -230,7 +230,7 @@ import { useEditorStore } from "../store";
230
230
  if (!node2) return;
231
231
  if ((node2 === null || node2 === void 0 ? void 0 : (_node_ = node2[0]) === null || _node_ === void 0 ? void 0 : _node_.type) === 'paragraph') {
232
232
  var _Editor_nodes3 = _sliced_to_array(Editor.nodes(markdownEditorRef.current, {
233
- match: function(n) {
233
+ match: function match(n) {
234
234
  return Element.isElement(n) && n.type === 'paragraph';
235
235
  },
236
236
  mode: 'lowest'
@@ -225,7 +225,7 @@ var floatBarIgnoreNode = new Set([
225
225
  try {
226
226
  var _node_;
227
227
  var _Editor_nodes = _sliced_to_array(Editor.nodes(editor, {
228
- match: function(n) {
228
+ match: function match(n) {
229
229
  return Element.isElement(n);
230
230
  },
231
231
  mode: 'lowest'
@@ -25,7 +25,7 @@ import { ReactEditor } from "slate-react";
25
25
  * 清空卡片区域的文本内容 - 使用零宽字符替换
26
26
  * @param editor - Slate编辑器实例
27
27
  * @param path - 要清空的节点路径
28
- */ export var clearCardAreaText = function(editor, path) {
28
+ */ export var clearCardAreaText = function clearCardAreaText(editor, path) {
29
29
  try {
30
30
  var node = Node.get(editor, path);
31
31
  if (node) {
@@ -50,7 +50,7 @@ import { ReactEditor } from "slate-react";
50
50
  * 检查卡片是否为空
51
51
  * @param cardNode - 卡片节点
52
52
  * @returns 如果卡片为空则返回true
53
- */ export var isCardEmpty = function(cardNode) {
53
+ */ export var isCardEmpty = function isCardEmpty(cardNode) {
54
54
  if (!cardNode || cardNode.type !== 'card' || !cardNode.children) {
55
55
  return false;
56
56
  }
@@ -39,7 +39,7 @@ import { clearCardAreaText, hasRange, isCardEmpty } from "./utils";
39
39
  * - 在卡片后插入文本 (insert_text)
40
40
  * - 在卡片内插入节点 (insert_node)
41
41
  * - 检查并删除空卡片
42
- */ var handleCardOperation = function(editor, operation, apply) {
42
+ */ var handleCardOperation = function handleCardOperation(editor, operation, apply) {
43
43
  if (operation.type === 'remove_node') {
44
44
  var node = operation.node;
45
45
  // 删除card时,直接删除整个卡片
@@ -166,7 +166,7 @@ import { clearCardAreaText, hasRange, isCardEmpty } from "./utils";
166
166
  * - 卡片节点的删除、插入和文本操作
167
167
  * - 卡片空检查逻辑
168
168
  * - 卡片区域的文本和片段插入处理
169
- */ export var withCardPlugin = function(editor) {
169
+ */ export var withCardPlugin = function withCardPlugin(editor) {
170
170
  var apply = editor.apply, insertText = editor.insertText, insertFragment = editor.insertFragment, deleteBackward = editor.deleteBackward;
171
171
  editor.apply = function(operation) {
172
172
  // 尝试处理卡片相关操作
@@ -111,7 +111,7 @@ import { hasRange } from "./utils";
111
111
  * - 删除文本 (remove_text),处理特殊触发文本和空标签
112
112
  * - 删除节点 (remove_node),处理代码块周围的空格
113
113
  * - 插入文本 (insert_text),处理代码块中的空格插入
114
- */ var handleCodeTagOperation = function(editor, operation, apply) {
114
+ */ var handleCodeTagOperation = function handleCodeTagOperation(editor, operation, apply) {
115
115
  if (operation.type === 'remove_text') {
116
116
  var currentNode = Node.get(editor, operation.path);
117
117
  if (currentNode === null || currentNode === void 0 ? void 0 : currentNode.tag) {
@@ -200,7 +200,7 @@ import { hasRange } from "./utils";
200
200
  *
201
201
  * @description
202
202
  * 该插件重写编辑器的 `apply` 和 `deleteBackward` 方法,添加对代码和标签节点的特殊处理逻辑。
203
- */ export var withCodeTagPlugin = function(editor) {
203
+ */ export var withCodeTagPlugin = function withCodeTagPlugin(editor) {
204
204
  var apply = editor.apply, deleteBackward = editor.deleteBackward;
205
205
  editor.apply = function(operation) {
206
206
  // 尝试处理代码和标签相关操作
@@ -8,7 +8,7 @@ import { inlineNode } from "./utils";
8
8
  * @description
9
9
  * 该插件扩展编辑器的 `isInline` 方法,使其能够识别特定的行内元素类型。
10
10
  * 行内节点包括:'break'、'inline-katex'
11
- */ export var withInlineNodes = function(editor) {
11
+ */ export var withInlineNodes = function withInlineNodes(editor) {
12
12
  var isInline = editor.isInline;
13
13
  editor.isInline = function(element) {
14
14
  return inlineNode.has(element.type) || isInline(element);
@@ -10,7 +10,7 @@ import { Node, Path, Transforms } from "slate";
10
10
  * 处理以下链接和媒体相关操作:
11
11
  * - 拆分链接卡片或媒体节点 (split_node)
12
12
  * - 删除链接卡片内的节点 (remove_node)
13
- */ var handleLinkAndMediaOperation = function(editor, operation) {
13
+ */ var handleLinkAndMediaOperation = function handleLinkAndMediaOperation(editor, operation) {
14
14
  var _operation_properties, _operation_properties1;
15
15
  if (operation.type === 'split_node' && (((_operation_properties = operation.properties) === null || _operation_properties === void 0 ? void 0 : _operation_properties.type) === 'link-card' || ((_operation_properties1 = operation.properties) === null || _operation_properties1 === void 0 ? void 0 : _operation_properties1.type) === 'media')) {
16
16
  var node = Node.get(editor, operation.path);
@@ -56,7 +56,7 @@ import { Node, Path, Transforms } from "slate";
56
56
  *
57
57
  * @description
58
58
  * 该插件重写编辑器的 `apply` 方法,添加对链接卡片和媒体节点的特殊处理逻辑。
59
- */ export var withLinkAndMediaPlugin = function(editor) {
59
+ */ export var withLinkAndMediaPlugin = function withLinkAndMediaPlugin(editor) {
60
60
  var apply = editor.apply;
61
61
  editor.apply = function(operation) {
62
62
  // 尝试处理链接和媒体相关操作
@@ -59,12 +59,12 @@ function _unsupported_iterable_to_array(o, minLen) {
59
59
  import { Editor, Element, Node, Transforms } from "slate";
60
60
  /**
61
61
  * 判断节点是否为列表类型
62
- */ export var isListType = function(node) {
62
+ */ export var isListType = function isListType(node) {
63
63
  return Element.isElement(node) && (node.type === 'bulleted-list' || node.type === 'numbered-list');
64
64
  };
65
65
  /**
66
66
  * 根据 order 属性返回列表类型
67
- */ export var getListType = function(order) {
67
+ */ export var getListType = function getListType(order) {
68
68
  return order ? 'numbered-list' : 'bulleted-list';
69
69
  };
70
70
  /**
@@ -78,7 +78,7 @@ import { Editor, Element, Node, Transforms } from "slate";
78
78
  * - `bulleted-list` 和 `numbered-list` 的直接子节点必须是 `list-item`
79
79
  * - `list-item` 的第一个子节点应该是块级元素(如 `paragraph`)
80
80
  * - 自动修复不符合规范的结构
81
- */ export var withListsPlugin = function(editor) {
81
+ */ export var withListsPlugin = function withListsPlugin(editor) {
82
82
  var normalizeNode = editor.normalizeNode;
83
83
  editor.normalizeNode = function(entry) {
84
84
  var _entry = _sliced_to_array(entry, 2), node = _entry[0], path = _entry[1];
@@ -21,6 +21,6 @@ import { withVoidNodes } from "./withVoidNodes";
21
21
  * - 代码标签功能(withCodeTagPlugin)
22
22
  *
23
23
  * 插件按顺序应用,每个插件都会增强编辑器的特定功能。
24
- */ export var withMarkdown = function(editor) {
24
+ */ export var withMarkdown = function withMarkdown(editor) {
25
25
  return withCodeTagPlugin(withSchemaPlugin(withLinkAndMediaPlugin(withCardPlugin(withListsPlugin(withVoidNodes(withInlineNodes(editor)))))));
26
26
  };
@@ -9,7 +9,7 @@ import { Node, Path, Transforms } from "slate";
9
9
  * @description
10
10
  * 处理以下schema相关操作:
11
11
  * - 拆分schema节点 (split_node),在拆分点之后插入新的段落节点
12
- */ var handleSchemaOperation = function(editor, operation) {
12
+ */ var handleSchemaOperation = function handleSchemaOperation(editor, operation) {
13
13
  var _operation_properties;
14
14
  if (operation.type === 'split_node' && ((_operation_properties = operation.properties) === null || _operation_properties === void 0 ? void 0 : _operation_properties.type) === 'schema') {
15
15
  var node = Node.get(editor, operation.path);
@@ -41,7 +41,7 @@ import { Node, Path, Transforms } from "slate";
41
41
  *
42
42
  * @description
43
43
  * 该插件重写编辑器的 `apply` 方法,添加对schema节点的特殊处理逻辑。
44
- */ export var withSchemaPlugin = function(editor) {
44
+ */ export var withSchemaPlugin = function withSchemaPlugin(editor) {
45
45
  var apply = editor.apply;
46
46
  editor.apply = function(operation) {
47
47
  // 尝试处理schema相关操作
@@ -8,7 +8,7 @@ import { voidNode } from "./utils";
8
8
  * @description
9
9
  * 该插件扩展编辑器的 `isVoid` 方法,使其能够识别特定的空元素类型。
10
10
  * 空节点包括:'hr'、'break'
11
- */ export var withVoidNodes = function(editor) {
11
+ */ export var withVoidNodes = function withVoidNodes(editor) {
12
12
  var isVoid = editor.isVoid;
13
13
  editor.isVoid = function(element) {
14
14
  return voidNode.has(element.type) || isVoid(element);
@@ -157,7 +157,7 @@ export var EditorStoreContext = createContext(null);
157
157
  * ```tsx
158
158
  * const { store, readonly, typewriter } = useEditorStore();
159
159
  * ```
160
- */ export var useEditorStore = function() {
160
+ */ export var useEditorStore = function useEditorStore() {
161
161
  return useContext(EditorStoreContext) || {
162
162
  store: {},
163
163
  readonly: true,
@@ -326,7 +326,7 @@ export var EditorStoreContext = createContext(null);
326
326
  if (!sel || !Range.isCollapsed(sel)) return;
327
327
  // @ts-ignore
328
328
  var _Editor_nodes = _sliced_to_array(Editor.nodes(this._editor.current, {
329
- match: function(n) {
329
+ match: function match(n) {
330
330
  return Element.isElement(n);
331
331
  },
332
332
  mode: 'lowest'
@@ -341,7 +341,7 @@ export var EditorStoreContext = createContext(null);
341
341
  } else {
342
342
  // @ts-ignore
343
343
  var _Editor_nodes1 = _sliced_to_array(Editor.nodes(this._editor.current, {
344
- match: function(n) {
344
+ match: function match(n) {
345
345
  return Element.isElement(n) && [
346
346
  'table',
347
347
  'code',
@@ -562,7 +562,7 @@ export var EditorStoreContext = createContext(null);
562
562
  var isFirstBatch = true;
563
563
  var rafId = null;
564
564
  // 边解析边插入
565
- var parseAndInsertNextBatch = function() {
565
+ var parseAndInsertNextBatch = function parseAndInsertNextBatch1() {
566
566
  try {
567
567
  // 检查是否被取消
568
568
  if (signal === null || signal === void 0 ? void 0 : signal.aborted) {
@@ -1918,7 +1918,7 @@ export var EditorStoreContext = createContext(null);
1918
1918
  var editor = this._editor.current;
1919
1919
  var textNodes = Array.from(Editor.nodes(editor, {
1920
1920
  at: [],
1921
- match: function(n) {
1921
+ match: function match(n) {
1922
1922
  return Text.isText(n) && typeof n.text === 'string';
1923
1923
  }
1924
1924
  }));
@@ -2036,7 +2036,7 @@ export var EditorStoreContext = createContext(null);
2036
2036
  if (!searchText) return 0;
2037
2037
  var textNodes = Array.from(Editor.nodes(editor, {
2038
2038
  at: selection,
2039
- match: function(n) {
2039
+ match: function match(n) {
2040
2040
  return Text.isText(n) && typeof n.text === 'string';
2041
2041
  }
2042
2042
  }));
@@ -56,7 +56,7 @@ import "./code.css";
56
56
  // 导入统一的标签样式配置
57
57
  import { TAG_STYLES } from "./tagStyles";
58
58
  var COMMENT_HIGHLIGHT_COLOR = 'var(--agentic-comment-highlight-color, rgba(21, 0, 255, 0.15))';
59
- var genStyle = function(token) {
59
+ var genStyle = function genStyle(token) {
60
60
  var _obj;
61
61
  return _obj = {
62
62
  // 拖拽手柄样式
@@ -573,7 +573,7 @@ var genStyle = function(token) {
573
573
  }
574
574
  }), _obj;
575
575
  };
576
- var genSlideStyle = function(token) {
576
+ var genSlideStyle = function genSlideStyle(token) {
577
577
  var _obj;
578
578
  return _obj = {}, _define_property(_obj, "".concat(token.componentCls, "-report"), _define_property({
579
579
  '[data-be="chart"]': {