@@ -1180,6 +1180,15 @@ interface OscillatorOptions extends AudioNodeOptions {
1180
1180
type?: OscillatorType;
1181
1181
}
1182
1182
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
+
1183
1192
interface PageTransitionEventInit extends EventInit {
1184
1193
persisted?: boolean;
1185
1194
}
@@ -5029,6 +5038,7 @@ interface CSSStyleDeclaration {
5029
5038
vectorEffect: string;
5030
5039
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */
5031
5040
verticalAlign: string;
5041
+ viewTransitionClass: string;
5032
5042
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-name) */
5033
5043
viewTransitionName: string;
5034
5044
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/visibility) */
@@ -5667,6 +5677,16 @@ declare var CSSVariableReferenceValue: {
5667
5677
new(variable: string, fallback?: CSSUnparsedValue | null): CSSVariableReferenceValue;
5668
5678
};
5669
5679
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
+
5670
5690
/**
5671
5691
* 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.
5672
5692
* Available only in secure contexts.
@@ -7638,6 +7658,8 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
7638
7658
createEvent(eventInterface: "MouseEvent"): MouseEvent;
7639
7659
createEvent(eventInterface: "MouseEvents"): MouseEvent;
7640
7660
createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;
7661
+ createEvent(eventInterface: "PageRevealEvent"): PageRevealEvent;
7662
+ createEvent(eventInterface: "PageSwapEvent"): PageSwapEvent;
7641
7663
createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;
7642
7664
createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent;
7643
7665
createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;
@@ -11812,6 +11834,9 @@ declare var HTMLLegendElement: {
11812
11834
interface HTMLLinkElement extends HTMLElement, LinkStyle {
11813
11835
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/as) */
11814
11836
as: string;
11837
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/blocking) */
11838
+ get blocking(): DOMTokenList;
11839
+ set blocking(value: string);
11815
11840
/**
11816
11841
* Sets or retrieves the character set used to encode the object.
11817
11842
* @deprecated
@@ -12827,6 +12852,9 @@ declare var HTMLQuoteElement: {
12827
12852
interface HTMLScriptElement extends HTMLElement {
12828
12853
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/async) */
12829
12854
async: boolean;
12855
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/blocking) */
12856
+ get blocking(): DOMTokenList;
12857
+ set blocking(value: string);
12830
12858
/**
12831
12859
* Sets or retrieves the character set used to encode the object.
12832
12860
* @deprecated
@@ -13114,6 +13142,9 @@ declare var HTMLSpanElement: {
13114
13142
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement)
13115
13143
*/
13116
13144
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);
13117
13148
/**
13118
13149
* Enables or disables the style sheet.
13119
13150
*
@@ -16497,6 +16528,52 @@ declare var NamedNodeMap: {
16497
16528
new(): NamedNodeMap;
16498
16529
};
16499
16530
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
+
16500
16577
/**
16501
16578
* Available only in secure contexts.
16502
16579
*
@@ -17354,6 +17431,30 @@ declare var OverconstrainedError: {
17354
17431
new(constraint: string, message?: string): OverconstrainedError;
17355
17432
};
17356
17433
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
+
17357
17458
/**
17358
17459
* The PageTransitionEvent is fired when a document is being loaded or unloaded.
17359
17460
*
@@ -23745,6 +23846,7 @@ interface ViewTransition {
23745
23846
readonly finished: Promise<undefined>;
23746
23847
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/ready) */
23747
23848
readonly ready: Promise<undefined>;
23849
+ types: ViewTransitionTypeSet;
23748
23850
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/updateCallbackDone) */
23749
23851
readonly updateCallbackDone: Promise<undefined>;
23750
23852
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/skipTransition) */
@@ -23756,6 +23858,15 @@ declare var ViewTransition: {
23756
23858
new(): ViewTransition;
23757
23859
};
23758
23860
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
+
23759
23870
interface VisualViewportEventMap {
23760
23871
"resize": Event;
23761
23872
"scroll": Event;
@@ -29045,6 +29156,7 @@ type MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "se
29045
29156
type MediaSessionPlaybackState = "none" | "paused" | "playing";
29046
29157
type MediaStreamTrackState = "ended" | "live";
29047
29158
type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";
29159
+ type NavigationType = "push" | "reload" | "replace" | "traverse";
29048
29160
type NotificationDirection = "auto" | "ltr" | "rtl";
29049
29161
type NotificationPermission = "default" | "denied" | "granted";
29050
29162
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
0 commit comments