@types/web 0.0.154 → 0.0.156

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -47,4 +47,4 @@ Prior to `@types/web` the web APIs were deployed with a version of TypeScript, a
47
47
 
48
48
  ## Deploy Metadata
49
49
 
50
- You can read what changed in version 0.0.154 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.154.
50
+ You can read what changed in version 0.0.156 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.156.
package/index.d.ts CHANGED
@@ -10,6 +10,19 @@ interface AddEventListenerOptions extends EventListenerOptions {
10
10
  signal?: AbortSignal;
11
11
  }
12
12
 
13
+ interface AddressErrors {
14
+ addressLine?: string;
15
+ city?: string;
16
+ country?: string;
17
+ dependentLocality?: string;
18
+ organization?: string;
19
+ phone?: string;
20
+ postalCode?: string;
21
+ recipient?: string;
22
+ region?: string;
23
+ sortingCode?: string;
24
+ }
25
+
13
26
  interface AesCbcParams extends Algorithm {
14
27
  iv: BufferSource;
15
28
  }
@@ -1093,6 +1106,12 @@ interface PannerOptions extends AudioNodeOptions {
1093
1106
  rolloffFactor?: number;
1094
1107
  }
1095
1108
 
1109
+ interface PayerErrors {
1110
+ email?: string;
1111
+ name?: string;
1112
+ phone?: string;
1113
+ }
1114
+
1096
1115
  interface PaymentCurrencyAmount {
1097
1116
  currency: string;
1098
1117
  value: string;
@@ -1101,6 +1120,7 @@ interface PaymentCurrencyAmount {
1101
1120
  interface PaymentDetailsBase {
1102
1121
  displayItems?: PaymentItem[];
1103
1122
  modifiers?: PaymentDetailsModifier[];
1123
+ shippingOptions?: PaymentShippingOption[];
1104
1124
  }
1105
1125
 
1106
1126
  interface PaymentDetailsInit extends PaymentDetailsBase {
@@ -1116,7 +1136,9 @@ interface PaymentDetailsModifier {
1116
1136
  }
1117
1137
 
1118
1138
  interface PaymentDetailsUpdate extends PaymentDetailsBase {
1139
+ error?: string;
1119
1140
  paymentMethodErrors?: any;
1141
+ shippingAddressErrors?: AddressErrors;
1120
1142
  total?: PaymentItem;
1121
1143
  }
1122
1144
 
@@ -1136,12 +1158,28 @@ interface PaymentMethodData {
1136
1158
  supportedMethods: string;
1137
1159
  }
1138
1160
 
1161
+ interface PaymentOptions {
1162
+ requestPayerEmail?: boolean;
1163
+ requestPayerName?: boolean;
1164
+ requestPayerPhone?: boolean;
1165
+ requestShipping?: boolean;
1166
+ shippingType?: PaymentShippingType;
1167
+ }
1168
+
1139
1169
  interface PaymentRequestUpdateEventInit extends EventInit {
1140
1170
  }
1141
1171
 
1172
+ interface PaymentShippingOption {
1173
+ amount: PaymentCurrencyAmount;
1174
+ id: string;
1175
+ label: string;
1176
+ selected?: boolean;
1177
+ }
1178
+
1142
1179
  interface PaymentValidationErrors {
1143
1180
  error?: string;
1144
- paymentMethod?: any;
1181
+ payer?: PayerErrors;
1182
+ shippingAddress?: AddressErrors;
1145
1183
  }
1146
1184
 
1147
1185
  interface Pbkdf2Params extends Algorithm {
@@ -1191,6 +1229,8 @@ interface PlaneLayout {
1191
1229
  }
1192
1230
 
1193
1231
  interface PointerEventInit extends MouseEventInit {
1232
+ altitudeAngle?: number;
1233
+ azimuthAngle?: number;
1194
1234
  coalescedEvents?: PointerEvent[];
1195
1235
  height?: number;
1196
1236
  isPrimary?: boolean;
@@ -4104,11 +4144,13 @@ interface CSSStyleDeclaration {
4104
4144
  clip: string;
4105
4145
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip-path) */
4106
4146
  clipPath: string;
4147
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip-rule) */
4107
4148
  clipRule: string;
4108
4149
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color) */
4109
4150
  color: string;
4110
4151
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-interpolation) */
4111
4152
  colorInterpolation: string;
4153
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-interpolation-filters) */
4112
4154
  colorInterpolationFilters: string;
4113
4155
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-scheme) */
4114
4156
  colorScheme: string;
@@ -4178,8 +4220,11 @@ interface CSSStyleDeclaration {
4178
4220
  dominantBaseline: string;
4179
4221
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/empty-cells) */
4180
4222
  emptyCells: string;
4223
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/fill) */
4181
4224
  fill: string;
4225
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/fill-opacity) */
4182
4226
  fillOpacity: string;
4227
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/fill-rule) */
4183
4228
  fillRule: string;
4184
4229
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/filter) */
4185
4230
  filter: string;
@@ -4604,7 +4649,9 @@ interface CSSStyleDeclaration {
4604
4649
  shapeOutside: string;
4605
4650
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-rendering) */
4606
4651
  shapeRendering: string;
4652
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stop-color) */
4607
4653
  stopColor: string;
4654
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stop-opacity) */
4608
4655
  stopOpacity: string;
4609
4656
  stroke: string;
4610
4657
  strokeDasharray: string;
@@ -5127,7 +5174,9 @@ interface CSSStyleDeclaration {
5127
5174
  wordWrap: string;
5128
5175
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/writing-mode) */
5129
5176
  writingMode: string;
5177
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/x) */
5130
5178
  x: string;
5179
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/y) */
5131
5180
  y: string;
5132
5181
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/z-index) */
5133
5182
  zIndex: string;
@@ -8713,7 +8762,7 @@ interface FontFace {
8713
8762
 
8714
8763
  declare var FontFace: {
8715
8764
  prototype: FontFace;
8716
- new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;
8765
+ new(family: string, source: string | BufferSource, descriptors?: FontFaceDescriptors): FontFace;
8717
8766
  };
8718
8767
 
8719
8768
  interface FontFaceSetEventMap {
@@ -16724,6 +16773,37 @@ declare var Path2D: {
16724
16773
  new(path?: Path2D | string): Path2D;
16725
16774
  };
16726
16775
 
16776
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress) */
16777
+ interface PaymentAddress {
16778
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/addressLine) */
16779
+ readonly addressLine: ReadonlyArray<string>;
16780
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/city) */
16781
+ readonly city: string;
16782
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/country) */
16783
+ readonly country: string;
16784
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/dependentLocality) */
16785
+ readonly dependentLocality: string;
16786
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/organization) */
16787
+ readonly organization: string;
16788
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/phone) */
16789
+ readonly phone: string;
16790
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/postalCode) */
16791
+ readonly postalCode: string;
16792
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/recipient) */
16793
+ readonly recipient: string;
16794
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/region) */
16795
+ readonly region: string;
16796
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/sortingCode) */
16797
+ readonly sortingCode: string;
16798
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/toJSON) */
16799
+ toJSON(): any;
16800
+ }
16801
+
16802
+ declare var PaymentAddress: {
16803
+ prototype: PaymentAddress;
16804
+ new(): PaymentAddress;
16805
+ };
16806
+
16727
16807
  /**
16728
16808
  * Available only in secure contexts.
16729
16809
  *
@@ -16743,6 +16823,8 @@ declare var PaymentMethodChangeEvent: {
16743
16823
 
16744
16824
  interface PaymentRequestEventMap {
16745
16825
  "paymentmethodchange": Event;
16826
+ "shippingaddresschange": Event;
16827
+ "shippingoptionchange": Event;
16746
16828
  }
16747
16829
 
16748
16830
  /**
@@ -16756,6 +16838,36 @@ interface PaymentRequest extends EventTarget {
16756
16838
  readonly id: string;
16757
16839
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/paymentmethodchange_event) */
16758
16840
  onpaymentmethodchange: ((this: PaymentRequest, ev: Event) => any) | null;
16841
+ /**
16842
+ * @deprecated
16843
+ *
16844
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingaddresschange_event)
16845
+ */
16846
+ onshippingaddresschange: ((this: PaymentRequest, ev: Event) => any) | null;
16847
+ /**
16848
+ * @deprecated
16849
+ *
16850
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingoptionchange_event)
16851
+ */
16852
+ onshippingoptionchange: ((this: PaymentRequest, ev: Event) => any) | null;
16853
+ /**
16854
+ * @deprecated
16855
+ *
16856
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingAddress)
16857
+ */
16858
+ readonly shippingAddress: PaymentAddress | null;
16859
+ /**
16860
+ * @deprecated
16861
+ *
16862
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingOption)
16863
+ */
16864
+ readonly shippingOption: string | null;
16865
+ /**
16866
+ * @deprecated
16867
+ *
16868
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingType)
16869
+ */
16870
+ readonly shippingType: PaymentShippingType | null;
16759
16871
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/abort) */
16760
16872
  abort(): Promise<void>;
16761
16873
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/canMakePayment) */
@@ -16770,7 +16882,7 @@ interface PaymentRequest extends EventTarget {
16770
16882
 
16771
16883
  declare var PaymentRequest: {
16772
16884
  prototype: PaymentRequest;
16773
- new(methodData: PaymentMethodData[], details: PaymentDetailsInit): PaymentRequest;
16885
+ new(methodData: PaymentMethodData[], details: PaymentDetailsInit, options?: PaymentOptions): PaymentRequest;
16774
16886
  };
16775
16887
 
16776
16888
  /**
@@ -16789,6 +16901,10 @@ declare var PaymentRequestUpdateEvent: {
16789
16901
  new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent;
16790
16902
  };
16791
16903
 
16904
+ interface PaymentResponseEventMap {
16905
+ "payerdetailchange": Event;
16906
+ }
16907
+
16792
16908
  /**
16793
16909
  * This Payment Request API interface is returned after a user selects a payment method and approves a payment request.
16794
16910
  * Available only in secure contexts.
@@ -16800,14 +16916,54 @@ interface PaymentResponse extends EventTarget {
16800
16916
  readonly details: any;
16801
16917
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/methodName) */
16802
16918
  readonly methodName: string;
16919
+ /**
16920
+ * @deprecated
16921
+ *
16922
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerdetailchange_event)
16923
+ */
16924
+ onpayerdetailchange: ((this: PaymentResponse, ev: Event) => any) | null;
16925
+ /**
16926
+ * @deprecated
16927
+ *
16928
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerEmail)
16929
+ */
16930
+ readonly payerEmail: string | null;
16931
+ /**
16932
+ * @deprecated
16933
+ *
16934
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerName)
16935
+ */
16936
+ readonly payerName: string | null;
16937
+ /**
16938
+ * @deprecated
16939
+ *
16940
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerPhone)
16941
+ */
16942
+ readonly payerPhone: string | null;
16803
16943
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/requestId) */
16804
16944
  readonly requestId: string;
16945
+ /**
16946
+ * @deprecated
16947
+ *
16948
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/shippingAddress)
16949
+ */
16950
+ readonly shippingAddress: PaymentAddress | null;
16951
+ /**
16952
+ * @deprecated
16953
+ *
16954
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/shippingOption)
16955
+ */
16956
+ readonly shippingOption: string | null;
16805
16957
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/complete) */
16806
16958
  complete(result?: PaymentComplete): Promise<void>;
16807
16959
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/retry) */
16808
16960
  retry(errorFields?: PaymentValidationErrors): Promise<void>;
16809
16961
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/toJSON) */
16810
16962
  toJSON(): any;
16963
+ addEventListener<K extends keyof PaymentResponseEventMap>(type: K, listener: (this: PaymentResponse, ev: PaymentResponseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
16964
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
16965
+ removeEventListener<K extends keyof PaymentResponseEventMap>(type: K, listener: (this: PaymentResponse, ev: PaymentResponseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
16966
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
16811
16967
  }
16812
16968
 
16813
16969
  declare var PaymentResponse: {
@@ -27978,7 +28134,6 @@ type AutoFill = AutoFillBase | `${OptionalPrefixToken<AutoFillSection>}${Optiona
27978
28134
  type AutoFillField = AutoFillNormalField | `${OptionalPrefixToken<AutoFillContactKind>}${AutoFillContactField}`;
27979
28135
  type AutoFillSection = `section-${string}`;
27980
28136
  type BigInteger = Uint8Array;
27981
- type BinaryData = ArrayBuffer | ArrayBufferView;
27982
28137
  type BlobPart = BufferSource | Blob | string;
27983
28138
  type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
27984
28139
  type BufferSource = ArrayBufferView | ArrayBuffer;
@@ -28147,6 +28302,7 @@ type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";
28147
28302
  type OverSampleType = "2x" | "4x" | "none";
28148
28303
  type PanningModelType = "HRTF" | "equalpower";
28149
28304
  type PaymentComplete = "fail" | "success" | "unknown";
28305
+ type PaymentShippingType = "delivery" | "pickup" | "shipping";
28150
28306
  type PermissionName = "geolocation" | "midi" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "storage-access";
28151
28307
  type PermissionState = "denied" | "granted" | "prompt";
28152
28308
  type PlaybackDirection = "alternate" | "alternate-reverse" | "normal" | "reverse";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.154",
3
+ "version": "0.0.156",
4
4
  "description": "Types for the DOM, and other web technologies in browsers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],
package/ts5.5/index.d.ts CHANGED
@@ -10,6 +10,19 @@ interface AddEventListenerOptions extends EventListenerOptions {
10
10
  signal?: AbortSignal;
11
11
  }
12
12
 
13
+ interface AddressErrors {
14
+ addressLine?: string;
15
+ city?: string;
16
+ country?: string;
17
+ dependentLocality?: string;
18
+ organization?: string;
19
+ phone?: string;
20
+ postalCode?: string;
21
+ recipient?: string;
22
+ region?: string;
23
+ sortingCode?: string;
24
+ }
25
+
13
26
  interface AesCbcParams extends Algorithm {
14
27
  iv: BufferSource;
15
28
  }
@@ -1093,6 +1106,12 @@ interface PannerOptions extends AudioNodeOptions {
1093
1106
  rolloffFactor?: number;
1094
1107
  }
1095
1108
 
1109
+ interface PayerErrors {
1110
+ email?: string;
1111
+ name?: string;
1112
+ phone?: string;
1113
+ }
1114
+
1096
1115
  interface PaymentCurrencyAmount {
1097
1116
  currency: string;
1098
1117
  value: string;
@@ -1101,6 +1120,7 @@ interface PaymentCurrencyAmount {
1101
1120
  interface PaymentDetailsBase {
1102
1121
  displayItems?: PaymentItem[];
1103
1122
  modifiers?: PaymentDetailsModifier[];
1123
+ shippingOptions?: PaymentShippingOption[];
1104
1124
  }
1105
1125
 
1106
1126
  interface PaymentDetailsInit extends PaymentDetailsBase {
@@ -1116,7 +1136,9 @@ interface PaymentDetailsModifier {
1116
1136
  }
1117
1137
 
1118
1138
  interface PaymentDetailsUpdate extends PaymentDetailsBase {
1139
+ error?: string;
1119
1140
  paymentMethodErrors?: any;
1141
+ shippingAddressErrors?: AddressErrors;
1120
1142
  total?: PaymentItem;
1121
1143
  }
1122
1144
 
@@ -1136,12 +1158,28 @@ interface PaymentMethodData {
1136
1158
  supportedMethods: string;
1137
1159
  }
1138
1160
 
1161
+ interface PaymentOptions {
1162
+ requestPayerEmail?: boolean;
1163
+ requestPayerName?: boolean;
1164
+ requestPayerPhone?: boolean;
1165
+ requestShipping?: boolean;
1166
+ shippingType?: PaymentShippingType;
1167
+ }
1168
+
1139
1169
  interface PaymentRequestUpdateEventInit extends EventInit {
1140
1170
  }
1141
1171
 
1172
+ interface PaymentShippingOption {
1173
+ amount: PaymentCurrencyAmount;
1174
+ id: string;
1175
+ label: string;
1176
+ selected?: boolean;
1177
+ }
1178
+
1142
1179
  interface PaymentValidationErrors {
1143
1180
  error?: string;
1144
- paymentMethod?: any;
1181
+ payer?: PayerErrors;
1182
+ shippingAddress?: AddressErrors;
1145
1183
  }
1146
1184
 
1147
1185
  interface Pbkdf2Params extends Algorithm {
@@ -1191,6 +1229,8 @@ interface PlaneLayout {
1191
1229
  }
1192
1230
 
1193
1231
  interface PointerEventInit extends MouseEventInit {
1232
+ altitudeAngle?: number;
1233
+ azimuthAngle?: number;
1194
1234
  coalescedEvents?: PointerEvent[];
1195
1235
  height?: number;
1196
1236
  isPrimary?: boolean;
@@ -4104,11 +4144,13 @@ interface CSSStyleDeclaration {
4104
4144
  clip: string;
4105
4145
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip-path) */
4106
4146
  clipPath: string;
4147
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip-rule) */
4107
4148
  clipRule: string;
4108
4149
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color) */
4109
4150
  color: string;
4110
4151
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-interpolation) */
4111
4152
  colorInterpolation: string;
4153
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-interpolation-filters) */
4112
4154
  colorInterpolationFilters: string;
4113
4155
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-scheme) */
4114
4156
  colorScheme: string;
@@ -4178,8 +4220,11 @@ interface CSSStyleDeclaration {
4178
4220
  dominantBaseline: string;
4179
4221
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/empty-cells) */
4180
4222
  emptyCells: string;
4223
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/fill) */
4181
4224
  fill: string;
4225
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/fill-opacity) */
4182
4226
  fillOpacity: string;
4227
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/fill-rule) */
4183
4228
  fillRule: string;
4184
4229
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/filter) */
4185
4230
  filter: string;
@@ -4604,7 +4649,9 @@ interface CSSStyleDeclaration {
4604
4649
  shapeOutside: string;
4605
4650
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-rendering) */
4606
4651
  shapeRendering: string;
4652
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stop-color) */
4607
4653
  stopColor: string;
4654
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stop-opacity) */
4608
4655
  stopOpacity: string;
4609
4656
  stroke: string;
4610
4657
  strokeDasharray: string;
@@ -5127,7 +5174,9 @@ interface CSSStyleDeclaration {
5127
5174
  wordWrap: string;
5128
5175
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/writing-mode) */
5129
5176
  writingMode: string;
5177
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/x) */
5130
5178
  x: string;
5179
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/y) */
5131
5180
  y: string;
5132
5181
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/z-index) */
5133
5182
  zIndex: string;
@@ -8713,7 +8762,7 @@ interface FontFace {
8713
8762
 
8714
8763
  declare var FontFace: {
8715
8764
  prototype: FontFace;
8716
- new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;
8765
+ new(family: string, source: string | BufferSource, descriptors?: FontFaceDescriptors): FontFace;
8717
8766
  };
8718
8767
 
8719
8768
  interface FontFaceSetEventMap {
@@ -16724,6 +16773,37 @@ declare var Path2D: {
16724
16773
  new(path?: Path2D | string): Path2D;
16725
16774
  };
16726
16775
 
16776
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress) */
16777
+ interface PaymentAddress {
16778
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/addressLine) */
16779
+ readonly addressLine: ReadonlyArray<string>;
16780
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/city) */
16781
+ readonly city: string;
16782
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/country) */
16783
+ readonly country: string;
16784
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/dependentLocality) */
16785
+ readonly dependentLocality: string;
16786
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/organization) */
16787
+ readonly organization: string;
16788
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/phone) */
16789
+ readonly phone: string;
16790
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/postalCode) */
16791
+ readonly postalCode: string;
16792
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/recipient) */
16793
+ readonly recipient: string;
16794
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/region) */
16795
+ readonly region: string;
16796
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/sortingCode) */
16797
+ readonly sortingCode: string;
16798
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/toJSON) */
16799
+ toJSON(): any;
16800
+ }
16801
+
16802
+ declare var PaymentAddress: {
16803
+ prototype: PaymentAddress;
16804
+ new(): PaymentAddress;
16805
+ };
16806
+
16727
16807
  /**
16728
16808
  * Available only in secure contexts.
16729
16809
  *
@@ -16743,6 +16823,8 @@ declare var PaymentMethodChangeEvent: {
16743
16823
 
16744
16824
  interface PaymentRequestEventMap {
16745
16825
  "paymentmethodchange": Event;
16826
+ "shippingaddresschange": Event;
16827
+ "shippingoptionchange": Event;
16746
16828
  }
16747
16829
 
16748
16830
  /**
@@ -16756,6 +16838,36 @@ interface PaymentRequest extends EventTarget {
16756
16838
  readonly id: string;
16757
16839
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/paymentmethodchange_event) */
16758
16840
  onpaymentmethodchange: ((this: PaymentRequest, ev: Event) => any) | null;
16841
+ /**
16842
+ * @deprecated
16843
+ *
16844
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingaddresschange_event)
16845
+ */
16846
+ onshippingaddresschange: ((this: PaymentRequest, ev: Event) => any) | null;
16847
+ /**
16848
+ * @deprecated
16849
+ *
16850
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingoptionchange_event)
16851
+ */
16852
+ onshippingoptionchange: ((this: PaymentRequest, ev: Event) => any) | null;
16853
+ /**
16854
+ * @deprecated
16855
+ *
16856
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingAddress)
16857
+ */
16858
+ readonly shippingAddress: PaymentAddress | null;
16859
+ /**
16860
+ * @deprecated
16861
+ *
16862
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingOption)
16863
+ */
16864
+ readonly shippingOption: string | null;
16865
+ /**
16866
+ * @deprecated
16867
+ *
16868
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingType)
16869
+ */
16870
+ readonly shippingType: PaymentShippingType | null;
16759
16871
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/abort) */
16760
16872
  abort(): Promise<void>;
16761
16873
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/canMakePayment) */
@@ -16770,7 +16882,7 @@ interface PaymentRequest extends EventTarget {
16770
16882
 
16771
16883
  declare var PaymentRequest: {
16772
16884
  prototype: PaymentRequest;
16773
- new(methodData: PaymentMethodData[], details: PaymentDetailsInit): PaymentRequest;
16885
+ new(methodData: PaymentMethodData[], details: PaymentDetailsInit, options?: PaymentOptions): PaymentRequest;
16774
16886
  };
16775
16887
 
16776
16888
  /**
@@ -16789,6 +16901,10 @@ declare var PaymentRequestUpdateEvent: {
16789
16901
  new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent;
16790
16902
  };
16791
16903
 
16904
+ interface PaymentResponseEventMap {
16905
+ "payerdetailchange": Event;
16906
+ }
16907
+
16792
16908
  /**
16793
16909
  * This Payment Request API interface is returned after a user selects a payment method and approves a payment request.
16794
16910
  * Available only in secure contexts.
@@ -16800,14 +16916,54 @@ interface PaymentResponse extends EventTarget {
16800
16916
  readonly details: any;
16801
16917
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/methodName) */
16802
16918
  readonly methodName: string;
16919
+ /**
16920
+ * @deprecated
16921
+ *
16922
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerdetailchange_event)
16923
+ */
16924
+ onpayerdetailchange: ((this: PaymentResponse, ev: Event) => any) | null;
16925
+ /**
16926
+ * @deprecated
16927
+ *
16928
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerEmail)
16929
+ */
16930
+ readonly payerEmail: string | null;
16931
+ /**
16932
+ * @deprecated
16933
+ *
16934
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerName)
16935
+ */
16936
+ readonly payerName: string | null;
16937
+ /**
16938
+ * @deprecated
16939
+ *
16940
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerPhone)
16941
+ */
16942
+ readonly payerPhone: string | null;
16803
16943
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/requestId) */
16804
16944
  readonly requestId: string;
16945
+ /**
16946
+ * @deprecated
16947
+ *
16948
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/shippingAddress)
16949
+ */
16950
+ readonly shippingAddress: PaymentAddress | null;
16951
+ /**
16952
+ * @deprecated
16953
+ *
16954
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/shippingOption)
16955
+ */
16956
+ readonly shippingOption: string | null;
16805
16957
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/complete) */
16806
16958
  complete(result?: PaymentComplete): Promise<void>;
16807
16959
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/retry) */
16808
16960
  retry(errorFields?: PaymentValidationErrors): Promise<void>;
16809
16961
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/toJSON) */
16810
16962
  toJSON(): any;
16963
+ addEventListener<K extends keyof PaymentResponseEventMap>(type: K, listener: (this: PaymentResponse, ev: PaymentResponseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
16964
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
16965
+ removeEventListener<K extends keyof PaymentResponseEventMap>(type: K, listener: (this: PaymentResponse, ev: PaymentResponseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
16966
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
16811
16967
  }
16812
16968
 
16813
16969
  declare var PaymentResponse: {
@@ -27978,7 +28134,6 @@ type AutoFill = AutoFillBase | `${OptionalPrefixToken<AutoFillSection>}${Optiona
27978
28134
  type AutoFillField = AutoFillNormalField | `${OptionalPrefixToken<AutoFillContactKind>}${AutoFillContactField}`;
27979
28135
  type AutoFillSection = `section-${string}`;
27980
28136
  type BigInteger = Uint8Array;
27981
- type BinaryData = ArrayBuffer | ArrayBufferView;
27982
28137
  type BlobPart = BufferSource | Blob | string;
27983
28138
  type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
27984
28139
  type BufferSource = ArrayBufferView | ArrayBuffer;
@@ -28147,6 +28302,7 @@ type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";
28147
28302
  type OverSampleType = "2x" | "4x" | "none";
28148
28303
  type PanningModelType = "HRTF" | "equalpower";
28149
28304
  type PaymentComplete = "fail" | "success" | "unknown";
28305
+ type PaymentShippingType = "delivery" | "pickup" | "shipping";
28150
28306
  type PermissionName = "geolocation" | "midi" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "storage-access";
28151
28307
  type PermissionState = "denied" | "granted" | "prompt";
28152
28308
  type PlaybackDirection = "alternate" | "alternate-reverse" | "normal" | "reverse";