lighthouse 12.6.1-dev.20250623 → 12.6.1-dev.20250624
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/audits/audit.d.ts +7 -0
- package/core/audits/audit.js +15 -0
- package/core/audits/insights/cls-culprits-insight.js +3 -2
- package/core/audits/insights/insight-audit.d.ts +5 -2
- package/core/audits/insights/insight-audit.js +14 -3
- package/core/audits/insights/network-dependency-tree-insight.js +85 -8
- package/core/audits/layout-shifts.js +2 -1
- package/core/config/filters.js +1 -0
- package/core/gather/base-artifacts.js +3 -0
- package/core/gather/driver/environment.d.ts +6 -0
- package/core/gather/driver/environment.js +17 -0
- package/core/lib/bf-cache-strings.js +4 -1
- package/core/lib/deprecations-strings.d.ts +51 -47
- package/core/lib/deprecations-strings.js +14 -8
- package/core/scoring.d.ts +180 -15
- package/dist/report/bundle.esm.js +8 -2
- package/dist/report/flow.js +8 -2
- package/dist/report/standalone.js +10 -4
- package/package.json +9 -9
- package/report/assets/styles.css +7 -1
- package/report/renderer/components.js +1 -1
- package/report/renderer/details-renderer.d.ts +5 -0
- package/report/renderer/details-renderer.js +35 -3
- package/shared/localization/locales/ar-XB.json +57 -12
- package/shared/localization/locales/ar.json +57 -12
- package/shared/localization/locales/bg.json +58 -13
- package/shared/localization/locales/ca.json +58 -13
- package/shared/localization/locales/cs.json +58 -13
- package/shared/localization/locales/da.json +58 -13
- package/shared/localization/locales/de.json +58 -13
- package/shared/localization/locales/el.json +58 -13
- package/shared/localization/locales/en-GB.json +58 -13
- package/shared/localization/locales/en-US.json +12 -12
- package/shared/localization/locales/en-XL.json +12 -12
- package/shared/localization/locales/es-419.json +58 -13
- package/shared/localization/locales/es.json +56 -11
- package/shared/localization/locales/fi.json +58 -13
- package/shared/localization/locales/fil.json +58 -13
- package/shared/localization/locales/fr.json +58 -13
- package/shared/localization/locales/he.json +58 -13
- package/shared/localization/locales/hi.json +58 -13
- package/shared/localization/locales/hr.json +58 -13
- package/shared/localization/locales/hu.json +57 -12
- package/shared/localization/locales/id.json +58 -13
- package/shared/localization/locales/it.json +57 -12
- package/shared/localization/locales/ja.json +58 -13
- package/shared/localization/locales/ko.json +58 -13
- package/shared/localization/locales/lt.json +58 -13
- package/shared/localization/locales/lv.json +57 -12
- package/shared/localization/locales/nl.json +58 -13
- package/shared/localization/locales/no.json +58 -13
- package/shared/localization/locales/pl.json +57 -12
- package/shared/localization/locales/pt-PT.json +58 -13
- package/shared/localization/locales/pt.json +58 -13
- package/shared/localization/locales/ro.json +58 -13
- package/shared/localization/locales/ru.json +59 -14
- package/shared/localization/locales/sk.json +57 -12
- package/shared/localization/locales/sl.json +57 -12
- package/shared/localization/locales/sr-Latn.json +58 -13
- package/shared/localization/locales/sr.json +58 -13
- package/shared/localization/locales/sv.json +58 -13
- package/shared/localization/locales/ta.json +58 -13
- package/shared/localization/locales/te.json +58 -13
- package/shared/localization/locales/th.json +57 -12
- package/shared/localization/locales/tr.json +58 -13
- package/shared/localization/locales/uk.json +58 -13
- package/shared/localization/locales/vi.json +58 -13
- package/shared/localization/locales/zh-HK.json +58 -13
- package/shared/localization/locales/zh-TW.json +57 -12
- package/shared/localization/locales/zh.json +58 -13
- package/types/artifacts.d.ts +2 -0
- package/types/lhr/audit-details.d.ts +12 -3
package/core/scoring.d.ts
CHANGED
|
@@ -103,6 +103,24 @@ export class ReportScoring {
|
|
|
103
103
|
} | {
|
|
104
104
|
type: "list";
|
|
105
105
|
items: ({
|
|
106
|
+
type: "network-tree";
|
|
107
|
+
longestChain: {
|
|
108
|
+
duration: number;
|
|
109
|
+
};
|
|
110
|
+
chains: {
|
|
111
|
+
[x: string]: {
|
|
112
|
+
url: string | import("./index.js").IcuMessage;
|
|
113
|
+
navStartToEndTime: number;
|
|
114
|
+
transferSize: number;
|
|
115
|
+
isLongest?: boolean | undefined;
|
|
116
|
+
children?: /*elided*/ any | undefined;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
debugData?: {
|
|
120
|
+
[x: string]: any;
|
|
121
|
+
type: "debugdata";
|
|
122
|
+
} | undefined;
|
|
123
|
+
} | {
|
|
106
124
|
[x: string]: any;
|
|
107
125
|
type: "debugdata";
|
|
108
126
|
} | {
|
|
@@ -152,6 +170,9 @@ export class ReportScoring {
|
|
|
152
170
|
snippet?: string | import("./index.js").IcuMessage | undefined;
|
|
153
171
|
nodeLabel?: string | import("./index.js").IcuMessage | undefined;
|
|
154
172
|
explanation?: string | import("./index.js").IcuMessage | undefined;
|
|
173
|
+
} | {
|
|
174
|
+
type: "text";
|
|
175
|
+
value: import("./index.js").IcuMessage | string;
|
|
155
176
|
} | {
|
|
156
177
|
type: "subitems";
|
|
157
178
|
items: /*elided*/ any[];
|
|
@@ -180,9 +201,6 @@ export class ReportScoring {
|
|
|
180
201
|
type: "numeric";
|
|
181
202
|
value: number;
|
|
182
203
|
granularity?: number | undefined;
|
|
183
|
-
} | {
|
|
184
|
-
type: "text";
|
|
185
|
-
value: import("./index.js").IcuMessage | string;
|
|
186
204
|
} | undefined;
|
|
187
205
|
debugData?: {
|
|
188
206
|
[x: string]: any;
|
|
@@ -220,6 +238,153 @@ export class ReportScoring {
|
|
|
220
238
|
snippet?: string | import("./index.js").IcuMessage | undefined;
|
|
221
239
|
nodeLabel?: string | import("./index.js").IcuMessage | undefined;
|
|
222
240
|
explanation?: string | import("./index.js").IcuMessage | undefined;
|
|
241
|
+
} | {
|
|
242
|
+
type: "text";
|
|
243
|
+
value: import("./index.js").IcuMessage | string;
|
|
244
|
+
} | {
|
|
245
|
+
type: "list-section";
|
|
246
|
+
title?: (import("./index.js").IcuMessage | string) | undefined;
|
|
247
|
+
description?: (import("./index.js").IcuMessage | string) | undefined;
|
|
248
|
+
value: {
|
|
249
|
+
type: "network-tree";
|
|
250
|
+
longestChain: {
|
|
251
|
+
duration: number;
|
|
252
|
+
};
|
|
253
|
+
chains: {
|
|
254
|
+
[x: string]: {
|
|
255
|
+
url: string | import("./index.js").IcuMessage;
|
|
256
|
+
navStartToEndTime: number;
|
|
257
|
+
transferSize: number;
|
|
258
|
+
isLongest?: boolean | undefined;
|
|
259
|
+
children?: /*elided*/ any | undefined;
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
debugData?: {
|
|
263
|
+
[x: string]: any;
|
|
264
|
+
type: "debugdata";
|
|
265
|
+
} | undefined;
|
|
266
|
+
} | {
|
|
267
|
+
[x: string]: any;
|
|
268
|
+
type: "debugdata";
|
|
269
|
+
} | {
|
|
270
|
+
type: "checklist";
|
|
271
|
+
items: {
|
|
272
|
+
[x: string]: {
|
|
273
|
+
value: boolean;
|
|
274
|
+
label: import("./index.js").IcuMessage | string;
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
debugData?: {
|
|
278
|
+
[x: string]: any;
|
|
279
|
+
type: "debugdata";
|
|
280
|
+
} | undefined;
|
|
281
|
+
} | {
|
|
282
|
+
type: "table";
|
|
283
|
+
headings: {
|
|
284
|
+
key: string | import("./index.js").IcuMessage | null;
|
|
285
|
+
label: import("./index.js").IcuMessage | string;
|
|
286
|
+
valueType: import("../types/lhr/audit-details.js").default.ItemValueType;
|
|
287
|
+
subItemsHeading?: {
|
|
288
|
+
key: string | import("./index.js").IcuMessage;
|
|
289
|
+
valueType?: import("../types/lhr/audit-details.js").default.ItemValueType | undefined;
|
|
290
|
+
displayUnit?: string | import("./index.js").IcuMessage | undefined;
|
|
291
|
+
granularity?: number | undefined;
|
|
292
|
+
} | undefined;
|
|
293
|
+
displayUnit?: string | import("./index.js").IcuMessage | undefined;
|
|
294
|
+
granularity?: number | undefined;
|
|
295
|
+
}[];
|
|
296
|
+
items: {
|
|
297
|
+
[x: string]: string | number | boolean | import("./index.js").IcuMessage | {
|
|
298
|
+
[x: string]: any;
|
|
299
|
+
type: "debugdata";
|
|
300
|
+
} | {
|
|
301
|
+
type: "node";
|
|
302
|
+
lhId?: string | import("./index.js").IcuMessage | undefined;
|
|
303
|
+
path?: string | import("./index.js").IcuMessage | undefined;
|
|
304
|
+
selector?: string | import("./index.js").IcuMessage | undefined;
|
|
305
|
+
boundingRect?: {
|
|
306
|
+
width: number;
|
|
307
|
+
height: number;
|
|
308
|
+
top: number;
|
|
309
|
+
right: number;
|
|
310
|
+
bottom: number;
|
|
311
|
+
left: number;
|
|
312
|
+
} | undefined;
|
|
313
|
+
snippet?: string | import("./index.js").IcuMessage | undefined;
|
|
314
|
+
nodeLabel?: string | import("./index.js").IcuMessage | undefined;
|
|
315
|
+
explanation?: string | import("./index.js").IcuMessage | undefined;
|
|
316
|
+
} | {
|
|
317
|
+
type: "text";
|
|
318
|
+
value: import("./index.js").IcuMessage | string;
|
|
319
|
+
} | {
|
|
320
|
+
type: "subitems";
|
|
321
|
+
items: /*elided*/ any[];
|
|
322
|
+
} | {
|
|
323
|
+
type: "source-location";
|
|
324
|
+
url: string | import("./index.js").IcuMessage;
|
|
325
|
+
urlProvider: "network" | "comment";
|
|
326
|
+
line: number;
|
|
327
|
+
column: number;
|
|
328
|
+
original?: {
|
|
329
|
+
file: string | import("./index.js").IcuMessage;
|
|
330
|
+
line: number;
|
|
331
|
+
column: number;
|
|
332
|
+
} | undefined;
|
|
333
|
+
} | {
|
|
334
|
+
type: "link";
|
|
335
|
+
text: string | import("./index.js").IcuMessage;
|
|
336
|
+
url: string | import("./index.js").IcuMessage;
|
|
337
|
+
} | {
|
|
338
|
+
type: "url";
|
|
339
|
+
value: string | import("./index.js").IcuMessage;
|
|
340
|
+
} | {
|
|
341
|
+
type: "code";
|
|
342
|
+
value: import("./index.js").IcuMessage | string;
|
|
343
|
+
} | {
|
|
344
|
+
type: "numeric";
|
|
345
|
+
value: number;
|
|
346
|
+
granularity?: number | undefined;
|
|
347
|
+
} | undefined;
|
|
348
|
+
debugData?: {
|
|
349
|
+
[x: string]: any;
|
|
350
|
+
type: "debugdata";
|
|
351
|
+
} | undefined;
|
|
352
|
+
subItems?: {
|
|
353
|
+
type: "subitems";
|
|
354
|
+
items: /*elided*/ any[];
|
|
355
|
+
} | undefined;
|
|
356
|
+
}[];
|
|
357
|
+
summary?: {
|
|
358
|
+
wastedMs?: number | undefined;
|
|
359
|
+
wastedBytes?: number | undefined;
|
|
360
|
+
} | undefined;
|
|
361
|
+
sortedBy?: (string | import("./index.js").IcuMessage)[] | undefined;
|
|
362
|
+
isEntityGrouped?: boolean | undefined;
|
|
363
|
+
skipSumming?: (string | import("./index.js").IcuMessage)[] | undefined;
|
|
364
|
+
debugData?: {
|
|
365
|
+
[x: string]: any;
|
|
366
|
+
type: "debugdata";
|
|
367
|
+
} | undefined;
|
|
368
|
+
} | {
|
|
369
|
+
type: "node";
|
|
370
|
+
lhId?: string | import("./index.js").IcuMessage | undefined;
|
|
371
|
+
path?: string | import("./index.js").IcuMessage | undefined;
|
|
372
|
+
selector?: string | import("./index.js").IcuMessage | undefined;
|
|
373
|
+
boundingRect?: {
|
|
374
|
+
width: number;
|
|
375
|
+
height: number;
|
|
376
|
+
top: number;
|
|
377
|
+
right: number;
|
|
378
|
+
bottom: number;
|
|
379
|
+
left: number;
|
|
380
|
+
} | undefined;
|
|
381
|
+
snippet?: string | import("./index.js").IcuMessage | undefined;
|
|
382
|
+
nodeLabel?: string | import("./index.js").IcuMessage | undefined;
|
|
383
|
+
explanation?: string | import("./index.js").IcuMessage | undefined;
|
|
384
|
+
} | {
|
|
385
|
+
type: "text";
|
|
386
|
+
value: import("./index.js").IcuMessage | string;
|
|
387
|
+
};
|
|
223
388
|
})[];
|
|
224
389
|
debugData?: {
|
|
225
390
|
[x: string]: any;
|
|
@@ -260,6 +425,9 @@ export class ReportScoring {
|
|
|
260
425
|
snippet?: string | import("./index.js").IcuMessage | undefined;
|
|
261
426
|
nodeLabel?: string | import("./index.js").IcuMessage | undefined;
|
|
262
427
|
explanation?: string | import("./index.js").IcuMessage | undefined;
|
|
428
|
+
} | {
|
|
429
|
+
type: "text";
|
|
430
|
+
value: import("./index.js").IcuMessage | string;
|
|
263
431
|
} | {
|
|
264
432
|
type: "subitems";
|
|
265
433
|
items: {
|
|
@@ -282,6 +450,9 @@ export class ReportScoring {
|
|
|
282
450
|
snippet?: string | import("./index.js").IcuMessage | undefined;
|
|
283
451
|
nodeLabel?: string | import("./index.js").IcuMessage | undefined;
|
|
284
452
|
explanation?: string | import("./index.js").IcuMessage | undefined;
|
|
453
|
+
} | {
|
|
454
|
+
type: "text";
|
|
455
|
+
value: import("./index.js").IcuMessage | string;
|
|
285
456
|
} | /*elided*/ any | {
|
|
286
457
|
type: "source-location";
|
|
287
458
|
url: string | import("./index.js").IcuMessage;
|
|
@@ -307,9 +478,6 @@ export class ReportScoring {
|
|
|
307
478
|
type: "numeric";
|
|
308
479
|
value: number;
|
|
309
480
|
granularity?: number | undefined;
|
|
310
|
-
} | {
|
|
311
|
-
type: "text";
|
|
312
|
-
value: import("./index.js").IcuMessage | string;
|
|
313
481
|
} | undefined;
|
|
314
482
|
debugData?: {
|
|
315
483
|
[x: string]: any;
|
|
@@ -342,9 +510,6 @@ export class ReportScoring {
|
|
|
342
510
|
type: "numeric";
|
|
343
511
|
value: number;
|
|
344
512
|
granularity?: number | undefined;
|
|
345
|
-
} | {
|
|
346
|
-
type: "text";
|
|
347
|
-
value: import("./index.js").IcuMessage | string;
|
|
348
513
|
} | undefined;
|
|
349
514
|
url: string | import("./index.js").IcuMessage;
|
|
350
515
|
wastedBytes?: number | undefined;
|
|
@@ -376,6 +541,9 @@ export class ReportScoring {
|
|
|
376
541
|
snippet?: string | import("./index.js").IcuMessage | undefined;
|
|
377
542
|
nodeLabel?: string | import("./index.js").IcuMessage | undefined;
|
|
378
543
|
explanation?: string | import("./index.js").IcuMessage | undefined;
|
|
544
|
+
} | {
|
|
545
|
+
type: "text";
|
|
546
|
+
value: import("./index.js").IcuMessage | string;
|
|
379
547
|
} | /*elided*/ any | {
|
|
380
548
|
type: "source-location";
|
|
381
549
|
url: string | import("./index.js").IcuMessage;
|
|
@@ -401,9 +569,6 @@ export class ReportScoring {
|
|
|
401
569
|
type: "numeric";
|
|
402
570
|
value: number;
|
|
403
571
|
granularity?: number | undefined;
|
|
404
|
-
} | {
|
|
405
|
-
type: "text";
|
|
406
|
-
value: import("./index.js").IcuMessage | string;
|
|
407
572
|
} | undefined;
|
|
408
573
|
debugData?: {
|
|
409
574
|
[x: string]: any;
|
|
@@ -478,6 +643,9 @@ export class ReportScoring {
|
|
|
478
643
|
snippet?: string | import("./index.js").IcuMessage | undefined;
|
|
479
644
|
nodeLabel?: string | import("./index.js").IcuMessage | undefined;
|
|
480
645
|
explanation?: string | import("./index.js").IcuMessage | undefined;
|
|
646
|
+
} | {
|
|
647
|
+
type: "text";
|
|
648
|
+
value: import("./index.js").IcuMessage | string;
|
|
481
649
|
} | {
|
|
482
650
|
type: "subitems";
|
|
483
651
|
items: /*elided*/ any[];
|
|
@@ -506,9 +674,6 @@ export class ReportScoring {
|
|
|
506
674
|
type: "numeric";
|
|
507
675
|
value: number;
|
|
508
676
|
granularity?: number | undefined;
|
|
509
|
-
} | {
|
|
510
|
-
type: "text";
|
|
511
|
-
value: import("./index.js").IcuMessage | string;
|
|
512
677
|
} | undefined;
|
|
513
678
|
debugData?: {
|
|
514
679
|
[x: string]: any;
|