2023-05-15 08:51:32 +08:00
|
|
|
{
|
|
|
|
"name": "dify-web",
|
2024-10-28 18:47:45 +08:00
|
|
|
"version": "0.10.2",
|
2023-05-15 08:51:32 +08:00
|
|
|
"private": true,
|
2024-07-09 15:05:40 +08:00
|
|
|
"engines": {
|
|
|
|
"node": ">=18.17.0"
|
|
|
|
},
|
2023-05-15 08:51:32 +08:00
|
|
|
"scripts": {
|
|
|
|
"dev": "next dev",
|
|
|
|
"build": "next build",
|
2023-10-19 11:38:03 +08:00
|
|
|
"start": "cp -r .next/static .next/standalone/.next/static && cp -r public .next/standalone/public && cross-env PORT=$npm_config_port HOSTNAME=$npm_config_host node .next/standalone/server.js",
|
2023-05-15 08:51:32 +08:00
|
|
|
"lint": "next lint",
|
2023-05-29 17:49:01 +08:00
|
|
|
"fix": "next lint --fix",
|
|
|
|
"eslint-fix": "eslint --fix",
|
2024-10-25 12:55:35 +08:00
|
|
|
"prepare": "cd ../ && node -e \"if (process.env.NODE_ENV !== 'production'){process.exit(1)} \" || husky ./web/.husky",
|
2024-10-21 09:45:52 +08:00
|
|
|
"gen-icons": "node ./app/components/base/icons/script.mjs",
|
2024-03-14 18:03:59 +08:00
|
|
|
"uglify-embed": "node ./bin/uglify-embed",
|
2024-09-03 10:17:05 +08:00
|
|
|
"check-i18n": "node ./i18n/check-i18n.js",
|
|
|
|
"auto-gen-i18n": "node ./i18n/auto-gen-i18n.js",
|
2024-07-18 17:35:10 +08:00
|
|
|
"test": "jest",
|
2024-10-16 10:18:48 +08:00
|
|
|
"test:watch": "jest --watch",
|
|
|
|
"storybook": "storybook dev -p 6006",
|
2024-10-21 09:39:41 +08:00
|
|
|
"build-storybook": "storybook build",
|
|
|
|
"preinstall": "npx only-allow pnpm"
|
2023-05-15 08:51:32 +08:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2023-06-06 10:29:38 +08:00
|
|
|
"@babel/runtime": "^7.22.3",
|
2024-10-29 17:47:06 +08:00
|
|
|
"@dagrejs/dagre": "^1.1.4",
|
2024-10-28 15:24:44 +08:00
|
|
|
"@emoji-mart/data": "^1.2.1",
|
2024-11-07 15:22:00 +08:00
|
|
|
"@floating-ui/react": "^0.26.25",
|
2024-10-28 15:32:39 +08:00
|
|
|
"@formatjs/intl-localematcher": "^0.5.6",
|
2023-05-15 08:51:32 +08:00
|
|
|
"@headlessui/react": "^1.7.13",
|
|
|
|
"@heroicons/react": "^2.0.16",
|
2024-05-09 15:38:09 +08:00
|
|
|
"@hookform/resolvers": "^3.3.4",
|
2024-10-28 15:33:22 +08:00
|
|
|
"@lexical/react": "^0.18.0",
|
2024-10-29 11:04:40 +08:00
|
|
|
"@mdx-js/loader": "^3.1.0",
|
|
|
|
"@mdx-js/react": "^3.1.0",
|
2024-04-08 18:51:46 +08:00
|
|
|
"@monaco-editor/react": "^4.6.0",
|
2024-01-09 13:46:02 +08:00
|
|
|
"@next/mdx": "^14.0.4",
|
2024-11-05 16:25:20 +08:00
|
|
|
"@octokit/core": "^6.1.2",
|
2024-10-16 15:17:55 +08:00
|
|
|
"@remixicon/react": "^4.3.0",
|
2023-06-13 16:04:54 +08:00
|
|
|
"@sentry/react": "^7.54.0",
|
2023-06-06 10:29:38 +08:00
|
|
|
"@sentry/utils": "^7.54.0",
|
2024-09-20 18:09:35 +08:00
|
|
|
"@svgdotjs/svg.js": "^3.2.4",
|
2023-08-03 13:20:52 +08:00
|
|
|
"@tailwindcss/line-clamp": "^0.4.4",
|
|
|
|
"@tailwindcss/typography": "^0.5.9",
|
2024-11-07 09:44:36 +08:00
|
|
|
"@tanstack/react-query": "^5.59.20",
|
|
|
|
"@tanstack/react-query-devtools": "^5.59.20",
|
2024-10-29 11:04:40 +08:00
|
|
|
"@types/hast": "^3.0.4",
|
2024-10-28 15:24:44 +08:00
|
|
|
"ahooks": "^3.8.1",
|
2024-06-19 14:53:19 +08:00
|
|
|
"class-variance-authority": "^0.7.0",
|
2024-10-28 15:24:44 +08:00
|
|
|
"classnames": "^2.5.1",
|
2023-05-15 08:51:32 +08:00
|
|
|
"copy-to-clipboard": "^3.3.3",
|
2023-11-01 11:24:33 +08:00
|
|
|
"crypto-js": "^4.2.0",
|
2024-10-28 15:24:44 +08:00
|
|
|
"dayjs": "^1.11.13",
|
2024-10-30 10:28:22 +08:00
|
|
|
"echarts": "^5.5.1",
|
2023-05-15 08:51:32 +08:00
|
|
|
"echarts-for-react": "^3.0.2",
|
2024-10-28 15:24:44 +08:00
|
|
|
"emoji-mart": "^5.6.0",
|
2024-06-26 14:37:12 +08:00
|
|
|
"fast-deep-equal": "^3.1.3",
|
2024-10-21 17:03:04 +08:00
|
|
|
"globals": "^15.11.0",
|
2024-10-28 15:32:39 +08:00
|
|
|
"i18next": "^23.16.4",
|
|
|
|
"i18next-resources-to-backend": "^1.2.1",
|
2023-05-15 08:51:32 +08:00
|
|
|
"immer": "^9.0.19",
|
2023-07-07 17:50:42 +08:00
|
|
|
"js-audio-recorder": "^1.0.7",
|
2024-10-25 17:48:26 +08:00
|
|
|
"js-cookie": "^3.0.5",
|
2024-10-12 23:40:38 +08:00
|
|
|
"jwt-decode": "^4.0.0",
|
2024-10-29 11:04:40 +08:00
|
|
|
"katex": "^0.16.11",
|
2024-01-22 14:52:39 +08:00
|
|
|
"lamejs": "^1.2.1",
|
2024-10-28 15:33:22 +08:00
|
|
|
"lexical": "^0.18.0",
|
2023-05-15 08:51:32 +08:00
|
|
|
"lodash-es": "^4.17.21",
|
2024-10-23 17:02:38 +08:00
|
|
|
"mermaid": "10.9.3",
|
2024-10-21 10:32:37 +08:00
|
|
|
"mime": "^4.0.4",
|
2023-05-15 08:51:32 +08:00
|
|
|
"negotiator": "^0.6.3",
|
2024-10-23 17:18:35 +08:00
|
|
|
"next": "^14.2.10",
|
2024-10-28 15:24:44 +08:00
|
|
|
"pinyin-pro": "^3.25.0",
|
2024-10-25 18:03:25 +08:00
|
|
|
"qrcode.react": "^4.1.0",
|
2024-10-25 17:48:26 +08:00
|
|
|
"qs": "^6.13.0",
|
2024-10-28 15:24:44 +08:00
|
|
|
"rc-textarea": "^1.8.2",
|
2024-05-11 15:39:56 +08:00
|
|
|
"react": "~18.2.0",
|
2023-08-18 17:18:58 +08:00
|
|
|
"react-18-input-autosize": "^3.0.0",
|
2024-05-11 15:39:56 +08:00
|
|
|
"react-dom": "~18.2.0",
|
2024-10-28 16:46:35 +08:00
|
|
|
"react-easy-crop": "^5.1.0",
|
2024-10-28 15:24:44 +08:00
|
|
|
"react-error-boundary": "^4.1.2",
|
2024-10-29 17:47:06 +08:00
|
|
|
"react-headless-pagination": "^1.1.6",
|
2024-05-09 15:38:09 +08:00
|
|
|
"react-hook-form": "^7.51.4",
|
2024-10-28 15:32:39 +08:00
|
|
|
"react-i18next": "^15.1.0",
|
2023-05-15 08:51:32 +08:00
|
|
|
"react-infinite-scroll-component": "^6.1.0",
|
2024-10-29 17:47:06 +08:00
|
|
|
"react-multi-email": "^1.0.25",
|
|
|
|
"react-papaparse": "^4.4.0",
|
2024-10-29 11:04:40 +08:00
|
|
|
"react-markdown": "^9.0.1",
|
2024-10-28 15:24:44 +08:00
|
|
|
"react-slider": "^2.0.6",
|
2023-06-15 17:07:17 +08:00
|
|
|
"react-sortablejs": "^6.1.4",
|
2024-10-28 15:24:44 +08:00
|
|
|
"react-syntax-highlighter": "^15.6.1",
|
2023-05-15 08:51:32 +08:00
|
|
|
"react-tooltip": "5.8.3",
|
2024-10-28 15:24:44 +08:00
|
|
|
"react-window": "^1.8.10",
|
2023-05-15 08:51:32 +08:00
|
|
|
"react-window-infinite-loader": "^1.0.9",
|
2024-05-27 21:57:08 +08:00
|
|
|
"reactflow": "^11.11.3",
|
2023-07-07 17:50:42 +08:00
|
|
|
"recordrtc": "^5.6.2",
|
2024-10-29 11:04:40 +08:00
|
|
|
"rehype-katex": "^7.0.1",
|
2024-09-05 21:00:09 +08:00
|
|
|
"rehype-raw": "^7.0.0",
|
2024-10-29 11:04:40 +08:00
|
|
|
"remark-breaks": "^4.0.0",
|
|
|
|
"remark-gfm": "^4.0.0",
|
|
|
|
"remark-math": "^6.0.0",
|
2023-05-15 08:51:32 +08:00
|
|
|
"scheduler": "^0.23.0",
|
2024-11-05 16:25:20 +08:00
|
|
|
"semver": "^7.6.3",
|
2023-05-15 08:51:32 +08:00
|
|
|
"server-only": "^0.0.1",
|
2024-10-25 17:48:26 +08:00
|
|
|
"sharp": "^0.33.5",
|
2024-10-28 15:24:44 +08:00
|
|
|
"sortablejs": "^1.15.3",
|
2023-05-15 08:51:32 +08:00
|
|
|
"swr": "^2.1.0",
|
2024-07-09 15:05:40 +08:00
|
|
|
"tailwind-merge": "^2.4.0",
|
2024-10-28 15:24:44 +08:00
|
|
|
"use-context-selector": "^2.0.0",
|
|
|
|
"uuid": "^10.0.0",
|
2024-05-09 15:38:09 +08:00
|
|
|
"zod": "^3.23.6",
|
2024-06-26 14:37:12 +08:00
|
|
|
"zundo": "^2.1.0",
|
|
|
|
"zustand": "^4.5.2"
|
2023-05-15 08:51:32 +08:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2024-10-21 16:21:12 +08:00
|
|
|
"@antfu/eslint-config": "^3.8.0",
|
2024-10-25 10:32:19 +08:00
|
|
|
"@chromatic-com/storybook": "^3.1.0",
|
2024-10-21 17:03:04 +08:00
|
|
|
"@eslint-react/eslint-plugin": "^1.15.0",
|
2024-10-21 13:16:56 +08:00
|
|
|
"@eslint/eslintrc": "^3.1.0",
|
|
|
|
"@eslint/js": "^9.13.0",
|
2024-10-25 17:48:26 +08:00
|
|
|
"@faker-js/faker": "^9.0.3",
|
2023-06-26 15:36:52 +08:00
|
|
|
"@rgrove/parse-xml": "^4.1.0",
|
2024-10-25 10:32:19 +08:00
|
|
|
"@storybook/addon-essentials": "^8.3.6",
|
|
|
|
"@storybook/addon-interactions": "^8.3.6",
|
|
|
|
"@storybook/addon-links": "^8.3.6",
|
|
|
|
"@storybook/addon-onboarding": "^8.3.6",
|
|
|
|
"@storybook/addon-themes": "^8.3.6",
|
|
|
|
"@storybook/blocks": "^8.3.6",
|
|
|
|
"@storybook/nextjs": "^8.3.6",
|
|
|
|
"@storybook/react": "^8.3.6",
|
|
|
|
"@storybook/test": "^8.3.6",
|
2024-10-25 12:57:57 +08:00
|
|
|
"@testing-library/dom": "^10.4.0",
|
|
|
|
"@testing-library/jest-dom": "^6.6.2",
|
|
|
|
"@testing-library/react": "^16.0.1",
|
2024-10-28 15:24:44 +08:00
|
|
|
"@types/crypto-js": "^4.2.2",
|
2024-04-08 18:51:46 +08:00
|
|
|
"@types/dagre": "^0.7.52",
|
2024-10-28 15:24:44 +08:00
|
|
|
"@types/jest": "^29.5.13",
|
2024-10-25 17:48:26 +08:00
|
|
|
"@types/js-cookie": "^3.0.6",
|
|
|
|
"@types/lodash-es": "^4.17.12",
|
2024-10-28 15:32:39 +08:00
|
|
|
"@types/negotiator": "^0.6.3",
|
2023-08-18 17:18:58 +08:00
|
|
|
"@types/node": "18.15.0",
|
2024-10-25 17:48:26 +08:00
|
|
|
"@types/qs": "^6.9.16",
|
2024-05-11 15:39:56 +08:00
|
|
|
"@types/react": "~18.2.0",
|
|
|
|
"@types/react-dom": "~18.2.0",
|
2024-10-28 15:24:44 +08:00
|
|
|
"@types/react-slider": "^1.3.6",
|
|
|
|
"@types/react-syntax-highlighter": "^15.5.13",
|
|
|
|
"@types/react-window": "^1.8.8",
|
|
|
|
"@types/react-window-infinite-loader": "^1.0.9",
|
|
|
|
"@types/recordrtc": "^5.6.14",
|
2024-11-05 16:25:20 +08:00
|
|
|
"@types/semver": "^7.5.8",
|
2023-06-15 17:07:17 +08:00
|
|
|
"@types/sortablejs": "^1.15.1",
|
2024-10-28 15:24:44 +08:00
|
|
|
"@types/uuid": "^10.0.0",
|
2023-10-19 11:38:03 +08:00
|
|
|
"autoprefixer": "^10.4.14",
|
2024-09-03 10:17:05 +08:00
|
|
|
"bing-translate-api": "^4.0.2",
|
2024-10-28 15:24:44 +08:00
|
|
|
"code-inspector-plugin": "^0.17.4",
|
2023-10-19 11:38:03 +08:00
|
|
|
"cross-env": "^7.0.3",
|
2024-10-21 17:03:04 +08:00
|
|
|
"eslint": "^9.13.0",
|
2024-10-25 12:51:11 +08:00
|
|
|
"eslint-config-next": "^15.0.0",
|
2024-10-21 17:03:04 +08:00
|
|
|
"eslint-plugin-react-hooks": "^5.0.0",
|
2024-10-25 12:51:11 +08:00
|
|
|
"eslint-plugin-react-refresh": "^0.4.13",
|
|
|
|
"eslint-plugin-storybook": "^0.10.1",
|
2024-11-05 16:25:20 +08:00
|
|
|
"husky": "^9.1.6",
|
2024-07-18 17:35:10 +08:00
|
|
|
"jest": "^29.7.0",
|
|
|
|
"jest-environment-jsdom": "^29.7.0",
|
2024-10-25 12:55:35 +08:00
|
|
|
"lint-staged": "^15.2.10",
|
2024-09-03 10:17:05 +08:00
|
|
|
"magicast": "^0.3.4",
|
2023-11-01 11:24:43 +08:00
|
|
|
"postcss": "^8.4.31",
|
2024-10-25 17:48:26 +08:00
|
|
|
"sass": "^1.80.3",
|
2024-10-25 10:32:19 +08:00
|
|
|
"storybook": "^8.3.6",
|
2024-07-09 15:05:40 +08:00
|
|
|
"tailwindcss": "^3.4.4",
|
2024-07-18 17:35:10 +08:00
|
|
|
"ts-node": "^10.9.2",
|
2023-09-19 13:31:48 +08:00
|
|
|
"typescript": "4.9.5",
|
2024-10-28 15:24:44 +08:00
|
|
|
"uglify-js": "^3.19.3"
|
2023-05-29 17:49:01 +08:00
|
|
|
},
|
2024-07-09 15:05:40 +08:00
|
|
|
"resolutions": {
|
|
|
|
"@types/react": "~18.2.0",
|
2024-08-20 18:28:39 +08:00
|
|
|
"@types/react-dom": "~18.2.0",
|
|
|
|
"string-width": "4.2.3"
|
2024-07-09 15:05:40 +08:00
|
|
|
},
|
2023-05-29 17:49:01 +08:00
|
|
|
"lint-staged": {
|
|
|
|
"**/*.js?(x)": [
|
|
|
|
"eslint --fix"
|
|
|
|
],
|
|
|
|
"**/*.ts?(x)": [
|
|
|
|
"eslint --fix"
|
|
|
|
]
|
2023-05-15 08:51:32 +08:00
|
|
|
}
|
2024-10-28 15:24:44 +08:00
|
|
|
}
|