@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
|
@@ -32,6 +32,7 @@ import { motion } from "framer-motion";
|
|
|
32
32
|
import React, { useContext, useEffect } from "react";
|
|
33
33
|
import { useStyle } from "./style";
|
|
34
34
|
export var ActionItemBox = function(props) {
|
|
35
|
+
var _props_hoverBg, _props_hoverBg1;
|
|
35
36
|
var getPrefixCls = useContext(ConfigProvider.ConfigContext).getPrefixCls;
|
|
36
37
|
var basePrefixCls = getPrefixCls('agentic-chat-action-item-box');
|
|
37
38
|
var _useStyle = useStyle(basePrefixCls), wrapSSR = _useStyle.wrapSSR, hashId = _useStyle.hashId;
|
|
@@ -39,7 +40,6 @@ export var ActionItemBox = function(props) {
|
|
|
39
40
|
var _props_onInit;
|
|
40
41
|
props === null || props === void 0 ? void 0 : (_props_onInit = props.onInit) === null || _props_onInit === void 0 ? void 0 : _props_onInit.call(props);
|
|
41
42
|
}, []);
|
|
42
|
-
var _props_hoverBg, _props_hoverBg1;
|
|
43
43
|
var _obj, _obj1;
|
|
44
44
|
return wrapSSR(/*#__PURE__*/ React.createElement(motion.div, {
|
|
45
45
|
initial: "hidden",
|
|
@@ -87,7 +87,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
87
87
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
88
88
|
}
|
|
89
89
|
function _ts_generator(thisArg, body) {
|
|
90
|
-
var f, y, t,
|
|
90
|
+
var f, y, t, _ = {
|
|
91
91
|
label: 0,
|
|
92
92
|
sent: function() {
|
|
93
93
|
if (t[0] & 1) throw t[1];
|
|
@@ -95,13 +95,17 @@ function _ts_generator(thisArg, body) {
|
|
|
95
95
|
},
|
|
96
96
|
trys: [],
|
|
97
97
|
ops: []
|
|
98
|
-
};
|
|
99
|
-
return g
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
},
|
|
104
|
-
|
|
98
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
|
|
99
|
+
return d(g, "next", {
|
|
100
|
+
value: verb(0)
|
|
101
|
+
}), d(g, "throw", {
|
|
102
|
+
value: verb(1)
|
|
103
|
+
}), d(g, "return", {
|
|
104
|
+
value: verb(2)
|
|
105
|
+
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
106
|
+
value: function() {
|
|
107
|
+
return this;
|
|
108
|
+
}
|
|
105
109
|
}), g;
|
|
106
110
|
function verb(n) {
|
|
107
111
|
return function(v) {
|
|
@@ -113,7 +117,7 @@ function _ts_generator(thisArg, body) {
|
|
|
113
117
|
}
|
|
114
118
|
function step(op) {
|
|
115
119
|
if (f) throw new TypeError("Generator is already executing.");
|
|
116
|
-
while(_)try {
|
|
120
|
+
while(g && (g = 0, op[0] && (_ = 0)), _)try {
|
|
117
121
|
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;
|
|
118
122
|
if (y = 0, t) op = [
|
|
119
123
|
op[0] & 2,
|
|
@@ -188,11 +192,11 @@ import React, { useContext, useEffect, useState } from "react";
|
|
|
188
192
|
import { useStyle } from "./style";
|
|
189
193
|
export var SwitchButton = function(param) {
|
|
190
194
|
var className = param.className, style = param.style, icon = param.icon, triggerIcon = param.triggerIcon, disabled = param.disabled, active = param.active, defaultActive = param.defaultActive, onChange = param.onChange, onClick = param.onClick, children = param.children;
|
|
195
|
+
var _ref;
|
|
191
196
|
var context = useContext(ConfigProvider.ConfigContext);
|
|
192
197
|
var prefixCls = context === null || context === void 0 ? void 0 : context.getPrefixCls('switch-button');
|
|
193
198
|
var _useStyle = useStyle(prefixCls), wrapSSR = _useStyle.wrapSSR, hashId = _useStyle.hashId;
|
|
194
199
|
var isControlled = typeof active === 'boolean';
|
|
195
|
-
var _ref;
|
|
196
200
|
var _useState = _sliced_to_array(useState((_ref = active !== null && active !== void 0 ? active : defaultActive) !== null && _ref !== void 0 ? _ref : false), 2), innerActive = _useState[0], setInnerActive = _useState[1];
|
|
197
201
|
useEffect(function() {
|
|
198
202
|
if (isControlled) {
|
|
@@ -205,8 +209,8 @@ export var SwitchButton = function(param) {
|
|
|
205
209
|
var effectiveActive = isControlled ? !!active : innerActive;
|
|
206
210
|
var _obj;
|
|
207
211
|
var rootCls = classNames("".concat(prefixCls, "-button"), prefixCls, className, hashId, (_obj = {}, _define_property(_obj, "".concat(prefixCls, "-active"), effectiveActive), _define_property(_obj, "".concat(prefixCls, "-disabled"), disabled), _obj));
|
|
208
|
-
var handleClick =
|
|
209
|
-
|
|
212
|
+
var handleClick = function() {
|
|
213
|
+
return _async_to_generator(function() {
|
|
210
214
|
var next;
|
|
211
215
|
return _ts_generator(this, function(_state) {
|
|
212
216
|
switch(_state.label){
|
|
@@ -228,11 +232,8 @@ export var SwitchButton = function(param) {
|
|
|
228
232
|
];
|
|
229
233
|
}
|
|
230
234
|
});
|
|
231
|
-
});
|
|
232
|
-
|
|
233
|
-
return _ref.apply(this, arguments);
|
|
234
|
-
};
|
|
235
|
-
}();
|
|
235
|
+
})();
|
|
236
|
+
};
|
|
236
237
|
var renderTriggerIcon = function() {
|
|
237
238
|
if (triggerIcon) return triggerIcon;
|
|
238
239
|
return effectiveActive ? /*#__PURE__*/ React.createElement(ChevronUp, null) : /*#__PURE__*/ React.createElement(ChevronDown, null);
|
|
@@ -44,7 +44,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
44
44
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
45
45
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
46
46
|
}
|
|
47
|
-
import {
|
|
47
|
+
import { LaptopMinimal, PanelLeftFill, PanelLeftFillFold, SquareArrowOutUpRight } from "@sofa-design/icons";
|
|
48
48
|
import { Button, ConfigProvider } from "antd";
|
|
49
49
|
import classNames from "classnames";
|
|
50
50
|
import { useMergedState } from "rc-util";
|
|
@@ -134,11 +134,13 @@ import { useLayoutHeaderStyle } from "./style";
|
|
|
134
134
|
className: classNames(prefixCls, hashId, className)
|
|
135
135
|
}, /*#__PURE__*/ React.createElement("div", {
|
|
136
136
|
className: classNames("".concat(prefixCls, "-left"), hashId)
|
|
137
|
-
}, leftCollapsible && /*#__PURE__*/ React.createElement(ActionIconBox, {
|
|
137
|
+
}, leftCollapsible && /*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement(ActionIconBox, {
|
|
138
138
|
onClick: handleLeftCollapse,
|
|
139
139
|
"aria-label": (locale === null || locale === void 0 ? void 0 : locale['chatFlow.collapseLeft']) || '折叠左侧边栏',
|
|
140
140
|
title: (locale === null || locale === void 0 ? void 0 : locale['chatFlow.collapseLeft']) || '折叠左侧边栏'
|
|
141
|
-
}, /*#__PURE__*/ React.createElement(
|
|
141
|
+
}, leftCollapsed ? /*#__PURE__*/ React.createElement(PanelLeftFill, null) : /*#__PURE__*/ React.createElement(PanelLeftFillFold, null)), /*#__PURE__*/ React.createElement("div", {
|
|
142
|
+
className: classNames("".concat(prefixCls, "-left-separator"), hashId)
|
|
143
|
+
})), /*#__PURE__*/ React.createElement("h1", {
|
|
142
144
|
className: classNames("".concat(prefixCls, "-left-title"), hashId)
|
|
143
145
|
}, title), leftExtra), /*#__PURE__*/ React.createElement("div", {
|
|
144
146
|
className: classNames("".concat(prefixCls, "-right"), hashId)
|
|
@@ -75,6 +75,11 @@ var genStyle = function(token) {
|
|
|
75
75
|
color: 'var(--color-gray-text-default)',
|
|
76
76
|
margin: 0,
|
|
77
77
|
lineHeight: '1.4'
|
|
78
|
+
},
|
|
79
|
+
'&-separator': {
|
|
80
|
+
width: '1px',
|
|
81
|
+
height: '24px',
|
|
82
|
+
backgroundColor: 'var(--color-gray-border-light)'
|
|
78
83
|
}
|
|
79
84
|
}), // 右侧区域样式
|
|
80
85
|
_define_property(_obj, "".concat(token.componentCls, "-right"), {
|
|
@@ -68,8 +68,8 @@ import { CreativeRecommendationEffect } from "../effects";
|
|
|
68
68
|
* ```
|
|
69
69
|
*
|
|
70
70
|
* @returns {React.ReactElement} 渲染的创意推荐闪动动画组件
|
|
71
|
-
*/ export var CreativeRecommendationLoading = function(
|
|
72
|
-
var props = _extends({},
|
|
71
|
+
*/ export var CreativeRecommendationLoading = function(_0) {
|
|
72
|
+
var ref = _object_destructuring_empty(_0), props = _extends({}, _0);
|
|
73
73
|
var lottieProps = _object_spread({
|
|
74
74
|
size: '1em'
|
|
75
75
|
}, props);
|
|
@@ -68,8 +68,8 @@ import { CreativeSparkLottie } from "../lotties";
|
|
|
68
68
|
* ```
|
|
69
69
|
*
|
|
70
70
|
* @returns {React.ReactElement} 渲染的创意生成中火花动画组件
|
|
71
|
-
*/ export var CreativeSparkLoading = function(
|
|
72
|
-
var props = _extends({},
|
|
71
|
+
*/ export var CreativeSparkLoading = function(_0) {
|
|
72
|
+
var ref = _object_destructuring_empty(_0), props = _extends({}, _0);
|
|
73
73
|
var lottieProps = _object_spread({
|
|
74
74
|
size: '1em'
|
|
75
75
|
}, props);
|
|
@@ -87,7 +87,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
87
87
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
88
88
|
}
|
|
89
89
|
function _ts_generator(thisArg, body) {
|
|
90
|
-
var f, y, t,
|
|
90
|
+
var f, y, t, _ = {
|
|
91
91
|
label: 0,
|
|
92
92
|
sent: function() {
|
|
93
93
|
if (t[0] & 1) throw t[1];
|
|
@@ -95,13 +95,17 @@ function _ts_generator(thisArg, body) {
|
|
|
95
95
|
},
|
|
96
96
|
trys: [],
|
|
97
97
|
ops: []
|
|
98
|
-
};
|
|
99
|
-
return g
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
},
|
|
104
|
-
|
|
98
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
|
|
99
|
+
return d(g, "next", {
|
|
100
|
+
value: verb(0)
|
|
101
|
+
}), d(g, "throw", {
|
|
102
|
+
value: verb(1)
|
|
103
|
+
}), d(g, "return", {
|
|
104
|
+
value: verb(2)
|
|
105
|
+
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
106
|
+
value: function() {
|
|
107
|
+
return this;
|
|
108
|
+
}
|
|
105
109
|
}), g;
|
|
106
110
|
function verb(n) {
|
|
107
111
|
return function(v) {
|
|
@@ -113,7 +117,7 @@ function _ts_generator(thisArg, body) {
|
|
|
113
117
|
}
|
|
114
118
|
function step(op) {
|
|
115
119
|
if (f) throw new TypeError("Generator is already executing.");
|
|
116
|
-
while(_)try {
|
|
120
|
+
while(g && (g = 0, op[0] && (_ = 0)), _)try {
|
|
117
121
|
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;
|
|
118
122
|
if (y = 0, t) op = [
|
|
119
123
|
op[0] & 2,
|
|
@@ -279,10 +283,11 @@ export var SuggestionList = function(param) {
|
|
|
279
283
|
width: 14,
|
|
280
284
|
height: 14
|
|
281
285
|
}))) : null, derivedItems === null || derivedItems === void 0 ? void 0 : derivedItems.map(function(item) {
|
|
286
|
+
var _ref, _ref1, _ref2;
|
|
282
287
|
var label = typeof (item === null || item === void 0 ? void 0 : item.text) === 'string' ? item === null || item === void 0 ? void 0 : item.text : undefined;
|
|
283
288
|
var isDisabled = submitting || (item === null || item === void 0 ? void 0 : item.disabled);
|
|
284
|
-
var handleClick =
|
|
285
|
-
|
|
289
|
+
var handleClick = function() {
|
|
290
|
+
return _async_to_generator(function() {
|
|
286
291
|
return _ts_generator(this, function(_state) {
|
|
287
292
|
switch(_state.label){
|
|
288
293
|
case 0:
|
|
@@ -336,14 +341,10 @@ export var SuggestionList = function(param) {
|
|
|
336
341
|
];
|
|
337
342
|
}
|
|
338
343
|
});
|
|
339
|
-
});
|
|
340
|
-
|
|
341
|
-
return _ref.apply(this, arguments);
|
|
342
|
-
};
|
|
343
|
-
}();
|
|
344
|
-
var _item_key, _item_tooltip, _ref;
|
|
344
|
+
})();
|
|
345
|
+
};
|
|
345
346
|
return /*#__PURE__*/ React.createElement("div", {
|
|
346
|
-
key: (
|
|
347
|
+
key: (_ref = item === null || item === void 0 ? void 0 : item.key) !== null && _ref !== void 0 ? _ref : label,
|
|
347
348
|
role: "button",
|
|
348
349
|
className: classNames("".concat(prefixCls, "-suggestion"), hashId, _define_property({}, "".concat(prefixCls, "-suggestion-disabled"), isDisabled)),
|
|
349
350
|
onClick: handleClick,
|
|
@@ -351,7 +352,7 @@ export var SuggestionList = function(param) {
|
|
|
351
352
|
}, (item === null || item === void 0 ? void 0 : item.icon) ? /*#__PURE__*/ React.createElement("span", {
|
|
352
353
|
className: classNames("".concat(prefixCls, "-icon"), hashId)
|
|
353
354
|
}, item === null || item === void 0 ? void 0 : item.icon) : null, /*#__PURE__*/ React.createElement(OverflowTooltip, {
|
|
354
|
-
title: (
|
|
355
|
+
title: (_ref1 = (_ref2 = item === null || item === void 0 ? void 0 : item.tooltip) !== null && _ref2 !== void 0 ? _ref2 : label) !== null && _ref1 !== void 0 ? _ref1 : '',
|
|
355
356
|
prefixCls: prefixCls,
|
|
356
357
|
hashId: hashId,
|
|
357
358
|
forceShow: !!(item === null || item === void 0 ? void 0 : item.tooltip)
|
|
@@ -66,12 +66,22 @@ function _object_spread_props(target, source) {
|
|
|
66
66
|
}
|
|
67
67
|
function _object_without_properties(source, excluded) {
|
|
68
68
|
if (source == null) return {};
|
|
69
|
-
var target =
|
|
70
|
-
|
|
69
|
+
var target = {}, sourceKeys, key, i;
|
|
70
|
+
if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
|
|
71
|
+
sourceKeys = Reflect.ownKeys(source);
|
|
72
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
73
|
+
key = sourceKeys[i];
|
|
74
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
75
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
76
|
+
target[key] = source[key];
|
|
77
|
+
}
|
|
78
|
+
return target;
|
|
79
|
+
}
|
|
80
|
+
target = _object_without_properties_loose(source, excluded);
|
|
71
81
|
if (Object.getOwnPropertySymbols) {
|
|
72
|
-
|
|
73
|
-
for(i = 0; i <
|
|
74
|
-
key =
|
|
82
|
+
sourceKeys = Object.getOwnPropertySymbols(source);
|
|
83
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
84
|
+
key = sourceKeys[i];
|
|
75
85
|
if (excluded.indexOf(key) >= 0) continue;
|
|
76
86
|
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
77
87
|
target[key] = source[key];
|
|
@@ -81,12 +91,11 @@ function _object_without_properties(source, excluded) {
|
|
|
81
91
|
}
|
|
82
92
|
function _object_without_properties_loose(source, excluded) {
|
|
83
93
|
if (source == null) return {};
|
|
84
|
-
var target = {};
|
|
85
|
-
var sourceKeys = Object.keys(source);
|
|
86
|
-
var key, i;
|
|
94
|
+
var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
|
|
87
95
|
for(i = 0; i < sourceKeys.length; i++){
|
|
88
96
|
key = sourceKeys[i];
|
|
89
97
|
if (excluded.indexOf(key) >= 0) continue;
|
|
98
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
90
99
|
target[key] = source[key];
|
|
91
100
|
}
|
|
92
101
|
return target;
|
|
@@ -438,8 +447,8 @@ export var resolveSegments = function(children, by) {
|
|
|
438
447
|
});
|
|
439
448
|
return result;
|
|
440
449
|
};
|
|
441
|
-
var TextAnimateBase = function(
|
|
442
|
-
var children =
|
|
450
|
+
var TextAnimateBase = function(_0) {
|
|
451
|
+
var children = _0.children, _0_delay = _0.delay, delay = _0_delay === void 0 ? 0 : _0_delay, _0_duration = _0.duration, duration = _0_duration === void 0 ? 0.3 : _0_duration, variants = _0.variants, className = _0.className, segmentClassName = _0.segmentClassName, tmp = _0.as, Component = tmp === void 0 ? 'p' : tmp, _0_startOnView = _0.startOnView, startOnView = _0_startOnView === void 0 ? true : _0_startOnView, _0_once = _0.once, once = _0_once === void 0 ? false : _0_once, _0_by = _0.by, by = _0_by === void 0 ? 'word' : _0_by, _0_animation = _0.animation, animation = _0_animation === void 0 ? 'fadeIn' : _0_animation, _0_accessible = _0.accessible, accessible = _0_accessible === void 0 ? true : _0_accessible, props = _object_without_properties(_0, [
|
|
443
452
|
"children",
|
|
444
453
|
"delay",
|
|
445
454
|
"duration",
|
|
@@ -63,12 +63,22 @@ function _object_spread(target) {
|
|
|
63
63
|
}
|
|
64
64
|
function _object_without_properties(source, excluded) {
|
|
65
65
|
if (source == null) return {};
|
|
66
|
-
var target =
|
|
67
|
-
|
|
66
|
+
var target = {}, sourceKeys, key, i;
|
|
67
|
+
if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
|
|
68
|
+
sourceKeys = Reflect.ownKeys(source);
|
|
69
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
70
|
+
key = sourceKeys[i];
|
|
71
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
72
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
73
|
+
target[key] = source[key];
|
|
74
|
+
}
|
|
75
|
+
return target;
|
|
76
|
+
}
|
|
77
|
+
target = _object_without_properties_loose(source, excluded);
|
|
68
78
|
if (Object.getOwnPropertySymbols) {
|
|
69
|
-
|
|
70
|
-
for(i = 0; i <
|
|
71
|
-
key =
|
|
79
|
+
sourceKeys = Object.getOwnPropertySymbols(source);
|
|
80
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
81
|
+
key = sourceKeys[i];
|
|
72
82
|
if (excluded.indexOf(key) >= 0) continue;
|
|
73
83
|
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
74
84
|
target[key] = source[key];
|
|
@@ -78,12 +88,11 @@ function _object_without_properties(source, excluded) {
|
|
|
78
88
|
}
|
|
79
89
|
function _object_without_properties_loose(source, excluded) {
|
|
80
90
|
if (source == null) return {};
|
|
81
|
-
var target = {};
|
|
82
|
-
var sourceKeys = Object.keys(source);
|
|
83
|
-
var key, i;
|
|
91
|
+
var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
|
|
84
92
|
for(i = 0; i < sourceKeys.length; i++){
|
|
85
93
|
key = sourceKeys[i];
|
|
86
94
|
if (excluded.indexOf(key) >= 0) continue;
|
|
95
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
87
96
|
target[key] = source[key];
|
|
88
97
|
}
|
|
89
98
|
return target;
|
|
@@ -106,8 +115,8 @@ import { isString } from "lodash";
|
|
|
106
115
|
import React, { useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
107
116
|
import { resolveSegments } from "../TextAnimate";
|
|
108
117
|
import { useTypingAnimationStyle } from "./style";
|
|
109
|
-
export function TypingAnimation(
|
|
110
|
-
var children =
|
|
118
|
+
export function TypingAnimation(_0) {
|
|
119
|
+
var children = _0.children, words = _0.words, className = _0.className, _0_duration = _0.duration, duration = _0_duration === void 0 ? 100 : _0_duration, typeSpeed = _0.typeSpeed, deleteSpeed = _0.deleteSpeed, _0_delay = _0.delay, delay = _0_delay === void 0 ? 0 : _0_delay, _0_pauseDelay = _0.pauseDelay, pauseDelay = _0_pauseDelay === void 0 ? 1000 : _0_pauseDelay, _0_loop = _0.loop, loop = _0_loop === void 0 ? false : _0_loop, tmp = _0.as, Component = tmp === void 0 ? 'span' : tmp, _0_startOnView = _0.startOnView, startOnView = _0_startOnView === void 0 ? true : _0_startOnView, _0_showCursor = _0.showCursor, showCursor = _0_showCursor === void 0 ? true : _0_showCursor, _0_blinkCursor = _0.blinkCursor, blinkCursor = _0_blinkCursor === void 0 ? true : _0_blinkCursor, _0_cursorStyle = _0.cursorStyle, cursorStyle = _0_cursorStyle === void 0 ? 'line' : _0_cursorStyle, props = _object_without_properties(_0, [
|
|
111
120
|
"children",
|
|
112
121
|
"words",
|
|
113
122
|
"className",
|
|
@@ -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;
|
|
@@ -127,10 +136,10 @@ import { Player } from "@galacean/effects";
|
|
|
127
136
|
import React, { useEffect, useLayoutEffect, useRef, useState } from "react";
|
|
128
137
|
import { useLatest } from "react-use";
|
|
129
138
|
import { useRefFunction } from "../../Hooks/useRefFunction";
|
|
130
|
-
function EffectPlayer(
|
|
131
|
-
var sceneUrl =
|
|
139
|
+
function EffectPlayer(_0) {
|
|
140
|
+
var sceneUrl = _0.sceneUrl, downgradeImage = _0.downgradeImage, _0_autoplay = _0.autoplay, autoplay = _0_autoplay === void 0 ? true : _0_autoplay, _0_size = _0.// TODO: 添加禁止循环播放功能
|
|
132
141
|
// loop = true,
|
|
133
|
-
size, size =
|
|
142
|
+
size, size = _0_size === void 0 ? '1em' : _0_size, style = _0.style, attrs = _object_without_properties(_0, [
|
|
134
143
|
"sceneUrl",
|
|
135
144
|
"downgradeImage",
|
|
136
145
|
"autoplay",
|
|
@@ -52,12 +52,22 @@ function _object_spread_props(target, source) {
|
|
|
52
52
|
}
|
|
53
53
|
function _object_without_properties(source, excluded) {
|
|
54
54
|
if (source == null) return {};
|
|
55
|
-
var target =
|
|
56
|
-
|
|
55
|
+
var target = {}, sourceKeys, key, i;
|
|
56
|
+
if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
|
|
57
|
+
sourceKeys = Reflect.ownKeys(source);
|
|
58
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
59
|
+
key = sourceKeys[i];
|
|
60
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
61
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
62
|
+
target[key] = source[key];
|
|
63
|
+
}
|
|
64
|
+
return target;
|
|
65
|
+
}
|
|
66
|
+
target = _object_without_properties_loose(source, excluded);
|
|
57
67
|
if (Object.getOwnPropertySymbols) {
|
|
58
|
-
|
|
59
|
-
for(i = 0; i <
|
|
60
|
-
key =
|
|
68
|
+
sourceKeys = Object.getOwnPropertySymbols(source);
|
|
69
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
70
|
+
key = sourceKeys[i];
|
|
61
71
|
if (excluded.indexOf(key) >= 0) continue;
|
|
62
72
|
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
63
73
|
target[key] = source[key];
|
|
@@ -67,12 +77,11 @@ function _object_without_properties(source, excluded) {
|
|
|
67
77
|
}
|
|
68
78
|
function _object_without_properties_loose(source, excluded) {
|
|
69
79
|
if (source == null) return {};
|
|
70
|
-
var target = {};
|
|
71
|
-
var sourceKeys = Object.keys(source);
|
|
72
|
-
var key, i;
|
|
80
|
+
var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
|
|
73
81
|
for(i = 0; i < sourceKeys.length; i++){
|
|
74
82
|
key = sourceKeys[i];
|
|
75
83
|
if (excluded.indexOf(key) >= 0) continue;
|
|
84
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
76
85
|
target[key] = source[key];
|
|
77
86
|
}
|
|
78
87
|
return target;
|
|
@@ -109,8 +118,8 @@ import React from "react";
|
|
|
109
118
|
* - 内置 CSS 动画,自动旋转
|
|
110
119
|
* - 使用 24x24 的 viewBox
|
|
111
120
|
* - 包含背景圆环和前景进度条
|
|
112
|
-
*/ export var LoadingSpinnerIcon = function(
|
|
113
|
-
var
|
|
121
|
+
*/ export var LoadingSpinnerIcon = function(_0) {
|
|
122
|
+
var _0_size = _0.size, size = _0_size === void 0 ? 24 : _0_size, props = _object_without_properties(_0, [
|
|
114
123
|
"size"
|
|
115
124
|
]);
|
|
116
125
|
return /*#__PURE__*/ React.createElement("svg", _object_spread_props(_object_spread({
|
|
@@ -74,7 +74,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
74
74
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
75
75
|
}
|
|
76
76
|
function _ts_generator(thisArg, body) {
|
|
77
|
-
var f, y, t,
|
|
77
|
+
var f, y, t, _ = {
|
|
78
78
|
label: 0,
|
|
79
79
|
sent: function() {
|
|
80
80
|
if (t[0] & 1) throw t[1];
|
|
@@ -82,13 +82,17 @@ function _ts_generator(thisArg, body) {
|
|
|
82
82
|
},
|
|
83
83
|
trys: [],
|
|
84
84
|
ops: []
|
|
85
|
-
};
|
|
86
|
-
return g
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
},
|
|
91
|
-
|
|
85
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
|
|
86
|
+
return d(g, "next", {
|
|
87
|
+
value: verb(0)
|
|
88
|
+
}), d(g, "throw", {
|
|
89
|
+
value: verb(1)
|
|
90
|
+
}), d(g, "return", {
|
|
91
|
+
value: verb(2)
|
|
92
|
+
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
93
|
+
value: function() {
|
|
94
|
+
return this;
|
|
95
|
+
}
|
|
92
96
|
}), g;
|
|
93
97
|
function verb(n) {
|
|
94
98
|
return function(v) {
|
|
@@ -100,7 +104,7 @@ function _ts_generator(thisArg, body) {
|
|
|
100
104
|
}
|
|
101
105
|
function step(op) {
|
|
102
106
|
if (f) throw new TypeError("Generator is already executing.");
|
|
103
|
-
while(_)try {
|
|
107
|
+
while(g && (g = 0, op[0] && (_ = 0)), _)try {
|
|
104
108
|
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;
|
|
105
109
|
if (y = 0, t) op = [
|
|
106
110
|
op[0] & 2,
|
|
@@ -258,8 +262,8 @@ import { ActionIconBox } from "../../index";
|
|
|
258
262
|
size: 4
|
|
259
263
|
}, ((_props_agent2 = props.agent) === null || _props_agent2 === void 0 ? void 0 : _props_agent2.enabled) && props.item && (props === null || props === void 0 ? void 0 : (_props_agent3 = props.agent) === null || _props_agent3 === void 0 ? void 0 : _props_agent3.onFavorite) && /*#__PURE__*/ React.createElement(ActionIconBox, {
|
|
260
264
|
loading: favoriteLoading,
|
|
261
|
-
onClick:
|
|
262
|
-
|
|
265
|
+
onClick: function(e) {
|
|
266
|
+
return _async_to_generator(function() {
|
|
263
267
|
var _props_onFavorite, error;
|
|
264
268
|
return _ts_generator(this, function(_state) {
|
|
265
269
|
switch(_state.label){
|
|
@@ -303,11 +307,8 @@ import { ActionIconBox } from "../../index";
|
|
|
303
307
|
];
|
|
304
308
|
}
|
|
305
309
|
});
|
|
306
|
-
});
|
|
307
|
-
|
|
308
|
-
return _ref.apply(this, arguments);
|
|
309
|
-
};
|
|
310
|
-
}(),
|
|
310
|
+
})();
|
|
311
|
+
},
|
|
311
312
|
title: isFavorite ? (i18nLocale === null || i18nLocale === void 0 ? void 0 : i18nLocale['chat.history.favorited']) || '已收藏' : (i18nLocale === null || i18nLocale === void 0 ? void 0 : i18nLocale['chat.history.favorite']) || '收藏',
|
|
312
313
|
style: {
|
|
313
314
|
width: 20,
|
|
@@ -337,8 +338,8 @@ import { ActionIconBox } from "../../index";
|
|
|
337
338
|
},
|
|
338
339
|
placement: "left",
|
|
339
340
|
title: (i18nLocale === null || i18nLocale === void 0 ? void 0 : i18nLocale['chat.history.delete.popconfirm']) || '确定删除该消息吗?',
|
|
340
|
-
onConfirm:
|
|
341
|
-
|
|
341
|
+
onConfirm: function(e) {
|
|
342
|
+
return _async_to_generator(function() {
|
|
342
343
|
var _props_onDeleteItem, error;
|
|
343
344
|
return _ts_generator(this, function(_state) {
|
|
344
345
|
switch(_state.label){
|
|
@@ -381,11 +382,8 @@ import { ActionIconBox } from "../../index";
|
|
|
381
382
|
];
|
|
382
383
|
}
|
|
383
384
|
});
|
|
384
|
-
});
|
|
385
|
-
|
|
386
|
-
return _ref.apply(this, arguments);
|
|
387
|
-
};
|
|
388
|
-
}(),
|
|
385
|
+
})();
|
|
386
|
+
},
|
|
389
387
|
onCancel: function(e) {
|
|
390
388
|
e === null || e === void 0 ? void 0 : e.stopPropagation();
|
|
391
389
|
e === null || e === void 0 ? void 0 : e.preventDefault();
|