@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.
- 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 +22 -12
- package/dist/MarkdownEditor/editor/Editor.js +31 -39
- package/dist/MarkdownEditor/editor/components/CommentList/index.js +29 -37
- package/dist/MarkdownEditor/editor/elements/Image/index.js +86 -71
- package/dist/MarkdownEditor/editor/elements/List/ListItem.js +17 -16
- package/dist/MarkdownEditor/editor/elements/Media/index.js +107 -92
- package/dist/MarkdownEditor/editor/elements/Table/Table.js +19 -10
- package/dist/MarkdownEditor/editor/elements/TagPopup/index.js +17 -16
- package/dist/MarkdownEditor/editor/parser/parse/parseBlockElements.js +1 -1
- 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 +2 -2
- package/dist/MarkdownEditor/editor/parser/remarkParse.js +3 -1
- 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/enter.js +0 -1
- package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/match.js +0 -1
- package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/tab.js +0 -1
- package/dist/MarkdownEditor/editor/plugins/insertParsedHtmlNodes.js +39 -53
- package/dist/MarkdownEditor/editor/plugins/useKeyboard.js +1 -1
- package/dist/MarkdownEditor/editor/plugins/useOnchange.js +28 -22
- package/dist/MarkdownEditor/editor/plugins/withMarkdown.js +1 -1
- package/dist/MarkdownEditor/editor/store.js +17 -13
- 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/editorUtils.js +11 -4
- package/dist/MarkdownEditor/editor/utils/index.js +8 -2
- package/dist/MarkdownEditor/editor/utils/keyboard.js +31 -35
- 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/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 +38 -29
- 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 +1 -2
- 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 +25 -25
|
@@ -87,12 +87,22 @@ function _object_spread_props(target, source) {
|
|
|
87
87
|
}
|
|
88
88
|
function _object_without_properties(source, excluded) {
|
|
89
89
|
if (source == null) return {};
|
|
90
|
-
var target =
|
|
91
|
-
|
|
90
|
+
var target = {}, sourceKeys, key, i;
|
|
91
|
+
if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
|
|
92
|
+
sourceKeys = Reflect.ownKeys(source);
|
|
93
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
94
|
+
key = sourceKeys[i];
|
|
95
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
96
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
97
|
+
target[key] = source[key];
|
|
98
|
+
}
|
|
99
|
+
return target;
|
|
100
|
+
}
|
|
101
|
+
target = _object_without_properties_loose(source, excluded);
|
|
92
102
|
if (Object.getOwnPropertySymbols) {
|
|
93
|
-
|
|
94
|
-
for(i = 0; i <
|
|
95
|
-
key =
|
|
103
|
+
sourceKeys = Object.getOwnPropertySymbols(source);
|
|
104
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
105
|
+
key = sourceKeys[i];
|
|
96
106
|
if (excluded.indexOf(key) >= 0) continue;
|
|
97
107
|
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
98
108
|
target[key] = source[key];
|
|
@@ -102,12 +112,11 @@ function _object_without_properties(source, excluded) {
|
|
|
102
112
|
}
|
|
103
113
|
function _object_without_properties_loose(source, excluded) {
|
|
104
114
|
if (source == null) return {};
|
|
105
|
-
var target = {};
|
|
106
|
-
var sourceKeys = Object.keys(source);
|
|
107
|
-
var key, i;
|
|
115
|
+
var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
|
|
108
116
|
for(i = 0; i < sourceKeys.length; i++){
|
|
109
117
|
key = sourceKeys[i];
|
|
110
118
|
if (excluded.indexOf(key) >= 0) continue;
|
|
119
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
111
120
|
target[key] = source[key];
|
|
112
121
|
}
|
|
113
122
|
return target;
|
|
@@ -183,8 +192,8 @@ import { useVoiceInputManager } from "./VoiceInputManager";
|
|
|
183
192
|
* - 支持快捷键发送消息
|
|
184
193
|
* - 支持自动完成功能
|
|
185
194
|
* - 支持自定义渲染配置
|
|
186
|
-
*/ var MarkdownInputFieldComponent = function(
|
|
187
|
-
var tagInputProps =
|
|
195
|
+
*/ var MarkdownInputFieldComponent = function(_0) {
|
|
196
|
+
var tagInputProps = _0.tagInputProps, markdownProps = _0.markdownProps, _0_borderRadius = _0.borderRadius, borderRadius = _0_borderRadius === void 0 ? 16 : _0_borderRadius, onBlur = _0.onBlur, onFocus = _0.onFocus, _0_isShowTopOperatingArea = _0.isShowTopOperatingArea, isShowTopOperatingArea = _0_isShowTopOperatingArea === void 0 ? false : _0_isShowTopOperatingArea, props = _object_without_properties(_0, [
|
|
188
197
|
"tagInputProps",
|
|
189
198
|
"markdownProps",
|
|
190
199
|
"borderRadius",
|
|
@@ -192,6 +201,7 @@ import { useVoiceInputManager } from "./VoiceInputManager";
|
|
|
192
201
|
"onFocus",
|
|
193
202
|
"isShowTopOperatingArea"
|
|
194
203
|
]);
|
|
204
|
+
var _ref;
|
|
195
205
|
var _props_style, _props_attachment, _props_enlargeable, _props_refinePrompt, _props_enlargeable1, _props_enlargeable2;
|
|
196
206
|
var getPrefixCls = useContext(ConfigProvider.ConfigContext).getPrefixCls;
|
|
197
207
|
var baseCls = getPrefixCls('agentic-md-input-field');
|
|
@@ -317,9 +327,9 @@ import { useVoiceInputManager } from "./VoiceInputManager";
|
|
|
317
327
|
});
|
|
318
328
|
// 计算编辑器容器的 maxHeight(用于内部样式)
|
|
319
329
|
var editorMaxHeight = useMemo(function() {
|
|
330
|
+
var _props_maxHeight;
|
|
320
331
|
var _props_style, _props_attachment;
|
|
321
332
|
if (isEnlarged) return 'none';
|
|
322
|
-
var _props_maxHeight;
|
|
323
333
|
var maxHeightValue = (_props_maxHeight = props.maxHeight) !== null && _props_maxHeight !== void 0 ? _props_maxHeight : (_props_style = props.style) === null || _props_style === void 0 ? void 0 : _props_style.maxHeight;
|
|
324
334
|
var base = typeof maxHeightValue === 'number' ? maxHeightValue : maxHeightValue ? parseFloat(String(maxHeightValue)) || 400 : 400;
|
|
325
335
|
var extra = ((_props_attachment = props.attachment) === null || _props_attachment === void 0 ? void 0 : _props_attachment.enable) ? 90 : 0;
|
|
@@ -330,7 +340,6 @@ import { useVoiceInputManager } from "./VoiceInputManager";
|
|
|
330
340
|
(_props_style = props.style) === null || _props_style === void 0 ? void 0 : _props_style.maxHeight,
|
|
331
341
|
(_props_attachment = props.attachment) === null || _props_attachment === void 0 ? void 0 : _props_attachment.enable
|
|
332
342
|
]);
|
|
333
|
-
var _props_enlargeable_height;
|
|
334
343
|
var _obj, _obj1;
|
|
335
344
|
return wrapSSR(/*#__PURE__*/ React.createElement(React.Fragment, null, isShowTopOperatingArea && /*#__PURE__*/ React.createElement("div", {
|
|
336
345
|
className: classNames("".concat(baseCls, "-top-area"), hashId)
|
|
@@ -349,7 +358,7 @@ import { useVoiceInputManager } from "./VoiceInputManager";
|
|
|
349
358
|
ref: inputRef,
|
|
350
359
|
className: classNames(baseCls, hashId, props.className, (_obj = {}, _define_property(_obj, "".concat(baseCls, "-disabled"), props.disabled), _define_property(_obj, "".concat(baseCls, "-typing"), false), _define_property(_obj, "".concat(baseCls, "-loading"), isLoading), _define_property(_obj, "".concat(baseCls, "-is-multi-row"), isMultiRowLayout), _define_property(_obj, "".concat(baseCls, "-enlarged"), isEnlarged), _define_property(_obj, "".concat(baseCls, "-focused"), isFocused), _define_property(_obj, "".concat(baseCls, "-has-tools-wrapper"), !!props.toolsRender), _obj)),
|
|
351
360
|
style: _object_spread_props(_object_spread({}, props.style, enlargedStyle), {
|
|
352
|
-
height: isEnlarged ? "".concat((
|
|
361
|
+
height: isEnlarged ? "".concat((_ref = (_props_enlargeable = props.enlargeable) === null || _props_enlargeable === void 0 ? void 0 : _props_enlargeable.height) !== null && _ref !== void 0 ? _ref : 980, "px") : "min(".concat(collapsedHeightPx, "px,100%)"),
|
|
353
362
|
borderRadius: borderRadius || 12,
|
|
354
363
|
minHeight: computedMinHeight,
|
|
355
364
|
maxHeight: isEnlarged ? 'none' : props.maxHeight !== undefined ? typeof props.maxHeight === 'number' ? "".concat(props.maxHeight, "px") : props.maxHeight : "min(".concat(collapsedHeightPx, "px,100%)")
|
|
@@ -449,21 +458,7 @@ import { useVoiceInputManager } from "./VoiceInputManager";
|
|
|
449
458
|
titlePlaceholderContent: props.placeholder,
|
|
450
459
|
toc: false,
|
|
451
460
|
pasteConfig: props.pasteConfig
|
|
452
|
-
}, markdownProps))))
|
|
453
|
-
className: classNames("".concat(baseCls, "-tools-wrapper"), hashId)
|
|
454
|
-
}, /*#__PURE__*/ React.createElement("div", {
|
|
455
|
-
ref: actionsRef,
|
|
456
|
-
contentEditable: false,
|
|
457
|
-
className: classNames("".concat(baseCls, "-send-tools"), hashId)
|
|
458
|
-
}, props.toolsRender(_object_spread_props(_object_spread({
|
|
459
|
-
value: value,
|
|
460
|
-
fileMap: fileMap,
|
|
461
|
-
onFileMapChange: setFileMap
|
|
462
|
-
}, props), {
|
|
463
|
-
isHover: isHover,
|
|
464
|
-
isLoading: isLoading,
|
|
465
|
-
fileUploadStatus: fileUploadDone ? 'done' : 'uploading'
|
|
466
|
-
}))), sendActionsNode) : sendActionsNode, (props === null || props === void 0 ? void 0 : props.quickActionRender) || ((_props_refinePrompt = props.refinePrompt) === null || _props_refinePrompt === void 0 ? void 0 : _props_refinePrompt.enable) || ((_props_enlargeable1 = props.enlargeable) === null || _props_enlargeable1 === void 0 ? void 0 : _props_enlargeable1.enable) ? /*#__PURE__*/ React.createElement(QuickActions, {
|
|
461
|
+
}, markdownProps), (props === null || props === void 0 ? void 0 : props.quickActionRender) || ((_props_refinePrompt = props.refinePrompt) === null || _props_refinePrompt === void 0 ? void 0 : _props_refinePrompt.enable) || ((_props_enlargeable1 = props.enlargeable) === null || _props_enlargeable1 === void 0 ? void 0 : _props_enlargeable1.enable) ? /*#__PURE__*/ React.createElement(QuickActions, {
|
|
467
462
|
ref: quickActionsRef,
|
|
468
463
|
value: value,
|
|
469
464
|
fileMap: fileMap,
|
|
@@ -489,7 +484,21 @@ import { useVoiceInputManager } from "./VoiceInputManager";
|
|
|
489
484
|
setTopRightPadding(width);
|
|
490
485
|
setQuickRightOffset(rightOffset);
|
|
491
486
|
}
|
|
492
|
-
}) : null)))
|
|
487
|
+
}) : null))), props.toolsRender ? /*#__PURE__*/ React.createElement("div", {
|
|
488
|
+
className: classNames("".concat(baseCls, "-tools-wrapper"), hashId)
|
|
489
|
+
}, /*#__PURE__*/ React.createElement("div", {
|
|
490
|
+
ref: actionsRef,
|
|
491
|
+
contentEditable: false,
|
|
492
|
+
className: classNames("".concat(baseCls, "-send-tools"), hashId)
|
|
493
|
+
}, props.toolsRender(_object_spread_props(_object_spread({
|
|
494
|
+
value: value,
|
|
495
|
+
fileMap: fileMap,
|
|
496
|
+
onFileMapChange: setFileMap
|
|
497
|
+
}, props), {
|
|
498
|
+
isHover: isHover,
|
|
499
|
+
isLoading: isLoading,
|
|
500
|
+
fileUploadStatus: fileUploadDone ? 'done' : 'uploading'
|
|
501
|
+
}))), sendActionsNode) : sendActionsNode))));
|
|
493
502
|
};
|
|
494
503
|
MarkdownInputFieldComponent.displayName = 'MarkdownInputField';
|
|
495
504
|
// 使用 React.memo 优化性能,避免不必要的重新渲染
|
|
@@ -99,7 +99,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
99
99
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
100
100
|
}
|
|
101
101
|
function _ts_generator(thisArg, body) {
|
|
102
|
-
var f, y, t,
|
|
102
|
+
var f, y, t, _ = {
|
|
103
103
|
label: 0,
|
|
104
104
|
sent: function() {
|
|
105
105
|
if (t[0] & 1) throw t[1];
|
|
@@ -107,13 +107,17 @@ function _ts_generator(thisArg, body) {
|
|
|
107
107
|
},
|
|
108
108
|
trys: [],
|
|
109
109
|
ops: []
|
|
110
|
-
};
|
|
111
|
-
return g
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
},
|
|
116
|
-
|
|
110
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
|
|
111
|
+
return d(g, "next", {
|
|
112
|
+
value: verb(0)
|
|
113
|
+
}), d(g, "throw", {
|
|
114
|
+
value: verb(1)
|
|
115
|
+
}), d(g, "return", {
|
|
116
|
+
value: verb(2)
|
|
117
|
+
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
118
|
+
value: function() {
|
|
119
|
+
return this;
|
|
120
|
+
}
|
|
117
121
|
}), g;
|
|
118
122
|
function verb(n) {
|
|
119
123
|
return function(v) {
|
|
@@ -125,7 +129,7 @@ function _ts_generator(thisArg, body) {
|
|
|
125
129
|
}
|
|
126
130
|
function step(op) {
|
|
127
131
|
if (f) throw new TypeError("Generator is already executing.");
|
|
128
|
-
while(_)try {
|
|
132
|
+
while(g && (g = 0, op[0] && (_ = 0)), _)try {
|
|
129
133
|
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;
|
|
130
134
|
if (y = 0, t) op = [
|
|
131
135
|
op[0] & 2,
|
|
@@ -215,56 +219,58 @@ import { RefinePromptButton } from "../RefinePromptButton";
|
|
|
215
219
|
});
|
|
216
220
|
/**
|
|
217
221
|
* 处理提示词优化
|
|
218
|
-
*/ var handleRefine = useRefFunction(
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
222
|
+
*/ var handleRefine = useRefFunction(function() {
|
|
223
|
+
return _async_to_generator(function() {
|
|
224
|
+
var _ref, _ref1, _editorRef_current_store_getMDContent, _editorRef_current_store, _editorRef_current, current, refined, e;
|
|
225
|
+
return _ts_generator(this, function(_state) {
|
|
226
|
+
switch(_state.label){
|
|
227
|
+
case 0:
|
|
228
|
+
if (!(refinePrompt === null || refinePrompt === void 0 ? void 0 : refinePrompt.enable)) return [
|
|
229
|
+
2
|
|
230
|
+
];
|
|
231
|
+
if (!(refinePrompt === null || refinePrompt === void 0 ? void 0 : refinePrompt.onRefine)) return [
|
|
232
|
+
2
|
|
233
|
+
];
|
|
234
|
+
if (refineStatus === 'loading') return [
|
|
235
|
+
2
|
|
236
|
+
];
|
|
237
|
+
current = (_ref = (_ref1 = editorRef === null || editorRef === void 0 ? void 0 : (_editorRef_current = editorRef.current) === null || _editorRef_current === void 0 ? void 0 : (_editorRef_current_store = _editorRef_current.store) === null || _editorRef_current_store === void 0 ? void 0 : (_editorRef_current_store_getMDContent = _editorRef_current_store.getMDContent) === null || _editorRef_current_store_getMDContent === void 0 ? void 0 : _editorRef_current_store_getMDContent.call(_editorRef_current_store)) !== null && _ref1 !== void 0 ? _ref1 : value) !== null && _ref !== void 0 ? _ref : '';
|
|
238
|
+
setRefineStatus('loading');
|
|
239
|
+
_state.label = 1;
|
|
240
|
+
case 1:
|
|
241
|
+
_state.trys.push([
|
|
242
|
+
1,
|
|
243
|
+
3,
|
|
244
|
+
,
|
|
245
|
+
4
|
|
246
|
+
]);
|
|
247
|
+
return [
|
|
248
|
+
4,
|
|
249
|
+
refinePrompt.onRefine(current)
|
|
250
|
+
];
|
|
251
|
+
case 2:
|
|
252
|
+
refined = _state.sent();
|
|
253
|
+
applyEditorContent(refined !== null && refined !== void 0 ? refined : '');
|
|
254
|
+
setRefineStatus('idle');
|
|
255
|
+
return [
|
|
256
|
+
3,
|
|
257
|
+
4
|
|
258
|
+
];
|
|
259
|
+
case 3:
|
|
260
|
+
e = _state.sent();
|
|
261
|
+
setRefineStatus('idle');
|
|
262
|
+
return [
|
|
263
|
+
3,
|
|
264
|
+
4
|
|
265
|
+
];
|
|
266
|
+
case 4:
|
|
267
|
+
return [
|
|
268
|
+
2
|
|
269
|
+
];
|
|
270
|
+
}
|
|
271
|
+
});
|
|
272
|
+
})();
|
|
273
|
+
});
|
|
268
274
|
return /*#__PURE__*/ React.createElement(RcResizeObserver, {
|
|
269
275
|
onResize: function(e) {
|
|
270
276
|
try {
|
|
@@ -281,7 +287,7 @@ import { RefinePromptButton } from "../RefinePromptButton";
|
|
|
281
287
|
var right = parseFloat(styles.right || '0');
|
|
282
288
|
var rightOffset = Number.isNaN(right) ? 0 : right;
|
|
283
289
|
onResize === null || onResize === void 0 ? void 0 : onResize(e.offsetWidth, rightOffset);
|
|
284
|
-
} catch (
|
|
290
|
+
} catch (unused) {}
|
|
285
291
|
}
|
|
286
292
|
}, /*#__PURE__*/ React.createElement("div", {
|
|
287
293
|
ref: ref,
|
|
@@ -28,12 +28,22 @@ function _object_spread(target) {
|
|
|
28
28
|
}
|
|
29
29
|
function _object_without_properties(source, excluded) {
|
|
30
30
|
if (source == null) return {};
|
|
31
|
-
var target =
|
|
32
|
-
|
|
31
|
+
var target = {}, sourceKeys, key, i;
|
|
32
|
+
if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
|
|
33
|
+
sourceKeys = Reflect.ownKeys(source);
|
|
34
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
35
|
+
key = sourceKeys[i];
|
|
36
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
37
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
38
|
+
target[key] = source[key];
|
|
39
|
+
}
|
|
40
|
+
return target;
|
|
41
|
+
}
|
|
42
|
+
target = _object_without_properties_loose(source, excluded);
|
|
33
43
|
if (Object.getOwnPropertySymbols) {
|
|
34
|
-
|
|
35
|
-
for(i = 0; i <
|
|
36
|
-
key =
|
|
44
|
+
sourceKeys = Object.getOwnPropertySymbols(source);
|
|
45
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
46
|
+
key = sourceKeys[i];
|
|
37
47
|
if (excluded.indexOf(key) >= 0) continue;
|
|
38
48
|
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
39
49
|
target[key] = source[key];
|
|
@@ -43,12 +53,11 @@ function _object_without_properties(source, excluded) {
|
|
|
43
53
|
}
|
|
44
54
|
function _object_without_properties_loose(source, excluded) {
|
|
45
55
|
if (source == null) return {};
|
|
46
|
-
var target = {};
|
|
47
|
-
var sourceKeys = Object.keys(source);
|
|
48
|
-
var key, i;
|
|
56
|
+
var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
|
|
49
57
|
for(i = 0; i < sourceKeys.length; i++){
|
|
50
58
|
key = sourceKeys[i];
|
|
51
59
|
if (excluded.indexOf(key) >= 0) continue;
|
|
60
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
52
61
|
target[key] = source[key];
|
|
53
62
|
}
|
|
54
63
|
return target;
|
|
@@ -68,6 +77,7 @@ var DEFAULT_SEND_BUTTON_COLORS = {
|
|
|
68
77
|
backgroundHover: '#14161C'
|
|
69
78
|
};
|
|
70
79
|
function SendIcon(props) {
|
|
80
|
+
var _ref, _ref1, _ref2, _ref3;
|
|
71
81
|
var hover = props.hover, typing = props.typing, onInit = props.onInit, colors = props.colors, rest = _object_without_properties(props, [
|
|
72
82
|
"hover",
|
|
73
83
|
"typing",
|
|
@@ -80,12 +90,11 @@ function SendIcon(props) {
|
|
|
80
90
|
if (typing) {
|
|
81
91
|
return /*#__PURE__*/ React.createElement(StopIcon, rest);
|
|
82
92
|
}
|
|
83
|
-
var _colors_icon, _colors_iconHover, _colors_background, _colors_backgroundHover;
|
|
84
93
|
var currentColors = {
|
|
85
|
-
icon: (
|
|
86
|
-
iconHover: (
|
|
87
|
-
background: (
|
|
88
|
-
backgroundHover: (
|
|
94
|
+
icon: (_ref = colors === null || colors === void 0 ? void 0 : colors.icon) !== null && _ref !== void 0 ? _ref : DEFAULT_SEND_BUTTON_COLORS.icon,
|
|
95
|
+
iconHover: (_ref1 = colors === null || colors === void 0 ? void 0 : colors.iconHover) !== null && _ref1 !== void 0 ? _ref1 : DEFAULT_SEND_BUTTON_COLORS.iconHover,
|
|
96
|
+
background: (_ref2 = colors === null || colors === void 0 ? void 0 : colors.background) !== null && _ref2 !== void 0 ? _ref2 : DEFAULT_SEND_BUTTON_COLORS.background,
|
|
97
|
+
backgroundHover: (_ref3 = colors === null || colors === void 0 ? void 0 : colors.backgroundHover) !== null && _ref3 !== void 0 ? _ref3 : DEFAULT_SEND_BUTTON_COLORS.backgroundHover
|
|
89
98
|
};
|
|
90
99
|
return /*#__PURE__*/ React.createElement("svg", _object_spread({
|
|
91
100
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -126,7 +126,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
126
126
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
127
127
|
}
|
|
128
128
|
function _ts_generator(thisArg, body) {
|
|
129
|
-
var f, y, t,
|
|
129
|
+
var f, y, t, _ = {
|
|
130
130
|
label: 0,
|
|
131
131
|
sent: function() {
|
|
132
132
|
if (t[0] & 1) throw t[1];
|
|
@@ -134,13 +134,17 @@ function _ts_generator(thisArg, body) {
|
|
|
134
134
|
},
|
|
135
135
|
trys: [],
|
|
136
136
|
ops: []
|
|
137
|
-
};
|
|
138
|
-
return g
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
},
|
|
143
|
-
|
|
137
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
|
|
138
|
+
return d(g, "next", {
|
|
139
|
+
value: verb(0)
|
|
140
|
+
}), d(g, "throw", {
|
|
141
|
+
value: verb(1)
|
|
142
|
+
}), d(g, "return", {
|
|
143
|
+
value: verb(2)
|
|
144
|
+
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
145
|
+
value: function() {
|
|
146
|
+
return this;
|
|
147
|
+
}
|
|
144
148
|
}), g;
|
|
145
149
|
function verb(n) {
|
|
146
150
|
return function(v) {
|
|
@@ -152,7 +156,7 @@ function _ts_generator(thisArg, body) {
|
|
|
152
156
|
}
|
|
153
157
|
function step(op) {
|
|
154
158
|
if (f) throw new TypeError("Generator is already executing.");
|
|
155
|
-
while(_)try {
|
|
159
|
+
while(g && (g = 0, op[0] && (_ = 0)), _)try {
|
|
156
160
|
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;
|
|
157
161
|
if (y = 0, t) op = [
|
|
158
162
|
op[0] & 2,
|
|
@@ -309,8 +313,8 @@ import { useRefFunction } from "../../Hooks/useRefFunction";
|
|
|
309
313
|
});
|
|
310
314
|
}), 2), selectedItems = _useState1[0], setSelectedItems = _useState1[1];
|
|
311
315
|
useEffect(function() {
|
|
312
|
-
var loadingData =
|
|
313
|
-
|
|
316
|
+
var loadingData = function() {
|
|
317
|
+
return _async_to_generator(function() {
|
|
314
318
|
var result;
|
|
315
319
|
return _ts_generator(this, function(_state) {
|
|
316
320
|
switch(_state.label){
|
|
@@ -346,11 +350,8 @@ import { useRefFunction } from "../../Hooks/useRefFunction";
|
|
|
346
350
|
];
|
|
347
351
|
}
|
|
348
352
|
});
|
|
349
|
-
});
|
|
350
|
-
|
|
351
|
-
return _ref.apply(this, arguments);
|
|
352
|
-
};
|
|
353
|
-
}();
|
|
353
|
+
})();
|
|
354
|
+
};
|
|
354
355
|
loadingData();
|
|
355
356
|
}, [
|
|
356
357
|
open
|
|
@@ -41,7 +41,7 @@ function _define_property(obj, key, value) {
|
|
|
41
41
|
return obj;
|
|
42
42
|
}
|
|
43
43
|
function _ts_generator(thisArg, body) {
|
|
44
|
-
var f, y, t,
|
|
44
|
+
var f, y, t, _ = {
|
|
45
45
|
label: 0,
|
|
46
46
|
sent: function() {
|
|
47
47
|
if (t[0] & 1) throw t[1];
|
|
@@ -49,13 +49,17 @@ function _ts_generator(thisArg, body) {
|
|
|
49
49
|
},
|
|
50
50
|
trys: [],
|
|
51
51
|
ops: []
|
|
52
|
-
};
|
|
53
|
-
return g
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
},
|
|
58
|
-
|
|
52
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
|
|
53
|
+
return d(g, "next", {
|
|
54
|
+
value: verb(0)
|
|
55
|
+
}), d(g, "throw", {
|
|
56
|
+
value: verb(1)
|
|
57
|
+
}), d(g, "return", {
|
|
58
|
+
value: verb(2)
|
|
59
|
+
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
60
|
+
value: function() {
|
|
61
|
+
return this;
|
|
62
|
+
}
|
|
59
63
|
}), g;
|
|
60
64
|
function verb(n) {
|
|
61
65
|
return function(v) {
|
|
@@ -67,7 +71,7 @@ function _ts_generator(thisArg, body) {
|
|
|
67
71
|
}
|
|
68
72
|
function step(op) {
|
|
69
73
|
if (f) throw new TypeError("Generator is already executing.");
|
|
70
|
-
while(_)try {
|
|
74
|
+
while(g && (g = 0, op[0] && (_ = 0)), _)try {
|
|
71
75
|
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;
|
|
72
76
|
if (y = 0, t) op = [
|
|
73
77
|
op[0] & 2,
|
|
@@ -182,42 +186,44 @@ import { useStyle } from "./style";
|
|
|
182
186
|
"aria-pressed": recording,
|
|
183
187
|
className: classNames(baseCls, hashId, (_obj = {}, _define_property(_obj, "".concat(baseCls, "-disabled"), disabled), _define_property(_obj, "".concat(baseCls, "-recording"), recording), _obj)),
|
|
184
188
|
style: style,
|
|
185
|
-
onClick:
|
|
186
|
-
return
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
189
|
+
onClick: function() {
|
|
190
|
+
return _async_to_generator(function() {
|
|
191
|
+
return _ts_generator(this, function(_state) {
|
|
192
|
+
switch(_state.label){
|
|
193
|
+
case 0:
|
|
194
|
+
if (disabled) return [
|
|
195
|
+
2
|
|
196
|
+
];
|
|
197
|
+
if (!recording) return [
|
|
198
|
+
3,
|
|
199
|
+
2
|
|
200
|
+
];
|
|
201
|
+
return [
|
|
202
|
+
4,
|
|
203
|
+
onStop()
|
|
204
|
+
];
|
|
205
|
+
case 1:
|
|
206
|
+
_state.sent();
|
|
207
|
+
return [
|
|
208
|
+
3,
|
|
209
|
+
4
|
|
210
|
+
];
|
|
211
|
+
case 2:
|
|
212
|
+
return [
|
|
213
|
+
4,
|
|
214
|
+
onStart()
|
|
215
|
+
];
|
|
216
|
+
case 3:
|
|
217
|
+
_state.sent();
|
|
218
|
+
_state.label = 4;
|
|
219
|
+
case 4:
|
|
220
|
+
return [
|
|
221
|
+
2
|
|
222
|
+
];
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
})();
|
|
226
|
+
}
|
|
221
227
|
}, /*#__PURE__*/ React.createElement(ErrorBoundary, {
|
|
222
228
|
fallback: /*#__PURE__*/ React.createElement("div", null)
|
|
223
229
|
}, dom))));
|