From ba2588f76a1314e9c6f6e93f1c430b60d7a8bf7a Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Sun, 1 Mar 2026 11:33:04 +0100 Subject: [PATCH] Manually update to bcd@7.3.5 --- baselines/dom.generated.d.ts | 182 ++++++++++++++++++- baselines/serviceworker.generated.d.ts | 112 ++++++++++++ baselines/sharedworker.generated.d.ts | 112 ++++++++++++ baselines/ts5.5/dom.generated.d.ts | 182 ++++++++++++++++++- baselines/ts5.5/serviceworker.generated.d.ts | 112 ++++++++++++ baselines/ts5.5/sharedworker.generated.d.ts | 112 ++++++++++++ baselines/ts5.5/webworker.generated.d.ts | 112 ++++++++++++ baselines/ts5.6/dom.generated.d.ts | 182 ++++++++++++++++++- baselines/ts5.6/serviceworker.generated.d.ts | 112 ++++++++++++ baselines/ts5.6/sharedworker.generated.d.ts | 112 ++++++++++++ baselines/ts5.6/webworker.generated.d.ts | 112 ++++++++++++ baselines/ts5.9/dom.generated.d.ts | 182 ++++++++++++++++++- baselines/ts5.9/serviceworker.generated.d.ts | 112 ++++++++++++ baselines/ts5.9/sharedworker.generated.d.ts | 112 ++++++++++++ baselines/ts5.9/webworker.generated.d.ts | 112 ++++++++++++ baselines/webworker.generated.d.ts | 112 ++++++++++++ inputfiles/patches/webtransport.kdl | 22 +++ package-lock.json | 24 +-- src/build/patches.ts | 5 +- 19 files changed, 2101 insertions(+), 22 deletions(-) diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index d66787925..d693a3cd6 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -408,6 +408,10 @@ interface CloseEventInit extends EventInit { wasClean?: boolean; } +interface CloseWatcherOptions { + signal?: AbortSignal; +} + interface CommandEventInit extends EventInit { command?: string; source?: Element | null; @@ -3118,6 +3122,23 @@ interface WebTransportCloseInfo { reason?: string; } +interface WebTransportConnectionStats { + bytesReceived?: number; + datagrams: WebTransportDatagramStats; + minRtt?: DOMHighResTimeStamp; + packetsLost?: number; + packetsReceived?: number; + packetsSent?: number; + rttVariation?: DOMHighResTimeStamp; + smoothedRtt?: DOMHighResTimeStamp; +} + +interface WebTransportDatagramStats { + droppedIncoming?: number; + expiredOutgoing?: number; + lostOutgoing?: number; +} + interface WebTransportErrorOptions { source?: WebTransportErrorSource; streamErrorCode?: number | null; @@ -3136,6 +3157,11 @@ interface WebTransportOptions { serverCertificateHashes?: WebTransportHash[]; } +interface WebTransportReceiveStreamStats { + bytesRead?: number; + bytesReceived?: number; +} + interface WebTransportSendOptions { sendOrder?: number; } @@ -3143,6 +3169,12 @@ interface WebTransportSendOptions { interface WebTransportSendStreamOptions extends WebTransportSendOptions { } +interface WebTransportSendStreamStats { + bytesAcknowledged?: number; + bytesSent?: number; + bytesWritten?: number; +} + interface WheelEventInit extends MouseEventInit { deltaMode?: number; deltaX?: number; @@ -6815,7 +6847,11 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/background-size) */ backgroundSize: string; - /** The baseline-shift CSS property repositions the dominant-baseline of a text element relative to the dominant-baseline of its parent text content element. The shifted element might be a sub- or superscript. If the property is present, the value overrides the element's baseline-shift attribute. */ + /** + * The baseline-shift CSS property repositions the dominant-baseline of a text element relative to the dominant-baseline of its parent text content element. The shifted element might be a sub- or superscript. If the property is present, the value overrides the element's baseline-shift attribute. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/baseline-shift) + */ baselineShift: string; /** * The baseline-source CSS property defines which baseline to use when inline-level boxes have multiple possible baselines, such as multi-line inline blocks or inline flex containers. The values allow for choosing between aligning to the box's first baseline, last baseline, or letting the browser decide automatically based on the box type. @@ -10793,6 +10829,50 @@ declare var CloseEvent: { new(type: string, eventInitDict?: CloseEventInit): CloseEvent; }; +interface CloseWatcherEventMap { + "cancel": Event; + "close": Event; +} + +/** + * The **`CloseWatcher`** interface allows a custom UI component with open and close semantics to respond to device-specific close actions in the same way as a built-in component. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseWatcher) + */ +interface CloseWatcher extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseWatcher/cancel_event) */ + oncancel: ((this: CloseWatcher, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseWatcher/close_event) */ + onclose: ((this: CloseWatcher, ev: Event) => any) | null; + /** + * The **`close()`** method of the CloseWatcher interface lets you skip any logic in the cancel event handler and immediately fire the close event. It then deactivates the close watcher as if destroy() was called. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseWatcher/close) + */ + close(): void; + /** + * The **`destroy()`** method of the CloseWatcher interface deactivates the close watcher. This is intended to be called if the relevant UI element is torn down in some other way than being closed. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseWatcher/destroy) + */ + destroy(): void; + /** + * The **`requestClose()`** method of the CloseWatcher interface fires a cancel event and if that event is not canceled with Event.preventDefault(), proceeds to fire a close event, and then finally deactivates the close watcher as if destroy() was called. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseWatcher/requestClose) + */ + requestClose(): void; + addEventListener(type: K, listener: (this: CloseWatcher, ev: CloseWatcherEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: CloseWatcher, ev: CloseWatcherEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var CloseWatcher: { + prototype: CloseWatcher; + new(options?: CloseWatcherOptions): CloseWatcher; +}; + /** * The **`CommandEvent`** interface represents an event notifying the user when a button element with valid commandForElement and command attributes is about to invoke an interactive element. * @@ -11231,6 +11311,7 @@ interface CustomElementRegistry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/getName) */ getName(constructor: CustomElementConstructor): string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/initialize) */ initialize(root: Node): void; /** * The **`upgrade()`** method of the CustomElementRegistry interface upgrades all shadow-containing custom elements in a Node subtree, even before they are connected to the main document. @@ -13229,6 +13310,7 @@ interface DocumentOrShadowRoot { readonly activeElement: Element | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptedStyleSheets) */ adoptedStyleSheets: CSSStyleSheet[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/customElementRegistry) */ readonly customElementRegistry: CustomElementRegistry | null; /** * Returns document's fullscreen element. @@ -13539,6 +13621,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/currentCSSZoom) */ readonly currentCSSZoom: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/customElementRegistry) */ readonly customElementRegistry: CustomElementRegistry | null; /** * The **`id`** property of the Element interface represents the element's identifier, reflecting the id global attribute. @@ -18763,6 +18846,12 @@ interface HTMLInputElement extends HTMLElement, PopoverTargetAttributes { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/checked) */ checked: boolean; + /** + * The **`colorSpace`** property of the HTMLInputElement interface reflects the element's colorspace attribute, which indicates whether the color space of the serialized CSS color is sRGB (the default) or display-p3. It is only relevant to color controls. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/colorSpace) + */ + colorSpace: string; /** * The **`defaultChecked`** property of the HTMLInputElement interface specifies the default checkedness state of the element. This property reflects the element's checked attribute. * @@ -19567,6 +19656,12 @@ interface HTMLMediaElement extends HTMLElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canPlayType) */ canPlayType(type: string): CanPlayTypeResult; + /** + * The **`captureStream()`** method of the HTMLMediaElement interface returns a MediaStream object which is streaming a real-time capture of the content being rendered in the media element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/captureStream) + */ + captureStream(): MediaStream; /** * The **`HTMLMediaElement.fastSeek()`** method quickly seeks the media to the new time with precision tradeoff. * @@ -21304,6 +21399,7 @@ interface HTMLTemplateElement extends HTMLElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootClonable) */ shadowRootClonable: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootCustomElementRegistry) */ shadowRootCustomElementRegistry: string; /** * The **`shadowRootDelegatesFocus`** property of the HTMLTemplateElement interface reflects the value of the shadowrootdelegatesfocus attribute of the associated