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>
46 lines
3.9 KiB
TypeScript
46 lines
3.9 KiB
TypeScript
/// <reference types="react" />
|
|
import { unstable_GridCellOptions as GridCellOptions, unstable_GridCellHTMLProps as GridCellHTMLProps } from "../Grid/GridCell";
|
|
import { unstable_ComboboxItemOptions as ComboboxItemOptions, unstable_ComboboxItemHTMLProps as ComboboxItemHTMLProps } from "./ComboboxItem";
|
|
export declare const unstable_useComboboxGridCell: {
|
|
(options?: unstable_ComboboxGridCellOptions | undefined, htmlProps?: unstable_ComboboxGridCellHTMLProps | undefined, unstable_ignoreUseOptions?: boolean | undefined): unstable_ComboboxGridCellHTMLProps;
|
|
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"> & import("..").BoxOptions & Pick<Partial<import("./ComboboxState").unstable_ComboboxStateReturn>, "hide" | "visible" | "inputValue" | "currentValue"> & Pick<import("./ComboboxState").unstable_ComboboxStateReturn, "registerItem" | "setInputValue"> & {
|
|
value?: string | undefined;
|
|
} & import("react").HTMLAttributes<any> & import("react").RefAttributes<any> & {
|
|
wrapElement?: ((element: import("react").ReactNode) => import("react").ReactNode) | undefined;
|
|
} & {
|
|
disabled?: boolean | undefined;
|
|
} & import("react").TdHTMLAttributes<any> & {
|
|
wrapElement?: ((element: import("react").ReactNode) => import("react").ReactNode) | 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<import("..").CompositeStateReturn>, "orientation" | "baseId" | "unstable_virtual" | "unstable_moves" | "unstable_hasActiveWidget"> & Pick<import("..").CompositeStateReturn, "down" | "up" | "next" | "first" | "last" | "currentId" | "items" | "registerItem" | "unregisterItem" | "previous" | "setCurrentId"> & import("..").BoxOptions & Pick<Partial<import("./ComboboxState").unstable_ComboboxStateReturn>, "hide" | "visible" | "inputValue" | "currentValue"> & Pick<import("./ComboboxState").unstable_ComboboxStateReturn, "registerItem" | "setInputValue"> & {
|
|
value?: string | undefined;
|
|
} & import("react").HTMLAttributes<any> & import("react").RefAttributes<any> & {
|
|
wrapElement?: ((element: import("react").ReactNode) => import("react").ReactNode) | undefined;
|
|
} & {
|
|
disabled?: boolean | undefined;
|
|
} & import("react").TdHTMLAttributes<any> & {
|
|
wrapElement?: ((element: import("react").ReactNode) => import("react").ReactNode) | undefined;
|
|
}) => boolean;
|
|
__keys: readonly any[];
|
|
__useOptions: (options: unstable_ComboboxGridCellOptions, htmlProps: unstable_ComboboxGridCellHTMLProps) => unstable_ComboboxGridCellOptions;
|
|
};
|
|
export declare const unstable_ComboboxGridCell: import("reakit-system/ts/createComponent").Component<"span", unstable_ComboboxGridCellOptions>;
|
|
export declare type unstable_ComboboxGridCellOptions = GridCellOptions & ComboboxItemOptions;
|
|
export declare type unstable_ComboboxGridCellHTMLProps = GridCellHTMLProps & ComboboxItemHTMLProps;
|
|
export declare type unstable_ComboboxGridCellProps = unstable_ComboboxGridCellOptions & unstable_ComboboxGridCellHTMLProps;
|