Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

package.json 7.3KB

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