refactor: update import paths and remove unused props in block selector components

This commit is contained in:
zhsama 2025-09-28 15:21:44 +08:00
parent 3edf1e2f59
commit b100ce15cd
4 changed files with 7 additions and 8 deletions

View File

@ -25,7 +25,6 @@ const AllStartBlocks = ({
className,
searchText,
onSelect,
availableBlocksTypes,
tags = [],
}: AllStartBlocksProps) => {
const { t } = useTranslation()

View File

@ -5,10 +5,10 @@ import { RiArrowDownSLine, RiArrowRightSLine } from '@remixicon/react'
import type { FC } from 'react'
import React, { useEffect, useMemo, useRef } from 'react'
import { useTranslation } from 'react-i18next'
import { CollectionType } from '../../../tools/types'
import BlockIcon from '../../block-icon'
import { BlockEnum } from '../../types'
import type { TriggerDefaultValue, TriggerWithProvider } from '../types'
import { CollectionType } from '@/app/components/tools/types'
import BlockIcon from '@/app/components/workflow/block-icon'
import { BlockEnum } from '@/app/components/workflow/types'
import type { TriggerDefaultValue, TriggerWithProvider } from '@/app/components/workflow/block-selector/types'
import TriggerPluginActionItem from './action-item'
type Props = {
@ -86,6 +86,7 @@ const TriggerPluginItem: FC<Props> = ({
trigger_label: trigger.label[language],
trigger_description: trigger.description[language],
title: trigger.label[language],
plugin_unique_identifier: payload.plugin_unique_identifier,
is_team_authorization: payload.is_team_authorization,
output_schema: trigger.output_schema || {},
paramSchemas: trigger.parameters,

View File

@ -17,7 +17,6 @@ const TriggerPluginList = ({
onSelect,
searchText,
onContentStateChange,
tags = [],
}: TriggerPluginListProps) => {
const { data: triggerPluginsData } = useAllTriggerPlugins()
const language = useGetLanguage()

View File

@ -3,7 +3,7 @@ import type { FC } from 'react'
import {
RiBracesLine,
} from '@remixicon/react'
import type { PluginTriggerVarInputs } from '../../types'
import type { PluginTriggerVarInputs } from '@/app/components/workflow/nodes/trigger-plugin/types'
import type { CredentialFormSchema } from '@/app/components/header/account-setting/model-provider-page/declarations'
import { FormTypeEnum } from '@/app/components/header/account-setting/model-provider-page/declarations'
import { useLanguage } from '@/app/components/header/account-setting/model-provider-page/hooks'
@ -13,7 +13,7 @@ import FormInputItem from '@/app/components/workflow/nodes/_base/components/form
import { useBoolean } from 'ahooks'
import SchemaModal from '@/app/components/plugins/plugin-detail-panel/tool-selector/schema-modal'
import type { Trigger } from '@/app/components/tools/types'
import type { TriggerWithProvider } from '../../../../block-selector/types'
import type { TriggerWithProvider } from '@/app/components/workflow/block-selector/types'
type Props = {
readOnly: boolean