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>
18 lines
684 B
TypeScript
18 lines
684 B
TypeScript
export declare const CONSOLE_LEVELS: readonly ["debug", "info", "warn", "error", "log", "assert"];
|
|
declare type LoggerMethod = (...args: unknown[]) => void;
|
|
declare type LoggerConsoleMethods = Record<typeof CONSOLE_LEVELS[number], LoggerMethod>;
|
|
/** JSDoc */
|
|
interface Logger extends LoggerConsoleMethods {
|
|
disable(): void;
|
|
enable(): void;
|
|
}
|
|
/**
|
|
* Temporarily disable sentry console instrumentations.
|
|
*
|
|
* @param callback The function to run against the original `console` messages
|
|
* @returns The results of the callback
|
|
*/
|
|
export declare function consoleSandbox<T>(callback: () => T): T;
|
|
declare let logger: Logger;
|
|
export { logger };
|
|
//# sourceMappingURL=logger.d.ts.map
|