feat: add providerType prop to form components for dynamic behavior

- Introduced `providerType` prop in `FormInputItem`, `ToolForm`, and `ToolFormItem` components to support both 'tool' and 'trigger' types, enhancing flexibility in handling different provider scenarios.
- Updated the `useFetchDynamicOptions` function to accept `provider_type` as 'tool' | 'trigger', allowing for more dynamic option fetching based on the provider type.

These changes improve the adaptability of the form components and streamline the integration of different provider types in the workflow.
This commit is contained in:
Harry
2025-09-08 18:29:48 +08:00
parent ac38614171
commit 01b2f9cff6
5 changed files with 11 additions and 2 deletions

View File

@ -42,6 +42,7 @@ const Panel: FC<NodePanelProps<PluginTriggerNodeType>> = ({
schema={triggerParameterSchema as any}
value={triggerParameterValue}
onChange={setTriggerParameterValue}
providerType="trigger"
/>
</div>
<Split />