[feat] Add import failure detection and error handling for package manager (#4600)

This commit is contained in:
Jin Yi
2025-07-31 13:24:28 +09:00
parent afe0d68ae6
commit e085bb4c0f
17 changed files with 784 additions and 253 deletions

View File

@@ -432,14 +432,19 @@ export const useDialogService = () => {
}
function showNodeConflictDialog(
options: InstanceType<typeof NodeConflictDialogContent>['$props'] & {
options: {
showAfterWhatsNew?: boolean
dialogComponentProps?: DialogComponentProps
buttonText?: string
onButtonClick?: () => void
} = {}
) {
const { dialogComponentProps, buttonText, onButtonClick, ...props } =
options
const {
dialogComponentProps,
buttonText,
onButtonClick,
showAfterWhatsNew
} = options
return dialogStore.showDialog({
key: 'global-node-conflict',
@@ -461,7 +466,9 @@ export const useDialogService = () => {
},
...dialogComponentProps
},
props,
props: {
showAfterWhatsNew
},
footerProps: {
buttonText,
onButtonClick