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>
49 lines
1.5 KiB
JavaScript
49 lines
1.5 KiB
JavaScript
import { a as _objectSpread2 } from '../_rollupPluginBabelHelpers-1f0bf8c2.js';
|
|
import { createComponent } from 'reakit-system/createComponent';
|
|
import { createHook } from 'reakit-system/createHook';
|
|
import 'reakit-utils/shallowEqual';
|
|
import 'react';
|
|
import 'reakit-utils/useForkRef';
|
|
import 'reakit-utils/isButton';
|
|
import 'reakit-warning';
|
|
import 'reakit-utils/useLiveRef';
|
|
import 'reakit-utils/isSelfTarget';
|
|
import 'reakit-utils/useIsomorphicEffect';
|
|
import 'reakit-utils/hasFocusWithin';
|
|
import 'reakit-utils/isPortalEvent';
|
|
import 'reakit-utils/dom';
|
|
import 'reakit-utils/tabbable';
|
|
import '../Role/Role.js';
|
|
import '../Tabbable/Tabbable.js';
|
|
import '../Clickable/Clickable.js';
|
|
import 'reakit-utils/getDocument';
|
|
import '../getCurrentId-5aa9849e.js';
|
|
import '../__keys-6742f591.js';
|
|
import '../userFocus-e16425e3.js';
|
|
import 'reakit-utils/isTextField';
|
|
import 'reakit-utils/ensureFocus';
|
|
import '../Id/IdProvider.js';
|
|
import '../Id/Id.js';
|
|
import 'reakit-utils/fireEvent';
|
|
import '../setTextFieldValue-0a221f4e.js';
|
|
import { useCompositeItem } from '../Composite/CompositeItem.js';
|
|
import { a as GRID_CELL_KEYS } from '../__keys-08a69d36.js';
|
|
|
|
var unstable_useGridCell = createHook({
|
|
name: "GridCell",
|
|
compose: useCompositeItem,
|
|
keys: GRID_CELL_KEYS,
|
|
useProps: function useProps(_, htmlProps) {
|
|
return _objectSpread2({
|
|
role: "gridcell"
|
|
}, htmlProps);
|
|
}
|
|
});
|
|
var unstable_GridCell = createComponent({
|
|
as: "span",
|
|
memo: true,
|
|
useHook: unstable_useGridCell
|
|
});
|
|
|
|
export { unstable_GridCell, unstable_useGridCell };
|