Co-authored-by: saschanaz <saschanaz@users.noreply.github.com>
This commit is contained in:
Kagami Sascha Rosylight 2024-08-28 11:32:06 +02:00 коммит произвёл GitHub
Родитель 56333b3888
Коммит d4a482f95b
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
4 изменённых файлов: 147 добавлений и 14 удалений

71
baselines/dom.generated.d.ts поставляемый
Просмотреть файл

@ -135,6 +135,9 @@ interface AuthenticationExtensionsClientInputs {
prf?: AuthenticationExtensionsPRFInputs;
}
interface AuthenticationExtensionsClientInputsJSON {
}
interface AuthenticationExtensionsClientOutputs {
appid?: boolean;
credProps?: CredentialPropertiesOutput;
@ -1294,12 +1297,31 @@ interface PublicKeyCredentialCreationOptions {
user: PublicKeyCredentialUserEntity;
}
interface PublicKeyCredentialCreationOptionsJSON {
attestation?: string;
authenticatorSelection?: AuthenticatorSelectionCriteria;
challenge: Base64URLString;
excludeCredentials?: PublicKeyCredentialDescriptorJSON[];
extensions?: AuthenticationExtensionsClientInputsJSON;
hints?: string[];
pubKeyCredParams: PublicKeyCredentialParameters[];
rp: PublicKeyCredentialRpEntity;
timeout?: number;
user: PublicKeyCredentialUserEntityJSON;
}
interface PublicKeyCredentialDescriptor {
id: BufferSource;
transports?: AuthenticatorTransport[];
type: PublicKeyCredentialType;
}
interface PublicKeyCredentialDescriptorJSON {
id: Base64URLString;
transports?: string[];
type: string;
}
interface PublicKeyCredentialEntity {
name: string;
}
@ -1318,6 +1340,16 @@ interface PublicKeyCredentialRequestOptions {
userVerification?: UserVerificationRequirement;
}
interface PublicKeyCredentialRequestOptionsJSON {
allowCredentials?: PublicKeyCredentialDescriptorJSON[];
challenge: Base64URLString;
extensions?: AuthenticationExtensionsClientInputsJSON;
hints?: string[];
rpId?: string;
timeout?: number;
userVerification?: string;
}
interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {
id?: string;
}
@ -1327,6 +1359,12 @@ interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {
id: BufferSource;
}
interface PublicKeyCredentialUserEntityJSON {
displayName: string;
id: Base64URLString;
name: string;
}
interface PushSubscriptionJSON {
endpoint?: string;
expirationTime?: EpochTimeStamp | null;
@ -3494,6 +3532,7 @@ declare var CSSKeyframeRule: {
interface CSSKeyframesRule extends CSSRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/cssRules) */
readonly cssRules: CSSRuleList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/name) */
name: string;
@ -11108,11 +11147,23 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
readonly validationMessage: string;
/** Returns a ValidityState object that represents the validity states of an element. */
readonly validity: ValidityState;
/** Returns the value of the data at the cursor's current position. */
/**
* Returns the value of the data at the cursor's current position.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/value)
*/
value: string;
/** 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. */
/**
* 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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/valueAsDate)
*/
valueAsDate: Date | null;
/** Returns the input field value as a number. */
/**
* Returns the input field value as a number.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/valueAsNumber)
*/
valueAsNumber: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitEntries) */
readonly webkitEntries: ReadonlyArray<FileSystemEntry>;
@ -14136,7 +14187,11 @@ declare var ImageBitmap: {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext) */
interface ImageBitmapRenderingContext {
/** Returns the canvas element that the context is bound to. */
/**
* Returns the canvas element that the context is bound to.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext/canvas)
*/
readonly canvas: HTMLCanvasElement | OffscreenCanvas;
/**
* 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 {
readonly response: AuthenticatorResponse;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/getClientExtensionResults) */
getClientExtensionResults(): AuthenticationExtensionsClientOutputs;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/toJSON) */
toJSON(): PublicKeyCredentialJSON;
}
declare var PublicKeyCredential: {
@ -17732,6 +17789,10 @@ declare var PublicKeyCredential: {
isConditionalMediationAvailable(): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isUserVerifyingPlatformAuthenticatorAvailable_static) */
isUserVerifyingPlatformAuthenticatorAvailable(): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/parseCreationOptionsFromJSON_static) */
parseCreationOptionsFromJSON(options: PublicKeyCredentialCreationOptionsJSON): PublicKeyCredentialCreationOptions;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/parseRequestOptionsFromJSON_static) */
parseRequestOptionsFromJSON(options: PublicKeyCredentialRequestOptionsJSON): PublicKeyCredentialRequestOptions;
};
/**
@ -28139,6 +28200,7 @@ type AllowSharedBufferSource = ArrayBuffer | ArrayBufferView;
type AutoFill = AutoFillBase | `${OptionalPrefixToken<AutoFillSection>}${OptionalPrefixToken<AutoFillAddressKind>}${AutoFillField}${OptionalPostfixToken<AutoFillCredentialField>}`;
type AutoFillField = AutoFillNormalField | `${OptionalPrefixToken<AutoFillContactKind>}${AutoFillContactField}`;
type AutoFillSection = `section-${string}`;
type Base64URLString = string;
type BigInteger = Uint8Array;
type BlobPart = BufferSource | Blob | string;
type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
@ -28191,6 +28253,7 @@ type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
type OptionalPostfixToken<T extends string> = ` ${T}` | "";
type OptionalPrefixToken<T extends string> = `${T} ` | "";
type PerformanceEntryList = PerformanceEntry[];
type PublicKeyCredentialJSON = any;
type RTCRtpTransform = RTCRtpScriptTransform;
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;

71
baselines/ts5.5/dom.generated.d.ts поставляемый
Просмотреть файл

@ -135,6 +135,9 @@ interface AuthenticationExtensionsClientInputs {
prf?: AuthenticationExtensionsPRFInputs;
}
interface AuthenticationExtensionsClientInputsJSON {
}
interface AuthenticationExtensionsClientOutputs {
appid?: boolean;
credProps?: CredentialPropertiesOutput;
@ -1294,12 +1297,31 @@ interface PublicKeyCredentialCreationOptions {
user: PublicKeyCredentialUserEntity;
}
interface PublicKeyCredentialCreationOptionsJSON {
attestation?: string;
authenticatorSelection?: AuthenticatorSelectionCriteria;
challenge: Base64URLString;
excludeCredentials?: PublicKeyCredentialDescriptorJSON[];
extensions?: AuthenticationExtensionsClientInputsJSON;
hints?: string[];
pubKeyCredParams: PublicKeyCredentialParameters[];
rp: PublicKeyCredentialRpEntity;
timeout?: number;
user: PublicKeyCredentialUserEntityJSON;
}
interface PublicKeyCredentialDescriptor {
id: BufferSource;
transports?: AuthenticatorTransport[];
type: PublicKeyCredentialType;
}
interface PublicKeyCredentialDescriptorJSON {
id: Base64URLString;
transports?: string[];
type: string;
}
interface PublicKeyCredentialEntity {
name: string;
}
@ -1318,6 +1340,16 @@ interface PublicKeyCredentialRequestOptions {
userVerification?: UserVerificationRequirement;
}
interface PublicKeyCredentialRequestOptionsJSON {
allowCredentials?: PublicKeyCredentialDescriptorJSON[];
challenge: Base64URLString;
extensions?: AuthenticationExtensionsClientInputsJSON;
hints?: string[];
rpId?: string;
timeout?: number;
userVerification?: string;
}
interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {
id?: string;
}
@ -1327,6 +1359,12 @@ interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {
id: BufferSource;
}
interface PublicKeyCredentialUserEntityJSON {
displayName: string;
id: Base64URLString;
name: string;
}
interface PushSubscriptionJSON {
endpoint?: string;
expirationTime?: EpochTimeStamp | null;
@ -3494,6 +3532,7 @@ declare var CSSKeyframeRule: {
interface CSSKeyframesRule extends CSSRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/cssRules) */
readonly cssRules: CSSRuleList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/name) */
name: string;
@ -11108,11 +11147,23 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
readonly validationMessage: string;
/** Returns a ValidityState object that represents the validity states of an element. */
readonly validity: ValidityState;
/** Returns the value of the data at the cursor's current position. */
/**
* Returns the value of the data at the cursor's current position.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/value)
*/
value: string;
/** 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. */
/**
* 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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/valueAsDate)
*/
valueAsDate: Date | null;
/** Returns the input field value as a number. */
/**
* Returns the input field value as a number.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/valueAsNumber)
*/
valueAsNumber: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitEntries) */
readonly webkitEntries: ReadonlyArray<FileSystemEntry>;
@ -14136,7 +14187,11 @@ declare var ImageBitmap: {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext) */
interface ImageBitmapRenderingContext {
/** Returns the canvas element that the context is bound to. */
/**
* Returns the canvas element that the context is bound to.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext/canvas)
*/
readonly canvas: HTMLCanvasElement | OffscreenCanvas;
/**
* 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 {
readonly response: AuthenticatorResponse;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/getClientExtensionResults) */
getClientExtensionResults(): AuthenticationExtensionsClientOutputs;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/toJSON) */
toJSON(): PublicKeyCredentialJSON;
}
declare var PublicKeyCredential: {
@ -17732,6 +17789,10 @@ declare var PublicKeyCredential: {
isConditionalMediationAvailable(): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isUserVerifyingPlatformAuthenticatorAvailable_static) */
isUserVerifyingPlatformAuthenticatorAvailable(): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/parseCreationOptionsFromJSON_static) */
parseCreationOptionsFromJSON(options: PublicKeyCredentialCreationOptionsJSON): PublicKeyCredentialCreationOptions;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/parseRequestOptionsFromJSON_static) */
parseRequestOptionsFromJSON(options: PublicKeyCredentialRequestOptionsJSON): PublicKeyCredentialRequestOptions;
};
/**
@ -28139,6 +28200,7 @@ type AllowSharedBufferSource = ArrayBuffer | ArrayBufferView;
type AutoFill = AutoFillBase | `${OptionalPrefixToken<AutoFillSection>}${OptionalPrefixToken<AutoFillAddressKind>}${AutoFillField}${OptionalPostfixToken<AutoFillCredentialField>}`;
type AutoFillField = AutoFillNormalField | `${OptionalPrefixToken<AutoFillContactKind>}${AutoFillContactField}`;
type AutoFillSection = `section-${string}`;
type Base64URLString = string;
type BigInteger = Uint8Array;
type BlobPart = BufferSource | Blob | string;
type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
@ -28191,6 +28253,7 @@ type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
type OptionalPostfixToken<T extends string> = ` ${T}` | "";
type OptionalPrefixToken<T extends string> = `${T} ` | "";
type PerformanceEntryList = PerformanceEntry[];
type PublicKeyCredentialJSON = any;
type RTCRtpTransform = RTCRtpScriptTransform;
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;

Просмотреть файл

@ -563,15 +563,22 @@
"PublicKeyCredentialCreationOptions": {
"members": {
"member": {
"attestationFormats": null, // No implementation as of 2023-09
"hints": null // No implementation as of 2023-09
"attestationFormats": null, // Blink only as of 2024-08
"hints": null // Blink only as of 2024-08
}
}
},
"PublicKeyCredentialCreationOptionsJSON": {
"members": {
"member": {
"attestationFormats": null // Gecko only as of 2024-08
}
}
},
"PublicKeyCredentialRequestOptions": {
"members": {
"member": {
"hints": null // // No implementation as of 2023-09
"hints": null // Blink only as of 2024-08
}
}
},

6
package-lock.json сгенерированный
Просмотреть файл

@ -276,9 +276,9 @@
}
},
"node_modules/@mdn/browser-compat-data": {
"version": "5.5.47",
"resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-5.5.47.tgz",
"integrity": "sha512-M/lmqoDgbKz0LP9K5mjqzNWpbTDmgBeGsh5A+o9KcJuI3KbJ/PCiXFs7XKR1nabQxwYtcHpl9Bn0OGUnijcXiw==",
"version": "5.5.49",
"resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-5.5.49.tgz",
"integrity": "sha512-FNYbYIA8WEff/+A8iMGstZhArpgy5ZxZ9uQRsBQ+qXsiKTYn3WjxpCmJRw3CFUOqFlQSZDkC3v1y3BijRnE1Pg==",
"dev": true,
"license": "CC0-1.0"
},