@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
@@ -5,7 +5,7 @@
5
5
  * @param title - The document title
6
6
  * @param styles - Additional CSS styles to include
7
7
  * @returns A complete HTML document as a string
8
- */ export var generateHtmlDocument = function(content) {
8
+ */ export var generateHtmlDocument = function generateHtmlDocument(content) {
9
9
  var title = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 'Markdown Export', styles = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : '';
10
10
  return '<!DOCTYPE html>\n<html>\n<head>\n <meta charset="UTF-8">\n <meta name="viewport" content="width=device-width, initial-scale=1.0">\n <title>'.concat(title, "</title>\n <style>\n body {\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;\n line-height: 1.6;\n padding: 12px;\n max-width: 900px;\n margin: 0 auto;\n color: #333;\n }\n pre {\n background-color: #f6f8fa;\n border-radius: 3px;\n padding: 16px;\n overflow: auto;\n }\n code {\n background-color: rgba(27, 31, 35, 0.05);\n border-radius: 3px;\n padding: 0.2em 0.4em;\n font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;\n }\n blockquote {\n border-left: 4px solid #ddd;\n padding-left: 16px;\n margin-left: 0;\n color: #666;\n }\n img {\n max-width: 100%;\n }\n table {\n border-collapse: collapse;\n width: 100%;\n margin-bottom: 16px;\n }\n table, th, td {\n border: 1px solid #ddd;\n }\n th, td {\n padding: 8px;\n text-align: left;\n vertical-align: middle;\n }\n th {\n background-color: #f6f8fa;\n }\n @media screen and (max-width: 768px) {\n th, td {\n padding: 2px;\n }\n }\n ").concat(styles, "\n </style>\n</head>\n<body>\n ").concat(content, "\n</body>\n</html>");
11
11
  };
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * @param htmlContent - The HTML content to export
16
16
  * @param filename - The name of the file to save
17
- */ export var exportHtml = function(htmlContent) {
17
+ */ export var exportHtml = function exportHtml(htmlContent) {
18
18
  var filename = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 'export.html';
19
19
  try {
20
20
  var fullHtml = generateHtmlDocument(htmlContent);
@@ -69,7 +69,7 @@ import { Editor, Transforms } from "slate";
69
69
  var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
70
70
  var _options_rows = options.rows, rows = _options_rows === void 0 ? 2 : _options_rows, _options_cols = options.cols, cols = _options_cols === void 0 ? 2 : _options_cols, at = options.at;
71
71
  // 确保行数和列数至少为1
72
- var clamp = function(n) {
72
+ var clamp = function clamp(n) {
73
73
  return n < 1 ? 1 : n;
74
74
  };
75
75
  var actualRows = clamp(rows);
@@ -126,7 +126,7 @@ import { Editor, Transforms } from "slate";
126
126
  * @param at - 位置
127
127
  */ findTable: function findTable(editor, at) {
128
128
  return Editor.above(editor, {
129
- match: function(n) {
129
+ match: function match(n) {
130
130
  return Editor.isBlock(editor, n) && n.type === 'table';
131
131
  },
132
132
  at: at
@@ -138,7 +138,7 @@ import { Editor, Transforms } from "slate";
138
138
  * @param at - 位置
139
139
  */ findTableRow: function findTableRow(editor, at) {
140
140
  return Editor.above(editor, {
141
- match: function(n) {
141
+ match: function match(n) {
142
142
  return Editor.isBlock(editor, n) && n.type === 'table-row';
143
143
  },
144
144
  at: at
@@ -150,7 +150,7 @@ import { Editor, Transforms } from "slate";
150
150
  * @param at - 位置
151
151
  */ findTableCell: function findTableCell(editor, at) {
152
152
  return Editor.above(editor, {
153
- match: function(n) {
153
+ match: function match(n) {
154
154
  return Editor.isBlock(editor, n) && n.type === 'table-cell';
155
155
  },
156
156
  at: at
@@ -138,7 +138,7 @@ export var SupportedFileFormats = {
138
138
  }
139
139
  };
140
140
  var DEFAULT_FORMAT_MESSAGE = '支持上传文件,每个文件不超过 ${maxSize},支持 ${extensions}等格式。';
141
- var buildFormatMessage = function(format, locale) {
141
+ var buildFormatMessage = function buildFormatMessage(format, locale) {
142
142
  var _ref;
143
143
  var _format_extensions;
144
144
  var maxSize = kbToSize(format.maxSize || DEFAULT_MAX_SIZE);
@@ -149,14 +149,14 @@ var buildFormatMessage = function(format, locale) {
149
149
  extensions: extensions
150
150
  });
151
151
  };
152
- var FormatContent = function(param) {
152
+ var FormatContent = function FormatContent(param) {
153
153
  var format = param.format, locale = param.locale;
154
154
  if (format.content) return /*#__PURE__*/ React.createElement(React.Fragment, null, format.content);
155
155
  return /*#__PURE__*/ React.createElement("div", {
156
156
  style: CONTENT_STYLE
157
157
  }, buildFormatMessage(format, locale));
158
158
  };
159
- export var AttachmentSupportedFormatsContent = function(param) {
159
+ export var AttachmentSupportedFormatsContent = function AttachmentSupportedFormatsContent(param) {
160
160
  var supportedFormat = param.supportedFormat, locale = param.locale;
161
161
  var format = supportedFormat || SupportedFileFormats.image;
162
162
  return /*#__PURE__*/ React.createElement(FormatContent, {
@@ -164,7 +164,7 @@ export var AttachmentSupportedFormatsContent = function(param) {
164
164
  locale: locale
165
165
  });
166
166
  };
167
- export var AttachmentButtonPopover = function(param) {
167
+ export var AttachmentButtonPopover = function AttachmentButtonPopover(param) {
168
168
  var children = param.children, supportedFormat = param.supportedFormat, uploadImage = param.uploadImage, localeProp = param.locale;
169
169
  var _useState = _sliced_to_array(useState(false), 2), modalOpen = _useState[0], setModalOpen = _useState[1];
170
170
  var _useContext = useContext(I18nContext), contextLocale = _useContext.locale;
@@ -202,7 +202,7 @@ export var AttachmentButtonPopover = function(param) {
202
202
  });
203
203
  if (isVivoOrOppo) {
204
204
  return /*#__PURE__*/ React.createElement("div", {
205
- onClick: function(e) {
205
+ onClick: function onClick(e) {
206
206
  if (isVivoOrOppo) {
207
207
  e.stopPropagation();
208
208
  e.preventDefault();
@@ -212,7 +212,7 @@ export var AttachmentButtonPopover = function(param) {
212
212
  onClick: handleClick
213
213
  }, children), /*#__PURE__*/ React.createElement(Modal, {
214
214
  open: modalOpen,
215
- onCancel: function() {
215
+ onCancel: function onCancel() {
216
216
  return setModalOpen(false);
217
217
  },
218
218
  footer: null,
@@ -235,7 +235,7 @@ export var AttachmentButtonPopover = function(param) {
235
235
  gap: 2,
236
236
  padding: '12px 0'
237
237
  },
238
- onClick: function(e) {
238
+ onClick: function onClick(e) {
239
239
  e.stopPropagation();
240
240
  e.preventDefault();
241
241
  }
@@ -264,7 +264,7 @@ export var AttachmentButtonPopover = function(param) {
264
264
  locale: locale
265
265
  })
266
266
  }, /*#__PURE__*/ React.createElement("span", {
267
- onClick: function(e) {
267
+ onClick: function onClick(e) {
268
268
  if (isVivoOrOppo) {
269
269
  e.stopPropagation();
270
270
  e.preventDefault();
@@ -44,7 +44,7 @@ var IMAGE_PREVIEW_CONFIG = {
44
44
  mask: /*#__PURE__*/ React.createElement("div", null, /*#__PURE__*/ React.createElement(Eye, null)),
45
45
  visible: false
46
46
  };
47
- export var AttachmentFileIcon = function(props) {
47
+ export var AttachmentFileIcon = function AttachmentFileIcon(props) {
48
48
  var _file_type;
49
49
  var file = props.file, className = props.className;
50
50
  // 上传中状态
@@ -30,19 +30,19 @@ import { motion } from "framer-motion";
30
30
  import React from "react";
31
31
  import { kbToSize } from "../utils";
32
32
  import { AttachmentFileIcon } from "./AttachmentFileIcon";
33
- var getFileNameWithoutExtension = function(fileName) {
33
+ var getFileNameWithoutExtension = function getFileNameWithoutExtension(fileName) {
34
34
  return fileName.split('.').slice(0, -1).join('.');
35
35
  };
36
- var getFileExtension = function(fileName) {
36
+ var getFileExtension = function getFileExtension(fileName) {
37
37
  return fileName.split('.').slice(-1)[0];
38
38
  };
39
- var buildClassName = function() {
39
+ var buildClassName = function buildClassName() {
40
40
  for(var _len = arguments.length, classes = new Array(_len), _key = 0; _key < _len; _key++){
41
41
  classes[_key] = arguments[_key];
42
42
  }
43
43
  return classNames.apply(void 0, _to_consumable_array(classes));
44
44
  };
45
- var FileIcon = function(param) {
45
+ var FileIcon = function FileIcon(param) {
46
46
  var file = param.file, prefixCls = param.prefixCls, hashId = param.hashId;
47
47
  var status = file.status || 'done';
48
48
  var iconMap = {
@@ -61,7 +61,7 @@ var FileIcon = function(param) {
61
61
  className: buildClassName("".concat(prefixCls, "-file-icon"), hashId)
62
62
  }, iconMap[status]);
63
63
  };
64
- var FileSizeInfo = function(param) {
64
+ var FileSizeInfo = function FileSizeInfo(param) {
65
65
  var file = param.file, prefixCls = param.prefixCls, hashId = param.hashId;
66
66
  var status = file.status || 'done';
67
67
  var baseClassName = buildClassName("".concat(prefixCls, "-file-size"), hashId);
@@ -92,7 +92,7 @@ var FileSizeInfo = function(param) {
92
92
  className: baseClassName
93
93
  }, content);
94
94
  };
95
- var DeleteButton = function(param) {
95
+ var DeleteButton = function DeleteButton(param) {
96
96
  var isVisible = param.isVisible, onClick = param.onClick, prefixCls = param.prefixCls, hashId = param.hashId;
97
97
  if (!isVisible) return null;
98
98
  return /*#__PURE__*/ React.createElement("div", {
@@ -117,20 +117,20 @@ var ANIMATION_VARIANTS = {
117
117
  y: -20
118
118
  }
119
119
  };
120
- export var AttachmentFileListItem = function(param) {
120
+ export var AttachmentFileListItem = function AttachmentFileListItem(param) {
121
121
  var file = param.file, prefixCls = param.prefixCls, hashId = param.hashId, onPreview = param.onPreview, onRetry = param.onRetry, onDelete = param.onDelete, className = param.className;
122
122
  var isErrorStatus = file.status === 'error';
123
123
  var isDoneStatus = file.status === 'done';
124
124
  var canDelete = file.status !== 'uploading';
125
- var handleFileClick = function() {
125
+ var handleFileClick = function handleFileClick() {
126
126
  if (!isDoneStatus) return;
127
127
  onPreview === null || onPreview === void 0 ? void 0 : onPreview();
128
128
  };
129
- var handleRetryClick = function() {
129
+ var handleRetryClick = function handleRetryClick() {
130
130
  if (!isErrorStatus) return;
131
131
  onRetry === null || onRetry === void 0 ? void 0 : onRetry();
132
132
  };
133
- var handleDeleteClick = function(e) {
133
+ var handleDeleteClick = function handleDeleteClick(e) {
134
134
  e.stopPropagation();
135
135
  onDelete === null || onDelete === void 0 ? void 0 : onDelete();
136
136
  };
@@ -90,14 +90,14 @@ var IMAGE_PREVIEW_STYLE = {
90
90
  display: 'none'
91
91
  };
92
92
  var CLEAR_BUTTON_TRANSITION = 'all 0.3s cubic-bezier(0.4, 0, 0.2, 1)';
93
- var getFileKey = function(file, index) {
93
+ var getFileKey = function getFileKey(file, index) {
94
94
  return (file === null || file === void 0 ? void 0 : file.uuid) || (file === null || file === void 0 ? void 0 : file.name) || index;
95
95
  };
96
- var openFileInNewWindow = function(url) {
96
+ var openFileInNewWindow = function openFileInNewWindow(url) {
97
97
  if (typeof window === 'undefined' || !url) return;
98
98
  window.open(url, '_blank');
99
99
  };
100
- var ClearButton = function(param) {
100
+ var ClearButton = function ClearButton(param) {
101
101
  var visible = param.visible, opacity = param.opacity, onClick = param.onClick, className = param.className;
102
102
  if (!visible) return null;
103
103
  return /*#__PURE__*/ React.createElement(ActionIconBox, {
@@ -109,7 +109,7 @@ var ClearButton = function(param) {
109
109
  className: className
110
110
  }, /*#__PURE__*/ React.createElement(X, null));
111
111
  };
112
- export var AttachmentFileList = function(param) {
112
+ export var AttachmentFileList = function AttachmentFileList(param) {
113
113
  var fileMap = param.fileMap, onDelete = param.onDelete, onPreview = param.onPreview, onDownload = param.onDownload, onRetry = param.onRetry, onClearFileMap = param.onClearFileMap;
114
114
  var context = useContext(ConfigProvider.ConfigContext);
115
115
  var prefix = context === null || context === void 0 ? void 0 : context.getPrefixCls('agentic-md-editor-attachment-list');
@@ -124,7 +124,7 @@ export var AttachmentFileList = function(param) {
124
124
  var canShowClearButton = !isAnyUploading;
125
125
  var containerStyle = fileCount ? {} : HIDDEN_STYLE;
126
126
  var clearButtonOpacity = fileCount ? 1 : 0;
127
- var handlePreview = function(file) {
127
+ var handlePreview = function handlePreview(file) {
128
128
  if (onPreview) {
129
129
  onPreview(file);
130
130
  return;
@@ -135,25 +135,25 @@ export var AttachmentFileList = function(param) {
135
135
  }
136
136
  openFileInNewWindow(file.previewUrl || file.url);
137
137
  };
138
- var handlePreviewClose = function(visible) {
138
+ var handlePreviewClose = function handlePreviewClose(visible) {
139
139
  if (!visible) setImgSrc(undefined);
140
140
  };
141
- var handleDelete = function(file) {
141
+ var handleDelete = function handleDelete(file) {
142
142
  return function() {
143
143
  return onDelete(file);
144
144
  };
145
145
  };
146
- var handlePreviewFile = function(file) {
146
+ var handlePreviewFile = function handlePreviewFile(file) {
147
147
  return function() {
148
148
  return handlePreview(file);
149
149
  };
150
150
  };
151
- var handleDownload = function(file) {
151
+ var handleDownload = function handleDownload(file) {
152
152
  return function() {
153
153
  return onDownload === null || onDownload === void 0 ? void 0 : onDownload(file);
154
154
  };
155
155
  };
156
- var handleRetry = function(file) {
156
+ var handleRetry = function handleRetry(file) {
157
157
  return function() {
158
158
  return onRetry === null || onRetry === void 0 ? void 0 : onRetry(file);
159
159
  };
@@ -51,7 +51,7 @@ function _object_spread_props(target, source) {
51
51
  return target;
52
52
  }
53
53
  import { resetComponent, useEditorStyleRegister } from "../../../Hooks/useStyle";
54
- var genStyle = function(token) {
54
+ var genStyle = function genStyle(token) {
55
55
  var _obj;
56
56
  return _obj = {}, _define_property(_obj, "".concat(token.componentCls), {
57
57
  maxWidth: '100%',
@@ -161,35 +161,35 @@ var DEFAULT_MESSAGES = {
161
161
  uploading: 'Uploading...',
162
162
  uploadSuccess: 'Upload success',
163
163
  uploadFailed: 'Upload failed',
164
- maxFileCountExceeded: function(count) {
164
+ maxFileCountExceeded: function maxFileCountExceeded(count) {
165
165
  return "最多只能上传 ".concat(count, " 个文件");
166
166
  },
167
- minFileCountRequired: function(count) {
167
+ minFileCountRequired: function minFileCountRequired(count) {
168
168
  return "至少需要上传 ".concat(count, " 个文件");
169
169
  },
170
- fileSizeExceeded: function(size) {
170
+ fileSizeExceeded: function fileSizeExceeded(size) {
171
171
  return "文件大小超过 ".concat(size, " KB");
172
172
  }
173
173
  };
174
- var waitTime = function(ms) {
174
+ var waitTime = function waitTime(ms) {
175
175
  return new Promise(function(resolve) {
176
176
  return setTimeout(resolve, ms);
177
177
  });
178
178
  };
179
- var generateFileUUID = function(fileName) {
179
+ var generateFileUUID = function generateFileUUID(fileName) {
180
180
  return Date.now() + Math.random() * 1000 + fileName;
181
181
  };
182
- var prepareFile = function(file) {
182
+ var prepareFile = function prepareFile(file) {
183
183
  file.status = 'uploading';
184
184
  file.uuid = generateFileUUID(file.name);
185
185
  if (isImageFile(file)) {
186
186
  file.previewUrl = URL.createObjectURL(file);
187
187
  }
188
188
  };
189
- var getLocaleMessage = function(locale, key, defaultMsg) {
189
+ var getLocaleMessage = function getLocaleMessage(locale, key, defaultMsg) {
190
190
  return (locale === null || locale === void 0 ? void 0 : locale[key]) || defaultMsg;
191
191
  };
192
- var validateFileCount = function(newFileCount, existingFileCount, props) {
192
+ var validateFileCount = function validateFileCount(newFileCount, existingFileCount, props) {
193
193
  var totalFileCount = newFileCount + existingFileCount;
194
194
  if (props.maxFileCount && totalFileCount > props.maxFileCount) {
195
195
  var _props_locale;
@@ -209,7 +209,7 @@ var validateFileCount = function(newFileCount, existingFileCount, props) {
209
209
  }
210
210
  return true;
211
211
  };
212
- var validateFileSize = function(file, props) {
212
+ var validateFileSize = function validateFileSize(file, props) {
213
213
  var _props_locale_markdownInputfileSizeExceeded, _props_locale;
214
214
  if (!props.maxFileSize || file.size <= props.maxFileSize) return true;
215
215
  var maxSizeKB = props.maxFileSize / KB_SIZE;
@@ -217,13 +217,13 @@ var validateFileSize = function(file, props) {
217
217
  message.error(msg);
218
218
  return false;
219
219
  };
220
- var updateFileMap = function(map, file, onFileMapChange) {
220
+ var updateFileMap = function updateFileMap(map, file, onFileMapChange) {
221
221
  if (file.uuid) {
222
222
  map.set(file.uuid, file);
223
223
  onFileMapChange === null || onFileMapChange === void 0 ? void 0 : onFileMapChange(map);
224
224
  }
225
225
  };
226
- var uploadSingleFile = function(file, index, props) {
226
+ var uploadSingleFile = function uploadSingleFile(file, index, props) {
227
227
  return _async_to_generator(function() {
228
228
  var result, url;
229
229
  return _ts_generator(this, function(_state) {
@@ -280,19 +280,19 @@ var uploadSingleFile = function(file, index, props) {
280
280
  });
281
281
  })();
282
282
  };
283
- var handleUploadSuccess = function(file, url, map, props) {
283
+ var handleUploadSuccess = function handleUploadSuccess(file, url, map, props) {
284
284
  file.status = 'done';
285
285
  file.url = url;
286
286
  updateFileMap(map, file, props.onFileMapChange);
287
287
  message.success(getLocaleMessage(props.locale, 'uploadSuccess', DEFAULT_MESSAGES.uploadSuccess));
288
288
  };
289
- var handleUploadError = function(file, errorMsg, map, props) {
289
+ var handleUploadError = function handleUploadError(file, errorMsg, map, props) {
290
290
  file.status = 'error';
291
291
  updateFileMap(map, file, props.onFileMapChange);
292
292
  var msg = errorMsg || getLocaleMessage(props.locale, 'uploadFailed', DEFAULT_MESSAGES.uploadFailed);
293
293
  message.error(msg);
294
294
  };
295
- var processFile = function(file, index, map, props) {
295
+ var processFile = function processFile(file, index, map, props) {
296
296
  return _async_to_generator(function() {
297
297
  var _ref, url, isSuccess, errorMsg, error, errorMessage;
298
298
  return _ts_generator(this, function(_state) {
@@ -363,7 +363,7 @@ var processFile = function(file, index, map, props) {
363
363
  * @param props.maxFileCount - 最大文件数量
364
364
  * @param props.minFileCount - 最小文件数量
365
365
  * @param props.locale - 国际化文案
366
- */ export var upLoadFileToServer = function(files, props) {
366
+ */ export var upLoadFileToServer = function upLoadFileToServer(files, props) {
367
367
  return _async_to_generator(function() {
368
368
  var map, existingFileCount, hideLoading, fileList, i, error;
369
369
  return _ts_generator(this, function(_state) {
@@ -452,7 +452,7 @@ var BUTTON_TITLE_STYLE = {
452
452
  letterSpacing: 'var(--letter-spacing-body-base, normal)',
453
453
  color: 'var(--color-gray-text-default)'
454
454
  };
455
- var ButtonContent = function(param) {
455
+ var ButtonContent = function ButtonContent(param) {
456
456
  var title = param.title;
457
457
  return /*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement(Paperclip, null), title !== null && title ? /*#__PURE__*/ React.createElement("div", {
458
458
  style: BUTTON_TITLE_STYLE
@@ -473,13 +473,13 @@ var ButtonContent = function(param) {
473
473
  * uploadImage={handleUpload}
474
474
  * />
475
475
  * ```
476
- */ export var AttachmentButton = function(param) {
476
+ */ export var AttachmentButton = function AttachmentButton(param) {
477
477
  var disabled = param.disabled, uploadImage = param.uploadImage, title = param.title, supportedFormat = param.supportedFormat, locale = param.locale, render = param.render;
478
478
  var context = useContext(ConfigProvider.ConfigContext);
479
479
  var prefix = context === null || context === void 0 ? void 0 : context.getPrefixCls('agentic-md-editor-attachment-button');
480
480
  var _useStyle = useStyle(prefix), wrapSSR = _useStyle.wrapSSR, hashId = _useStyle.hashId;
481
481
  var format = supportedFormat || SupportedFileFormats.image;
482
- var handleClick = function() {
482
+ var handleClick = function handleClick() {
483
483
  if (disabled) return;
484
484
  uploadImage === null || uploadImage === void 0 ? void 0 : uploadImage();
485
485
  };
@@ -51,7 +51,7 @@ function _object_spread_props(target, source) {
51
51
  return target;
52
52
  }
53
53
  import { resetComponent, useEditorStyleRegister } from "../../Hooks/useStyle";
54
- var genStyle = function(token) {
54
+ var genStyle = function genStyle(token) {
55
55
  return _define_property({}, token.componentCls, _define_property({
56
56
  display: 'flex',
57
57
  alignItems: 'center',
@@ -15,7 +15,7 @@
15
15
  * kbToSize(0.1) // "102.4 B"
16
16
  * kbToSize(0.0001) // "0.1 B"
17
17
  * kbToSize(0) // "0 B"
18
- */ export var kbToSize = function(kb) {
18
+ */ export var kbToSize = function kbToSize(kb) {
19
19
  var sizes = [
20
20
  'B',
21
21
  'KB',
@@ -41,7 +41,7 @@
41
41
  *
42
42
  * @param {File} file - 要检查的文件
43
43
  * @returns {boolean} 是否为图片文件
44
- */ export var isImageFile = function(file) {
44
+ */ export var isImageFile = function isImageFile(file) {
45
45
  // 首先检查 MIME 类型
46
46
  if (file.type.startsWith('image/')) {
47
47
  return true;
@@ -281,7 +281,7 @@
281
281
  * getDeviceBrand() // 'vivo' | '华为' | 'iphone' | false
282
282
  * getDeviceBrand('Mozilla/5.0...vivo...') // 'vivo'
283
283
  * ```
284
- */ export var getDeviceBrand = function(ua) {
284
+ */ export var getDeviceBrand = function getDeviceBrand(ua) {
285
285
  if (typeof navigator === 'undefined' && !ua) {
286
286
  return false;
287
287
  }
@@ -313,7 +313,7 @@
313
313
  * ```ts
314
314
  * isVivoDevice() // true | false
315
315
  * ```
316
- */ export var isVivoDevice = function(ua) {
316
+ */ export var isVivoDevice = function isVivoDevice(ua) {
317
317
  var brand = getDeviceBrand(ua);
318
318
  return brand === 'vivo';
319
319
  };
@@ -327,7 +327,7 @@
327
327
  * ```ts
328
328
  * isOppoDevice() // true | false
329
329
  * ```
330
- */ export var isOppoDevice = function(ua) {
330
+ */ export var isOppoDevice = function isOppoDevice(ua) {
331
331
  var brand = getDeviceBrand(ua);
332
332
  return brand === 'oppo';
333
333
  };
@@ -341,7 +341,7 @@
341
341
  * ```ts
342
342
  * isVivoOrOppoDevice() // true | false
343
343
  * ```
344
- */ export var isVivoOrOppoDevice = function(ua) {
344
+ */ export var isVivoOrOppoDevice = function isVivoOrOppoDevice(ua) {
345
345
  return isVivoDevice(ua) || isOppoDevice(ua);
346
346
  };
347
347
  /**
@@ -353,7 +353,7 @@
353
353
  * ```ts
354
354
  * isMobileDevice() // true | false
355
355
  * ```
356
- */ export var isMobileDevice = function() {
356
+ */ export var isMobileDevice = function isMobileDevice() {
357
357
  if (typeof navigator === 'undefined') {
358
358
  return false;
359
359
  }
@@ -376,7 +376,7 @@
376
376
  * ```ts
377
377
  * isWeChat() // true | false
378
378
  * ```
379
- */ export var isWeChat = function(ua) {
379
+ */ export var isWeChat = function isWeChat(ua) {
380
380
  if (typeof navigator === 'undefined' && !ua) {
381
381
  return false;
382
382
  }
@@ -128,13 +128,13 @@ var DraggablePopupItem = /*#__PURE__*/ React.memo(function(props) {
128
128
  draggable: true,
129
129
  onMouseDown: handleMouseDown,
130
130
  onMouseUp: handleMouseUp,
131
- onDragStart: function(evt) {
131
+ onDragStart: function onDragStart1(evt) {
132
132
  return onDragStart(evt, index);
133
133
  },
134
- onDragOver: function(evt) {
134
+ onDragOver: function onDragOver1(evt) {
135
135
  return onDragOver(evt, index);
136
136
  },
137
- onDrop: function(evt) {
137
+ onDrop: function onDrop1(evt) {
138
138
  return onDrop(evt, index);
139
139
  },
140
140
  onDragEnd: onDragEnd
@@ -146,7 +146,7 @@ var DraggablePopupItem = /*#__PURE__*/ React.memo(function(props) {
146
146
  }, entry.node));
147
147
  });
148
148
  DraggablePopupItem.displayName = 'DraggablePopupItem';
149
- export var ActionItemContainer = function(props) {
149
+ export var ActionItemContainer = function ActionItemContainer(props) {
150
150
  var getPrefixCls = useContext(ConfigProvider.ConfigContext).getPrefixCls;
151
151
  var basePrefixCls = getPrefixCls('agentic-chat-action-item-box');
152
152
  var _useStyle = useStyle(basePrefixCls), wrapSSR = _useStyle.wrapSSR, hashId = _useStyle.hashId;
@@ -79,7 +79,7 @@ import React, { useEffect, useRef, useState } from "react";
79
79
  * - 使用线性渐变实现彩色光束效果
80
80
  * - 路径计算在组件内部完成
81
81
  * - 使用 ResizeObserver 自动获取容器尺寸
82
- */ export var BorderBeamAnimation = function(param) {
82
+ */ export var BorderBeamAnimation = function BorderBeamAnimation(param) {
83
83
  var isVisible = param.isVisible, borderRadius = param.borderRadius, onAnimationComplete = param.onAnimationComplete, _param_gradientId = param.gradientId, gradientId = _param_gradientId === void 0 ? 'beam-gradient' : _param_gradientId, _param_offsetX = param.offsetX, offsetX = _param_offsetX === void 0 ? 1 : _param_offsetX, _param_offsetY = param.offsetY, offsetY = _param_offsetY === void 0 ? 0 : _param_offsetY;
84
84
  var containerRef = useRef(null);
85
85
  var _useState = _sliced_to_array(useState({
@@ -1,7 +1,7 @@
1
1
  import { ExpandAlt, FoldAlt } from "@sofa-design/icons";
2
2
  import React from "react";
3
3
  import { ActionIconBox } from "../../Components/ActionIconBox";
4
- var Enlargement = function(param) {
4
+ var Enlargement = function Enlargement(param) {
5
5
  var _param_isEnlarged = param.isEnlarged, isEnlarged = _param_isEnlarged === void 0 ? false : _param_isEnlarged, onEnlargeClick = param.onEnlargeClick;
6
6
  return /*#__PURE__*/ React.createElement(ActionIconBox, {
7
7
  title: isEnlarged ? '缩小' : '放大',
@@ -89,15 +89,15 @@ import { kbToSize } from "../AttachmentButton/utils";
89
89
  * - 显示工具提示
90
90
  * - 自动处理文件状态
91
91
  * - 支持自定义样式
92
- */ export var FileMapViewItem = function(props) {
92
+ */ export var FileMapViewItem = function FileMapViewItem(props) {
93
93
  var _ref;
94
94
  var file = props.file;
95
95
  var locale = useContext(I18nContext).locale;
96
96
  var _React_useState = _sliced_to_array(React.useState(false), 2), hovered = _React_useState[0], setHovered = _React_useState[1];
97
- var handleMouseEnter = function() {
97
+ var handleMouseEnter = function handleMouseEnter() {
98
98
  return setHovered(true);
99
99
  };
100
- var handleMouseLeave = function() {
100
+ var handleMouseLeave = function handleMouseLeave() {
101
101
  return setHovered(false);
102
102
  };
103
103
  var fileName = (_ref = file === null || file === void 0 ? void 0 : file.name) !== null && _ref !== void 0 ? _ref : '';
@@ -111,7 +111,7 @@ import { kbToSize } from "../AttachmentButton/utils";
111
111
  }, /*#__PURE__*/ React.createElement(motion.div, {
112
112
  onMouseEnter: handleMouseEnter,
113
113
  onMouseLeave: handleMouseLeave,
114
- onClick: function() {
114
+ onClick: function onClick() {
115
115
  if (file.status === 'error') return;
116
116
  if (props.onPreview) {
117
117
  var _props_onPreview;
@@ -168,13 +168,13 @@ import { kbToSize } from "../AttachmentButton/utils";
168
168
  className: classNames("".concat(props.prefixCls, "-action-bar"), props.hashId)
169
169
  }, props.customSlot ? /*#__PURE__*/ React.createElement(ActionIconBox, {
170
170
  title: '更多',
171
- onClick: function(e) {
171
+ onClick: function onClick(e) {
172
172
  e.stopPropagation();
173
173
  },
174
174
  className: classNames("".concat(props.prefixCls, "-action-btn"), props.hashId)
175
175
  }, typeof props.customSlot === 'function' ? props.customSlot(file) : props.customSlot) : /*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement(ActionIconBox, {
176
176
  title: (locale === null || locale === void 0 ? void 0 : locale.preview) || '预览',
177
- onClick: function(e) {
177
+ onClick: function onClick(e) {
178
178
  e.stopPropagation();
179
179
  if (props.onPreview) {
180
180
  var _props_onPreview;
@@ -190,7 +190,7 @@ import { kbToSize } from "../AttachmentButton/utils";
190
190
  color: "var(--color-gray-text-secondary)"
191
191
  })), props.onDownload && /*#__PURE__*/ React.createElement(ActionIconBox, {
192
192
  title: (locale === null || locale === void 0 ? void 0 : locale.download) || '下载',
193
- onClick: function(e) {
193
+ onClick: function onClick(e) {
194
194
  var _props_onDownload;
195
195
  e.stopPropagation();
196
196
  (_props_onDownload = props.onDownload) === null || _props_onDownload === void 0 ? void 0 : _props_onDownload.call(props);
@@ -200,7 +200,7 @@ import { kbToSize } from "../AttachmentButton/utils";
200
200
  color: "var(--color-gray-text-secondary)"
201
201
  })), props.renderMoreAction && /*#__PURE__*/ React.createElement(ActionIconBox, {
202
202
  title: "更多操作",
203
- onClick: function(e) {
203
+ onClick: function onClick(e) {
204
204
  e.stopPropagation();
205
205
  },
206
206
  className: classNames("".concat(props.prefixCls, "-action-btn"), props.hashId)
@@ -231,7 +231,7 @@ import { useStyle } from "./style";
231
231
  * - 提供动画效果
232
232
  * - 自动识别文件类型
233
233
  * - 支持自定义样式和交互
234
- */ export var FileMapView = function(props) {
234
+ */ export var FileMapView = function FileMapView(props) {
235
235
  var _props_style;
236
236
  var _props_placement = props.placement, placement = _props_placement === void 0 ? 'left' : _props_placement;
237
237
  var context = useContext(ConfigProvider.ConfigContext);
@@ -275,7 +275,7 @@ import { useStyle } from "./style";
275
275
  props.maxDisplayCount,
276
276
  showAllFiles
277
277
  ]);
278
- var handleViewAllClick = function() {
278
+ var handleViewAllClick = function handleViewAllClick() {
279
279
  return _async_to_generator(function() {
280
280
  var shouldExpand;
281
281
  return _ts_generator(this, function(_state) {
@@ -51,7 +51,7 @@ function _object_spread_props(target, source) {
51
51
  return target;
52
52
  }
53
53
  import { resetComponent, useEditorStyleRegister } from "../../Hooks/useStyle";
54
- var genStyle = function(token) {
54
+ var genStyle = function genStyle(token) {
55
55
  var _obj;
56
56
  return _define_property({}, "".concat(token.componentCls), (_obj = {
57
57
  maxWidth: '100%',
@@ -126,7 +126,7 @@ function _ts_generator(thisArg, body) {
126
126
  };
127
127
  }
128
128
  }
129
- var processEntry = function(entry) {
129
+ var processEntry = function processEntry1(entry) {
130
130
  return _async_to_generator(function() {
131
131
  return _ts_generator(this, function(_state) {
132
132
  return [
@@ -171,7 +171,7 @@ var processEntry = function(entry) {
171
171
  });
172
172
  })();
173
173
  };
174
- export var getFileListFromDataTransferItems = function(event) {
174
+ export var getFileListFromDataTransferItems = function getFileListFromDataTransferItems(event) {
175
175
  return _async_to_generator(function() {
176
176
  var _event_clipboardData, items, filePromises, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _loop, _iterator, _step, fileArrays;
177
177
  return _ts_generator(this, function(_state) {