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>
88 lines
4.1 KiB
TypeScript
88 lines
4.1 KiB
TypeScript
export default lighthouse;
|
|
export { Audit } from "./audits/audit.js";
|
|
export { default as Gatherer } from "./gather/base-gatherer.js";
|
|
export { NetworkRecords } from "./computed/network-records.js";
|
|
export { default as defaultConfig } from "./config/default-config.js";
|
|
export { default as desktopConfig } from "./config/desktop-config.js";
|
|
export * from "../types/lh.js";
|
|
export type Connection = import('./legacy/gather/connections/connection.js').Connection;
|
|
/** @typedef {import('./legacy/gather/connections/connection.js').Connection} Connection */
|
|
/**
|
|
* Run Lighthouse.
|
|
* @param {string=} url The URL to test. Optional if running in auditMode.
|
|
* @param {LH.Flags=} flags Optional settings for the Lighthouse run. If present,
|
|
* they will override any settings in the config.
|
|
* @param {LH.Config=} config Configuration for the Lighthouse run. If
|
|
* not present, the default config is used.
|
|
* @param {LH.Puppeteer.Page=} page
|
|
* @return {Promise<LH.RunnerResult|undefined>}
|
|
*/
|
|
declare function lighthouse(url?: string | undefined, flags?: LH.Flags | undefined, config?: LH.Config | undefined, page?: LH.Puppeteer.Page | undefined): Promise<LH.RunnerResult | undefined>;
|
|
/**
|
|
* Run Lighthouse using the legacy navigation runner.
|
|
* This is left in place for any clients that don't support FR navigations yet (e.g. Lightrider)
|
|
* @deprecated
|
|
* @param {string=} url The URL to test. Optional if running in auditMode.
|
|
* @param {LH.Flags=} flags Optional settings for the Lighthouse run. If present,
|
|
* they will override any settings in the config.
|
|
* @param {LH.Config=} config Configuration for the Lighthouse run. If
|
|
* not present, the default config is used.
|
|
* @param {Connection=} userConnection
|
|
* @return {Promise<LH.RunnerResult|undefined>}
|
|
*/
|
|
export function legacyNavigation(url?: string | undefined, flags?: LH.Flags | undefined, config?: LH.Config | undefined, userConnection?: Connection | undefined): Promise<LH.RunnerResult | undefined>;
|
|
/**
|
|
* @param {LH.Puppeteer.Page} page
|
|
* @param {LH.UserFlow.Options} [options]
|
|
*/
|
|
export function startFlow(page: LH.Puppeteer.Page, options?: LH.UserFlow.Options | undefined): Promise<UserFlow>;
|
|
/**
|
|
* @param {LH.Puppeteer.Page|undefined} page
|
|
* @param {LH.NavigationRequestor|undefined} requestor
|
|
* @param {{config?: LH.Config, flags?: LH.Flags}} [options]
|
|
* @return {Promise<LH.RunnerResult|undefined>}
|
|
*/
|
|
export function navigation(page: LH.Puppeteer.Page | undefined, requestor: LH.NavigationRequestor | undefined, options?: {
|
|
config?: LH.Config | undefined;
|
|
flags?: LH.Flags | undefined;
|
|
} | undefined): Promise<LH.RunnerResult | undefined>;
|
|
/**
|
|
* @param {LH.Puppeteer.Page} page
|
|
* @param {{config?: LH.Config, flags?: LH.Flags}} [options]
|
|
* @return {Promise<{endTimespan: () => Promise<LH.RunnerResult|undefined>}>}
|
|
*/
|
|
export function startTimespan(page: LH.Puppeteer.Page, options?: {
|
|
config?: LH.Config | undefined;
|
|
flags?: LH.Flags | undefined;
|
|
} | undefined): Promise<{
|
|
endTimespan: () => Promise<LH.RunnerResult | undefined>;
|
|
}>;
|
|
/**
|
|
* @param {LH.Puppeteer.Page} page
|
|
* @param {{config?: LH.Config, flags?: LH.Flags}} [options]
|
|
* @return {Promise<LH.RunnerResult|undefined>}
|
|
*/
|
|
export function snapshot(page: LH.Puppeteer.Page, options?: {
|
|
config?: LH.Config | undefined;
|
|
flags?: LH.Flags | undefined;
|
|
} | undefined): Promise<LH.RunnerResult | undefined>;
|
|
/**
|
|
* @template {LH.Result|LH.FlowResult} R
|
|
* @param {R} result
|
|
* @param {[R] extends [LH.Result] ? LH.OutputMode : Exclude<LH.OutputMode, 'csv'>} [format]
|
|
* @return {string}
|
|
*/
|
|
export function generateReport<R extends LH.Result | LH.FlowResult>(result: R, format?: ([R] extends [LH.Result] ? LH.OutputMode : "json" | "html") | undefined): string;
|
|
/**
|
|
* @param {LH.UserFlow.FlowArtifacts} flowArtifacts
|
|
* @param {LH.Config} [config]
|
|
*/
|
|
export function auditFlowArtifacts(flowArtifacts: LH.UserFlow.FlowArtifacts, config?: LH.Config | undefined): Promise<{
|
|
steps: LH.FlowResult.Step[];
|
|
name: string;
|
|
}>;
|
|
export function getAuditList(): string[];
|
|
export const traceCategories: string[];
|
|
import * as LH from '../types/lh.js';
|
|
import { UserFlow } from './user-flow.js';
|
|
//# sourceMappingURL=index.d.ts.map
|