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>
18 lines
1.6 KiB
TypeScript
18 lines
1.6 KiB
TypeScript
/// <reference types="react" />
|
|
import { BoxOptions, BoxHTMLProps } from "../Box/Box";
|
|
import { unstable_ComboboxStateReturn } from "./ComboboxState";
|
|
export declare const unstable_useComboboxList: {
|
|
(options?: unstable_ComboboxListOptions | undefined, htmlProps?: BoxHTMLProps | undefined, unstable_ignoreUseOptions?: boolean | undefined): BoxHTMLProps;
|
|
unstable_propsAreEqual: (prev: BoxOptions & Pick<Partial<unstable_ComboboxStateReturn>, "menuRole"> & Pick<unstable_ComboboxStateReturn, "baseId"> & import("react").HTMLAttributes<any> & import("react").RefAttributes<any> & {
|
|
wrapElement?: ((element: import("react").ReactNode) => import("react").ReactNode) | undefined;
|
|
}, next: BoxOptions & Pick<Partial<unstable_ComboboxStateReturn>, "menuRole"> & Pick<unstable_ComboboxStateReturn, "baseId"> & import("react").HTMLAttributes<any> & import("react").RefAttributes<any> & {
|
|
wrapElement?: ((element: import("react").ReactNode) => import("react").ReactNode) | undefined;
|
|
}) => boolean;
|
|
__keys: readonly any[];
|
|
__useOptions: (options: unstable_ComboboxListOptions, htmlProps: BoxHTMLProps) => unstable_ComboboxListOptions;
|
|
};
|
|
export declare const unstable_ComboboxList: import("reakit-system/ts/createComponent").Component<"div", unstable_ComboboxListOptions>;
|
|
export declare type unstable_ComboboxListOptions = BoxOptions & Pick<Partial<unstable_ComboboxStateReturn>, "menuRole"> & Pick<unstable_ComboboxStateReturn, "baseId">;
|
|
export declare type unstable_ComboboxListHTMLProps = BoxHTMLProps;
|
|
export declare type unstable_ComboboxListProps = unstable_ComboboxListOptions & unstable_ComboboxListHTMLProps;
|