@ant-design/agentic-ui 2.29.6 → 2.29.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AILabel/index.js +17 -8
- package/dist/AgenticLayout/index.js +3 -5
- package/dist/BackTo/BackBottom.js +17 -8
- package/dist/BackTo/BackTop.js +17 -8
- package/dist/BackTo/ScrollVisibleButton.js +75 -11
- package/dist/Bubble/AIBubble.js +131 -121
- package/dist/Bubble/Avatar/index.js +19 -10
- package/dist/Bubble/FileView.js +2 -2
- package/dist/Bubble/List/PureBubbleList.js +4 -5
- package/dist/Bubble/List/index.js +4 -5
- package/dist/Bubble/List/style.js +3 -0
- package/dist/Bubble/MessagesContent/BubbleExtra.js +108 -93
- package/dist/Bubble/MessagesContent/CopyButton/index.js +36 -26
- package/dist/Bubble/MessagesContent/DocInfo.js +19 -10
- package/dist/Bubble/MessagesContent/MarkdownPreview.js +2 -2
- package/dist/Bubble/MessagesContent/index.js +149 -130
- package/dist/Bubble/PureBubble.js +151 -133
- package/dist/Bubble/UserBubble.js +1 -1
- package/dist/Bubble/style.js +2 -2
- package/dist/Bubble/types/BubbleExtra.js +4 -1
- package/dist/Bubble/types/DocInfo.js +9 -1
- package/dist/ChatLayout/components/FooterBackgroundLottie/images/img_0.png +0 -0
- package/dist/ChatLayout/components/FooterBackgroundLottie/images/img_1.png +0 -0
- package/dist/ChatLayout/components/FooterBackgroundLottie/images/img_2.png +0 -0
- package/dist/ChatLayout/components/FooterBackgroundLottie/index.d.ts +51 -0
- package/dist/ChatLayout/components/FooterBackgroundLottie/index.js +45 -0
- package/dist/ChatLayout/components/FooterBackgroundLottie/lottie.d.ts +85 -0
- package/dist/ChatLayout/components/FooterBackgroundLottie/lottie.js +382 -0
- package/dist/ChatLayout/index.js +52 -14
- package/dist/ChatLayout/style.js +11 -0
- package/dist/ChatLayout/types.d.ts +28 -0
- package/dist/Components/ActionIconBox/index.js +30 -38
- package/dist/Components/ActionItemBox/ActionItemBox.js +1 -1
- package/dist/Components/Button/SwitchButton/index.js +18 -17
- package/dist/Components/LayoutHeader/index.js +5 -3
- package/dist/Components/LayoutHeader/style.js +5 -0
- package/dist/Components/Loading/CreativeRecommendationLoading.js +2 -2
- package/dist/Components/Loading/CreativeSparkLoading.js +2 -2
- package/dist/Components/SuggestionList/index.js +20 -19
- package/dist/Components/TextAnimate/index.js +19 -10
- package/dist/Components/TypingAnimation/index.js +19 -10
- package/dist/Components/effects/EffectPlayer.js +20 -11
- package/dist/Components/icons/LoadingSpinnerIcon.js +19 -10
- package/dist/History/components/HistoryActionsBox.js +21 -23
- package/dist/History/components/HistoryItem.js +61 -53
- package/dist/History/components/HistoryRunningIcon.js +19 -10
- package/dist/History/components/LoadMoreComponent.js +61 -55
- package/dist/History/components/NewChatComponent.js +53 -47
- package/dist/History/components/SearchComponent.js +24 -26
- package/dist/History/hooks/useHistory.js +80 -73
- package/dist/History/index.js +17 -16
- package/dist/History/menu.js +17 -8
- package/dist/Hooks/useAutoScroll.js +19 -19
- package/dist/Hooks/useDebounceFn/index.js +51 -45
- package/dist/Hooks/useElementSize.d.ts +5 -0
- package/dist/Hooks/useElementSize.js +71 -0
- package/dist/Hooks/useIntersectionOnce.js +17 -8
- package/dist/Hooks/useLanguage.d.ts +3 -0
- package/dist/I18n/locales.d.ts +3 -0
- package/dist/I18n/locales.js +8 -0
- package/dist/MarkdownEditor/BaseMarkdownEditor.js +23 -13
- package/dist/MarkdownEditor/editor/Editor.js +31 -39
- package/dist/MarkdownEditor/editor/components/CommentList/index.js +29 -37
- package/dist/MarkdownEditor/editor/elements/Blockquote/ReadonlyBlockquote.d.ts +33 -0
- package/dist/MarkdownEditor/editor/elements/Blockquote/ReadonlyBlockquote.js +69 -0
- package/dist/MarkdownEditor/editor/elements/Break/ReadonlyBreak.d.ts +30 -0
- package/dist/MarkdownEditor/editor/elements/Break/ReadonlyBreak.js +88 -0
- package/dist/MarkdownEditor/editor/elements/Card/ReadonlyCard.d.ts +34 -0
- package/dist/MarkdownEditor/editor/elements/Card/ReadonlyCard.js +96 -0
- package/dist/MarkdownEditor/editor/elements/Code/ReadonlyCode.d.ts +33 -0
- package/dist/MarkdownEditor/editor/elements/Code/ReadonlyCode.js +145 -0
- package/dist/MarkdownEditor/editor/elements/FootnoteDefinition/ReadonlyFootnoteDefinition.d.ts +34 -0
- package/dist/MarkdownEditor/editor/elements/FootnoteDefinition/ReadonlyFootnoteDefinition.js +125 -0
- package/dist/MarkdownEditor/editor/elements/FootnoteReference/ReadonlyFootnoteReference.d.ts +34 -0
- package/dist/MarkdownEditor/editor/elements/FootnoteReference/ReadonlyFootnoteReference.js +101 -0
- package/dist/MarkdownEditor/editor/elements/Head/ReadonlyHead.d.ts +35 -0
- package/dist/MarkdownEditor/editor/elements/Head/ReadonlyHead.js +111 -0
- package/dist/MarkdownEditor/editor/elements/Head/index.d.ts +3 -0
- package/dist/MarkdownEditor/editor/elements/Head/index.js +3 -1
- package/dist/MarkdownEditor/editor/elements/Hr/ReadonlyHr.d.ts +30 -0
- package/dist/MarkdownEditor/editor/elements/Hr/ReadonlyHr.js +95 -0
- package/dist/MarkdownEditor/editor/elements/Image/ReadonlyEditorImage.d.ts +35 -0
- package/dist/MarkdownEditor/editor/elements/Image/ReadonlyEditorImage.js +426 -0
- package/dist/MarkdownEditor/editor/elements/Image/index.js +124 -121
- package/dist/MarkdownEditor/editor/elements/InlineKatex/ReadonlyInlineKatex.d.ts +32 -0
- package/dist/MarkdownEditor/editor/elements/InlineKatex/ReadonlyInlineKatex.js +100 -0
- package/dist/MarkdownEditor/editor/elements/Katex/ReadonlyKatex.d.ts +32 -0
- package/dist/MarkdownEditor/editor/elements/Katex/ReadonlyKatex.js +110 -0
- package/dist/MarkdownEditor/editor/elements/LinkCard/ReadonlyLinkCard.d.ts +40 -0
- package/dist/MarkdownEditor/editor/elements/LinkCard/ReadonlyLinkCard.js +215 -0
- package/dist/MarkdownEditor/editor/elements/List/List.js +27 -12
- package/dist/MarkdownEditor/editor/elements/List/ListItem.js +17 -16
- package/dist/MarkdownEditor/editor/elements/List/ReadonlyList.d.ts +33 -0
- package/dist/MarkdownEditor/editor/elements/List/ReadonlyList.js +93 -0
- package/dist/MarkdownEditor/editor/elements/List/ReadonlyListItem.d.ts +35 -0
- package/dist/MarkdownEditor/editor/elements/List/ReadonlyListItem.js +138 -0
- package/dist/MarkdownEditor/editor/elements/Media/ReadonlyMedia.d.ts +36 -0
- package/dist/MarkdownEditor/editor/elements/Media/ReadonlyMedia.js +600 -0
- package/dist/MarkdownEditor/editor/elements/Media/index.js +107 -92
- package/dist/MarkdownEditor/editor/elements/Mermaid/ReadonlyMermaid.d.ts +32 -0
- package/dist/MarkdownEditor/editor/elements/Mermaid/ReadonlyMermaid.js +101 -0
- package/dist/MarkdownEditor/editor/elements/Paragraph/ReadonlyParagraph.d.ts +35 -0
- package/dist/MarkdownEditor/editor/elements/Paragraph/ReadonlyParagraph.js +109 -0
- package/dist/MarkdownEditor/editor/elements/Paragraph/index.js +2 -1
- package/dist/MarkdownEditor/editor/elements/Schema/ReadonlySchema.d.ts +33 -0
- package/dist/MarkdownEditor/editor/elements/Schema/ReadonlySchema.js +163 -0
- package/dist/MarkdownEditor/editor/elements/Table/Table.js +19 -10
- package/dist/MarkdownEditor/editor/elements/TagPopup/index.js +17 -16
- package/dist/MarkdownEditor/editor/elements/index.d.ts +20 -1
- package/dist/MarkdownEditor/editor/elements/index.js +65 -29
- package/dist/MarkdownEditor/editor/parser/parse/parseBlockElements.js +19 -11
- package/dist/MarkdownEditor/editor/parser/parse/parseCode.js +1 -1
- package/dist/MarkdownEditor/editor/parser/parse/parseEmptyLines.js +1 -1
- package/dist/MarkdownEditor/editor/parser/parse/parseTable.js +4 -1
- package/dist/MarkdownEditor/editor/parser/parserSlateNodeToMarkdown.js +66 -23
- package/dist/MarkdownEditor/editor/parser/remarkParse.js +3 -1
- package/dist/MarkdownEditor/editor/plugins/elements.js +60 -6
- package/dist/MarkdownEditor/editor/plugins/handlePaste.js +25 -30
- package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/arrow.js +0 -1
- package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/backspace.js +97 -39
- package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/enter.js +0 -1
- package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/match.js +0 -1
- package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/tab.d.ts +14 -0
- package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/tab.js +117 -91
- package/dist/MarkdownEditor/editor/plugins/index.d.ts +8 -0
- package/dist/MarkdownEditor/editor/plugins/index.js +8 -0
- package/dist/MarkdownEditor/editor/plugins/insertParsedHtmlNodes.d.ts +12 -6
- package/dist/MarkdownEditor/editor/plugins/insertParsedHtmlNodes.js +106 -95
- package/dist/MarkdownEditor/editor/plugins/useKeyboard.js +1 -1
- package/dist/MarkdownEditor/editor/plugins/useOnchange.js +28 -22
- package/dist/MarkdownEditor/editor/plugins/utils.d.ts +31 -0
- package/dist/MarkdownEditor/editor/plugins/utils.js +75 -0
- package/dist/MarkdownEditor/editor/plugins/withCardPlugin.d.ts +15 -0
- package/dist/MarkdownEditor/editor/plugins/withCardPlugin.js +329 -0
- package/dist/MarkdownEditor/editor/plugins/withCodeTagPlugin.d.ts +11 -0
- package/dist/MarkdownEditor/editor/plugins/withCodeTagPlugin.js +299 -0
- package/dist/MarkdownEditor/editor/plugins/withInlineNodes.d.ts +12 -0
- package/dist/MarkdownEditor/editor/plugins/withInlineNodes.js +17 -0
- package/dist/MarkdownEditor/editor/plugins/withLinkAndMediaPlugin.d.ts +11 -0
- package/dist/MarkdownEditor/editor/plugins/withLinkAndMediaPlugin.js +70 -0
- package/dist/MarkdownEditor/editor/plugins/withListsPlugin.d.ts +23 -0
- package/dist/MarkdownEditor/editor/plugins/withListsPlugin.js +204 -0
- package/dist/MarkdownEditor/editor/plugins/withMarkdown.d.ts +9 -12
- package/dist/MarkdownEditor/editor/plugins/withMarkdown.js +17 -764
- package/dist/MarkdownEditor/editor/plugins/withSchemaPlugin.d.ts +11 -0
- package/dist/MarkdownEditor/editor/plugins/withSchemaPlugin.js +55 -0
- package/dist/MarkdownEditor/editor/plugins/withVoidNodes.d.ts +12 -0
- package/dist/MarkdownEditor/editor/plugins/withVoidNodes.js +17 -0
- package/dist/MarkdownEditor/editor/store.js +18 -14
- package/dist/MarkdownEditor/editor/tools/InsertAutocomplete.js +202 -197
- package/dist/MarkdownEditor/editor/tools/InsertLink.js +2 -2
- package/dist/MarkdownEditor/editor/tools/ToolBar/ReadonlyBaseBar.js +142 -134
- package/dist/MarkdownEditor/editor/utils/ace.js +61 -61
- package/dist/MarkdownEditor/editor/utils/docx/module.js +41 -8
- package/dist/MarkdownEditor/editor/utils/editorCommands.d.ts +97 -0
- package/dist/MarkdownEditor/editor/utils/editorCommands.js +966 -0
- package/dist/MarkdownEditor/editor/utils/editorUtils.js +13 -6
- package/dist/MarkdownEditor/editor/utils/index.js +8 -2
- package/dist/MarkdownEditor/editor/utils/keyboard.js +46 -426
- package/dist/MarkdownEditor/editor/utils/markdownToHtml.js +23 -17
- package/dist/MarkdownEditor/editor/utils/media.js +21 -23
- package/dist/MarkdownEditor/editor/utils/performanceMonitor.js +55 -50
- package/dist/MarkdownEditor/editor/utils/useLocalState.js +11 -4
- package/dist/MarkdownEditor/el.d.ts +12 -5
- package/dist/MarkdownEditor/types.d.ts +1 -0
- package/dist/MarkdownEditor/types.js +4 -1
- package/dist/MarkdownEditor/utils/native-table/native-table-editor.js +14 -14
- package/dist/MarkdownEditor/utils/native-table/native-table-keyboard.js +2 -2
- package/dist/MarkdownInputField/AttachmentButton/AttachmentFileList/style.js +1 -0
- package/dist/MarkdownInputField/AttachmentButton/index.js +33 -31
- package/dist/MarkdownInputField/BeforeToolContainer/BeforeToolContainer.js +14 -7
- package/dist/MarkdownInputField/FileMapView/FileMapViewItem.js +2 -2
- package/dist/MarkdownInputField/FileMapView/index.js +17 -16
- package/dist/MarkdownInputField/FilePaste/index.js +25 -30
- package/dist/MarkdownInputField/FileUploadManager/index.js +39 -40
- package/dist/MarkdownInputField/MarkdownInputField.js +47 -51
- package/dist/MarkdownInputField/QuickActions/index.js +66 -60
- package/dist/MarkdownInputField/SendButton/index.js +22 -13
- package/dist/MarkdownInputField/Suggestion/index.js +17 -16
- package/dist/MarkdownInputField/VoiceInput/index.js +51 -45
- package/dist/MarkdownInputField/VoiceInputManager/index.js +133 -125
- package/dist/MarkdownInputField/hooks/useMarkdownInputFieldHandlers.js +103 -101
- package/dist/MarkdownInputField/hooks/useMarkdownInputFieldStyles.js +1 -1
- package/dist/MarkdownInputField/style.js +8 -4
- package/dist/MarkdownInputField/types/MarkdownInputFieldProps.js +14 -1
- package/dist/Plugins/chart/BarChart/index.js +8 -8
- package/dist/Plugins/chart/ChartRender.js +52 -46
- package/dist/Plugins/chart/DonutChart/index.js +26 -17
- package/dist/Plugins/chart/DonutChart/plugins.js +1 -1
- package/dist/Plugins/chart/DonutChart/types.js +1 -1
- package/dist/Plugins/chart/FunnelChart/index.js +31 -28
- package/dist/Plugins/chart/LineChart/index.js +19 -10
- package/dist/Plugins/chart/RadarChart/index.js +19 -10
- package/dist/Plugins/chart/ScatterChart/index.js +19 -10
- package/dist/Plugins/chart/components/ChartContainer/ChartContainer.js +20 -11
- package/dist/Plugins/chart/index.js +31 -13
- package/dist/Plugins/chart/loadChartRuntime.js +17 -16
- package/dist/Plugins/chart/types/classNames.js +4 -1
- package/dist/Plugins/chart/utils.js +20 -20
- package/dist/Plugins/code/CodeUI/Katex/Katex.js +52 -46
- package/dist/Plugins/code/components/AceEditor.js +149 -133
- package/dist/Plugins/code/components/CodeRenderer.js +7 -7
- package/dist/Plugins/code/components/CodeToolbar.js +2 -2
- package/dist/Plugins/code/components/LanguageSelector.js +6 -6
- package/dist/Plugins/code/components/LoadImage.js +5 -5
- package/dist/Plugins/code/components/ThinkBlock.js +8 -8
- package/dist/Plugins/code/hooks/useCodeEditorState.js +5 -5
- package/dist/Plugins/code/index.js +6 -6
- package/dist/Plugins/code/langIconMap.js +0 -1
- package/dist/Plugins/code/langIcons/AbapIcon.js +19 -10
- package/dist/Plugins/code/langIcons/ActionscriptIcon.js +19 -10
- package/dist/Plugins/code/langIcons/AdaIcon.js +19 -10
- package/dist/Plugins/code/langIcons/ApacheIcon.js +19 -10
- package/dist/Plugins/code/langIcons/ApexIcon.js +19 -10
- package/dist/Plugins/code/langIcons/AplIcon.js +19 -10
- package/dist/Plugins/code/langIcons/ApplescriptIcon.js +19 -10
- package/dist/Plugins/code/langIcons/AstroIcon.js +19 -10
- package/dist/Plugins/code/langIcons/AwkIcon.js +19 -10
- package/dist/Plugins/code/langIcons/BallerinaIcon.js +19 -10
- package/dist/Plugins/code/langIcons/BatIcon.js +19 -10
- package/dist/Plugins/code/langIcons/BicepIcon.js +19 -10
- package/dist/Plugins/code/langIcons/BladeIcon.js +19 -10
- package/dist/Plugins/code/langIcons/CIcon.js +19 -10
- package/dist/Plugins/code/langIcons/CadenceIcon.js +19 -10
- package/dist/Plugins/code/langIcons/ClojureIcon.js +19 -10
- package/dist/Plugins/code/langIcons/CmakeIcon.js +19 -10
- package/dist/Plugins/code/langIcons/CobolIcon.js +19 -10
- package/dist/Plugins/code/langIcons/CodeqlIcon.js +19 -10
- package/dist/Plugins/code/langIcons/CoffeeIcon.js +19 -10
- package/dist/Plugins/code/langIcons/ConsoleIcon.js +19 -10
- package/dist/Plugins/code/langIcons/CppIcon.js +19 -10
- package/dist/Plugins/code/langIcons/CrystalIcon.js +19 -10
- package/dist/Plugins/code/langIcons/CsharpIcon.js +19 -10
- package/dist/Plugins/code/langIcons/CssIcon.js +19 -10
- package/dist/Plugins/code/langIcons/DIcon.js +19 -10
- package/dist/Plugins/code/langIcons/DartIcon.js +19 -10
- package/dist/Plugins/code/langIcons/DatabaseIcon.js +19 -10
- package/dist/Plugins/code/langIcons/DiffIcon.js +19 -10
- package/dist/Plugins/code/langIcons/DockerIcon.js +19 -10
- package/dist/Plugins/code/langIcons/DotenvIcon.js +19 -10
- package/dist/Plugins/code/langIcons/ElixirIcon.js +19 -10
- package/dist/Plugins/code/langIcons/ElmIcon.js +19 -10
- package/dist/Plugins/code/langIcons/ErbIcon.js +19 -10
- package/dist/Plugins/code/langIcons/ErlangIcon.js +19 -10
- package/dist/Plugins/code/langIcons/FsharpIcon.js +19 -10
- package/dist/Plugins/code/langIcons/GdscriptIcon.js +19 -10
- package/dist/Plugins/code/langIcons/GlslIcon.js +19 -10
- package/dist/Plugins/code/langIcons/GnuplotIcon.js +19 -10
- package/dist/Plugins/code/langIcons/GoIcon.js +19 -10
- package/dist/Plugins/code/langIcons/GraphqlIcon.js +19 -10
- package/dist/Plugins/code/langIcons/GroovyIcon.js +19 -10
- package/dist/Plugins/code/langIcons/HackIcon.js +19 -10
- package/dist/Plugins/code/langIcons/HamlIcon.js +19 -10
- package/dist/Plugins/code/langIcons/HandlebarsIcon.js +19 -10
- package/dist/Plugins/code/langIcons/HaskellIcon.js +19 -10
- package/dist/Plugins/code/langIcons/HclIcon.js +19 -10
- package/dist/Plugins/code/langIcons/HclLightIcon.js +19 -10
- package/dist/Plugins/code/langIcons/HjsonIcon.js +19 -10
- package/dist/Plugins/code/langIcons/HlslIcon.js +19 -10
- package/dist/Plugins/code/langIcons/HtmlIcon.js +19 -10
- package/dist/Plugins/code/langIcons/HttpIcon.js +19 -10
- package/dist/Plugins/code/langIcons/ImbaIcon.js +19 -10
- package/dist/Plugins/code/langIcons/IniIcon.js +19 -10
- package/dist/Plugins/code/langIcons/JavaIcon.js +19 -10
- package/dist/Plugins/code/langIcons/JavascriptIcon.js +19 -10
- package/dist/Plugins/code/langIcons/JinjaIcon.js +19 -10
- package/dist/Plugins/code/langIcons/Json5Icon.js +19 -10
- package/dist/Plugins/code/langIcons/JsonIcon.js +19 -10
- package/dist/Plugins/code/langIcons/JsonnetIcon.js +19 -10
- package/dist/Plugins/code/langIcons/JuliaIcon.js +19 -10
- package/dist/Plugins/code/langIcons/KotlinIcon.js +19 -10
- package/dist/Plugins/code/langIcons/KustoIcon.js +19 -10
- package/dist/Plugins/code/langIcons/LessIcon.js +19 -10
- package/dist/Plugins/code/langIcons/LiquidIcon.js +19 -10
- package/dist/Plugins/code/langIcons/LispIcon.js +19 -10
- package/dist/Plugins/code/langIcons/LuaIcon.js +19 -10
- package/dist/Plugins/code/langIcons/MakefileIcon.js +19 -10
- package/dist/Plugins/code/langIcons/MarkdownIcon.js +19 -10
- package/dist/Plugins/code/langIcons/MarkojsIcon.js +19 -10
- package/dist/Plugins/code/langIcons/MatlabIcon.js +19 -10
- package/dist/Plugins/code/langIcons/MdxIcon.js +19 -10
- package/dist/Plugins/code/langIcons/MermaidIcon.js +19 -10
- package/dist/Plugins/code/langIcons/MojoIcon.js +19 -10
- package/dist/Plugins/code/langIcons/NginxIcon.js +19 -10
- package/dist/Plugins/code/langIcons/NimIcon.js +19 -10
- package/dist/Plugins/code/langIcons/NixIcon.js +19 -10
- package/dist/Plugins/code/langIcons/ObjectiveCIcon.js +19 -10
- package/dist/Plugins/code/langIcons/ObjectiveCppIcon.js +19 -10
- package/dist/Plugins/code/langIcons/OcamlIcon.js +19 -10
- package/dist/Plugins/code/langIcons/PascalIcon.js +19 -10
- package/dist/Plugins/code/langIcons/Perl6Icon.js +19 -10
- package/dist/Plugins/code/langIcons/PerlIcon.js +19 -10
- package/dist/Plugins/code/langIcons/PhpIcon.js +19 -10
- package/dist/Plugins/code/langIcons/PostcssIcon.js +19 -10
- package/dist/Plugins/code/langIcons/PowershellIcon.js +19 -10
- package/dist/Plugins/code/langIcons/PrismaIcon.js +19 -10
- package/dist/Plugins/code/langIcons/PrologIcon.js +19 -10
- package/dist/Plugins/code/langIcons/ProtoIcon.js +19 -10
- package/dist/Plugins/code/langIcons/PugIcon.js +19 -10
- package/dist/Plugins/code/langIcons/PuppetIcon.js +19 -10
- package/dist/Plugins/code/langIcons/PurescriptIcon.js +19 -10
- package/dist/Plugins/code/langIcons/PythonIcon.js +19 -10
- package/dist/Plugins/code/langIcons/RIcon.js +19 -10
- package/dist/Plugins/code/langIcons/RazorIcon.js +19 -10
- package/dist/Plugins/code/langIcons/ReactIcon.js +19 -10
- package/dist/Plugins/code/langIcons/ReactTsIcon.js +19 -10
- package/dist/Plugins/code/langIcons/RubyIcon.js +19 -10
- package/dist/Plugins/code/langIcons/RustIcon.js +19 -10
- package/dist/Plugins/code/langIcons/SasIcon.js +19 -10
- package/dist/Plugins/code/langIcons/SassIcon.js +19 -10
- package/dist/Plugins/code/langIcons/ScalaIcon.js +19 -10
- package/dist/Plugins/code/langIcons/SchemeIcon.js +19 -10
- package/dist/Plugins/code/langIcons/ShaderlabIcon.js +19 -10
- package/dist/Plugins/code/langIcons/SolidityIcon.js +19 -10
- package/dist/Plugins/code/langIcons/SparqlIcon.js +19 -10
- package/dist/Plugins/code/langIcons/StataIcon.js +19 -10
- package/dist/Plugins/code/langIcons/StylusIcon.js +19 -10
- package/dist/Plugins/code/langIcons/SvelteIcon.js +19 -10
- package/dist/Plugins/code/langIcons/SwiftIcon.js +19 -10
- package/dist/Plugins/code/langIcons/SystemverilogIcon.js +19 -10
- package/dist/Plugins/code/langIcons/TclIcon.js +19 -10
- package/dist/Plugins/code/langIcons/TexIcon.js +19 -10
- package/dist/Plugins/code/langIcons/TomlIcon.js +19 -10
- package/dist/Plugins/code/langIcons/TwigIcon.js +19 -10
- package/dist/Plugins/code/langIcons/TypescriptIcon.js +19 -10
- package/dist/Plugins/code/langIcons/VerilogIcon.js +19 -10
- package/dist/Plugins/code/langIcons/VhdlIcon.js +19 -10
- package/dist/Plugins/code/langIcons/VimIcon.js +19 -10
- package/dist/Plugins/code/langIcons/VueIcon.js +19 -10
- package/dist/Plugins/code/langIcons/WebassemblyIcon.js +19 -10
- package/dist/Plugins/code/langIcons/WenyanIcon.js +19 -10
- package/dist/Plugins/code/langIcons/WgslIcon.js +19 -10
- package/dist/Plugins/code/langIcons/WolframlanguageIcon.js +19 -10
- package/dist/Plugins/code/langIcons/XmlIcon.js +19 -10
- package/dist/Plugins/code/langIcons/XslIcon.js +19 -10
- package/dist/Plugins/code/langIcons/YamlIcon.js +19 -10
- package/dist/Plugins/code/langIcons/ZigIcon.js +19 -10
- package/dist/Plugins/code/loadAceEditor.js +21 -23
- package/dist/Plugins/code/utils/langOptions.js +6 -6
- package/dist/Plugins/formatter/index.js +6 -6
- package/dist/Plugins/katex/InlineKatex.js +52 -46
- package/dist/Plugins/katex/Katex.js +53 -47
- package/dist/Plugins/katex/index.js +6 -6
- package/dist/Plugins/katex/loadKatex.js +27 -29
- package/dist/Plugins/mermaid/Mermaid.js +34 -28
- package/dist/Plugins/mermaid/useMermaidRender.js +103 -97
- package/dist/Plugins/mermaid/utils.js +25 -17
- package/dist/Schema/SchemaEditor/AceEditorWrapper.js +162 -150
- package/dist/Schema/SchemaEditor/index.js +8 -1
- package/dist/Schema/SchemaForm/index.js +2 -2
- package/dist/Schema/SchemaRenderer/index.js +45 -46
- package/dist/ThoughtChainList/index.js +22 -13
- package/dist/ToolUseBar/BarItem/Content.js +3 -3
- package/dist/ToolUseBar/BarItem/index.js +10 -3
- package/dist/ToolUseBar/index.js +19 -10
- package/dist/ToolUseBar/style.js +4 -4
- package/dist/Types/common.js +4 -1
- package/dist/Types/message.js +4 -1
- package/dist/Utils/debugUtils.js +8 -8
- package/dist/Utils/getScroll.js +12 -5
- package/dist/Utils/loadCSS.js +23 -22
- package/dist/Utils/proxySandbox/ProxySandbox.js +42 -34
- package/dist/Utils/proxySandbox/SecurityContextManager.js +54 -54
- package/dist/Utils/proxySandbox/index.js +25 -22
- package/dist/Utils/proxySandbox/types.js +11 -11
- package/dist/Utils/scrollTo.js +8 -1
- package/dist/WelcomeMessage/index.js +1 -1
- package/dist/Workspace/File/FileComponent.js +91 -66
- package/dist/Workspace/File/PreviewComponent.js +15 -8
- package/dist/Workspace/File/index.d.ts +1 -1
- package/dist/Workspace/File/style.js +7 -0
- package/dist/Workspace/RealtimeFollow/index.js +1 -2
- package/dist/Workspace/index.js +13 -11
- package/dist/Workspace/style.js +8 -14
- package/dist/Workspace/types.d.ts +50 -0
- package/dist/Workspace/types.js +0 -1
- package/package.json +27 -27
package/dist/Bubble/FileView.js
CHANGED
|
@@ -28,7 +28,7 @@ var renderMoreAction = function(cfg, file) {
|
|
|
28
28
|
try {
|
|
29
29
|
var result = cfg.length === 0 ? cfg() : cfg(file);
|
|
30
30
|
return typeof result === 'function' ? result(file) : result;
|
|
31
|
-
} catch (
|
|
31
|
+
} catch (unused) {
|
|
32
32
|
return undefined;
|
|
33
33
|
}
|
|
34
34
|
};
|
|
@@ -55,7 +55,7 @@ var createViewAllHandler = function(handler) {
|
|
|
55
55
|
var events = {};
|
|
56
56
|
try {
|
|
57
57
|
events = (fileViewEvents === null || fileViewEvents === void 0 ? void 0 : fileViewEvents(defaultHandlers)) || {};
|
|
58
|
-
} catch (
|
|
58
|
+
} catch (unused) {
|
|
59
59
|
console.warn('fileViewEvents execution failed');
|
|
60
60
|
}
|
|
61
61
|
return /*#__PURE__*/ React.createElement(FileMapView, {
|
|
@@ -132,10 +132,10 @@ export var PureBubbleList = function(props) {
|
|
|
132
132
|
});
|
|
133
133
|
// 如果启用了懒加载,用 LazyElement 包裹
|
|
134
134
|
if (isLazyEnabled) {
|
|
135
|
+
var _ref, _ref1, _ref2;
|
|
135
136
|
var _props_lazy_shouldLazyLoad, _props_lazy, _props_lazy1, _props_lazy2, _props_lazy3;
|
|
136
|
-
var _props_lazy_shouldLazyLoad1;
|
|
137
137
|
// 检查是否应该对该消息启用懒加载
|
|
138
|
-
var shouldLazyLoad = (
|
|
138
|
+
var shouldLazyLoad = (_ref = (_props_lazy = props.lazy) === null || _props_lazy === void 0 ? void 0 : (_props_lazy_shouldLazyLoad = _props_lazy.shouldLazyLoad) === null || _props_lazy_shouldLazyLoad === void 0 ? void 0 : _props_lazy_shouldLazyLoad.call(_props_lazy, index, totalCount)) !== null && _ref !== void 0 ? _ref : true;
|
|
139
139
|
// 如果不需要懒加载,直接返回元素
|
|
140
140
|
if (!shouldLazyLoad) {
|
|
141
141
|
return bubbleElement;
|
|
@@ -148,11 +148,10 @@ export var PureBubbleList = function(props) {
|
|
|
148
148
|
}) : undefined
|
|
149
149
|
}));
|
|
150
150
|
} : undefined;
|
|
151
|
-
var _props_lazy_placeholderHeight, _props_lazy_rootMargin;
|
|
152
151
|
return /*#__PURE__*/ React.createElement(LazyElement, {
|
|
153
152
|
key: itemKey,
|
|
154
|
-
placeholderHeight: (
|
|
155
|
-
rootMargin: (
|
|
153
|
+
placeholderHeight: (_ref1 = (_props_lazy2 = props.lazy) === null || _props_lazy2 === void 0 ? void 0 : _props_lazy2.placeholderHeight) !== null && _ref1 !== void 0 ? _ref1 : 100,
|
|
154
|
+
rootMargin: (_ref2 = (_props_lazy3 = props.lazy) === null || _props_lazy3 === void 0 ? void 0 : _props_lazy3.rootMargin) !== null && _ref2 !== void 0 ? _ref2 : '200px',
|
|
156
155
|
renderPlaceholder: adaptedRenderPlaceholder,
|
|
157
156
|
elementInfo: {
|
|
158
157
|
type: 'bubble',
|
|
@@ -195,10 +195,10 @@ import { useStyle } from "./style";
|
|
|
195
195
|
});
|
|
196
196
|
// 如果启用了懒加载,用 LazyElement 包裹
|
|
197
197
|
if (isLazyEnabled) {
|
|
198
|
+
var _ref, _ref1, _ref2;
|
|
198
199
|
var _props_lazy_shouldLazyLoad, _props_lazy, _props_lazy1, _props_lazy2, _props_lazy3;
|
|
199
|
-
var _props_lazy_shouldLazyLoad1;
|
|
200
200
|
// 检查是否应该对该消息启用懒加载
|
|
201
|
-
var shouldLazyLoad = (
|
|
201
|
+
var shouldLazyLoad = (_ref = (_props_lazy = props.lazy) === null || _props_lazy === void 0 ? void 0 : (_props_lazy_shouldLazyLoad = _props_lazy.shouldLazyLoad) === null || _props_lazy_shouldLazyLoad === void 0 ? void 0 : _props_lazy_shouldLazyLoad.call(_props_lazy, index, totalCount)) !== null && _ref !== void 0 ? _ref : true;
|
|
202
202
|
// 如果不需要懒加载,直接返回元素
|
|
203
203
|
if (!shouldLazyLoad) {
|
|
204
204
|
return bubbleElement;
|
|
@@ -211,11 +211,10 @@ import { useStyle } from "./style";
|
|
|
211
211
|
}) : undefined
|
|
212
212
|
}));
|
|
213
213
|
} : undefined;
|
|
214
|
-
var _props_lazy_placeholderHeight, _props_lazy_rootMargin;
|
|
215
214
|
return /*#__PURE__*/ React.createElement(LazyElement, {
|
|
216
215
|
key: itemKey,
|
|
217
|
-
placeholderHeight: (
|
|
218
|
-
rootMargin: (
|
|
216
|
+
placeholderHeight: (_ref1 = (_props_lazy2 = props.lazy) === null || _props_lazy2 === void 0 ? void 0 : _props_lazy2.placeholderHeight) !== null && _ref1 !== void 0 ? _ref1 : 100,
|
|
217
|
+
rootMargin: (_ref2 = (_props_lazy3 = props.lazy) === null || _props_lazy3 === void 0 ? void 0 : _props_lazy3.rootMargin) !== null && _ref2 !== void 0 ? _ref2 : '200px',
|
|
219
218
|
renderPlaceholder: adaptedRenderPlaceholder,
|
|
220
219
|
elementInfo: {
|
|
221
220
|
type: 'bubble',
|
|
@@ -54,6 +54,9 @@ import { resetComponent, useEditorStyleRegister } from "../../Hooks/useStyle";
|
|
|
54
54
|
var genStyle = function(token) {
|
|
55
55
|
var _obj;
|
|
56
56
|
return _define_property({}, token.componentCls, (_obj = {
|
|
57
|
+
display: 'flex',
|
|
58
|
+
flexDirection: 'column',
|
|
59
|
+
gap: 32,
|
|
57
60
|
overflowY: 'auto',
|
|
58
61
|
minHeight: 200,
|
|
59
62
|
padding: 'var(--padding-6x)'
|
|
@@ -116,12 +116,22 @@ function _object_spread_props(target, source) {
|
|
|
116
116
|
}
|
|
117
117
|
function _object_without_properties(source, excluded) {
|
|
118
118
|
if (source == null) return {};
|
|
119
|
-
var target =
|
|
120
|
-
|
|
119
|
+
var target = {}, sourceKeys, key, i;
|
|
120
|
+
if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
|
|
121
|
+
sourceKeys = Reflect.ownKeys(source);
|
|
122
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
123
|
+
key = sourceKeys[i];
|
|
124
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
125
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
126
|
+
target[key] = source[key];
|
|
127
|
+
}
|
|
128
|
+
return target;
|
|
129
|
+
}
|
|
130
|
+
target = _object_without_properties_loose(source, excluded);
|
|
121
131
|
if (Object.getOwnPropertySymbols) {
|
|
122
|
-
|
|
123
|
-
for(i = 0; i <
|
|
124
|
-
key =
|
|
132
|
+
sourceKeys = Object.getOwnPropertySymbols(source);
|
|
133
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
134
|
+
key = sourceKeys[i];
|
|
125
135
|
if (excluded.indexOf(key) >= 0) continue;
|
|
126
136
|
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
127
137
|
target[key] = source[key];
|
|
@@ -131,12 +141,11 @@ function _object_without_properties(source, excluded) {
|
|
|
131
141
|
}
|
|
132
142
|
function _object_without_properties_loose(source, excluded) {
|
|
133
143
|
if (source == null) return {};
|
|
134
|
-
var target = {};
|
|
135
|
-
var sourceKeys = Object.keys(source);
|
|
136
|
-
var key, i;
|
|
144
|
+
var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
|
|
137
145
|
for(i = 0; i < sourceKeys.length; i++){
|
|
138
146
|
key = sourceKeys[i];
|
|
139
147
|
if (excluded.indexOf(key) >= 0) continue;
|
|
148
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
140
149
|
target[key] = source[key];
|
|
141
150
|
}
|
|
142
151
|
return target;
|
|
@@ -153,7 +162,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
153
162
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
154
163
|
}
|
|
155
164
|
function _ts_generator(thisArg, body) {
|
|
156
|
-
var f, y, t,
|
|
165
|
+
var f, y, t, _ = {
|
|
157
166
|
label: 0,
|
|
158
167
|
sent: function() {
|
|
159
168
|
if (t[0] & 1) throw t[1];
|
|
@@ -161,13 +170,17 @@ function _ts_generator(thisArg, body) {
|
|
|
161
170
|
},
|
|
162
171
|
trys: [],
|
|
163
172
|
ops: []
|
|
164
|
-
};
|
|
165
|
-
return g
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
},
|
|
170
|
-
|
|
173
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
|
|
174
|
+
return d(g, "next", {
|
|
175
|
+
value: verb(0)
|
|
176
|
+
}), d(g, "throw", {
|
|
177
|
+
value: verb(1)
|
|
178
|
+
}), d(g, "return", {
|
|
179
|
+
value: verb(2)
|
|
180
|
+
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
181
|
+
value: function() {
|
|
182
|
+
return this;
|
|
183
|
+
}
|
|
171
184
|
}), g;
|
|
172
185
|
function verb(n) {
|
|
173
186
|
return function(v) {
|
|
@@ -179,7 +192,7 @@ function _ts_generator(thisArg, body) {
|
|
|
179
192
|
}
|
|
180
193
|
function step(op) {
|
|
181
194
|
if (f) throw new TypeError("Generator is already executing.");
|
|
182
|
-
while(_)try {
|
|
195
|
+
while(g && (g = 0, op[0] && (_ = 0)), _)try {
|
|
183
196
|
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;
|
|
184
197
|
if (y = 0, t) op = [
|
|
185
198
|
op[0] & 2,
|
|
@@ -282,8 +295,8 @@ import { VoiceButton } from "./VoiceButton";
|
|
|
282
295
|
* onDisLike={handleDisLike}
|
|
283
296
|
* />
|
|
284
297
|
* ```
|
|
285
|
-
*/ export var BubbleExtra = function(
|
|
286
|
-
var onReply =
|
|
298
|
+
*/ export var BubbleExtra = function(_0) {
|
|
299
|
+
var onReply = _0.onReply, bubble = _0.bubble, readonly = _0.readonly, pure = _0.pure, placement = _0.placement, props = _object_without_properties(_0, [
|
|
287
300
|
"onReply",
|
|
288
301
|
"bubble",
|
|
289
302
|
"readonly",
|
|
@@ -347,8 +360,8 @@ import { VoiceButton } from "./VoiceButton";
|
|
|
347
360
|
"data-testid": "like-button",
|
|
348
361
|
active: (originalData === null || originalData === void 0 ? void 0 : originalData.feedback) === 'thumbsUp',
|
|
349
362
|
title: likeButtonTitle,
|
|
350
|
-
onClick:
|
|
351
|
-
|
|
363
|
+
onClick: function(e) {
|
|
364
|
+
return _async_to_generator(function() {
|
|
352
365
|
var _e_preventDefault, _e_stopPropagation, _props_onLike, error;
|
|
353
366
|
return _ts_generator(this, function(_state) {
|
|
354
367
|
switch(_state.label){
|
|
@@ -424,11 +437,8 @@ import { VoiceButton } from "./VoiceButton";
|
|
|
424
437
|
];
|
|
425
438
|
}
|
|
426
439
|
});
|
|
427
|
-
});
|
|
428
|
-
|
|
429
|
-
return _ref.apply(this, arguments);
|
|
430
|
-
};
|
|
431
|
-
}()
|
|
440
|
+
})();
|
|
441
|
+
}
|
|
432
442
|
}, function(isHovered) {
|
|
433
443
|
return (originalData === null || originalData === void 0 ? void 0 : originalData.feedback) === 'thumbsUp' ? /*#__PURE__*/ React.createElement(LikeFilled, null) : /*#__PURE__*/ React.createElement(LikeLottie, {
|
|
434
444
|
active: isHovered
|
|
@@ -448,67 +458,69 @@ import { VoiceButton } from "./VoiceButton";
|
|
|
448
458
|
loading: feedbackLoading,
|
|
449
459
|
onLoadingChange: setFeedbackLoading,
|
|
450
460
|
title: getDislikeButtonTitle,
|
|
451
|
-
onClick:
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
461
|
+
onClick: function() {
|
|
462
|
+
return _async_to_generator(function() {
|
|
463
|
+
var error;
|
|
464
|
+
return _ts_generator(this, function(_state) {
|
|
465
|
+
switch(_state.label){
|
|
466
|
+
case 0:
|
|
467
|
+
_state.trys.push([
|
|
468
|
+
0,
|
|
469
|
+
5,
|
|
470
|
+
,
|
|
471
|
+
6
|
|
472
|
+
]);
|
|
473
|
+
if (alreadyFeedback) {
|
|
474
|
+
// message.error('您已经点过赞或踩了');
|
|
475
|
+
return [
|
|
476
|
+
2
|
|
477
|
+
];
|
|
478
|
+
}
|
|
479
|
+
if (!props.onDislike) return [
|
|
480
|
+
3,
|
|
481
|
+
2
|
|
482
|
+
];
|
|
483
|
+
return [
|
|
484
|
+
4,
|
|
485
|
+
props.onDislike()
|
|
486
|
+
];
|
|
487
|
+
case 1:
|
|
488
|
+
_state.sent();
|
|
489
|
+
return [
|
|
490
|
+
3,
|
|
491
|
+
4
|
|
492
|
+
];
|
|
493
|
+
case 2:
|
|
494
|
+
if (!props.onDisLike) return [
|
|
495
|
+
3,
|
|
496
|
+
4
|
|
497
|
+
];
|
|
498
|
+
return [
|
|
499
|
+
4,
|
|
500
|
+
props.onDisLike()
|
|
501
|
+
];
|
|
502
|
+
case 3:
|
|
503
|
+
_state.sent();
|
|
504
|
+
_state.label = 4;
|
|
505
|
+
case 4:
|
|
506
|
+
return [
|
|
507
|
+
3,
|
|
508
|
+
6
|
|
509
|
+
];
|
|
510
|
+
case 5:
|
|
511
|
+
error = _state.sent();
|
|
512
|
+
return [
|
|
513
|
+
3,
|
|
514
|
+
6
|
|
515
|
+
];
|
|
516
|
+
case 6:
|
|
464
517
|
return [
|
|
465
518
|
2
|
|
466
519
|
];
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
];
|
|
472
|
-
return [
|
|
473
|
-
4,
|
|
474
|
-
props.onDislike()
|
|
475
|
-
];
|
|
476
|
-
case 1:
|
|
477
|
-
_state.sent();
|
|
478
|
-
return [
|
|
479
|
-
3,
|
|
480
|
-
4
|
|
481
|
-
];
|
|
482
|
-
case 2:
|
|
483
|
-
if (!props.onDisLike) return [
|
|
484
|
-
3,
|
|
485
|
-
4
|
|
486
|
-
];
|
|
487
|
-
return [
|
|
488
|
-
4,
|
|
489
|
-
props.onDisLike()
|
|
490
|
-
];
|
|
491
|
-
case 3:
|
|
492
|
-
_state.sent();
|
|
493
|
-
_state.label = 4;
|
|
494
|
-
case 4:
|
|
495
|
-
return [
|
|
496
|
-
3,
|
|
497
|
-
6
|
|
498
|
-
];
|
|
499
|
-
case 5:
|
|
500
|
-
error = _state.sent();
|
|
501
|
-
return [
|
|
502
|
-
3,
|
|
503
|
-
6
|
|
504
|
-
];
|
|
505
|
-
case 6:
|
|
506
|
-
return [
|
|
507
|
-
2
|
|
508
|
-
];
|
|
509
|
-
}
|
|
510
|
-
});
|
|
511
|
-
})
|
|
520
|
+
}
|
|
521
|
+
});
|
|
522
|
+
})();
|
|
523
|
+
}
|
|
512
524
|
}, function(isHovered) {
|
|
513
525
|
return (originalData === null || originalData === void 0 ? void 0 : originalData.feedback) === 'thumbsDown' ? /*#__PURE__*/ React.createElement(DislikeFilled, null) : /*#__PURE__*/ React.createElement(DislikeLottie, {
|
|
514
526
|
active: isHovered
|
|
@@ -660,15 +672,17 @@ import { VoiceButton } from "./VoiceButton";
|
|
|
660
672
|
return /*#__PURE__*/ React.createElement(ActionIconBox, {
|
|
661
673
|
"data-testid": "reply-button",
|
|
662
674
|
borderLess: true,
|
|
663
|
-
onClick:
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
675
|
+
onClick: function() {
|
|
676
|
+
return _async_to_generator(function() {
|
|
677
|
+
var _bubble_originData_extra_preMessage, _bubble_originData_extra, _bubble_originData, _context_locale;
|
|
678
|
+
return _ts_generator(this, function(_state) {
|
|
679
|
+
onReply === null || onReply === void 0 ? void 0 : onReply(((_bubble_originData = bubble.originData) === null || _bubble_originData === void 0 ? void 0 : (_bubble_originData_extra = _bubble_originData.extra) === null || _bubble_originData_extra === void 0 ? void 0 : (_bubble_originData_extra_preMessage = _bubble_originData_extra.preMessage) === null || _bubble_originData_extra_preMessage === void 0 ? void 0 : _bubble_originData_extra_preMessage.content) || (context === null || context === void 0 ? void 0 : (_context_locale = context.locale) === null || _context_locale === void 0 ? void 0 : _context_locale['chat.message.retrySend']) || '重新生成');
|
|
680
|
+
return [
|
|
681
|
+
2
|
|
682
|
+
];
|
|
683
|
+
});
|
|
684
|
+
})();
|
|
685
|
+
},
|
|
672
686
|
title: (context === null || context === void 0 ? void 0 : (_context_locale = context.locale) === null || _context_locale === void 0 ? void 0 : _context_locale['chat.message.retrySend']) || '重新生成'
|
|
673
687
|
}, function(isHovered) {
|
|
674
688
|
var _context_locale;
|
|
@@ -730,6 +744,7 @@ import { VoiceButton } from "./VoiceButton";
|
|
|
730
744
|
width: '100%',
|
|
731
745
|
paddingLeft: placement === 'right' ? 0 : 'var(--padding-5x)',
|
|
732
746
|
paddingRight: placement === 'right' ? 0 : 'var(--padding-5x)',
|
|
747
|
+
paddingTop: placement === 'right' ? 0 : 'var(--padding-1x)',
|
|
733
748
|
paddingBottom: placement === 'right' ? 0 : 'var(--padding-2x)',
|
|
734
749
|
color: 'var(--color-gray-text-secondary)',
|
|
735
750
|
fontSize: (context === null || context === void 0 ? void 0 : context.compact) ? '11px' : '13px',
|
|
@@ -81,12 +81,22 @@ function _object_spread_props(target, source) {
|
|
|
81
81
|
}
|
|
82
82
|
function _object_without_properties(source, excluded) {
|
|
83
83
|
if (source == null) return {};
|
|
84
|
-
var target =
|
|
85
|
-
|
|
84
|
+
var target = {}, sourceKeys, key, i;
|
|
85
|
+
if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
|
|
86
|
+
sourceKeys = Reflect.ownKeys(source);
|
|
87
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
88
|
+
key = sourceKeys[i];
|
|
89
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
90
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
91
|
+
target[key] = source[key];
|
|
92
|
+
}
|
|
93
|
+
return target;
|
|
94
|
+
}
|
|
95
|
+
target = _object_without_properties_loose(source, excluded);
|
|
86
96
|
if (Object.getOwnPropertySymbols) {
|
|
87
|
-
|
|
88
|
-
for(i = 0; i <
|
|
89
|
-
key =
|
|
97
|
+
sourceKeys = Object.getOwnPropertySymbols(source);
|
|
98
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
99
|
+
key = sourceKeys[i];
|
|
90
100
|
if (excluded.indexOf(key) >= 0) continue;
|
|
91
101
|
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
92
102
|
target[key] = source[key];
|
|
@@ -96,18 +106,17 @@ function _object_without_properties(source, excluded) {
|
|
|
96
106
|
}
|
|
97
107
|
function _object_without_properties_loose(source, excluded) {
|
|
98
108
|
if (source == null) return {};
|
|
99
|
-
var target = {};
|
|
100
|
-
var sourceKeys = Object.keys(source);
|
|
101
|
-
var key, i;
|
|
109
|
+
var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
|
|
102
110
|
for(i = 0; i < sourceKeys.length; i++){
|
|
103
111
|
key = sourceKeys[i];
|
|
104
112
|
if (excluded.indexOf(key) >= 0) continue;
|
|
113
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
105
114
|
target[key] = source[key];
|
|
106
115
|
}
|
|
107
116
|
return target;
|
|
108
117
|
}
|
|
109
118
|
function _ts_generator(thisArg, body) {
|
|
110
|
-
var f, y, t,
|
|
119
|
+
var f, y, t, _ = {
|
|
111
120
|
label: 0,
|
|
112
121
|
sent: function() {
|
|
113
122
|
if (t[0] & 1) throw t[1];
|
|
@@ -115,13 +124,17 @@ function _ts_generator(thisArg, body) {
|
|
|
115
124
|
},
|
|
116
125
|
trys: [],
|
|
117
126
|
ops: []
|
|
118
|
-
};
|
|
119
|
-
return g
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
},
|
|
124
|
-
|
|
127
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
|
|
128
|
+
return d(g, "next", {
|
|
129
|
+
value: verb(0)
|
|
130
|
+
}), d(g, "throw", {
|
|
131
|
+
value: verb(1)
|
|
132
|
+
}), d(g, "return", {
|
|
133
|
+
value: verb(2)
|
|
134
|
+
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
135
|
+
value: function() {
|
|
136
|
+
return this;
|
|
137
|
+
}
|
|
125
138
|
}), g;
|
|
126
139
|
function verb(n) {
|
|
127
140
|
return function(v) {
|
|
@@ -133,7 +146,7 @@ function _ts_generator(thisArg, body) {
|
|
|
133
146
|
}
|
|
134
147
|
function step(op) {
|
|
135
148
|
if (f) throw new TypeError("Generator is already executing.");
|
|
136
|
-
while(_)try {
|
|
149
|
+
while(g && (g = 0, op[0] && (_ = 0)), _)try {
|
|
137
150
|
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;
|
|
138
151
|
if (y = 0, t) op = [
|
|
139
152
|
op[0] & 2,
|
|
@@ -290,8 +303,8 @@ import { BubbleConfigContext } from "../../BubbleConfigProvide";
|
|
|
290
303
|
* - 点击时自动触发复制成功状态
|
|
291
304
|
* - 支持自定义图标和样式
|
|
292
305
|
* - 提供复制成功的视觉反馈
|
|
293
|
-
*/ export var CopyButton = /*#__PURE__*/ memo(function(
|
|
294
|
-
var className =
|
|
306
|
+
*/ export var CopyButton = /*#__PURE__*/ memo(function(_0) {
|
|
307
|
+
var className = _0.className, onClick = _0.onClick, dataTestId = _0['data-testid'], props = _object_without_properties(_0, [
|
|
295
308
|
"className",
|
|
296
309
|
"onClick",
|
|
297
310
|
'data-testid'
|
|
@@ -301,8 +314,8 @@ import { BubbleConfigContext } from "../../BubbleConfigProvide";
|
|
|
301
314
|
var context = useContext(BubbleConfigContext);
|
|
302
315
|
var copySuccessText = (context === null || context === void 0 ? void 0 : (_context_locale = context.locale) === null || _context_locale === void 0 ? void 0 : _context_locale['chat.message.copy.success']) || '复制成功';
|
|
303
316
|
return /*#__PURE__*/ React.createElement(ActionIconBox, _object_spread_props(_object_spread({
|
|
304
|
-
onClick:
|
|
305
|
-
|
|
317
|
+
onClick: function(e) {
|
|
318
|
+
return _async_to_generator(function() {
|
|
306
319
|
return _ts_generator(this, function(_state) {
|
|
307
320
|
switch(_state.label){
|
|
308
321
|
case 0:
|
|
@@ -318,11 +331,8 @@ import { BubbleConfigContext } from "../../BubbleConfigProvide";
|
|
|
318
331
|
];
|
|
319
332
|
}
|
|
320
333
|
});
|
|
321
|
-
});
|
|
322
|
-
|
|
323
|
-
return _ref.apply(this, arguments);
|
|
324
|
-
};
|
|
325
|
-
}()
|
|
334
|
+
})();
|
|
335
|
+
}
|
|
326
336
|
}, props), {
|
|
327
337
|
"data-testid": dataTestId,
|
|
328
338
|
title: copied ? /*#__PURE__*/ React.createElement("span", {
|
|
@@ -48,12 +48,22 @@ function _non_iterable_rest() {
|
|
|
48
48
|
}
|
|
49
49
|
function _object_without_properties(source, excluded) {
|
|
50
50
|
if (source == null) return {};
|
|
51
|
-
var target =
|
|
52
|
-
|
|
51
|
+
var target = {}, sourceKeys, key, i;
|
|
52
|
+
if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
|
|
53
|
+
sourceKeys = Reflect.ownKeys(source);
|
|
54
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
55
|
+
key = sourceKeys[i];
|
|
56
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
57
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
58
|
+
target[key] = source[key];
|
|
59
|
+
}
|
|
60
|
+
return target;
|
|
61
|
+
}
|
|
62
|
+
target = _object_without_properties_loose(source, excluded);
|
|
53
63
|
if (Object.getOwnPropertySymbols) {
|
|
54
|
-
|
|
55
|
-
for(i = 0; i <
|
|
56
|
-
key =
|
|
64
|
+
sourceKeys = Object.getOwnPropertySymbols(source);
|
|
65
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
66
|
+
key = sourceKeys[i];
|
|
57
67
|
if (excluded.indexOf(key) >= 0) continue;
|
|
58
68
|
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
59
69
|
target[key] = source[key];
|
|
@@ -63,12 +73,11 @@ function _object_without_properties(source, excluded) {
|
|
|
63
73
|
}
|
|
64
74
|
function _object_without_properties_loose(source, excluded) {
|
|
65
75
|
if (source == null) return {};
|
|
66
|
-
var target = {};
|
|
67
|
-
var sourceKeys = Object.keys(source);
|
|
68
|
-
var key, i;
|
|
76
|
+
var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
|
|
69
77
|
for(i = 0; i < sourceKeys.length; i++){
|
|
70
78
|
key = sourceKeys[i];
|
|
71
79
|
if (excluded.indexOf(key) >= 0) continue;
|
|
80
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
72
81
|
target[key] = source[key];
|
|
73
82
|
}
|
|
74
83
|
return target;
|
|
@@ -119,8 +128,8 @@ var replaceAllPlaceHolder = function(str, placeholder) {
|
|
|
119
128
|
* @param {Function} [props.render] - 自定义渲染函数,用于自定义列表项的渲染
|
|
120
129
|
*
|
|
121
130
|
* @returns {JSX.Element} 文档信息列表组件
|
|
122
|
-
*/ export var DocInfoList = function(
|
|
123
|
-
var reference_url_info_list =
|
|
131
|
+
*/ export var DocInfoList = function(_0) {
|
|
132
|
+
var reference_url_info_list = _0.reference_url_info_list, props = _object_without_properties(_0, [
|
|
124
133
|
"reference_url_info_list"
|
|
125
134
|
]);
|
|
126
135
|
var _props_options;
|
|
@@ -121,9 +121,9 @@ import { MessagesContext } from "./BubbleContext";
|
|
|
121
121
|
content
|
|
122
122
|
]);
|
|
123
123
|
var markdown = useMemo(function() {
|
|
124
|
+
var _ref;
|
|
124
125
|
var _content_includes, _htmlRef_current, _htmlRef_current1, _props_markdownRenderConfig, _props_originData, _props_originData1, _props_originData2, _props_markdownRenderConfig1, _props_markdownRenderConfig2, _props_markdownRenderConfig3;
|
|
125
126
|
var minWidth = (content === null || content === void 0 ? void 0 : (_content_includes = content.includes) === null || _content_includes === void 0 ? void 0 : _content_includes.call(content, 'chartType')) ? standalone ? Math.max(((htmlRef === null || htmlRef === void 0 ? void 0 : (_htmlRef_current = htmlRef.current) === null || _htmlRef_current === void 0 ? void 0 : _htmlRef_current.clientWidth) || 600) - 23, 500) : Math.min(((htmlRef === null || htmlRef === void 0 ? void 0 : (_htmlRef_current1 = htmlRef.current) === null || _htmlRef_current1 === void 0 ? void 0 : _htmlRef_current1.clientWidth) || 600) - 128, 500) : undefined;
|
|
126
|
-
var _props_markdownRenderConfig_typewriter;
|
|
127
127
|
return /*#__PURE__*/ React.createElement(MarkdownEditor, _object_spread_props(_object_spread({}, props.markdownRenderConfig || {}), {
|
|
128
128
|
fncProps: fncProps,
|
|
129
129
|
editorRef: MarkdownEditorRef,
|
|
@@ -146,7 +146,7 @@ import { MessagesContext } from "./BubbleContext";
|
|
|
146
146
|
editorStyle: _object_spread({
|
|
147
147
|
fontSize: 14
|
|
148
148
|
}, ((_props_markdownRenderConfig1 = props.markdownRenderConfig) === null || _props_markdownRenderConfig1 === void 0 ? void 0 : _props_markdownRenderConfig1.editorStyle) || {}),
|
|
149
|
-
typewriter: (
|
|
149
|
+
typewriter: (_ref = (_props_markdownRenderConfig2 = props.markdownRenderConfig) === null || _props_markdownRenderConfig2 === void 0 ? void 0 : _props_markdownRenderConfig2.typewriter) !== null && _ref !== void 0 ? _ref : typing,
|
|
150
150
|
style: _object_spread({
|
|
151
151
|
minWidth: minWidth ? "min(".concat(minWidth, "px,100%)") : undefined,
|
|
152
152
|
maxWidth: standalone ? '100%' : undefined,
|