@webref/idl 3.52.1 → 3.52.2

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.
@@ -7,4 +7,5 @@
7
7
  interface CrashReportBody : ReportBody {
8
8
  [Default] object toJSON();
9
9
  readonly attribute DOMString? reason;
10
+ readonly attribute DOMString? stack;
10
11
  };
@@ -3,8 +3,6 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: CSS Font Loading Module Level 3 (https://drafts.csswg.org/css-font-loading-3/)
5
5
 
6
- typedef (ArrayBuffer or ArrayBufferView) BinaryData;
7
-
8
6
  dictionary FontFaceDescriptors {
9
7
  CSSOMString style = "normal";
10
8
  CSSOMString weight = "normal";
@@ -22,7 +20,7 @@ enum FontFaceLoadStatus { "unloaded", "loading", "loaded", "error" };
22
20
 
23
21
  [Exposed=(Window,Worker)]
24
22
  interface FontFace {
25
- constructor(CSSOMString family, (CSSOMString or BinaryData) source,
23
+ constructor(CSSOMString family, (CSSOMString or BufferSource) source,
26
24
  optional FontFaceDescriptors descriptors = {});
27
25
  attribute CSSOMString family;
28
26
  attribute CSSOMString style;
package/dom.idl CHANGED
@@ -120,9 +120,9 @@ interface mixin ParentNode {
120
120
  readonly attribute Element? lastElementChild;
121
121
  readonly attribute unsigned long childElementCount;
122
122
 
123
- [CEReactions, Unscopable] undefined prepend((Node or TrustedScript or DOMString)... nodes);
124
- [CEReactions, Unscopable] undefined append((Node or TrustedScript or DOMString)... nodes);
125
- [CEReactions, Unscopable] undefined replaceChildren((Node or TrustedScript or DOMString)... nodes);
123
+ [CEReactions, Unscopable] undefined prepend((Node or DOMString)... nodes);
124
+ [CEReactions, Unscopable] undefined append((Node or DOMString)... nodes);
125
+ [CEReactions, Unscopable] undefined replaceChildren((Node or DOMString)... nodes);
126
126
 
127
127
  Element? querySelector(DOMString selectors);
128
128
  [NewObject] NodeList querySelectorAll(DOMString selectors);
@@ -139,9 +139,9 @@ Element includes NonDocumentTypeChildNode;
139
139
  CharacterData includes NonDocumentTypeChildNode;
140
140
 
141
141
  interface mixin ChildNode {
142
- [CEReactions, Unscopable] undefined before((Node or TrustedScript or DOMString)... nodes);
143
- [CEReactions, Unscopable] undefined after((Node or TrustedScript or DOMString)... nodes);
144
- [CEReactions, Unscopable] undefined replaceWith((Node or TrustedScript or DOMString)... nodes);
142
+ [CEReactions, Unscopable] undefined before((Node or DOMString)... nodes);
143
+ [CEReactions, Unscopable] undefined after((Node or DOMString)... nodes);
144
+ [CEReactions, Unscopable] undefined replaceWith((Node or DOMString)... nodes);
145
145
  [CEReactions, Unscopable] undefined remove();
146
146
  };
147
147
  DocumentType includes ChildNode;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webref/idl",
3
3
  "description": "Web IDL definitions of the web platform",
4
- "version": "3.52.1",
4
+ "version": "3.52.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -94,38 +94,3 @@ dictionary AddressInit {
94
94
  DOMString recipient = "";
95
95
  DOMString phone = "";
96
96
  };
97
-
98
- dictionary PaymentOptions {
99
- boolean requestPayerName = false;
100
- boolean requestBillingAddress = false;
101
- boolean requestPayerEmail = false;
102
- boolean requestPayerPhone = false;
103
- boolean requestShipping = false;
104
- PaymentShippingType shippingType = "shipping";
105
- };
106
-
107
- dictionary PaymentShippingOption {
108
- required DOMString id;
109
- required DOMString label;
110
- required PaymentCurrencyAmount amount;
111
- boolean selected = false;
112
- };
113
-
114
- enum PaymentShippingType {
115
- "shipping",
116
- "delivery",
117
- "pickup"
118
- };
119
-
120
- dictionary AddressErrors {
121
- DOMString addressLine;
122
- DOMString city;
123
- DOMString country;
124
- DOMString dependentLocality;
125
- DOMString organization;
126
- DOMString phone;
127
- DOMString postalCode;
128
- DOMString recipient;
129
- DOMString region;
130
- DOMString sortingCode;
131
- };
@@ -7,7 +7,8 @@
7
7
  interface PaymentRequest : EventTarget {
8
8
  constructor(
9
9
  sequence<PaymentMethodData> methodData,
10
- PaymentDetailsInit details
10
+ PaymentDetailsInit details,
11
+ optional PaymentOptions options = {}
11
12
  );
12
13
  [NewObject]
13
14
  Promise<PaymentResponse> show(optional Promise<PaymentDetailsUpdate> detailsPromise);
@@ -17,7 +18,12 @@ interface PaymentRequest : EventTarget {
17
18
  Promise<boolean> canMakePayment();
18
19
 
19
20
  readonly attribute DOMString id;
21
+ readonly attribute ContactAddress? shippingAddress;
22
+ readonly attribute DOMString? shippingOption;
23
+ readonly attribute PaymentShippingType? shippingType;
20
24
 
25
+ attribute EventHandler onshippingaddresschange;
26
+ attribute EventHandler onshippingoptionchange;
21
27
  attribute EventHandler onpaymentmethodchange;
22
28
  };
23
29
 
@@ -33,6 +39,7 @@ dictionary PaymentCurrencyAmount {
33
39
 
34
40
  dictionary PaymentDetailsBase {
35
41
  sequence<PaymentItem> displayItems;
42
+ sequence<PaymentShippingOption> shippingOptions;
36
43
  sequence<PaymentDetailsModifier> modifiers;
37
44
  };
38
45
 
@@ -42,7 +49,10 @@ dictionary PaymentDetailsInit : PaymentDetailsBase {
42
49
  };
43
50
 
44
51
  dictionary PaymentDetailsUpdate : PaymentDetailsBase {
52
+ DOMString error;
45
53
  PaymentItem total;
54
+ AddressErrors shippingAddressErrors;
55
+ PayerErrors payerErrors;
46
56
  object paymentMethodErrors;
47
57
  };
48
58
 
@@ -53,6 +63,21 @@ dictionary PaymentDetailsModifier {
53
63
  object data;
54
64
  };
55
65
 
66
+ enum PaymentShippingType {
67
+ "shipping",
68
+ "delivery",
69
+ "pickup"
70
+ };
71
+
72
+ dictionary PaymentOptions {
73
+ boolean requestPayerName = false;
74
+ boolean requestBillingAddress = false;
75
+ boolean requestPayerEmail = false;
76
+ boolean requestPayerPhone = false;
77
+ boolean requestShipping = false;
78
+ PaymentShippingType shippingType = "shipping";
79
+ };
80
+
56
81
  dictionary PaymentItem {
57
82
  required DOMString label;
58
83
  required PaymentCurrencyAmount amount;
@@ -69,6 +94,13 @@ enum PaymentComplete {
69
94
  "unknown"
70
95
  };
71
96
 
97
+ dictionary PaymentShippingOption {
98
+ required DOMString id;
99
+ required DOMString label;
100
+ required PaymentCurrencyAmount amount;
101
+ boolean selected = false;
102
+ };
103
+
72
104
  [SecureContext, Exposed=Window]
73
105
  interface PaymentResponse : EventTarget {
74
106
  [Default] object toJSON();
@@ -76,6 +108,11 @@ interface PaymentResponse : EventTarget {
76
108
  readonly attribute DOMString requestId;
77
109
  readonly attribute DOMString methodName;
78
110
  readonly attribute object details;
111
+ readonly attribute ContactAddress? shippingAddress;
112
+ readonly attribute DOMString? shippingOption;
113
+ readonly attribute DOMString? payerName;
114
+ readonly attribute DOMString? payerEmail;
115
+ readonly attribute DOMString? payerPhone;
79
116
 
80
117
  [NewObject]
81
118
  Promise<undefined> complete(
@@ -84,13 +121,36 @@ interface PaymentResponse : EventTarget {
84
121
  );
85
122
  [NewObject]
86
123
  Promise<undefined> retry(optional PaymentValidationErrors errorFields = {});
124
+
125
+ attribute EventHandler onpayerdetailchange;
87
126
  };
88
127
 
89
128
  dictionary PaymentValidationErrors {
129
+ PayerErrors payer;
130
+ AddressErrors shippingAddress;
90
131
  DOMString error;
91
132
  object paymentMethod;
92
133
  };
93
134
 
135
+ dictionary PayerErrors {
136
+ DOMString email;
137
+ DOMString name;
138
+ DOMString phone;
139
+ };
140
+
141
+ dictionary AddressErrors {
142
+ DOMString addressLine;
143
+ DOMString city;
144
+ DOMString country;
145
+ DOMString dependentLocality;
146
+ DOMString organization;
147
+ DOMString phone;
148
+ DOMString postalCode;
149
+ DOMString recipient;
150
+ DOMString region;
151
+ DOMString sortingCode;
152
+ };
153
+
94
154
  [SecureContext, Exposed=Window]
95
155
  interface PaymentMethodChangeEvent : PaymentRequestUpdateEvent {
96
156
  constructor(DOMString type, optional PaymentMethodChangeEventInit eventInitDict = {});
package/pointerevents.idl CHANGED
@@ -16,6 +16,7 @@ dictionary PointerEventInit : MouseEventInit {
16
16
  double azimuthAngle;
17
17
  DOMString pointerType = "";
18
18
  boolean isPrimary = false;
19
+ long persistentDeviceId = 0;
19
20
  sequence<PointerEvent> coalescedEvents = [];
20
21
  sequence<PointerEvent> predictedEvents = [];
21
22
  };
@@ -35,6 +36,7 @@ interface PointerEvent : MouseEvent {
35
36
  readonly attribute double azimuthAngle;
36
37
  readonly attribute DOMString pointerType;
37
38
  readonly attribute boolean isPrimary;
39
+ readonly attribute long persistentDeviceId;
38
40
  [SecureContext] sequence<PointerEvent> getCoalescedEvents();
39
41
  sequence<PointerEvent> getPredictedEvents();
40
42
  };
@@ -9,35 +9,19 @@ enum TaskPriority {
9
9
  "background"
10
10
  };
11
11
 
12
- enum ContinuationPriority {
13
- "user-blocking",
14
- "user-visible",
15
- "background",
16
- "inherit"
17
- };
18
-
19
12
  dictionary SchedulerPostTaskOptions {
20
13
  AbortSignal signal;
21
14
  TaskPriority priority;
22
15
  [EnforceRange] unsigned long long delay = 0;
23
16
  };
24
17
 
25
- enum SchedulerSignalInherit {
26
- "inherit"
27
- };
28
-
29
- dictionary SchedulerYieldOptions {
30
- (AbortSignal or SchedulerSignalInherit) signal;
31
- ContinuationPriority priority;
32
- };
33
-
34
18
  callback SchedulerPostTaskCallback = any ();
35
19
 
36
20
  [Exposed=(Window, Worker)]
37
21
  interface Scheduler {
38
22
  Promise<any> postTask(SchedulerPostTaskCallback callback,
39
23
  optional SchedulerPostTaskOptions options = {});
40
- Promise<undefined> yield(optional SchedulerYieldOptions options = {});
24
+ Promise<undefined> yield();
41
25
  };
42
26
 
43
27
  [Exposed=(Window, Worker)]
package/turtledove.idl CHANGED
@@ -20,7 +20,6 @@ dictionary AuctionAd {
20
20
  dictionary GenerateBidInterestGroup {
21
21
  required USVString owner;
22
22
  required USVString name;
23
- required double lifetimeMs;
24
23
 
25
24
  boolean enableBiddingSignalsPrioritization = false;
26
25
  record<DOMString, double> priorityVector;
@@ -42,6 +41,7 @@ dictionary GenerateBidInterestGroup {
42
41
  dictionary AuctionAdInterestGroup : GenerateBidInterestGroup {
43
42
  double priority = 0.0;
44
43
  record<DOMString, double> prioritySignalsOverrides;
44
+ required double lifetimeMs;
45
45
  DOMString additionalBidKey;
46
46
  };
47
47
 
package/webauthn.idl CHANGED
@@ -19,7 +19,7 @@ typedef DOMString Base64URLString;
19
19
  typedef object PublicKeyCredentialJSON;
20
20
 
21
21
  dictionary RegistrationResponseJSON {
22
- required Base64URLString id;
22
+ required DOMString id;
23
23
  required Base64URLString rawId;
24
24
  required AuthenticatorAttestationResponseJSON response;
25
25
  DOMString authenticatorAttachment;
@@ -45,7 +45,7 @@ dictionary AuthenticatorAttestationResponseJSON {
45
45
  };
46
46
 
47
47
  dictionary AuthenticationResponseJSON {
48
- required Base64URLString id;
48
+ required DOMString id;
49
49
  required Base64URLString rawId;
50
50
  required AuthenticatorAssertionResponseJSON response;
51
51
  DOMString authenticatorAttachment;
@@ -106,8 +106,8 @@ dictionary PublicKeyCredentialUserEntityJSON {
106
106
  };
107
107
 
108
108
  dictionary PublicKeyCredentialDescriptorJSON {
109
- required Base64URLString id;
110
109
  required DOMString type;
110
+ required Base64URLString id;
111
111
  sequence<DOMString> transports;
112
112
  };
113
113
 
@@ -211,7 +211,7 @@ enum AttestationConveyancePreference {
211
211
  dictionary PublicKeyCredentialRequestOptions {
212
212
  required BufferSource challenge;
213
213
  unsigned long timeout;
214
- USVString rpId;
214
+ DOMString rpId;
215
215
  sequence<PublicKeyCredentialDescriptor> allowCredentials = [];
216
216
  DOMString userVerification = "preferred";
217
217
  sequence<DOMString> hints = [];
@@ -228,8 +228,8 @@ dictionary CollectedClientData {
228
228
  required DOMString type;
229
229
  required DOMString challenge;
230
230
  required DOMString origin;
231
- DOMString topOrigin;
232
231
  boolean crossOrigin;
232
+ DOMString topOrigin;
233
233
  };
234
234
 
235
235
  dictionary TokenBinding {
@@ -357,21 +357,3 @@ dictionary AuthenticationExtensionsLargeBlobOutputs {
357
357
  ArrayBuffer blob;
358
358
  boolean written;
359
359
  };
360
-
361
- dictionary AuthenticationExtensionsSupplementalPubKeysInputs {
362
- required sequence<DOMString> scopes;
363
- DOMString attestation = "indirect";
364
- sequence<DOMString> attestationFormats = [];
365
- };
366
-
367
- partial dictionary AuthenticationExtensionsClientInputs {
368
- AuthenticationExtensionsSupplementalPubKeysInputs supplementalPubKeys;
369
- };
370
-
371
- dictionary AuthenticationExtensionsSupplementalPubKeysOutputs {
372
- required sequence<ArrayBuffer> signatures;
373
- };
374
-
375
- partial dictionary AuthenticationExtensionsClientOutputs {
376
- AuthenticationExtensionsSupplementalPubKeysOutputs supplementalPubKeys;
377
- };