Skip to content

Commit

Permalink
Manually update to [email protected] (#1844)
Browse files Browse the repository at this point in the history
Co-authored-by: saschanaz <[email protected]>
  • Loading branch information
saschanaz and saschanaz authored Nov 6, 2024
1 parent f899c54 commit 5db3e69
Show file tree
Hide file tree
Showing 6 changed files with 280 additions and 3 deletions.
112 changes: 112 additions & 0 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1180,6 +1180,15 @@ interface OscillatorOptions extends AudioNodeOptions {
type?: OscillatorType;
}

interface PageRevealEventInit extends EventInit {
viewTransition?: ViewTransition | null;
}

interface PageSwapEventInit extends EventInit {
activation?: NavigationActivation | null;
viewTransition?: ViewTransition | null;
}

interface PageTransitionEventInit extends EventInit {
persisted?: boolean;
}
Expand Down Expand Up @@ -5029,6 +5038,7 @@ interface CSSStyleDeclaration {
vectorEffect: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */
verticalAlign: string;
viewTransitionClass: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-name) */
viewTransitionName: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/visibility) */
Expand Down Expand Up @@ -5667,6 +5677,16 @@ declare var CSSVariableReferenceValue: {
new(variable: string, fallback?: CSSUnparsedValue | null): CSSVariableReferenceValue;
};

interface CSSViewTransitionRule extends CSSRule {
readonly navigation: string;
readonly types: ReadonlyArray<string>;
}

declare var CSSViewTransitionRule: {
prototype: CSSViewTransitionRule;
new(): CSSViewTransitionRule;
};

/**
* 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.
* Available only in secure contexts.
Expand Down Expand Up @@ -7638,6 +7658,8 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
createEvent(eventInterface: "MouseEvent"): MouseEvent;
createEvent(eventInterface: "MouseEvents"): MouseEvent;
createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;
createEvent(eventInterface: "PageRevealEvent"): PageRevealEvent;
createEvent(eventInterface: "PageSwapEvent"): PageSwapEvent;
createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;
createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent;
createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;
Expand Down Expand Up @@ -11812,6 +11834,9 @@ declare var HTMLLegendElement: {
interface HTMLLinkElement extends HTMLElement, LinkStyle {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/as) */
as: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/blocking) */
get blocking(): DOMTokenList;
set blocking(value: string);
/**
* Sets or retrieves the character set used to encode the object.
* @deprecated
Expand Down Expand Up @@ -12827,6 +12852,9 @@ declare var HTMLQuoteElement: {
interface HTMLScriptElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/async) */
async: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/blocking) */
get blocking(): DOMTokenList;
set blocking(value: string);
/**
* Sets or retrieves the character set used to encode the object.
* @deprecated
Expand Down Expand Up @@ -13114,6 +13142,9 @@ declare var HTMLSpanElement: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement)
*/
interface HTMLStyleElement extends HTMLElement, LinkStyle {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/blocking) */
get blocking(): DOMTokenList;
set blocking(value: string);
/**
* Enables or disables the style sheet.
*
Expand Down Expand Up @@ -16497,6 +16528,52 @@ declare var NamedNodeMap: {
new(): NamedNodeMap;
};

/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation) */
interface NavigationActivation {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation/entry) */
readonly entry: NavigationHistoryEntry;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation/from) */
readonly from: NavigationHistoryEntry | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation/navigationType) */
readonly navigationType: NavigationType;
}

declare var NavigationActivation: {
prototype: NavigationActivation;
new(): NavigationActivation;
};

interface NavigationHistoryEntryEventMap {
"dispose": Event;
}

/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry) */
interface NavigationHistoryEntry extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/id) */
readonly id: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/index) */
readonly index: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/key) */
readonly key: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/dispose_event) */
ondispose: ((this: NavigationHistoryEntry, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/sameDocument) */
readonly sameDocument: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/url) */
readonly url: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/getState) */
getState(): any;
addEventListener<K extends keyof NavigationHistoryEntryEventMap>(type: K, listener: (this: NavigationHistoryEntry, ev: NavigationHistoryEntryEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof NavigationHistoryEntryEventMap>(type: K, listener: (this: NavigationHistoryEntry, ev: NavigationHistoryEntryEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var NavigationHistoryEntry: {
prototype: NavigationHistoryEntry;
new(): NavigationHistoryEntry;
};

/**
* Available only in secure contexts.
*
Expand Down Expand Up @@ -17354,6 +17431,30 @@ declare var OverconstrainedError: {
new(constraint: string, message?: string): OverconstrainedError;
};

/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageRevealEvent) */
interface PageRevealEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageRevealEvent/viewTransition) */
readonly viewTransition: ViewTransition | null;
}

declare var PageRevealEvent: {
prototype: PageRevealEvent;
new(type: string, eventInitDict?: PageRevealEventInit): PageRevealEvent;
};

/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageSwapEvent) */
interface PageSwapEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageSwapEvent/activation) */
readonly activation: NavigationActivation | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageSwapEvent/viewTransition) */
readonly viewTransition: ViewTransition | null;
}

declare var PageSwapEvent: {
prototype: PageSwapEvent;
new(type: string, eventInitDict?: PageSwapEventInit): PageSwapEvent;
};

/**
* The PageTransitionEvent is fired when a document is being loaded or unloaded.
*
Expand Down Expand Up @@ -23745,6 +23846,7 @@ interface ViewTransition {
readonly finished: Promise<undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/ready) */
readonly ready: Promise<undefined>;
types: ViewTransitionTypeSet;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/updateCallbackDone) */
readonly updateCallbackDone: Promise<undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/skipTransition) */
Expand All @@ -23756,6 +23858,15 @@ declare var ViewTransition: {
new(): ViewTransition;
};

interface ViewTransitionTypeSet {
forEach(callbackfn: (value: string, key: string, parent: ViewTransitionTypeSet) => void, thisArg?: any): void;
}

declare var ViewTransitionTypeSet: {
prototype: ViewTransitionTypeSet;
new(): ViewTransitionTypeSet;
};

interface VisualViewportEventMap {
"resize": Event;
"scroll": Event;
Expand Down Expand Up @@ -29045,6 +29156,7 @@ type MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "se
type MediaSessionPlaybackState = "none" | "paused" | "playing";
type MediaStreamTrackState = "ended" | "live";
type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";
type NavigationType = "push" | "reload" | "replace" | "traverse";
type NotificationDirection = "auto" | "ltr" | "rtl";
type NotificationPermission = "default" | "denied" | "granted";
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
Expand Down
3 changes: 3 additions & 0 deletions baselines/dom.iterable.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,9 @@ interface URLSearchParams {
values(): URLSearchParamsIterator<string>;
}

interface ViewTransitionTypeSet extends Set<string> {
}

interface WEBGL_draw_buffers {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
Expand Down
109 changes: 109 additions & 0 deletions baselines/ts5.5/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1180,6 +1180,15 @@ interface OscillatorOptions extends AudioNodeOptions {
type?: OscillatorType;
}

interface PageRevealEventInit extends EventInit {
viewTransition?: ViewTransition | null;
}

interface PageSwapEventInit extends EventInit {
activation?: NavigationActivation | null;
viewTransition?: ViewTransition | null;
}

interface PageTransitionEventInit extends EventInit {
persisted?: boolean;
}
Expand Down Expand Up @@ -5023,6 +5032,7 @@ interface CSSStyleDeclaration {
vectorEffect: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */
verticalAlign: string;
viewTransitionClass: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-name) */
viewTransitionName: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/visibility) */
Expand Down Expand Up @@ -5660,6 +5670,16 @@ declare var CSSVariableReferenceValue: {
new(variable: string, fallback?: CSSUnparsedValue | null): CSSVariableReferenceValue;
};

interface CSSViewTransitionRule extends CSSRule {
readonly navigation: string;
readonly types: ReadonlyArray<string>;
}

declare var CSSViewTransitionRule: {
prototype: CSSViewTransitionRule;
new(): CSSViewTransitionRule;
};

/**
* 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.
* Available only in secure contexts.
Expand Down Expand Up @@ -7631,6 +7651,8 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
createEvent(eventInterface: "MouseEvent"): MouseEvent;
createEvent(eventInterface: "MouseEvents"): MouseEvent;
createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;
createEvent(eventInterface: "PageRevealEvent"): PageRevealEvent;
createEvent(eventInterface: "PageSwapEvent"): PageSwapEvent;
createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;
createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent;
createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;
Expand Down Expand Up @@ -11798,6 +11820,8 @@ declare var HTMLLegendElement: {
interface HTMLLinkElement extends HTMLElement, LinkStyle {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/as) */
as: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/blocking) */
readonly blocking: DOMTokenList;
/**
* Sets or retrieves the character set used to encode the object.
* @deprecated
Expand Down Expand Up @@ -12810,6 +12834,8 @@ declare var HTMLQuoteElement: {
interface HTMLScriptElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/async) */
async: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/blocking) */
readonly blocking: DOMTokenList;
/**
* Sets or retrieves the character set used to encode the object.
* @deprecated
Expand Down Expand Up @@ -13097,6 +13123,8 @@ declare var HTMLSpanElement: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement)
*/
interface HTMLStyleElement extends HTMLElement, LinkStyle {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/blocking) */
readonly blocking: DOMTokenList;
/**
* Enables or disables the style sheet.
*
Expand Down Expand Up @@ -16480,6 +16508,52 @@ declare var NamedNodeMap: {
new(): NamedNodeMap;
};

/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation) */
interface NavigationActivation {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation/entry) */
readonly entry: NavigationHistoryEntry;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation/from) */
readonly from: NavigationHistoryEntry | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation/navigationType) */
readonly navigationType: NavigationType;
}

declare var NavigationActivation: {
prototype: NavigationActivation;
new(): NavigationActivation;
};

interface NavigationHistoryEntryEventMap {
"dispose": Event;
}

/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry) */
interface NavigationHistoryEntry extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/id) */
readonly id: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/index) */
readonly index: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/key) */
readonly key: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/dispose_event) */
ondispose: ((this: NavigationHistoryEntry, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/sameDocument) */
readonly sameDocument: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/url) */
readonly url: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/getState) */
getState(): any;
addEventListener<K extends keyof NavigationHistoryEntryEventMap>(type: K, listener: (this: NavigationHistoryEntry, ev: NavigationHistoryEntryEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof NavigationHistoryEntryEventMap>(type: K, listener: (this: NavigationHistoryEntry, ev: NavigationHistoryEntryEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var NavigationHistoryEntry: {
prototype: NavigationHistoryEntry;
new(): NavigationHistoryEntry;
};

/**
* Available only in secure contexts.
*
Expand Down Expand Up @@ -17337,6 +17411,30 @@ declare var OverconstrainedError: {
new(constraint: string, message?: string): OverconstrainedError;
};

/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageRevealEvent) */
interface PageRevealEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageRevealEvent/viewTransition) */
readonly viewTransition: ViewTransition | null;
}

declare var PageRevealEvent: {
prototype: PageRevealEvent;
new(type: string, eventInitDict?: PageRevealEventInit): PageRevealEvent;
};

/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageSwapEvent) */
interface PageSwapEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageSwapEvent/activation) */
readonly activation: NavigationActivation | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageSwapEvent/viewTransition) */
readonly viewTransition: ViewTransition | null;
}

declare var PageSwapEvent: {
prototype: PageSwapEvent;
new(type: string, eventInitDict?: PageSwapEventInit): PageSwapEvent;
};

/**
* The PageTransitionEvent is fired when a document is being loaded or unloaded.
*
Expand Down Expand Up @@ -23726,6 +23824,7 @@ interface ViewTransition {
readonly finished: Promise<undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/ready) */
readonly ready: Promise<undefined>;
types: ViewTransitionTypeSet;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/updateCallbackDone) */
readonly updateCallbackDone: Promise<undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/skipTransition) */
Expand All @@ -23737,6 +23836,15 @@ declare var ViewTransition: {
new(): ViewTransition;
};

interface ViewTransitionTypeSet {
forEach(callbackfn: (value: string, key: string, parent: ViewTransitionTypeSet) => void, thisArg?: any): void;
}

declare var ViewTransitionTypeSet: {
prototype: ViewTransitionTypeSet;
new(): ViewTransitionTypeSet;
};

interface VisualViewportEventMap {
"resize": Event;
"scroll": Event;
Expand Down Expand Up @@ -29026,6 +29134,7 @@ type MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "se
type MediaSessionPlaybackState = "none" | "paused" | "playing";
type MediaStreamTrackState = "ended" | "live";
type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";
type NavigationType = "push" | "reload" | "replace" | "traverse";
type NotificationDirection = "auto" | "ltr" | "rtl";
type NotificationPermission = "default" | "denied" | "granted";
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
Expand Down
Loading

0 comments on commit 5db3e69

Please sign in to comment.