2025-04-17 12:02:23 +08:00
|
|
|
{
|
2025-04-17 16:38:35 +08:00
|
|
|
"name": "deer-flow-web",
|
2025-04-17 12:02:23 +08:00
|
|
|
"version": "0.1.0",
|
|
|
|
|
"private": true,
|
|
|
|
|
"type": "module",
|
|
|
|
|
"scripts": {
|
|
|
|
|
"build": "next build",
|
|
|
|
|
"check": "next lint && tsc --noEmit",
|
2025-07-24 16:53:40 +08:00
|
|
|
"dev": "dotenv -f ../.env -- next dev --turbo",
|
2025-04-17 12:02:23 +08:00
|
|
|
"scan": "next dev & npx react-scan@latest localhost:3000",
|
|
|
|
|
"format:check": "prettier --check \"**/*.{ts,tsx,js,jsx,mdx}\" --cache",
|
|
|
|
|
"format:write": "prettier --write \"**/*.{ts,tsx,js,jsx,mdx}\" --cache",
|
|
|
|
|
"lint": "next lint",
|
|
|
|
|
"lint:fix": "next lint --fix",
|
|
|
|
|
"preview": "next build && next start",
|
|
|
|
|
"start": "next start",
|
2025-10-25 20:46:43 +08:00
|
|
|
"typecheck": "tsc --noEmit",
|
|
|
|
|
"test": "jest --watch",
|
|
|
|
|
"test:run": "jest",
|
|
|
|
|
"test:coverage": "jest --coverage"
|
2025-04-17 12:02:23 +08:00
|
|
|
},
|
|
|
|
|
"dependencies": {
|
|
|
|
|
"@ant-design/icons": "^6.0.0",
|
2025-04-23 21:16:58 +08:00
|
|
|
"@hookform/resolvers": "^5.0.1",
|
2025-04-24 15:40:49 +08:00
|
|
|
"@radix-ui/react-accordion": "^1.2.8",
|
|
|
|
|
"@radix-ui/react-checkbox": "^1.2.3",
|
|
|
|
|
"@radix-ui/react-collapsible": "^1.1.8",
|
2025-04-22 11:04:03 +08:00
|
|
|
"@radix-ui/react-dialog": "^1.1.10",
|
2025-04-20 11:18:05 +08:00
|
|
|
"@radix-ui/react-dropdown-menu": "^2.1.11",
|
2026-01-24 17:49:13 +08:00
|
|
|
"@radix-ui/react-hover-card": "^1.1.6",
|
2025-04-28 10:07:36 +08:00
|
|
|
"@radix-ui/react-icons": "^1.3.2",
|
2025-04-22 11:04:03 +08:00
|
|
|
"@radix-ui/react-label": "^2.1.4",
|
2025-04-26 00:20:49 +08:00
|
|
|
"@radix-ui/react-popover": "^1.1.11",
|
2025-04-17 20:36:11 +08:00
|
|
|
"@radix-ui/react-scroll-area": "^1.2.4",
|
2025-04-24 15:40:49 +08:00
|
|
|
"@radix-ui/react-select": "^2.2.2",
|
2025-04-22 11:04:03 +08:00
|
|
|
"@radix-ui/react-separator": "^1.1.4",
|
2025-05-02 17:23:45 +08:00
|
|
|
"@radix-ui/react-slider": "^1.3.2",
|
2025-04-17 12:02:23 +08:00
|
|
|
"@radix-ui/react-slot": "^1.2.0",
|
2025-04-24 15:50:41 +08:00
|
|
|
"@radix-ui/react-switch": "^1.2.2",
|
2025-04-17 12:02:23 +08:00
|
|
|
"@radix-ui/react-tabs": "^1.1.4",
|
|
|
|
|
"@radix-ui/react-tooltip": "^1.2.0",
|
2025-05-28 14:13:46 +08:00
|
|
|
"@rc-component/mentions": "^1.2.0",
|
2025-04-17 14:26:41 +08:00
|
|
|
"@t3-oss/env-nextjs": "^0.11.0",
|
2025-04-26 00:20:49 +08:00
|
|
|
"@tailwindcss/typography": "^0.5.16",
|
2025-05-28 14:13:46 +08:00
|
|
|
"@tiptap/extension-document": "^2.12.0",
|
|
|
|
|
"@tiptap/extension-mention": "^2.12.0",
|
2025-04-27 10:39:02 +08:00
|
|
|
"@tiptap/extension-table": "^2.11.7",
|
|
|
|
|
"@tiptap/extension-table-cell": "^2.11.7",
|
|
|
|
|
"@tiptap/extension-table-header": "^2.11.7",
|
|
|
|
|
"@tiptap/extension-table-row": "^2.11.7",
|
2025-05-28 14:13:46 +08:00
|
|
|
"@tiptap/extension-text": "^2.12.0",
|
2025-04-27 00:19:13 +08:00
|
|
|
"@tiptap/react": "^2.11.7",
|
feat(web): add multi-format report export (Markdown, HTML, PDF, Word,… (#756)
* feat(web): add multi-format report export (Markdown, HTML, PDF, Word, Image)
* fix: correct import order for docx (lint error)
* fix(web): address Copilot review comments for multi-format export
- Add i18n support for dropdown menu items (en/zh)
- Add DOMPurify for HTML sanitization (XSS protection)
- Fix async handling for canvas.toBlob with Promise wrapper
- Add toast notifications for export errors
- Fix Tooltip + DropdownMenuTrigger nesting (accessibility)
- Ensure container cleanup in finally block
* fix(web): enhance markdown parsing for PDF and Word export
- Add list support (bullet and numbered) for PDF export
- Add parseInlineMarkdown helper for Word export to handle bold, italic, code, links
- Add list support for Word export (bullet and numbered)
- Address Copilot review comments from PR #756
* fix(web): address PR review feedback for multi-format export
- Extract PDF formatting magic numbers into PDF_CONSTANTS
- Add Tooltip wrapper for download dropdown button
- Reduce triggerDownload cleanup timeout from 1000ms to 100ms
- Use marked.Lexer.lexInline for robust markdown parsing
- Add console.warn for image export cleanup errors
- Add numbering config for Word document ordered lists
- Fix CSS class typo: px-5pb-20 -> px-5 pb-20
- Remove unreachable dead code in parseInlineMarkdown
---------
Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
2025-12-16 09:06:24 +08:00
|
|
|
"@types/dompurify": "^3.2.0",
|
2025-07-12 15:18:28 +08:00
|
|
|
"@types/js-cookie": "^3.0.6",
|
2025-04-29 14:12:36 +08:00
|
|
|
"@xyflow/react": "^12.6.0",
|
2025-04-17 12:02:23 +08:00
|
|
|
"best-effort-json-parser": "^1.1.3",
|
|
|
|
|
"class-variance-authority": "^0.7.1",
|
|
|
|
|
"clsx": "^2.1.1",
|
2025-04-26 00:20:49 +08:00
|
|
|
"cmdk": "^1.1.1",
|
feat(web): add multi-format report export (Markdown, HTML, PDF, Word,… (#756)
* feat(web): add multi-format report export (Markdown, HTML, PDF, Word, Image)
* fix: correct import order for docx (lint error)
* fix(web): address Copilot review comments for multi-format export
- Add i18n support for dropdown menu items (en/zh)
- Add DOMPurify for HTML sanitization (XSS protection)
- Fix async handling for canvas.toBlob with Promise wrapper
- Add toast notifications for export errors
- Fix Tooltip + DropdownMenuTrigger nesting (accessibility)
- Ensure container cleanup in finally block
* fix(web): enhance markdown parsing for PDF and Word export
- Add list support (bullet and numbered) for PDF export
- Add parseInlineMarkdown helper for Word export to handle bold, italic, code, links
- Add list support for Word export (bullet and numbered)
- Address Copilot review comments from PR #756
* fix(web): address PR review feedback for multi-format export
- Extract PDF formatting magic numbers into PDF_CONSTANTS
- Add Tooltip wrapper for download dropdown button
- Reduce triggerDownload cleanup timeout from 1000ms to 100ms
- Use marked.Lexer.lexInline for robust markdown parsing
- Add console.warn for image export cleanup errors
- Add numbering config for Word document ordered lists
- Fix CSS class typo: px-5pb-20 -> px-5 pb-20
- Remove unreachable dead code in parseInlineMarkdown
---------
Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
2025-12-16 09:06:24 +08:00
|
|
|
"docx": "^9.5.1",
|
|
|
|
|
"dompurify": "^3.3.1",
|
|
|
|
|
"file-saver": "^2.0.5",
|
2025-04-17 12:02:23 +08:00
|
|
|
"framer-motion": "^12.6.5",
|
|
|
|
|
"hast": "^1.0.0",
|
2025-04-26 00:20:49 +08:00
|
|
|
"highlight.js": "^11.11.1",
|
feat(web): add multi-format report export (Markdown, HTML, PDF, Word,… (#756)
* feat(web): add multi-format report export (Markdown, HTML, PDF, Word, Image)
* fix: correct import order for docx (lint error)
* fix(web): address Copilot review comments for multi-format export
- Add i18n support for dropdown menu items (en/zh)
- Add DOMPurify for HTML sanitization (XSS protection)
- Fix async handling for canvas.toBlob with Promise wrapper
- Add toast notifications for export errors
- Fix Tooltip + DropdownMenuTrigger nesting (accessibility)
- Ensure container cleanup in finally block
* fix(web): enhance markdown parsing for PDF and Word export
- Add list support (bullet and numbered) for PDF export
- Add parseInlineMarkdown helper for Word export to handle bold, italic, code, links
- Add list support for Word export (bullet and numbered)
- Address Copilot review comments from PR #756
* fix(web): address PR review feedback for multi-format export
- Extract PDF formatting magic numbers into PDF_CONSTANTS
- Add Tooltip wrapper for download dropdown button
- Reduce triggerDownload cleanup timeout from 1000ms to 100ms
- Use marked.Lexer.lexInline for robust markdown parsing
- Add console.warn for image export cleanup errors
- Add numbering config for Word document ordered lists
- Fix CSS class typo: px-5pb-20 -> px-5 pb-20
- Remove unreachable dead code in parseInlineMarkdown
---------
Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
2025-12-16 09:06:24 +08:00
|
|
|
"html2canvas": "^1.4.1",
|
2025-04-29 15:47:01 +08:00
|
|
|
"immer": "^10.1.1",
|
2025-07-12 15:18:28 +08:00
|
|
|
"js-cookie": "^3.0.5",
|
2026-02-06 10:29:43 +08:00
|
|
|
"jspdf": "^4.1.0",
|
2025-04-17 14:26:41 +08:00
|
|
|
"katex": "^0.16.21",
|
2025-04-26 00:20:49 +08:00
|
|
|
"lowlight": "^3.3.0",
|
2025-04-17 12:02:23 +08:00
|
|
|
"lru-cache": "^11.1.0",
|
|
|
|
|
"lucide-react": "^0.487.0",
|
feat(web): add multi-format report export (Markdown, HTML, PDF, Word,… (#756)
* feat(web): add multi-format report export (Markdown, HTML, PDF, Word, Image)
* fix: correct import order for docx (lint error)
* fix(web): address Copilot review comments for multi-format export
- Add i18n support for dropdown menu items (en/zh)
- Add DOMPurify for HTML sanitization (XSS protection)
- Fix async handling for canvas.toBlob with Promise wrapper
- Add toast notifications for export errors
- Fix Tooltip + DropdownMenuTrigger nesting (accessibility)
- Ensure container cleanup in finally block
* fix(web): enhance markdown parsing for PDF and Word export
- Add list support (bullet and numbered) for PDF export
- Add parseInlineMarkdown helper for Word export to handle bold, italic, code, links
- Add list support for Word export (bullet and numbered)
- Address Copilot review comments from PR #756
* fix(web): address PR review feedback for multi-format export
- Extract PDF formatting magic numbers into PDF_CONSTANTS
- Add Tooltip wrapper for download dropdown button
- Reduce triggerDownload cleanup timeout from 1000ms to 100ms
- Use marked.Lexer.lexInline for robust markdown parsing
- Add console.warn for image export cleanup errors
- Add numbering config for Word document ordered lists
- Fix CSS class typo: px-5pb-20 -> px-5 pb-20
- Remove unreachable dead code in parseInlineMarkdown
---------
Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
2025-12-16 09:06:24 +08:00
|
|
|
"marked": "^17.0.1",
|
2025-05-12 23:15:43 +08:00
|
|
|
"motion": "^12.7.4",
|
2025-04-17 12:02:23 +08:00
|
|
|
"nanoid": "^5.1.5",
|
2026-02-09 15:43:04 +08:00
|
|
|
"next": "^15.5.10",
|
2025-07-12 15:18:28 +08:00
|
|
|
"next-intl": "^4.3.1",
|
2025-04-20 11:18:05 +08:00
|
|
|
"next-themes": "^0.4.6",
|
2025-04-26 00:20:49 +08:00
|
|
|
"novel": "^1.0.2",
|
2025-04-17 12:02:23 +08:00
|
|
|
"react": "^19.0.0",
|
|
|
|
|
"react-dom": "^19.0.0",
|
2025-04-23 21:16:58 +08:00
|
|
|
"react-hook-form": "^7.56.1",
|
2025-04-17 12:02:23 +08:00
|
|
|
"react-markdown": "^10.1.0",
|
|
|
|
|
"react-syntax-highlighter": "^15.6.1",
|
|
|
|
|
"rehype-katex": "^7.0.1",
|
|
|
|
|
"remark-gfm": "^4.0.1",
|
|
|
|
|
"remark-math": "^6.0.0",
|
2025-04-26 00:20:49 +08:00
|
|
|
"sonner": "^2.0.3",
|
2025-04-17 12:02:23 +08:00
|
|
|
"tailwind-merge": "^3.2.0",
|
2025-05-28 14:13:46 +08:00
|
|
|
"tippy.js": "^6.3.7",
|
2025-04-26 00:20:49 +08:00
|
|
|
"tiptap-markdown": "^0.8.10",
|
2025-04-17 12:02:23 +08:00
|
|
|
"tw-animate-css": "^1.2.5",
|
|
|
|
|
"unist-util-visit": "^5.0.0",
|
2025-04-26 00:20:49 +08:00
|
|
|
"use-debounce": "^10.0.4",
|
2025-04-17 12:02:23 +08:00
|
|
|
"use-stick-to-bottom": "^1.1.0",
|
2025-04-23 21:16:58 +08:00
|
|
|
"zod": "^3.24.3",
|
2025-04-17 12:02:23 +08:00
|
|
|
"zustand": "^5.0.3"
|
|
|
|
|
},
|
|
|
|
|
"devDependencies": {
|
|
|
|
|
"@eslint/eslintrc": "^3.3.1",
|
|
|
|
|
"@tailwindcss/postcss": "^4.0.15",
|
2025-10-25 20:46:43 +08:00
|
|
|
"@testing-library/dom": "^10.4.1",
|
|
|
|
|
"@testing-library/react": "^16.3.0",
|
feat(web): add multi-format report export (Markdown, HTML, PDF, Word,… (#756)
* feat(web): add multi-format report export (Markdown, HTML, PDF, Word, Image)
* fix: correct import order for docx (lint error)
* fix(web): address Copilot review comments for multi-format export
- Add i18n support for dropdown menu items (en/zh)
- Add DOMPurify for HTML sanitization (XSS protection)
- Fix async handling for canvas.toBlob with Promise wrapper
- Add toast notifications for export errors
- Fix Tooltip + DropdownMenuTrigger nesting (accessibility)
- Ensure container cleanup in finally block
* fix(web): enhance markdown parsing for PDF and Word export
- Add list support (bullet and numbered) for PDF export
- Add parseInlineMarkdown helper for Word export to handle bold, italic, code, links
- Add list support for Word export (bullet and numbered)
- Address Copilot review comments from PR #756
* fix(web): address PR review feedback for multi-format export
- Extract PDF formatting magic numbers into PDF_CONSTANTS
- Add Tooltip wrapper for download dropdown button
- Reduce triggerDownload cleanup timeout from 1000ms to 100ms
- Use marked.Lexer.lexInline for robust markdown parsing
- Add console.warn for image export cleanup errors
- Add numbering config for Word document ordered lists
- Fix CSS class typo: px-5pb-20 -> px-5 pb-20
- Remove unreachable dead code in parseInlineMarkdown
---------
Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
2025-12-16 09:06:24 +08:00
|
|
|
"@types/file-saver": "^2.0.7",
|
2025-04-17 12:02:23 +08:00
|
|
|
"@types/hast": "^3.0.4",
|
2025-10-25 20:46:43 +08:00
|
|
|
"@types/jest": "^30.0.0",
|
2025-04-17 12:02:23 +08:00
|
|
|
"@types/node": "^20.14.10",
|
|
|
|
|
"@types/react": "^19.0.0",
|
|
|
|
|
"@types/react-dom": "^19.0.0",
|
|
|
|
|
"@types/react-syntax-highlighter": "^15.5.13",
|
2025-06-05 11:53:49 +08:00
|
|
|
"dotenv-cli": "^8.0.0",
|
2025-04-17 12:02:23 +08:00
|
|
|
"eslint": "^9.23.0",
|
|
|
|
|
"eslint-config-next": "^15.2.3",
|
2025-10-25 20:46:43 +08:00
|
|
|
"identity-obj-proxy": "^3.0.0",
|
|
|
|
|
"jest": "^30.2.0",
|
|
|
|
|
"jest-environment-jsdom": "^30.2.0",
|
2025-04-17 12:02:23 +08:00
|
|
|
"postcss": "^8.5.3",
|
|
|
|
|
"prettier": "^3.5.3",
|
|
|
|
|
"prettier-plugin-tailwindcss": "^0.6.11",
|
2025-04-22 13:52:56 +08:00
|
|
|
"raw-loader": "^4.0.2",
|
2025-04-17 12:02:23 +08:00
|
|
|
"tailwindcss": "^4.0.15",
|
2025-10-25 20:46:43 +08:00
|
|
|
"ts-jest": "^29.4.5",
|
2025-04-17 12:02:23 +08:00
|
|
|
"typescript": "^5.8.2",
|
|
|
|
|
"typescript-eslint": "^8.27.0"
|
|
|
|
|
},
|
|
|
|
|
"ct3aMetadata": {
|
|
|
|
|
"initVersion": "7.39.3"
|
|
|
|
|
},
|
2025-04-20 11:18:05 +08:00
|
|
|
"packageManager": "pnpm@10.6.5",
|
|
|
|
|
"pnpm": {
|
|
|
|
|
"ignoredBuiltDependencies": [
|
|
|
|
|
"sharp"
|
|
|
|
|
]
|
|
|
|
|
}
|
2025-07-24 16:53:40 +08:00
|
|
|
}
|