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>
20 lines
796 B
JavaScript
20 lines
796 B
JavaScript
'use strict';
|
|
|
|
/** @type {import('./ranges.d.ts')} */
|
|
module.exports = {
|
|
__proto__: null,
|
|
'>= 25.4': 'subpath-imports-slash', // added in 25.4
|
|
'23.6 - 25.3 || ^22.18': 'strips-types', // added in 23.6, backported to 22.18
|
|
'23 - 23.5 || 22.12 - 22.17 || ^20.19': 'require-esm', // added in 23.0, 22.12, 20.19
|
|
'17.1 - 19 || 20 - 20.18 || ^21 || 22 - 22.11': 'pattern-trailers-no-dir-slash+json-imports',
|
|
'17.0': 'pattern-trailers-no-dir-slash',
|
|
'^16.14': 'pattern-trailers+json-imports',
|
|
'^14.19 || 16.9 - 16.13': 'pattern-trailers',
|
|
'^12.20 || 14.13 - 14.18 || 15.x || 16.0 - 16.8': 'patterns',
|
|
'12.17 - 12.19 || ^13.13 || 14.0 - 14.12': 'broken-dir-slash-conditions',
|
|
'13.7 - 13.12': 'conditions',
|
|
'13.3 - 13.6': 'experimental',
|
|
'13.0 - 13.2': 'broken',
|
|
'< 12.17': 'pre-exports'
|
|
};
|