|
|
|
@ -21,7 +21,6 @@ import PluginList, { type ListProps } from '@/app/components/workflow/block-sele
|
|
|
|
import { PluginType } from '../../plugins/types'
|
|
|
|
import { PluginType } from '../../plugins/types'
|
|
|
|
import { useMarketplacePlugins } from '../../plugins/marketplace/hooks'
|
|
|
|
import { useMarketplacePlugins } from '../../plugins/marketplace/hooks'
|
|
|
|
import { useGlobalPublicStore } from '@/context/global-public-context'
|
|
|
|
import { useGlobalPublicStore } from '@/context/global-public-context'
|
|
|
|
import useCheckVerticalScrollbar from './use-check-vertical-scrollbar'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type AllToolsProps = {
|
|
|
|
type AllToolsProps = {
|
|
|
|
className?: string
|
|
|
|
className?: string
|
|
|
|
@ -107,7 +106,6 @@ const AllTools = ({
|
|
|
|
|
|
|
|
|
|
|
|
const pluginRef = useRef<ListRef>(null)
|
|
|
|
const pluginRef = useRef<ListRef>(null)
|
|
|
|
const wrapElemRef = useRef<HTMLDivElement>(null)
|
|
|
|
const wrapElemRef = useRef<HTMLDivElement>(null)
|
|
|
|
const hasVerticalScrollbar = useCheckVerticalScrollbar(wrapElemRef)
|
|
|
|
|
|
|
|
const isSupportGroupView = [ToolTypeEnum.All, ToolTypeEnum.BuiltIn].includes(activeTab)
|
|
|
|
const isSupportGroupView = [ToolTypeEnum.All, ToolTypeEnum.BuiltIn].includes(activeTab)
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
@ -150,7 +148,6 @@ const AllTools = ({
|
|
|
|
hasSearchText={!!searchText}
|
|
|
|
hasSearchText={!!searchText}
|
|
|
|
selectedTools={selectedTools}
|
|
|
|
selectedTools={selectedTools}
|
|
|
|
canChooseMCPTool={canChooseMCPTool}
|
|
|
|
canChooseMCPTool={canChooseMCPTool}
|
|
|
|
hasScrollBar={hasVerticalScrollbar}
|
|
|
|
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
{/* Plugins from marketplace */}
|
|
|
|
{/* Plugins from marketplace */}
|
|
|
|
{enable_marketplace && <PluginList
|
|
|
|
{enable_marketplace && <PluginList
|
|
|
|
|