feat: Simplify the import statements in InteractiveComponents.tsx

This commit is contained in:
sd0ric4
2025-03-26 18:50:14 +08:00
parent 7dd8bc9fb8
commit 604fb6f7da

View File

@@ -10,18 +10,13 @@ import MyTextarea from '@/components/common/Textarea/MyTextarea';
import MyNumberInput from '@fastgpt/web/components/common/Input/NumberInput'; import MyNumberInput from '@fastgpt/web/components/common/Input/NumberInput';
import { FlowNodeInputTypeEnum } from '@fastgpt/global/core/workflow/node/constant'; import { FlowNodeInputTypeEnum } from '@fastgpt/global/core/workflow/node/constant';
import { import {
InteractiveBasicType,
UserInputInteractive, UserInputInteractive,
UserSelectInteractive UserSelectInteractive
} from '@fastgpt/global/core/workflow/template/system/interactive/type'; } from '@fastgpt/global/core/workflow/template/system/interactive/type';
import { useContextSelector } from 'use-context-selector'; import { useContextSelector } from 'use-context-selector';
import { WorkflowContext } from '@/pageComponents/app/detail/WorkflowComponents/context'; import { WorkflowContext } from '@/pageComponents/app/detail/WorkflowComponents/context';
import { ChatItemValueTypeEnum, ChatRoleEnum } from '@fastgpt/global/core/chat/constants'; import { ChatItemValueTypeEnum, ChatRoleEnum } from '@fastgpt/global/core/chat/constants';
import { import { ChatItemType, UserChatItemValueItemType } from '@fastgpt/global/core/chat/type';
AIChatItemValueItemType,
ChatItemType,
UserChatItemValueItemType
} from '@fastgpt/global/core/chat/type';
import MyIcon from '@fastgpt/web/components/common/Icon'; import MyIcon from '@fastgpt/web/components/common/Icon';
import { StoreEdgeItemType, RuntimeEdgeItemType } from '@fastgpt/global/core/workflow/type/edge'; import { StoreEdgeItemType, RuntimeEdgeItemType } from '@fastgpt/global/core/workflow/type/edge';
import { initWorkflowEdgeStatus } from '@fastgpt/global/core/workflow/runtime/utils'; import { initWorkflowEdgeStatus } from '@fastgpt/global/core/workflow/runtime/utils';