@webref/idl 3.23.0 → 3.24.1

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.
File without changes
package/fs.idl CHANGED
@@ -75,7 +75,7 @@ interface FileSystemWritableFileStream : WritableStream {
75
75
  };
76
76
 
77
77
  dictionary FileSystemReadWriteOptions {
78
- [EnforceRange] unsigned long long at = 0;
78
+ [EnforceRange] unsigned long long at;
79
79
  };
80
80
 
81
81
  [Exposed=DedicatedWorker, SecureContext]
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.23.0",
4
+ "version": "3.24.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -11,6 +11,14 @@ partial interface ServiceWorkerRegistration {
11
11
  interface PaymentManager {
12
12
  [SameObject] readonly attribute PaymentInstruments instruments;
13
13
  attribute DOMString userHint;
14
+ Promise<undefined> enableDelegations(sequence<PaymentDelegation> delegations);
15
+ };
16
+
17
+ enum PaymentDelegation {
18
+ "shippingAddress",
19
+ "payerName",
20
+ "payerPhone",
21
+ "payerEmail"
14
22
  };
15
23
 
16
24
  [SecureContext, Exposed=(Window,Worker)]
@@ -53,7 +61,9 @@ dictionary PaymentRequestDetailsUpdate {
53
61
  DOMString error;
54
62
  PaymentCurrencyAmount total;
55
63
  sequence<PaymentDetailsModifier> modifiers;
64
+ sequence<PaymentShippingOption> shippingOptions;
56
65
  object paymentMethodErrors;
66
+ AddressErrors shippingAddressErrors;
57
67
  };
58
68
 
59
69
  [Exposed=ServiceWorker]
@@ -65,8 +75,12 @@ interface PaymentRequestEvent : ExtendableEvent {
65
75
  readonly attribute FrozenArray<PaymentMethodData> methodData;
66
76
  readonly attribute object total;
67
77
  readonly attribute FrozenArray<PaymentDetailsModifier> modifiers;
78
+ readonly attribute object? paymentOptions;
79
+ readonly attribute FrozenArray<PaymentShippingOption>? shippingOptions;
68
80
  Promise<WindowClient?> openWindow(USVString url);
69
81
  Promise<PaymentRequestDetailsUpdate?> changePaymentMethod(DOMString methodName, optional object? methodDetails = null);
82
+ Promise<PaymentRequestDetailsUpdate?> changeShippingAddress(optional AddressInit shippingAddress = {});
83
+ Promise<PaymentRequestDetailsUpdate?> changeShippingOption(DOMString shippingOption);
70
84
  undefined respondWith(Promise<PaymentHandlerResponse> handlerResponsePromise);
71
85
  };
72
86
 
@@ -77,9 +91,64 @@ dictionary PaymentRequestEventInit : ExtendableEventInit {
77
91
  sequence<PaymentMethodData> methodData;
78
92
  PaymentCurrencyAmount total;
79
93
  sequence<PaymentDetailsModifier> modifiers;
94
+ PaymentOptions paymentOptions;
95
+ sequence<PaymentShippingOption> shippingOptions;
80
96
  };
81
97
 
82
98
  dictionary PaymentHandlerResponse {
83
99
  DOMString methodName;
84
100
  object details;
101
+ DOMString? payerName;
102
+ DOMString? payerEmail;
103
+ DOMString? payerPhone;
104
+ AddressInit shippingAddress;
105
+ DOMString? shippingOption;
106
+ };
107
+
108
+ dictionary AddressInit {
109
+ DOMString country = "";
110
+ sequence<DOMString> addressLine = [];
111
+ DOMString region = "";
112
+ DOMString city = "";
113
+ DOMString dependentLocality = "";
114
+ DOMString postalCode = "";
115
+ DOMString sortingCode = "";
116
+ DOMString organization = "";
117
+ DOMString recipient = "";
118
+ DOMString phone = "";
119
+ };
120
+
121
+ dictionary PaymentOptions {
122
+ boolean requestPayerName = false;
123
+ boolean requestBillingAddress = false;
124
+ boolean requestPayerEmail = false;
125
+ boolean requestPayerPhone = false;
126
+ boolean requestShipping = false;
127
+ PaymentShippingType shippingType = "shipping";
128
+ };
129
+
130
+ dictionary PaymentShippingOption {
131
+ required DOMString id;
132
+ required DOMString label;
133
+ required PaymentCurrencyAmount amount;
134
+ boolean selected = false;
135
+ };
136
+
137
+ enum PaymentShippingType {
138
+ "shipping",
139
+ "delivery",
140
+ "pickup"
141
+ };
142
+
143
+ dictionary AddressErrors {
144
+ DOMString addressLine;
145
+ DOMString city;
146
+ DOMString country;
147
+ DOMString dependentLocality;
148
+ DOMString organization;
149
+ DOMString phone;
150
+ DOMString postalCode;
151
+ DOMString recipient;
152
+ DOMString region;
153
+ DOMString sortingCode;
85
154
  };
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
@@ -47,8 +47,13 @@ partial interface MLContext {
47
47
  MLGraph graph, MLNamedArrayBufferViews inputs, MLNamedArrayBufferViews outputs);
48
48
  };
49
49
 
50
+ dictionary MLComputeResult {
51
+ MLNamedArrayBufferViews inputs;
52
+ MLNamedArrayBufferViews outputs;
53
+ };
54
+
50
55
  partial interface MLContext {
51
- Promise<undefined> compute(
56
+ Promise<MLComputeResult> compute(
52
57
  MLGraph graph, MLNamedArrayBufferViews inputs, MLNamedArrayBufferViews outputs);
53
58
  };
54
59
 
@@ -82,7 +87,7 @@ dictionary MLOperandDescriptor {
82
87
  interface MLOperand {};
83
88
 
84
89
  [SecureContext, Exposed=(Window, DedicatedWorker)]
85
- interface MLOperator {};
90
+ interface MLActivation {};
86
91
 
87
92
  typedef record<DOMString, MLOperand> MLNamedOperands;
88
93
 
@@ -121,7 +126,7 @@ dictionary MLBatchNormalizationOptions {
121
126
  MLOperand bias;
122
127
  long axis = 1;
123
128
  float epsilon = 1e-5;
124
- MLOperator activation;
129
+ MLActivation activation;
125
130
  };
126
131
 
127
132
  partial interface MLGraphBuilder {
@@ -136,7 +141,7 @@ dictionary MLClampOptions {
136
141
 
137
142
  partial interface MLGraphBuilder {
138
143
  MLOperand clamp(MLOperand x, optional MLClampOptions options = {});
139
- MLOperator clamp(optional MLClampOptions options = {});
144
+ MLActivation clamp(optional MLClampOptions options = {});
140
145
  };
141
146
 
142
147
  partial interface MLGraphBuilder {
@@ -165,7 +170,7 @@ dictionary MLConv2dOptions {
165
170
  MLInputOperandLayout inputLayout = "nchw";
166
171
  MLConv2dFilterOperandLayout filterLayout = "oihw";
167
172
  MLOperand bias;
168
- MLOperator activation;
173
+ MLActivation activation;
169
174
  };
170
175
 
171
176
  partial interface MLGraphBuilder {
@@ -189,7 +194,7 @@ dictionary MLConvTranspose2dOptions {
189
194
  MLInputOperandLayout inputLayout = "nchw";
190
195
  MLConvTranspose2dFilterOperandLayout filterLayout = "iohw";
191
196
  MLOperand bias;
192
- MLOperator activation;
197
+ MLActivation activation;
193
198
  };
194
199
 
195
200
  partial interface MLGraphBuilder {
@@ -225,7 +230,7 @@ dictionary MLEluOptions {
225
230
 
226
231
  partial interface MLGraphBuilder {
227
232
  MLOperand elu(MLOperand x, optional MLEluOptions options = {});
228
- MLOperator elu(optional MLEluOptions options = {});
233
+ MLActivation elu(optional MLEluOptions options = {});
229
234
  };
230
235
 
231
236
  dictionary MLGemmOptions {
@@ -240,7 +245,7 @@ partial interface MLGraphBuilder {
240
245
  MLOperand gemm(MLOperand a, MLOperand b, optional MLGemmOptions options = {});
241
246
  };
242
247
 
243
- enum MLRecurrentNetworkWeightLayout {
248
+ enum MLGruWeightLayout {
244
249
  "zrn", // update-reset-new gate ordering
245
250
  "rzn" // reset-update-new gate ordering
246
251
  };
@@ -258,26 +263,31 @@ dictionary MLGruOptions {
258
263
  boolean resetAfter = true;
259
264
  boolean returnSequence = false;
260
265
  MLRecurrentNetworkDirection direction = "forward";
261
- MLRecurrentNetworkWeightLayout layout = "zrn";
262
- sequence<MLOperator> activations;
266
+ MLGruWeightLayout layout = "zrn";
267
+ sequence<MLActivation> activations;
263
268
  };
264
269
 
265
270
  partial interface MLGraphBuilder {
266
271
  sequence<MLOperand> gru(MLOperand input, MLOperand weight, MLOperand recurrentWeight,
267
- long steps, long hiddenSize, optional MLGruOptions options = {});
272
+
273
+ unsigned long steps, unsigned long hiddenSize,
274
+
275
+ optional MLGruOptions options = {});
268
276
  };
269
277
 
270
278
  dictionary MLGruCellOptions {
271
279
  MLOperand bias;
272
280
  MLOperand recurrentBias;
273
281
  boolean resetAfter = true;
274
- MLRecurrentNetworkWeightLayout layout = "zrn";
275
- sequence<MLOperator> activations;
282
+ MLGruWeightLayout layout = "zrn";
283
+ sequence<MLActivation> activations;
276
284
  };
277
285
 
278
286
  partial interface MLGraphBuilder {
279
287
  MLOperand gruCell(MLOperand input, MLOperand weight, MLOperand recurrentWeight,
280
- MLOperand hiddenState, long hiddenSize, optional MLGruCellOptions options = {});
288
+ MLOperand hiddenState, unsigned long hiddenSize,
289
+
290
+ optional MLGruCellOptions options = {});
281
291
  };
282
292
 
283
293
  dictionary MLHardSigmoidOptions {
@@ -287,12 +297,12 @@ dictionary MLHardSigmoidOptions {
287
297
 
288
298
  partial interface MLGraphBuilder {
289
299
  MLOperand hardSigmoid(MLOperand x, optional MLHardSigmoidOptions options = {});
290
- MLOperator hardSigmoid(optional MLHardSigmoidOptions options = {});
300
+ MLActivation hardSigmoid(optional MLHardSigmoidOptions options = {});
291
301
  };
292
302
 
293
303
  partial interface MLGraphBuilder {
294
304
  MLOperand hardSwish(MLOperand x);
295
- MLOperator hardSwish();
305
+ MLActivation hardSwish();
296
306
  };
297
307
 
298
308
  dictionary MLInstanceNormalizationOptions {
@@ -313,11 +323,7 @@ dictionary MLLeakyReluOptions {
313
323
 
314
324
  partial interface MLGraphBuilder {
315
325
  MLOperand leakyRelu(MLOperand x, optional MLLeakyReluOptions options = {});
316
- MLOperator leakyRelu(optional MLLeakyReluOptions options = {});
317
- };
318
-
319
- partial interface MLGraphBuilder {
320
- MLOperand matmul(MLOperand a, MLOperand b);
326
+ MLActivation leakyRelu(optional MLLeakyReluOptions options = {});
321
327
  };
322
328
 
323
329
  dictionary MLLinearOptions {
@@ -327,7 +333,51 @@ dictionary MLLinearOptions {
327
333
 
328
334
  partial interface MLGraphBuilder {
329
335
  MLOperand linear(MLOperand x, optional MLLinearOptions options = {});
330
- MLOperator linear(optional MLLinearOptions options = {});
336
+ MLActivation linear(optional MLLinearOptions options = {});
337
+ };
338
+
339
+ enum MLLstmWeightLayout {
340
+ "iofg", // input-output-forget-cell gate ordering
341
+ "ifgo" // input-forget-cell-output gate ordering
342
+ };
343
+
344
+ dictionary MLLstmOptions {
345
+ MLOperand bias;
346
+ MLOperand recurrentBias;
347
+ MLOperand peepholeWeight;
348
+ MLOperand initialHiddenState;
349
+ MLOperand initialCellState;
350
+ boolean returnSequence = false;
351
+ MLRecurrentNetworkDirection direction = "forward";
352
+ MLLstmWeightLayout layout = "iofg";
353
+ sequence<MLActivation> activations;
354
+ };
355
+
356
+ partial interface MLGraphBuilder {
357
+ sequence<MLOperand> lstm(MLOperand input, MLOperand weight, MLOperand recurrentWeight,
358
+
359
+ unsigned long steps, unsigned long hiddenSize,
360
+
361
+ optional MLLstmOptions options = {});
362
+ };
363
+
364
+ dictionary MLLstmCellOptions {
365
+ MLOperand bias;
366
+ MLOperand recurrentBias;
367
+ MLOperand peepholeWeight;
368
+ MLLstmWeightLayout layout = "iofg";
369
+ sequence<MLActivation> activations;
370
+ };
371
+
372
+ partial interface MLGraphBuilder {
373
+ sequence<MLOperand> lstmCell(MLOperand input, MLOperand weight, MLOperand recurrentWeight,
374
+ MLOperand hiddenState, MLOperand cellState, unsigned long hiddenSize,
375
+
376
+ optional MLLstmCellOptions options = {});
377
+ };
378
+
379
+ partial interface MLGraphBuilder {
380
+ MLOperand matmul(MLOperand a, MLOperand b);
331
381
  };
332
382
 
333
383
  enum MLPaddingMode {
@@ -388,7 +438,7 @@ partial interface MLGraphBuilder {
388
438
 
389
439
  partial interface MLGraphBuilder {
390
440
  MLOperand relu(MLOperand x);
391
- MLOperator relu();
441
+ MLActivation relu();
392
442
  };
393
443
 
394
444
  enum MLInterpolationMode {
@@ -413,7 +463,7 @@ partial interface MLGraphBuilder {
413
463
 
414
464
  partial interface MLGraphBuilder {
415
465
  MLOperand sigmoid(MLOperand x);
416
- MLOperator sigmoid();
466
+ MLActivation sigmoid();
417
467
  };
418
468
 
419
469
  dictionary MLSliceOptions {
@@ -427,6 +477,7 @@ partial interface MLGraphBuilder {
427
477
 
428
478
  partial interface MLGraphBuilder {
429
479
  MLOperand softmax(MLOperand x);
480
+ MLActivation softmax();
430
481
  };
431
482
 
432
483
  dictionary MLSoftplusOptions {
@@ -435,12 +486,12 @@ dictionary MLSoftplusOptions {
435
486
 
436
487
  partial interface MLGraphBuilder {
437
488
  MLOperand softplus(MLOperand x, optional MLSoftplusOptions options = {});
438
- MLOperator softplus(optional MLSoftplusOptions options = {});
489
+ MLActivation softplus(optional MLSoftplusOptions options = {});
439
490
  };
440
491
 
441
492
  partial interface MLGraphBuilder {
442
493
  MLOperand softsign(MLOperand x);
443
- MLOperator softsign();
494
+ MLActivation softsign();
444
495
  };
445
496
 
446
497
  dictionary MLSplitOptions {
@@ -463,7 +514,7 @@ partial interface MLGraphBuilder {
463
514
 
464
515
  partial interface MLGraphBuilder {
465
516
  MLOperand tanh(MLOperand x);
466
- MLOperator tanh();
517
+ MLActivation tanh();
467
518
  };
468
519
 
469
520
  dictionary MLTransposeOptions {