@ant-design/agentic-ui 2.29.5 → 2.29.7

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 (308) hide show
  1. package/dist/AILabel/index.js +17 -8
  2. package/dist/AgenticLayout/index.js +3 -5
  3. package/dist/BackTo/BackBottom.js +17 -8
  4. package/dist/BackTo/BackTop.js +17 -8
  5. package/dist/BackTo/ScrollVisibleButton.js +75 -11
  6. package/dist/Bubble/AIBubble.js +131 -121
  7. package/dist/Bubble/Avatar/index.js +19 -10
  8. package/dist/Bubble/FileView.js +2 -2
  9. package/dist/Bubble/List/PureBubbleList.js +4 -5
  10. package/dist/Bubble/List/index.js +4 -5
  11. package/dist/Bubble/List/style.js +3 -0
  12. package/dist/Bubble/MessagesContent/BubbleExtra.js +108 -93
  13. package/dist/Bubble/MessagesContent/CopyButton/index.js +36 -26
  14. package/dist/Bubble/MessagesContent/DocInfo.js +19 -10
  15. package/dist/Bubble/MessagesContent/MarkdownPreview.js +2 -2
  16. package/dist/Bubble/MessagesContent/index.js +149 -130
  17. package/dist/Bubble/PureBubble.js +151 -133
  18. package/dist/Bubble/UserBubble.js +1 -1
  19. package/dist/Bubble/style.js +2 -2
  20. package/dist/Bubble/types/BubbleExtra.js +4 -1
  21. package/dist/Bubble/types/DocInfo.js +9 -1
  22. package/dist/ChatLayout/components/FooterBackgroundLottie/images/img_0.png +0 -0
  23. package/dist/ChatLayout/components/FooterBackgroundLottie/images/img_1.png +0 -0
  24. package/dist/ChatLayout/components/FooterBackgroundLottie/images/img_2.png +0 -0
  25. package/dist/ChatLayout/components/FooterBackgroundLottie/index.d.ts +51 -0
  26. package/dist/ChatLayout/components/FooterBackgroundLottie/index.js +45 -0
  27. package/dist/ChatLayout/components/FooterBackgroundLottie/lottie.d.ts +85 -0
  28. package/dist/ChatLayout/components/FooterBackgroundLottie/lottie.js +382 -0
  29. package/dist/ChatLayout/index.js +52 -14
  30. package/dist/ChatLayout/style.js +11 -0
  31. package/dist/ChatLayout/types.d.ts +28 -0
  32. package/dist/Components/ActionIconBox/index.js +30 -38
  33. package/dist/Components/ActionItemBox/ActionItemBox.js +1 -1
  34. package/dist/Components/Button/SwitchButton/index.js +18 -17
  35. package/dist/Components/LayoutHeader/index.js +5 -3
  36. package/dist/Components/LayoutHeader/style.js +5 -0
  37. package/dist/Components/Loading/CreativeRecommendationLoading.js +2 -2
  38. package/dist/Components/Loading/CreativeSparkLoading.js +2 -2
  39. package/dist/Components/SuggestionList/index.js +20 -19
  40. package/dist/Components/TextAnimate/index.js +19 -10
  41. package/dist/Components/TypingAnimation/index.js +19 -10
  42. package/dist/Components/effects/EffectPlayer.js +20 -11
  43. package/dist/Components/icons/LoadingSpinnerIcon.js +19 -10
  44. package/dist/History/components/HistoryActionsBox.js +21 -23
  45. package/dist/History/components/HistoryItem.js +61 -53
  46. package/dist/History/components/HistoryRunningIcon.js +19 -10
  47. package/dist/History/components/LoadMoreComponent.js +61 -55
  48. package/dist/History/components/NewChatComponent.js +53 -47
  49. package/dist/History/components/SearchComponent.js +24 -26
  50. package/dist/History/hooks/useHistory.js +80 -73
  51. package/dist/History/index.js +17 -16
  52. package/dist/History/menu.js +17 -8
  53. package/dist/Hooks/useAutoScroll.js +19 -19
  54. package/dist/Hooks/useDebounceFn/index.js +51 -45
  55. package/dist/Hooks/useElementSize.d.ts +5 -0
  56. package/dist/Hooks/useElementSize.js +71 -0
  57. package/dist/Hooks/useIntersectionOnce.js +17 -8
  58. package/dist/Hooks/useLanguage.d.ts +3 -0
  59. package/dist/I18n/locales.d.ts +3 -0
  60. package/dist/I18n/locales.js +8 -0
  61. package/dist/MarkdownEditor/BaseMarkdownEditor.js +22 -12
  62. package/dist/MarkdownEditor/editor/Editor.js +31 -39
  63. package/dist/MarkdownEditor/editor/components/CommentList/index.js +29 -37
  64. package/dist/MarkdownEditor/editor/elements/Image/index.js +86 -71
  65. package/dist/MarkdownEditor/editor/elements/List/ListItem.js +17 -16
  66. package/dist/MarkdownEditor/editor/elements/Media/index.js +107 -92
  67. package/dist/MarkdownEditor/editor/elements/Table/Table.js +19 -10
  68. package/dist/MarkdownEditor/editor/elements/TagPopup/index.js +17 -16
  69. package/dist/MarkdownEditor/editor/parser/parse/parseBlockElements.js +1 -1
  70. package/dist/MarkdownEditor/editor/parser/parse/parseCode.js +1 -1
  71. package/dist/MarkdownEditor/editor/parser/parse/parseEmptyLines.js +1 -1
  72. package/dist/MarkdownEditor/editor/parser/parse/parseTable.js +4 -1
  73. package/dist/MarkdownEditor/editor/parser/parserSlateNodeToMarkdown.js +2 -2
  74. package/dist/MarkdownEditor/editor/parser/remarkParse.js +3 -1
  75. package/dist/MarkdownEditor/editor/plugins/handlePaste.js +25 -30
  76. package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/arrow.js +0 -1
  77. package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/enter.js +0 -1
  78. package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/match.js +0 -1
  79. package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/tab.js +0 -1
  80. package/dist/MarkdownEditor/editor/plugins/insertParsedHtmlNodes.js +39 -53
  81. package/dist/MarkdownEditor/editor/plugins/useKeyboard.js +1 -1
  82. package/dist/MarkdownEditor/editor/plugins/useOnchange.js +28 -22
  83. package/dist/MarkdownEditor/editor/plugins/withMarkdown.js +1 -1
  84. package/dist/MarkdownEditor/editor/store.js +17 -13
  85. package/dist/MarkdownEditor/editor/tools/InsertAutocomplete.js +202 -197
  86. package/dist/MarkdownEditor/editor/tools/InsertLink.js +2 -2
  87. package/dist/MarkdownEditor/editor/tools/ToolBar/ReadonlyBaseBar.js +142 -134
  88. package/dist/MarkdownEditor/editor/utils/ace.js +61 -61
  89. package/dist/MarkdownEditor/editor/utils/editorUtils.js +11 -4
  90. package/dist/MarkdownEditor/editor/utils/index.js +8 -2
  91. package/dist/MarkdownEditor/editor/utils/keyboard.js +31 -35
  92. package/dist/MarkdownEditor/editor/utils/markdownToHtml.js +23 -17
  93. package/dist/MarkdownEditor/editor/utils/media.js +21 -23
  94. package/dist/MarkdownEditor/editor/utils/performanceMonitor.js +55 -50
  95. package/dist/MarkdownEditor/editor/utils/useLocalState.js +11 -4
  96. package/dist/MarkdownEditor/types.d.ts +1 -0
  97. package/dist/MarkdownEditor/types.js +4 -1
  98. package/dist/MarkdownEditor/utils/native-table/native-table-editor.js +14 -14
  99. package/dist/MarkdownEditor/utils/native-table/native-table-keyboard.js +2 -2
  100. package/dist/MarkdownInputField/AttachmentButton/AttachmentFileList/style.js +1 -0
  101. package/dist/MarkdownInputField/AttachmentButton/index.js +33 -31
  102. package/dist/MarkdownInputField/BeforeToolContainer/BeforeToolContainer.js +14 -7
  103. package/dist/MarkdownInputField/FileMapView/FileMapViewItem.js +2 -2
  104. package/dist/MarkdownInputField/FileMapView/index.js +17 -16
  105. package/dist/MarkdownInputField/FilePaste/index.js +25 -30
  106. package/dist/MarkdownInputField/FileUploadManager/index.js +39 -40
  107. package/dist/MarkdownInputField/MarkdownInputField.js +38 -29
  108. package/dist/MarkdownInputField/QuickActions/index.js +66 -60
  109. package/dist/MarkdownInputField/SendButton/index.js +22 -13
  110. package/dist/MarkdownInputField/Suggestion/index.js +17 -16
  111. package/dist/MarkdownInputField/VoiceInput/index.js +51 -45
  112. package/dist/MarkdownInputField/VoiceInputManager/index.js +133 -125
  113. package/dist/MarkdownInputField/hooks/useMarkdownInputFieldHandlers.js +103 -101
  114. package/dist/MarkdownInputField/hooks/useMarkdownInputFieldStyles.js +1 -1
  115. package/dist/MarkdownInputField/style.js +1 -2
  116. package/dist/MarkdownInputField/types/MarkdownInputFieldProps.js +14 -1
  117. package/dist/Plugins/chart/BarChart/index.js +8 -8
  118. package/dist/Plugins/chart/ChartRender.js +52 -46
  119. package/dist/Plugins/chart/DonutChart/index.js +26 -17
  120. package/dist/Plugins/chart/DonutChart/plugins.js +1 -1
  121. package/dist/Plugins/chart/DonutChart/types.js +1 -1
  122. package/dist/Plugins/chart/FunnelChart/index.js +31 -28
  123. package/dist/Plugins/chart/LineChart/index.js +19 -10
  124. package/dist/Plugins/chart/RadarChart/index.js +19 -10
  125. package/dist/Plugins/chart/ScatterChart/index.js +19 -10
  126. package/dist/Plugins/chart/components/ChartContainer/ChartContainer.js +20 -11
  127. package/dist/Plugins/chart/index.js +31 -13
  128. package/dist/Plugins/chart/loadChartRuntime.js +17 -16
  129. package/dist/Plugins/chart/types/classNames.js +4 -1
  130. package/dist/Plugins/chart/utils.js +20 -20
  131. package/dist/Plugins/code/CodeUI/Katex/Katex.js +52 -46
  132. package/dist/Plugins/code/components/AceEditor.js +149 -133
  133. package/dist/Plugins/code/components/CodeRenderer.js +7 -7
  134. package/dist/Plugins/code/components/CodeToolbar.js +2 -2
  135. package/dist/Plugins/code/components/LanguageSelector.js +6 -6
  136. package/dist/Plugins/code/components/LoadImage.js +5 -5
  137. package/dist/Plugins/code/components/ThinkBlock.js +8 -8
  138. package/dist/Plugins/code/hooks/useCodeEditorState.js +5 -5
  139. package/dist/Plugins/code/index.js +6 -6
  140. package/dist/Plugins/code/langIconMap.js +0 -1
  141. package/dist/Plugins/code/langIcons/AbapIcon.js +19 -10
  142. package/dist/Plugins/code/langIcons/ActionscriptIcon.js +19 -10
  143. package/dist/Plugins/code/langIcons/AdaIcon.js +19 -10
  144. package/dist/Plugins/code/langIcons/ApacheIcon.js +19 -10
  145. package/dist/Plugins/code/langIcons/ApexIcon.js +19 -10
  146. package/dist/Plugins/code/langIcons/AplIcon.js +19 -10
  147. package/dist/Plugins/code/langIcons/ApplescriptIcon.js +19 -10
  148. package/dist/Plugins/code/langIcons/AstroIcon.js +19 -10
  149. package/dist/Plugins/code/langIcons/AwkIcon.js +19 -10
  150. package/dist/Plugins/code/langIcons/BallerinaIcon.js +19 -10
  151. package/dist/Plugins/code/langIcons/BatIcon.js +19 -10
  152. package/dist/Plugins/code/langIcons/BicepIcon.js +19 -10
  153. package/dist/Plugins/code/langIcons/BladeIcon.js +19 -10
  154. package/dist/Plugins/code/langIcons/CIcon.js +19 -10
  155. package/dist/Plugins/code/langIcons/CadenceIcon.js +19 -10
  156. package/dist/Plugins/code/langIcons/ClojureIcon.js +19 -10
  157. package/dist/Plugins/code/langIcons/CmakeIcon.js +19 -10
  158. package/dist/Plugins/code/langIcons/CobolIcon.js +19 -10
  159. package/dist/Plugins/code/langIcons/CodeqlIcon.js +19 -10
  160. package/dist/Plugins/code/langIcons/CoffeeIcon.js +19 -10
  161. package/dist/Plugins/code/langIcons/ConsoleIcon.js +19 -10
  162. package/dist/Plugins/code/langIcons/CppIcon.js +19 -10
  163. package/dist/Plugins/code/langIcons/CrystalIcon.js +19 -10
  164. package/dist/Plugins/code/langIcons/CsharpIcon.js +19 -10
  165. package/dist/Plugins/code/langIcons/CssIcon.js +19 -10
  166. package/dist/Plugins/code/langIcons/DIcon.js +19 -10
  167. package/dist/Plugins/code/langIcons/DartIcon.js +19 -10
  168. package/dist/Plugins/code/langIcons/DatabaseIcon.js +19 -10
  169. package/dist/Plugins/code/langIcons/DiffIcon.js +19 -10
  170. package/dist/Plugins/code/langIcons/DockerIcon.js +19 -10
  171. package/dist/Plugins/code/langIcons/DotenvIcon.js +19 -10
  172. package/dist/Plugins/code/langIcons/ElixirIcon.js +19 -10
  173. package/dist/Plugins/code/langIcons/ElmIcon.js +19 -10
  174. package/dist/Plugins/code/langIcons/ErbIcon.js +19 -10
  175. package/dist/Plugins/code/langIcons/ErlangIcon.js +19 -10
  176. package/dist/Plugins/code/langIcons/FsharpIcon.js +19 -10
  177. package/dist/Plugins/code/langIcons/GdscriptIcon.js +19 -10
  178. package/dist/Plugins/code/langIcons/GlslIcon.js +19 -10
  179. package/dist/Plugins/code/langIcons/GnuplotIcon.js +19 -10
  180. package/dist/Plugins/code/langIcons/GoIcon.js +19 -10
  181. package/dist/Plugins/code/langIcons/GraphqlIcon.js +19 -10
  182. package/dist/Plugins/code/langIcons/GroovyIcon.js +19 -10
  183. package/dist/Plugins/code/langIcons/HackIcon.js +19 -10
  184. package/dist/Plugins/code/langIcons/HamlIcon.js +19 -10
  185. package/dist/Plugins/code/langIcons/HandlebarsIcon.js +19 -10
  186. package/dist/Plugins/code/langIcons/HaskellIcon.js +19 -10
  187. package/dist/Plugins/code/langIcons/HclIcon.js +19 -10
  188. package/dist/Plugins/code/langIcons/HclLightIcon.js +19 -10
  189. package/dist/Plugins/code/langIcons/HjsonIcon.js +19 -10
  190. package/dist/Plugins/code/langIcons/HlslIcon.js +19 -10
  191. package/dist/Plugins/code/langIcons/HtmlIcon.js +19 -10
  192. package/dist/Plugins/code/langIcons/HttpIcon.js +19 -10
  193. package/dist/Plugins/code/langIcons/ImbaIcon.js +19 -10
  194. package/dist/Plugins/code/langIcons/IniIcon.js +19 -10
  195. package/dist/Plugins/code/langIcons/JavaIcon.js +19 -10
  196. package/dist/Plugins/code/langIcons/JavascriptIcon.js +19 -10
  197. package/dist/Plugins/code/langIcons/JinjaIcon.js +19 -10
  198. package/dist/Plugins/code/langIcons/Json5Icon.js +19 -10
  199. package/dist/Plugins/code/langIcons/JsonIcon.js +19 -10
  200. package/dist/Plugins/code/langIcons/JsonnetIcon.js +19 -10
  201. package/dist/Plugins/code/langIcons/JuliaIcon.js +19 -10
  202. package/dist/Plugins/code/langIcons/KotlinIcon.js +19 -10
  203. package/dist/Plugins/code/langIcons/KustoIcon.js +19 -10
  204. package/dist/Plugins/code/langIcons/LessIcon.js +19 -10
  205. package/dist/Plugins/code/langIcons/LiquidIcon.js +19 -10
  206. package/dist/Plugins/code/langIcons/LispIcon.js +19 -10
  207. package/dist/Plugins/code/langIcons/LuaIcon.js +19 -10
  208. package/dist/Plugins/code/langIcons/MakefileIcon.js +19 -10
  209. package/dist/Plugins/code/langIcons/MarkdownIcon.js +19 -10
  210. package/dist/Plugins/code/langIcons/MarkojsIcon.js +19 -10
  211. package/dist/Plugins/code/langIcons/MatlabIcon.js +19 -10
  212. package/dist/Plugins/code/langIcons/MdxIcon.js +19 -10
  213. package/dist/Plugins/code/langIcons/MermaidIcon.js +19 -10
  214. package/dist/Plugins/code/langIcons/MojoIcon.js +19 -10
  215. package/dist/Plugins/code/langIcons/NginxIcon.js +19 -10
  216. package/dist/Plugins/code/langIcons/NimIcon.js +19 -10
  217. package/dist/Plugins/code/langIcons/NixIcon.js +19 -10
  218. package/dist/Plugins/code/langIcons/ObjectiveCIcon.js +19 -10
  219. package/dist/Plugins/code/langIcons/ObjectiveCppIcon.js +19 -10
  220. package/dist/Plugins/code/langIcons/OcamlIcon.js +19 -10
  221. package/dist/Plugins/code/langIcons/PascalIcon.js +19 -10
  222. package/dist/Plugins/code/langIcons/Perl6Icon.js +19 -10
  223. package/dist/Plugins/code/langIcons/PerlIcon.js +19 -10
  224. package/dist/Plugins/code/langIcons/PhpIcon.js +19 -10
  225. package/dist/Plugins/code/langIcons/PostcssIcon.js +19 -10
  226. package/dist/Plugins/code/langIcons/PowershellIcon.js +19 -10
  227. package/dist/Plugins/code/langIcons/PrismaIcon.js +19 -10
  228. package/dist/Plugins/code/langIcons/PrologIcon.js +19 -10
  229. package/dist/Plugins/code/langIcons/ProtoIcon.js +19 -10
  230. package/dist/Plugins/code/langIcons/PugIcon.js +19 -10
  231. package/dist/Plugins/code/langIcons/PuppetIcon.js +19 -10
  232. package/dist/Plugins/code/langIcons/PurescriptIcon.js +19 -10
  233. package/dist/Plugins/code/langIcons/PythonIcon.js +19 -10
  234. package/dist/Plugins/code/langIcons/RIcon.js +19 -10
  235. package/dist/Plugins/code/langIcons/RazorIcon.js +19 -10
  236. package/dist/Plugins/code/langIcons/ReactIcon.js +19 -10
  237. package/dist/Plugins/code/langIcons/ReactTsIcon.js +19 -10
  238. package/dist/Plugins/code/langIcons/RubyIcon.js +19 -10
  239. package/dist/Plugins/code/langIcons/RustIcon.js +19 -10
  240. package/dist/Plugins/code/langIcons/SasIcon.js +19 -10
  241. package/dist/Plugins/code/langIcons/SassIcon.js +19 -10
  242. package/dist/Plugins/code/langIcons/ScalaIcon.js +19 -10
  243. package/dist/Plugins/code/langIcons/SchemeIcon.js +19 -10
  244. package/dist/Plugins/code/langIcons/ShaderlabIcon.js +19 -10
  245. package/dist/Plugins/code/langIcons/SolidityIcon.js +19 -10
  246. package/dist/Plugins/code/langIcons/SparqlIcon.js +19 -10
  247. package/dist/Plugins/code/langIcons/StataIcon.js +19 -10
  248. package/dist/Plugins/code/langIcons/StylusIcon.js +19 -10
  249. package/dist/Plugins/code/langIcons/SvelteIcon.js +19 -10
  250. package/dist/Plugins/code/langIcons/SwiftIcon.js +19 -10
  251. package/dist/Plugins/code/langIcons/SystemverilogIcon.js +19 -10
  252. package/dist/Plugins/code/langIcons/TclIcon.js +19 -10
  253. package/dist/Plugins/code/langIcons/TexIcon.js +19 -10
  254. package/dist/Plugins/code/langIcons/TomlIcon.js +19 -10
  255. package/dist/Plugins/code/langIcons/TwigIcon.js +19 -10
  256. package/dist/Plugins/code/langIcons/TypescriptIcon.js +19 -10
  257. package/dist/Plugins/code/langIcons/VerilogIcon.js +19 -10
  258. package/dist/Plugins/code/langIcons/VhdlIcon.js +19 -10
  259. package/dist/Plugins/code/langIcons/VimIcon.js +19 -10
  260. package/dist/Plugins/code/langIcons/VueIcon.js +19 -10
  261. package/dist/Plugins/code/langIcons/WebassemblyIcon.js +19 -10
  262. package/dist/Plugins/code/langIcons/WenyanIcon.js +19 -10
  263. package/dist/Plugins/code/langIcons/WgslIcon.js +19 -10
  264. package/dist/Plugins/code/langIcons/WolframlanguageIcon.js +19 -10
  265. package/dist/Plugins/code/langIcons/XmlIcon.js +19 -10
  266. package/dist/Plugins/code/langIcons/XslIcon.js +19 -10
  267. package/dist/Plugins/code/langIcons/YamlIcon.js +19 -10
  268. package/dist/Plugins/code/langIcons/ZigIcon.js +19 -10
  269. package/dist/Plugins/code/loadAceEditor.js +21 -23
  270. package/dist/Plugins/code/utils/langOptions.js +6 -6
  271. package/dist/Plugins/formatter/index.js +6 -6
  272. package/dist/Plugins/katex/InlineKatex.js +52 -46
  273. package/dist/Plugins/katex/Katex.js +53 -47
  274. package/dist/Plugins/katex/index.js +6 -6
  275. package/dist/Plugins/katex/loadKatex.js +27 -29
  276. package/dist/Plugins/mermaid/Mermaid.js +34 -28
  277. package/dist/Plugins/mermaid/useMermaidRender.js +103 -97
  278. package/dist/Plugins/mermaid/utils.js +25 -17
  279. package/dist/Schema/SchemaEditor/AceEditorWrapper.js +162 -150
  280. package/dist/Schema/SchemaEditor/index.js +8 -1
  281. package/dist/Schema/SchemaForm/index.js +2 -2
  282. package/dist/Schema/SchemaRenderer/index.js +45 -46
  283. package/dist/ThoughtChainList/index.js +22 -13
  284. package/dist/ToolUseBar/BarItem/Content.js +3 -3
  285. package/dist/ToolUseBar/BarItem/index.js +10 -3
  286. package/dist/ToolUseBar/index.js +19 -10
  287. package/dist/ToolUseBar/style.js +4 -4
  288. package/dist/Types/common.js +4 -1
  289. package/dist/Types/message.js +4 -1
  290. package/dist/Utils/debugUtils.js +8 -8
  291. package/dist/Utils/getScroll.js +12 -5
  292. package/dist/Utils/loadCSS.js +23 -22
  293. package/dist/Utils/proxySandbox/ProxySandbox.js +42 -34
  294. package/dist/Utils/proxySandbox/SecurityContextManager.js +54 -54
  295. package/dist/Utils/proxySandbox/index.js +25 -22
  296. package/dist/Utils/proxySandbox/types.js +11 -11
  297. package/dist/Utils/scrollTo.js +8 -1
  298. package/dist/WelcomeMessage/index.js +1 -1
  299. package/dist/Workspace/File/FileComponent.js +91 -66
  300. package/dist/Workspace/File/PreviewComponent.js +15 -8
  301. package/dist/Workspace/File/index.d.ts +1 -1
  302. package/dist/Workspace/File/style.js +7 -0
  303. package/dist/Workspace/RealtimeFollow/index.js +1 -2
  304. package/dist/Workspace/index.js +13 -11
  305. package/dist/Workspace/style.js +8 -14
  306. package/dist/Workspace/types.d.ts +50 -0
  307. package/dist/Workspace/types.js +0 -1
  308. package/package.json +25 -25
@@ -96,6 +96,13 @@ function _inherits(subClass, superClass) {
96
96
  });
97
97
  if (superClass) _set_prototype_of(subClass, superClass);
98
98
  }
99
+ function _instanceof(left, right) {
100
+ if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
101
+ return !!right[Symbol.hasInstance](left);
102
+ } else {
103
+ return left instanceof right;
104
+ }
105
+ }
99
106
  function _iterable_to_array_limit(arr, i) {
100
107
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
101
108
  if (_i == null) return;
@@ -199,7 +206,7 @@ function _is_native_reflect_construct() {
199
206
  })();
200
207
  }
201
208
  function _ts_generator(thisArg, body) {
202
- var f, y, t, g, _ = {
209
+ var f, y, t, _ = {
203
210
  label: 0,
204
211
  sent: function() {
205
212
  if (t[0] & 1) throw t[1];
@@ -207,13 +214,17 @@ function _ts_generator(thisArg, body) {
207
214
  },
208
215
  trys: [],
209
216
  ops: []
210
- };
211
- return g = {
212
- next: verb(0),
213
- "throw": verb(1),
214
- "return": verb(2)
215
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
216
- return this;
217
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
218
+ return d(g, "next", {
219
+ value: verb(0)
220
+ }), d(g, "throw", {
221
+ value: verb(1)
222
+ }), d(g, "return", {
223
+ value: verb(2)
224
+ }), typeof Symbol === "function" && d(g, Symbol.iterator, {
225
+ value: function() {
226
+ return this;
227
+ }
217
228
  }), g;
218
229
  function verb(n) {
219
230
  return function(v) {
@@ -225,7 +236,7 @@ function _ts_generator(thisArg, body) {
225
236
  }
226
237
  function step(op) {
227
238
  if (f) throw new TypeError("Generator is already executing.");
228
- while(_)try {
239
+ while(g && (g = 0, op[0] && (_ = 0)), _)try {
229
240
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
230
241
  if (y = 0, t) op = [
231
242
  op[0] & 2,
@@ -350,8 +361,8 @@ export * from "./templateEngine";
350
361
  };
351
362
  /**
352
363
  * 在沙箱中执行脚本
353
- */ var executeSandboxedScript = /*#__PURE__*/ function() {
354
- var _ref = _async_to_generator(function(script, shadowRoot, sandboxConfig) {
364
+ */ var executeSandboxedScript = function(script, shadowRoot, sandboxConfig) {
365
+ return _async_to_generator(function() {
355
366
  var sandbox, result, evalError;
356
367
  return _ts_generator(this, function(_state) {
357
368
  switch(_state.label){
@@ -396,15 +407,12 @@ export * from "./templateEngine";
396
407
  ];
397
408
  }
398
409
  });
399
- });
400
- return function executeSandboxedScript(script, shadowRoot, sandboxConfig) {
401
- return _ref.apply(this, arguments);
402
- };
403
- }();
410
+ })();
411
+ };
404
412
  /**
405
413
  * 执行内联脚本
406
- */ var executeInlineScript = /*#__PURE__*/ function() {
407
- var _ref = _async_to_generator(function(script, shadowRoot, sandboxConfig) {
414
+ */ var executeInlineScript = function(script, shadowRoot, sandboxConfig) {
415
+ return _async_to_generator(function() {
408
416
  return _ts_generator(this, function(_state) {
409
417
  switch(_state.label){
410
418
  case 0:
@@ -425,15 +433,12 @@ export * from "./templateEngine";
425
433
  ];
426
434
  }
427
435
  });
428
- });
429
- return function executeInlineScript(script, shadowRoot, sandboxConfig) {
430
- return _ref.apply(this, arguments);
431
- };
432
- }();
436
+ })();
437
+ };
433
438
  /**
434
439
  * 执行脚本(内联或外部)
435
- */ var executeScript = /*#__PURE__*/ function() {
436
- var _ref = _async_to_generator(function(script, shadowRoot, sandboxConfig) {
440
+ */ var executeScript = function(script, shadowRoot, sandboxConfig) {
441
+ return _async_to_generator(function() {
437
442
  var scriptError;
438
443
  return _ts_generator(this, function(_state) {
439
444
  switch(_state.label){
@@ -478,11 +483,8 @@ export * from "./templateEngine";
478
483
  ];
479
484
  }
480
485
  });
481
- });
482
- return function executeScript(script, shadowRoot, sandboxConfig) {
483
- return _ref.apply(this, arguments);
484
- };
485
- }();
486
+ })();
487
+ };
486
488
  /**
487
489
  * ErrorBoundary 组件 - 错误边界组件
488
490
  *
@@ -652,7 +654,7 @@ export * from "./templateEngine";
652
654
  return s.trim();
653
655
  });
654
656
  }
655
- } catch (e) {
657
+ } catch (unused) {
656
658
  mergedData[key] = val.split(',').map(function(s) {
657
659
  return s.trim();
658
660
  });
@@ -665,7 +667,7 @@ export * from "./templateEngine";
665
667
  } catch (error) {
666
668
  mergedData[key] = val;
667
669
  }
668
- } catch (e) {
670
+ } catch (unused) {
669
671
  mergedData[key] = {};
670
672
  }
671
673
  }
@@ -717,7 +719,7 @@ export * from "./templateEngine";
717
719
  return templateHtml;
718
720
  } catch (error) {
719
721
  console.error('模板渲染错误:', error);
720
- setRenderError("Template rendering error: ".concat(error instanceof Error ? error.message : String(error)));
722
+ setRenderError("Template rendering error: ".concat(_instanceof(error, Error) ? error.message : String(error)));
721
723
  return '';
722
724
  }
723
725
  }, [
@@ -729,15 +731,15 @@ export * from "./templateEngine";
729
731
  // 应用主题样式
730
732
  var containerStyle = useMemo(function() {
731
733
  try {
734
+ var _ref, _ref1, _safeSpacing_width;
732
735
  var _safeTypography_fontSizes, _safeTypography_lineHeights;
733
736
  var safeTheme = safeSchema.theme || {};
734
737
  var safeTypography = safeTheme.typography || {};
735
738
  var safeSpacing = safeTheme.spacing || {};
736
- var _safeTypography_fontSizes_, _safeTypography_lineHeights_normal, _safeSpacing_width;
737
739
  return {
738
740
  fontFamily: safeTypography.fontFamily,
739
- fontSize: "".concat((_safeTypography_fontSizes_ = (_safeTypography_fontSizes = safeTypography.fontSizes) === null || _safeTypography_fontSizes === void 0 ? void 0 : _safeTypography_fontSizes[2]) !== null && _safeTypography_fontSizes_ !== void 0 ? _safeTypography_fontSizes_ : '14', "px"),
740
- lineHeight: (_safeTypography_lineHeights_normal = (_safeTypography_lineHeights = safeTypography.lineHeights) === null || _safeTypography_lineHeights === void 0 ? void 0 : _safeTypography_lineHeights.normal) !== null && _safeTypography_lineHeights_normal !== void 0 ? _safeTypography_lineHeights_normal : 1.6,
741
+ fontSize: "".concat((_ref = (_safeTypography_fontSizes = safeTypography.fontSizes) === null || _safeTypography_fontSizes === void 0 ? void 0 : _safeTypography_fontSizes[2]) !== null && _ref !== void 0 ? _ref : '14', "px"),
742
+ lineHeight: (_ref1 = (_safeTypography_lineHeights = safeTypography.lineHeights) === null || _safeTypography_lineHeights === void 0 ? void 0 : _safeTypography_lineHeights.normal) !== null && _ref1 !== void 0 ? _ref1 : 1.6,
741
743
  width: (_safeSpacing_width = safeSpacing.width) !== null && _safeSpacing_width !== void 0 ? _safeSpacing_width : 'max-content',
742
744
  margin: '1em'
743
745
  };
@@ -777,12 +779,12 @@ export * from "./templateEngine";
777
779
  shadowRoot.innerHTML = '';
778
780
  // 添加样式
779
781
  try {
782
+ var _ref, _ref1;
780
783
  var _safeTypography_fontSizes, _safeTypography_lineHeights;
781
784
  var style = document.createElement('style');
782
785
  var safeTheme = safeSchema.theme || {};
783
786
  var safeTypography = safeTheme.typography || {};
784
- var _safeTypography_fontSizes_, _safeTypography_lineHeights_normal;
785
- style.innerHTML = "\n:host {\n display: block;\n font-family: ".concat(safeTypography.fontFamily || 'inherit', ";\n font-size: ").concat((_safeTypography_fontSizes_ = (_safeTypography_fontSizes = safeTypography.fontSizes) === null || _safeTypography_fontSizes === void 0 ? void 0 : _safeTypography_fontSizes[2]) !== null && _safeTypography_fontSizes_ !== void 0 ? _safeTypography_fontSizes_ : '14', "px;\n line-height: ").concat((_safeTypography_lineHeights_normal = (_safeTypography_lineHeights = safeTypography.lineHeights) === null || _safeTypography_lineHeights === void 0 ? void 0 : _safeTypography_lineHeights.normal) !== null && _safeTypography_lineHeights_normal !== void 0 ? _safeTypography_lineHeights_normal : 1.6, ";\n}\nhtml, body, div, span, applet, object, iframe,\nh1, h2, h3, h4, h5, h6, p, blockquote, pre,\na, abbr, acronym, address, big, cite, code,\ndel, dfn, em, img, ins, kbd, q, s, samp,\nsmall, strike, strong, sub, sup, tt, var,\nb, u, i, center,\ndl, dt, dd, ol, ul, li,\nfieldset, form, label, legend,\ntable, caption, tbody, tfoot, thead, tr, th, td,\narticle, aside, canvas, details, embed, \nfigure, figcaption, footer, header, hgroup, \nmenu, nav, output, ruby, section, summary,\ntime, mark, audio, video {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font: inherit;\n vertical-align: baseline;\n}\n/* HTML5 display-role reset for older browsers */\narticle, aside, details, figcaption, figure, \nfooter, header, hgroup, menu, nav, section {\n display: block;\n}\nbody {\n line-height: 1;\n}\nol, ul {\n list-style: none;\n}\nblockquote, q {\n quotes: none;\n}\nblockquote:before, blockquote:after,\nq:before, q:after {\n content: '';\n content: none;\n}\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\ndiv {\n white-space: normal;\n overflow-wrap: normal;\n}\n\na {\n text-decoration: none;\n white-space: normal;\n overflow-wrap: normal;\n}\n\na:hover {\n text-decoration: underline;\n}\n\na:visited {\n color: inherit;\n}\n\na:active {\n color: inherit;\n}\n\n ");
787
+ style.innerHTML = "\n:host {\n display: block;\n font-family: ".concat(safeTypography.fontFamily || 'inherit', ";\n font-size: ").concat((_ref = (_safeTypography_fontSizes = safeTypography.fontSizes) === null || _safeTypography_fontSizes === void 0 ? void 0 : _safeTypography_fontSizes[2]) !== null && _ref !== void 0 ? _ref : '14', "px;\n line-height: ").concat((_ref1 = (_safeTypography_lineHeights = safeTypography.lineHeights) === null || _safeTypography_lineHeights === void 0 ? void 0 : _safeTypography_lineHeights.normal) !== null && _ref1 !== void 0 ? _ref1 : 1.6, ";\n}\nhtml, body, div, span, applet, object, iframe,\nh1, h2, h3, h4, h5, h6, p, blockquote, pre,\na, abbr, acronym, address, big, cite, code,\ndel, dfn, em, img, ins, kbd, q, s, samp,\nsmall, strike, strong, sub, sup, tt, var,\nb, u, i, center,\ndl, dt, dd, ol, ul, li,\nfieldset, form, label, legend,\ntable, caption, tbody, tfoot, thead, tr, th, td,\narticle, aside, canvas, details, embed, \nfigure, figcaption, footer, header, hgroup, \nmenu, nav, output, ruby, section, summary,\ntime, mark, audio, video {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font: inherit;\n vertical-align: baseline;\n}\n/* HTML5 display-role reset for older browsers */\narticle, aside, details, figcaption, figure, \nfooter, header, hgroup, menu, nav, section {\n display: block;\n}\nbody {\n line-height: 1;\n}\nol, ul {\n list-style: none;\n}\nblockquote, q {\n quotes: none;\n}\nblockquote:before, blockquote:after,\nq:before, q:after {\n content: '';\n content: none;\n}\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\ndiv {\n white-space: normal;\n overflow-wrap: normal;\n}\n\na {\n text-decoration: none;\n white-space: normal;\n overflow-wrap: normal;\n}\n\na:hover {\n text-decoration: underline;\n}\n\na:visited {\n color: inherit;\n}\n\na:active {\n color: inherit;\n}\n\n ");
786
788
  shadowRoot.appendChild(style);
787
789
  } catch (styleError) {
788
790
  console.error('Error applying styles:', styleError);
@@ -818,8 +820,8 @@ export * from "./templateEngine";
818
820
  }
819
821
  });
820
822
  // 添加并执行脚本
821
- scripts.forEach(/*#__PURE__*/ function() {
822
- var _ref = _async_to_generator(function(script) {
823
+ scripts.forEach(function(script) {
824
+ return _async_to_generator(function() {
823
825
  return _ts_generator(this, function(_state) {
824
826
  switch(_state.label){
825
827
  case 0:
@@ -834,11 +836,8 @@ export * from "./templateEngine";
834
836
  ];
835
837
  }
836
838
  });
837
- });
838
- return function(script) {
839
- return _ref.apply(this, arguments);
840
- };
841
- }());
839
+ })();
840
+ });
842
841
  } catch (contentError) {
843
842
  console.error('Error processing content:', contentError);
844
843
  // Fallback - at least show the HTML content
@@ -851,7 +850,7 @@ export * from "./templateEngine";
851
850
  onRenderSuccess === null || onRenderSuccess === void 0 ? void 0 : onRenderSuccess(renderedHtml);
852
851
  } catch (error) {
853
852
  console.error('Critical rendering error:', error);
854
- setRenderError("Critical rendering error: ".concat(error instanceof Error ? error.message : String(error)));
853
+ setRenderError("Critical rendering error: ".concat(_instanceof(error, Error) ? error.message : String(error)));
855
854
  }
856
855
  }, [
857
856
  renderedHtml,
@@ -105,12 +105,22 @@ function _object_spread_props(target, source) {
105
105
  }
106
106
  function _object_without_properties(source, excluded) {
107
107
  if (source == null) return {};
108
- var target = _object_without_properties_loose(source, excluded);
109
- var key, i;
108
+ var target = {}, sourceKeys, key, i;
109
+ if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
110
+ sourceKeys = Reflect.ownKeys(source);
111
+ for(i = 0; i < sourceKeys.length; i++){
112
+ key = sourceKeys[i];
113
+ if (excluded.indexOf(key) >= 0) continue;
114
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
115
+ target[key] = source[key];
116
+ }
117
+ return target;
118
+ }
119
+ target = _object_without_properties_loose(source, excluded);
110
120
  if (Object.getOwnPropertySymbols) {
111
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
112
- for(i = 0; i < sourceSymbolKeys.length; i++){
113
- key = sourceSymbolKeys[i];
121
+ sourceKeys = Object.getOwnPropertySymbols(source);
122
+ for(i = 0; i < sourceKeys.length; i++){
123
+ key = sourceKeys[i];
114
124
  if (excluded.indexOf(key) >= 0) continue;
115
125
  if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
116
126
  target[key] = source[key];
@@ -120,12 +130,11 @@ function _object_without_properties(source, excluded) {
120
130
  }
121
131
  function _object_without_properties_loose(source, excluded) {
122
132
  if (source == null) return {};
123
- var target = {};
124
- var sourceKeys = Object.keys(source);
125
- var key, i;
133
+ var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
126
134
  for(i = 0; i < sourceKeys.length; i++){
127
135
  key = sourceKeys[i];
128
136
  if (excluded.indexOf(key) >= 0) continue;
137
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
129
138
  target[key] = source[key];
130
139
  }
131
140
  return target;
@@ -166,8 +175,8 @@ try {
166
175
  console.warn('Failed to extend dayjs with duration plugin:', error);
167
176
  }
168
177
  // 思维链标题组件 - 独立 memo
169
- var ThoughtChainTitle = /*#__PURE__*/ React.memo(function(_param) {
170
- var prefixCls = _param.prefixCls, hashId = _param.hashId, collapse = _param.collapse, compact = _param.compact, endStatusDisplay = _param.endStatusDisplay, onCollapseToggle = _param.onCollapseToggle, locale = _param.locale, props = _object_without_properties(_param, [
178
+ var ThoughtChainTitle = /*#__PURE__*/ React.memo(function(_0) {
179
+ var prefixCls = _0.prefixCls, hashId = _0.hashId, collapse = _0.collapse, compact = _0.compact, endStatusDisplay = _0.endStatusDisplay, onCollapseToggle = _0.onCollapseToggle, locale = _0.locale, props = _object_without_properties(_0, [
171
180
  "prefixCls",
172
181
  "hashId",
173
182
  "collapse",
@@ -240,8 +249,8 @@ var DocumentDrawer = /*#__PURE__*/ React.memo(function(param) {
240
249
  }));
241
250
  });
242
251
  // 思维链列表内容组件 - 独立 memo
243
- var ThoughtChainContent = /*#__PURE__*/ React.memo(function(_param) {
244
- var prefixCls = _param.prefixCls, hashId = _param.hashId, collapse = _param.collapse, compact = _param.compact, thoughtChainList = _param.thoughtChainList, bubble = _param.bubble, loading = _param.loading, markdownRenderProps = _param.markdownRenderProps, onDocMetaClick = _param.onDocMetaClick, instanceId = _param.instanceId, props = _object_without_properties(_param, [
252
+ var ThoughtChainContent = /*#__PURE__*/ React.memo(function(_0) {
253
+ var prefixCls = _0.prefixCls, hashId = _0.hashId, collapse = _0.collapse, compact = _0.compact, thoughtChainList = _0.thoughtChainList, bubble = _0.bubble, loading = _0.loading, markdownRenderProps = _0.markdownRenderProps, onDocMetaClick = _0.onDocMetaClick, instanceId = _0.instanceId, props = _object_without_properties(_0, [
245
254
  "prefixCls",
246
255
  "hashId",
247
256
  "collapse",
@@ -398,7 +407,7 @@ var ThoughtChainContent = /*#__PURE__*/ React.memo(function(_param) {
398
407
  var _React_useState = _sliced_to_array(React.useState(false), 2), collapse = _React_useState[0], setCollapse = _React_useState[1];
399
408
  var prefixCls = context === null || context === void 0 ? void 0 : context.getPrefixCls('thought-chain-list');
400
409
  var _useStyle = useStyle(prefixCls), wrapSSR = _useStyle.wrapSSR, hashId = _useStyle.hashId;
401
- var restStyle = _extends({}, _object_destructuring_empty(customStyle || {}));
410
+ var _ref = customStyle || {}, ref = _object_destructuring_empty(_ref), restStyle = _extends({}, _ref);
402
411
  var _React_useState1 = _sliced_to_array(React.useState(null), 2), docMeta = _React_useState1[0], setDocMeta = _React_useState1[1];
403
412
  // 为组件实例生成唯一ID,避免多个实例间的key冲突
404
413
  var instanceId = 'ThoughtChainList';
@@ -157,11 +157,11 @@ var ToolHeaderRightComponent = function(param) {
157
157
  toolNameClassName
158
158
  ]);
159
159
  var toolTargetElement = useMemo(function() {
160
+ var _ref;
160
161
  var _tool_toolTarget;
161
- var _tool_toolTarget_toString;
162
162
  return tool.toolTarget ? /*#__PURE__*/ React.createElement("div", {
163
163
  className: toolTargetClassName,
164
- title: (_tool_toolTarget_toString = (_tool_toolTarget = tool.toolTarget) === null || _tool_toolTarget === void 0 ? void 0 : _tool_toolTarget.toString()) !== null && _tool_toolTarget_toString !== void 0 ? _tool_toolTarget_toString : undefined
164
+ title: (_ref = (_tool_toolTarget = tool.toolTarget) === null || _tool_toolTarget === void 0 ? void 0 : _tool_toolTarget.toString()) !== null && _ref !== void 0 ? _ref : undefined
165
165
  }, tool.toolTarget) : null;
166
166
  }, [
167
167
  tool.toolTarget,
@@ -338,7 +338,7 @@ var ToolContentComponent = function(param) {
338
338
  exit: "collapsed",
339
339
  transition: contentTransition,
340
340
  style: containerStyle
341
- }, contentDom, errorDom) : null, !showContent || !expanded ? /*#__PURE__*/ React.createElement("div", {
341
+ }, contentDom, errorDom) : null, !showContent ? /*#__PURE__*/ React.createElement("div", {
342
342
  style: {
343
343
  overflow: 'hidden',
344
344
  height: 1,
@@ -19,6 +19,13 @@ function _define_property(obj, key, value) {
19
19
  }
20
20
  return obj;
21
21
  }
22
+ function _instanceof(left, right) {
23
+ if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
24
+ return !!right[Symbol.hasInstance](left);
25
+ } else {
26
+ return left instanceof right;
27
+ }
28
+ }
22
29
  function _iterable_to_array_limit(arr, i) {
23
30
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
24
31
  if (_i == null) return;
@@ -110,7 +117,7 @@ var ToolUseBarItemComponent = function(param) {
110
117
  // 如果没有内容需要展示,则早返回
111
118
  if (!showContent) return;
112
119
  // 避免在交互性子元素上误触发折叠
113
- if (e.target instanceof Element) {
120
+ if (_instanceof(e.target, Element)) {
114
121
  var tag = e.target.tagName.toLowerCase();
115
122
  if ([
116
123
  'a',
@@ -162,7 +169,7 @@ var ToolUseBarItemComponent = function(param) {
162
169
  prefixCls: prefixCls,
163
170
  hashId: hashId,
164
171
  light: light
165
- }), /*#__PURE__*/ React.createElement("div", {
172
+ }), tool.time || showContent ? /*#__PURE__*/ React.createElement("div", {
166
173
  className: classnames("".concat(prefixCls, "-tool-time-expand"), hashId)
167
174
  }, /*#__PURE__*/ React.createElement(ToolTime, {
168
175
  tool: tool,
@@ -174,7 +181,7 @@ var ToolUseBarItemComponent = function(param) {
174
181
  prefixCls: prefixCls,
175
182
  hashId: hashId,
176
183
  onExpandClick: handleExpandClick
177
- }))), /*#__PURE__*/ React.createElement(ToolContent, {
184
+ })) : null), /*#__PURE__*/ React.createElement(ToolContent, {
178
185
  tool: tool,
179
186
  prefixCls: prefixCls,
180
187
  hashId: hashId,
@@ -44,12 +44,22 @@ function _non_iterable_spread() {
44
44
  }
45
45
  function _object_without_properties(source, excluded) {
46
46
  if (source == null) return {};
47
- var target = _object_without_properties_loose(source, excluded);
48
- var key, i;
47
+ var target = {}, sourceKeys, key, i;
48
+ if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
49
+ sourceKeys = Reflect.ownKeys(source);
50
+ for(i = 0; i < sourceKeys.length; i++){
51
+ key = sourceKeys[i];
52
+ if (excluded.indexOf(key) >= 0) continue;
53
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
54
+ target[key] = source[key];
55
+ }
56
+ return target;
57
+ }
58
+ target = _object_without_properties_loose(source, excluded);
49
59
  if (Object.getOwnPropertySymbols) {
50
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
51
- for(i = 0; i < sourceSymbolKeys.length; i++){
52
- key = sourceSymbolKeys[i];
60
+ sourceKeys = Object.getOwnPropertySymbols(source);
61
+ for(i = 0; i < sourceKeys.length; i++){
62
+ key = sourceKeys[i];
53
63
  if (excluded.indexOf(key) >= 0) continue;
54
64
  if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
55
65
  target[key] = source[key];
@@ -59,12 +69,11 @@ function _object_without_properties(source, excluded) {
59
69
  }
60
70
  function _object_without_properties_loose(source, excluded) {
61
71
  if (source == null) return {};
62
- var target = {};
63
- var sourceKeys = Object.keys(source);
64
- var key, i;
72
+ var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
65
73
  for(i = 0; i < sourceKeys.length; i++){
66
74
  key = sourceKeys[i];
67
75
  if (excluded.indexOf(key) >= 0) continue;
76
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
68
77
  target[key] = source[key];
69
78
  }
70
79
  return target;
@@ -132,8 +141,8 @@ export * from "./BarItem";
132
141
  * - 支持工具点击交互
133
142
  * - 提供加载状态显示
134
143
  * - 支持错误状态处理
135
- */ var ToolUseBarComponent = function(_param) {
136
- var tools = _param.tools, onActiveKeysChange = _param.onActiveKeysChange, onExpandedKeysChange = _param.onExpandedKeysChange, _param_light = _param.light, light = _param_light === void 0 ? false : _param_light, style = _param.style, props = _object_without_properties(_param, [
144
+ */ var ToolUseBarComponent = function(_0) {
145
+ var tools = _0.tools, onActiveKeysChange = _0.onActiveKeysChange, onExpandedKeysChange = _0.onExpandedKeysChange, _0_light = _0.light, light = _0_light === void 0 ? false : _0_light, style = _0.style, props = _object_without_properties(_0, [
137
146
  "tools",
138
147
  "onActiveKeysChange",
139
148
  "onExpandedKeysChange",
@@ -55,7 +55,7 @@ var genStyle = function(token) {
55
55
  return _define_property({}, token.componentCls, {
56
56
  display: 'flex',
57
57
  flexDirection: 'column',
58
- gap: 8,
58
+ gap: 4,
59
59
  '*': {
60
60
  boxSizing: 'border-box'
61
61
  },
@@ -70,7 +70,7 @@ var genStyle = function(token) {
70
70
  minHeight: '20px',
71
71
  backdropFilter: 'blur(8px)',
72
72
  width: 'max-content',
73
- transition: 'padding 0.2s ease',
73
+ transition: 'border-radius 0.4s ease',
74
74
  display: 'flex',
75
75
  alignItems: 'center',
76
76
  flexDirection: 'column',
@@ -92,7 +92,6 @@ var genStyle = function(token) {
92
92
  },
93
93
  '&-expanded': {
94
94
  borderRadius: '14px',
95
- padding: 4,
96
95
  gap: 8,
97
96
  outline: 'none',
98
97
  '&:hover': {
@@ -174,7 +173,6 @@ var genStyle = function(token) {
174
173
  cursor: 'pointer',
175
174
  transition: 'all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1)',
176
175
  '&:hover': {
177
- background: 'rgba(20, 22, 28, 0.06)',
178
176
  color: '#959DA8'
179
177
  }
180
178
  },
@@ -300,6 +298,8 @@ var genStyle = function(token) {
300
298
  '&-tool-container': {
301
299
  display: 'flex',
302
300
  width: '100%',
301
+ paddingInline: 4,
302
+ paddingBottom: 4,
303
303
  '&-light': {
304
304
  borderLeft: '1px solid var(--color-gray-border-light)',
305
305
  paddingLeft: 12,
@@ -1 +1,4 @@
1
- import React from "react";
1
+ /**
2
+ * 基础状态属性
3
+ * @description 组件的常用状态属性
4
+ */ export { };
@@ -1 +1,4 @@
1
- import React from "react";
1
+ /**
2
+ * 消息数据
3
+ * @description 聊天消息的完整数据结构
4
+ */ export { };
@@ -1,10 +1,4 @@
1
- /**
2
- * 调试工具函数
3
- */ /**
4
- * 调试信息输出函数
5
- * @param message 调试信息
6
- * @param args 额外参数
7
- */ function _array_like_to_array(arr, len) {
1
+ function _array_like_to_array(arr, len) {
8
2
  if (len == null || len > arr.length) len = arr.length;
9
3
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
10
4
  return arr2;
@@ -29,7 +23,13 @@ function _unsupported_iterable_to_array(o, minLen) {
29
23
  if (n === "Map" || n === "Set") return Array.from(n);
30
24
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
31
25
  }
32
- export var debugInfo = function(message) {
26
+ /**
27
+ * 调试工具函数
28
+ */ /**
29
+ * 调试信息输出函数
30
+ * @param message 调试信息
31
+ * @param args 额外参数
32
+ */ export var debugInfo = function(message) {
33
33
  for(var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
34
34
  args[_key - 1] = arguments[_key];
35
35
  }
@@ -1,3 +1,10 @@
1
+ function _instanceof(left, right) {
2
+ if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
3
+ return !!right[Symbol.hasInstance](left);
4
+ } else {
5
+ return left instanceof right;
6
+ }
7
+ }
1
8
  export function isWindow(obj) {
2
9
  return obj !== null && obj !== undefined && obj === obj.window;
3
10
  }
@@ -8,9 +15,9 @@ var getScroll = function(target) {
8
15
  var result = 0;
9
16
  if (isWindow(target)) {
10
17
  result = target.pageYOffset;
11
- } else if (target instanceof Document) {
18
+ } else if (_instanceof(target, Document)) {
12
19
  result = target.documentElement.scrollTop;
13
- } else if (target instanceof HTMLElement) {
20
+ } else if (_instanceof(target, HTMLElement)) {
14
21
  result = target.scrollTop;
15
22
  } else if (target) {
16
23
  // According to the type inference, the `target` is `never` type.
@@ -21,8 +28,8 @@ var getScroll = function(target) {
21
28
  /* biome-ignore lint/complexity/useLiteralKeys: target is a never type */ /* eslint-disable-next-line dot-notation */ result = target['scrollTop'];
22
29
  }
23
30
  if (target && !isWindow(target) && typeof result !== 'number') {
24
- var _documentElement;
25
31
  var _target_ownerDocument;
32
+ var _documentElement;
26
33
  result = (_documentElement = ((_target_ownerDocument = target.ownerDocument) !== null && _target_ownerDocument !== void 0 ? _target_ownerDocument : target).documentElement) === null || _documentElement === void 0 ? void 0 : _documentElement.scrollTop;
27
34
  }
28
35
  return result;
@@ -34,10 +41,10 @@ export var getScrollRailHeight = function(target) {
34
41
  if (isWindow(target)) {
35
42
  return target.document.documentElement.scrollHeight - target.document.documentElement.clientHeight;
36
43
  }
37
- if (target instanceof Document) {
44
+ if (_instanceof(target, Document)) {
38
45
  return target.documentElement.scrollHeight - target.documentElement.clientHeight;
39
46
  }
40
- if (target instanceof HTMLElement) {
47
+ if (_instanceof(target, HTMLElement)) {
41
48
  return target.scrollHeight - target.offsetHeight;
42
49
  }
43
50
  return 0;
@@ -1,8 +1,4 @@
1
- /**
2
- * @fileoverview CSS 异步加载工具
3
- *
4
- * 提供动态加载 CSS 文件的功能,支持按需加载和缓存
5
- */ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
1
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
6
2
  try {
7
3
  var info = gen[key](arg);
8
4
  var value = info.value;
@@ -32,7 +28,7 @@ function _async_to_generator(fn) {
32
28
  };
33
29
  }
34
30
  function _ts_generator(thisArg, body) {
35
- var f, y, t, g, _ = {
31
+ var f, y, t, _ = {
36
32
  label: 0,
37
33
  sent: function() {
38
34
  if (t[0] & 1) throw t[1];
@@ -40,13 +36,17 @@ function _ts_generator(thisArg, body) {
40
36
  },
41
37
  trys: [],
42
38
  ops: []
43
- };
44
- return g = {
45
- next: verb(0),
46
- "throw": verb(1),
47
- "return": verb(2)
48
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
49
- return this;
39
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
40
+ return d(g, "next", {
41
+ value: verb(0)
42
+ }), d(g, "throw", {
43
+ value: verb(1)
44
+ }), d(g, "return", {
45
+ value: verb(2)
46
+ }), typeof Symbol === "function" && d(g, Symbol.iterator, {
47
+ value: function() {
48
+ return this;
49
+ }
50
50
  }), g;
51
51
  function verb(n) {
52
52
  return function(v) {
@@ -58,7 +58,7 @@ function _ts_generator(thisArg, body) {
58
58
  }
59
59
  function step(op) {
60
60
  if (f) throw new TypeError("Generator is already executing.");
61
- while(_)try {
61
+ while(g && (g = 0, op[0] && (_ = 0)), _)try {
62
62
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
63
63
  if (y = 0, t) op = [
64
64
  op[0] & 2,
@@ -126,7 +126,11 @@ function _ts_generator(thisArg, body) {
126
126
  };
127
127
  }
128
128
  }
129
- var loadedCSS = new Set();
129
+ /**
130
+ * @fileoverview CSS 异步加载工具
131
+ *
132
+ * 提供动态加载 CSS 文件的功能,支持按需加载和缓存
133
+ */ var loadedCSS = new Set();
130
134
  /**
131
135
  * 异步加载 CSS 文件
132
136
  *
@@ -144,8 +148,8 @@ var loadedCSS = new Set();
144
148
  * // 不推荐:直接使用字符串路径(仅适用于外部 URL)
145
149
  * await loadCSS('https://example.com/style.css');
146
150
  * ```
147
- */ export var loadCSS = /*#__PURE__*/ function() {
148
- var _ref = _async_to_generator(function(cssPath) {
151
+ */ export var loadCSS = function(cssPath) {
152
+ return _async_to_generator(function() {
149
153
  var pathKey, error, existingLink, link;
150
154
  return _ts_generator(this, function(_state) {
151
155
  switch(_state.label){
@@ -239,11 +243,8 @@ var loadedCSS = new Set();
239
243
  ];
240
244
  }
241
245
  });
242
- });
243
- return function loadCSS(cssPath) {
244
- return _ref.apply(this, arguments);
245
- };
246
- }();
246
+ })();
247
+ };
247
248
  /**
248
249
  * 预加载 CSS 文件
249
250
  * 使用低优先级加载,不阻塞当前执行