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>
30 lines
1.0 KiB
JavaScript
30 lines
1.0 KiB
JavaScript
import * as ReactJSXRuntime from 'react/jsx-runtime';
|
|
import { h as hasOwn, E as Emotion, c as createEmotionProps } from '../../dist/emotion-element-489459f2.browser.development.esm.js';
|
|
import 'react';
|
|
import '@emotion/cache';
|
|
import '@babel/runtime/helpers/extends';
|
|
import '@emotion/weak-memoize';
|
|
import '../../_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.esm.js';
|
|
import 'hoist-non-react-statics';
|
|
import '@emotion/utils';
|
|
import '@emotion/serialize';
|
|
import '@emotion/use-insertion-effect-with-fallbacks';
|
|
|
|
var Fragment = ReactJSXRuntime.Fragment;
|
|
var jsx = function jsx(type, props, key) {
|
|
if (!hasOwn.call(props, 'css')) {
|
|
return ReactJSXRuntime.jsx(type, props, key);
|
|
}
|
|
|
|
return ReactJSXRuntime.jsx(Emotion, createEmotionProps(type, props), key);
|
|
};
|
|
var jsxs = function jsxs(type, props, key) {
|
|
if (!hasOwn.call(props, 'css')) {
|
|
return ReactJSXRuntime.jsxs(type, props, key);
|
|
}
|
|
|
|
return ReactJSXRuntime.jsxs(Emotion, createEmotionProps(type, props), key);
|
|
};
|
|
|
|
export { Fragment, jsx, jsxs };
|