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>
23 lines
3.1 KiB
TypeScript
23 lines
3.1 KiB
TypeScript
/// <reference types="react" />
|
|
import { PopoverOptions, PopoverHTMLProps } from "../Popover/Popover";
|
|
import { unstable_ComboboxListOptions as ComboboxListOptions, unstable_ComboboxListHTMLProps as ComboboxListHTMLProps } from "./ComboboxList";
|
|
import { ComboboxPopoverStateReturn } from "./__utils/ComboboxPopoverState";
|
|
export declare const unstable_useComboboxPopover: {
|
|
(options?: unstable_ComboboxPopoverOptions | undefined, htmlProps?: unstable_ComboboxPopoverHTMLProps | undefined, unstable_ignoreUseOptions?: boolean | undefined): unstable_ComboboxPopoverHTMLProps;
|
|
unstable_propsAreEqual: (prev: import("..").BoxOptions & Pick<Partial<import("./ComboboxState").unstable_ComboboxStateReturn>, "menuRole"> & Pick<import("./ComboboxState").unstable_ComboboxStateReturn, "baseId"> & Pick<PopoverOptions, "hide" | "visible" | "unstable_system" | "baseId" | "animated" | "animating" | "modal" | "unstable_popoverRef" | "unstable_popoverStyles" | "stopAnimation" | "hideOnEsc" | "hideOnClickOutside" | "preventBodyScroll" | "unstable_initialFocusRef" | "unstable_finalFocusRef" | "unstable_orphan"> & Pick<Partial<ComboboxPopoverStateReturn>, "unstable_referenceRef"> & import("react").HTMLAttributes<any> & import("react").RefAttributes<any> & {
|
|
wrapElement?: ((element: import("react").ReactNode) => import("react").ReactNode) | undefined;
|
|
} & {
|
|
wrapElement?: ((element: import("react").ReactNode) => import("react").ReactNode) | undefined;
|
|
}, next: import("..").BoxOptions & Pick<Partial<import("./ComboboxState").unstable_ComboboxStateReturn>, "menuRole"> & Pick<import("./ComboboxState").unstable_ComboboxStateReturn, "baseId"> & Pick<PopoverOptions, "hide" | "visible" | "unstable_system" | "baseId" | "animated" | "animating" | "modal" | "unstable_popoverRef" | "unstable_popoverStyles" | "stopAnimation" | "hideOnEsc" | "hideOnClickOutside" | "preventBodyScroll" | "unstable_initialFocusRef" | "unstable_finalFocusRef" | "unstable_orphan"> & Pick<Partial<ComboboxPopoverStateReturn>, "unstable_referenceRef"> & import("react").HTMLAttributes<any> & import("react").RefAttributes<any> & {
|
|
wrapElement?: ((element: import("react").ReactNode) => import("react").ReactNode) | undefined;
|
|
} & {
|
|
wrapElement?: ((element: import("react").ReactNode) => import("react").ReactNode) | undefined;
|
|
}) => boolean;
|
|
__keys: readonly any[];
|
|
__useOptions: (options: unstable_ComboboxPopoverOptions, htmlProps: unstable_ComboboxPopoverHTMLProps) => unstable_ComboboxPopoverOptions;
|
|
};
|
|
export declare const unstable_ComboboxPopover: import("reakit-system/ts/createComponent").Component<"div", unstable_ComboboxPopoverOptions>;
|
|
export declare type unstable_ComboboxPopoverOptions = ComboboxListOptions & Omit<PopoverOptions, "unstable_disclosureRef" | "unstable_autoFocusOnHide" | "unstable_autoFocusOnShow"> & Pick<Partial<ComboboxPopoverStateReturn>, "unstable_referenceRef">;
|
|
export declare type unstable_ComboboxPopoverHTMLProps = PopoverHTMLProps & ComboboxListHTMLProps;
|
|
export declare type unstable_ComboboxPopoverProps = unstable_ComboboxPopoverOptions & unstable_ComboboxPopoverHTMLProps;
|