Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

package.json 9.7KB

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