Fix vs code and using min version after bump @remixicon/react and @monaco-editor/loader (#27008)

This commit is contained in:
Eric Guo
2025-10-21 11:41:44 +08:00
committed by GitHub
parent 4e6682bd85
commit e45d5700ec
228 changed files with 57291 additions and 42718 deletions

View File

@@ -17,11 +17,11 @@ export type FeedbackType = {
export type FeedbackFunc = (
messageId: string,
feedback: FeedbackType
feedback: FeedbackType,
) => Promise<any>
export type SubmitAnnotationFunc = (
messageId: string,
content: string
content: string,
) => Promise<any>
export type DisplayScene = 'web' | 'console'

View File

@@ -15,7 +15,7 @@ type ISegmentListProps = {
selectedSegmentIds: string[]
onSelected: (segId: string) => void
onClick: (detail: SegmentDetailModel, isEditMode?: boolean) => void
onChangeSwitch: (enabled: boolean, segId?: string,) => Promise<void>
onChangeSwitch: (enabled: boolean, segId?: string) => Promise<void>
onDelete: (segId: string) => Promise<void>
onDeleteChildChunk: (sgId: string, childChunkId: string) => Promise<void>
handleAddNewChildChunk: (parentChunkId: string) => void

View File

@@ -144,7 +144,7 @@ export function SubProperty({ name, type, children }: ISubProperty) {
)
}
export function PropertyInstruction({ children }: PropsWithChildren<{}>) {
export function PropertyInstruction({ children }: PropsWithChildren<{ }>) {
return (
<li className="m-0 px-0 py-4 italic first:pt-0">{children}</li>
)

View File

@@ -48,8 +48,8 @@ type FormProps<
fieldMoreInfo?: (payload: CredentialFormSchema | CustomFormSchema) => ReactNode
customRenderField?: (
formSchema: CustomFormSchema,
props: Omit<FormProps<CustomFormSchema>, 'override' | 'customRenderField'>
) => ReactNode
props: Omit<FormProps<CustomFormSchema>, 'override' | 'customRenderField'>,
) => ReactNode,
// If return falsy value, this field will fallback to default render
override?: [Array<FormTypeEnum>, (formSchema: CredentialFormSchema, props: Omit<FormProps<CustomFormSchema>, 'override' | 'customRenderField'>) => ReactNode]
nodeId?: string

View File

@@ -72,7 +72,7 @@ const Popup: FC<PopupProps> = ({
return scopeFeatures.every((feature) => {
if (feature === ModelFeatureEnum.toolCall)
return supportFunctionCall(modelItem.features)
return modelItem.features?.some(featureItem => featureItem === feature)
return modelItem.features?.includes(feature) ?? false
})
})
return { ...model, models: filteredModels }

View File

@@ -32,15 +32,15 @@ export type CommonHooksFnMap = {
callback?: {
onSuccess?: () => void
onError?: () => void
onSettled?: () => void
}
onSettled?: () => void,
},
) => Promise<void>
syncWorkflowDraftWhenPageClose: () => void
handleRefreshWorkflowDraft: () => void
handleBackupDraft: () => void
handleLoadBackupDraft: () => void
handleRestoreFromPublishedWorkflow: (...args: any[]) => void
handleRun: (params: any, callback?: IOtherOptions,) => void
handleRun: (params: any, callback?: IOtherOptions) => void
handleStopRun: (...args: any[]) => void
handleStartWorkflowRun: () => void
handleWorkflowStartRunInWorkflow: () => void

View File

@@ -379,7 +379,7 @@ export type OnNodeAdd = (
prevNodeSourceHandle?: string
nextNodeId?: string
nextNodeTargetHandle?: string
}
},
) => void
export type CheckValidRes = {