Skip to content

Manually update to [email protected] #1785

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
155 changes: 151 additions & 4 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,19 @@ interface AddEventListenerOptions extends EventListenerOptions {
signal?: AbortSignal;
}

interface AddressErrors {
addressLine?: string;
city?: string;
country?: string;
dependentLocality?: string;
organization?: string;
phone?: string;
postalCode?: string;
recipient?: string;
region?: string;
sortingCode?: string;
}

interface AesCbcParams extends Algorithm {
iv: BufferSource;
}
Expand Down Expand Up @@ -1091,6 +1104,12 @@ interface PannerOptions extends AudioNodeOptions {
rolloffFactor?: number;
}

interface PayerErrors {
email?: string;
name?: string;
phone?: string;
}

interface PaymentCurrencyAmount {
currency: string;
value: string;
Expand All @@ -1099,6 +1118,7 @@ interface PaymentCurrencyAmount {
interface PaymentDetailsBase {
displayItems?: PaymentItem[];
modifiers?: PaymentDetailsModifier[];
shippingOptions?: PaymentShippingOption[];
}

interface PaymentDetailsInit extends PaymentDetailsBase {
Expand All @@ -1114,7 +1134,9 @@ interface PaymentDetailsModifier {
}

interface PaymentDetailsUpdate extends PaymentDetailsBase {
error?: string;
paymentMethodErrors?: any;
shippingAddressErrors?: AddressErrors;
total?: PaymentItem;
}

Expand All @@ -1134,12 +1156,28 @@ interface PaymentMethodData {
supportedMethods: string;
}

interface PaymentOptions {
requestPayerEmail?: boolean;
requestPayerName?: boolean;
requestPayerPhone?: boolean;
requestShipping?: boolean;
shippingType?: PaymentShippingType;
}

interface PaymentRequestUpdateEventInit extends EventInit {
}

interface PaymentShippingOption {
amount: PaymentCurrencyAmount;
id: string;
label: string;
selected?: boolean;
}

interface PaymentValidationErrors {
error?: string;
paymentMethod?: any;
payer?: PayerErrors;
shippingAddress?: AddressErrors;
}

interface Pbkdf2Params extends Algorithm {
Expand Down Expand Up @@ -1189,6 +1227,8 @@ interface PlaneLayout {
}

interface PointerEventInit extends MouseEventInit {
altitudeAngle?: number;
azimuthAngle?: number;
coalescedEvents?: PointerEvent[];
height?: number;
isPrimary?: boolean;
Expand Down Expand Up @@ -8720,7 +8760,7 @@ interface FontFace {

declare var FontFace: {
prototype: FontFace;
new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;
new(family: string, source: string | BufferSource, descriptors?: FontFaceDescriptors): FontFace;
};

interface FontFaceSetEventMap {
Expand Down Expand Up @@ -16731,6 +16771,37 @@ declare var Path2D: {
new(path?: Path2D | string): Path2D;
};

/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress) */
interface PaymentAddress {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/addressLine) */
readonly addressLine: ReadonlyArray<string>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/city) */
readonly city: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/country) */
readonly country: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/dependentLocality) */
readonly dependentLocality: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/organization) */
readonly organization: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/phone) */
readonly phone: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/postalCode) */
readonly postalCode: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/recipient) */
readonly recipient: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/region) */
readonly region: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/sortingCode) */
readonly sortingCode: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/toJSON) */
toJSON(): any;
}

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

/**
* Available only in secure contexts.
*
Expand All @@ -16750,6 +16821,8 @@ declare var PaymentMethodChangeEvent: {

interface PaymentRequestEventMap {
"paymentmethodchange": Event;
"shippingaddresschange": Event;
"shippingoptionchange": Event;
}

/**
Expand All @@ -16763,6 +16836,36 @@ interface PaymentRequest extends EventTarget {
readonly id: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/paymentmethodchange_event) */
onpaymentmethodchange: ((this: PaymentRequest, ev: Event) => any) | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingaddresschange_event)
*/
onshippingaddresschange: ((this: PaymentRequest, ev: Event) => any) | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingoptionchange_event)
*/
onshippingoptionchange: ((this: PaymentRequest, ev: Event) => any) | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingAddress)
*/
readonly shippingAddress: PaymentAddress | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingOption)
*/
readonly shippingOption: string | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingType)
*/
readonly shippingType: PaymentShippingType | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/abort) */
abort(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/canMakePayment) */
Expand All @@ -16777,7 +16880,7 @@ interface PaymentRequest extends EventTarget {

declare var PaymentRequest: {
prototype: PaymentRequest;
new(methodData: PaymentMethodData[], details: PaymentDetailsInit): PaymentRequest;
new(methodData: PaymentMethodData[], details: PaymentDetailsInit, options?: PaymentOptions): PaymentRequest;
};

/**
Expand All @@ -16796,6 +16899,10 @@ declare var PaymentRequestUpdateEvent: {
new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent;
};

interface PaymentResponseEventMap {
"payerdetailchange": Event;
}

/**
* This Payment Request API interface is returned after a user selects a payment method and approves a payment request.
* Available only in secure contexts.
Expand All @@ -16807,14 +16914,54 @@ interface PaymentResponse extends EventTarget {
readonly details: any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/methodName) */
readonly methodName: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerdetailchange_event)
*/
onpayerdetailchange: ((this: PaymentResponse, ev: Event) => any) | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerEmail)
*/
readonly payerEmail: string | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerName)
*/
readonly payerName: string | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerPhone)
*/
readonly payerPhone: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/requestId) */
readonly requestId: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/shippingAddress)
*/
readonly shippingAddress: PaymentAddress | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/shippingOption)
*/
readonly shippingOption: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/complete) */
complete(result?: PaymentComplete): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/retry) */
retry(errorFields?: PaymentValidationErrors): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/toJSON) */
toJSON(): any;
addEventListener<K extends keyof PaymentResponseEventMap>(type: K, listener: (this: PaymentResponse, ev: PaymentResponseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PaymentResponseEventMap>(type: K, listener: (this: PaymentResponse, ev: PaymentResponseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var PaymentResponse: {
Expand Down Expand Up @@ -27985,7 +28132,6 @@ type AutoFill = AutoFillBase | `${OptionalPrefixToken<AutoFillSection>}${Optiona
type AutoFillField = AutoFillNormalField | `${OptionalPrefixToken<AutoFillContactKind>}${AutoFillContactField}`;
type AutoFillSection = `section-${string}`;
type BigInteger = Uint8Array;
type BinaryData = ArrayBuffer | ArrayBufferView;
type BlobPart = BufferSource | Blob | string;
type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
type BufferSource = ArrayBufferView | ArrayBuffer;
Expand Down Expand Up @@ -28154,6 +28300,7 @@ type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";
type OverSampleType = "2x" | "4x" | "none";
type PanningModelType = "HRTF" | "equalpower";
type PaymentComplete = "fail" | "success" | "unknown";
type PaymentShippingType = "delivery" | "pickup" | "shipping";
type PermissionName = "geolocation" | "midi" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "storage-access";
type PermissionState = "denied" | "granted" | "prompt";
type PlaybackDirection = "alternate" | "alternate-reverse" | "normal" | "reverse";
Expand Down
3 changes: 1 addition & 2 deletions baselines/serviceworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2712,7 +2712,7 @@ interface FontFace {

declare var FontFace: {
prototype: FontFace;
new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;
new(family: string, source: string | BufferSource, descriptors?: FontFaceDescriptors): FontFace;
};

interface FontFaceSetEventMap {
Expand Down Expand Up @@ -8557,7 +8557,6 @@ declare function removeEventListener(type: string, listener: EventListenerOrEven
type AlgorithmIdentifier = Algorithm | string;
type AllowSharedBufferSource = ArrayBuffer | ArrayBufferView;
type BigInteger = Uint8Array;
type BinaryData = ArrayBuffer | ArrayBufferView;
type BlobPart = BufferSource | Blob | string;
type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
type BufferSource = ArrayBufferView | ArrayBuffer;
Expand Down
3 changes: 1 addition & 2 deletions baselines/sharedworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2601,7 +2601,7 @@ interface FontFace {

declare var FontFace: {
prototype: FontFace;
new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;
new(family: string, source: string | BufferSource, descriptors?: FontFaceDescriptors): FontFace;
};

interface FontFaceSetEventMap {
Expand Down Expand Up @@ -8561,7 +8561,6 @@ declare function removeEventListener(type: string, listener: EventListenerOrEven
type AlgorithmIdentifier = Algorithm | string;
type AllowSharedBufferSource = ArrayBuffer | ArrayBufferView;
type BigInteger = Uint8Array;
type BinaryData = ArrayBuffer | ArrayBufferView;
type BlobPart = BufferSource | Blob | string;
type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
type BufferSource = ArrayBufferView | ArrayBuffer;
Expand Down
Loading
Loading