Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
feat(ui): expose imperative actions types for public ref contracts (#43613)
yyh2bb466c09aa1
diff --git a/packages/dify-ui/docs/authoring.md b/packages/dify-ui/docs/authoring.mdindex 3a4639ddd37..2540bebff7d 100644--- a/packages/dify-ui/docs/authoring.md+++ b/packages/dify-ui/docs/authoring.md@@ -62,8 +62,8 @@ A type is not public merely because Base UI names it or an implementation once eaddition to matching component props, export a type only when it pairs with a public factory or areal consumer must name it independently.-State, event details and reasons, actions, controlled-state helpers, context values, render-helpers, styling helpers, and upstream passthrough aliases are private by default. Public props+State, event details and reasons, controlled-state helpers, context values, render helpers,+styling helpers, and upstream passthrough aliases are private by default. Public propsalready provide contextual typing for inline render and event callbacks.Preserve upstream `className` and `style` callbacks. Resolve `className` with the owning Base UIdiff --git a/packages/dify-ui/src/alert-dialog/__tests__/index.spec.tsx b/packages/dify-ui/src/alert-dialog/__tests__/index.spec.tsxindex 47ad00d1468..a9fdea853da 100644--- a/packages/dify-ui/src/alert-dialog/__tests__/index.spec.tsx+++ b/packages/dify-ui/src/alert-dialog/__tests__/index.spec.tsx@@ -6,6 +6,7 @@ import {AlertDialogCancelButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,AlertDialogTrigger,} from '../index'@@ -93,7 +94,9 @@ describe('AlertDialog wrapper', () => {<AlertDialog defaultOpen><AlertDialogContent><AlertDialogTitle>Delete project?</AlertDialogTitle>- <AlertDialogCancelButton>Cancel</AlertDialogCancelButton>+ <AlertDialogFooter>+ <AlertDialogCancelButton>Cancel</AlertDialogCancelButton>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>,)diff --git a/packages/dify-ui/src/alert-dialog/__tests__/types.tsx b/packages/dify-ui/src/alert-dialog/__tests__/types.tsxnew file mode 100644index 00000000000..439d467cb70--- /dev/null+++ b/packages/dify-ui/src/alert-dialog/__tests__/types.tsx@@ -0,0 +1,12 @@+import type { AlertDialogActions, AlertDialogProps } from '@langgenius/dify-ui/alert-dialog'+import { AlertDialog } from '@langgenius/dify-ui/alert-dialog'+import * as React from 'react'+import { expectTypeOf } from 'vite-plus/test'++export function alertDialogActionsTypeContract() {+ const actionsRef = React.createRef<AlertDialogActions>()+ expectTypeOf(actionsRef.current).toEqualTypeOf<+ NonNullable<AlertDialogProps['actionsRef']>['current']+ >()+ return <AlertDialog actionsRef={actionsRef} />+}diff --git a/packages/dify-ui/src/alert-dialog/index.stories.tsx b/packages/dify-ui/src/alert-dialog/index.stories.tsxindex f19693e0501..d2c17b0034d 100644--- a/packages/dify-ui/src/alert-dialog/index.stories.tsx+++ b/packages/dify-ui/src/alert-dialog/index.stories.tsx@@ -3,11 +3,11 @@ import * as React from 'react'import { expect, waitFor, within } from 'storybook/test'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,AlertDialogTrigger,} from '.'@@ -24,7 +24,7 @@ const meta = {docs: {description: {component:- 'Compound alert dialog built on Base UI AlertDialog. Use it for destructive or high-risk confirmations that require an explicit user decision. Compose title, description, and actions via `AlertDialogActions`, `AlertDialogCancelButton`, and `AlertDialogConfirmButton`.',+ 'Compound alert dialog built on Base UI AlertDialog. Use it for destructive or high-risk confirmations that require an explicit user decision. Compose title, description, and actions via `AlertDialogFooter`, `AlertDialogCancelButton`, and `AlertDialogConfirmButton`.',},},},@@ -50,10 +50,10 @@ export const Default: Story = {removed.</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton variant="secondary">Cancel</AlertDialogCancelButton><AlertDialogConfirmButton>Delete</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>),@@ -95,10 +95,10 @@ export const NonDestructive: Story = {history.</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton variant="secondary">Not now</AlertDialogCancelButton><AlertDialogConfirmButton tone="default">Publish</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>),@@ -128,7 +128,7 @@ function ControlledDemo() {token afterwards.</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton variant="secondary">Keep token</AlertDialogCancelButton><AlertDialogConfirmButtononClick={() => {@@ -138,7 +138,7 @@ function ControlledDemo() {>Revoke</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></div>@@ -177,7 +177,7 @@ function LoadingConfirmDemo() {finalize.</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton variant="secondary" disabled={pending}>Cancel</AlertDialogCancelButton>@@ -189,7 +189,7 @@ function LoadingConfirmDemo() {><span id={confirmLabelId}>{pending ? 'Archiving…' : 'Archive'}</span></AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>)diff --git a/packages/dify-ui/src/alert-dialog/index.tsx b/packages/dify-ui/src/alert-dialog/index.tsxindex e0af67d7bbd..8aab9461004 100644--- a/packages/dify-ui/src/alert-dialog/index.tsx+++ b/packages/dify-ui/src/alert-dialog/index.tsx@@ -13,6 +13,8 @@ const AlertDialogTrigger = BaseAlertDialog.Triggerconst AlertDialogTitle = BaseAlertDialog.Titleconst AlertDialogDescription = BaseAlertDialog.Description+type AlertDialogActions = BaseAlertDialog.Root.Actions+type AlertDialogProps<Payload = unknown> = BaseAlertDialog.Root.Props<Payload>type AlertDialogTriggerProps<Payload = unknown> = BaseAlertDialog.Trigger.Props<Payload>type AlertDialogTitleProps = BaseAlertDialog.Title.Props@@ -59,9 +61,9 @@ function AlertDialogContent({)}-type AlertDialogActionsProps = React.ComponentProps<'div'>+type AlertDialogFooterProps = React.ComponentProps<'div'>-function AlertDialogActions({ className, ...props }: AlertDialogActionsProps) {+function AlertDialogFooter({ className, ...props }: AlertDialogFooterProps) {return (<divclassName={cn('flex items-start justify-end gap-2 self-stretch p-6', className)}@@ -90,21 +92,22 @@ function AlertDialogConfirmButton({export {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,AlertDialogTrigger,}export type {- AlertDialogActionsProps,+ AlertDialogActions,AlertDialogCancelButtonProps,AlertDialogConfirmButtonProps,AlertDialogContentProps,AlertDialogDescriptionProps,+ AlertDialogFooterProps,AlertDialogProps,AlertDialogTitleProps,AlertDialogTriggerProps,diff --git a/packages/dify-ui/src/autocomplete/__tests__/types.tsx b/packages/dify-ui/src/autocomplete/__tests__/types.tsxnew file mode 100644index 00000000000..92de3256ff2--- /dev/null+++ b/packages/dify-ui/src/autocomplete/__tests__/types.tsx@@ -0,0 +1,12 @@+import type { AutocompleteActions, AutocompleteProps } from '@langgenius/dify-ui/autocomplete'+import { Autocomplete } from '@langgenius/dify-ui/autocomplete'+import * as React from 'react'+import { expectTypeOf } from 'vite-plus/test'++export function autocompleteActionsTypeContract() {+ const actionsRef = React.createRef<AutocompleteActions>()+ expectTypeOf(actionsRef.current).toEqualTypeOf<+ NonNullable<AutocompleteProps<string>['actionsRef']>['current']+ >()+ return <Autocomplete actionsRef={actionsRef} />+}diff --git a/packages/dify-ui/src/autocomplete/index.tsx b/packages/dify-ui/src/autocomplete/index.tsxindex 40f73b8b955..dd251fce4cc 100644--- a/packages/dify-ui/src/autocomplete/index.tsx+++ b/packages/dify-ui/src/autocomplete/index.tsx@@ -16,6 +16,8 @@ import {} from '../overlay-shared'import { parsePlacement } from '../placement'+type AutocompleteActions = BaseAutocomplete.Root.Actions+type AutocompleteProps<ItemValue> = BaseAutocomplete.Root.Props<ItemValue>type AutocompleteChangeEventDetails = BaseAutocomplete.Root.ChangeEventDetailstype AutocompleteGroupedProps<Items extends readonly { items: readonly unknown[] }[]> = Omit<@@ -428,6 +430,7 @@ export {}export type {+ AutocompleteActions,AutocompleteChangeEventDetails,AutocompleteClearProps,AutocompleteCollectionProps,diff --git a/packages/dify-ui/src/combobox/__tests__/types.tsx b/packages/dify-ui/src/combobox/__tests__/types.tsxnew file mode 100644index 00000000000..d34214ef02c--- /dev/null+++ b/packages/dify-ui/src/combobox/__tests__/types.tsx@@ -0,0 +1,12 @@+import type { ComboboxActions, ComboboxProps } from '@langgenius/dify-ui/combobox'+import { Combobox } from '@langgenius/dify-ui/combobox'+import * as React from 'react'+import { expectTypeOf } from 'vite-plus/test'++export function comboboxActionsTypeContract() {+ const actionsRef = React.createRef<ComboboxActions>()+ expectTypeOf(actionsRef.current).toEqualTypeOf<+ NonNullable<ComboboxProps<string>['actionsRef']>['current']+ >()+ return <Combobox actionsRef={actionsRef} />+}diff --git a/packages/dify-ui/src/combobox/index.tsx b/packages/dify-ui/src/combobox/index.tsxindex f61dfcde3e6..4463ba5c08c 100644--- a/packages/dify-ui/src/combobox/index.tsx+++ b/packages/dify-ui/src/combobox/index.tsx@@ -16,6 +16,8 @@ import {} from '../overlay-shared'import { parsePlacement } from '../placement'+type ComboboxActions = BaseCombobox.Root.Actions+type ComboboxProps<Value,Multiple extends boolean | undefined = false,@@ -565,6 +567,7 @@ export {}export type {+ ComboboxActions,ComboboxChangeEventDetails,ComboboxChipProps,ComboboxChipRemoveProps,diff --git a/packages/dify-ui/src/date-time/internal/picker-parts.tsx b/packages/dify-ui/src/date-time/internal/picker-parts.tsxindex c9d93978a62..72f98ada129 100644--- a/packages/dify-ui/src/date-time/internal/picker-parts.tsx+++ b/packages/dify-ui/src/date-time/internal/picker-parts.tsx@@ -1,7 +1,12 @@'use client'import type { IconButtonProps } from '../../icon-button'-import type { PopoverContentProps, PopoverProps, PopoverTriggerProps } from '../../popover'+import type {+ PopoverActions,+ PopoverContentProps,+ PopoverProps,+ PopoverTriggerProps,+} from '../../popover'import { useMergedRefs } from '@base-ui/utils/useMergedRefs'import * as React from 'react'import { cn } from '../../cn'@@ -73,7 +78,7 @@ function PickerRoot({const [labelId, setLabelId] = React.useState<string>()const triggerRef = React.useRef<HTMLButtonElement>(null)const inputRef = React.useRef<HTMLInputElement>(null)- const actionsRef = React.useRef<NonNullable<PopoverProps['actionsRef']>['current']>(null)+ const actionsRef = React.useRef<PopoverActions>(null)const [validationAttempted, setValidationAttempted] = React.useState(false)const errorMessage = props.invalid? (props.validationMessage ?? 'Choose a valid value.')diff --git a/packages/dify-ui/src/dialog/__tests__/types.tsx b/packages/dify-ui/src/dialog/__tests__/types.tsxnew file mode 100644index 00000000000..7172c5c2394--- /dev/null+++ b/packages/dify-ui/src/dialog/__tests__/types.tsx@@ -0,0 +1,12 @@+import type { DialogActions, DialogProps } from '@langgenius/dify-ui/dialog'+import { Dialog } from '@langgenius/dify-ui/dialog'+import * as React from 'react'+import { expectTypeOf } from 'vite-plus/test'++export function dialogActionsTypeContract() {+ const actionsRef = React.createRef<DialogActions>()+ expectTypeOf(actionsRef.current).toEqualTypeOf<+ NonNullable<DialogProps['actionsRef']>['current']+ >()+ return <Dialog actionsRef={actionsRef} />+}diff --git a/packages/dify-ui/src/dialog/index.tsx b/packages/dify-ui/src/dialog/index.tsxindex 6b6be346817..e524b156b49 100644--- a/packages/dify-ui/src/dialog/index.tsx+++ b/packages/dify-ui/src/dialog/index.tsx@@ -14,6 +14,8 @@ const DialogPortal = BaseDialog.Portalconst DialogClose = BaseDialog.Closeconst createDialogHandle = BaseDialog.createHandle+type DialogActions = BaseDialog.Root.Actions+type DialogProps<Payload = unknown> = BaseDialog.Root.Props<Payload>type DialogHandle<Payload = unknown> = BaseDialog.Handle<Payload>type DialogTriggerProps<Payload = unknown> = BaseDialog.Trigger.Props<Payload>@@ -100,6 +102,7 @@ export {}export type {+ DialogActions,DialogBackdropProps,DialogCloseProps,DialogContentProps,diff --git a/packages/dify-ui/src/drawer/__tests__/types.tsx b/packages/dify-ui/src/drawer/__tests__/types.tsxnew file mode 100644index 00000000000..c3898255c67--- /dev/null+++ b/packages/dify-ui/src/drawer/__tests__/types.tsx@@ -0,0 +1,12 @@+import type { DrawerActions, DrawerProps } from '@langgenius/dify-ui/drawer'+import { Drawer } from '@langgenius/dify-ui/drawer'+import * as React from 'react'+import { expectTypeOf } from 'vite-plus/test'++export function drawerActionsTypeContract() {+ const actionsRef = React.createRef<DrawerActions>()+ expectTypeOf(actionsRef.current).toEqualTypeOf<+ NonNullable<DrawerProps['actionsRef']>['current']+ >()+ return <Drawer actionsRef={actionsRef} />+}diff --git a/packages/dify-ui/src/drawer/index.tsx b/packages/dify-ui/src/drawer/index.tsxindex 6bca9b88d6d..75ed5240d07 100644--- a/packages/dify-ui/src/drawer/index.tsx+++ b/packages/dify-ui/src/drawer/index.tsx@@ -16,6 +16,8 @@ const DrawerDescription = BaseDrawer.Descriptionconst DrawerClose = BaseDrawer.Closeconst createDrawerHandle = BaseDrawer.createHandle+type DrawerActions = BaseDrawer.Root.Actions+type DrawerProps<Payload = unknown> = BaseDrawer.Root.Props<Payload>type DrawerHandle<Payload = unknown> = BaseDrawer.Handle<Payload>type DrawerProviderProps = BaseDrawer.Provider.Props@@ -121,6 +123,7 @@ export {}export type {+ DrawerActions,DrawerBackdropProps,DrawerCloseProps,DrawerContentProps,diff --git a/packages/dify-ui/src/dropdown-menu/__tests__/types.tsx b/packages/dify-ui/src/dropdown-menu/__tests__/types.tsxindex d7eb1b5dbbe..5d1cdb722bf 100644--- a/packages/dify-ui/src/dropdown-menu/__tests__/types.tsx+++ b/packages/dify-ui/src/dropdown-menu/__tests__/types.tsx@@ -1,9 +1,14 @@-import type { DropdownMenuHandle } from '@langgenius/dify-ui/dropdown-menu'+import type {+ DropdownMenuActions,+ DropdownMenuHandle,+ DropdownMenuProps,+} from '@langgenius/dify-ui/dropdown-menu'import {createDropdownMenuHandle,DropdownMenu,DropdownMenuTrigger,} from '@langgenius/dify-ui/dropdown-menu'+import * as React from 'react'import { expectTypeOf } from 'vite-plus/test'type Payload = { documentId: string }@@ -32,3 +37,11 @@ export function dropdownMenuTypeContracts() {)return { trigger, menu, invalid }}++export function dropdownMenuActionsTypeContract() {+ const actionsRef = React.createRef<DropdownMenuActions>()+ expectTypeOf(actionsRef.current).toEqualTypeOf<+ NonNullable<DropdownMenuProps['actionsRef']>['current']+ >()+ return <DropdownMenu actionsRef={actionsRef} />+}diff --git a/packages/dify-ui/src/dropdown-menu/index.tsx b/packages/dify-ui/src/dropdown-menu/index.tsxindex 06853ad486a..dc0fa0d46ed 100644--- a/packages/dify-ui/src/dropdown-menu/index.tsx+++ b/packages/dify-ui/src/dropdown-menu/index.tsx@@ -27,6 +27,8 @@ const createDropdownMenuHandle = Menu.createHandletype DropdownMenuHandle<Payload = unknown> = Menu.Handle<Payload>+type DropdownMenuActions = Menu.Root.Actions+type DropdownMenuProps<Payload = unknown> = Menu.Root.Props<Payload>type DropdownMenuTriggerProps<Payload = unknown> = Menu.Trigger.Props<Payload>type DropdownMenuPortalProps = Menu.Portal.Props@@ -319,6 +321,7 @@ export {}export type {+ DropdownMenuActions,DropdownMenuCheckboxItemIndicatorProps,DropdownMenuCheckboxItemProps,DropdownMenuContentProps,diff --git a/packages/dify-ui/src/field/__tests__/types.tsx b/packages/dify-ui/src/field/__tests__/types.tsxnew file mode 100644index 00000000000..2d0fe113bcf--- /dev/null+++ b/packages/dify-ui/src/field/__tests__/types.tsx@@ -0,0 +1,10 @@+import type { FieldActions, FieldProps } from '@langgenius/dify-ui/field'+import { Field } from '@langgenius/dify-ui/field'+import * as React from 'react'+import { expectTypeOf } from 'vite-plus/test'++export function fieldActionsTypeContract() {+ const actionsRef = React.createRef<FieldActions>()+ expectTypeOf(actionsRef.current).toEqualTypeOf<NonNullable<FieldProps['actionsRef']>['current']>()+ return <Field actionsRef={actionsRef} />+}diff --git a/packages/dify-ui/src/field/index.tsx b/packages/dify-ui/src/field/index.tsxindex 4065ec29fe3..b905cc0a45a 100644--- a/packages/dify-ui/src/field/index.tsx+++ b/packages/dify-ui/src/field/index.tsx@@ -6,6 +6,8 @@ import { cn } from '../cn'import { formLabelClassName } from '../form-control-shared'import { resolveClassName } from '../internals/resolve-class-name'+type FieldActions = BaseFieldNS.Root.Actions+type FieldProps = BaseFieldNS.Root.Propsfunction Field({ className, ...props }: FieldProps) {@@ -74,6 +76,7 @@ const FieldValidity = BaseField.Validityexport { Field, FieldDescription, FieldError, FieldItem, FieldLabel, FieldValidity }export type {+ FieldActions,FieldDescriptionProps,FieldErrorProps,FieldItemProps,diff --git a/packages/dify-ui/src/infotip/__tests__/types.tsx b/packages/dify-ui/src/infotip/__tests__/types.tsxindex 12472cd0a89..0de6a6db160 100644--- a/packages/dify-ui/src/infotip/__tests__/types.tsx+++ b/packages/dify-ui/src/infotip/__tests__/types.tsx@@ -1,5 +1,7 @@+import type { InfotipActions, InfotipProps } from '@langgenius/dify-ui/infotip'import { Infotip, InfotipContent, InfotipTrigger } from '@langgenius/dify-ui/infotip'import * as React from 'react'+import { expectTypeOf } from 'vite-plus/test'export function infotipTypeContracts(triggerRef: React.Ref<HTMLButtonElement>,@@ -45,3 +47,11 @@ export function infotipTypeContracts()return { composition, labelledTrigger, unnamed, children, render, state }}++export function infotipActionsTypeContract() {+ const actionsRef = React.createRef<InfotipActions>()+ expectTypeOf(actionsRef.current).toEqualTypeOf<+ NonNullable<InfotipProps['actionsRef']>['current']+ >()+ return <Infotip actionsRef={actionsRef} />+}diff --git a/packages/dify-ui/src/infotip/index.tsx b/packages/dify-ui/src/infotip/index.tsxindex 98e4e4d6ba0..706a256e780 100644--- a/packages/dify-ui/src/infotip/index.tsx+++ b/packages/dify-ui/src/infotip/index.tsx@@ -23,6 +23,8 @@ const iconSizeClassNames = {const Infotip = BasePopover.Rootconst InfotipTitle = BasePopover.Title+type InfotipActions = BasePopover.Root.Actions+type InfotipProps<Payload = unknown> = BasePopover.Root.Props<Payload>type InfotipTitleProps = BasePopover.Title.Props@@ -106,4 +108,10 @@ function InfotipContent({}export { Infotip, InfotipContent, InfotipTitle, InfotipTrigger }-export type { InfotipContentProps, InfotipProps, InfotipTitleProps, InfotipTriggerProps }+export type {+ InfotipActions,+ InfotipContentProps,+ InfotipProps,+ InfotipTitleProps,+ InfotipTriggerProps,+}diff --git a/packages/dify-ui/src/popover/__tests__/types.tsx b/packages/dify-ui/src/popover/__tests__/types.tsxnew file mode 100644index 00000000000..a204ab1e398--- /dev/null+++ b/packages/dify-ui/src/popover/__tests__/types.tsx@@ -0,0 +1,12 @@+import type { PopoverActions, PopoverProps } from '@langgenius/dify-ui/popover'+import { Popover } from '@langgenius/dify-ui/popover'+import * as React from 'react'+import { expectTypeOf } from 'vite-plus/test'++export function popoverActionsTypeContract() {+ const actionsRef = React.createRef<PopoverActions>()+ expectTypeOf(actionsRef.current).toEqualTypeOf<+ NonNullable<PopoverProps['actionsRef']>['current']+ >()+ return <Popover actionsRef={actionsRef} />+}diff --git a/packages/dify-ui/src/popover/index.tsx b/packages/dify-ui/src/popover/index.tsxindex 831f22a6f6f..0dda248fdf3 100644--- a/packages/dify-ui/src/popover/index.tsx+++ b/packages/dify-ui/src/popover/index.tsx@@ -17,6 +17,8 @@ const PopoverTitle = BasePopover.Titleconst PopoverDescription = BasePopover.Descriptionconst createPopoverHandle = BasePopover.createHandle+type PopoverActions = BasePopover.Root.Actions+type PopoverProps<Payload = unknown> = BasePopover.Root.Props<Payload>type PopoverArrowProps = BasePopover.Arrow.Propstype PopoverPortalProps = BasePopover.Portal.Props@@ -126,6 +128,7 @@ export {PopoverTrigger,}export type {+ PopoverActions,PopoverArrowProps,PopoverBackdropProps,PopoverCloseProps,diff --git a/packages/dify-ui/src/preview-card/__tests__/types.tsx b/packages/dify-ui/src/preview-card/__tests__/types.tsxnew file mode 100644index 00000000000..5f9bff1d083--- /dev/null+++ b/packages/dify-ui/src/preview-card/__tests__/types.tsx@@ -0,0 +1,12 @@+import type { PreviewCardActions, PreviewCardProps } from '@langgenius/dify-ui/preview-card'+import { PreviewCard } from '@langgenius/dify-ui/preview-card'+import * as React from 'react'+import { expectTypeOf } from 'vite-plus/test'++export function previewCardActionsTypeContract() {+ const actionsRef = React.createRef<PreviewCardActions>()+ expectTypeOf(actionsRef.current).toEqualTypeOf<+ NonNullable<PreviewCardProps['actionsRef']>['current']+ >()+ return <PreviewCard actionsRef={actionsRef} />+}diff --git a/packages/dify-ui/src/preview-card/index.tsx b/packages/dify-ui/src/preview-card/index.tsxindex 80091431f35..8446592efb5 100644--- a/packages/dify-ui/src/preview-card/index.tsx+++ b/packages/dify-ui/src/preview-card/index.tsx@@ -26,6 +26,8 @@ const PreviewCardTrigger = BasePreviewCard.Triggerconst PreviewCardViewport = BasePreviewCard.Viewportconst createPreviewCardHandle = BasePreviewCard.createHandle+type PreviewCardActions = BasePreviewCard.Root.Actions+type PreviewCardProps<Payload = unknown> = BasePreviewCard.Root.Props<Payload>type PreviewCardHandle<Payload = unknown> = BasePreviewCard.Handle<Payload>type PreviewCardTriggerProps<Payload = unknown> = BasePreviewCard.Trigger.Props<Payload>@@ -115,6 +117,7 @@ export {PreviewCardViewport,}export type {+ PreviewCardActions,PreviewCardContentProps,PreviewCardHandle,PreviewCardPopupProps,diff --git a/packages/dify-ui/src/select/__tests__/types.tsx b/packages/dify-ui/src/select/__tests__/types.tsxnew file mode 100644index 00000000000..b697f9de85d--- /dev/null+++ b/packages/dify-ui/src/select/__tests__/types.tsx@@ -0,0 +1,12 @@+import type { SelectActions, SelectProps } from '@langgenius/dify-ui/select'+import { Select } from '@langgenius/dify-ui/select'+import * as React from 'react'+import { expectTypeOf } from 'vite-plus/test'++export function selectActionsTypeContract() {+ const actionsRef = React.createRef<SelectActions>()+ expectTypeOf(actionsRef.current).toEqualTypeOf<+ NonNullable<SelectProps<string>['actionsRef']>['current']+ >()+ return <Select actionsRef={actionsRef} />+}diff --git a/packages/dify-ui/src/select/index.tsx b/packages/dify-ui/src/select/index.tsxindex 1475d65bc57..5bd41d21dac 100644--- a/packages/dify-ui/src/select/index.tsx+++ b/packages/dify-ui/src/select/index.tsx@@ -17,6 +17,8 @@ import {} from '../overlay-shared'import { parsePlacement } from '../placement'+type SelectActions = BaseSelect.Root.Actions+type SelectProps<Value, Multiple extends boolean | undefined = false> = BaseSelect.Root.Props<Value,Multiple@@ -287,6 +289,7 @@ export {}export type {+ SelectActions,SelectContentProps,SelectGroupLabelProps,SelectGroupProps,diff --git a/packages/dify-ui/src/tooltip/__tests__/types.tsx b/packages/dify-ui/src/tooltip/__tests__/types.tsxnew file mode 100644index 00000000000..0bd52e77ca3--- /dev/null+++ b/packages/dify-ui/src/tooltip/__tests__/types.tsx@@ -0,0 +1,12 @@+import type { TooltipActions, TooltipProps } from '@langgenius/dify-ui/tooltip'+import { Tooltip } from '@langgenius/dify-ui/tooltip'+import * as React from 'react'+import { expectTypeOf } from 'vite-plus/test'++export function tooltipActionsTypeContract() {+ const actionsRef = React.createRef<TooltipActions>()+ expectTypeOf(actionsRef.current).toEqualTypeOf<+ NonNullable<TooltipProps['actionsRef']>['current']+ >()+ return <Tooltip actionsRef={actionsRef} />+}diff --git a/packages/dify-ui/src/tooltip/index.tsx b/packages/dify-ui/src/tooltip/index.tsxindex e34c8ca2a3a..b19d3f3c1c3 100644--- a/packages/dify-ui/src/tooltip/index.tsx+++ b/packages/dify-ui/src/tooltip/index.tsx@@ -13,6 +13,8 @@ const Tooltip = BaseTooltip.Rootconst TooltipTrigger = BaseTooltip.Triggertype TooltipProviderProps = BaseTooltip.Provider.Props+type TooltipActions = BaseTooltip.Root.Actions+type TooltipProps<Payload = unknown> = BaseTooltip.Root.Props<Payload>type TooltipTriggerProps<Payload = unknown> = BaseTooltip.Trigger.Props<Payload>@@ -54,4 +56,10 @@ function TooltipContent({export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger }-export type { TooltipContentProps, TooltipProps, TooltipProviderProps, TooltipTriggerProps }+export type {+ TooltipActions,+ TooltipContentProps,+ TooltipProps,+ TooltipProviderProps,+ TooltipTriggerProps,+}diff --git a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/provider-config-modal.tsx b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/provider-config-modal.tsxindex 80a52c7027e..d49b1b5e58b 100644--- a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/provider-config-modal.tsx+++ b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/provider-config-modal.tsx@@ -14,11 +14,11 @@ import type {} from './type'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Button } from '@langgenius/dify-ui/button'@@ -855,14 +855,14 @@ const ProviderConfigModal: FC<Props> = ({{t(($) => $[`${I18N_PREFIX}.removeConfirmContent`], { ns: 'app' })}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton onClick={handleRemove}>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>)}diff --git a/web/app/components/access-rules-editor/batch-action.tsx b/web/app/components/access-rules-editor/batch-action.tsxindex 6eb121eb170..ed3dbb35fb5 100644--- a/web/app/components/access-rules-editor/batch-action.tsx+++ b/web/app/components/access-rules-editor/batch-action.tsx@@ -2,11 +2,11 @@import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Button } from '@langgenius/dify-ui/button'@@ -89,14 +89,14 @@ export default function AccessRulesBatchAction({})}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton disabled={isDeleting}>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton loading={isDeleting} onClick={handleDelete}>{t(($) => $['operation.sure'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></div>diff --git a/web/app/components/api-key/api-key-modal.tsx b/web/app/components/api-key/api-key-modal.tsxindex a58a7a87ba4..f76a435aff0 100644--- a/web/app/components/api-key/api-key-modal.tsx+++ b/web/app/components/api-key/api-key-modal.tsx@@ -2,11 +2,11 @@import type { ApiKeyItem } from '@dify/contracts/api/console/apps/types.gen'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Button } from '@langgenius/dify-ui/button'@@ -245,14 +245,14 @@ export function ApiKeyModal({ open, canManage, scope, onOpenChange }: ApiKeyModa{t(($) => $['actionMsg.deleteConfirmTips'], { ns: 'appApi' })}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton disabled={isDeleting}>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton loading={isDeleting} onClick={handleDelete}>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog><CreatedApiKeyDialogdiff --git a/web/app/components/app-sidebar/app-info/app-info-modals.tsx b/web/app/components/app-sidebar/app-info/app-info-modals.tsxindex 5a0318b5c71..cfb2485205c 100644--- a/web/app/components/app-sidebar/app-info/app-info-modals.tsx+++ b/web/app/components/app-sidebar/app-info/app-info-modals.tsx@@ -7,11 +7,11 @@ import type { DuplicateAppModalProps } from '@/app/components/app/duplicate-modaimport type { CreateAppModalProps } from '@/app/components/explore/create-app-modal'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Button } from '@langgenius/dify-ui/button'@@ -185,14 +185,14 @@ const AppInfoModals = ({</InputGroup></Field></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton type="button">{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton type="submit" disabled={isDeleteConfirmDisabled}>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></form></AlertDialogContent></AlertDialog>@@ -223,7 +223,7 @@ const AppInfoModals = ({{t(($) => $['sidebar.exportWarningDesc'], { ns: 'workflow' })}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton>@@ -239,7 +239,7 @@ const AppInfoModals = ({: t(($) => $['operation.confirm'], { ns: 'common' })}</span></AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent>))}diff --git a/web/app/components/app-sidebar/dataset-info/dropdown.tsx b/web/app/components/app-sidebar/dataset-info/dropdown.tsxindex 945ba9c3221..6483cfa5e09 100644--- a/web/app/components/app-sidebar/dataset-info/dropdown.tsx+++ b/web/app/components/app-sidebar/dataset-info/dropdown.tsx@@ -1,11 +1,11 @@import type { DataSet } from '@/models/datasets'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { cn } from '@langgenius/dify-ui/cn'@@ -238,14 +238,14 @@ const DropDown = ({ expand, triggerClassName }: DropDownProps) => {{confirmMessage}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton onClick={onConfirmDelete}>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></DropdownMenu>diff --git a/web/app/components/app-sidebar/snippet-info/dropdown.tsx b/web/app/components/app-sidebar/snippet-info/dropdown.tsxindex 372bc5bc0c8..5796da4f5c1 100644--- a/web/app/components/app-sidebar/snippet-info/dropdown.tsx+++ b/web/app/components/app-sidebar/snippet-info/dropdown.tsx@@ -3,11 +3,11 @@import type { SnippetDetail } from '@/models/snippet'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import {@@ -196,7 +196,7 @@ const SnippetInfoDropdown = ({ snippet }: SnippetInfoDropdownProps) => {{t(($) => $.deleteConfirmContent)}</AlertDialogDescription></div>- <AlertDialogActions className="pt-0">+ <AlertDialogFooter className="pt-0"><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton>@@ -206,7 +206,7 @@ const SnippetInfoDropdown = ({ snippet }: SnippetInfoDropdownProps) => {>{t(($) => $['menu.deleteSnippet'])}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></>diff --git a/web/app/components/app/access-point/built-in-access-points/mcp-card.tsx b/web/app/components/app/access-point/built-in-access-points/mcp-card.tsxindex f746bf4f6e5..5e2c4f5ae08 100644--- a/web/app/components/app/access-point/built-in-access-points/mcp-card.tsx+++ b/web/app/components/app/access-point/built-in-access-points/mcp-card.tsx@@ -4,11 +4,11 @@ import type { AppDetailWithSite } from '@dify/contracts/api/console/apps/types.gimport type { PublishedWorkflow } from '../shared/utils'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Button } from '@langgenius/dify-ui/button'@@ -223,14 +223,14 @@ export function MCPAccessPointCard({{t(($) => $['mcp.server.reGen'], { ns: 'tools' })}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton onClick={() => void handleRegenerate()}>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></>diff --git a/web/app/components/app/access-point/built-in-access-points/web-app-card.tsx b/web/app/components/app/access-point/built-in-access-points/web-app-card.tsxindex 516294a81bc..9b44cbb610b 100644--- a/web/app/components/app/access-point/built-in-access-points/web-app-card.tsx+++ b/web/app/components/app/access-point/built-in-access-points/web-app-card.tsx@@ -9,11 +9,11 @@ import type { PublishedWorkflow } from '../shared/utils'import type { AccessPointAvailability } from '@/app/components/base/access-point/status'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Button } from '@langgenius/dify-ui/button'@@ -344,7 +344,7 @@ export function WebAppAccessPointCard({{t(($) => $['overview.appInfo.regenerateNotice'], { ns: 'appOverview' })}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton>@@ -354,7 +354,7 @@ export function WebAppAccessPointCard({>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></>diff --git a/web/app/components/app/access-point/deployed-environment-access-points/environment-web-app-card.tsx b/web/app/components/app/access-point/deployed-environment-access-points/environment-web-app-card.tsxindex 306db8e8c4f..7530ff6fcd8 100644--- a/web/app/components/app/access-point/deployed-environment-access-points/environment-web-app-card.tsx+++ b/web/app/components/app/access-point/deployed-environment-access-points/environment-web-app-card.tsx@@ -2,11 +2,11 @@import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Button } from '@langgenius/dify-ui/button'@@ -286,7 +286,7 @@ export function EnvironmentWebAppCard({})}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton>@@ -296,7 +296,7 @@ export function EnvironmentWebAppCard({>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></>diff --git a/web/app/components/app/annotation/batch-action.tsx b/web/app/components/app/annotation/batch-action.tsxindex 1369789d336..cf0fda80d1d 100644--- a/web/app/components/app/annotation/batch-action.tsx+++ b/web/app/components/app/annotation/batch-action.tsx@@ -1,10 +1,10 @@import type { FC } from 'react'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Button } from '@langgenius/dify-ui/button'@@ -69,14 +69,14 @@ const BatchAction: FC<IBatchActionProps> = ({{t(($) => $['list.delete.title'], { ns: 'appAnnotation' })}</AlertDialogTitle></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton loading={isDeleting} onClick={handleBatchDelete}>{t(($) => $['operation.delete'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></div>diff --git a/web/app/components/app/annotation/clear-all-annotations-confirm-modal/index.tsx b/web/app/components/app/annotation/clear-all-annotations-confirm-modal/index.tsxindex cbf668425be..1cd07a42140 100644--- a/web/app/components/app/annotation/clear-all-annotations-confirm-modal/index.tsx+++ b/web/app/components/app/annotation/clear-all-annotations-confirm-modal/index.tsx@@ -3,10 +3,10 @@import type { FC } from 'react'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import * as React from 'react'@@ -33,14 +33,14 @@ const ClearAllAnnotationsConfirmModal: FC<Props> = ({ isShow, onHide, onConfirm{title}</AlertDialogTitle></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton onClick={onConfirm}>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>)diff --git a/web/app/components/app/annotation/edit-annotation-modal/index.tsx b/web/app/components/app/annotation/edit-annotation-modal/index.tsxindex 4b8c812bc68..c1d321a25b1 100644--- a/web/app/components/app/annotation/edit-annotation-modal/index.tsx+++ b/web/app/components/app/annotation/edit-annotation-modal/index.tsx@@ -2,10 +2,10 @@import type { FC } from 'react'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import {@@ -142,7 +142,7 @@ const EditAnnotationModal: FC<Props> = ({{t(($) => $['feature.annotation.removeConfirm'], { ns: 'appDebug' })}</AlertDialogTitle></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton>@@ -156,7 +156,7 @@ const EditAnnotationModal: FC<Props> = ({>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></div>diff --git a/web/app/components/app/annotation/remove-annotation-confirm-modal/index.tsx b/web/app/components/app/annotation/remove-annotation-confirm-modal/index.tsxindex 6538b40baf5..b7f21b6414e 100644--- a/web/app/components/app/annotation/remove-annotation-confirm-modal/index.tsx+++ b/web/app/components/app/annotation/remove-annotation-confirm-modal/index.tsx@@ -2,10 +2,10 @@import type { FC } from 'react'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import * as React from 'react'@@ -32,14 +32,14 @@ const RemoveAnnotationConfirmModal: FC<Props> = ({ isShow, onHide, onRemove }) ={title}</AlertDialogTitle></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton tone="destructive" onClick={onRemove}>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>)diff --git a/web/app/components/app/annotation/view-annotation-modal/index.tsx b/web/app/components/app/annotation/view-annotation-modal/index.tsxindex 2ee5a2253ef..e768f066daa 100644--- a/web/app/components/app/annotation/view-annotation-modal/index.tsx+++ b/web/app/components/app/annotation/view-annotation-modal/index.tsx@@ -3,10 +3,10 @@ import type { FC } from 'react'import type { AnnotationItem, HitHistoryItem } from '../type'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { cn } from '@langgenius/dify-ui/cn'@@ -273,7 +273,7 @@ const ViewAnnotationModal: FC<Props> = ({ appId, isShow, onHide, item, onSave, o{t(($) => $['feature.annotation.removeConfirm'], { ns: 'appDebug' })}</AlertDialogTitle></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton>@@ -287,7 +287,7 @@ const ViewAnnotationModal: FC<Props> = ({ appId, isShow, onHide, item, onSave, o>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></div>diff --git a/web/app/components/app/app-publisher/features-wrapper.tsx b/web/app/components/app/app-publisher/features-wrapper.tsxindex 94826743fe1..cb6bba8d249 100644--- a/web/app/components/app/app-publisher/features-wrapper.tsx+++ b/web/app/components/app/app-publisher/features-wrapper.tsx@@ -7,11 +7,11 @@ import type { ConfigurationPublishConfig } from '@/app/components/app/configuratimport type { Features, FileUpload } from '@/app/components/base/features/types'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { produce } from 'immer'@@ -119,14 +119,14 @@ const FeaturesWrappedAppPublisher = (props: Props) => {{t(($) => $['resetConfig.message'], { ns: 'appDebug' })}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton onClick={handleConfirm}>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></>diff --git a/web/app/components/app/configuration/config-var/index.tsx b/web/app/components/app/configuration/config-var/index.tsxindex 31506d715e0..5e4d42a445d 100644--- a/web/app/components/app/configuration/config-var/index.tsx+++ b/web/app/components/app/configuration/config-var/index.tsx@@ -5,11 +5,11 @@ import type { ExternalDataTool } from '@/models/common'import type { PromptVariable } from '@/models/debug'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { cn } from '@langgenius/dify-ui/cn'@@ -411,7 +411,7 @@ const ConfigVar: FC<IConfigVarProps> = ({ promptVariables, readonly, onPromptVar{t(($) => $['feature.dataSet.queryVariable.deleteContextVarTip'], { ns: 'appDebug' })}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton>@@ -423,7 +423,7 @@ const ConfigVar: FC<IConfigVarProps> = ({ promptVariables, readonly, onPromptVar>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></Panel>diff --git a/web/app/components/app/configuration/config/automatic/get-automatic-res.tsx b/web/app/components/app/configuration/config/automatic/get-automatic-res.tsxindex 9dd62be23d6..622b859d040 100644--- a/web/app/components/app/configuration/config/automatic/get-automatic-res.tsx+++ b/web/app/components/app/configuration/config/automatic/get-automatic-res.tsx@@ -6,11 +6,11 @@ import type { GenRes } from '@/service/debug'import type { AppModeEnum, CompletionParams, Model, ModelModeType } from '@/types/app'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Button } from '@langgenius/dify-ui/button'@@ -416,7 +416,7 @@ const GetAutomaticRes: FC<IGetAutomaticResProps> = ({{t(($) => $['generate.overwriteMessage'], { ns: 'appGeneration' })}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton>@@ -428,7 +428,7 @@ const GetAutomaticRes: FC<IGetAutomaticResProps> = ({>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></div>diff --git a/web/app/components/app/configuration/config/code-generator/get-code-generator-res.tsx b/web/app/components/app/configuration/config/code-generator/get-code-generator-res.tsxindex 504e1d1105d..5260f4127b8 100644--- a/web/app/components/app/configuration/config/code-generator/get-code-generator-res.tsx+++ b/web/app/components/app/configuration/config/code-generator/get-code-generator-res.tsx@@ -5,11 +5,11 @@ import type { GenRes } from '@/service/debug'import type { AppModeEnum, CompletionParams, Model, ModelModeType } from '@/types/app'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Button } from '@langgenius/dify-ui/button'@@ -288,7 +288,7 @@ export const GetCodeGeneratorResModal: FC<IGetCodeGeneratorResProps> = ({{t(($) => $['codegen.overwriteConfirmMessage'], { ns: 'appGeneration' })}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton>@@ -300,7 +300,7 @@ export const GetCodeGeneratorResModal: FC<IGetCodeGeneratorResProps> = ({>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></DialogContent>diff --git a/web/app/components/app/configuration/configuration-view/index.tsx b/web/app/components/app/configuration/configuration-view/index.tsxindex 5e67467df15..16c5e01d9ab 100644--- a/web/app/components/app/configuration/configuration-view/index.tsx+++ b/web/app/components/app/configuration/configuration-view/index.tsx@@ -5,11 +5,11 @@ import type { InstallBundleCompleteCallback } from '@/app/components/plugins/insimport { CodeBracketIcon } from '@heroicons/react/20/solid'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Button } from '@langgenius/dify-ui/button'@@ -208,7 +208,7 @@ const ConfigurationView: FC<ConfigurationViewModel> = ({{t(($) => $['trailUseGPT4Info.description'], { ns: 'appDebug' })}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton tone="default">{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton>@@ -219,7 +219,7 @@ const ConfigurationView: FC<ConfigurationViewModel> = ({>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>diff --git a/web/app/components/app/create-from-dsl-modal/dsl-confirm-modal.tsx b/web/app/components/app/create-from-dsl-modal/dsl-confirm-modal.tsxindex 2237325a9b4..666b06e452b 100644--- a/web/app/components/app/create-from-dsl-modal/dsl-confirm-modal.tsx+++ b/web/app/components/app/create-from-dsl-modal/dsl-confirm-modal.tsx@@ -1,10 +1,10 @@import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { useTranslation } from 'react-i18next'@@ -58,7 +58,7 @@ function DSLConfirmModal({</div></AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton variant="secondary" disabled={confirmLoading}>{t(($) => $['newApp.Cancel'], { ns: 'app' })}</AlertDialogCancelButton>@@ -69,7 +69,7 @@ function DSLConfirmModal({>{t(($) => $['newApp.Confirm'], { ns: 'app' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>)diff --git a/web/app/components/app/deploy/environment-table/undeploy-confirm-dialog/index.tsx b/web/app/components/app/deploy/environment-table/undeploy-confirm-dialog/index.tsxindex be9888d79a1..945e25c82b7 100644--- a/web/app/components/app/deploy/environment-table/undeploy-confirm-dialog/index.tsx+++ b/web/app/components/app/deploy/environment-table/undeploy-confirm-dialog/index.tsx@@ -2,11 +2,11 @@import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { useTranslation } from 'react-i18next'@@ -52,14 +52,14 @@ export function UndeployConfirmDialog({</p></AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton variant="secondary" className="min-w-20" disabled={isPending}>{tCommon(($) => $['operation.cancel'])}</AlertDialogCancelButton><AlertDialogConfirmButton className="min-w-20" loading={isPending} onClick={onConfirm}>{t(($) => $['deployTab.confirmUndeploy'])}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>)diff --git a/web/app/components/app/export-confirm-modal.tsx b/web/app/components/app/export-confirm-modal.tsxindex 6f1b2b2e283..a8cb5c08e1c 100644--- a/web/app/components/app/export-confirm-modal.tsx+++ b/web/app/components/app/export-confirm-modal.tsx@@ -2,11 +2,11 @@import type { EnvironmentVariableItemResponse } from '@dify/contracts/api/console/apps/types.gen'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Checkbox } from '@langgenius/dify-ui/checkbox'@@ -118,7 +118,7 @@ export const AppExportConfirmContent = ({</span></label></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton disabled={isExporting}>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton>@@ -136,7 +136,7 @@ export const AppExportConfirmContent = ({: t(($) => $.exportApp, { ns: 'app' })}</span></AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent>)}diff --git a/web/app/components/app/switch-app-modal/index.tsx b/web/app/components/app/switch-app-modal/index.tsxindex 0aa57a1cc76..4748e896125 100644--- a/web/app/components/app/switch-app-modal/index.tsx+++ b/web/app/components/app/switch-app-modal/index.tsx@@ -4,11 +4,11 @@ import type { AppPartial } from '@dify/contracts/api/console/apps/types.gen'import { zIconType } from '@dify/contracts/api/console/apps/zod.gen'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Button } from '@langgenius/dify-ui/button'@@ -241,14 +241,14 @@ const SwitchAppModal = ({ show, sourceApp, onClose }: SwitchAppModalProps) => {{t(($) => $.deleteAppConfirmContent, { ns: 'app' })}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton onClick={() => setShowConfirmDelete(false)}>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></>diff --git a/web/app/components/apps/app-card/interactions.tsx b/web/app/components/apps/app-card/interactions.tsxindex 313d6d56936..950002f774a 100644--- a/web/app/components/apps/app-card/interactions.tsx+++ b/web/app/components/apps/app-card/interactions.tsx@@ -10,11 +10,11 @@ import type { CreateAppModalProps } from '@/app/components/explore/create-app-moimport { zIconType } from '@dify/contracts/api/console/apps/zod.gen'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Button } from '@langgenius/dify-ui/button'@@ -725,7 +725,7 @@ export function AppCardInteractions({</InputGroup></Field></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton type="button" disabled={isDeleting}>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton>@@ -736,7 +736,7 @@ export function AppCardInteractions({>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></form></AlertDialogContent></AlertDialog>diff --git a/web/app/components/base/chat/chat-with-history/header-in-mobile.tsx b/web/app/components/base/chat/chat-with-history/header-in-mobile.tsxindex b7a5f6ce8a1..0df5565fd50 100644--- a/web/app/components/base/chat/chat-with-history/header-in-mobile.tsx+++ b/web/app/components/base/chat/chat-with-history/header-in-mobile.tsx@@ -1,11 +1,11 @@import type { ConversationItem } from '@/models/share'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import {@@ -195,14 +195,14 @@ const HeaderInMobile = () => {{t(($) => $['chat.deleteConversation.content'], { ns: 'share' }) || ''}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton onClick={handleDelete}>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>{showRename && (diff --git a/web/app/components/base/chat/chat-with-history/header/index.tsx b/web/app/components/base/chat/chat-with-history/header/index.tsxindex 922cc42e8c7..d48d07ee79c 100644--- a/web/app/components/base/chat/chat-with-history/header/index.tsx+++ b/web/app/components/base/chat/chat-with-history/header/index.tsx@@ -2,11 +2,11 @@ import type { Ref } from 'react'import type { ConversationItem } from '@/models/share'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { cn } from '@langgenius/dify-ui/cn'@@ -183,14 +183,14 @@ const Header = ({ toggleButtonRef }: { toggleButtonRef?: Ref<HTMLButtonElement>{t(($) => $['chat.deleteConversation.content'], { ns: 'share' }) || ''}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton onClick={handleDelete}>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>{showRename && (diff --git a/web/app/components/base/chat/chat-with-history/sidebar/index.tsx b/web/app/components/base/chat/chat-with-history/sidebar/index.tsxindex 5acf89ae58c..11437427669 100644--- a/web/app/components/base/chat/chat-with-history/sidebar/index.tsx+++ b/web/app/components/base/chat/chat-with-history/sidebar/index.tsx@@ -2,11 +2,11 @@ import type { Ref } from 'react'import type { ConversationItem } from '@/models/share'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Button } from '@langgenius/dify-ui/button'@@ -203,14 +203,14 @@ const Sidebar = ({ isPanel, toggleButtonRef }: Props) => {{deleteConversationContent}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton onClick={handleDelete}>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>{showRename && (diff --git a/web/app/components/datasets/create-from-pipeline/create-options/create-from-dsl-modal/dsl-confirm-modal.tsx b/web/app/components/datasets/create-from-pipeline/create-options/create-from-dsl-modal/dsl-confirm-modal.tsxindex d607e2aadd5..7312f5182ae 100644--- a/web/app/components/datasets/create-from-pipeline/create-options/create-from-dsl-modal/dsl-confirm-modal.tsx+++ b/web/app/components/datasets/create-from-pipeline/create-options/create-from-dsl-modal/dsl-confirm-modal.tsx@@ -1,10 +1,10 @@import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { useTranslation } from 'react-i18next'@@ -55,14 +55,14 @@ const DSLConfirmModal = ({</div></AlertDialogDescription></div>- <AlertDialogActions className="items-start p-0 pt-6">+ <AlertDialogFooter className="items-start p-0 pt-6"><AlertDialogCancelButton variant="secondary">{t(($) => $['newApp.Cancel'], { ns: 'app' })}</AlertDialogCancelButton><AlertDialogConfirmButton onClick={onConfirm} disabled={confirmDisabled}>{t(($) => $['newApp.Confirm'], { ns: 'app' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>)diff --git a/web/app/components/datasets/create-from-pipeline/list/template-card/index.tsx b/web/app/components/datasets/create-from-pipeline/list/template-card/index.tsxindex 73816d2baad..62d6e87b4ea 100644--- a/web/app/components/datasets/create-from-pipeline/list/template-card/index.tsx+++ b/web/app/components/datasets/create-from-pipeline/list/template-card/index.tsx@@ -1,11 +1,11 @@import type { PipelineTemplate } from '@/models/pipeline'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Dialog, DialogContent } from '@langgenius/dify-ui/dialog'@@ -187,14 +187,14 @@ const TemplateCard = ({ pipeline, showMoreOperations = true, type }: TemplateCar{t(($) => $['deletePipeline.content'], { ns: 'datasetPipeline' })}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton onClick={onConfirmDelete}>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></div>diff --git a/web/app/components/datasets/create/step-two/components/indexing-mode-section.tsx b/web/app/components/datasets/create/step-two/components/indexing-mode-section.tsxindex d6bddd5d088..53ae65b329d 100644--- a/web/app/components/datasets/create/step-two/components/indexing-mode-section.tsx+++ b/web/app/components/datasets/create/step-two/components/indexing-mode-section.tsx@@ -5,11 +5,11 @@ import type { DefaultModel } from '@/app/components/header/account-setting/modelimport type { RetrievalConfig } from '@/types/app'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { cn } from '@langgenius/dify-ui/cn'@@ -104,14 +104,14 @@ export const IndexingModeSection: FC<IndexingModeSectionProps> = ({{t(($) => $['stepTwo.qaSwitchHighQualityTipContent'], { ns: 'datasetCreation' })}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton variant="secondary">{t(($) => $['stepTwo.cancel'], { ns: 'datasetCreation' })}</AlertDialogCancelButton><AlertDialogConfirmButton tone="default" onClick={onQAConfirmDialogConfirm}>{t(($) => $['stepTwo.switch'], { ns: 'datasetCreation' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog><RadioGroup<IndexingType>diff --git a/web/app/components/datasets/documents/components/operations.tsx b/web/app/components/datasets/documents/components/operations.tsxindex 3dbcc1c9f51..95548d26121 100644--- a/web/app/components/datasets/documents/components/operations.tsx+++ b/web/app/components/datasets/documents/components/operations.tsx@@ -3,11 +3,11 @@ import type { CommonResponse } from '@/models/common'import type { DocumentDownloadResponse } from '@/service/datasets'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { cn } from '@langgenius/dify-ui/cn'@@ -541,14 +541,14 @@ const Operations = ({{t(($) => $['list.delete.content'], { ns: 'datasetDocuments' })}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton loading={deleting} onClick={() => onOperate('delete')}>{t(($) => $['operation.sure'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>diff --git a/web/app/components/datasets/documents/detail/completed/common/batch-action.tsx b/web/app/components/datasets/documents/detail/completed/common/batch-action.tsxindex 2f513025acf..8a13baa952a 100644--- a/web/app/components/datasets/documents/detail/completed/common/batch-action.tsx+++ b/web/app/components/datasets/documents/detail/completed/common/batch-action.tsx@@ -1,11 +1,11 @@import type { FC } from 'react'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Button } from '@langgenius/dify-ui/button'@@ -158,7 +158,7 @@ const BatchAction: FC<IBatchActionProps> = ({{t(($) => $['list.delete.content'], { ns: 'datasetDocuments' })}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton>@@ -169,7 +169,7 @@ const BatchAction: FC<IBatchActionProps> = ({>{t(($) => $['operation.sure'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>)}diff --git a/web/app/components/datasets/documents/detail/completed/segment-card/index.tsx b/web/app/components/datasets/documents/detail/completed/segment-card/index.tsxindex a3dd3487e01..d863dee4cdd 100644--- a/web/app/components/datasets/documents/detail/completed/segment-card/index.tsx+++ b/web/app/components/datasets/documents/detail/completed/segment-card/index.tsx@@ -2,10 +2,10 @@ import type { FC } from 'react'import type { ChildChunkDetail, SegmentDetailModel } from '@/models/datasets'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { cn } from '@langgenius/dify-ui/cn'@@ -319,7 +319,7 @@ const SegmentCard: FC<ISegmentCardProps> = ({{t(($) => $['segment.delete'], { ns: 'datasetDocuments' })}</AlertDialogTitle></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton>@@ -331,7 +331,7 @@ const SegmentCard: FC<ISegmentCardProps> = ({>{t(($) => $['operation.sure'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></div>diff --git a/web/app/components/datasets/external-api/external-api-modal/index.tsx b/web/app/components/datasets/external-api/external-api-modal/index.tsxindex 7fbe01f902d..945c32e7510 100644--- a/web/app/components/datasets/external-api/external-api-modal/index.tsx+++ b/web/app/components/datasets/external-api/external-api-modal/index.tsx@@ -2,11 +2,11 @@ import type { FC } from 'react'import type { CreateExternalAPIReq, FormSchema } from '../declarations'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Button } from '@langgenius/dify-ui/button'@@ -256,14 +256,14 @@ const AddExternalAPIModal: FC<AddExternalAPIModalProps> = ({{`${t(($) => $['editExternalAPIConfirmWarningContent.front'], { ns: 'dataset' })} ${datasetBindings?.length} ${t(($) => $['editExternalAPIConfirmWarningContent.end'], { ns: 'dataset' })}`}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton onClick={handleSave}>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></DialogContent>diff --git a/web/app/components/datasets/external-api/external-knowledge-api-card/index.tsx b/web/app/components/datasets/external-api/external-knowledge-api-card/index.tsxindex a1cac7202b8..4744a0dbd84 100644--- a/web/app/components/datasets/external-api/external-knowledge-api-card/index.tsx+++ b/web/app/components/datasets/external-api/external-knowledge-api-card/index.tsx@@ -2,11 +2,11 @@ import type { ExternalKnowledgeApiResponse } from '@dify/contracts/api/console/dimport type { CreateExternalAPIReq } from '../declarations'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { IconButton } from '@langgenius/dify-ui/icon-button'@@ -170,14 +170,14 @@ const ExternalKnowledgeAPICard: React.FC<ExternalKnowledgeAPICardProps> = ({})}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton onClick={handleConfirmDelete}>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></>diff --git a/web/app/components/datasets/list/dataset-card/components/dataset-card-modals.tsx b/web/app/components/datasets/list/dataset-card/components/dataset-card-modals.tsxindex 0a2430eb50d..7ef0f26defd 100644--- a/web/app/components/datasets/list/dataset-card/components/dataset-card-modals.tsx+++ b/web/app/components/datasets/list/dataset-card/components/dataset-card-modals.tsx@@ -1,11 +1,11 @@import type { DataSet } from '@/models/datasets'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import * as React from 'react'@@ -62,14 +62,14 @@ const DatasetCardModals = ({{modalState.confirmMessage}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton onClick={onConfirmDelete}>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></>diff --git a/web/app/components/datasets/metadata/metadata-dataset/dataset-metadata-drawer.tsx b/web/app/components/datasets/metadata/metadata-dataset/dataset-metadata-drawer.tsxindex dc998425013..11fd7468ba1 100644--- a/web/app/components/datasets/metadata/metadata-dataset/dataset-metadata-drawer.tsx+++ b/web/app/components/datasets/metadata/metadata-dataset/dataset-metadata-drawer.tsx@@ -3,11 +3,11 @@ import type { FC } from 'react'import type { BuiltInMetadataItem, MetadataItemWithValueLength } from '../types'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Button } from '@langgenius/dify-ui/button'@@ -138,14 +138,14 @@ const Item: FC<ItemProps> = ({ readonly, disabled, payload, onRename, onDelete }})}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton onClick={handleDelete}>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></div>diff --git a/web/app/components/header/account-setting/access-rules-page/access-rule-row-menu.tsx b/web/app/components/header/account-setting/access-rules-page/access-rule-row-menu.tsxindex 53313052f30..c761dcbfc77 100644--- a/web/app/components/header/account-setting/access-rules-page/access-rule-row-menu.tsx+++ b/web/app/components/header/account-setting/access-rules-page/access-rule-row-menu.tsx@@ -3,11 +3,11 @@import type { AccessPolicy } from '@dify/contracts/api/console/workspaces/types.gen'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import {@@ -137,14 +137,14 @@ const AccessRuleRowMenu = ({ rule, onView, onEdit }: AccessRuleRowMenuProps) =>{t(($) => $['accessRule.deleteDescription'], { ns: 'permission' })}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton disabled={isDeletingAccessRule} onClick={handleDelete}>{t(($) => $['operation.delete'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></>diff --git a/web/app/components/header/account-setting/api-based-extension-page/item.tsx b/web/app/components/header/account-setting/api-based-extension-page/item.tsxindex d21a1b81fc1..1d2892d79ba 100644--- a/web/app/components/header/account-setting/api-based-extension-page/item.tsx+++ b/web/app/components/header/account-setting/api-based-extension-page/item.tsx@@ -1,10 +1,10 @@import type { ApiBasedExtensionResponse } from '@dify/contracts/api/console/api-based-extension/types.gen'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Button } from '@langgenius/dify-ui/button'@@ -86,7 +86,7 @@ export function Item({ apiBasedExtension, onEdit, canManage = true }: ItemProps){`${t(($) => $['operation.delete'], { ns: 'common' })} \u201C${apiBasedExtension.name}\u201D?`}</AlertDialogTitle></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton>@@ -96,7 +96,7 @@ export function Item({ apiBasedExtension, onEdit, canManage = true }: ItemProps)>{t(($) => $['operation.delete'], { ns: 'common' }) || ''}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></div>diff --git a/web/app/components/header/account-setting/data-source-page-new/card.tsx b/web/app/components/header/account-setting/data-source-page-new/card.tsxindex e4fd22b17f5..6352515e4aa 100644--- a/web/app/components/header/account-setting/data-source-page-new/card.tsx+++ b/web/app/components/header/account-setting/data-source-page-new/card.tsx@@ -2,10 +2,10 @@ import type { DataSourceAuth, DataSourceCredential } from './types'import type { PluginDetail } from '@/app/components/plugins/types'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { memo, useCallback, useRef } from 'react'@@ -177,7 +177,7 @@ const Card = ({ item, disabled, pluginDetail, onPluginUpdate }: CardProps) => {{t(($) => $['list.delete.title'], { ns: 'datasetDocuments' })}</AlertDialogTitle></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton>@@ -187,7 +187,7 @@ const Card = ({ item, disabled, pluginDetail, onPluginUpdate }: CardProps) => {>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>{!!editValues && (diff --git a/web/app/components/header/account-setting/members-page/member-menu.tsx b/web/app/components/header/account-setting/members-page/member-menu.tsxindex acacc34eae3..734e6fb8cea 100644--- a/web/app/components/header/account-setting/members-page/member-menu.tsx+++ b/web/app/components/header/account-setting/members-page/member-menu.tsx@@ -3,11 +3,11 @@ import type { Role } from '@/models/access-control'import type { Member } from '@/models/common'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import {@@ -175,14 +175,14 @@ const MemberMenu = ({{t(($) => $['members.removeFromTeamConfirmDescription'], { ns: 'workspaceMembers' })}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton disabled={removing} onClick={handleRemove}>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>{assignModalOpen && (diff --git a/web/app/components/header/account-setting/model-provider-page/model-auth/authorized/index.tsx b/web/app/components/header/account-setting/model-provider-page/model-auth/authorized/index.tsxindex 8b5c0d3d59c..e5285511370 100644--- a/web/app/components/header/account-setting/model-provider-page/model-auth/authorized/index.tsx+++ b/web/app/components/header/account-setting/model-provider-page/model-auth/authorized/index.tsx@@ -10,10 +10,10 @@ import type {} from '../../declarations'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Button } from '@langgenius/dify-ui/button'@@ -273,14 +273,14 @@ const Authorized = ({{t(($) => $['modelProvider.confirmDelete'], { ns: 'modelProvider' })}</AlertDialogTitle></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton disabled={doingAction} onClick={handleConfirmDelete}>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></>diff --git a/web/app/components/header/account-setting/model-provider-page/model-modal/index.tsx b/web/app/components/header/account-setting/model-provider-page/model-modal/index.tsxindex 5f9aa16426c..229d7189d43 100644--- a/web/app/components/header/account-setting/model-provider-page/model-modal/index.tsx+++ b/web/app/components/header/account-setting/model-provider-page/model-modal/index.tsx@@ -8,10 +8,10 @@ import type {import type { FormRefObject, FormSchema } from '@/app/components/base/form/types'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Button } from '@langgenius/dify-ui/button'@@ -461,14 +461,14 @@ const ModelModal: FC<ModelModalProps> = ({{t(($) => $['modelProvider.confirmDelete'], { ns: 'modelProvider' })}</AlertDialogTitle></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton disabled={doingAction} onClick={handleDeleteCredential}>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></Dialog>diff --git a/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-auth-dropdown/dropdown-content.tsx b/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-auth-dropdown/dropdown-content.tsxindex e7d5715618d..b6aa314d1f8 100644--- a/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-auth-dropdown/dropdown-content.tsx+++ b/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-auth-dropdown/dropdown-content.tsx@@ -2,11 +2,11 @@ import type { Credential, ModelProvider, PreferredProviderTypeEnum } from '../..import type { CredentialPanelState } from '../use-credential-panel-state'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { memo, useCallback } from 'react'@@ -126,14 +126,14 @@ function DropdownContent({</AlertDialogTitle><AlertDialogDescription className="mt-1 system-sm-regular text-text-secondary" /></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton disabled={doingAction}>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton disabled={doingAction} onClick={handleConfirmDelete}>{t(($) => $['operation.delete'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></>diff --git a/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-load-balancing-modal.tsx b/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-load-balancing-modal.tsxindex a64d058e27f..95f1d9691bf 100644--- a/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-load-balancing-modal.tsx+++ b/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-load-balancing-modal.tsx@@ -8,10 +8,10 @@ import type {} from '../declarations'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Button } from '@langgenius/dify-ui/button'@@ -413,14 +413,14 @@ const ModelLoadBalancingModal = ({{t(($) => $['modelProvider.confirmDelete'], { ns: 'modelProvider' })}</AlertDialogTitle></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton disabled={doingAction} onClick={handleDeleteModel}>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></DialogContent>diff --git a/web/app/components/header/account-setting/model-provider-page/provider-added-card/provider-card-actions.tsx b/web/app/components/header/account-setting/model-provider-page/provider-added-card/provider-card-actions.tsxindex f7c8eb9bde0..5807bf6888f 100644--- a/web/app/components/header/account-setting/model-provider-page/provider-added-card/provider-card-actions.tsx+++ b/web/app/components/header/account-setting/model-provider-page/provider-added-card/provider-card-actions.tsx@@ -3,11 +3,11 @@ import type { ModelProviderPluginSummary } from '../index'import type { PluginDetail } from '@/app/components/plugins/types'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Button } from '@langgenius/dify-ui/button'@@ -265,14 +265,14 @@ function SummaryProviderCardActions({ summary, providerLabel, onUpdate }: Summar{t(($) => $['action.deleteContentRight'], { ns: 'plugin' })}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton disabled={deleting}>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton loading={deleting} onClick={handleDelete}>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></>diff --git a/web/app/components/header/account-setting/permissions-page/role-list/copy-members-confirm-dialog.tsx b/web/app/components/header/account-setting/permissions-page/role-list/copy-members-confirm-dialog.tsxindex 19d2810f699..94416edefa9 100644--- a/web/app/components/header/account-setting/permissions-page/role-list/copy-members-confirm-dialog.tsx+++ b/web/app/components/header/account-setting/permissions-page/role-list/copy-members-confirm-dialog.tsx@@ -3,9 +3,9 @@import type { Role } from '@/models/access-control'import {AlertDialog,- AlertDialogActions,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Button } from '@langgenius/dify-ui/button'@@ -52,7 +52,7 @@ export function CopyMembersConfirmDialog({})}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><Buttonvariant="secondary"disabled={isActionDisabled}@@ -68,7 +68,7 @@ export function CopyMembersConfirmDialog({>{t(($) => $['operation.copy'], { ns: 'common' })}</Button>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>)diff --git a/web/app/components/header/account-setting/permissions-page/role-list/row-menu.tsx b/web/app/components/header/account-setting/permissions-page/role-list/row-menu.tsxindex 107bf94665c..1d6a14c3e16 100644--- a/web/app/components/header/account-setting/permissions-page/role-list/row-menu.tsx+++ b/web/app/components/header/account-setting/permissions-page/role-list/row-menu.tsx@@ -2,11 +2,11 @@import type { Role, RoleCategory } from '@/models/access-control'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import {@@ -173,14 +173,14 @@ const RowMenu = ({ roleCategory, role, onView, onEdit }: RowMenuProps) => {{t(($) => $['role.deleteDescription'], { ns: 'permission' })}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton disabled={isDeletingRole} onClick={handleDelete}>{t(($) => $['operation.delete'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>{showCopyMembersConfirm && (diff --git a/web/app/components/plugins/plugin-auth/authorized/index.tsx b/web/app/components/plugins/plugin-auth/authorized/index.tsxindex 06f0009321d..2d0f63a1343 100644--- a/web/app/components/plugins/plugin-auth/authorized/index.tsx+++ b/web/app/components/plugins/plugin-auth/authorized/index.tsx@@ -3,10 +3,10 @@ import type { PopoverContentProps } from '@langgenius/dify-ui/popover'import type { Credential, PluginPayload } from '../types'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Button } from '@langgenius/dify-ui/button'@@ -341,7 +341,7 @@ const Authorized = ({{t(($) => $['list.delete.title'], { ns: 'datasetDocuments' })}</AlertDialogTitle></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton>@@ -351,7 +351,7 @@ const Authorized = ({>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>{!!editValues && (diff --git a/web/app/components/plugins/plugin-detail-panel/detail-header/components/header-modals.tsx b/web/app/components/plugins/plugin-detail-panel/detail-header/components/header-modals.tsxindex 7657f6c15dc..0a7a2041364 100644--- a/web/app/components/plugins/plugin-detail-panel/detail-header/components/header-modals.tsx+++ b/web/app/components/plugins/plugin-detail-panel/detail-header/components/header-modals.tsx@@ -5,11 +5,11 @@ import type { PluginDetail } from '../../../types'import type { ModalStates, VersionTarget } from '../hooks'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { useTranslation } from 'react-i18next'@@ -84,14 +84,14 @@ const HeaderModals: FC<HeaderModalsProps> = ({{t(($) => $[`${i18nPrefix}.deleteContentRight`], { ns: 'plugin' })}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton disabled={deleting}>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton loading={deleting} onClick={onDelete}>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>diff --git a/web/app/components/plugins/plugin-detail-panel/endpoint-card.tsx b/web/app/components/plugins/plugin-detail-panel/endpoint-card.tsxindex 249af94f82d..b48d3bdac36 100644--- a/web/app/components/plugins/plugin-detail-panel/endpoint-card.tsx+++ b/web/app/components/plugins/plugin-detail-panel/endpoint-card.tsx@@ -2,10 +2,10 @@ import type { EndpointListItemResponse } from '@dify/contracts/api/console/worksimport type { PluginDetail } from '../types'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { IconButton } from '@langgenius/dify-ui/icon-button'@@ -185,7 +185,7 @@ const EndpointCard = ({ pluginDetail, data }: Props) => {{t(($) => $['detailPanel.endpointDisableContent'], { ns: 'plugin', name: data.name })}</div></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton>@@ -195,7 +195,7 @@ const EndpointCard = ({ pluginDetail, data }: Props) => {>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog><AlertDialog open={isShowDeleteConfirm} onOpenChange={(open) => !open && hideDeleteConfirm()}>@@ -208,7 +208,7 @@ const EndpointCard = ({ pluginDetail, data }: Props) => {{t(($) => $['detailPanel.endpointDeleteContent'], { ns: 'plugin', name: data.name })}</div></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton>@@ -218,7 +218,7 @@ const EndpointCard = ({ pluginDetail, data }: Props) => {>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>{isShowEndpointModal && (diff --git a/web/app/components/plugins/plugin-detail-panel/subscription-list/delete-confirm.tsx b/web/app/components/plugins/plugin-detail-panel/subscription-list/delete-confirm.tsxindex 697e54be452..ff9270ea28a 100644--- a/web/app/components/plugins/plugin-detail-panel/subscription-list/delete-confirm.tsx+++ b/web/app/components/plugins/plugin-detail-panel/subscription-list/delete-confirm.tsx@@ -1,10 +1,10 @@import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Field, FieldLabel } from '@langgenius/dify-ui/field'@@ -101,14 +101,14 @@ export const DeleteConfirm = (props: Props) => {</Field>)}</div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton disabled={isDeleting}>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton type="submit" loading={isDeleting}>{t(($) => $[`${tPrefix}.confirm`], { ns: 'pluginTrigger' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></form></AlertDialogContent></AlertDialog>diff --git a/web/app/components/plugins/plugin-item/action.tsx b/web/app/components/plugins/plugin-item/action.tsxindex f6f97b3366e..fbfaf24cae5 100644--- a/web/app/components/plugins/plugin-item/action.tsx+++ b/web/app/components/plugins/plugin-item/action.tsx@@ -4,10 +4,10 @@ import type { MetaData } from '../types'import type { PluginCategoryEnum } from '@/app/components/plugins/types'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { IconButton } from '@langgenius/dify-ui/icon-button'@@ -188,14 +188,14 @@ const Action: FC<Props> = ({<br /></div></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton loading={deleting} onClick={handleDelete}>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></div>diff --git a/web/app/components/rag-pipeline/components/conversion.tsx b/web/app/components/rag-pipeline/components/conversion.tsxindex 720f7470292..0329fd163b0 100644--- a/web/app/components/rag-pipeline/components/conversion.tsx+++ b/web/app/components/rag-pipeline/components/conversion.tsx@@ -1,10 +1,10 @@import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Button } from '@langgenius/dify-ui/button'@@ -129,7 +129,7 @@ const Conversion = () => {{confirmContent}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton>@@ -140,7 +140,7 @@ const Conversion = () => {>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></div>diff --git a/web/app/components/rag-pipeline/components/export-confirm-modal.tsx b/web/app/components/rag-pipeline/components/export-confirm-modal.tsxindex 629c49394ec..0fe8081e15d 100644--- a/web/app/components/rag-pipeline/components/export-confirm-modal.tsx+++ b/web/app/components/rag-pipeline/components/export-confirm-modal.tsx@@ -2,10 +2,10 @@import type { EnvironmentVariableItemResponse } from '@dify/contracts/api/console/apps/types.gen'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Checkbox } from '@langgenius/dify-ui/checkbox'@@ -114,7 +114,7 @@ const PipelineExportConfirmContent = ({</span></label></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton disabled={isExporting}>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton>@@ -132,7 +132,7 @@ const PipelineExportConfirmContent = ({: t(($) => $['env.export.ignore'], { ns: 'workflow' })}</span></AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent>)}diff --git a/web/app/components/rag-pipeline/components/rag-pipeline-header/publisher/popup.tsx b/web/app/components/rag-pipeline/components/rag-pipeline-header/publisher/popup.tsxindex 9751eb4f44e..50b7b6527c1 100644--- a/web/app/components/rag-pipeline/components/rag-pipeline-header/publisher/popup.tsx+++ b/web/app/components/rag-pipeline/components/rag-pipeline-header/publisher/popup.tsx@@ -1,11 +1,11 @@import type { PublishWorkflowParams } from '@/types/workflow'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Button, buttonVariants } from '@langgenius/dify-ui/button'@@ -370,14 +370,14 @@ export function Popup({{t(($) => $['common.confirmPublishContent'], { ns: 'pipeline' })}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton disabled={publishing} onClick={() => void handlePublish()}>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></div>diff --git a/web/app/components/rag-pipeline/components/version-mismatch-modal.tsx b/web/app/components/rag-pipeline/components/version-mismatch-modal.tsxindex c9fb8d93dae..d9bfa6a014b 100644--- a/web/app/components/rag-pipeline/components/version-mismatch-modal.tsx+++ b/web/app/components/rag-pipeline/components/version-mismatch-modal.tsx@@ -1,11 +1,11 @@import type { MouseEventHandler } from 'react'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { useTranslation } from 'react-i18next'@@ -57,14 +57,14 @@ const VersionMismatchModal = ({</div></AlertDialogDescription></div>- <AlertDialogActions className="items-start p-0 pt-6">+ <AlertDialogFooter className="items-start p-0 pt-6"><AlertDialogCancelButton variant="secondary">{t(($) => $['newApp.Cancel'], { ns: 'app' })}</AlertDialogCancelButton><AlertDialogConfirmButton onClick={onConfirm}>{t(($) => $['newApp.Confirm'], { ns: 'app' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>)diff --git a/web/app/components/snippet-list/components/snippet-card.tsx b/web/app/components/snippet-list/components/snippet-card.tsxindex dd7fee4aacb..cb379ff8f38 100644--- a/web/app/components/snippet-list/components/snippet-card.tsx+++ b/web/app/components/snippet-list/components/snippet-card.tsx@@ -3,11 +3,11 @@import type { SnippetListItem } from '@/types/snippet'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import {@@ -268,7 +268,7 @@ const SnippetCard = ({{t(($) => $.deleteConfirmContent)}</AlertDialogDescription></div>- <AlertDialogActions className="pt-0">+ <AlertDialogFooter className="pt-0"><AlertDialogCancelButton disabled={deleteSnippetMutation.isPending}>{tCommon(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton>@@ -278,7 +278,7 @@ const SnippetCard = ({>{t(($) => $['menu.deleteSnippet'])}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></>diff --git a/web/app/components/snippets/import-snippet-dsl-dialog.tsx b/web/app/components/snippets/import-snippet-dsl-dialog.tsxindex 4fa303f9bd5..d850d90af61 100644--- a/web/app/components/snippets/import-snippet-dsl-dialog.tsx+++ b/web/app/components/snippets/import-snippet-dsl-dialog.tsx@@ -4,11 +4,11 @@ import type { MouseEventHandler } from 'react'import type { SnippetDSLImportResponse } from '@/types/snippet'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Button } from '@langgenius/dify-ui/button'@@ -92,14 +92,14 @@ function SnippetDSLConfirmDialog({</div></AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton variant="secondary">{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton onClick={onConfirm} disabled={confirmDisabled}>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>)diff --git a/web/app/components/tools/mcp/detail/content.tsx b/web/app/components/tools/mcp/detail/content.tsxindex eebb4f1ce53..8717e560ea2 100644--- a/web/app/components/tools/mcp/detail/content.tsx+++ b/web/app/components/tools/mcp/detail/content.tsx@@ -3,11 +3,11 @@ import type { FC } from 'react'import type { ToolWithProvider } from '../../../workflow/types'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Button } from '@langgenius/dify-ui/button'@@ -313,14 +313,14 @@ const MCPDetailContent: FC<Props> = ({{t(($) => $['mcp.toolUpdateConfirmContent'], { ns: 'tools' })}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton onClick={handleUpdateTools}>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></>diff --git a/web/app/components/tools/mcp/index.tsx b/web/app/components/tools/mcp/index.tsxindex e7a1c23a60e..6d6fc853af0 100644--- a/web/app/components/tools/mcp/index.tsx+++ b/web/app/components/tools/mcp/index.tsx@@ -5,11 +5,11 @@ import type { Collection } from '@/app/components/tools/types'import type { ToolWithProvider } from '@/app/components/workflow/types'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { cn } from '@langgenius/dify-ui/cn'@@ -211,14 +211,14 @@ const MCPList = ({{t(($) => $['mcp.deleteConfirmTitle'], { ns: 'tools', mcp: deletingProvider.name })}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton loading={isDeleting} onClick={handleDeleteConfirm}>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>)}diff --git a/web/app/components/tools/provider/detail.tsx b/web/app/components/tools/provider/detail.tsxindex da6f68da746..9c60d840fa6 100644--- a/web/app/components/tools/provider/detail.tsx+++ b/web/app/components/tools/provider/detail.tsx@@ -10,11 +10,11 @@ import type {import type { WorkflowToolDrawerPayload } from '@/app/components/tools/workflow-tool'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Button, buttonVariants } from '@langgenius/dify-ui/button'@@ -559,14 +559,14 @@ const ProviderDetail = ({ collection, onHide, onRefreshData }: Props) => {{t(($) => $['createTool.deleteToolConfirmContent'], { ns: 'tools' })}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton onClick={handleConfirmDelete}>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></div>diff --git a/web/app/components/workflow/comment/thread.tsx b/web/app/components/workflow/comment/thread.tsxindex bae41bb218e..54bccab3367 100644--- a/web/app/components/workflow/comment/thread.tsx+++ b/web/app/components/workflow/comment/thread.tsx@@ -7,11 +7,11 @@ import type {} from '@/app/components/workflow/comment/types'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Avatar, AvatarFallback, AvatarImage, AvatarRoot } from '@langgenius/dify-ui/avatar'@@ -822,7 +822,7 @@ function CommentThreadComponent({{t(($) => $['operation.confirmAction'], { ns: 'common' })}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton disabled={loading}>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton>@@ -835,7 +835,7 @@ function CommentThreadComponent({>{t(($) => $['operation.delete'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></div>diff --git a/web/app/components/workflow/index.tsx b/web/app/components/workflow/index.tsxindex 293df78ec12..2a0501263b4 100644--- a/web/app/components/workflow/index.tsx+++ b/web/app/components/workflow/index.tsx@@ -11,11 +11,11 @@ import type { EventEmitterValue } from '@/context/event-emitter'import type { VarInInspect } from '@/types/workflow'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { cn } from '@langgenius/dify-ui/cn'@@ -653,14 +653,14 @@ export const Workflow: FC<WorkflowProps> = memo(</AlertDialogDescription>)}</div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton onClick={showConfirm?.onConfirm}>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>{controlMode === ControlMode.Comment && isMouseOverCanvas && <CommentCursor />}diff --git a/web/app/components/workflow/nodes/_base/components/remove-effect-var-confirm.tsx b/web/app/components/workflow/nodes/_base/components/remove-effect-var-confirm.tsxindex 608cbbe31cf..a03383854c2 100644--- a/web/app/components/workflow/nodes/_base/components/remove-effect-var-confirm.tsx+++ b/web/app/components/workflow/nodes/_base/components/remove-effect-var-confirm.tsx@@ -2,11 +2,11 @@import type { FC } from 'react'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import * as React from 'react'@@ -38,14 +38,14 @@ const RemoveVarConfirm: FC<Props> = ({ isShow, onConfirm, onCancel }) => {{content}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton onClick={onConfirm}>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>)diff --git a/web/app/components/workflow/panel/version-history-panel/delete-confirm-modal.tsx b/web/app/components/workflow/panel/version-history-panel/delete-confirm-modal.tsxindex 464d8dde2e3..99c07fccd32 100644--- a/web/app/components/workflow/panel/version-history-panel/delete-confirm-modal.tsx+++ b/web/app/components/workflow/panel/version-history-panel/delete-confirm-modal.tsx@@ -2,11 +2,11 @@ import type { FC } from 'react'import type { VersionHistory } from '@/types/workflow'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import * as React from 'react'@@ -47,14 +47,14 @@ const DeleteConfirmModal: FC<DeleteConfirmModalProps> = ({{t(($) => $['versionHistory.deletionTip'], { ns: 'workflowHistory' })}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton variant="secondary">{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton onClick={onDelete.bind(null, versionInfo.id)}>{t(($) => $['operation.delete'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>)diff --git a/web/app/components/workflow/panel/version-history-panel/restore-confirm-modal.tsx b/web/app/components/workflow/panel/version-history-panel/restore-confirm-modal.tsxindex 2602eb36d1d..bf265b9a6e3 100644--- a/web/app/components/workflow/panel/version-history-panel/restore-confirm-modal.tsx+++ b/web/app/components/workflow/panel/version-history-panel/restore-confirm-modal.tsx@@ -2,11 +2,11 @@ import type { FC } from 'react'import type { VersionHistory } from '@/types/workflow'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import * as React from 'react'@@ -47,14 +47,14 @@ const RestoreConfirmModal: FC<RestoreConfirmModalProps> = ({{t(($) => $['versionHistory.restorationTip'], { ns: 'workflowHistory' })}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton variant="secondary">{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton><AlertDialogConfirmButton tone="default" onClick={onRestore.bind(null, versionInfo)}>{t(($) => $['common.restore'], { ns: 'workflow' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>)diff --git a/web/app/components/workflow/workflow-generator/index.tsx b/web/app/components/workflow/workflow-generator/index.tsxindex 115daed2f94..552990b6cf2 100644--- a/web/app/components/workflow/workflow-generator/index.tsx+++ b/web/app/components/workflow/workflow-generator/index.tsx@@ -12,11 +12,11 @@ import type {import type { CompletionParams, ModelModeType } from '@/types/app'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Button, buttonVariants } from '@langgenius/dify-ui/button'@@ -143,10 +143,10 @@ const RecoveryDialog = ({{description}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{cancelLabel}</AlertDialogCancelButton><AlertDialogConfirmButton onClick={onConfirm}>{confirmLabel}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>)diff --git a/web/features/agent-v2/agent-detail/access/components/agent-api-key-modal.tsx b/web/features/agent-v2/agent-detail/access/components/agent-api-key-modal.tsxindex e35f80db08c..701686814ef 100644--- a/web/features/agent-v2/agent-detail/access/components/agent-api-key-modal.tsx+++ b/web/features/agent-v2/agent-detail/access/components/agent-api-key-modal.tsx@@ -2,11 +2,11 @@import type { ApiKeyItem } from '@dify/contracts/api/console/agent/types.gen'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Button } from '@langgenius/dify-ui/button'@@ -288,14 +288,14 @@ export function AgentApiKeyModal({{t(($) => $['actionMsg.deleteConfirmTips'])}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{tCommon(($) => $['operation.cancel'])}</AlertDialogCancelButton><AlertDialogConfirmButton loading={isDeleting} onClick={handleDeleteApiKey}>{tCommon(($) => $['operation.confirm'])}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></>diff --git a/web/features/agent-v2/agent-detail/configure/components/confirm-clear-session-dialog.tsx b/web/features/agent-v2/agent-detail/configure/components/confirm-clear-session-dialog.tsxindex d4014ff6575..5606e51e5e4 100644--- a/web/features/agent-v2/agent-detail/configure/components/confirm-clear-session-dialog.tsx+++ b/web/features/agent-v2/agent-detail/configure/components/confirm-clear-session-dialog.tsx@@ -3,11 +3,11 @@import type { ReactElement, ReactNode } from 'react'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,AlertDialogTrigger,} from '@langgenius/dify-ui/alert-dialog'@@ -66,7 +66,7 @@ export function AgentConfigureClearSessionConfirmDialog({{t(($) => $['agentDetail.configure.clearSessionConfirm.description'])}</AlertDialogDescription></div>- <AlertDialogActions className="pt-6">+ <AlertDialogFooter className="pt-6"><AlertDialogCancelButton disabled={confirmDisabled || isConfirming}>{tCommon(($) => $['operation.cancel'])}</AlertDialogCancelButton>@@ -77,7 +77,7 @@ export function AgentConfigureClearSessionConfirmDialog({>{tCommon(($) => $['operation.confirm'])}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>)diff --git a/web/features/agent-v2/agent-detail/configure/components/version-restore/index.tsx b/web/features/agent-v2/agent-detail/configure/components/version-restore/index.tsxindex 472a89e563b..7bb9836d44b 100644--- a/web/features/agent-v2/agent-detail/configure/components/version-restore/index.tsx+++ b/web/features/agent-v2/agent-detail/configure/components/version-restore/index.tsx@@ -4,11 +4,11 @@ import type { AgentConfigSnapshotSummaryResponse } from '@dify/contracts/api/conimport type { ReactNode } from 'react'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'@@ -140,7 +140,7 @@ export function AgentVersionRestore({{t(($) => $['versionHistory.restorationTip'], { ns: 'workflowHistory' })}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton variant="secondary" disabled={mutation.isPending}>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton>@@ -152,7 +152,7 @@ export function AgentVersionRestore({>{t(($) => $['agentDetail.versionHistory.restore'])}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></>diff --git a/web/features/agent-v2/roster/components/delete-agent-dialog.tsx b/web/features/agent-v2/roster/components/delete-agent-dialog.tsxindex 86798961ec1..4aef4263125 100644--- a/web/features/agent-v2/roster/components/delete-agent-dialog.tsx+++ b/web/features/agent-v2/roster/components/delete-agent-dialog.tsx@@ -2,11 +2,11 @@import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { useMutation } from '@tanstack/react-query'@@ -64,7 +64,7 @@ export function DeleteAgentDialog({<AlertDialogDescription className="mt-2 system-md-regular wrap-break-word whitespace-pre-wrap text-text-tertiary">{t(($) => $['roster.deleteDialog.description'], { ns: 'agentRoster', name: agentName })}</AlertDialogDescription>- <AlertDialogActions className="p-0 pt-6">+ <AlertDialogFooter className="p-0 pt-6"><AlertDialogCancelButton disabled={deleteAgentMutation.isPending}>{tCommon(($) => $['operation.cancel'])}</AlertDialogCancelButton>@@ -75,7 +75,7 @@ export function DeleteAgentDialog({>{tCommon(($) => $['operation.delete'])}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>)diff --git a/web/features/new-rag/components/add-source-exit-dialog.tsx b/web/features/new-rag/components/add-source-exit-dialog.tsxindex 07ee50ecc57..5af4c1c4575 100644--- a/web/features/new-rag/components/add-source-exit-dialog.tsx+++ b/web/features/new-rag/components/add-source-exit-dialog.tsx@@ -2,11 +2,11 @@import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { useTranslation } from 'react-i18next'@@ -51,14 +51,14 @@ export function AddSourceExitDialog({</p>)}</div>- <AlertDialogActions className="gap-2 p-6">+ <AlertDialogFooter className="gap-2 p-6"><AlertDialogCancelButton variant="secondary" disabled={discarding}>{tCommon(($) => $['operation.cancel'])}</AlertDialogCancelButton><AlertDialogConfirmButton loading={discarding} onClick={onConfirm}>{t(($) => $['newKnowledge.discardDraftConfirm'])}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>)diff --git a/web/features/new-rag/components/create-knowledge-exit-dialog.tsx b/web/features/new-rag/components/create-knowledge-exit-dialog.tsxindex 991c0fd6528..bd3d67d7f1f 100644--- a/web/features/new-rag/components/create-knowledge-exit-dialog.tsx+++ b/web/features/new-rag/components/create-knowledge-exit-dialog.tsx@@ -2,11 +2,11 @@import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { useTranslation } from 'react-i18next'@@ -53,7 +53,7 @@ export function CreateKnowledgeExitDialog({)}</AlertDialogDescription></div>- <AlertDialogActions className="gap-2 p-6">+ <AlertDialogFooter className="gap-2 p-6"><AlertDialogCancelButton variant="secondary">{tCommon(($) => $['operation.cancel'])}</AlertDialogCancelButton>@@ -64,7 +64,7 @@ export function CreateKnowledgeExitDialog({: $['newKnowledge.discardDraftConfirm'],)}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>)diff --git a/web/features/new-rag/sources-page.tsx b/web/features/new-rag/sources-page.tsxindex aa7169b306e..06a417170a1 100644--- a/web/features/new-rag/sources-page.tsx+++ b/web/features/new-rag/sources-page.tsx@@ -4,11 +4,11 @@ import type { Source } from '@dify/contracts/knowledge-fs/types.gen'import type { StatusDotStatus } from '@langgenius/dify-ui/status-dot'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Button } from '@langgenius/dify-ui/button'@@ -185,7 +185,7 @@ function SourceActions({{tCommon(($) => $['operation.confirmAction'])}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton variant="secondary">{tCommon(($) => $['operation.cancel'])}</AlertDialogCancelButton>@@ -200,7 +200,7 @@ function SourceActions({>{t(($) => $['newKnowledge.removeSource'])}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></>diff --git a/web/features/new-rag/website-crawl-preview.tsx b/web/features/new-rag/website-crawl-preview.tsxindex b83226ff4f0..d00b3d4309f 100644--- a/web/features/new-rag/website-crawl-preview.tsx+++ b/web/features/new-rag/website-crawl-preview.tsx@@ -9,11 +9,11 @@ import type { FormEvent } from 'react'import type { NewKnowledgeWebsiteSourceDraft } from './routes'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Button } from '@langgenius/dify-ui/button'@@ -1337,14 +1337,14 @@ export function WebsiteCrawlPreview({</p>)}</div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton disabled={discarding}>{t(($) => $['newKnowledge.keepEditing'])}</AlertDialogCancelButton><AlertDialogConfirmButton loading={discarding} onClick={() => void discardAndCancel()}>{t(($) => $['newKnowledge.discardSourceChangesConfirm'])}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></section>diff --git a/web/features/skills/detail/file-tree.tsx b/web/features/skills/detail/file-tree.tsxindex 23c518a8dde..04519bc620d 100644--- a/web/features/skills/detail/file-tree.tsx+++ b/web/features/skills/detail/file-tree.tsx@@ -22,11 +22,11 @@ import type {import type { SkillUploadDecision, SkillUploadReviewItem } from './upload-workflow'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import {@@ -1574,7 +1574,7 @@ export function FileTree({<AlertDialogDescription className="mt-2 system-md-regular text-text-tertiary">{deleteNode?.path}</AlertDialogDescription>- <AlertDialogActions className="p-0 pt-6">+ <AlertDialogFooter className="p-0 pt-6"><AlertDialogCancelButton disabled={fileMutation.isPending}>{tCommon(($) => $['operation.cancel'])}</AlertDialogCancelButton>@@ -1585,7 +1585,7 @@ export function FileTree({>{tCommon(($) => $['operation.delete'])}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog><div className="mx-3 border-t border-divider-subtle pt-2 pb-3">diff --git a/web/features/skills/detail/page.tsx b/web/features/skills/detail/page.tsxindex 633706de11a..bf3c30a1684 100644--- a/web/features/skills/detail/page.tsx+++ b/web/features/skills/detail/page.tsx@@ -4,10 +4,10 @@ import type { SkillDetailResponse } from '@dify/contracts/api/console/workspacesimport type { SkillFileMutationCoordinator } from './shared'import {AlertDialog,- AlertDialogActions,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'@@ -416,7 +416,7 @@ export function SkillDetailPage({ skillId }: { skillId: string }) {<AlertDialogDescription className="mt-2 system-md-regular text-text-tertiary">{t(($) => $['skillManagement.detail.saveConflictConfirmDescription'])}</AlertDialogDescription>- <AlertDialogActions className="p-0 pt-6">+ <AlertDialogFooter className="p-0 pt-6"><AlertDialogConfirmButtonloading={saveConflictReloading}tone="default"@@ -434,7 +434,7 @@ export function SkillDetailPage({ skillId }: { skillId: string }) {>{t(($) => $['skillManagement.detail.saveConflictReload'])}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>{canEdit && rightPanelMode === 'builder' && (diff --git a/web/features/skills/detail/sidebar-actions.tsx b/web/features/skills/detail/sidebar-actions.tsxindex 74e3acf9622..94f2220f89c 100644--- a/web/features/skills/detail/sidebar-actions.tsx+++ b/web/features/skills/detail/sidebar-actions.tsx@@ -3,11 +3,11 @@import type { SkillDetailResponse } from '@dify/contracts/api/console/workspaces/types.gen'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import {@@ -173,7 +173,7 @@ function SkillDetailDeleteDialog({</Field>)}</div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton disabled={deleteMutation.isPending}>{tCommon(($) => $['operation.cancel'])}</AlertDialogCancelButton>@@ -185,7 +185,7 @@ function SkillDetailDeleteDialog({>{tCommon(($) => (referenceCount > 0 ? $['operation.confirm'] : $['operation.delete']))}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>)diff --git a/web/features/skills/detail/version-panel.tsx b/web/features/skills/detail/version-panel.tsxindex e19656dcce6..95c9321d2d3 100644--- a/web/features/skills/detail/version-panel.tsx+++ b/web/features/skills/detail/version-panel.tsx@@ -3,11 +3,11 @@import type { SkillVersionResponse } from '@dify/contracts/api/console/workspaces/types.gen'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Button } from '@langgenius/dify-ui/button'@@ -68,14 +68,14 @@ export function RestoreVersionDialog({version: versionTitle,})}</AlertDialogDescription>- <AlertDialogActions className="p-0 pt-6">+ <AlertDialogFooter className="p-0 pt-6"><AlertDialogCancelButton disabled={loading}>{tCommon(($) => $['operation.cancel'])}</AlertDialogCancelButton><AlertDialogConfirmButton loading={loading} onClick={onConfirm}>{t(($) => $['skillManagement.detail.restoreVersion'])}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>)@@ -476,7 +476,7 @@ function VersionRow({<AlertDialogDescription className="mt-2 system-md-regular text-text-tertiary">{versionTitle}</AlertDialogDescription>- <AlertDialogActions className="p-0 pt-6">+ <AlertDialogFooter className="p-0 pt-6"><AlertDialogCancelButton disabled={deleteMutation.isPending}>{tCommon(($) => $['operation.cancel'])}</AlertDialogCancelButton>@@ -487,7 +487,7 @@ function VersionRow({>{tCommon(($) => $['operation.delete'])}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></>diff --git a/web/features/skills/page.tsx b/web/features/skills/page.tsxindex cfc67a663cb..b89725c27bb 100644--- a/web/features/skills/page.tsx+++ b/web/features/skills/page.tsx@@ -5,11 +5,11 @@ import type { QueryClient } from '@tanstack/react-query'import type { DragEvent, UIEvent } from 'react'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { Button } from '@langgenius/dify-ui/button'@@ -382,7 +382,7 @@ function DeleteSkillDialog({</Field>)}</div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton disabled={deleteMutation.isPending}>{tCommon(($) => $['operation.cancel'])}</AlertDialogCancelButton>@@ -394,7 +394,7 @@ function DeleteSkillDialog({>{tCommon(($) => $['operation.delete'])}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>)diff --git a/web/features/tag-management/components/tag-item-editor.tsx b/web/features/tag-management/components/tag-item-editor.tsxindex ccfb17939f0..3b5ac0cfc9d 100644--- a/web/features/tag-management/components/tag-item-editor.tsx+++ b/web/features/tag-management/components/tag-item-editor.tsx@@ -1,11 +1,11 @@import type { TagResponse as Tag } from '@dify/contracts/api/console/tags/types.gen'import {AlertDialog,- AlertDialogActions,AlertDialogCancelButton,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { cn } from '@langgenius/dify-ui/cn'@@ -163,7 +163,7 @@ export const TagItemEditor = ({ tag, onTagsChange }: TagItemEditorProps) => {{t(($) => $['tag.deleteTip'], { ns: 'common' })}</AlertDialogDescription></div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogCancelButton>{t(($) => $['operation.cancel'], { ns: 'common' })}</AlertDialogCancelButton>@@ -175,7 +175,7 @@ export const TagItemEditor = ({ tag, onTagsChange }: TagItemEditorProps) => {>{t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog></>diff --git a/web/hooks/use-pay.tsx b/web/hooks/use-pay.tsxindex 528643b33cf..8f0132b46c7 100644--- a/web/hooks/use-pay.tsx+++ b/web/hooks/use-pay.tsx@@ -2,10 +2,10 @@import {AlertDialog,- AlertDialogActions,AlertDialogConfirmButton,AlertDialogContent,AlertDialogDescription,+ AlertDialogFooter,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'import { useCallback, useEffect, useState } from 'react'@@ -132,7 +132,7 @@ export const CheckModal = () => {</AlertDialogDescription>)}</div>- <AlertDialogActions>+ <AlertDialogFooter><AlertDialogConfirmButtontone={confirmInfo.type !== 'info' ? 'destructive' : 'default'}onClick={handleCancelShowPayStatusModal}@@ -141,7 +141,7 @@ export const CheckModal = () => {? t(($) => $['operation.ok'], { ns: 'common' }): t(($) => $['operation.confirm'], { ns: 'common' })}</AlertDialogConfirmButton>- </AlertDialogActions>+ </AlertDialogFooter></AlertDialogContent></AlertDialog>)