@webref/idl 3.24.0 → 3.24.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.
@@ -32,6 +32,7 @@ interface PressureRecord {
32
32
  readonly attribute PressureState state;
33
33
  readonly attribute FrozenArray<PressureFactor> factors;
34
34
  readonly attribute DOMHighResTimeStamp time;
35
+ [Default] object toJSON();
35
36
  };
36
37
 
37
38
  dictionary PressureObserverOptions {
@@ -4,15 +4,15 @@
4
4
  // Source: CSS View Transitions Module Level 1 (https://drafts.csswg.org/css-view-transitions-1/)
5
5
 
6
6
  partial interface Document {
7
- ViewTransition startViewTransition(optional UpdateDOMCallback? callback = null);
7
+ ViewTransition startViewTransition(optional UpdateCallback? callback = null);
8
8
  };
9
9
 
10
- callback UpdateDOMCallback = Promise<any> ();
10
+ callback UpdateCallback = Promise<any> ();
11
11
 
12
12
  [Exposed=Window]
13
13
  interface ViewTransition {
14
14
  undefined skipTransition();
15
15
  readonly attribute Promise<undefined> finished;
16
16
  readonly attribute Promise<undefined> ready;
17
- readonly attribute Promise<undefined> domUpdated;
17
+ readonly attribute Promise<undefined> updateCallbackDone;
18
18
  };
package/cssom-view.idl CHANGED
@@ -3,7 +3,7 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: CSSOM View Module (https://drafts.csswg.org/cssom-view-1/)
5
5
 
6
- enum ScrollBehavior { "auto", "smooth" };
6
+ enum ScrollBehavior { "auto", "instant", "smooth" };
7
7
 
8
8
  dictionary ScrollOptions {
9
9
  ScrollBehavior behavior = "auto";
package/html.idl CHANGED
@@ -2132,13 +2132,13 @@ typedef (CanvasImageSource or
2132
2132
  Blob or
2133
2133
  ImageData) ImageBitmapSource;
2134
2134
 
2135
- enum ImageOrientation { "none", "flipY" };
2135
+ enum ImageOrientation { "from-image", "flipY" };
2136
2136
  enum PremultiplyAlpha { "none", "premultiply", "default" };
2137
2137
  enum ColorSpaceConversion { "none", "default" };
2138
2138
  enum ResizeQuality { "pixelated", "low", "medium", "high" };
2139
2139
 
2140
2140
  dictionary ImageBitmapOptions {
2141
- ImageOrientation imageOrientation = "none";
2141
+ ImageOrientation imageOrientation = "from-image";
2142
2142
  PremultiplyAlpha premultiplyAlpha = "default";
2143
2143
  ColorSpaceConversion colorSpaceConversion = "default";
2144
2144
  [EnforceRange] unsigned long resizeWidth;
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.24.0",
4
+ "version": "3.24.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -7,32 +7,17 @@ partial interface ServiceWorkerRegistration {
7
7
  [SameObject] readonly attribute PaymentManager paymentManager;
8
8
  };
9
9
 
10
- [SecureContext, Exposed=(Window,Worker)]
10
+ [SecureContext, Exposed=(Window)]
11
11
  interface PaymentManager {
12
- [SameObject] readonly attribute PaymentInstruments instruments;
13
12
  attribute DOMString userHint;
13
+ Promise<undefined> enableDelegations(sequence<PaymentDelegation> delegations);
14
14
  };
15
15
 
16
- [SecureContext, Exposed=(Window,Worker)]
17
- interface PaymentInstruments {
18
- Promise<boolean> delete(DOMString instrumentKey);
19
- Promise<any> get(DOMString instrumentKey);
20
- Promise<sequence<DOMString>> keys();
21
- Promise<boolean> has(DOMString instrumentKey);
22
- Promise<undefined> set(DOMString instrumentKey, PaymentInstrument details);
23
- Promise<undefined> clear();
24
- };
25
-
26
- dictionary PaymentInstrument {
27
- required DOMString name;
28
- sequence<ImageObject> icons;
29
- DOMString method;
30
- };
31
-
32
- dictionary ImageObject {
33
- required USVString src;
34
- DOMString sizes;
35
- DOMString type;
16
+ enum PaymentDelegation {
17
+ "shippingAddress",
18
+ "payerName",
19
+ "payerPhone",
20
+ "payerEmail"
36
21
  };
37
22
 
38
23
  partial interface ServiceWorkerGlobalScope {
@@ -53,7 +38,9 @@ dictionary PaymentRequestDetailsUpdate {
53
38
  DOMString error;
54
39
  PaymentCurrencyAmount total;
55
40
  sequence<PaymentDetailsModifier> modifiers;
41
+ sequence<PaymentShippingOption> shippingOptions;
56
42
  object paymentMethodErrors;
43
+ AddressErrors shippingAddressErrors;
57
44
  };
58
45
 
59
46
  [Exposed=ServiceWorker]
@@ -65,8 +52,12 @@ interface PaymentRequestEvent : ExtendableEvent {
65
52
  readonly attribute FrozenArray<PaymentMethodData> methodData;
66
53
  readonly attribute object total;
67
54
  readonly attribute FrozenArray<PaymentDetailsModifier> modifiers;
55
+ readonly attribute object? paymentOptions;
56
+ readonly attribute FrozenArray<PaymentShippingOption>? shippingOptions;
68
57
  Promise<WindowClient?> openWindow(USVString url);
69
58
  Promise<PaymentRequestDetailsUpdate?> changePaymentMethod(DOMString methodName, optional object? methodDetails = null);
59
+ Promise<PaymentRequestDetailsUpdate?> changeShippingAddress(optional AddressInit shippingAddress = {});
60
+ Promise<PaymentRequestDetailsUpdate?> changeShippingOption(DOMString shippingOption);
70
61
  undefined respondWith(Promise<PaymentHandlerResponse> handlerResponsePromise);
71
62
  };
72
63
 
@@ -77,9 +68,64 @@ dictionary PaymentRequestEventInit : ExtendableEventInit {
77
68
  sequence<PaymentMethodData> methodData;
78
69
  PaymentCurrencyAmount total;
79
70
  sequence<PaymentDetailsModifier> modifiers;
71
+ PaymentOptions paymentOptions;
72
+ sequence<PaymentShippingOption> shippingOptions;
80
73
  };
81
74
 
82
75
  dictionary PaymentHandlerResponse {
83
76
  DOMString methodName;
84
77
  object details;
78
+ DOMString? payerName;
79
+ DOMString? payerEmail;
80
+ DOMString? payerPhone;
81
+ AddressInit shippingAddress;
82
+ DOMString? shippingOption;
83
+ };
84
+
85
+ dictionary AddressInit {
86
+ DOMString country = "";
87
+ sequence<DOMString> addressLine = [];
88
+ DOMString region = "";
89
+ DOMString city = "";
90
+ DOMString dependentLocality = "";
91
+ DOMString postalCode = "";
92
+ DOMString sortingCode = "";
93
+ DOMString organization = "";
94
+ DOMString recipient = "";
95
+ DOMString phone = "";
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;
85
131
  };
@@ -1,7 +1,7 @@
1
1
  // GENERATED CONTENT - DO NOT EDIT
2
2
  // Content was automatically extracted by Reffy into webref
3
3
  // (https://github.com/w3c/webref)
4
- // Source: Scroll-linked Animations (https://drafts.csswg.org/scroll-animations-1/)
4
+ // Source: Scroll-driven Animations (https://drafts.csswg.org/scroll-animations-1/)
5
5
 
6
6
  enum ScrollAxis {
7
7
  "block",
package/wai-aria.idl CHANGED
@@ -20,7 +20,7 @@ interface mixin ARIAMixin {
20
20
  [CEReactions] attribute DOMString? ariaDescription;
21
21
  [CEReactions] attribute FrozenArray<Element>? ariaDetailsElements;
22
22
  [CEReactions] attribute DOMString? ariaDisabled;
23
- [CEReactions] attribute Element? ariaErrorMessageElement;
23
+ [CEReactions] attribute FrozenArray<Element>? ariaErrorMessageElements;
24
24
  [CEReactions] attribute DOMString? ariaExpanded;
25
25
  [CEReactions] attribute FrozenArray<Element>? ariaFlowToElements;
26
26
  [CEReactions] attribute DOMString? ariaHasPopup;
package/webnn.idl CHANGED
@@ -36,25 +36,8 @@ interface ML {
36
36
  MLContext createContextSync(GPUDevice gpuDevice);
37
37
  };
38
38
 
39
- typedef record<DOMString, ArrayBufferView> MLNamedArrayBufferViews;
40
-
41
39
  [SecureContext, Exposed=(Window, DedicatedWorker)]
42
- interface MLContext {};
43
-
44
- partial interface MLContext {
45
- [Exposed=(DedicatedWorker)]
46
- undefined computeSync(
47
- MLGraph graph, MLNamedArrayBufferViews inputs, MLNamedArrayBufferViews outputs);
48
- };
49
-
50
- partial interface MLContext {
51
- Promise<undefined> compute(
52
- MLGraph graph, MLNamedArrayBufferViews inputs, MLNamedArrayBufferViews outputs);
53
- };
54
-
55
- partial interface MLContext {
56
- MLCommandEncoder createCommandEncoder();
57
- };
40
+ interface MLGraph {};
58
41
 
59
42
  enum MLInputOperandLayout {
60
43
  "nchw",
@@ -84,6 +67,50 @@ interface MLOperand {};
84
67
  [SecureContext, Exposed=(Window, DedicatedWorker)]
85
68
  interface MLActivation {};
86
69
 
70
+ typedef record<DOMString, ArrayBufferView> MLNamedArrayBufferViews;
71
+
72
+ [SecureContext, Exposed=(Window, DedicatedWorker)]
73
+ interface MLContext {};
74
+
75
+ partial interface MLContext {
76
+ [Exposed=(DedicatedWorker)]
77
+ undefined computeSync(
78
+ MLGraph graph, MLNamedArrayBufferViews inputs, MLNamedArrayBufferViews outputs);
79
+ };
80
+
81
+ dictionary MLComputeResult {
82
+ MLNamedArrayBufferViews inputs;
83
+ MLNamedArrayBufferViews outputs;
84
+ };
85
+
86
+ partial interface MLContext {
87
+ Promise<MLComputeResult> compute(
88
+ MLGraph graph, MLNamedArrayBufferViews inputs, MLNamedArrayBufferViews outputs);
89
+ };
90
+
91
+ partial interface MLContext {
92
+ MLCommandEncoder createCommandEncoder();
93
+ };
94
+
95
+ typedef (GPUBuffer or GPUTexture) MLGPUResource;
96
+
97
+ typedef record<DOMString, MLGPUResource> MLNamedGPUResources;
98
+
99
+ [SecureContext, Exposed=(Window, DedicatedWorker)]
100
+ interface MLCommandEncoder {};
101
+
102
+ partial interface MLCommandEncoder {
103
+ undefined initializeGraph(MLGraph graph);
104
+ };
105
+
106
+ partial interface MLCommandEncoder {
107
+ undefined dispatch(MLGraph graph, MLNamedGPUResources inputs, MLNamedGPUResources outputs);
108
+ };
109
+
110
+ partial interface MLCommandEncoder {
111
+ GPUCommandBuffer finish(optional GPUCommandBufferDescriptor descriptor = {});
112
+ };
113
+
87
114
  typedef record<DOMString, MLOperand> MLNamedOperands;
88
115
 
89
116
  dictionary MLBufferResourceView {
@@ -264,9 +291,7 @@ dictionary MLGruOptions {
264
291
 
265
292
  partial interface MLGraphBuilder {
266
293
  sequence<MLOperand> gru(MLOperand input, MLOperand weight, MLOperand recurrentWeight,
267
-
268
294
  unsigned long steps, unsigned long hiddenSize,
269
-
270
295
  optional MLGruOptions options = {});
271
296
  };
272
297
 
@@ -281,7 +306,6 @@ dictionary MLGruCellOptions {
281
306
  partial interface MLGraphBuilder {
282
307
  MLOperand gruCell(MLOperand input, MLOperand weight, MLOperand recurrentWeight,
283
308
  MLOperand hiddenState, unsigned long hiddenSize,
284
-
285
309
  optional MLGruCellOptions options = {});
286
310
  };
287
311
 
@@ -350,9 +374,7 @@ dictionary MLLstmOptions {
350
374
 
351
375
  partial interface MLGraphBuilder {
352
376
  sequence<MLOperand> lstm(MLOperand input, MLOperand weight, MLOperand recurrentWeight,
353
-
354
377
  unsigned long steps, unsigned long hiddenSize,
355
-
356
378
  optional MLLstmOptions options = {});
357
379
  };
358
380
 
@@ -367,7 +389,6 @@ dictionary MLLstmCellOptions {
367
389
  partial interface MLGraphBuilder {
368
390
  sequence<MLOperand> lstmCell(MLOperand input, MLOperand weight, MLOperand recurrentWeight,
369
391
  MLOperand hiddenState, MLOperand cellState, unsigned long hiddenSize,
370
-
371
392
  optional MLLstmCellOptions options = {});
372
393
  };
373
394
 
@@ -519,25 +540,3 @@ dictionary MLTransposeOptions {
519
540
  partial interface MLGraphBuilder {
520
541
  MLOperand transpose(MLOperand input, optional MLTransposeOptions options = {});
521
542
  };
522
-
523
- [SecureContext, Exposed=(Window, DedicatedWorker)]
524
- interface MLGraph {};
525
-
526
- typedef (GPUBuffer or GPUTexture) MLGPUResource;
527
-
528
- typedef record<DOMString, MLGPUResource> MLNamedGPUResources;
529
-
530
- [SecureContext, Exposed=(Window, DedicatedWorker)]
531
- interface MLCommandEncoder {};
532
-
533
- partial interface MLCommandEncoder {
534
- undefined initializeGraph(MLGraph graph);
535
- };
536
-
537
- partial interface MLCommandEncoder {
538
- undefined dispatch(MLGraph graph, MLNamedGPUResources inputs, MLNamedGPUResources outputs);
539
- };
540
-
541
- partial interface MLCommandEncoder {
542
- GPUCommandBuffer finish(optional GPUCommandBufferDescriptor descriptor = {});
543
- };
package/webrtc-stats.idl CHANGED
@@ -182,6 +182,7 @@ dictionary RTCVideoSourceStats : RTCMediaSourceStats {
182
182
  };
183
183
 
184
184
  dictionary RTCAudioPlayoutStats : RTCStats {
185
+ required DOMString kind;
185
186
  double synthesizedSamplesDuration;
186
187
  unsigned long synthesizedSamplesEvents;
187
188
  double totalSamplesDuration;
package/webrtc-svc.idl CHANGED
@@ -6,7 +6,3 @@
6
6
  partial dictionary RTCRtpEncodingParameters {
7
7
  DOMString scalabilityMode;
8
8
  };
9
-
10
- partial dictionary RTCRtpCodecCapability {
11
- sequence<DOMString> scalabilityModes;
12
- };
package/webxrlayers.idl CHANGED
@@ -15,7 +15,6 @@ enum XRLayerLayout {
15
15
  readonly attribute XRLayerLayout layout;
16
16
 
17
17
  attribute boolean blendTextureSourceAlpha;
18
- attribute boolean? chromaticAberrationCorrection;
19
18
  attribute boolean forceMonoPresentation;
20
19
  attribute float opacity;
21
20
  readonly attribute unsigned long mipLevels;