@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
package/dist/Types/message.d.ts
CHANGED
package/dist/Utils/debugUtils.js
CHANGED
|
@@ -29,7 +29,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
29
29
|
* 调试信息输出函数
|
|
30
30
|
* @param message 调试信息
|
|
31
31
|
* @param args 额外参数
|
|
32
|
-
*/ export var debugInfo = function(message) {
|
|
32
|
+
*/ export var debugInfo = function debugInfo(message) {
|
|
33
33
|
for(var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
|
|
34
34
|
args[_key - 1] = arguments[_key];
|
|
35
35
|
}
|
package/dist/Utils/formatTime.js
CHANGED
|
@@ -27,7 +27,7 @@ import dayjs from "dayjs";
|
|
|
27
27
|
* - 不同年份:显示 YYYY-MM-DD HH:mm:ss 格式
|
|
28
28
|
* - 测试环境下返回固定时间避免测试不稳定
|
|
29
29
|
* - 基于 dayjs 进行时间处理
|
|
30
|
-
*/ export var formatTime = function(time) {
|
|
30
|
+
*/ export var formatTime = function formatTime(time) {
|
|
31
31
|
if (typeof process !== 'undefined' && process.env.NODE_ENV === 'test') {
|
|
32
32
|
return '2024-02-27 17:20:00';
|
|
33
33
|
}
|
package/dist/Utils/getScroll.js
CHANGED
|
@@ -8,7 +8,7 @@ function _instanceof(left, right) {
|
|
|
8
8
|
export function isWindow(obj) {
|
|
9
9
|
return obj !== null && obj !== undefined && obj === obj.window;
|
|
10
10
|
}
|
|
11
|
-
var getScroll = function(target) {
|
|
11
|
+
var getScroll = function getScroll(target) {
|
|
12
12
|
if (typeof window === 'undefined') {
|
|
13
13
|
/* istanbul ignore next */ return 0;
|
|
14
14
|
}
|
|
@@ -34,7 +34,7 @@ var getScroll = function(target) {
|
|
|
34
34
|
}
|
|
35
35
|
return result;
|
|
36
36
|
};
|
|
37
|
-
export var getScrollRailHeight = function(target) {
|
|
37
|
+
export var getScrollRailHeight = function getScrollRailHeight(target) {
|
|
38
38
|
if (typeof window === 'undefined') {
|
|
39
39
|
/* istanbul ignore next */ return 0;
|
|
40
40
|
}
|
package/dist/Utils/loadCSS.js
CHANGED
|
@@ -148,7 +148,7 @@ function _ts_generator(thisArg, body) {
|
|
|
148
148
|
* // 不推荐:直接使用字符串路径(仅适用于外部 URL)
|
|
149
149
|
* await loadCSS('https://example.com/style.css');
|
|
150
150
|
* ```
|
|
151
|
-
*/ export var loadCSS = function(cssPath) {
|
|
151
|
+
*/ export var loadCSS = function loadCSS(cssPath) {
|
|
152
152
|
return _async_to_generator(function() {
|
|
153
153
|
var pathKey, error, existingLink, link;
|
|
154
154
|
return _ts_generator(this, function(_state) {
|
|
@@ -250,7 +250,7 @@ function _ts_generator(thisArg, body) {
|
|
|
250
250
|
* 使用低优先级加载,不阻塞当前执行
|
|
251
251
|
*
|
|
252
252
|
* @param cssPath - CSS 文件路径
|
|
253
|
-
*/ export var preloadCSS = function(cssPath) {
|
|
253
|
+
*/ export var preloadCSS = function preloadCSS(cssPath) {
|
|
254
254
|
if (typeof window === 'undefined') {
|
|
255
255
|
return;
|
|
256
256
|
}
|
|
@@ -440,10 +440,10 @@ var DANGEROUS_GLOBALS = [
|
|
|
440
440
|
safeDocument.head = null;
|
|
441
441
|
// 模拟安全的 cookie(空)
|
|
442
442
|
Object.defineProperty(safeDocument, 'cookie', {
|
|
443
|
-
get: function() {
|
|
443
|
+
get: function get() {
|
|
444
444
|
return '';
|
|
445
445
|
},
|
|
446
|
-
set: function() {},
|
|
446
|
+
set: function set() {},
|
|
447
447
|
enumerable: true,
|
|
448
448
|
configurable: false
|
|
449
449
|
});
|
|
@@ -474,15 +474,15 @@ var DANGEROUS_GLOBALS = [
|
|
|
474
474
|
className: '',
|
|
475
475
|
innerHTML: '',
|
|
476
476
|
textContent: '',
|
|
477
|
-
setAttribute: function() {},
|
|
478
|
-
getAttribute: function() {
|
|
477
|
+
setAttribute: function setAttribute() {},
|
|
478
|
+
getAttribute: function getAttribute() {
|
|
479
479
|
return null;
|
|
480
480
|
},
|
|
481
|
-
removeAttribute: function() {},
|
|
482
|
-
appendChild: function() {},
|
|
483
|
-
removeChild: function() {},
|
|
484
|
-
addEventListener: function() {},
|
|
485
|
-
removeEventListener: function() {}
|
|
481
|
+
removeAttribute: function removeAttribute() {},
|
|
482
|
+
appendChild: function appendChild() {},
|
|
483
|
+
removeChild: function removeChild() {},
|
|
484
|
+
addEventListener: function addEventListener() {},
|
|
485
|
+
removeEventListener: function removeEventListener() {}
|
|
486
486
|
};
|
|
487
487
|
};
|
|
488
488
|
safeDocument.createTextNode = function(data) {
|
|
@@ -495,18 +495,18 @@ var DANGEROUS_GLOBALS = [
|
|
|
495
495
|
safeDocument.createDocumentFragment = function() {
|
|
496
496
|
return {
|
|
497
497
|
nodeType: 11,
|
|
498
|
-
appendChild: function() {},
|
|
499
|
-
querySelector: function() {
|
|
498
|
+
appendChild: function appendChild() {},
|
|
499
|
+
querySelector: function querySelector() {
|
|
500
500
|
return null;
|
|
501
501
|
},
|
|
502
|
-
querySelectorAll: function() {
|
|
502
|
+
querySelectorAll: function querySelectorAll() {
|
|
503
503
|
return [];
|
|
504
504
|
}
|
|
505
505
|
};
|
|
506
506
|
};
|
|
507
507
|
// 创建代理来拦截其他属性访问
|
|
508
508
|
return new Proxy(safeDocument, {
|
|
509
|
-
get: function(target, prop, receiver) {
|
|
509
|
+
get: function get(target, prop, receiver) {
|
|
510
510
|
var propStr = String(prop);
|
|
511
511
|
// 阻止访问危险属性
|
|
512
512
|
var dangerousDocumentProps = [
|
|
@@ -539,7 +539,7 @@ var DANGEROUS_GLOBALS = [
|
|
|
539
539
|
// 对于其他属性,返回 undefined
|
|
540
540
|
return undefined;
|
|
541
541
|
},
|
|
542
|
-
set: function(target, prop, value, receiver) {
|
|
542
|
+
set: function set(target, prop, value, receiver) {
|
|
543
543
|
var propStr = String(prop);
|
|
544
544
|
// 阻止设置敏感属性
|
|
545
545
|
var readOnlyProps = [
|
|
@@ -556,7 +556,7 @@ var DANGEROUS_GLOBALS = [
|
|
|
556
556
|
// 允许设置其他属性(在沙箱对象内)
|
|
557
557
|
return Reflect.set(target, prop, value, receiver);
|
|
558
558
|
},
|
|
559
|
-
has: function(target, prop) {
|
|
559
|
+
has: function has(target, prop) {
|
|
560
560
|
var propStr = String(prop);
|
|
561
561
|
// 危险属性始终返回 false
|
|
562
562
|
var dangerousDocumentProps = [
|
|
@@ -659,7 +659,7 @@ var DANGEROUS_GLOBALS = [
|
|
|
659
659
|
}
|
|
660
660
|
// 创建代理来拦截属性访问
|
|
661
661
|
return new Proxy(safeWindow, {
|
|
662
|
-
get: function(target, prop, receiver) {
|
|
662
|
+
get: function get(target, prop, receiver) {
|
|
663
663
|
var propStr = String(prop);
|
|
664
664
|
// 检查是否是敏感属性
|
|
665
665
|
if (sensitiveProperties.includes(propStr)) {
|
|
@@ -672,13 +672,13 @@ var DANGEROUS_GLOBALS = [
|
|
|
672
672
|
// 返回一个模拟的空存储对象
|
|
673
673
|
return {
|
|
674
674
|
length: 0,
|
|
675
|
-
getItem: function() {
|
|
675
|
+
getItem: function getItem() {
|
|
676
676
|
return null;
|
|
677
677
|
},
|
|
678
|
-
setItem: function() {},
|
|
679
|
-
removeItem: function() {},
|
|
680
|
-
clear: function() {},
|
|
681
|
-
key: function() {
|
|
678
|
+
setItem: function setItem() {},
|
|
679
|
+
removeItem: function removeItem() {},
|
|
680
|
+
clear: function clear() {},
|
|
681
|
+
key: function key() {
|
|
682
682
|
return null;
|
|
683
683
|
}
|
|
684
684
|
};
|
|
@@ -716,7 +716,7 @@ var DANGEROUS_GLOBALS = [
|
|
|
716
716
|
// 对于其他属性,返回 undefined
|
|
717
717
|
return undefined;
|
|
718
718
|
},
|
|
719
|
-
set: function(target, prop, value, receiver) {
|
|
719
|
+
set: function set(target, prop, value, receiver) {
|
|
720
720
|
var propStr = String(prop);
|
|
721
721
|
// 禁止设置敏感属性
|
|
722
722
|
if (sensitiveProperties.includes(propStr)) {
|
|
@@ -725,7 +725,7 @@ var DANGEROUS_GLOBALS = [
|
|
|
725
725
|
// 允许设置其他属性(在沙箱对象内)
|
|
726
726
|
return Reflect.set(target, prop, value, receiver);
|
|
727
727
|
},
|
|
728
|
-
has: function(target, prop) {
|
|
728
|
+
has: function has(target, prop) {
|
|
729
729
|
var propStr = String(prop);
|
|
730
730
|
// 敏感属性始终返回 false
|
|
731
731
|
if (sensitiveProperties.includes(propStr)) {
|
|
@@ -733,14 +733,14 @@ var DANGEROUS_GLOBALS = [
|
|
|
733
733
|
}
|
|
734
734
|
return Reflect.has(target, prop);
|
|
735
735
|
},
|
|
736
|
-
ownKeys: function(target) {
|
|
736
|
+
ownKeys: function ownKeys(target) {
|
|
737
737
|
// 只返回安全属性的键
|
|
738
738
|
var allKeys = Reflect.ownKeys(target);
|
|
739
739
|
return allKeys.filter(function(key) {
|
|
740
740
|
return !sensitiveProperties.includes(String(key));
|
|
741
741
|
});
|
|
742
742
|
},
|
|
743
|
-
getOwnPropertyDescriptor: function(target, prop) {
|
|
743
|
+
getOwnPropertyDescriptor: function getOwnPropertyDescriptor(target, prop) {
|
|
744
744
|
var propStr = String(prop);
|
|
745
745
|
if (sensitiveProperties.includes(propStr)) {
|
|
746
746
|
return undefined;
|
|
@@ -813,7 +813,7 @@ var DANGEROUS_GLOBALS = [
|
|
|
813
813
|
*/ function createSafeConsole() {
|
|
814
814
|
var _console, _console1, _console2, _console3, _console4;
|
|
815
815
|
return {
|
|
816
|
-
log: function() {
|
|
816
|
+
log: function log() {
|
|
817
817
|
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
|
|
818
818
|
args[_key] = arguments[_key];
|
|
819
819
|
}
|
|
@@ -821,7 +821,7 @@ var DANGEROUS_GLOBALS = [
|
|
|
821
821
|
'[Sandbox]'
|
|
822
822
|
].concat(_to_consumable_array(args)));
|
|
823
823
|
},
|
|
824
|
-
warn: function() {
|
|
824
|
+
warn: function warn() {
|
|
825
825
|
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
|
|
826
826
|
args[_key] = arguments[_key];
|
|
827
827
|
}
|
|
@@ -829,7 +829,7 @@ var DANGEROUS_GLOBALS = [
|
|
|
829
829
|
'[Sandbox]'
|
|
830
830
|
].concat(_to_consumable_array(args)));
|
|
831
831
|
},
|
|
832
|
-
error: function() {
|
|
832
|
+
error: function error() {
|
|
833
833
|
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
|
|
834
834
|
args[_key] = arguments[_key];
|
|
835
835
|
}
|
|
@@ -837,7 +837,7 @@ var DANGEROUS_GLOBALS = [
|
|
|
837
837
|
'[Sandbox]'
|
|
838
838
|
].concat(_to_consumable_array(args)));
|
|
839
839
|
},
|
|
840
|
-
info: function() {
|
|
840
|
+
info: function info() {
|
|
841
841
|
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
|
|
842
842
|
args[_key] = arguments[_key];
|
|
843
843
|
}
|
|
@@ -845,7 +845,7 @@ var DANGEROUS_GLOBALS = [
|
|
|
845
845
|
'[Sandbox]'
|
|
846
846
|
].concat(_to_consumable_array(args)));
|
|
847
847
|
},
|
|
848
|
-
debug: function() {
|
|
848
|
+
debug: function debug() {
|
|
849
849
|
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
|
|
850
850
|
args[_key] = arguments[_key];
|
|
851
851
|
}
|
|
@@ -868,7 +868,7 @@ var DANGEROUS_GLOBALS = [
|
|
|
868
868
|
if (typeof callback !== 'function') {
|
|
869
869
|
throw new TypeError('Callback must be a function');
|
|
870
870
|
}
|
|
871
|
-
var safeCallback = function() {
|
|
871
|
+
var safeCallback = function safeCallback() {
|
|
872
872
|
try {
|
|
873
873
|
callback.apply(null, args);
|
|
874
874
|
} catch (error) {
|
|
@@ -891,7 +891,7 @@ var DANGEROUS_GLOBALS = [
|
|
|
891
891
|
if (typeof callback !== 'function') {
|
|
892
892
|
throw new TypeError('Callback must be a function');
|
|
893
893
|
}
|
|
894
|
-
var safeCallback = function() {
|
|
894
|
+
var safeCallback = function safeCallback() {
|
|
895
895
|
try {
|
|
896
896
|
callback.apply(null, args);
|
|
897
897
|
} catch (error) {
|
|
@@ -909,7 +909,7 @@ var DANGEROUS_GLOBALS = [
|
|
|
909
909
|
*/ function createGlobalProxy() {
|
|
910
910
|
var _this = this;
|
|
911
911
|
return new Proxy(this.sandboxGlobal, {
|
|
912
|
-
get: function(target, prop, receiver) {
|
|
912
|
+
get: function get(target, prop, receiver) {
|
|
913
913
|
var propStr = String(prop);
|
|
914
914
|
// 检查是否在禁止列表中
|
|
915
915
|
if (_this.config.forbiddenGlobals.includes(propStr)) {
|
|
@@ -936,7 +936,7 @@ var DANGEROUS_GLOBALS = [
|
|
|
936
936
|
// 如果不在任何允许的列表中,返回 undefined
|
|
937
937
|
return undefined;
|
|
938
938
|
},
|
|
939
|
-
set: function(target, prop, value, receiver) {
|
|
939
|
+
set: function set(target, prop, value, receiver) {
|
|
940
940
|
var propStr = String(prop);
|
|
941
941
|
// 检查是否在禁止列表中
|
|
942
942
|
if (_this.config.forbiddenGlobals.includes(propStr)) {
|
|
@@ -945,7 +945,7 @@ var DANGEROUS_GLOBALS = [
|
|
|
945
945
|
// 只允许设置已存在的属性或新的变量
|
|
946
946
|
return Reflect.set(target, prop, value, receiver);
|
|
947
947
|
},
|
|
948
|
-
has: function(target, prop) {
|
|
948
|
+
has: function has(target, prop) {
|
|
949
949
|
var propStr = String(prop);
|
|
950
950
|
// 如果在禁止列表中,返回 false
|
|
951
951
|
if (_this.config.forbiddenGlobals.includes(propStr)) {
|
|
@@ -954,14 +954,14 @@ var DANGEROUS_GLOBALS = [
|
|
|
954
954
|
// 如果在允许列表中或目标对象中,返回 true
|
|
955
955
|
return _this.config.allowedGlobals.includes(propStr) || Reflect.has(target, prop);
|
|
956
956
|
},
|
|
957
|
-
ownKeys: function(target) {
|
|
957
|
+
ownKeys: function ownKeys(target) {
|
|
958
958
|
// 只返回允许的属性键
|
|
959
959
|
var allKeys = Reflect.ownKeys(target);
|
|
960
960
|
return allKeys.filter(function(key) {
|
|
961
961
|
return !_this.config.forbiddenGlobals.includes(String(key));
|
|
962
962
|
});
|
|
963
963
|
},
|
|
964
|
-
getOwnPropertyDescriptor: function(target, prop) {
|
|
964
|
+
getOwnPropertyDescriptor: function getOwnPropertyDescriptor(target, prop) {
|
|
965
965
|
var propStr = String(prop);
|
|
966
966
|
if (_this.config.forbiddenGlobals.includes(propStr)) {
|
|
967
967
|
return undefined;
|
|
@@ -284,12 +284,12 @@ function _ts_generator(thisArg, body) {
|
|
|
284
284
|
* 创建性能监控器
|
|
285
285
|
*/ function createPerformanceMonitor() {
|
|
286
286
|
return {
|
|
287
|
-
mark: function(name) {
|
|
287
|
+
mark: function mark(name) {
|
|
288
288
|
if (typeof performance !== 'undefined' && performance.mark) {
|
|
289
289
|
performance.mark("sandbox-".concat(name));
|
|
290
290
|
}
|
|
291
291
|
},
|
|
292
|
-
measure: function(name, startMark, endMark) {
|
|
292
|
+
measure: function measure(name, startMark, endMark) {
|
|
293
293
|
if (typeof performance !== 'undefined' && performance.measure) {
|
|
294
294
|
try {
|
|
295
295
|
performance.measure(name, "sandbox-".concat(startMark), "sandbox-".concat(endMark));
|
|
@@ -307,11 +307,11 @@ function _ts_generator(thisArg, body) {
|
|
|
307
307
|
* 创建错误追踪器
|
|
308
308
|
*/ function createErrorTracker() {
|
|
309
309
|
return {
|
|
310
|
-
captureError: function(error, context) {
|
|
310
|
+
captureError: function captureError(error, context) {
|
|
311
311
|
console.error("[Sandbox Error] ".concat(context, ":"), error);
|
|
312
312
|
// 这里可以集成第三方错误追踪服务
|
|
313
313
|
},
|
|
314
|
-
captureWarning: function(message, context) {
|
|
314
|
+
captureWarning: function captureWarning(message, context) {
|
|
315
315
|
console.warn("[Sandbox Warning] ".concat(context, ": ").concat(message));
|
|
316
316
|
}
|
|
317
317
|
};
|
|
@@ -323,13 +323,13 @@ function _ts_generator(thisArg, body) {
|
|
|
323
323
|
* 创建资源监控器
|
|
324
324
|
*/ function createResourceMonitor() {
|
|
325
325
|
return {
|
|
326
|
-
checkMemoryUsage: function() {
|
|
326
|
+
checkMemoryUsage: function checkMemoryUsage() {
|
|
327
327
|
if (typeof performance !== 'undefined' && performance.memory) {
|
|
328
328
|
return performance.memory.usedJSHeapSize;
|
|
329
329
|
}
|
|
330
330
|
return 0;
|
|
331
331
|
},
|
|
332
|
-
checkCallStackDepth: function(stack) {
|
|
332
|
+
checkCallStackDepth: function checkCallStackDepth(stack) {
|
|
333
333
|
if (stack) {
|
|
334
334
|
return stack.split('\n').length;
|
|
335
335
|
}
|
package/dist/Utils/scrollTo.js
CHANGED
|
@@ -27,7 +27,7 @@ export default function scrollTo(y) {
|
|
|
27
27
|
}
|
|
28
28
|
var scrollTop = getScroll(container);
|
|
29
29
|
var startTime = Date.now();
|
|
30
|
-
var frameFunc = function() {
|
|
30
|
+
var frameFunc = function frameFunc1() {
|
|
31
31
|
// Check if we're still in a browser environment
|
|
32
32
|
if (typeof window === 'undefined') {
|
|
33
33
|
if (typeof callback === 'function') {
|
|
@@ -26,13 +26,13 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
26
26
|
import raf from "rc-util/lib/raf";
|
|
27
27
|
function throttleByAnimationFrame(fn) {
|
|
28
28
|
var requestId = null;
|
|
29
|
-
var later = function(args) {
|
|
29
|
+
var later = function later(args) {
|
|
30
30
|
return function() {
|
|
31
31
|
requestId = null;
|
|
32
32
|
fn.apply(void 0, _to_consumable_array(args));
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
|
-
var throttled = function() {
|
|
35
|
+
var throttled = function throttled() {
|
|
36
36
|
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
|
|
37
37
|
args[_key] = arguments[_key];
|
|
38
38
|
}
|
|
@@ -113,7 +113,7 @@ import { useStyle } from "./style";
|
|
|
113
113
|
* - 支持 React.ReactNode 类型内容
|
|
114
114
|
* - 集成 Ant Design 主题系统
|
|
115
115
|
* - 响应式布局适配
|
|
116
|
-
*/ export var WelcomeMessage = function(param) {
|
|
116
|
+
*/ export var WelcomeMessage = function WelcomeMessage(param) {
|
|
117
117
|
var title = param.title, description = param.description, classNames = param.classNames, titleAnimateProps = param.titleAnimateProps, descriptionAnimateProps = param.descriptionAnimateProps, customStyle = param.style, rootClassName = param.rootClassName;
|
|
118
118
|
var getPrefixCls = useContext(ConfigProvider.ConfigContext).getPrefixCls;
|
|
119
119
|
var prefixCls = getPrefixCls('agentic-welcome');
|
|
@@ -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: 'inline-flex',
|
|
@@ -118,7 +118,7 @@ export var SUGGESTION_ITEM_STYLE = {
|
|
|
118
118
|
margin: '4px 0',
|
|
119
119
|
cursor: 'pointer'
|
|
120
120
|
};
|
|
121
|
-
var renderSiteAvatar = function(site, icon) {
|
|
121
|
+
var renderSiteAvatar = function renderSiteAvatar(site, icon) {
|
|
122
122
|
if (icon) {
|
|
123
123
|
return /*#__PURE__*/ React.createElement(Image, {
|
|
124
124
|
src: icon,
|
|
@@ -136,7 +136,7 @@ var renderSiteAvatar = function(site, icon) {
|
|
|
136
136
|
size: 20
|
|
137
137
|
}, letter);
|
|
138
138
|
};
|
|
139
|
-
var useBrowserContext = function() {
|
|
139
|
+
var useBrowserContext = function useBrowserContext() {
|
|
140
140
|
var getPrefixCls = useContext(ConfigProvider.ConfigContext).getPrefixCls;
|
|
141
141
|
var prefixCls = getPrefixCls('browser');
|
|
142
142
|
var _useBrowserStyle = useBrowserStyle(prefixCls), wrapSSR = _useBrowserStyle.wrapSSR, hashId = _useBrowserStyle.hashId;
|
|
@@ -146,14 +146,14 @@ var useBrowserContext = function() {
|
|
|
146
146
|
hashId: hashId
|
|
147
147
|
};
|
|
148
148
|
};
|
|
149
|
-
export var BrowserItemComponent = function(param) {
|
|
149
|
+
export var BrowserItemComponent = function BrowserItemComponent(param) {
|
|
150
150
|
var item = param.item, _param_itemStyle = param.itemStyle, itemStyle = _param_itemStyle === void 0 ? SUGGESTION_ITEM_STYLE : _param_itemStyle, className = param.className, onLocate = param.onLocate;
|
|
151
151
|
var _useBrowserContext = useBrowserContext(), prefixCls = _useBrowserContext.prefixCls, wrapSSR = _useBrowserContext.wrapSSR, hashId = _useBrowserContext.hashId;
|
|
152
152
|
var locale = useContext(I18nContext).locale;
|
|
153
|
-
var handleSiteClick = function() {
|
|
153
|
+
var handleSiteClick = function handleSiteClick() {
|
|
154
154
|
window.open(item.url, '_blank', 'noopener,noreferrer');
|
|
155
155
|
};
|
|
156
|
-
var handleLocate = function(e) {
|
|
156
|
+
var handleLocate = function handleLocate(e) {
|
|
157
157
|
e.stopPropagation();
|
|
158
158
|
onLocate === null || onLocate === void 0 ? void 0 : onLocate(item);
|
|
159
159
|
};
|
|
@@ -198,7 +198,7 @@ export var BrowserItemComponent = function(param) {
|
|
|
198
198
|
className: classNames("".concat(prefixCls, "-result-item-site-text"), hashId)
|
|
199
199
|
}, item.site))))));
|
|
200
200
|
};
|
|
201
|
-
export var BrowserHeader = function(param) {
|
|
201
|
+
export var BrowserHeader = function BrowserHeader(param) {
|
|
202
202
|
var activeLabel = param.activeLabel, onBack = param.onBack;
|
|
203
203
|
var _useBrowserContext = useBrowserContext(), prefixCls = _useBrowserContext.prefixCls, wrapSSR = _useBrowserContext.wrapSSR, hashId = _useBrowserContext.hashId;
|
|
204
204
|
return wrapSSR(/*#__PURE__*/ React.createElement("div", {
|
|
@@ -218,7 +218,7 @@ export var BrowserHeader = function(param) {
|
|
|
218
218
|
className: classNames("".concat(prefixCls, "-header-title"), hashId)
|
|
219
219
|
}, activeLabel))));
|
|
220
220
|
};
|
|
221
|
-
export var BrowserList = function(param) {
|
|
221
|
+
export var BrowserList = function BrowserList(param) {
|
|
222
222
|
var items = param.items, activeLabel = param.activeLabel, onBack = param.onBack, customHeader = param.customHeader, _param_showHeader = param.showHeader, showHeader = _param_showHeader === void 0 ? true : _param_showHeader, countFormatter = param.countFormatter, emptyText = param.emptyText, _param_loading = param.loading, loading = _param_loading === void 0 ? false : _param_loading, loadingText = param.loadingText, onLocate = param.onLocate;
|
|
223
223
|
var _useBrowserContext = useBrowserContext(), prefixCls = _useBrowserContext.prefixCls, wrapSSR = _useBrowserContext.wrapSSR, hashId = _useBrowserContext.hashId;
|
|
224
224
|
var locale = useContext(I18nContext).locale;
|
|
@@ -260,7 +260,7 @@ export var BrowserList = function(param) {
|
|
|
260
260
|
description: mergedEmptyText
|
|
261
261
|
})
|
|
262
262
|
},
|
|
263
|
-
renderItem: function(item) {
|
|
263
|
+
renderItem: function renderItem(item) {
|
|
264
264
|
return /*#__PURE__*/ React.createElement(BrowserItemComponent, {
|
|
265
265
|
key: item.id,
|
|
266
266
|
item: item,
|
|
@@ -272,7 +272,7 @@ export var BrowserList = function(param) {
|
|
|
272
272
|
footer: null
|
|
273
273
|
})));
|
|
274
274
|
};
|
|
275
|
-
var Browser = function(param) {
|
|
275
|
+
var Browser = function Browser(param) {
|
|
276
276
|
var suggestions = param.suggestions, request = param.request, suggestionIcon = param.suggestionIcon, countFormatter = param.countFormatter, emptyText = param.emptyText, loadingText = param.loadingText, onLocate = param.onLocate;
|
|
277
277
|
var _useState = _sliced_to_array(useState('suggestions'), 2), currentView = _useState[0], setCurrentView = _useState[1];
|
|
278
278
|
var _useState1 = _sliced_to_array(useState(null), 2), activeSuggestion = _useState1[0], setActiveSuggestion = _useState1[1];
|
|
@@ -295,7 +295,7 @@ var Browser = function(param) {
|
|
|
295
295
|
activeSuggestion,
|
|
296
296
|
request
|
|
297
297
|
]), results = _useMemo.items, loading = _useMemo.loading;
|
|
298
|
-
var handleExecuteSearch = function(suggestion) {
|
|
298
|
+
var handleExecuteSearch = function handleExecuteSearch(suggestion) {
|
|
299
299
|
setActiveSuggestion(suggestion);
|
|
300
300
|
setActiveLabel(suggestion.label);
|
|
301
301
|
setCurrentView('results');
|
|
@@ -304,10 +304,10 @@ var Browser = function(param) {
|
|
|
304
304
|
return wrapSSR(/*#__PURE__*/ React.createElement("div", null, currentView === 'suggestions' && /*#__PURE__*/ React.createElement("div", null, /*#__PURE__*/ React.createElement(List, {
|
|
305
305
|
dataSource: suggestions,
|
|
306
306
|
split: false,
|
|
307
|
-
renderItem: function(item) {
|
|
307
|
+
renderItem: function renderItem(item) {
|
|
308
308
|
return /*#__PURE__*/ React.createElement(List.Item, {
|
|
309
309
|
style: SUGGESTION_ITEM_STYLE,
|
|
310
|
-
onClick: function() {
|
|
310
|
+
onClick: function onClick() {
|
|
311
311
|
return handleExecuteSearch(item);
|
|
312
312
|
},
|
|
313
313
|
className: classNames("".concat(prefixCls, "-suggestion"), hashId),
|
|
@@ -336,7 +336,7 @@ var Browser = function(param) {
|
|
|
336
336
|
})), currentView === 'results' && /*#__PURE__*/ React.createElement(BrowserList, {
|
|
337
337
|
items: results,
|
|
338
338
|
activeLabel: activeLabel,
|
|
339
|
-
onBack: function() {
|
|
339
|
+
onBack: function onBack() {
|
|
340
340
|
return setCurrentView('suggestions');
|
|
341
341
|
},
|
|
342
342
|
countFormatter: countFormatter,
|
|
@@ -62,7 +62,7 @@ var fadeInUp = new Keyframes('fadeInUp', {
|
|
|
62
62
|
transform: 'translateY(0)'
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
|
-
var genStyle = function(token) {
|
|
65
|
+
var genStyle = function genStyle(token) {
|
|
66
66
|
var componentCls = token.componentCls;
|
|
67
67
|
var _obj, _obj1, _obj2;
|
|
68
68
|
return _define_property({}, componentCls, {
|