@ant-design/agentic-ui 2.29.19 → 2.29.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AILabel/index.js +2 -2
- package/dist/AILabel/style.js +1 -1
- package/dist/AgentRunBar/Robot.js +1 -1
- package/dist/AgentRunBar/index.js +2 -2
- package/dist/AgentRunBar/style.js +1 -1
- package/dist/AgenticLayout/index.js +2 -2
- package/dist/AgenticLayout/style.js +2 -2
- package/dist/AnswerAlert/components/ErrorIcon.js +1 -1
- package/dist/AnswerAlert/components/InfoIcon.js +1 -1
- package/dist/AnswerAlert/components/SuccessIcon.js +1 -1
- package/dist/AnswerAlert/components/WarningIcon.js +1 -1
- package/dist/AnswerAlert/index.js +1 -1
- package/dist/AnswerAlert/style.js +1 -1
- package/dist/BackTo/BackTop.js +1 -1
- package/dist/BackTo/ScrollVisibleButton.js +4 -4
- package/dist/BackTo/hooks/useScrollVisible.js +1 -1
- package/dist/BackTo/icons/BottomIcon.js +1 -1
- package/dist/BackTo/icons/TopIcon.js +1 -1
- package/dist/BackTo/style.js +1 -1
- package/dist/Bubble/AIBubble.js +5 -5
- package/dist/Bubble/Avatar/index.js +1 -1
- package/dist/Bubble/Avatar/isEmoji.js +1 -1
- package/dist/Bubble/Bubble.js +1 -1
- package/dist/Bubble/BubbleBeforeNode.js +3 -3
- package/dist/Bubble/FileView.js +6 -6
- package/dist/Bubble/List/PureBubbleList.js +3 -3
- package/dist/Bubble/List/index.js +3 -3
- package/dist/Bubble/List/style.js +1 -1
- package/dist/Bubble/MessagesContent/BubbleContext.js +2 -2
- package/dist/Bubble/MessagesContent/BubbleExtra.js +9 -11
- package/dist/Bubble/MessagesContent/CopyButton/index.js +2 -2
- package/dist/Bubble/MessagesContent/DocInfo.js +7 -7
- package/dist/Bubble/MessagesContent/EXCEPTION.js +1 -1
- package/dist/Bubble/MessagesContent/MarkdownPreview.js +1 -1
- package/dist/Bubble/MessagesContent/VoiceButton/index.js +8 -8
- package/dist/Bubble/MessagesContent/VoiceButton/style.js +1 -1
- package/dist/Bubble/MessagesContent/docInfoStyle.js +1 -1
- package/dist/Bubble/MessagesContent/icons.js +2 -2
- package/dist/Bubble/MessagesContent/index.js +10 -10
- package/dist/Bubble/MessagesContent/style.js +15 -8
- package/dist/Bubble/PureBubble.js +1 -1
- package/dist/Bubble/Title.js +4 -4
- package/dist/Bubble/UserBubble.js +4 -4
- package/dist/Bubble/schema-editor/SchemaEditorBridgeManager.js +3 -3
- package/dist/Bubble/schema-editor/useSchemaEditorBridge.js +1 -1
- package/dist/Bubble/style.js +1 -1
- package/dist/ChatBootPage/ButtonTab.js +1 -1
- package/dist/ChatBootPage/ButtonTabGroup.js +2 -2
- package/dist/ChatBootPage/ButtonTabGroupStyle.js +2 -2
- package/dist/ChatBootPage/ButtonTabStyle.js +2 -2
- package/dist/ChatBootPage/CaseReply.js +2 -2
- package/dist/ChatBootPage/CaseReplyStyle.js +2 -2
- package/dist/ChatBootPage/Title.js +1 -1
- package/dist/ChatBootPage/style.js +2 -2
- package/dist/ChatLayout/components/FooterBackground/index.js +1 -1
- package/dist/ChatLayout/index.js +1 -1
- package/dist/ChatLayout/style.js +1 -1
- package/dist/Components/ActionIconBox/index.js +12 -12
- package/dist/Components/ActionIconBox/style.js +1 -1
- package/dist/Components/ActionItemBox/ActionItemBox.js +1 -1
- package/dist/Components/ActionItemBox/style.js +1 -1
- package/dist/Components/Button/IconButton/index.js +1 -1
- package/dist/Components/Button/IconButton/style.js +1 -1
- package/dist/Components/Button/SwitchButton/index.js +3 -3
- package/dist/Components/Button/SwitchButton/style.js +1 -1
- package/dist/Components/Button/ToggleButton/index.js +1 -1
- package/dist/Components/Button/ToggleButton/style.js +1 -1
- package/dist/Components/GradientText/style.js +2 -2
- package/dist/Components/ImageList.js +2 -2
- package/dist/Components/LayoutHeader/index.js +4 -4
- package/dist/Components/LayoutHeader/style.js +2 -2
- package/dist/Components/Loading/CreativeRecommendationLoading.js +1 -1
- package/dist/Components/Loading/CreativeSparkLoading.js +1 -1
- package/dist/Components/Loading/Loading.js +1 -1
- package/dist/Components/Loading/style.js +1 -1
- package/dist/Components/Robot/index.js +1 -1
- package/dist/Components/Robot/lotties/BlowingWindLottie/index.js +1 -1
- package/dist/Components/Robot/lotties/BouncingLottie/index.js +1 -1
- package/dist/Components/Robot/lotties/DazingLottie/index.js +1 -1
- package/dist/Components/Robot/lotties/PeekLottie/index.js +1 -1
- package/dist/Components/Robot/lotties/ThinkingLottie/index.js +1 -1
- package/dist/Components/SuggestionList/index.js +4 -4
- package/dist/Components/SuggestionList/style.js +1 -1
- package/dist/Components/TextAnimate/index.js +2 -2
- package/dist/Components/TextAnimate/style.js +2 -2
- package/dist/Components/TypingAnimation/index.js +1 -1
- package/dist/Components/TypingAnimation/style.js +2 -2
- package/dist/Components/VisualList/index.js +3 -3
- package/dist/Components/VisualList/style.js +1 -1
- package/dist/Components/effects/CreativeRecommendationEffect/index.js +1 -1
- package/dist/Components/effects/LoadingEffect/index.js +1 -1
- package/dist/Components/icons/LoadingSpinnerIcon.js +1 -1
- package/dist/Components/lotties/CreativeSparkLottie/index.js +1 -1
- package/dist/Components/lotties/DazingLottie/index.js +1 -1
- package/dist/Components/lotties/LoadingLottie/index.js +1 -1
- package/dist/Components/lotties/TextLoading/index.js +1 -1
- package/dist/Components/lotties/TextLoading/style.js +1 -1
- package/dist/Components/lotties/ThinkingLottie/index.js +1 -1
- package/dist/Components/lotties/bubble-actions/Abstract/index.js +1 -1
- package/dist/Components/lotties/bubble-actions/Abstract/style.js +1 -1
- package/dist/Components/lotties/bubble-actions/Copy/index.js +1 -1
- package/dist/Components/lotties/bubble-actions/Dislike/index.js +1 -1
- package/dist/Components/lotties/bubble-actions/Like/index.js +1 -1
- package/dist/Components/lotties/bubble-actions/More/index.js +1 -1
- package/dist/Components/lotties/bubble-actions/Play/index.js +1 -1
- package/dist/Components/lotties/bubble-actions/Quote/index.js +1 -1
- package/dist/Components/lotties/bubble-actions/Refresh/index.js +1 -1
- package/dist/Components/lotties/bubble-actions/Share/index.js +1 -1
- package/dist/History/components/HistoryActionsBox.js +9 -9
- package/dist/History/components/HistoryEmpty.js +1 -1
- package/dist/History/components/HistoryEmptyIcon.js +1 -1
- package/dist/History/components/HistoryItem.js +4 -4
- package/dist/History/components/HistoryList.js +2 -2
- package/dist/History/components/LoadMoreComponent.js +2 -2
- package/dist/History/components/NewChatComponent.js +1 -1
- package/dist/History/components/NewChatComponent.style.js +2 -2
- package/dist/History/components/SearchComponent.js +6 -6
- package/dist/History/hooks/useHistory.js +1 -1
- package/dist/History/index.js +3 -3
- package/dist/History/menu.js +2 -2
- package/dist/History/style.js +1 -1
- package/dist/History/utils/index.js +2 -2
- package/dist/Hooks/useAutoScroll.js +3 -3
- package/dist/Hooks/useClickAway.js +2 -2
- package/dist/Hooks/useCopied.js +1 -1
- package/dist/Hooks/useElementSize.js +1 -1
- package/dist/Hooks/useIntersectionOnce.js +1 -1
- package/dist/Hooks/useRefFunction/index.js +1 -1
- package/dist/Hooks/useSpeechSynthesis.js +1 -1
- package/dist/Hooks/useStyle/index.js +2 -2
- package/dist/I18n/index.js +1 -1
- package/dist/Icons/animated/VoicePlayLottie/index.js +1 -1
- package/dist/Icons/animated/VoicingLottie/index.js +1 -1
- package/dist/MarkdownEditor/BaseMarkdownEditor.js +7 -7
- package/dist/MarkdownEditor/editor/Editor.js +18 -18
- package/dist/MarkdownEditor/editor/components/CommentList/index.js +6 -6
- package/dist/MarkdownEditor/editor/components/CommentList/style.js +1 -1
- package/dist/MarkdownEditor/editor/components/ContributorAvatar/index.js +2 -2
- package/dist/MarkdownEditor/editor/components/ContributorAvatar/style.js +1 -1
- package/dist/MarkdownEditor/editor/components/LazyElement/index.js +1 -1
- package/dist/MarkdownEditor/editor/components/LazyElement/style.js +2 -2
- package/dist/MarkdownEditor/editor/components/MediaErrorLink.js +2 -2
- package/dist/MarkdownEditor/editor/components/fntTag/index.js +1 -1
- package/dist/MarkdownEditor/editor/components/fntTag/style.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Blockquote/index.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Break/index.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Card/index.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Code/index.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Comment/index.js +3 -3
- package/dist/MarkdownEditor/editor/elements/CommentLeaf/index.js +2 -2
- package/dist/MarkdownEditor/editor/elements/FncLeaf/index.js +1 -1
- package/dist/MarkdownEditor/editor/elements/FootnoteDefinition/index.js +2 -2
- package/dist/MarkdownEditor/editor/elements/FootnoteReference/index.js +2 -2
- package/dist/MarkdownEditor/editor/elements/Head/index.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Hr/index.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Image/index.js +17 -17
- package/dist/MarkdownEditor/editor/elements/InlineKatex/index.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Katex/index.js +1 -1
- package/dist/MarkdownEditor/editor/elements/LinkCard/ReadonlyLinkCard.js +2 -2
- package/dist/MarkdownEditor/editor/elements/LinkCard/index.js +4 -4
- package/dist/MarkdownEditor/editor/elements/List/List.js +2 -2
- package/dist/MarkdownEditor/editor/elements/List/ListItem.js +9 -9
- package/dist/MarkdownEditor/editor/elements/Media/ReadonlyMedia.js +2 -2
- package/dist/MarkdownEditor/editor/elements/Media/index.js +15 -15
- package/dist/MarkdownEditor/editor/elements/Mermaid/index.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Paragraph/index.js +2 -2
- package/dist/MarkdownEditor/editor/elements/Schema/index.js +4 -4
- package/dist/MarkdownEditor/editor/elements/Table/ReadonlyTableComponent.js +5 -5
- package/dist/MarkdownEditor/editor/elements/Table/SimpleTable.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Table/Table.js +5 -5
- package/dist/MarkdownEditor/editor/elements/Table/TableCellIndex/index.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Table/TableCellIndexSpacer/index.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Table/TableContext.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Table/TableRowIndex/index.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Table/Td/index.js +2 -2
- package/dist/MarkdownEditor/editor/elements/Table/index.js +5 -5
- package/dist/MarkdownEditor/editor/elements/Table/useScrollShadow.js +2 -2
- package/dist/MarkdownEditor/editor/elements/TagPopup/index.js +18 -18
- package/dist/MarkdownEditor/editor/elements/index.js +9 -9
- package/dist/MarkdownEditor/editor/parser/parse/applyContextPropsAndConfig.js +2 -2
- package/dist/MarkdownEditor/editor/parser/parse/parseBlockElements.js +9 -9
- package/dist/MarkdownEditor/editor/parser/parse/parseCode.js +5 -5
- package/dist/MarkdownEditor/editor/parser/parse/parseElements.js +3 -3
- package/dist/MarkdownEditor/editor/parser/parse/parseEmptyLines.js +1 -1
- package/dist/MarkdownEditor/editor/parser/parse/parseFootnote.js +1 -1
- package/dist/MarkdownEditor/editor/parser/parse/parseHtml.js +18 -18
- package/dist/MarkdownEditor/editor/parser/parse/parseMath.js +3 -3
- package/dist/MarkdownEditor/editor/parser/parse/parseMedia.js +3 -3
- package/dist/MarkdownEditor/editor/parser/parse/parseTable.js +10 -10
- package/dist/MarkdownEditor/editor/parser/parse/parseText.js +5 -5
- package/dist/MarkdownEditor/editor/parser/parserMarkdownToSlateNode.js +24 -24
- package/dist/MarkdownEditor/editor/parser/parserMdToSchema.js +2 -2
- package/dist/MarkdownEditor/editor/parser/parserSlateNodeToMarkdown.js +41 -41
- package/dist/MarkdownEditor/editor/plugins/catchError.js +2 -2
- package/dist/MarkdownEditor/editor/plugins/elements.js +21 -21
- package/dist/MarkdownEditor/editor/plugins/handlePaste.js +9 -9
- package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/arrow.js +4 -4
- package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/backspace.js +1 -1
- package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/enter.js +1 -1
- package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/match.js +1 -1
- package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/tab.js +4 -4
- package/dist/MarkdownEditor/editor/plugins/insertParsedHtmlNodes.js +44 -44
- package/dist/MarkdownEditor/editor/plugins/parseMarkdownToNodesAndInsert.js +1 -1
- package/dist/MarkdownEditor/editor/plugins/useHighlight.js +5 -5
- package/dist/MarkdownEditor/editor/plugins/useKeyboard.js +5 -5
- package/dist/MarkdownEditor/editor/plugins/useOnchange.js +1 -1
- package/dist/MarkdownEditor/editor/plugins/utils.js +2 -2
- package/dist/MarkdownEditor/editor/plugins/withCardPlugin.js +2 -2
- package/dist/MarkdownEditor/editor/plugins/withCodeTagPlugin.js +2 -2
- package/dist/MarkdownEditor/editor/plugins/withInlineNodes.js +1 -1
- package/dist/MarkdownEditor/editor/plugins/withLinkAndMediaPlugin.js +2 -2
- package/dist/MarkdownEditor/editor/plugins/withListsPlugin.js +3 -3
- package/dist/MarkdownEditor/editor/plugins/withMarkdown.js +1 -1
- package/dist/MarkdownEditor/editor/plugins/withSchemaPlugin.js +2 -2
- package/dist/MarkdownEditor/editor/plugins/withVoidNodes.js +1 -1
- package/dist/MarkdownEditor/editor/store.js +6 -6
- package/dist/MarkdownEditor/editor/style.js +2 -2
- package/dist/MarkdownEditor/editor/tools/DragHandle.js +2 -2
- package/dist/MarkdownEditor/editor/tools/InsertAutocomplete.js +22 -22
- package/dist/MarkdownEditor/editor/tools/InsertLink.js +7 -7
- package/dist/MarkdownEditor/editor/tools/Leading.js +8 -8
- package/dist/MarkdownEditor/editor/tools/ToolBar/BaseBar.js +6 -6
- package/dist/MarkdownEditor/editor/tools/ToolBar/FloatBar.js +5 -5
- package/dist/MarkdownEditor/editor/tools/ToolBar/ReadonlyBaseBar.js +7 -7
- package/dist/MarkdownEditor/editor/tools/ToolBar/ToolBar.js +2 -2
- package/dist/MarkdownEditor/editor/tools/ToolBar/components/ColorPickerButton.js +1 -1
- package/dist/MarkdownEditor/editor/tools/ToolBar/components/FormattingTools.js +1 -1
- package/dist/MarkdownEditor/editor/tools/ToolBar/components/HeadingDropdown.js +1 -1
- package/dist/MarkdownEditor/editor/tools/ToolBar/config/toolsConfig.js +9 -9
- package/dist/MarkdownEditor/editor/tools/ToolBar/floatBarStyle.js +1 -1
- package/dist/MarkdownEditor/editor/tools/ToolBar/hooks/useToolBarLogic.js +4 -4
- package/dist/MarkdownEditor/editor/tools/ToolBar/toolBarStyle.js +1 -1
- package/dist/MarkdownEditor/editor/tools/insertAutocompleteStyle.js +1 -1
- package/dist/MarkdownEditor/editor/utils/ace.js +3 -3
- package/dist/MarkdownEditor/editor/utils/docx/docxDeserializer.js +2 -2
- package/dist/MarkdownEditor/editor/utils/docx/module.js +9 -9
- package/dist/MarkdownEditor/editor/utils/docx/utils.js +5 -5
- package/dist/MarkdownEditor/editor/utils/dom.js +5 -5
- package/dist/MarkdownEditor/editor/utils/editorCommands.js +5 -5
- package/dist/MarkdownEditor/editor/utils/editorUtils.js +17 -17
- package/dist/MarkdownEditor/editor/utils/index.js +9 -9
- package/dist/MarkdownEditor/editor/utils/keyboard.js +4 -4
- package/dist/MarkdownEditor/editor/utils/markdownToHtml.js +6 -6
- package/dist/MarkdownEditor/editor/utils/media.js +2 -2
- package/dist/MarkdownEditor/editor/utils/path.js +3 -3
- package/dist/MarkdownEditor/editor/utils/performanceMonitor.js +2 -2
- package/dist/MarkdownEditor/editor/utils/useLocalState.js +1 -1
- package/dist/MarkdownEditor/hooks/editor.js +2 -2
- package/dist/MarkdownEditor/hooks/subscribe.js +1 -1
- package/dist/MarkdownEditor/index.js +1 -1
- package/dist/MarkdownEditor/style.js +1 -1
- package/dist/MarkdownEditor/utils/exportHtml.js +2 -2
- package/dist/MarkdownEditor/utils/native-table/native-table-editor.js +4 -4
- package/dist/MarkdownInputField/AttachmentButton/AttachmentButtonPopover.js +8 -8
- package/dist/MarkdownInputField/AttachmentButton/AttachmentFileList/AttachmentFileIcon.js +1 -1
- package/dist/MarkdownInputField/AttachmentButton/AttachmentFileList/AttachmentFileListItem.js +10 -10
- package/dist/MarkdownInputField/AttachmentButton/AttachmentFileList/index.js +10 -10
- package/dist/MarkdownInputField/AttachmentButton/AttachmentFileList/style.js +1 -1
- package/dist/MarkdownInputField/AttachmentButton/index.js +18 -18
- package/dist/MarkdownInputField/AttachmentButton/style.js +1 -1
- package/dist/MarkdownInputField/AttachmentButton/utils.js +8 -8
- package/dist/MarkdownInputField/BeforeToolContainer/BeforeToolContainer.js +4 -4
- package/dist/MarkdownInputField/BorderBeamAnimation.js +1 -1
- package/dist/MarkdownInputField/Enlargement/index.js +1 -1
- package/dist/MarkdownInputField/FileMapView/FileMapViewItem.js +8 -8
- package/dist/MarkdownInputField/FileMapView/index.js +2 -2
- package/dist/MarkdownInputField/FileMapView/style.js +1 -1
- package/dist/MarkdownInputField/FilePaste/index.js +2 -2
- package/dist/MarkdownInputField/FileUploadManager/index.js +2 -2
- package/dist/MarkdownInputField/MarkdownInputField.js +10 -10
- package/dist/MarkdownInputField/QuickActions/index.js +5 -5
- package/dist/MarkdownInputField/RefinePromptButton/index.js +3 -3
- package/dist/MarkdownInputField/RefinePromptButton/style.js +1 -1
- package/dist/MarkdownInputField/SendActions/index.js +6 -6
- package/dist/MarkdownInputField/SendButton/index.js +3 -3
- package/dist/MarkdownInputField/SendButton/style.js +1 -1
- package/dist/MarkdownInputField/SkillModeBar/index.js +3 -3
- package/dist/MarkdownInputField/SkillModeBar/style.js +1 -1
- package/dist/MarkdownInputField/Suggestion/index.js +8 -8
- package/dist/MarkdownInputField/TopOperatingArea/index.js +2 -2
- package/dist/MarkdownInputField/TopOperatingArea/style.js +2 -2
- package/dist/MarkdownInputField/VoiceInput/index.js +2 -2
- package/dist/MarkdownInputField/VoiceInput/style.js +1 -1
- package/dist/MarkdownInputField/VoiceInputManager/index.js +3 -3
- package/dist/MarkdownInputField/hooks/useMarkdownInputFieldActions.js +1 -1
- package/dist/MarkdownInputField/hooks/useMarkdownInputFieldHandlers.js +1 -1
- package/dist/MarkdownInputField/hooks/useMarkdownInputFieldLayout.js +2 -2
- package/dist/MarkdownInputField/hooks/useMarkdownInputFieldRefs.js +1 -1
- package/dist/MarkdownInputField/hooks/useMarkdownInputFieldState.js +1 -1
- package/dist/MarkdownInputField/hooks/useMarkdownInputFieldStyles.js +1 -1
- package/dist/MarkdownInputField/style.js +2 -2
- package/dist/MarkdownInputField/utils/renderHelpers.js +5 -5
- package/dist/Plugins/chart/AreaChart/index.js +4 -4
- package/dist/Plugins/chart/AreaChart/style.js +1 -1
- package/dist/Plugins/chart/BarChart/index.js +11 -11
- package/dist/Plugins/chart/BarChart/style.js +1 -1
- package/dist/Plugins/chart/ChartAttrToolBar/ChartAttrToolBarStyle.js +1 -1
- package/dist/Plugins/chart/ChartAttrToolBar/index.js +3 -3
- package/dist/Plugins/chart/ChartMark/Area.js +2 -2
- package/dist/Plugins/chart/ChartMark/Bar.js +2 -2
- package/dist/Plugins/chart/ChartMark/Column.js +2 -2
- package/dist/Plugins/chart/ChartMark/Container.js +1 -1
- package/dist/Plugins/chart/ChartMark/Line.js +2 -2
- package/dist/Plugins/chart/ChartMark/Pie.js +2 -2
- package/dist/Plugins/chart/ChartRender.js +19 -19
- package/dist/Plugins/chart/ChartStatistic/index.js +3 -3
- package/dist/Plugins/chart/ChartStatistic/style.js +1 -1
- package/dist/Plugins/chart/ChartStatistic/utils.js +2 -2
- package/dist/Plugins/chart/DonutChart/Legend.js +3 -3
- package/dist/Plugins/chart/DonutChart/hooks.js +5 -5
- package/dist/Plugins/chart/DonutChart/index.js +11 -11
- package/dist/Plugins/chart/DonutChart/plugins.js +3 -3
- package/dist/Plugins/chart/DonutChart/style.js +1 -1
- package/dist/Plugins/chart/FunnelChart/index.js +14 -14
- package/dist/Plugins/chart/FunnelChart/style.js +1 -1
- package/dist/Plugins/chart/LineChart/index.js +3 -3
- package/dist/Plugins/chart/LineChart/style.js +1 -1
- package/dist/Plugins/chart/RadarChart/index.js +7 -7
- package/dist/Plugins/chart/RadarChart/style.js +1 -1
- package/dist/Plugins/chart/ScatterChart/index.js +7 -7
- package/dist/Plugins/chart/ScatterChart/style.js +1 -1
- package/dist/Plugins/chart/components/ChartContainer/ChartContainer.js +1 -1
- package/dist/Plugins/chart/components/ChartContainer/style.js +2 -2
- package/dist/Plugins/chart/components/ChartFilter/ChartFilter.js +6 -6
- package/dist/Plugins/chart/components/ChartFilter/style.js +1 -1
- package/dist/Plugins/chart/components/ChartToolBar/ChartToolBar.js +2 -2
- package/dist/Plugins/chart/components/ChartToolBar/style.js +1 -1
- package/dist/Plugins/chart/components/icons/TimeIcon.js +1 -1
- package/dist/Plugins/chart/components/index.js +1 -1
- package/dist/Plugins/chart/hooks/useChartDataFilter.js +1 -1
- package/dist/Plugins/chart/hooks/useChartStatistics.js +1 -1
- package/dist/Plugins/chart/hooks/useChartTheme.js +1 -1
- package/dist/Plugins/chart/hooks/useResponsiveSize.js +2 -2
- package/dist/Plugins/chart/index.js +8 -8
- package/dist/Plugins/chart/loadChartRuntime.js +1 -1
- package/dist/Plugins/chart/utils/registerChart.js +3 -3
- package/dist/Plugins/chart/utils.js +12 -12
- package/dist/Plugins/code/CodeUI/Katex/Katex.js +1 -1
- package/dist/Plugins/code/components/AceEditor.js +2 -2
- package/dist/Plugins/code/components/CodeContainer.js +3 -3
- package/dist/Plugins/code/components/CodeRenderer.js +2 -2
- package/dist/Plugins/code/components/CodeToolbar.js +5 -5
- package/dist/Plugins/code/components/LanguageSelector.js +7 -7
- package/dist/Plugins/code/components/LoadImage.js +3 -3
- package/dist/Plugins/code/components/ThinkBlock.js +2 -2
- package/dist/Plugins/code/index.js +1 -1
- package/dist/Plugins/code/langIcons/AbapIcon.js +1 -1
- package/dist/Plugins/code/langIcons/ActionscriptIcon.js +1 -1
- package/dist/Plugins/code/langIcons/AdaIcon.js +1 -1
- package/dist/Plugins/code/langIcons/ApacheIcon.js +1 -1
- package/dist/Plugins/code/langIcons/ApexIcon.js +1 -1
- package/dist/Plugins/code/langIcons/AplIcon.js +1 -1
- package/dist/Plugins/code/langIcons/ApplescriptIcon.js +1 -1
- package/dist/Plugins/code/langIcons/AstroIcon.js +1 -1
- package/dist/Plugins/code/langIcons/AwkIcon.js +1 -1
- package/dist/Plugins/code/langIcons/BallerinaIcon.js +1 -1
- package/dist/Plugins/code/langIcons/BatIcon.js +1 -1
- package/dist/Plugins/code/langIcons/BicepIcon.js +1 -1
- package/dist/Plugins/code/langIcons/BladeIcon.js +1 -1
- package/dist/Plugins/code/langIcons/CIcon.js +1 -1
- package/dist/Plugins/code/langIcons/CadenceIcon.js +1 -1
- package/dist/Plugins/code/langIcons/ClojureIcon.js +1 -1
- package/dist/Plugins/code/langIcons/CmakeIcon.js +1 -1
- package/dist/Plugins/code/langIcons/CobolIcon.js +1 -1
- package/dist/Plugins/code/langIcons/CodeqlIcon.js +1 -1
- package/dist/Plugins/code/langIcons/CoffeeIcon.js +1 -1
- package/dist/Plugins/code/langIcons/ConsoleIcon.js +1 -1
- package/dist/Plugins/code/langIcons/CppIcon.js +1 -1
- package/dist/Plugins/code/langIcons/CrystalIcon.js +1 -1
- package/dist/Plugins/code/langIcons/CsharpIcon.js +1 -1
- package/dist/Plugins/code/langIcons/CssIcon.js +1 -1
- package/dist/Plugins/code/langIcons/DIcon.js +1 -1
- package/dist/Plugins/code/langIcons/DartIcon.js +1 -1
- package/dist/Plugins/code/langIcons/DatabaseIcon.js +1 -1
- package/dist/Plugins/code/langIcons/DiffIcon.js +1 -1
- package/dist/Plugins/code/langIcons/DockerIcon.js +1 -1
- package/dist/Plugins/code/langIcons/DotenvIcon.js +1 -1
- package/dist/Plugins/code/langIcons/ElixirIcon.js +1 -1
- package/dist/Plugins/code/langIcons/ElmIcon.js +1 -1
- package/dist/Plugins/code/langIcons/ErbIcon.js +1 -1
- package/dist/Plugins/code/langIcons/ErlangIcon.js +1 -1
- package/dist/Plugins/code/langIcons/FsharpIcon.js +1 -1
- package/dist/Plugins/code/langIcons/GdscriptIcon.js +1 -1
- package/dist/Plugins/code/langIcons/GlslIcon.js +1 -1
- package/dist/Plugins/code/langIcons/GnuplotIcon.js +1 -1
- package/dist/Plugins/code/langIcons/GoIcon.js +1 -1
- package/dist/Plugins/code/langIcons/GraphqlIcon.js +1 -1
- package/dist/Plugins/code/langIcons/GroovyIcon.js +1 -1
- package/dist/Plugins/code/langIcons/HackIcon.js +1 -1
- package/dist/Plugins/code/langIcons/HamlIcon.js +1 -1
- package/dist/Plugins/code/langIcons/HandlebarsIcon.js +1 -1
- package/dist/Plugins/code/langIcons/HaskellIcon.js +1 -1
- package/dist/Plugins/code/langIcons/HclIcon.js +1 -1
- package/dist/Plugins/code/langIcons/HclLightIcon.js +1 -1
- package/dist/Plugins/code/langIcons/HjsonIcon.js +1 -1
- package/dist/Plugins/code/langIcons/HlslIcon.js +1 -1
- package/dist/Plugins/code/langIcons/HtmlIcon.js +1 -1
- package/dist/Plugins/code/langIcons/HttpIcon.js +1 -1
- package/dist/Plugins/code/langIcons/ImbaIcon.js +1 -1
- package/dist/Plugins/code/langIcons/IniIcon.js +1 -1
- package/dist/Plugins/code/langIcons/JavaIcon.js +1 -1
- package/dist/Plugins/code/langIcons/JavascriptIcon.js +1 -1
- package/dist/Plugins/code/langIcons/JinjaIcon.js +1 -1
- package/dist/Plugins/code/langIcons/Json5Icon.js +1 -1
- package/dist/Plugins/code/langIcons/JsonIcon.js +1 -1
- package/dist/Plugins/code/langIcons/JsonnetIcon.js +1 -1
- package/dist/Plugins/code/langIcons/JuliaIcon.js +1 -1
- package/dist/Plugins/code/langIcons/KotlinIcon.js +1 -1
- package/dist/Plugins/code/langIcons/KustoIcon.js +1 -1
- package/dist/Plugins/code/langIcons/LessIcon.js +1 -1
- package/dist/Plugins/code/langIcons/LiquidIcon.js +1 -1
- package/dist/Plugins/code/langIcons/LispIcon.js +1 -1
- package/dist/Plugins/code/langIcons/LuaIcon.js +1 -1
- package/dist/Plugins/code/langIcons/MakefileIcon.js +1 -1
- package/dist/Plugins/code/langIcons/MarkdownIcon.js +1 -1
- package/dist/Plugins/code/langIcons/MarkojsIcon.js +1 -1
- package/dist/Plugins/code/langIcons/MatlabIcon.js +1 -1
- package/dist/Plugins/code/langIcons/MdxIcon.js +1 -1
- package/dist/Plugins/code/langIcons/MermaidIcon.js +1 -1
- package/dist/Plugins/code/langIcons/MojoIcon.js +1 -1
- package/dist/Plugins/code/langIcons/NginxIcon.js +1 -1
- package/dist/Plugins/code/langIcons/NimIcon.js +1 -1
- package/dist/Plugins/code/langIcons/NixIcon.js +1 -1
- package/dist/Plugins/code/langIcons/ObjectiveCIcon.js +1 -1
- package/dist/Plugins/code/langIcons/ObjectiveCppIcon.js +1 -1
- package/dist/Plugins/code/langIcons/OcamlIcon.js +1 -1
- package/dist/Plugins/code/langIcons/PascalIcon.js +1 -1
- package/dist/Plugins/code/langIcons/Perl6Icon.js +1 -1
- package/dist/Plugins/code/langIcons/PerlIcon.js +1 -1
- package/dist/Plugins/code/langIcons/PhpIcon.js +1 -1
- package/dist/Plugins/code/langIcons/PostcssIcon.js +1 -1
- package/dist/Plugins/code/langIcons/PowershellIcon.js +1 -1
- package/dist/Plugins/code/langIcons/PrismaIcon.js +1 -1
- package/dist/Plugins/code/langIcons/PrologIcon.js +1 -1
- package/dist/Plugins/code/langIcons/ProtoIcon.js +1 -1
- package/dist/Plugins/code/langIcons/PugIcon.js +1 -1
- package/dist/Plugins/code/langIcons/PuppetIcon.js +1 -1
- package/dist/Plugins/code/langIcons/PurescriptIcon.js +1 -1
- package/dist/Plugins/code/langIcons/PythonIcon.js +1 -1
- package/dist/Plugins/code/langIcons/RIcon.js +1 -1
- package/dist/Plugins/code/langIcons/RazorIcon.js +1 -1
- package/dist/Plugins/code/langIcons/ReactIcon.js +1 -1
- package/dist/Plugins/code/langIcons/ReactTsIcon.js +1 -1
- package/dist/Plugins/code/langIcons/RubyIcon.js +1 -1
- package/dist/Plugins/code/langIcons/RustIcon.js +1 -1
- package/dist/Plugins/code/langIcons/SasIcon.js +1 -1
- package/dist/Plugins/code/langIcons/SassIcon.js +1 -1
- package/dist/Plugins/code/langIcons/ScalaIcon.js +1 -1
- package/dist/Plugins/code/langIcons/SchemeIcon.js +1 -1
- package/dist/Plugins/code/langIcons/ShaderlabIcon.js +1 -1
- package/dist/Plugins/code/langIcons/SolidityIcon.js +1 -1
- package/dist/Plugins/code/langIcons/SparqlIcon.js +1 -1
- package/dist/Plugins/code/langIcons/StataIcon.js +1 -1
- package/dist/Plugins/code/langIcons/StylusIcon.js +1 -1
- package/dist/Plugins/code/langIcons/SvelteIcon.js +1 -1
- package/dist/Plugins/code/langIcons/SwiftIcon.js +1 -1
- package/dist/Plugins/code/langIcons/SystemverilogIcon.js +1 -1
- package/dist/Plugins/code/langIcons/TclIcon.js +1 -1
- package/dist/Plugins/code/langIcons/TexIcon.js +1 -1
- package/dist/Plugins/code/langIcons/TomlIcon.js +1 -1
- package/dist/Plugins/code/langIcons/TwigIcon.js +1 -1
- package/dist/Plugins/code/langIcons/TypescriptIcon.js +1 -1
- package/dist/Plugins/code/langIcons/VerilogIcon.js +1 -1
- package/dist/Plugins/code/langIcons/VhdlIcon.js +1 -1
- package/dist/Plugins/code/langIcons/VimIcon.js +1 -1
- package/dist/Plugins/code/langIcons/VueIcon.js +1 -1
- package/dist/Plugins/code/langIcons/WebassemblyIcon.js +1 -1
- package/dist/Plugins/code/langIcons/WenyanIcon.js +1 -1
- package/dist/Plugins/code/langIcons/WgslIcon.js +1 -1
- package/dist/Plugins/code/langIcons/WolframlanguageIcon.js +1 -1
- package/dist/Plugins/code/langIcons/XmlIcon.js +1 -1
- package/dist/Plugins/code/langIcons/XslIcon.js +1 -1
- package/dist/Plugins/code/langIcons/YamlIcon.js +1 -1
- package/dist/Plugins/code/langIcons/ZigIcon.js +1 -1
- package/dist/Plugins/code/loadAceEditor.js +3 -3
- package/dist/Plugins/katex/InlineKatex.js +2 -2
- package/dist/Plugins/katex/Katex.js +1 -1
- package/dist/Plugins/katex/index.js +2 -2
- package/dist/Plugins/katex/loadKatex.js +2 -2
- package/dist/Plugins/mermaid/Mermaid.js +1 -1
- package/dist/Plugins/mermaid/MermaidFallback.js +1 -1
- package/dist/Plugins/mermaid/MermaidRendererImpl.js +1 -1
- package/dist/Plugins/mermaid/index.js +5 -5
- package/dist/Plugins/mermaid/style.js +1 -1
- package/dist/Plugins/mermaid/useMermaidRender.js +1 -1
- package/dist/Plugins/mermaid/utils.js +3 -3
- package/dist/Quote/index.js +2 -2
- package/dist/Quote/style.js +1 -1
- package/dist/Schema/SchemaEditor/AceEditorWrapper.js +1 -1
- package/dist/Schema/SchemaEditor/index.js +6 -6
- package/dist/Schema/SchemaEditor/style.js +1 -1
- package/dist/Schema/SchemaForm/index.js +4 -4
- package/dist/Schema/SchemaRenderer/index.js +8 -8
- package/dist/TaskList/index.js +4 -4
- package/dist/TaskList/style.js +1 -1
- package/dist/ThoughtChainList/CostMillis.js +2 -2
- package/dist/ThoughtChainList/DeepThink.js +1 -1
- package/dist/ThoughtChainList/DotAni/index.js +1 -1
- package/dist/ThoughtChainList/DotAni/style.js +1 -1
- package/dist/ThoughtChainList/MarkdownEditor.js +2 -2
- package/dist/ThoughtChainList/RagRetrievalInfo.js +2 -2
- package/dist/ThoughtChainList/TableSql.js +8 -8
- package/dist/ThoughtChainList/TitleInfo.js +3 -3
- package/dist/ThoughtChainList/ToolCall.js +7 -7
- package/dist/ThoughtChainList/WebSearch.js +1 -1
- package/dist/ThoughtChainList/style.js +1 -1
- package/dist/ToolUseBar/BarItem/Content.js +5 -5
- package/dist/ToolUseBar/BarItem/index.js +1 -1
- package/dist/ToolUseBar/index.js +1 -1
- package/dist/ToolUseBar/style.js +1 -1
- package/dist/ToolUseBarThink/index.js +10 -10
- package/dist/ToolUseBarThink/style.js +1 -1
- package/dist/Types/message.d.ts +1 -0
- package/dist/Utils/debugUtils.js +1 -1
- package/dist/Utils/formatTime.js +1 -1
- package/dist/Utils/getScroll.js +2 -2
- package/dist/Utils/loadCSS.js +2 -2
- package/dist/Utils/proxySandbox/ProxySandbox.js +37 -37
- package/dist/Utils/proxySandbox/SecurityContextManager.js +6 -6
- package/dist/Utils/scrollTo.js +1 -1
- package/dist/Utils/throttleByAnimationFrame.js +2 -2
- package/dist/WelcomeMessage/index.js +1 -1
- package/dist/WelcomeMessage/style.js +1 -1
- package/dist/Workspace/Browser/index.js +13 -13
- package/dist/Workspace/Browser/style.js +1 -1
- package/dist/Workspace/File/FileComponent.js +38 -38
- package/dist/Workspace/File/FileTypeProcessor.js +8 -8
- package/dist/Workspace/File/PreviewComponent.js +14 -14
- package/dist/Workspace/File/style.js +1 -1
- package/dist/Workspace/File/utils.js +3 -3
- package/dist/Workspace/HtmlPreview/index.js +5 -5
- package/dist/Workspace/HtmlPreview/style.js +1 -1
- package/dist/Workspace/RealtimeFollow/index.js +18 -18
- package/dist/Workspace/RealtimeFollow/style.js +1 -1
- package/dist/Workspace/Task/index.js +3 -3
- package/dist/Workspace/Task/style.js +1 -1
- package/dist/Workspace/index.js +9 -9
- package/dist/Workspace/style.js +1 -1
- package/dist/Workspace/types.js +3 -3
- package/dist/Workspace/utils/codeLanguageUtils.js +3 -3
- package/dist/Workspace/utils.js +2 -2
- package/package.json +4 -3
|
@@ -281,7 +281,7 @@ import { useStyle } from "./style";
|
|
|
281
281
|
* - 支持自定义样式和类名
|
|
282
282
|
* - 集成 Ant Design 组件
|
|
283
283
|
* - 响应式交互设计
|
|
284
|
-
*/ export var ActionIconBox = function(props) {
|
|
284
|
+
*/ export var ActionIconBox = function ActionIconBox(props) {
|
|
285
285
|
var _props_isLoading;
|
|
286
286
|
var _props_title, _props_title1, _props_title2, _props_title3;
|
|
287
287
|
var propLoading = (_props_isLoading = props.isLoading) !== null && _props_isLoading !== void 0 ? _props_isLoading : props.loading;
|
|
@@ -307,9 +307,9 @@ import { useStyle } from "./style";
|
|
|
307
307
|
// 处理单个子元素的情况
|
|
308
308
|
if (/*#__PURE__*/ React.isValidElement(element)) {
|
|
309
309
|
try {
|
|
310
|
-
var
|
|
311
|
-
return /*#__PURE__*/ React.cloneElement(element, _object_spread_props(_object_spread({},
|
|
312
|
-
style: _object_spread({},
|
|
310
|
+
var _element_props;
|
|
311
|
+
return /*#__PURE__*/ React.cloneElement(element, _object_spread_props(_object_spread({}, element === null || element === void 0 ? void 0 : element.props), {
|
|
312
|
+
style: _object_spread({}, element === null || element === void 0 ? void 0 : (_element_props = element.props) === null || _element_props === void 0 ? void 0 : _element_props.style, props.iconStyle)
|
|
313
313
|
}));
|
|
314
314
|
} catch (error) {
|
|
315
315
|
console.error('ActionIconBox: 克隆元素时出错', error);
|
|
@@ -350,7 +350,7 @@ import { useStyle } from "./style";
|
|
|
350
350
|
tabIndex: 0,
|
|
351
351
|
"aria-label": (_props_title1 = props.title) === null || _props_title1 === void 0 ? void 0 : _props_title1.toString(),
|
|
352
352
|
className: cx(prefixCls, hashId, props.className, (_obj = {}, _define_property(_obj, "".concat(prefixCls, "-danger"), props.type === 'danger'), _define_property(_obj, "".concat(prefixCls, "-primary"), props.type === 'primary'), _define_property(_obj, "".concat(prefixCls, "-border-less"), props.borderLess), _define_property(_obj, "".concat(prefixCls, "-active"), props.active), _define_property(_obj, "".concat(prefixCls, "-transform"), props.transform), _define_property(_obj, "".concat(prefixCls, "-").concat(props.theme || 'light'), props.theme || 'light'), _define_property(_obj, "".concat(prefixCls, "-noPadding"), props.noPadding), _obj)),
|
|
353
|
-
onClick: function(e) {
|
|
353
|
+
onClick: function onClick(e) {
|
|
354
354
|
return _async_to_generator(function() {
|
|
355
355
|
var _props_onClick, error;
|
|
356
356
|
return _ts_generator(this, function(_state) {
|
|
@@ -402,7 +402,7 @@ import { useStyle } from "./style";
|
|
|
402
402
|
});
|
|
403
403
|
})();
|
|
404
404
|
},
|
|
405
|
-
onKeyDown: function(e) {
|
|
405
|
+
onKeyDown: function onKeyDown(e) {
|
|
406
406
|
return _async_to_generator(function() {
|
|
407
407
|
var error;
|
|
408
408
|
return _ts_generator(this, function(_state) {
|
|
@@ -458,10 +458,10 @@ import { useStyle } from "./style";
|
|
|
458
458
|
});
|
|
459
459
|
})();
|
|
460
460
|
},
|
|
461
|
-
onMouseEnter: function() {
|
|
461
|
+
onMouseEnter: function onMouseEnter() {
|
|
462
462
|
return setIsHovered(true);
|
|
463
463
|
},
|
|
464
|
-
onMouseLeave: function() {
|
|
464
|
+
onMouseLeave: function onMouseLeave() {
|
|
465
465
|
return setIsHovered(false);
|
|
466
466
|
},
|
|
467
467
|
style: props.style
|
|
@@ -474,7 +474,7 @@ import { useStyle } from "./style";
|
|
|
474
474
|
"aria-label": (_props_title2 = props.title) === null || _props_title2 === void 0 ? void 0 : _props_title2.toString(),
|
|
475
475
|
title: (_props_title3 = props.title) === null || _props_title3 === void 0 ? void 0 : _props_title3.toString(),
|
|
476
476
|
className: cx(prefixCls, hashId, props.className, (_obj1 = {}, _define_property(_obj1, "".concat(prefixCls, "-danger"), props.type === 'danger'), _define_property(_obj1, "".concat(prefixCls, "-primary"), props.type === 'primary'), _define_property(_obj1, "".concat(prefixCls, "-border-less"), props.borderLess), _define_property(_obj1, "".concat(prefixCls, "-active"), props.active), _define_property(_obj1, "".concat(prefixCls, "-transform"), props.transform), _define_property(_obj1, "".concat(prefixCls, "-").concat(props.theme || 'light'), props.theme || 'light'), _define_property(_obj1, "".concat(prefixCls, "-noPadding"), props.noPadding), _obj1)),
|
|
477
|
-
onClick: function(e) {
|
|
477
|
+
onClick: function onClick(e) {
|
|
478
478
|
return _async_to_generator(function() {
|
|
479
479
|
var _props_onClick, error;
|
|
480
480
|
return _ts_generator(this, function(_state) {
|
|
@@ -526,7 +526,7 @@ import { useStyle } from "./style";
|
|
|
526
526
|
});
|
|
527
527
|
})();
|
|
528
528
|
},
|
|
529
|
-
onKeyDown: function(e) {
|
|
529
|
+
onKeyDown: function onKeyDown(e) {
|
|
530
530
|
return _async_to_generator(function() {
|
|
531
531
|
var error;
|
|
532
532
|
return _ts_generator(this, function(_state) {
|
|
@@ -582,10 +582,10 @@ import { useStyle } from "./style";
|
|
|
582
582
|
});
|
|
583
583
|
})();
|
|
584
584
|
},
|
|
585
|
-
onMouseEnter: function() {
|
|
585
|
+
onMouseEnter: function onMouseEnter() {
|
|
586
586
|
return setIsHovered(true);
|
|
587
587
|
},
|
|
588
|
-
onMouseLeave: function() {
|
|
588
|
+
onMouseLeave: function onMouseLeave() {
|
|
589
589
|
return setIsHovered(false);
|
|
590
590
|
},
|
|
591
591
|
style: props.style
|
|
@@ -51,7 +51,7 @@ function _object_spread_props(target, source) {
|
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
53
|
import { useEditorStyleRegister } from "../../Hooks/useStyle";
|
|
54
|
-
var genStyle = function(token) {
|
|
54
|
+
var genStyle = function genStyle(token) {
|
|
55
55
|
return _define_property({}, token.componentCls, {
|
|
56
56
|
minWidth: 28,
|
|
57
57
|
minHeight: 28,
|
|
@@ -31,7 +31,7 @@ import classNames from "classnames";
|
|
|
31
31
|
import { motion } from "framer-motion";
|
|
32
32
|
import React, { useContext, useEffect } from "react";
|
|
33
33
|
import { useStyle } from "./style";
|
|
34
|
-
export var ActionItemBox = function(props) {
|
|
34
|
+
export var ActionItemBox = function ActionItemBox(props) {
|
|
35
35
|
var _props_hoverBg, _props_hoverBg1;
|
|
36
36
|
var getPrefixCls = useContext(ConfigProvider.ConfigContext).getPrefixCls;
|
|
37
37
|
var basePrefixCls = getPrefixCls('agentic-chat-action-item-box');
|
|
@@ -51,7 +51,7 @@ function _object_spread_props(target, source) {
|
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
53
|
import { resetComponent, useEditorStyleRegister } from "../../Hooks/useStyle";
|
|
54
|
-
var genStyle = function(token) {
|
|
54
|
+
var genStyle = function genStyle(token) {
|
|
55
55
|
var _obj, _obj1, _obj2;
|
|
56
56
|
return _define_property({}, token.componentCls, (_obj2 = {
|
|
57
57
|
borderRadius: '11px',
|
|
@@ -15,7 +15,7 @@ import { Button, ConfigProvider, Tooltip } from "antd";
|
|
|
15
15
|
import classNames from "classnames";
|
|
16
16
|
import React, { useContext } from "react";
|
|
17
17
|
import { useStyle } from "./style";
|
|
18
|
-
export var IconButton = function(param) {
|
|
18
|
+
export var IconButton = function IconButton(param) {
|
|
19
19
|
var className = param.className, style = param.style, icon = param.icon, tooltip = param.tooltip, disabled = param.disabled, active = param.active, elevated = param.elevated, _param_size = param.size, size = _param_size === void 0 ? 'base' : _param_size, legacyLoading = param.loading, isLoading = param.isLoading, onClick = param.onClick;
|
|
20
20
|
// 兼容旧属性
|
|
21
21
|
var loading = isLoading !== null && isLoading !== void 0 ? isLoading : legacyLoading;
|
|
@@ -54,7 +54,7 @@ import { useEditorStyleRegister } from "../../../Hooks/useStyle";
|
|
|
54
54
|
var ICON_SIZE = 16;
|
|
55
55
|
var ICON_SIZE_SM = 14;
|
|
56
56
|
var ICON_SIZE_XS = 14;
|
|
57
|
-
var genStyle = function(token) {
|
|
57
|
+
var genStyle = function genStyle(token) {
|
|
58
58
|
return _define_property({}, token.componentCls, {
|
|
59
59
|
// 基础按钮样式
|
|
60
60
|
display: 'inline-flex',
|
|
@@ -190,7 +190,7 @@ import { Button, ConfigProvider } from "antd";
|
|
|
190
190
|
import classNames from "classnames";
|
|
191
191
|
import React, { useContext, useEffect, useState } from "react";
|
|
192
192
|
import { useStyle } from "./style";
|
|
193
|
-
export var SwitchButton = function(param) {
|
|
193
|
+
export var SwitchButton = function SwitchButton(param) {
|
|
194
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
195
|
var _ref;
|
|
196
196
|
var context = useContext(ConfigProvider.ConfigContext);
|
|
@@ -209,7 +209,7 @@ export var SwitchButton = function(param) {
|
|
|
209
209
|
var effectiveActive = isControlled ? !!active : innerActive;
|
|
210
210
|
var _obj;
|
|
211
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));
|
|
212
|
-
var handleClick = function() {
|
|
212
|
+
var handleClick = function handleClick() {
|
|
213
213
|
return _async_to_generator(function() {
|
|
214
214
|
var next;
|
|
215
215
|
return _ts_generator(this, function(_state) {
|
|
@@ -234,7 +234,7 @@ export var SwitchButton = function(param) {
|
|
|
234
234
|
});
|
|
235
235
|
})();
|
|
236
236
|
};
|
|
237
|
-
var renderTriggerIcon = function() {
|
|
237
|
+
var renderTriggerIcon = function renderTriggerIcon() {
|
|
238
238
|
if (triggerIcon) return triggerIcon;
|
|
239
239
|
return effectiveActive ? /*#__PURE__*/ React.createElement(ChevronUp, null) : /*#__PURE__*/ React.createElement(ChevronDown, null);
|
|
240
240
|
};
|
|
@@ -51,7 +51,7 @@ function _object_spread_props(target, source) {
|
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
53
|
import { useEditorStyleRegister } from "../../../Hooks/useStyle";
|
|
54
|
-
var genStyle = function(token) {
|
|
54
|
+
var genStyle = function genStyle(token) {
|
|
55
55
|
var _obj, _obj1, _obj2, _obj3, _obj4, _obj5;
|
|
56
56
|
return _define_property({}, token.componentCls, (_obj5 = {
|
|
57
57
|
padding: '5px 12px',
|
|
@@ -15,7 +15,7 @@ import { Button, ConfigProvider } from "antd";
|
|
|
15
15
|
import classNames from "classnames";
|
|
16
16
|
import React, { useContext } from "react";
|
|
17
17
|
import { useStyle } from "./style";
|
|
18
|
-
export var ToggleButton = function(param) {
|
|
18
|
+
export var ToggleButton = function ToggleButton(param) {
|
|
19
19
|
var className = param.className, style = param.style, icon = param.icon, triggerIcon = param.triggerIcon, disabled = param.disabled, active = param.active, onClick = param.onClick, children = param.children;
|
|
20
20
|
var context = useContext(ConfigProvider.ConfigContext);
|
|
21
21
|
var prefixCls = context === null || context === void 0 ? void 0 : context.getPrefixCls('toggle-button');
|
|
@@ -51,7 +51,7 @@ function _object_spread_props(target, source) {
|
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
53
|
import { useEditorStyleRegister } from "../../../Hooks/useStyle";
|
|
54
|
-
var genStyle = function(token) {
|
|
54
|
+
var genStyle = function genStyle(token) {
|
|
55
55
|
return _define_property({}, token.componentCls, {
|
|
56
56
|
// 基础按钮样式
|
|
57
57
|
borderRadius: '200px',
|
|
@@ -60,7 +60,7 @@ var animateGradientText = new Keyframes('animateGradientText', {
|
|
|
60
60
|
backgroundPosition: '-100%'
|
|
61
61
|
}
|
|
62
62
|
});
|
|
63
|
-
var genStyle = function(token) {
|
|
63
|
+
var genStyle = function genStyle(token) {
|
|
64
64
|
return _define_property({}, token.componentCls, _define_property({
|
|
65
65
|
position: 'relative',
|
|
66
66
|
margin: '0 auto',
|
|
@@ -84,7 +84,7 @@ var genStyle = function(token) {
|
|
|
84
84
|
animationIterationCount: 'infinite'
|
|
85
85
|
}));
|
|
86
86
|
};
|
|
87
|
-
export var useGradientTextStyle = function(prefixCls) {
|
|
87
|
+
export var useGradientTextStyle = function useGradientTextStyle(prefixCls) {
|
|
88
88
|
return useEditorStyleRegister('gradient-text', function(token) {
|
|
89
89
|
var gradientTextToken = _object_spread_props(_object_spread({}, token), {
|
|
90
90
|
componentCls: ".".concat(prefixCls)
|
|
@@ -27,7 +27,7 @@ function _object_spread(target) {
|
|
|
27
27
|
return target;
|
|
28
28
|
}
|
|
29
29
|
import React from "react";
|
|
30
|
-
export var VisualList = function(param) {
|
|
30
|
+
export var VisualList = function VisualList(param) {
|
|
31
31
|
var className = param.className, style = param.style, _param_data = param.data, data = _param_data === void 0 ? [] : _param_data, _param_filter = param.filter, filter = _param_filter === void 0 ? function() {
|
|
32
32
|
return true;
|
|
33
33
|
} : _param_filter, emptyRender = param.emptyRender, renderItem = param.renderItem, _param_loading = param.loading, loading = _param_loading === void 0 ? false : _param_loading, loadingRender = param.loadingRender, itemStyle = param.itemStyle, imageStyle = param.imageStyle, linkStyle = param.linkStyle;
|
|
@@ -59,7 +59,7 @@ export var VisualList = function(param) {
|
|
|
59
59
|
}, emptyRender ? emptyRender() : /*#__PURE__*/ React.createElement("span", null, "暂无数据"));
|
|
60
60
|
}
|
|
61
61
|
// 默认渲染函数
|
|
62
|
-
var defaultRenderItem = function(item, index) {
|
|
62
|
+
var defaultRenderItem = function defaultRenderItem(item, index) {
|
|
63
63
|
return /*#__PURE__*/ React.createElement("li", {
|
|
64
64
|
key: item.id || index,
|
|
65
65
|
style: _object_spread({
|
|
@@ -101,7 +101,7 @@ import { useLayoutHeaderStyle } from "./style";
|
|
|
101
101
|
* ```
|
|
102
102
|
*
|
|
103
103
|
* @returns {React.ReactElement} 渲染的头部组件
|
|
104
|
-
*/ var LayoutHeader = function(param) {
|
|
104
|
+
*/ var LayoutHeader = function LayoutHeader(param) {
|
|
105
105
|
var _param_title = param.title, title = _param_title === void 0 ? 'AI 助手' : _param_title, _param_showShare = param.showShare, showShare = _param_showShare === void 0 ? false : _param_showShare, _param_leftCollapsible = param.leftCollapsible, leftCollapsible = _param_leftCollapsible === void 0 ? false : _param_leftCollapsible, _param_rightCollapsible = param.rightCollapsible, rightCollapsible = _param_rightCollapsible === void 0 ? false : _param_rightCollapsible, controlledLeftCollapsed = param.leftCollapsed, controlledRightCollapsed = param.rightCollapsed, _param_leftDefaultCollapsed = param.leftDefaultCollapsed, leftDefaultCollapsed = _param_leftDefaultCollapsed === void 0 ? false : _param_leftDefaultCollapsed, _param_rightDefaultCollapsed = param.rightDefaultCollapsed, rightDefaultCollapsed = _param_rightDefaultCollapsed === void 0 ? false : _param_rightDefaultCollapsed, onLeftCollapse = param.onLeftCollapse, onRightCollapse = param.onRightCollapse, onShare = param.onShare, leftExtra = param.leftExtra, rightExtra = param.rightExtra, className = param.className;
|
|
106
106
|
var locale = useContext(I18nContext).locale;
|
|
107
107
|
var getPrefixCls = useContext(ConfigProvider.ConfigContext).getPrefixCls;
|
|
@@ -117,17 +117,17 @@ import { useLayoutHeaderStyle } from "./style";
|
|
|
117
117
|
value: controlledRightCollapsed,
|
|
118
118
|
onChange: onRightCollapse
|
|
119
119
|
}), 2), rightCollapsed = _useMergedState1[0], setRightCollapsed = _useMergedState1[1];
|
|
120
|
-
var handleLeftCollapse = function() {
|
|
120
|
+
var handleLeftCollapse = function handleLeftCollapse() {
|
|
121
121
|
if (leftCollapsible) {
|
|
122
122
|
setLeftCollapsed(!leftCollapsed);
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
|
-
var handleRightCollapse = function() {
|
|
125
|
+
var handleRightCollapse = function handleRightCollapse() {
|
|
126
126
|
if (rightCollapsible) {
|
|
127
127
|
setRightCollapsed(!rightCollapsed);
|
|
128
128
|
}
|
|
129
129
|
};
|
|
130
|
-
var handleShare = function() {
|
|
130
|
+
var handleShare = function handleShare() {
|
|
131
131
|
onShare === null || onShare === void 0 ? void 0 : onShare();
|
|
132
132
|
};
|
|
133
133
|
return wrapSSR(/*#__PURE__*/ React.createElement("div", {
|
|
@@ -51,7 +51,7 @@ function _object_spread_props(target, source) {
|
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
53
|
import { useEditorStyleRegister } from "../../Hooks/useStyle";
|
|
54
|
-
var genStyle = function(token) {
|
|
54
|
+
var genStyle = function genStyle(token) {
|
|
55
55
|
var _obj;
|
|
56
56
|
return _define_property({}, token.componentCls, (_obj = {
|
|
57
57
|
display: 'flex',
|
|
@@ -88,7 +88,7 @@ var genStyle = function(token) {
|
|
|
88
88
|
gap: 'var(--margin-2x)'
|
|
89
89
|
}), _obj));
|
|
90
90
|
};
|
|
91
|
-
export var useLayoutHeaderStyle = function(prefixCls) {
|
|
91
|
+
export var useLayoutHeaderStyle = function useLayoutHeaderStyle(prefixCls) {
|
|
92
92
|
return useEditorStyleRegister('layout-header', function(token) {
|
|
93
93
|
var layoutHeaderToken = _object_spread_props(_object_spread({}, token), {
|
|
94
94
|
componentCls: ".".concat(prefixCls)
|
|
@@ -68,7 +68,7 @@ import { CreativeRecommendationEffect } from "../effects";
|
|
|
68
68
|
* ```
|
|
69
69
|
*
|
|
70
70
|
* @returns {React.ReactElement} 渲染的创意推荐闪动动画组件
|
|
71
|
-
*/ export var CreativeRecommendationLoading = function(_0) {
|
|
71
|
+
*/ export var CreativeRecommendationLoading = function CreativeRecommendationLoading(_0) {
|
|
72
72
|
var ref = _object_destructuring_empty(_0), props = _extends({}, _0);
|
|
73
73
|
var lottieProps = _object_spread({
|
|
74
74
|
size: '1em'
|
|
@@ -68,7 +68,7 @@ import { CreativeSparkLottie } from "../lotties";
|
|
|
68
68
|
* ```
|
|
69
69
|
*
|
|
70
70
|
* @returns {React.ReactElement} 渲染的创意生成中火花动画组件
|
|
71
|
-
*/ export var CreativeSparkLoading = function(_0) {
|
|
71
|
+
*/ export var CreativeSparkLoading = function CreativeSparkLoading(_0) {
|
|
72
72
|
var ref = _object_destructuring_empty(_0), props = _extends({}, _0);
|
|
73
73
|
var lottieProps = _object_spread({
|
|
74
74
|
size: '1em'
|
|
@@ -57,7 +57,7 @@ import { prefixCls, useStyle } from "./style";
|
|
|
57
57
|
* ```
|
|
58
58
|
*
|
|
59
59
|
* @returns {React.ReactElement} 渲染的加载动画组件
|
|
60
|
-
*/ export var Loading = function(param) {
|
|
60
|
+
*/ export var Loading = function Loading(param) {
|
|
61
61
|
var className = param.className, wrapperClassName = param.wrapperClassName, style = param.style, indicator = param.indicator, tip = param.tip, _param_spinning = param.spinning, spinning = _param_spinning === void 0 ? true : _param_spinning, children = param.children, styles = param.styles, size = param.size, percent = param.percent;
|
|
62
62
|
var context = useContext(ConfigProvider.ConfigContext);
|
|
63
63
|
var baseCls = context === null || context === void 0 ? void 0 : context.getPrefixCls(prefixCls);
|
|
@@ -80,7 +80,7 @@ var afterAnimation = new Keyframes('afterAnimation', {
|
|
|
80
80
|
transform: 'translate(-15%, -10%)'
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
|
-
var genStyle = function(token) {
|
|
83
|
+
var genStyle = function genStyle(token) {
|
|
84
84
|
var _obj, _obj1;
|
|
85
85
|
return _obj1 = {}, _define_property(_obj1, token.componentCls, (_obj = {
|
|
86
86
|
position: 'relative',
|
|
@@ -68,7 +68,7 @@ export * from "./lotties/PeekLottie";
|
|
|
68
68
|
* - 当提供自定义图标时,会忽略默认的机器人图片
|
|
69
69
|
* - 支持字符串类型的图片URL或React元素
|
|
70
70
|
* - 组件使用 React.memo 进行性能优化
|
|
71
|
-
*/ var Robot = function(param) {
|
|
71
|
+
*/ var Robot = function Robot(param) {
|
|
72
72
|
var icon = param.icon, _param_size = param.size, size = _param_size === void 0 ? 42 : _param_size, status = param.status, className = param.className, style = param.style;
|
|
73
73
|
return /*#__PURE__*/ React.createElement("div", {
|
|
74
74
|
className: classNames(className),
|
|
@@ -61,7 +61,7 @@ import lottieData from "./lottie.json";
|
|
|
61
61
|
* - 支持自定义尺寸
|
|
62
62
|
* - 支持播放控制
|
|
63
63
|
* - 支持自定义样式
|
|
64
|
-
*/ export var BlowingWindLottie = function(param) {
|
|
64
|
+
*/ export var BlowingWindLottie = function BlowingWindLottie(param) {
|
|
65
65
|
var _param_autoplay = param.autoplay, autoplay = _param_autoplay === void 0 ? true : _param_autoplay, _param_loop = param.loop, loop = _param_loop === void 0 ? true : _param_loop, className = param.className, style = param.style, _param_size = param.size, size = _param_size === void 0 ? 32 : _param_size;
|
|
66
66
|
var containerStyle = _object_spread({
|
|
67
67
|
width: size,
|
|
@@ -61,7 +61,7 @@ import lottieData from "./lottie.json";
|
|
|
61
61
|
* - 支持自定义尺寸
|
|
62
62
|
* - 支持播放控制
|
|
63
63
|
* - 支持自定义样式
|
|
64
|
-
*/ export var BouncingLottie = function(param) {
|
|
64
|
+
*/ export var BouncingLottie = function BouncingLottie(param) {
|
|
65
65
|
var _param_autoplay = param.autoplay, autoplay = _param_autoplay === void 0 ? true : _param_autoplay, _param_loop = param.loop, loop = _param_loop === void 0 ? true : _param_loop, className = param.className, style = param.style, _param_size = param.size, size = _param_size === void 0 ? 32 : _param_size;
|
|
66
66
|
var containerStyle = _object_spread({
|
|
67
67
|
width: size,
|
|
@@ -61,7 +61,7 @@ import dazingLottie from "./dazing.json";
|
|
|
61
61
|
* - 支持自定义尺寸
|
|
62
62
|
* - 支持播放控制
|
|
63
63
|
* - 支持自定义样式
|
|
64
|
-
*/ export var DazingLottie = function(param) {
|
|
64
|
+
*/ export var DazingLottie = function DazingLottie(param) {
|
|
65
65
|
var _param_autoplay = param.autoplay, autoplay = _param_autoplay === void 0 ? true : _param_autoplay, _param_loop = param.loop, loop = _param_loop === void 0 ? true : _param_loop, className = param.className, style = param.style, _param_size = param.size, size = _param_size === void 0 ? 32 : _param_size;
|
|
66
66
|
var containerStyle = _object_spread({
|
|
67
67
|
width: size,
|
|
@@ -61,7 +61,7 @@ import lottieData from "./lottie.json";
|
|
|
61
61
|
* - 支持自定义尺寸
|
|
62
62
|
* - 支持播放控制
|
|
63
63
|
* - 支持自定义样式
|
|
64
|
-
*/ export var PeekLottie = function(param) {
|
|
64
|
+
*/ export var PeekLottie = function PeekLottie(param) {
|
|
65
65
|
var _param_autoplay = param.autoplay, autoplay = _param_autoplay === void 0 ? true : _param_autoplay, _param_loop = param.loop, loop = _param_loop === void 0 ? true : _param_loop, className = param.className, style = param.style, _param_size = param.size, size = _param_size === void 0 ? 32 : _param_size;
|
|
66
66
|
var containerStyle = _object_spread({
|
|
67
67
|
width: size,
|
|
@@ -61,7 +61,7 @@ import thinkingLottie from "./thinking.json";
|
|
|
61
61
|
* - 支持自定义尺寸
|
|
62
62
|
* - 支持播放控制
|
|
63
63
|
* - 支持自定义样式
|
|
64
|
-
*/ export var ThinkingLottie = function(param) {
|
|
64
|
+
*/ export var ThinkingLottie = function ThinkingLottie(param) {
|
|
65
65
|
var _param_autoplay = param.autoplay, autoplay = _param_autoplay === void 0 ? true : _param_autoplay, _param_loop = param.loop, loop = _param_loop === void 0 ? true : _param_loop, className = param.className, style = param.style, _param_size = param.size, size = _param_size === void 0 ? 32 : _param_size;
|
|
66
66
|
var containerStyle = _object_spread({
|
|
67
67
|
width: size,
|
|
@@ -191,7 +191,7 @@ import classNames from "classnames";
|
|
|
191
191
|
import React, { useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
192
192
|
import { I18nContext } from "../../I18n";
|
|
193
193
|
import { useStyle } from "./style";
|
|
194
|
-
var OverflowTooltip = function(param) {
|
|
194
|
+
var OverflowTooltip = function OverflowTooltip(param) {
|
|
195
195
|
var children = param.children, title = param.title, prefixCls = param.prefixCls, hashId = param.hashId, _param_forceShow = param.forceShow, forceShow = _param_forceShow === void 0 ? false : _param_forceShow;
|
|
196
196
|
var textRef = useRef(null);
|
|
197
197
|
var _useState = _sliced_to_array(useState(false), 2), isOverflowing = _useState[0], setIsOverflowing = _useState[1];
|
|
@@ -243,7 +243,7 @@ var OverflowTooltip = function(param) {
|
|
|
243
243
|
className: classNames("".concat(prefixCls, "-label"), hashId)
|
|
244
244
|
}, children));
|
|
245
245
|
};
|
|
246
|
-
export var SuggestionList = function(param) {
|
|
246
|
+
export var SuggestionList = function SuggestionList(param) {
|
|
247
247
|
var className = param.className, style = param.style, items = param.items, onItemClick = param.onItemClick, _param_layout = param.layout, layout = _param_layout === void 0 ? 'vertical' : _param_layout, _param_maxItems = param.maxItems, maxItems = _param_maxItems === void 0 ? 6 : _param_maxItems, _param_type = param.type, type = _param_type === void 0 ? 'basic' : _param_type, showMore = param.showMore;
|
|
248
248
|
var context = useContext(ConfigProvider.ConfigContext);
|
|
249
249
|
var locale = useContext(I18nContext).locale;
|
|
@@ -274,7 +274,7 @@ export var SuggestionList = function(param) {
|
|
|
274
274
|
}, (showMore === null || showMore === void 0 ? void 0 : showMore.text) || (locale === null || locale === void 0 ? void 0 : locale['suggestion.searchMore']) || '搜索更多'), /*#__PURE__*/ React.createElement("span", {
|
|
275
275
|
className: classNames("".concat(prefixCls, "-more-icon"), hashId),
|
|
276
276
|
role: "button",
|
|
277
|
-
onClick: function() {
|
|
277
|
+
onClick: function onClick() {
|
|
278
278
|
var _showMore_onClick;
|
|
279
279
|
return showMore === null || showMore === void 0 ? void 0 : (_showMore_onClick = showMore.onClick) === null || _showMore_onClick === void 0 ? void 0 : _showMore_onClick.call(showMore);
|
|
280
280
|
},
|
|
@@ -286,7 +286,7 @@ export var SuggestionList = function(param) {
|
|
|
286
286
|
var _ref, _ref1, _ref2;
|
|
287
287
|
var label = typeof (item === null || item === void 0 ? void 0 : item.text) === 'string' ? item === null || item === void 0 ? void 0 : item.text : undefined;
|
|
288
288
|
var isDisabled = submitting || (item === null || item === void 0 ? void 0 : item.disabled);
|
|
289
|
-
var handleClick = function() {
|
|
289
|
+
var handleClick = function handleClick() {
|
|
290
290
|
return _async_to_generator(function() {
|
|
291
291
|
return _ts_generator(this, function(_state) {
|
|
292
292
|
switch(_state.label){
|
|
@@ -51,7 +51,7 @@ function _object_spread_props(target, source) {
|
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
53
|
import { useEditorStyleRegister } from "../../Hooks/useStyle";
|
|
54
|
-
var genStyle = function(token) {
|
|
54
|
+
var genStyle = function genStyle(token) {
|
|
55
55
|
var _obj;
|
|
56
56
|
return _define_property({}, token.componentCls, {
|
|
57
57
|
display: 'flex',
|
|
@@ -419,7 +419,7 @@ var defaultItemAnimationVariants = {
|
|
|
419
419
|
}
|
|
420
420
|
}
|
|
421
421
|
};
|
|
422
|
-
export var resolveSegments = function(children, by) {
|
|
422
|
+
export var resolveSegments = function resolveSegments(children, by) {
|
|
423
423
|
var result = [];
|
|
424
424
|
toArray(children).forEach(function(item) {
|
|
425
425
|
if (isString(item) || isNumber(item)) {
|
|
@@ -447,7 +447,7 @@ export var resolveSegments = function(children, by) {
|
|
|
447
447
|
});
|
|
448
448
|
return result;
|
|
449
449
|
};
|
|
450
|
-
var TextAnimateBase = function(_0) {
|
|
450
|
+
var TextAnimateBase = function TextAnimateBase(_0) {
|
|
451
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, [
|
|
452
452
|
"children",
|
|
453
453
|
"delay",
|
|
@@ -51,7 +51,7 @@ function _object_spread_props(target, source) {
|
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
53
|
import { useEditorStyleRegister } from "../../Hooks/useStyle";
|
|
54
|
-
var genStyle = function(token) {
|
|
54
|
+
var genStyle = function genStyle(token) {
|
|
55
55
|
var _obj;
|
|
56
56
|
return _define_property({}, token.componentCls, (_obj = {
|
|
57
57
|
whiteSpace: 'pre-wrap'
|
|
@@ -65,7 +65,7 @@ var genStyle = function(token) {
|
|
|
65
65
|
whiteSpace: 'normal'
|
|
66
66
|
}), _obj));
|
|
67
67
|
};
|
|
68
|
-
export var useTextAnimateStyle = function(prefixCls) {
|
|
68
|
+
export var useTextAnimateStyle = function useTextAnimateStyle(prefixCls) {
|
|
69
69
|
return useEditorStyleRegister('text-animate', function(token) {
|
|
70
70
|
var textAnimateToken = _object_spread_props(_object_spread({}, token), {
|
|
71
71
|
componentCls: ".".concat(prefixCls)
|
|
@@ -216,7 +216,7 @@ export function TypingAnimation(_0) {
|
|
|
216
216
|
];
|
|
217
217
|
var isComplete = !loop && currentWordIndex === wordsToAnimate.length - 1 && currentCharIndex >= currentWordGraphemes.length && phase !== 'deleting';
|
|
218
218
|
var shouldShowCursor = showCursor && !isComplete && (hasMultipleWords || loop || currentCharIndex < currentWordGraphemes.length);
|
|
219
|
-
var getCursorChar = function() {
|
|
219
|
+
var getCursorChar = function getCursorChar() {
|
|
220
220
|
switch(cursorStyle){
|
|
221
221
|
case 'block':
|
|
222
222
|
return '▌';
|
|
@@ -60,7 +60,7 @@ var animation = new Keyframes('animation', {
|
|
|
60
60
|
opacity: 1
|
|
61
61
|
}
|
|
62
62
|
});
|
|
63
|
-
var genStyle = function(token) {
|
|
63
|
+
var genStyle = function genStyle(token) {
|
|
64
64
|
var _obj;
|
|
65
65
|
return _define_property({}, token.componentCls, (_obj = {}, _define_property(_obj, '&-cursor', {
|
|
66
66
|
display: 'inline-block'
|
|
@@ -71,7 +71,7 @@ var genStyle = function(token) {
|
|
|
71
71
|
animationIterationCount: 'infinite'
|
|
72
72
|
}), _obj));
|
|
73
73
|
};
|
|
74
|
-
export var useTypingAnimationStyle = function(prefixCls) {
|
|
74
|
+
export var useTypingAnimationStyle = function useTypingAnimationStyle(prefixCls) {
|
|
75
75
|
return useEditorStyleRegister('typing-animation', function(token) {
|
|
76
76
|
var typingAnimationToken = _object_spread_props(_object_spread({}, token), {
|
|
77
77
|
componentCls: ".".concat(prefixCls)
|
|
@@ -144,7 +144,7 @@ import { useStyle } from "./style";
|
|
|
144
144
|
*
|
|
145
145
|
* @param props - 组件属性
|
|
146
146
|
* @returns 渲染的视觉列表组件
|
|
147
|
-
*/ var VisualListComponent = function(param) {
|
|
147
|
+
*/ var VisualListComponent = function VisualListComponent(param) {
|
|
148
148
|
var className = param.className, style = param.style, data = param.data, filter = param.filter, emptyRender = param.emptyRender, renderItem = param.renderItem, tmp = param.loading, legacyLoading = tmp === void 0 ? false : tmp, isLoading = param.isLoading, loadingRender = param.loadingRender, itemStyle = param.itemStyle, imageStyle = param.imageStyle, linkStyle = param.linkStyle, _param_shape = param.shape, shape = _param_shape === void 0 ? 'default' : _param_shape, _param_prefixCls = param.prefixCls, prefixCls = _param_prefixCls === void 0 ? 'visual-list' : _param_prefixCls, _param_variant = param.variant, variant = _param_variant === void 0 ? 'default' : _param_variant, description = param.description;
|
|
149
149
|
// 兼容旧属性
|
|
150
150
|
var loading = isLoading !== null && isLoading !== void 0 ? isLoading : legacyLoading;
|
|
@@ -223,14 +223,14 @@ import { useStyle } from "./style";
|
|
|
223
223
|
hashId: hashId,
|
|
224
224
|
shape: shape,
|
|
225
225
|
imageStyle: imageStyle,
|
|
226
|
-
onImageError: function() {}
|
|
226
|
+
onImageError: function onImageError() {}
|
|
227
227
|
})) : /*#__PURE__*/ React.createElement(ImageComponent, {
|
|
228
228
|
item: item,
|
|
229
229
|
prefixCls: prefixCls,
|
|
230
230
|
hashId: hashId,
|
|
231
231
|
shape: shape,
|
|
232
232
|
imageStyle: imageStyle,
|
|
233
|
-
onImageError: function() {}
|
|
233
|
+
onImageError: function onImageError() {}
|
|
234
234
|
}));
|
|
235
235
|
});
|
|
236
236
|
// 使用 useMemo 优化列表渲染
|
|
@@ -51,7 +51,7 @@ function _object_spread_props(target, source) {
|
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
53
|
import { useEditorStyleRegister } from "../../Hooks/useStyle";
|
|
54
|
-
var genStyle = function(token) {
|
|
54
|
+
var genStyle = function genStyle(token) {
|
|
55
55
|
var _obj, _obj1;
|
|
56
56
|
return _obj1 = {}, _define_property(_obj1, token.componentCls, (_obj = {
|
|
57
57
|
display: 'flex',
|
|
@@ -37,7 +37,7 @@ import creativeRecommendation from "./creativeRecommendation.json";
|
|
|
37
37
|
* @param props.style - 动画容器自定义样式
|
|
38
38
|
* @param props.size - 动画尺寸(宽度和高度)
|
|
39
39
|
* @returns 渲染的创意推荐闪动组件
|
|
40
|
-
*/ export var CreativeRecommendationEffect = function(param) {
|
|
40
|
+
*/ export var CreativeRecommendationEffect = function CreativeRecommendationEffect(param) {
|
|
41
41
|
var _param_autoplay = param.autoplay, autoplay = _param_autoplay === void 0 ? true : _param_autoplay, _param_loop = param.loop, loop = _param_loop === void 0 ? true : _param_loop, className = param.className, style = param.style, size = param.size;
|
|
42
42
|
return /*#__PURE__*/ React.createElement(EffectPlayer, {
|
|
43
43
|
sceneUrl: creativeRecommendation,
|
|
@@ -37,7 +37,7 @@ import loadingEffect from "./loading.json";
|
|
|
37
37
|
* @param props.style - 动画容器自定义样式
|
|
38
38
|
* @param props.size - 动画尺寸(宽度和高度)
|
|
39
39
|
* @returns 渲染的加载动画组件
|
|
40
|
-
*/ export var LoadingEffect = function(param) {
|
|
40
|
+
*/ export var LoadingEffect = function LoadingEffect(param) {
|
|
41
41
|
var _param_autoplay = param.autoplay, autoplay = _param_autoplay === void 0 ? true : _param_autoplay, _param_loop = param.loop, loop = _param_loop === void 0 ? true : _param_loop, className = param.className, style = param.style, size = param.size;
|
|
42
42
|
return /*#__PURE__*/ React.createElement(EffectPlayer, {
|
|
43
43
|
sceneUrl: loadingEffect,
|
|
@@ -118,7 +118,7 @@ import React from "react";
|
|
|
118
118
|
* - 内置 CSS 动画,自动旋转
|
|
119
119
|
* - 使用 24x24 的 viewBox
|
|
120
120
|
* - 包含背景圆环和前景进度条
|
|
121
|
-
*/ export var LoadingSpinnerIcon = function(_0) {
|
|
121
|
+
*/ export var LoadingSpinnerIcon = function LoadingSpinnerIcon(_0) {
|
|
122
122
|
var _0_size = _0.size, size = _0_size === void 0 ? 24 : _0_size, props = _object_without_properties(_0, [
|
|
123
123
|
"size"
|
|
124
124
|
]);
|
|
@@ -65,7 +65,7 @@ import creativeSpark from "./creativeSpark.json";
|
|
|
65
65
|
* @param props.style - 动画容器自定义样式
|
|
66
66
|
* @param props.size - 动画尺寸(宽度和高度)
|
|
67
67
|
* @returns 渲染的创意生成中火花组件
|
|
68
|
-
*/ export var CreativeSparkLottie = function(param) {
|
|
68
|
+
*/ export var CreativeSparkLottie = function CreativeSparkLottie(param) {
|
|
69
69
|
var _param_autoplay = param.autoplay, autoplay = _param_autoplay === void 0 ? true : _param_autoplay, _param_loop = param.loop, loop = _param_loop === void 0 ? true : _param_loop, className = param.className, style = param.style, size = param.size;
|
|
70
70
|
var containerStyle = _object_spread({
|
|
71
71
|
width: size,
|
|
@@ -62,7 +62,7 @@ import dazingLottie from "./dazing.json";
|
|
|
62
62
|
* - 支持播放控制
|
|
63
63
|
* - 支持自定义样式
|
|
64
64
|
* - 提供默认的加载动画
|
|
65
|
-
*/ export var DazingLottie = function(param) {
|
|
65
|
+
*/ export var DazingLottie = function DazingLottie(param) {
|
|
66
66
|
var _param_autoplay = param.autoplay, autoplay = _param_autoplay === void 0 ? true : _param_autoplay, _param_loop = param.loop, loop = _param_loop === void 0 ? true : _param_loop, className = param.className, style = param.style, size = param.size;
|
|
67
67
|
var containerStyle = _object_spread({
|
|
68
68
|
width: size,
|
|
@@ -65,7 +65,7 @@ import loadingLottie from "./loading.json";
|
|
|
65
65
|
* @param props.style - 动画容器自定义样式
|
|
66
66
|
* @param props.size - 动画尺寸(宽度和高度)
|
|
67
67
|
* @returns 渲染的加载动画组件
|
|
68
|
-
*/ export var LoadingLottie = function(param) {
|
|
68
|
+
*/ export var LoadingLottie = function LoadingLottie(param) {
|
|
69
69
|
var _param_autoplay = param.autoplay, autoplay = _param_autoplay === void 0 ? true : _param_autoplay, _param_loop = param.loop, loop = _param_loop === void 0 ? true : _param_loop, className = param.className, style = param.style, size = param.size;
|
|
70
70
|
var containerStyle = _object_spread({
|
|
71
71
|
width: size,
|
|
@@ -63,7 +63,7 @@ import { useStyle } from "./style";
|
|
|
63
63
|
* @param props.style - 容器自定义样式
|
|
64
64
|
* @param props.fontSize - 字体大小
|
|
65
65
|
* @returns 渲染的文字加载组件
|
|
66
|
-
*/ export var TextLoading = function(param) {
|
|
66
|
+
*/ export var TextLoading = function TextLoading(param) {
|
|
67
67
|
var _param_text = param.text, text = _param_text === void 0 ? 'Loading...' : _param_text, _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, _param_theme = param.theme, theme = _param_theme === void 0 ? 'light' : _param_theme, className = param.className, style = param.style, fontSize = param.fontSize;
|
|
68
68
|
var getPrefixCls = useContext(ConfigProvider.ConfigContext).getPrefixCls;
|
|
69
69
|
var prefixCls = getPrefixCls('agentic-text-loading');
|
|
@@ -61,7 +61,7 @@ var shine = new Keyframes('shine', {
|
|
|
61
61
|
backgroundPosition: '-100%'
|
|
62
62
|
}
|
|
63
63
|
});
|
|
64
|
-
var genStyle = function(token) {
|
|
64
|
+
var genStyle = function genStyle(token) {
|
|
65
65
|
return _define_property({}, token.componentCls, {
|
|
66
66
|
display: 'inline-block',
|
|
67
67
|
animationName: shine,
|