Skip to content

Commit 5db3e69

Browse files
authored
Manually update to [email protected] (#1844)
Co-authored-by: saschanaz <[email protected]>
1 parent f899c54 commit 5db3e69

6 files changed

+280
-3
lines changed

Diff for: baselines/dom.generated.d.ts

+112
Original file line numberDiff line numberDiff line change
@@ -1180,6 +1180,15 @@ interface OscillatorOptions extends AudioNodeOptions {
11801180
type?: OscillatorType;
11811181
}
11821182

1183+
interface PageRevealEventInit extends EventInit {
1184+
viewTransition?: ViewTransition | null;
1185+
}
1186+
1187+
interface PageSwapEventInit extends EventInit {
1188+
activation?: NavigationActivation | null;
1189+
viewTransition?: ViewTransition | null;
1190+
}
1191+
11831192
interface PageTransitionEventInit extends EventInit {
11841193
persisted?: boolean;
11851194
}
@@ -5029,6 +5038,7 @@ interface CSSStyleDeclaration {
50295038
vectorEffect: string;
50305039
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */
50315040
verticalAlign: string;
5041+
viewTransitionClass: string;
50325042
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-name) */
50335043
viewTransitionName: string;
50345044
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/visibility) */
@@ -5667,6 +5677,16 @@ declare var CSSVariableReferenceValue: {
56675677
new(variable: string, fallback?: CSSUnparsedValue | null): CSSVariableReferenceValue;
56685678
};
56695679

5680+
interface CSSViewTransitionRule extends CSSRule {
5681+
readonly navigation: string;
5682+
readonly types: ReadonlyArray<string>;
5683+
}
5684+
5685+
declare var CSSViewTransitionRule: {
5686+
prototype: CSSViewTransitionRule;
5687+
new(): CSSViewTransitionRule;
5688+
};
5689+
56705690
/**
56715691
* Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec.
56725692
* Available only in secure contexts.
@@ -7638,6 +7658,8 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
76387658
createEvent(eventInterface: "MouseEvent"): MouseEvent;
76397659
createEvent(eventInterface: "MouseEvents"): MouseEvent;
76407660
createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;
7661+
createEvent(eventInterface: "PageRevealEvent"): PageRevealEvent;
7662+
createEvent(eventInterface: "PageSwapEvent"): PageSwapEvent;
76417663
createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;
76427664
createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent;
76437665
createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;
@@ -11812,6 +11834,9 @@ declare var HTMLLegendElement: {
1181211834
interface HTMLLinkElement extends HTMLElement, LinkStyle {
1181311835
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/as) */
1181411836
as: string;
11837+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/blocking) */
11838+
get blocking(): DOMTokenList;
11839+
set blocking(value: string);
1181511840
/**
1181611841
* Sets or retrieves the character set used to encode the object.
1181711842
* @deprecated
@@ -12827,6 +12852,9 @@ declare var HTMLQuoteElement: {
1282712852
interface HTMLScriptElement extends HTMLElement {
1282812853
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/async) */
1282912854
async: boolean;
12855+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/blocking) */
12856+
get blocking(): DOMTokenList;
12857+
set blocking(value: string);
1283012858
/**
1283112859
* Sets or retrieves the character set used to encode the object.
1283212860
* @deprecated
@@ -13114,6 +13142,9 @@ declare var HTMLSpanElement: {
1311413142
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement)
1311513143
*/
1311613144
interface HTMLStyleElement extends HTMLElement, LinkStyle {
13145+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/blocking) */
13146+
get blocking(): DOMTokenList;
13147+
set blocking(value: string);
1311713148
/**
1311813149
* Enables or disables the style sheet.
1311913150
*
@@ -16497,6 +16528,52 @@ declare var NamedNodeMap: {
1649716528
new(): NamedNodeMap;
1649816529
};
1649916530

16531+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation) */
16532+
interface NavigationActivation {
16533+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation/entry) */
16534+
readonly entry: NavigationHistoryEntry;
16535+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation/from) */
16536+
readonly from: NavigationHistoryEntry | null;
16537+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation/navigationType) */
16538+
readonly navigationType: NavigationType;
16539+
}
16540+
16541+
declare var NavigationActivation: {
16542+
prototype: NavigationActivation;
16543+
new(): NavigationActivation;
16544+
};
16545+
16546+
interface NavigationHistoryEntryEventMap {
16547+
"dispose": Event;
16548+
}
16549+
16550+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry) */
16551+
interface NavigationHistoryEntry extends EventTarget {
16552+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/id) */
16553+
readonly id: string;
16554+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/index) */
16555+
readonly index: number;
16556+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/key) */
16557+
readonly key: string;
16558+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/dispose_event) */
16559+
ondispose: ((this: NavigationHistoryEntry, ev: Event) => any) | null;
16560+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/sameDocument) */
16561+
readonly sameDocument: boolean;
16562+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/url) */
16563+
readonly url: string | null;
16564+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/getState) */
16565+
getState(): any;
16566+
addEventListener<K extends keyof NavigationHistoryEntryEventMap>(type: K, listener: (this: NavigationHistoryEntry, ev: NavigationHistoryEntryEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
16567+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
16568+
removeEventListener<K extends keyof NavigationHistoryEntryEventMap>(type: K, listener: (this: NavigationHistoryEntry, ev: NavigationHistoryEntryEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
16569+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
16570+
}
16571+
16572+
declare var NavigationHistoryEntry: {
16573+
prototype: NavigationHistoryEntry;
16574+
new(): NavigationHistoryEntry;
16575+
};
16576+
1650016577
/**
1650116578
* Available only in secure contexts.
1650216579
*
@@ -17354,6 +17431,30 @@ declare var OverconstrainedError: {
1735417431
new(constraint: string, message?: string): OverconstrainedError;
1735517432
};
1735617433

17434+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageRevealEvent) */
17435+
interface PageRevealEvent extends Event {
17436+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageRevealEvent/viewTransition) */
17437+
readonly viewTransition: ViewTransition | null;
17438+
}
17439+
17440+
declare var PageRevealEvent: {
17441+
prototype: PageRevealEvent;
17442+
new(type: string, eventInitDict?: PageRevealEventInit): PageRevealEvent;
17443+
};
17444+
17445+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageSwapEvent) */
17446+
interface PageSwapEvent extends Event {
17447+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageSwapEvent/activation) */
17448+
readonly activation: NavigationActivation | null;
17449+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageSwapEvent/viewTransition) */
17450+
readonly viewTransition: ViewTransition | null;
17451+
}
17452+
17453+
declare var PageSwapEvent: {
17454+
prototype: PageSwapEvent;
17455+
new(type: string, eventInitDict?: PageSwapEventInit): PageSwapEvent;
17456+
};
17457+
1735717458
/**
1735817459
* The PageTransitionEvent is fired when a document is being loaded or unloaded.
1735917460
*
@@ -23745,6 +23846,7 @@ interface ViewTransition {
2374523846
readonly finished: Promise<undefined>;
2374623847
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/ready) */
2374723848
readonly ready: Promise<undefined>;
23849+
types: ViewTransitionTypeSet;
2374823850
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/updateCallbackDone) */
2374923851
readonly updateCallbackDone: Promise<undefined>;
2375023852
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/skipTransition) */
@@ -23756,6 +23858,15 @@ declare var ViewTransition: {
2375623858
new(): ViewTransition;
2375723859
};
2375823860

23861+
interface ViewTransitionTypeSet {
23862+
forEach(callbackfn: (value: string, key: string, parent: ViewTransitionTypeSet) => void, thisArg?: any): void;
23863+
}
23864+
23865+
declare var ViewTransitionTypeSet: {
23866+
prototype: ViewTransitionTypeSet;
23867+
new(): ViewTransitionTypeSet;
23868+
};
23869+
2375923870
interface VisualViewportEventMap {
2376023871
"resize": Event;
2376123872
"scroll": Event;
@@ -29045,6 +29156,7 @@ type MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "se
2904529156
type MediaSessionPlaybackState = "none" | "paused" | "playing";
2904629157
type MediaStreamTrackState = "ended" | "live";
2904729158
type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";
29159+
type NavigationType = "push" | "reload" | "replace" | "traverse";
2904829160
type NotificationDirection = "auto" | "ltr" | "rtl";
2904929161
type NotificationPermission = "default" | "denied" | "granted";
2905029162
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";

Diff for: baselines/dom.iterable.generated.d.ts

+3
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,9 @@ interface URLSearchParams {
349349
values(): URLSearchParamsIterator<string>;
350350
}
351351

352+
interface ViewTransitionTypeSet extends Set<string> {
353+
}
354+
352355
interface WEBGL_draw_buffers {
353356
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */
354357
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;

Diff for: baselines/ts5.5/dom.generated.d.ts

+109
Original file line numberDiff line numberDiff line change
@@ -1180,6 +1180,15 @@ interface OscillatorOptions extends AudioNodeOptions {
11801180
type?: OscillatorType;
11811181
}
11821182

1183+
interface PageRevealEventInit extends EventInit {
1184+
viewTransition?: ViewTransition | null;
1185+
}
1186+
1187+
interface PageSwapEventInit extends EventInit {
1188+
activation?: NavigationActivation | null;
1189+
viewTransition?: ViewTransition | null;
1190+
}
1191+
11831192
interface PageTransitionEventInit extends EventInit {
11841193
persisted?: boolean;
11851194
}
@@ -5023,6 +5032,7 @@ interface CSSStyleDeclaration {
50235032
vectorEffect: string;
50245033
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */
50255034
verticalAlign: string;
5035+
viewTransitionClass: string;
50265036
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-name) */
50275037
viewTransitionName: string;
50285038
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/visibility) */
@@ -5660,6 +5670,16 @@ declare var CSSVariableReferenceValue: {
56605670
new(variable: string, fallback?: CSSUnparsedValue | null): CSSVariableReferenceValue;
56615671
};
56625672

5673+
interface CSSViewTransitionRule extends CSSRule {
5674+
readonly navigation: string;
5675+
readonly types: ReadonlyArray<string>;
5676+
}
5677+
5678+
declare var CSSViewTransitionRule: {
5679+
prototype: CSSViewTransitionRule;
5680+
new(): CSSViewTransitionRule;
5681+
};
5682+
56635683
/**
56645684
* Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec.
56655685
* Available only in secure contexts.
@@ -7631,6 +7651,8 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
76317651
createEvent(eventInterface: "MouseEvent"): MouseEvent;
76327652
createEvent(eventInterface: "MouseEvents"): MouseEvent;
76337653
createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;
7654+
createEvent(eventInterface: "PageRevealEvent"): PageRevealEvent;
7655+
createEvent(eventInterface: "PageSwapEvent"): PageSwapEvent;
76347656
createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;
76357657
createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent;
76367658
createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;
@@ -11798,6 +11820,8 @@ declare var HTMLLegendElement: {
1179811820
interface HTMLLinkElement extends HTMLElement, LinkStyle {
1179911821
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/as) */
1180011822
as: string;
11823+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/blocking) */
11824+
readonly blocking: DOMTokenList;
1180111825
/**
1180211826
* Sets or retrieves the character set used to encode the object.
1180311827
* @deprecated
@@ -12810,6 +12834,8 @@ declare var HTMLQuoteElement: {
1281012834
interface HTMLScriptElement extends HTMLElement {
1281112835
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/async) */
1281212836
async: boolean;
12837+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/blocking) */
12838+
readonly blocking: DOMTokenList;
1281312839
/**
1281412840
* Sets or retrieves the character set used to encode the object.
1281512841
* @deprecated
@@ -13097,6 +13123,8 @@ declare var HTMLSpanElement: {
1309713123
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement)
1309813124
*/
1309913125
interface HTMLStyleElement extends HTMLElement, LinkStyle {
13126+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/blocking) */
13127+
readonly blocking: DOMTokenList;
1310013128
/**
1310113129
* Enables or disables the style sheet.
1310213130
*
@@ -16480,6 +16508,52 @@ declare var NamedNodeMap: {
1648016508
new(): NamedNodeMap;
1648116509
};
1648216510

16511+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation) */
16512+
interface NavigationActivation {
16513+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation/entry) */
16514+
readonly entry: NavigationHistoryEntry;
16515+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation/from) */
16516+
readonly from: NavigationHistoryEntry | null;
16517+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation/navigationType) */
16518+
readonly navigationType: NavigationType;
16519+
}
16520+
16521+
declare var NavigationActivation: {
16522+
prototype: NavigationActivation;
16523+
new(): NavigationActivation;
16524+
};
16525+
16526+
interface NavigationHistoryEntryEventMap {
16527+
"dispose": Event;
16528+
}
16529+
16530+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry) */
16531+
interface NavigationHistoryEntry extends EventTarget {
16532+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/id) */
16533+
readonly id: string;
16534+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/index) */
16535+
readonly index: number;
16536+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/key) */
16537+
readonly key: string;
16538+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/dispose_event) */
16539+
ondispose: ((this: NavigationHistoryEntry, ev: Event) => any) | null;
16540+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/sameDocument) */
16541+
readonly sameDocument: boolean;
16542+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/url) */
16543+
readonly url: string | null;
16544+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/getState) */
16545+
getState(): any;
16546+
addEventListener<K extends keyof NavigationHistoryEntryEventMap>(type: K, listener: (this: NavigationHistoryEntry, ev: NavigationHistoryEntryEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
16547+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
16548+
removeEventListener<K extends keyof NavigationHistoryEntryEventMap>(type: K, listener: (this: NavigationHistoryEntry, ev: NavigationHistoryEntryEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
16549+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
16550+
}
16551+
16552+
declare var NavigationHistoryEntry: {
16553+
prototype: NavigationHistoryEntry;
16554+
new(): NavigationHistoryEntry;
16555+
};
16556+
1648316557
/**
1648416558
* Available only in secure contexts.
1648516559
*
@@ -17337,6 +17411,30 @@ declare var OverconstrainedError: {
1733717411
new(constraint: string, message?: string): OverconstrainedError;
1733817412
};
1733917413

17414+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageRevealEvent) */
17415+
interface PageRevealEvent extends Event {
17416+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageRevealEvent/viewTransition) */
17417+
readonly viewTransition: ViewTransition | null;
17418+
}
17419+
17420+
declare var PageRevealEvent: {
17421+
prototype: PageRevealEvent;
17422+
new(type: string, eventInitDict?: PageRevealEventInit): PageRevealEvent;
17423+
};
17424+
17425+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageSwapEvent) */
17426+
interface PageSwapEvent extends Event {
17427+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageSwapEvent/activation) */
17428+
readonly activation: NavigationActivation | null;
17429+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageSwapEvent/viewTransition) */
17430+
readonly viewTransition: ViewTransition | null;
17431+
}
17432+
17433+
declare var PageSwapEvent: {
17434+
prototype: PageSwapEvent;
17435+
new(type: string, eventInitDict?: PageSwapEventInit): PageSwapEvent;
17436+
};
17437+
1734017438
/**
1734117439
* The PageTransitionEvent is fired when a document is being loaded or unloaded.
1734217440
*
@@ -23726,6 +23824,7 @@ interface ViewTransition {
2372623824
readonly finished: Promise<undefined>;
2372723825
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/ready) */
2372823826
readonly ready: Promise<undefined>;
23827+
types: ViewTransitionTypeSet;
2372923828
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/updateCallbackDone) */
2373023829
readonly updateCallbackDone: Promise<undefined>;
2373123830
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/skipTransition) */
@@ -23737,6 +23836,15 @@ declare var ViewTransition: {
2373723836
new(): ViewTransition;
2373823837
};
2373923838

23839+
interface ViewTransitionTypeSet {
23840+
forEach(callbackfn: (value: string, key: string, parent: ViewTransitionTypeSet) => void, thisArg?: any): void;
23841+
}
23842+
23843+
declare var ViewTransitionTypeSet: {
23844+
prototype: ViewTransitionTypeSet;
23845+
new(): ViewTransitionTypeSet;
23846+
};
23847+
2374023848
interface VisualViewportEventMap {
2374123849
"resize": Event;
2374223850
"scroll": Event;
@@ -29026,6 +29134,7 @@ type MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "se
2902629134
type MediaSessionPlaybackState = "none" | "paused" | "playing";
2902729135
type MediaStreamTrackState = "ended" | "live";
2902829136
type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";
29137+
type NavigationType = "push" | "reload" | "replace" | "traverse";
2902929138
type NotificationDirection = "auto" | "ltr" | "rtl";
2903029139
type NotificationPermission = "default" | "denied" | "granted";
2903129140
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";

0 commit comments

Comments
 (0)