fix: prevent asset conflicts between React and Grid.js versions

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>
This commit is contained in:
dwindown
2026-04-18 17:02:14 +07:00
parent bd9cdac02e
commit e8fbfb14c1
74973 changed files with 6658406 additions and 71 deletions

53
node_modules/reakit/ts/Rover/Rover.d.ts generated vendored Normal file
View File

@@ -0,0 +1,53 @@
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>;

81
node_modules/reakit/ts/Rover/RoverState.d.ts generated vendored Normal file
View File

@@ -0,0 +1,81 @@
import * as React from "react";
import { SealedInitialState } from "reakit-utils/useSealedState";
import { unstable_IdState, unstable_IdActions, unstable_IdInitialState } from "../Id/IdState";
declare type Stop = {
id: string;
ref: React.RefObject<HTMLElement>;
};
export declare type RoverState = unstable_IdState & {
/**
* Defines the orientation of the rover list.
*/
orientation?: "horizontal" | "vertical";
/**
* A list of element refs and IDs of the roving items.
*/
stops: Stop[];
/**
* The current focused element ID.
*/
currentId: Stop["id"] | null;
/**
* The last focused element ID.
* @private
*/
unstable_pastId: Stop["id"] | null;
/**
* Stores the number of moves that have been made by calling `move`, `next`,
* `previous`, `first` or `last`.
*/
unstable_moves: number;
/**
* If enabled:
* - Jumps to the first item when moving next from the last item.
* - Jumps to the last item when moving previous from the first item.
*/
loop: boolean;
};
export declare type RoverActions = unstable_IdActions & {
/**
* Registers the element ID and ref in the roving tab index list.
*/
register: (id: Stop["id"], ref: Stop["ref"]) => void;
/**
* Unregisters the roving item.
*/
unregister: (id: Stop["id"]) => void;
/**
* Moves focus to a given element ID.
*/
move: (id: Stop["id"] | null, unstable_silent?: boolean) => void;
/**
* Moves focus to the next element.
*/
next: () => void;
/**
* Moves focus to the previous element.
*/
previous: () => void;
/**
* Moves focus to the first element.
*/
first: () => void;
/**
* Moves focus to the last element.
*/
last: () => void;
/**
* Resets `currentId` and `pastId` states.
* @private
*/
unstable_reset: () => void;
/**
* Changes the `orientation` state of the roving tab index list.
* @private
*/
unstable_orientate: (orientation: RoverState["orientation"]) => void;
};
export declare type RoverInitialState = unstable_IdInitialState & Partial<Pick<RoverState, "orientation" | "currentId" | "loop">>;
export declare type RoverStateReturn = RoverState & RoverActions;
export declare function useRoverState(initialState?: SealedInitialState<RoverInitialState>): RoverStateReturn;
export {};

1
node_modules/reakit/ts/Rover/__keys.d.ts generated vendored Normal file
View File

@@ -0,0 +1 @@
export declare const ROVER_KEYS: readonly ["baseId", "unstable_idCountRef", "orientation", "stops", "currentId", "unstable_pastId", "unstable_moves", "loop", "setBaseId", "register", "unregister", "move", "next", "previous", "first", "last", "unstable_reset", "unstable_orientate", "stopId"];

2
node_modules/reakit/ts/Rover/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,2 @@
export * from "./Rover";
export * from "./RoverState";