dify/web/app/components/workflow/skill/utils
yyh cab33d440b
refactor(skill): remove Office file special handling, merge into unsupported
Remove the Office file placeholder that only showed "Preview will be
supported in a future update" without any download option. Office files
(pdf, doc, docx, xls, xlsx, ppt, pptx) now fall through to the generic
"unsupported file" handler which provides a download button.

Removed:
- OfficeFilePlaceholder component
- isOfficeFile function and OFFICE_EXTENSIONS constant
- isOffice flag from useFileTypeInfo hook
- i18n keys for officePlaceholder

This simplifies the file type handling to just three categories:
- Editable: markdown, code, text files → editor
- Previewable: image, video files → media preview
- Everything else: download button
2026-01-19 23:39:32 +08:00
..
drag-utils.ts refactor file drop handlers into hooks 2026-01-19 18:05:58 +08:00
file-utils.ts refactor(skill): remove Office file special handling, merge into unsupported 2026-01-19 23:39:32 +08:00
tree-utils.ts refactor(skill): unify root/blank constants and eliminate magic strings 2026-01-19 23:07:49 +08:00