@webref/idl 3.44.0 → 3.44.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.
@@ -21,5 +21,5 @@ enum ViewTransitionNavigation { "auto", "none" };
21
21
  [Exposed=Window]
22
22
  interface CSSViewTransitionRule : CSSRule {
23
23
  attribute ViewTransitionNavigation navigation;
24
- attribute DOMTokenList type;
24
+ attribute DOMTokenList typeList;
25
25
  };
package/html.idl CHANGED
@@ -2061,6 +2061,18 @@ dictionary HashChangeEventInit : EventInit {
2061
2061
  USVString newURL = "";
2062
2062
  };
2063
2063
 
2064
+ [Exposed=Window]
2065
+ interface PageSwapEvent : Event {
2066
+ constructor(DOMString type, optional PageSwapEventInit eventInitDict = {});
2067
+ readonly attribute NavigationActivation? activation;
2068
+ readonly attribute ViewTransition? viewTransition;
2069
+ };
2070
+
2071
+ dictionary PageSwapEventInit : EventInit {
2072
+ NavigationActivation? activation = null;
2073
+ ViewTransition? viewTransition = null;
2074
+ };
2075
+
2064
2076
  [Exposed=Window]
2065
2077
  interface PageRevealEvent : Event {
2066
2078
  constructor(DOMString type, optional PageRevealEventInit eventInitDict = {});
@@ -2239,6 +2251,7 @@ interface mixin WindowEventHandlers {
2239
2251
  attribute EventHandler onpagehide;
2240
2252
  attribute EventHandler onpagereveal;
2241
2253
  attribute EventHandler onpageshow;
2254
+ attribute EventHandler onpageswap;
2242
2255
  attribute EventHandler onpopstate;
2243
2256
  attribute EventHandler onrejectionhandled;
2244
2257
  attribute EventHandler onstorage;
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.44.0",
4
+ "version": "3.44.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
package/webnn.idl CHANGED
@@ -31,21 +31,15 @@ interface ML {
31
31
  Promise<MLContext> createContext(GPUDevice gpuDevice);
32
32
  };
33
33
 
34
- [SecureContext, Exposed=(Window, DedicatedWorker)]
35
- interface MLActivation {
36
- };
37
-
38
34
  typedef record<DOMString, ArrayBufferView> MLNamedArrayBufferViews;
39
35
 
40
- [SecureContext, Exposed=(Window, DedicatedWorker)]
41
- interface MLContext {};
42
-
43
36
  dictionary MLComputeResult {
44
37
  MLNamedArrayBufferViews inputs;
45
38
  MLNamedArrayBufferViews outputs;
46
39
  };
47
40
 
48
- partial interface MLContext {
41
+ [SecureContext, Exposed=(Window, DedicatedWorker)]
42
+ interface MLContext {
49
43
  Promise<MLComputeResult> compute(
50
44
  MLGraph graph, MLNamedArrayBufferViews inputs, MLNamedArrayBufferViews outputs);
51
45
  };
@@ -53,6 +47,40 @@ partial interface MLContext {
53
47
  [SecureContext, Exposed=(Window, DedicatedWorker)]
54
48
  interface MLGraph {};
55
49
 
50
+ enum MLInputOperandLayout {
51
+ "nchw",
52
+ "nhwc"
53
+ };
54
+
55
+ enum MLOperandDataType {
56
+ "float32",
57
+ "float16",
58
+ "int32",
59
+ "uint32",
60
+ "int64",
61
+ "uint64",
62
+ "int8",
63
+ "uint8"
64
+ };
65
+
66
+ dictionary MLOperandDescriptor {
67
+ // The operand type.
68
+ required MLOperandDataType dataType;
69
+
70
+ // The dimensions field is empty for scalar operands,
71
+ // and non-empty for tensor operands.
72
+ sequence<unsigned long> dimensions = [];
73
+ };
74
+
75
+ [SecureContext, Exposed=(Window, DedicatedWorker)]
76
+ interface MLOperand {
77
+ MLOperandDataType dataType();
78
+ sequence<unsigned long> shape();
79
+ };
80
+
81
+ [SecureContext, Exposed=(Window, DedicatedWorker)]
82
+ interface MLActivation {};
83
+
56
84
  typedef record<DOMString, MLOperand> MLNamedOperands;
57
85
 
58
86
  [SecureContext, Exposed=(Window, DedicatedWorker)]
@@ -122,17 +150,10 @@ enum MLConv2dFilterOperandLayout {
122
150
  "ihwo"
123
151
  };
124
152
 
125
- enum MLAutoPad {
126
- "explicit",
127
- "same-upper",
128
- "same-lower"
129
- };
130
-
131
153
  dictionary MLConv2dOptions {
132
154
  sequence<unsigned long> padding;
133
155
  sequence<unsigned long> strides;
134
156
  sequence<unsigned long> dilations;
135
- MLAutoPad autoPad = "explicit";
136
157
  unsigned long groups = 1;
137
158
  MLInputOperandLayout inputLayout = "nchw";
138
159
  MLConv2dFilterOperandLayout filterLayout = "oihw";
@@ -156,7 +177,6 @@ dictionary MLConvTranspose2dOptions {
156
177
  sequence<unsigned long> dilations;
157
178
  sequence<unsigned long> outputPadding;
158
179
  sequence<unsigned long> outputSizes;
159
- MLAutoPad autoPad = "explicit";
160
180
  unsigned long groups = 1;
161
181
  MLInputOperandLayout inputLayout = "nchw";
162
182
  MLConvTranspose2dFilterOperandLayout filterLayout = "iohw";
@@ -406,7 +426,6 @@ dictionary MLPool2dOptions {
406
426
  sequence<unsigned long> padding;
407
427
  sequence<unsigned long> strides;
408
428
  sequence<unsigned long> dilations;
409
- MLAutoPad autoPad = "explicit";
410
429
  MLInputOperandLayout layout = "nchw";
411
430
  MLRoundingType roundingType = "floor";
412
431
  sequence<unsigned long> outputSizes;
@@ -528,38 +547,3 @@ partial interface MLGraphBuilder {
528
547
  partial interface MLGraphBuilder {
529
548
  MLOperand where(MLOperand condition, MLOperand input, MLOperand other);
530
549
  };
531
-
532
- [SecureContext, Exposed=(Window, DedicatedWorker)]
533
- interface MLOperand {};
534
-
535
- partial interface MLOperand {
536
- MLOperandDataType dataType();
537
- };
538
-
539
- partial interface MLOperand {
540
- sequence<unsigned long> shape();
541
- };
542
-
543
- enum MLInputOperandLayout {
544
- "nchw",
545
- "nhwc"
546
- };
547
-
548
- enum MLOperandDataType {
549
- "float32",
550
- "float16",
551
- "int32",
552
- "uint32",
553
- "int64",
554
- "uint64",
555
- "int8",
556
- "uint8"
557
- };
558
-
559
- dictionary MLOperandDescriptor {
560
- // The operand type.
561
- required MLOperandDataType dataType;
562
-
563
- // The dimensions field is only required for tensor operands.
564
- sequence<unsigned long> dimensions = [];
565
- };
package/webtransport.idl CHANGED
@@ -23,6 +23,9 @@ interface WebTransport {
23
23
  readonly attribute Promise<undefined> ready;
24
24
  readonly attribute WebTransportReliabilityMode reliability;
25
25
  readonly attribute WebTransportCongestionControl congestionControl;
26
+ [EnforceRange] attribute unsigned short? anticipatedConcurrentIncomingUnidirectionalStreams;
27
+ [EnforceRange] attribute unsigned short? anticipatedConcurrentIncomingBidirectionalStreams;
28
+
26
29
  readonly attribute Promise<WebTransportCloseInfo> closed;
27
30
  readonly attribute Promise<undefined> draining;
28
31
  undefined close(optional WebTransportCloseInfo closeInfo = {});
@@ -59,6 +62,8 @@ dictionary WebTransportOptions {
59
62
  boolean requireUnreliable = false;
60
63
  sequence<WebTransportHash> serverCertificateHashes;
61
64
  WebTransportCongestionControl congestionControl = "default";
65
+ [EnforceRange] unsigned short? anticipatedConcurrentIncomingUnidirectionalStreams = null;
66
+ [EnforceRange] unsigned short? anticipatedConcurrentIncomingBidirectionalStreams = null;
62
67
  };
63
68
 
64
69
  enum WebTransportCongestionControl {