Skip to content

Commit d4a482f

Browse files
authored
Update bcd to 5.5.49 (microsoft#1792)
Co-authored-by: saschanaz <[email protected]>
1 parent 56333b3 commit d4a482f

File tree

4 files changed

+147
-14
lines changed

4 files changed

+147
-14
lines changed

baselines/dom.generated.d.ts

Lines changed: 67 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ interface AuthenticationExtensionsClientInputs {
135135
prf?: AuthenticationExtensionsPRFInputs;
136136
}
137137

138+
interface AuthenticationExtensionsClientInputsJSON {
139+
}
140+
138141
interface AuthenticationExtensionsClientOutputs {
139142
appid?: boolean;
140143
credProps?: CredentialPropertiesOutput;
@@ -1294,12 +1297,31 @@ interface PublicKeyCredentialCreationOptions {
12941297
user: PublicKeyCredentialUserEntity;
12951298
}
12961299

1300+
interface PublicKeyCredentialCreationOptionsJSON {
1301+
attestation?: string;
1302+
authenticatorSelection?: AuthenticatorSelectionCriteria;
1303+
challenge: Base64URLString;
1304+
excludeCredentials?: PublicKeyCredentialDescriptorJSON[];
1305+
extensions?: AuthenticationExtensionsClientInputsJSON;
1306+
hints?: string[];
1307+
pubKeyCredParams: PublicKeyCredentialParameters[];
1308+
rp: PublicKeyCredentialRpEntity;
1309+
timeout?: number;
1310+
user: PublicKeyCredentialUserEntityJSON;
1311+
}
1312+
12971313
interface PublicKeyCredentialDescriptor {
12981314
id: BufferSource;
12991315
transports?: AuthenticatorTransport[];
13001316
type: PublicKeyCredentialType;
13011317
}
13021318

1319+
interface PublicKeyCredentialDescriptorJSON {
1320+
id: Base64URLString;
1321+
transports?: string[];
1322+
type: string;
1323+
}
1324+
13031325
interface PublicKeyCredentialEntity {
13041326
name: string;
13051327
}
@@ -1318,6 +1340,16 @@ interface PublicKeyCredentialRequestOptions {
13181340
userVerification?: UserVerificationRequirement;
13191341
}
13201342

1343+
interface PublicKeyCredentialRequestOptionsJSON {
1344+
allowCredentials?: PublicKeyCredentialDescriptorJSON[];
1345+
challenge: Base64URLString;
1346+
extensions?: AuthenticationExtensionsClientInputsJSON;
1347+
hints?: string[];
1348+
rpId?: string;
1349+
timeout?: number;
1350+
userVerification?: string;
1351+
}
1352+
13211353
interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {
13221354
id?: string;
13231355
}
@@ -1327,6 +1359,12 @@ interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {
13271359
id: BufferSource;
13281360
}
13291361

1362+
interface PublicKeyCredentialUserEntityJSON {
1363+
displayName: string;
1364+
id: Base64URLString;
1365+
name: string;
1366+
}
1367+
13301368
interface PushSubscriptionJSON {
13311369
endpoint?: string;
13321370
expirationTime?: EpochTimeStamp | null;
@@ -3494,6 +3532,7 @@ declare var CSSKeyframeRule: {
34943532
interface CSSKeyframesRule extends CSSRule {
34953533
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/cssRules) */
34963534
readonly cssRules: CSSRuleList;
3535+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/length) */
34973536
readonly length: number;
34983537
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/name) */
34993538
name: string;
@@ -11108,11 +11147,23 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
1110811147
readonly validationMessage: string;
1110911148
/** Returns a ValidityState object that represents the validity states of an element. */
1111011149
readonly validity: ValidityState;
11111-
/** Returns the value of the data at the cursor's current position. */
11150+
/**
11151+
* Returns the value of the data at the cursor's current position.
11152+
*
11153+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/value)
11154+
*/
1111211155
value: string;
11113-
/** Returns a Date object representing the form control's value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn't date- or time-based. */
11156+
/**
11157+
* Returns a Date object representing the form control's value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn't date- or time-based.
11158+
*
11159+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/valueAsDate)
11160+
*/
1111411161
valueAsDate: Date | null;
11115-
/** Returns the input field value as a number. */
11162+
/**
11163+
* Returns the input field value as a number.
11164+
*
11165+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/valueAsNumber)
11166+
*/
1111611167
valueAsNumber: number;
1111711168
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitEntries) */
1111811169
readonly webkitEntries: ReadonlyArray<FileSystemEntry>;
@@ -14136,7 +14187,11 @@ declare var ImageBitmap: {
1413614187

1413714188
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext) */
1413814189
interface ImageBitmapRenderingContext {
14139-
/** Returns the canvas element that the context is bound to. */
14190+
/**
14191+
* Returns the canvas element that the context is bound to.
14192+
*
14193+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext/canvas)
14194+
*/
1414014195
readonly canvas: HTMLCanvasElement | OffscreenCanvas;
1414114196
/**
1414214197
* Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound.
@@ -17723,6 +17778,8 @@ interface PublicKeyCredential extends Credential {
1772317778
readonly response: AuthenticatorResponse;
1772417779
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/getClientExtensionResults) */
1772517780
getClientExtensionResults(): AuthenticationExtensionsClientOutputs;
17781+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/toJSON) */
17782+
toJSON(): PublicKeyCredentialJSON;
1772617783
}
1772717784

1772817785
declare var PublicKeyCredential: {
@@ -17732,6 +17789,10 @@ declare var PublicKeyCredential: {
1773217789
isConditionalMediationAvailable(): Promise<boolean>;
1773317790
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isUserVerifyingPlatformAuthenticatorAvailable_static) */
1773417791
isUserVerifyingPlatformAuthenticatorAvailable(): Promise<boolean>;
17792+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/parseCreationOptionsFromJSON_static) */
17793+
parseCreationOptionsFromJSON(options: PublicKeyCredentialCreationOptionsJSON): PublicKeyCredentialCreationOptions;
17794+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/parseRequestOptionsFromJSON_static) */
17795+
parseRequestOptionsFromJSON(options: PublicKeyCredentialRequestOptionsJSON): PublicKeyCredentialRequestOptions;
1773517796
};
1773617797

1773717798
/**
@@ -28139,6 +28200,7 @@ type AllowSharedBufferSource = ArrayBuffer | ArrayBufferView;
2813928200
type AutoFill = AutoFillBase | `${OptionalPrefixToken<AutoFillSection>}${OptionalPrefixToken<AutoFillAddressKind>}${AutoFillField}${OptionalPostfixToken<AutoFillCredentialField>}`;
2814028201
type AutoFillField = AutoFillNormalField | `${OptionalPrefixToken<AutoFillContactKind>}${AutoFillContactField}`;
2814128202
type AutoFillSection = `section-${string}`;
28203+
type Base64URLString = string;
2814228204
type BigInteger = Uint8Array;
2814328205
type BlobPart = BufferSource | Blob | string;
2814428206
type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
@@ -28191,6 +28253,7 @@ type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
2819128253
type OptionalPostfixToken<T extends string> = ` ${T}` | "";
2819228254
type OptionalPrefixToken<T extends string> = `${T} ` | "";
2819328255
type PerformanceEntryList = PerformanceEntry[];
28256+
type PublicKeyCredentialJSON = any;
2819428257
type RTCRtpTransform = RTCRtpScriptTransform;
2819528258
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
2819628259
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;

baselines/ts5.5/dom.generated.d.ts

Lines changed: 67 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ interface AuthenticationExtensionsClientInputs {
135135
prf?: AuthenticationExtensionsPRFInputs;
136136
}
137137

138+
interface AuthenticationExtensionsClientInputsJSON {
139+
}
140+
138141
interface AuthenticationExtensionsClientOutputs {
139142
appid?: boolean;
140143
credProps?: CredentialPropertiesOutput;
@@ -1294,12 +1297,31 @@ interface PublicKeyCredentialCreationOptions {
12941297
user: PublicKeyCredentialUserEntity;
12951298
}
12961299

1300+
interface PublicKeyCredentialCreationOptionsJSON {
1301+
attestation?: string;
1302+
authenticatorSelection?: AuthenticatorSelectionCriteria;
1303+
challenge: Base64URLString;
1304+
excludeCredentials?: PublicKeyCredentialDescriptorJSON[];
1305+
extensions?: AuthenticationExtensionsClientInputsJSON;
1306+
hints?: string[];
1307+
pubKeyCredParams: PublicKeyCredentialParameters[];
1308+
rp: PublicKeyCredentialRpEntity;
1309+
timeout?: number;
1310+
user: PublicKeyCredentialUserEntityJSON;
1311+
}
1312+
12971313
interface PublicKeyCredentialDescriptor {
12981314
id: BufferSource;
12991315
transports?: AuthenticatorTransport[];
13001316
type: PublicKeyCredentialType;
13011317
}
13021318

1319+
interface PublicKeyCredentialDescriptorJSON {
1320+
id: Base64URLString;
1321+
transports?: string[];
1322+
type: string;
1323+
}
1324+
13031325
interface PublicKeyCredentialEntity {
13041326
name: string;
13051327
}
@@ -1318,6 +1340,16 @@ interface PublicKeyCredentialRequestOptions {
13181340
userVerification?: UserVerificationRequirement;
13191341
}
13201342

1343+
interface PublicKeyCredentialRequestOptionsJSON {
1344+
allowCredentials?: PublicKeyCredentialDescriptorJSON[];
1345+
challenge: Base64URLString;
1346+
extensions?: AuthenticationExtensionsClientInputsJSON;
1347+
hints?: string[];
1348+
rpId?: string;
1349+
timeout?: number;
1350+
userVerification?: string;
1351+
}
1352+
13211353
interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {
13221354
id?: string;
13231355
}
@@ -1327,6 +1359,12 @@ interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {
13271359
id: BufferSource;
13281360
}
13291361

1362+
interface PublicKeyCredentialUserEntityJSON {
1363+
displayName: string;
1364+
id: Base64URLString;
1365+
name: string;
1366+
}
1367+
13301368
interface PushSubscriptionJSON {
13311369
endpoint?: string;
13321370
expirationTime?: EpochTimeStamp | null;
@@ -3494,6 +3532,7 @@ declare var CSSKeyframeRule: {
34943532
interface CSSKeyframesRule extends CSSRule {
34953533
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/cssRules) */
34963534
readonly cssRules: CSSRuleList;
3535+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/length) */
34973536
readonly length: number;
34983537
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/name) */
34993538
name: string;
@@ -11108,11 +11147,23 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
1110811147
readonly validationMessage: string;
1110911148
/** Returns a ValidityState object that represents the validity states of an element. */
1111011149
readonly validity: ValidityState;
11111-
/** Returns the value of the data at the cursor's current position. */
11150+
/**
11151+
* Returns the value of the data at the cursor's current position.
11152+
*
11153+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/value)
11154+
*/
1111211155
value: string;
11113-
/** Returns a Date object representing the form control's value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn't date- or time-based. */
11156+
/**
11157+
* Returns a Date object representing the form control's value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn't date- or time-based.
11158+
*
11159+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/valueAsDate)
11160+
*/
1111411161
valueAsDate: Date | null;
11115-
/** Returns the input field value as a number. */
11162+
/**
11163+
* Returns the input field value as a number.
11164+
*
11165+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/valueAsNumber)
11166+
*/
1111611167
valueAsNumber: number;
1111711168
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitEntries) */
1111811169
readonly webkitEntries: ReadonlyArray<FileSystemEntry>;
@@ -14136,7 +14187,11 @@ declare var ImageBitmap: {
1413614187

1413714188
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext) */
1413814189
interface ImageBitmapRenderingContext {
14139-
/** Returns the canvas element that the context is bound to. */
14190+
/**
14191+
* Returns the canvas element that the context is bound to.
14192+
*
14193+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext/canvas)
14194+
*/
1414014195
readonly canvas: HTMLCanvasElement | OffscreenCanvas;
1414114196
/**
1414214197
* Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound.
@@ -17723,6 +17778,8 @@ interface PublicKeyCredential extends Credential {
1772317778
readonly response: AuthenticatorResponse;
1772417779
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/getClientExtensionResults) */
1772517780
getClientExtensionResults(): AuthenticationExtensionsClientOutputs;
17781+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/toJSON) */
17782+
toJSON(): PublicKeyCredentialJSON;
1772617783
}
1772717784

1772817785
declare var PublicKeyCredential: {
@@ -17732,6 +17789,10 @@ declare var PublicKeyCredential: {
1773217789
isConditionalMediationAvailable(): Promise<boolean>;
1773317790
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isUserVerifyingPlatformAuthenticatorAvailable_static) */
1773417791
isUserVerifyingPlatformAuthenticatorAvailable(): Promise<boolean>;
17792+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/parseCreationOptionsFromJSON_static) */
17793+
parseCreationOptionsFromJSON(options: PublicKeyCredentialCreationOptionsJSON): PublicKeyCredentialCreationOptions;
17794+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/parseRequestOptionsFromJSON_static) */
17795+
parseRequestOptionsFromJSON(options: PublicKeyCredentialRequestOptionsJSON): PublicKeyCredentialRequestOptions;
1773517796
};
1773617797

1773717798
/**
@@ -28139,6 +28200,7 @@ type AllowSharedBufferSource = ArrayBuffer | ArrayBufferView;
2813928200
type AutoFill = AutoFillBase | `${OptionalPrefixToken<AutoFillSection>}${OptionalPrefixToken<AutoFillAddressKind>}${AutoFillField}${OptionalPostfixToken<AutoFillCredentialField>}`;
2814028201
type AutoFillField = AutoFillNormalField | `${OptionalPrefixToken<AutoFillContactKind>}${AutoFillContactField}`;
2814128202
type AutoFillSection = `section-${string}`;
28203+
type Base64URLString = string;
2814228204
type BigInteger = Uint8Array;
2814328205
type BlobPart = BufferSource | Blob | string;
2814428206
type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
@@ -28191,6 +28253,7 @@ type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
2819128253
type OptionalPostfixToken<T extends string> = ` ${T}` | "";
2819228254
type OptionalPrefixToken<T extends string> = `${T} ` | "";
2819328255
type PerformanceEntryList = PerformanceEntry[];
28256+
type PublicKeyCredentialJSON = any;
2819428257
type RTCRtpTransform = RTCRtpScriptTransform;
2819528258
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
2819628259
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;

inputfiles/removedTypes.jsonc

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -563,15 +563,22 @@
563563
"PublicKeyCredentialCreationOptions": {
564564
"members": {
565565
"member": {
566-
"attestationFormats": null, // No implementation as of 2023-09
567-
"hints": null // No implementation as of 2023-09
566+
"attestationFormats": null, // Blink only as of 2024-08
567+
"hints": null // Blink only as of 2024-08
568+
}
569+
}
570+
},
571+
"PublicKeyCredentialCreationOptionsJSON": {
572+
"members": {
573+
"member": {
574+
"attestationFormats": null // Gecko only as of 2024-08
568575
}
569576
}
570577
},
571578
"PublicKeyCredentialRequestOptions": {
572579
"members": {
573580
"member": {
574-
"hints": null // // No implementation as of 2023-09
581+
"hints": null // Blink only as of 2024-08
575582
}
576583
}
577584
},

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)