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

26
node_modules/reakit/ts/Grid/Grid.d.ts generated vendored Normal file
View File

@@ -0,0 +1,26 @@
/// <reference types="react" />
import { CompositeOptions, CompositeHTMLProps } from "../Composite/Composite";
export declare type unstable_GridOptions = CompositeOptions;
export declare type unstable_GridHTMLProps = CompositeHTMLProps;
export declare type unstable_GridProps = unstable_GridOptions & unstable_GridHTMLProps;
export declare const unstable_useGrid: {
(options?: CompositeOptions | undefined, htmlProps?: import("..").TabbableHTMLProps | undefined, unstable_ignoreUseOptions?: boolean | undefined): import("..").TabbableHTMLProps;
unstable_propsAreEqual: (prev: import("..").RoleOptions & {
disabled?: boolean | undefined;
focusable?: boolean | undefined;
} & Pick<Partial<import("..").CompositeStateReturn>, "wrap" | "orientation" | "baseId" | "currentId" | "unstable_virtual" | "groups" | "unstable_moves"> & Pick<import("..").CompositeStateReturn, "move" | "first" | "last" | "items" | "setCurrentId"> & import("react").HTMLAttributes<any> & import("react").RefAttributes<any> & {
wrapElement?: ((element: import("react").ReactNode) => import("react").ReactNode) | undefined;
} & {
disabled?: boolean | undefined;
}, next: import("..").RoleOptions & {
disabled?: boolean | undefined;
focusable?: boolean | undefined;
} & Pick<Partial<import("..").CompositeStateReturn>, "wrap" | "orientation" | "baseId" | "currentId" | "unstable_virtual" | "groups" | "unstable_moves"> & Pick<import("..").CompositeStateReturn, "move" | "first" | "last" | "items" | "setCurrentId"> & import("react").HTMLAttributes<any> & import("react").RefAttributes<any> & {
wrapElement?: ((element: import("react").ReactNode) => import("react").ReactNode) | undefined;
} & {
disabled?: boolean | undefined;
}) => boolean;
__keys: readonly any[];
__useOptions: (options: CompositeOptions, htmlProps: import("..").TabbableHTMLProps) => CompositeOptions;
};
export declare const unstable_Grid: import("reakit-system/ts/createComponent").Component<"div", CompositeOptions>;

36
node_modules/reakit/ts/Grid/GridCell.d.ts generated vendored Normal file
View File

@@ -0,0 +1,36 @@
import * as React from "react";
import { CompositeItemOptions, CompositeItemHTMLProps } from "../Composite/CompositeItem";
export declare type unstable_GridCellOptions = CompositeItemOptions;
export declare type unstable_GridCellHTMLProps = CompositeItemHTMLProps & React.TdHTMLAttributes<any>;
export declare type unstable_GridCellProps = unstable_GridCellOptions & unstable_GridCellHTMLProps;
export declare const unstable_useGridCell: {
(options?: CompositeItemOptions | undefined, htmlProps?: unstable_GridCellHTMLProps | undefined, unstable_ignoreUseOptions?: boolean | undefined): unstable_GridCellHTMLProps;
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<import("..").CompositeStateReturn>, "orientation" | "baseId" | "unstable_virtual" | "unstable_moves" | "unstable_hasActiveWidget"> & Pick<import("..").CompositeStateReturn, "down" | "up" | "next" | "first" | "last" | "currentId" | "items" | "registerItem" | "unregisterItem" | "previous" | "setCurrentId"> & React.HTMLAttributes<any> & React.RefAttributes<any> & {
wrapElement?: ((element: React.ReactNode) => React.ReactNode) | undefined;
} & {
disabled?: boolean | undefined;
} & React.TdHTMLAttributes<any>, 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<import("..").CompositeStateReturn>, "orientation" | "baseId" | "unstable_virtual" | "unstable_moves" | "unstable_hasActiveWidget"> & Pick<import("..").CompositeStateReturn, "down" | "up" | "next" | "first" | "last" | "currentId" | "items" | "registerItem" | "unregisterItem" | "previous" | "setCurrentId"> & React.HTMLAttributes<any> & React.RefAttributes<any> & {
wrapElement?: ((element: React.ReactNode) => React.ReactNode) | undefined;
} & {
disabled?: boolean | undefined;
} & React.TdHTMLAttributes<any>) => boolean;
__keys: readonly any[];
__useOptions: (options: CompositeItemOptions, htmlProps: unstable_GridCellHTMLProps) => CompositeItemOptions;
};
export declare const unstable_GridCell: import("reakit-system/ts/createComponent").Component<"span", CompositeItemOptions>;

20
node_modules/reakit/ts/Grid/GridRow.d.ts generated vendored Normal file
View File

@@ -0,0 +1,20 @@
/// <reference types="react" />
import { CompositeGroupOptions, CompositeGroupHTMLProps } from "../Composite/CompositeGroup";
export declare type unstable_GridRowOptions = CompositeGroupOptions;
export declare type unstable_GridRowHTMLProps = CompositeGroupHTMLProps;
export declare type unstable_GridRowProps = unstable_GridRowOptions & unstable_GridRowHTMLProps;
export declare const unstable_useGridRow: {
(options?: CompositeGroupOptions | undefined, htmlProps?: import("..").RoleHTMLProps | undefined, unstable_ignoreUseOptions?: boolean | undefined): import("..").RoleHTMLProps;
unstable_propsAreEqual: (prev: import("..").RoleOptions & Pick<Partial<import("..").unstable_IdStateReturn>, "baseId" | "unstable_idCountRef"> & {
id?: string | undefined;
} & Pick<import("..").CompositeStateReturn, "registerGroup" | "unregisterGroup"> & Pick<Partial<import("..").CompositeStateReturn>, "currentId" | "items" | "unstable_moves"> & import("react").HTMLAttributes<any> & import("react").RefAttributes<any> & {
wrapElement?: ((element: import("react").ReactNode) => import("react").ReactNode) | undefined;
}, next: import("..").RoleOptions & Pick<Partial<import("..").unstable_IdStateReturn>, "baseId" | "unstable_idCountRef"> & {
id?: string | undefined;
} & Pick<import("..").CompositeStateReturn, "registerGroup" | "unregisterGroup"> & Pick<Partial<import("..").CompositeStateReturn>, "currentId" | "items" | "unstable_moves"> & import("react").HTMLAttributes<any> & import("react").RefAttributes<any> & {
wrapElement?: ((element: import("react").ReactNode) => import("react").ReactNode) | undefined;
}) => boolean;
__keys: readonly any[];
__useOptions: (options: CompositeGroupOptions, htmlProps: import("..").RoleHTMLProps) => CompositeGroupOptions;
};
export declare const unstable_GridRow: import("reakit-system/ts/createComponent").Component<"div", CompositeGroupOptions>;

7
node_modules/reakit/ts/Grid/GridState.d.ts generated vendored Normal file
View File

@@ -0,0 +1,7 @@
import { SealedInitialState } from "reakit-utils/useSealedState";
import { CompositeState, CompositeActions, CompositeInitialState } from "../Composite/CompositeState";
export declare type unstable_GridState = CompositeState;
export declare type unstable_GridActions = CompositeActions;
export declare type unstable_GridInitialState = CompositeInitialState;
export declare type unstable_GridStateReturn = unstable_GridState & unstable_GridActions;
export declare function unstable_useGridState(initialState?: SealedInitialState<unstable_GridInitialState>): unstable_GridStateReturn;

3
node_modules/reakit/ts/Grid/__keys.d.ts generated vendored Normal file
View File

@@ -0,0 +1,3 @@
export declare const GRID_KEYS: readonly ["baseId", "unstable_idCountRef", "unstable_virtual", "rtl", "orientation", "items", "groups", "currentId", "loop", "wrap", "shift", "unstable_moves", "unstable_hasActiveWidget", "unstable_includesBaseElement", "setBaseId", "registerItem", "unregisterItem", "registerGroup", "unregisterGroup", "move", "next", "previous", "up", "down", "first", "last", "sort", "unstable_setVirtual", "setRTL", "setOrientation", "setCurrentId", "setLoop", "setWrap", "setShift", "reset", "unstable_setIncludesBaseElement", "unstable_setHasActiveWidget"];
export declare const GRID_CELL_KEYS: readonly ["baseId", "unstable_idCountRef", "unstable_virtual", "rtl", "orientation", "items", "groups", "currentId", "loop", "wrap", "shift", "unstable_moves", "unstable_hasActiveWidget", "unstable_includesBaseElement", "setBaseId", "registerItem", "unregisterItem", "registerGroup", "unregisterGroup", "move", "next", "previous", "up", "down", "first", "last", "sort", "unstable_setVirtual", "setRTL", "setOrientation", "setCurrentId", "setLoop", "setWrap", "setShift", "reset", "unstable_setIncludesBaseElement", "unstable_setHasActiveWidget"];
export declare const GRID_ROW_KEYS: readonly ["baseId", "unstable_idCountRef", "unstable_virtual", "rtl", "orientation", "items", "groups", "currentId", "loop", "wrap", "shift", "unstable_moves", "unstable_hasActiveWidget", "unstable_includesBaseElement", "setBaseId", "registerItem", "unregisterItem", "registerGroup", "unregisterGroup", "move", "next", "previous", "up", "down", "first", "last", "sort", "unstable_setVirtual", "setRTL", "setOrientation", "setCurrentId", "setLoop", "setWrap", "setShift", "reset", "unstable_setIncludesBaseElement", "unstable_setHasActiveWidget"];

4
node_modules/reakit/ts/Grid/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,4 @@
export * from "./Grid";
export * from "./GridCell";
export * from "./GridRow";
export * from "./GridState";