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>
54 lines
2.8 KiB
TypeScript
54 lines
2.8 KiB
TypeScript
import * as React from "react";
|
|
import { ClickableOptions, ClickableHTMLProps } from "../Clickable/Clickable";
|
|
import { unstable_IdOptions, unstable_IdHTMLProps } from "../Id/Id";
|
|
import { RoverStateReturn } from "./RoverState";
|
|
export declare type RoverOptions = ClickableOptions & unstable_IdOptions & Pick<Partial<RoverStateReturn>, "orientation" | "unstable_moves"> & Pick<RoverStateReturn, "stops" | "currentId" | "register" | "unregister" | "move" | "next" | "previous" | "first" | "last"> & {
|
|
/**
|
|
* Element ID.
|
|
*/
|
|
stopId?: string;
|
|
};
|
|
export declare type RoverHTMLProps = ClickableHTMLProps & unstable_IdHTMLProps;
|
|
export declare type RoverProps = RoverOptions & RoverHTMLProps;
|
|
export declare const useRover: {
|
|
(options?: RoverOptions | undefined, htmlProps?: import("..").TabbableHTMLProps | undefined, unstable_ignoreUseOptions?: boolean | undefined): import("..").TabbableHTMLProps;
|
|
unstable_propsAreEqual: (prev: import("..").RoleOptions & {
|
|
disabled?: boolean | undefined;
|
|
focusable?: boolean | undefined;
|
|
} & {
|
|
unstable_clickOnEnter?: boolean | undefined;
|
|
unstable_clickOnSpace?: boolean | undefined;
|
|
} & Pick<Partial<import("..").unstable_IdStateReturn>, "baseId" | "unstable_idCountRef"> & {
|
|
id?: string | undefined;
|
|
} & Pick<Partial<RoverStateReturn>, "orientation" | "unstable_moves"> & Pick<RoverStateReturn, "next" | "move" | "first" | "last" | "currentId" | "previous" | "stops" | "register" | "unregister"> & {
|
|
/**
|
|
* Element ID.
|
|
*/
|
|
stopId?: string | undefined;
|
|
} & React.HTMLAttributes<any> & React.RefAttributes<any> & {
|
|
wrapElement?: ((element: React.ReactNode) => React.ReactNode) | undefined;
|
|
} & {
|
|
disabled?: boolean | undefined;
|
|
}, next: import("..").RoleOptions & {
|
|
disabled?: boolean | undefined;
|
|
focusable?: boolean | undefined;
|
|
} & {
|
|
unstable_clickOnEnter?: boolean | undefined;
|
|
unstable_clickOnSpace?: boolean | undefined;
|
|
} & Pick<Partial<import("..").unstable_IdStateReturn>, "baseId" | "unstable_idCountRef"> & {
|
|
id?: string | undefined;
|
|
} & Pick<Partial<RoverStateReturn>, "orientation" | "unstable_moves"> & Pick<RoverStateReturn, "next" | "move" | "first" | "last" | "currentId" | "previous" | "stops" | "register" | "unregister"> & {
|
|
/**
|
|
* Element ID.
|
|
*/
|
|
stopId?: string | undefined;
|
|
} & React.HTMLAttributes<any> & React.RefAttributes<any> & {
|
|
wrapElement?: ((element: React.ReactNode) => React.ReactNode) | undefined;
|
|
} & {
|
|
disabled?: boolean | undefined;
|
|
}) => boolean;
|
|
__keys: readonly any[];
|
|
__useOptions: (options: RoverOptions, htmlProps: import("..").TabbableHTMLProps) => RoverOptions;
|
|
};
|
|
export declare const Rover: import("reakit-system/ts/createComponent").Component<"button", RoverOptions>;
|