Files
ai/web/package.json
zeekay 1f0bb02787 fix(web): repair botched antd→Tailwind codemod — restore compile (cloud.hanzo.ai)
Commit 6b8a61e4's automated antd→Tailwind migration was committed broken:
it ate event handlers (onClick={()=>X} → dangling >X}), deleted behavior
wrappers (Upload/Popconfirm/Popover/Tooltip), dropped antd imports for
components it left, mangled <Table> rowKeys, and left lint debt — so the
frontend hadn't compiled since (no cloud image past 1.784.2; blank SPA).

Repaired ~98 files using the last-good 1.784.2 source (527d7857) as ground
truth: restored exact handlers, re-imported still-used antd components,
restored deleted wrappers, fixed broken tags/rowKeys — keeping the new
Tailwind classNames throughout. Restored deps the merge dropped
(diagram-js, docx, qs, uuid, react-app-polyfill) and added the missing
getTaskTemplates backend helper. Cleared 56 build-blocking lint errors
(jsx-key, unused vars, constant-condition keys, unescaped entities) and
stale react-hooks/exhaustive-deps disable directives.

Verified: craco build (node 22, CI toolchain) compiles clean; bundle calls
/v1/* (not /api/*). Full Tailwind direction preserved.
2026-06-21 14:00:51 -07:00

135 lines
3.8 KiB
JSON

{
"name": "web",
"version": "0.1.0",
"private": true,
"dependencies": {
"@ant-design/cssinjs": "^1.23.0",
"@ant-design/icons": "^5.6.1",
"@ant-design/x": "^1.0.5",
"@bpmn-io/cm-theme": "0.1.0-alpha.2",
"@bpmn-io/properties-panel": "^3.26.4",
"@craco/craco": "6.4.5",
"@cyntler/react-doc-viewer": "^1.5.2",
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/utilities": "^3.2.2",
"@hanzo/iam-js-sdk": "^0.19.1",
"@uiw/codemirror-extensions-langs": "^4.23.8",
"@uiw/codemirror-theme-material": "^4.23.8",
"@uiw/react-codemirror": "^4.23.8",
"aliplayer-react": "^0.7.0",
"antd": "5.24.0",
"antd-token-previewer": "^2.0.8",
"autoprefixer": "^10.4.20",
"bpmn-font": "^0.12.1",
"bpmn-js": "^18.4.0",
"bpmn-js-color-picker": "^0.7.2",
"bpmn-js-create-append-anything": "^1.0.1",
"bpmn-js-element-templates": "^2.11.0",
"bpmn-js-properties-panel": "^5.35.0",
"camunda-bpmn-moddle": "^7.0.1",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"codemirror": "^6.0.1",
"cookie": "^1.1.1",
"copy-to-clipboard": "^3.3.1",
"d3-force": "^3.0.0",
"dayjs": "^1.11.19",
"diagram-js": "^15.10.0",
"docx": "^9.6.1",
"dompurify": "^3.0.9",
"echarts": "^5.4.2",
"echarts-for-react": "^3.0.2",
"echarts-wordcloud": "^2.1.0",
"eslint-plugin-unused-imports": "^2.0.0",
"file-saver": "^2.0.2",
"guacamole-common-js": "^1.5.0",
"highlight.js": "^11.9.0",
"i18next": "^19.8.9",
"identicon.js": "^2.3.3",
"js-base64": "^3.7.7",
"katex": "^0.16.9",
"lodash": "4.17.21",
"lucide-react": "^0.468.0",
"marked": "^12.0.1",
"md5": "^2.3.0",
"moment": "^2.29.1",
"papaparse": "^5.4.1",
"postcss": "^8.4.49",
"qs": "^6.15.0",
"rc-bullets": "^1.5.16",
"react": "^18.2.0",
"react-app-polyfill": "^3.0.0",
"react-bpmn": "^0.2.0",
"react-device-detect": "1.17.0",
"react-dom": "^18.2.0",
"react-draggable": "^4.4.6",
"react-file-viewer": "^1.2.1",
"react-force-graph": "^1.48.1",
"react-force-graph-2d": "^1.29.0",
"react-github-corner": "^2.5.0",
"react-helmet": "^6.1.0",
"react-highlight-words": "^0.18.0",
"react-i18next": "^11.8.7",
"react-markdown": "^8.0.7",
"react-router-dom": "^5.3.3",
"react-scripts": "5.0.1",
"rehype-katex": "^7.0.1",
"remark-frontmatter": "^4.0.1",
"remark-gfm": "^3.0.1",
"remark-math": "^6.0.0",
"sonner": "^1.7.1",
"tailwind-merge": "^2.6.0",
"tailwindcss": "^3.4.17",
"uuid": "^13.0.0",
"xlsx": "^0.16.9"
},
"scripts": {
"start": "cross-env PORT=13001 craco start",
"build": "craco build",
"postbuild": "node mv.js",
"test": "craco test",
"eject": "craco eject",
"analyze": "source-map-explorer 'build/static/js/*.js'",
"fix": "eslint --fix src/ --ext .js",
"lint:js": "eslint --fix src/ --ext .js",
"lint:css": "stylelint src/**/*.css --fix",
"lint": "yarn lint:js && yarn lint:css"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@babel/core": "^7.18.13",
"@babel/eslint-parser": "^7.18.9",
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@babel/preset-react": "^7.18.6",
"cross-env": "^7.0.3",
"eslint": "8.22.0",
"eslint-plugin-react": "^7.31.1",
"eslint-plugin-unused-imports": "^2.0.0",
"lint-staged": "^13.0.3",
"stylelint": "^14.11.0",
"stylelint-config-standard": "^28.0.0"
},
"lint-staged": {
"src/**/*.css": [
"stylelint --fix"
],
"src/**/*.{js,jsx}": [
"eslint --fix"
]
}
}