fix: prevent asset conflicts between React and Grid.js versions

Add coexistence checks to all enqueue methods to prevent loading
both React and Grid.js assets simultaneously.

Changes:
- ReactAdmin.php: Only enqueue React assets when ?react=1
- Init.php: Skip Grid.js when React active on admin pages
- Form.php, Coupon.php, Access.php: Restore classic assets when ?react=0
- Customer.php, Product.php, License.php: Add coexistence checks

Now the toggle between Classic and React versions works correctly.

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
dwindown
2026-04-18 17:02:14 +07:00
parent bd9cdac02e
commit e8fbfb14c1
74973 changed files with 6658406 additions and 71 deletions

212
node_modules/webpack/package.json generated vendored Normal file
View File

@@ -0,0 +1,212 @@
{
"name": "webpack",
"version": "5.106.2",
"description": "Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.",
"homepage": "https://github.com/webpack/webpack",
"bugs": "https://github.com/webpack/webpack/issues",
"repository": {
"type": "git",
"url": "https://github.com/webpack/webpack.git"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/webpack"
},
"license": "MIT",
"author": "Tobias Koppers @sokra",
"main": "lib/index.js",
"types": "types.d.ts",
"bin": {
"webpack": "bin/webpack.js"
},
"files": [
"lib/",
"bin/",
"hot/",
"schemas/",
"SECURITY.md",
"module.d.ts",
"types.d.ts"
],
"scripts": {
"prepare": "husky",
"setup": "node ./setup/setup.js",
"prelint": "yarn setup",
"lint": "yarn lint:code && yarn lint:special && yarn lint:types && yarn lint:types-test && yarn lint:types-benchmark && yarn lint:types-module-test && yarn lint:types-hot && yarn fmt:check && yarn lint:spellcheck",
"lint:code": "node node_modules/eslint/bin/eslint.js --cache .",
"lint:special": "node node_modules/tooling/lockfile-lint && node node_modules/tooling/schemas-lint && node node_modules/tooling/inherit-types && node node_modules/tooling/format-schemas && node tooling/generate-runtime-code.js && node tooling/generate-wasm-code.js && node node_modules/tooling/compile-to-definitions && node node_modules/tooling/precompile-schemas && node node_modules/tooling/generate-types --no-template-literals",
"lint:types": "tsc",
"lint:types-test": "tsc -p tsconfig.types.test.json",
"lint:types-benchmark": "tsc -p tsconfig.types.benchmark.json",
"lint:types-hot": "tsc -p tsconfig.hot.json",
"lint:types-module-test": "tsc -p tsconfig.module.test.json",
"lint:spellcheck": "cspell --cache --no-must-find-files --quiet \"**/*.*\"",
"validate:changeset": "node .changeset/changeset-validate.mjs",
"validate:types": "tsc -p tsconfig.validation.json",
"fmt": "yarn fmt:base --log-level warn --write",
"fmt:check": "yarn fmt:base --check",
"fmt:base": "node node_modules/prettier/bin/prettier.cjs --cache --ignore-unknown .",
"fix": "yarn fix:code && yarn fix:special && yarn fmt",
"fix:code": "yarn lint:code --fix",
"fix:special": "node node_modules/tooling/inherit-types --write && node node_modules/tooling/format-schemas --write && node tooling/generate-runtime-code.js --write && node tooling/generate-wasm-code.js --write && node node_modules/tooling/compile-to-definitions --write && node node_modules/tooling/precompile-schemas --write && node node_modules/tooling/generate-types --no-template-literals --write",
"build:examples": "cd examples && node buildAll.js",
"benchmark": "node --max-old-space-size=6144 --experimental-vm-modules --trace-deprecation --hash-seed=1 --random-seed=1 --no-opt --predictable --predictable-gc-schedule --interpreted-frames-native-stack --allow-natives-syntax --expose-gc --no-concurrent-sweeping ./test/BenchmarkTestCases.benchmark.mjs",
"pretest": "yarn lint",
"test": "yarn test:base",
"test:base": "node --expose-gc --max-old-space-size=4096 --experimental-vm-modules --trace-deprecation node_modules/jest-cli/bin/jest --logHeapUsage",
"test:basic": "yarn test:base --testMatch \"<rootDir>/test/*.basictest.js\"",
"test:basic:deno": "yarn test:base:deno --testMatch \"<rootDir>/test/*.basictest.js\"",
"test:unit": "yarn test:base --testMatch \"<rootDir>/test/*.unittest.js\"",
"test:integration": "yarn test:base --testMatch \"<rootDir>/test/*.{basictest,longtest,test}.js\"",
"test:test262": "yarn test:base --testMatch \"<rootDir>/test/*.spectest.js\"",
"test:base:deno": "deno --allow-read --allow-env --allow-sys --allow-ffi --allow-write --allow-run --v8-flags='--max-old-space-size=4096' ./node_modules/jest-cli/bin/jest.js --logHeapUsage",
"test:update-snapshots": "yarn test:base -u",
"report:cover": "nyc report --reporter=lcov --reporter=text -t coverage",
"report:cover:clean": "rimraf .nyc_output coverage",
"report:cover:merge": "yarn mkdirp .nyc_output && nyc merge .nyc_output coverage/coverage-nyc.json && rimraf .nyc_output",
"types:cover": "node node_modules/tooling/type-coverage",
"types:cover:report": "rimraf coverage && yarn types:cover && yarn report:cover && open-cli coverage/lcov-report/index.html",
"cover": "yarn cover:all && yarn report:cover",
"cover:base": "node --expose-gc --max-old-space-size=4096 --experimental-vm-modules node_modules/jest-cli/bin/jest --logHeapUsage",
"cover:all": "yarn cover:base --coverage",
"cover:unit": "yarn cover:base --testMatch \"<rootDir>/test/*.unittest.js\" --coverage",
"cover:basic": "yarn cover:base --testMatch \"<rootDir>/test/*.basictest.js\" --coverage",
"cover:integration": "yarn cover:base --testMatch \"<rootDir>/test/*.{basictest,longtest,test}.js\" --coverage",
"cover:integration:a": "yarn cover:base --testMatch \"<rootDir>/test/*.{basictest,test}.js\" --coverage",
"cover:integration:b": "yarn cover:base --testMatch \"<rootDir>/test/*.longtest.js\" --coverage",
"cover:test262": "yarn cover:base --testMatch \"<rootDir>/test/*.spectest.js\" --coverage"
},
"lint-staged": {
"*.{js,cjs,mjs}": [
"node node_modules/eslint/bin/eslint.js --cache --fix"
],
"*": [
"node node_modules/prettier/bin/prettier.cjs --cache --write --ignore-unknown",
"cspell --cache --no-must-find-files"
]
},
"dependencies": {
"@types/eslint-scope": "^3.7.7",
"@types/estree": "^1.0.8",
"@types/json-schema": "^7.0.15",
"@webassemblyjs/ast": "^1.14.1",
"@webassemblyjs/wasm-edit": "^1.14.1",
"@webassemblyjs/wasm-parser": "^1.14.1",
"acorn": "^8.16.0",
"acorn-import-phases": "^1.0.3",
"browserslist": "^4.28.1",
"chrome-trace-event": "^1.0.2",
"enhanced-resolve": "^5.20.0",
"es-module-lexer": "^2.0.0",
"eslint-scope": "5.1.1",
"events": "^3.2.0",
"glob-to-regexp": "^0.4.1",
"graceful-fs": "^4.2.11",
"loader-runner": "^4.3.1",
"mime-db": "^1.54.0",
"neo-async": "^2.6.2",
"schema-utils": "^4.3.3",
"tapable": "^2.3.0",
"terser-webpack-plugin": "^5.3.17",
"watchpack": "^2.5.1",
"webpack-sources": "^3.3.4"
},
"devDependencies": {
"@babel/core": "^7.27.1",
"@babel/preset-react": "^7.27.1",
"@changesets/cli": "^2.29.8",
"@changesets/get-github-info": "^0.8.0",
"@codspeed/core": "^5.2.0",
"@types/glob-to-regexp": "^0.4.4",
"@types/graceful-fs": "^4.1.9",
"@types/jest": "^30.0.0",
"@types/mime-db": "^1.43.6",
"@types/neo-async": "^2.6.7",
"@types/node": "^25.6.0",
"@types/xxhashjs": "^0.2.4",
"@webdiscus/pug-loader": "^2.11.1",
"assemblyscript": "^0.28.9",
"babel-loader": "^10.0.0",
"bundle-loader": "^0.5.6",
"coffee-loader": "^5.0.0",
"coffeescript": "^2.5.1",
"core-js": "^3.47.0",
"cspell": "^10.0.0",
"css-loader": "^7.1.2",
"date-fns": "^4.0.0",
"es5-ext": "^0.10.53",
"es6-promise-polyfill": "^1.2.0",
"eslint": "^9.39.2",
"eslint-config-webpack": "^4.9.3",
"file-loader": "^6.0.0",
"fork-ts-checker-webpack-plugin": "^9.0.2",
"globals": "^17.0.0",
"hash-wasm": "^4.9.0",
"html-loader": "^5.1.0",
"husky": "^9.0.11",
"istanbul": "^0.4.5",
"jest": "^30.3.0",
"jest-circus": "^30.3.0",
"jest-cli": "^30.3.0",
"jest-diff": "^30.3.0",
"jest-environment-node": "^30.3.0",
"jest-snapshot": "^30.3.0",
"jest-junit": "^16.0.0",
"json-loader": "^0.5.7",
"json5": "^2.1.3",
"less": "^4.6.4",
"less-loader": "^12.3.2",
"lint-staged": "^16.2.3",
"lodash": "^4.17.19",
"lodash-es": "^4.17.15",
"memfs": "^4.51.1",
"meriyah": "^7.0.0",
"mini-css-extract-plugin": "^2.9.0",
"mini-svg-data-uri": "^1.2.3",
"node-gyp": "^12.1.0",
"nyc": "^18.0.0",
"open-cli": "^9.0.0",
"oxc-parser": "^0.125.0",
"pkg-pr-new": "^0.0.66",
"prettier": "^3.8.2",
"prettier-2": "npm:prettier@^2",
"pretty-format": "^30.0.5",
"pug": "^3.0.3",
"raw-loader": "^4.0.1",
"react": "^19.2.5",
"react-dom": "^19.2.5",
"rehype-sanitize": "^6.0.0",
"rehype-stringify": "^10.0.1",
"remark-frontmatter": "^5.0.0",
"remark-gfm": "^4.0.1",
"remark-parse": "^11.0.0",
"remark-rehype": "^11.1.2",
"rimraf": "^3.0.2",
"script-loader": "^0.7.2",
"simple-git": "^3.28.0",
"style-loader": "^4.0.0",
"terser": "^5.43.1",
"three": "^0.183.1",
"tinybench": "^6.0.0",
"toml": "^4.1.1",
"tooling": "webpack/tooling#v1.26.1",
"ts-loader": "^9.5.7",
"typescript": "^5.9.3",
"unified": "^11.0.5",
"url-loader": "^4.1.0",
"wast-loader": "^1.12.1",
"webassembly-feature": "1.3.0",
"webpack-cli": "^7.0.2",
"xxhashjs": "^0.2.2",
"yamljs": "^0.3.0"
},
"peerDependenciesMeta": {
"webpack-cli": {
"optional": true
}
},
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e",
"engines": {
"node": ">=10.13.0"
}
}