package.json 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. {
  2. "name": "dify-web",
  3. "version": "1.1.3",
  4. "private": true,
  5. "engines": {
  6. "node": ">=18.18.0"
  7. },
  8. "scripts": {
  9. "dev": "cross-env NODE_OPTIONS='--inspect' next dev",
  10. "build": "next build",
  11. "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",
  12. "lint": "pnpm eslint --cache --cache-location node_modules/.cache/eslint/.eslint-cache",
  13. "fix": "next lint --fix",
  14. "eslint-fix": "eslint --cache --cache-location node_modules/.cache/eslint/.eslint-cache --fix",
  15. "eslint-fix-only-show-error": "eslint --cache --cache-location node_modules/.cache/eslint/.eslint-cache --fix --quiet",
  16. "prepare": "cd ../ && node -e \"if (process.env.NODE_ENV !== 'production'){process.exit(1)} \" || husky ./web/.husky",
  17. "gen-icons": "node ./app/components/base/icons/script.mjs",
  18. "uglify-embed": "node ./bin/uglify-embed",
  19. "check-i18n": "node ./i18n/check-i18n.js",
  20. "auto-gen-i18n": "node ./i18n/auto-gen-i18n.js",
  21. "test": "jest",
  22. "test:watch": "jest --watch",
  23. "storybook": "storybook dev -p 6006",
  24. "build-storybook": "storybook build",
  25. "preinstall": "npx only-allow pnpm"
  26. },
  27. "dependencies": {
  28. "@babel/runtime": "^7.22.3",
  29. "@dagrejs/dagre": "^1.1.4",
  30. "@emoji-mart/data": "^1.2.1",
  31. "@eslint/compat": "^1.2.4",
  32. "@floating-ui/react": "^0.26.25",
  33. "@formatjs/intl-localematcher": "^0.5.6",
  34. "@headlessui/react": "^2.2.0",
  35. "@heroicons/react": "^2.0.16",
  36. "@hookform/resolvers": "^3.9.0",
  37. "@lexical/code": "^0.18.0",
  38. "@lexical/link": "^0.18.0",
  39. "@lexical/list": "^0.18.0",
  40. "@lexical/react": "^0.18.0",
  41. "@lexical/selection": "^0.18.0",
  42. "@lexical/text": "^0.18.0",
  43. "@lexical/utils": "^0.18.0",
  44. "@mdx-js/loader": "^3.1.0",
  45. "@mdx-js/react": "^3.1.0",
  46. "@monaco-editor/react": "^4.6.0",
  47. "@next/mdx": "15.2.3",
  48. "@octokit/core": "^6.1.2",
  49. "@octokit/request-error": "^6.1.5",
  50. "@remixicon/react": "^4.5.0",
  51. "@sentry/react": "^8.54.0",
  52. "@sentry/utils": "^8.54.0",
  53. "@svgdotjs/svg.js": "^3.2.4",
  54. "@tailwindcss/typography": "^0.5.15",
  55. "@tanstack/react-query": "^5.60.5",
  56. "@tanstack/react-query-devtools": "^5.60.5",
  57. "ahooks": "^3.8.4",
  58. "class-variance-authority": "^0.7.0",
  59. "classnames": "^2.5.1",
  60. "copy-to-clipboard": "^3.3.3",
  61. "crypto-js": "^4.2.0",
  62. "dayjs": "^1.11.13",
  63. "decimal.js": "^10.4.3",
  64. "dompurify": "^3.2.4",
  65. "echarts": "^5.5.1",
  66. "echarts-for-react": "^3.0.2",
  67. "elkjs": "^0.9.3",
  68. "emoji-mart": "^5.5.2",
  69. "fast-deep-equal": "^3.1.3",
  70. "globals": "^15.11.0",
  71. "i18next": "^23.16.4",
  72. "i18next-resources-to-backend": "^1.2.1",
  73. "immer": "^9.0.19",
  74. "js-audio-recorder": "^1.0.7",
  75. "js-cookie": "^3.0.5",
  76. "jwt-decode": "^4.0.0",
  77. "katex": "^0.16.21",
  78. "ky": "^1.7.2",
  79. "lamejs": "^1.2.1",
  80. "lexical": "^0.18.0",
  81. "line-clamp": "^1.0.0",
  82. "lodash-es": "^4.17.21",
  83. "mermaid": "11.4.1",
  84. "mime": "^4.0.4",
  85. "mitt": "^3.0.1",
  86. "negotiator": "^0.6.3",
  87. "next": "15.2.3",
  88. "next-themes": "^0.4.3",
  89. "pinyin-pro": "^3.25.0",
  90. "qrcode.react": "^4.2.0",
  91. "qs": "^6.13.0",
  92. "rc-textarea": "^1.8.2",
  93. "react": "19.0.0",
  94. "react-18-input-autosize": "^3.0.0",
  95. "react-dom": "19.0.0",
  96. "react-easy-crop": "^5.1.0",
  97. "react-error-boundary": "^4.1.2",
  98. "react-headless-pagination": "^1.1.6",
  99. "react-hook-form": "^7.53.1",
  100. "react-hotkeys-hook": "^4.6.1",
  101. "react-i18next": "^15.1.0",
  102. "react-infinite-scroll-component": "^6.1.0",
  103. "react-markdown": "^9.0.1",
  104. "react-multi-email": "^1.0.25",
  105. "react-papaparse": "^4.4.0",
  106. "react-pdf-highlighter": "^8.0.0-rc.0",
  107. "react-slider": "^2.0.6",
  108. "react-sortablejs": "^6.1.4",
  109. "react-syntax-highlighter": "^15.6.1",
  110. "react-tooltip": "5.8.3",
  111. "react-window": "^1.8.10",
  112. "react-window-infinite-loader": "^1.0.9",
  113. "reactflow": "^11.11.3",
  114. "recordrtc": "^5.6.2",
  115. "rehype-katex": "^7.0.1",
  116. "rehype-raw": "^7.0.0",
  117. "remark-breaks": "^4.0.0",
  118. "remark-gfm": "^4.0.0",
  119. "remark-math": "^6.0.0",
  120. "scheduler": "^0.23.0",
  121. "semver": "^7.6.3",
  122. "server-only": "^0.0.1",
  123. "sharp": "^0.33.2",
  124. "shave": "^5.0.4",
  125. "sortablejs": "^1.15.0",
  126. "swr": "^2.3.0",
  127. "tailwind-merge": "^2.5.4",
  128. "use-context-selector": "^2.0.0",
  129. "uuid": "^10.0.0",
  130. "zod": "^3.23.8",
  131. "zundo": "^2.1.0",
  132. "zustand": "^4.5.2"
  133. },
  134. "devDependencies": {
  135. "@antfu/eslint-config": "^4.1.1",
  136. "@chromatic-com/storybook": "^3.1.0",
  137. "@eslint-react/eslint-plugin": "^1.15.0",
  138. "@eslint/eslintrc": "^3.1.0",
  139. "@eslint/js": "^9.20.0",
  140. "@faker-js/faker": "^9.0.3",
  141. "@next/eslint-plugin-next": "^15.2.3",
  142. "@rgrove/parse-xml": "^4.1.0",
  143. "@storybook/addon-essentials": "8.5.0",
  144. "@storybook/addon-interactions": "8.5.0",
  145. "@storybook/addon-links": "8.5.0",
  146. "@storybook/addon-onboarding": "8.5.0",
  147. "@storybook/addon-themes": "8.5.0",
  148. "@storybook/blocks": "8.5.0",
  149. "@storybook/nextjs": "8.5.0",
  150. "@storybook/react": "8.5.0",
  151. "@storybook/test": "8.5.0",
  152. "@testing-library/dom": "^10.4.0",
  153. "@testing-library/jest-dom": "^6.6.2",
  154. "@testing-library/react": "^16.0.1",
  155. "@types/crypto-js": "^4.2.2",
  156. "@types/dagre": "^0.7.52",
  157. "@types/jest": "^29.5.13",
  158. "@types/js-cookie": "^3.0.6",
  159. "@types/lodash-es": "^4.17.12",
  160. "@types/negotiator": "^0.6.3",
  161. "@types/node": "18.15.0",
  162. "@types/qs": "^6.9.16",
  163. "@types/react": "19.0.11",
  164. "@types/react-dom": "19.0.4",
  165. "@types/react-slider": "^1.3.6",
  166. "@types/react-syntax-highlighter": "^15.5.13",
  167. "@types/react-window": "^1.8.8",
  168. "@types/react-window-infinite-loader": "^1.0.9",
  169. "@types/recordrtc": "^5.6.14",
  170. "@types/semver": "^7.5.8",
  171. "@types/sortablejs": "^1.15.1",
  172. "@types/uuid": "^10.0.0",
  173. "autoprefixer": "^10.4.20",
  174. "bing-translate-api": "^4.0.2",
  175. "code-inspector-plugin": "^0.18.1",
  176. "cross-env": "^7.0.3",
  177. "eslint": "^9.20.1",
  178. "eslint-config-next": "^15.0.0",
  179. "eslint-plugin-react-hooks": "^5.1.0",
  180. "eslint-plugin-react-refresh": "^0.4.19",
  181. "eslint-plugin-storybook": "^0.11.2",
  182. "eslint-plugin-tailwindcss": "^3.18.0",
  183. "husky": "^9.1.6",
  184. "jest": "^29.7.0",
  185. "jest-environment-jsdom": "^29.7.0",
  186. "lint-staged": "^15.2.10",
  187. "magicast": "^0.3.4",
  188. "postcss": "^8.4.47",
  189. "sass": "^1.80.3",
  190. "storybook": "8.5.0",
  191. "tailwindcss": "^3.4.14",
  192. "ts-node": "^10.9.2",
  193. "typescript": "4.9.5",
  194. "typescript-eslint": "^8.23.0",
  195. "uglify-js": "^3.19.3"
  196. },
  197. "resolutions": {
  198. "@types/react": "~18.2.0",
  199. "@types/react-dom": "~18.2.0",
  200. "string-width": "4.2.3"
  201. },
  202. "lint-staged": {
  203. "**/*.js?(x)": [
  204. "eslint --fix"
  205. ],
  206. "**/*.ts?(x)": [
  207. "eslint --fix"
  208. ]
  209. },
  210. "overrides": {
  211. "@types/react": "19.0.11",
  212. "@types/react-dom": "19.0.4",
  213. "@storybook/test": "8.5.0"
  214. }
  215. }