@webref/idl 3.34.0 → 3.34.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.
@@ -0,0 +1,34 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: Document Picture-in-Picture Specification (https://wicg.github.io/document-picture-in-picture/)
5
+
6
+ [Exposed=Window]
7
+ partial interface Window {
8
+ [SameObject, SecureContext] readonly attribute DocumentPictureInPicture
9
+ documentPictureInPicture;
10
+ };
11
+
12
+ [Exposed=Window, SecureContext]
13
+ interface DocumentPictureInPicture : EventTarget {
14
+ [NewObject] Promise<Window> requestWindow(
15
+ optional DocumentPictureInPictureOptions options = {});
16
+ readonly attribute Window window;
17
+ attribute EventHandler onenter;
18
+ };
19
+
20
+ dictionary DocumentPictureInPictureOptions {
21
+ [EnforceRange] unsigned long long width = 0;
22
+ [EnforceRange] unsigned long long height = 0;
23
+ boolean copyStyleSheets = false;
24
+ };
25
+
26
+ [Exposed=Window]
27
+ interface DocumentPictureInPictureEvent : Event {
28
+ constructor(DOMString type, DocumentPictureInPictureEventInit eventInitDict);
29
+ [SameObject] readonly attribute Window window;
30
+ };
31
+
32
+ dictionary DocumentPictureInPictureEventInit : EventInit {
33
+ required Window window;
34
+ };
package/dom.idl CHANGED
@@ -95,6 +95,7 @@ interface AbortController {
95
95
  interface AbortSignal : EventTarget {
96
96
  [NewObject] static AbortSignal abort(optional any reason);
97
97
  [Exposed=(Window,Worker), NewObject] static AbortSignal timeout([EnforceRange] unsigned long long milliseconds);
98
+ [NewObject] static AbortSignal _any(sequence<AbortSignal> signals);
98
99
 
99
100
  readonly attribute boolean aborted;
100
101
  readonly attribute any reason;
package/fenced-frame.idl CHANGED
@@ -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: Fenced frame (https://wicg.github.io/fenced-frame/)
4
+ // Source: Fenced Frame (https://wicg.github.io/fenced-frame/)
5
5
 
6
6
  [Exposed=Window]
7
7
  interface HTMLFencedFrameElement : HTMLElement {
@@ -20,7 +20,6 @@ typedef USVString FencedFrameConfigURL;
20
20
 
21
21
  [Exposed=Window]
22
22
  interface FencedFrameConfig {
23
- readonly attribute FencedFrameConfigURL? url;
24
23
  readonly attribute FencedFrameConfigSize? containerWidth;
25
24
  readonly attribute FencedFrameConfigSize? containerHeight;
26
25
  readonly attribute FencedFrameConfigSize? contentWidth;
package/notifications.idl CHANGED
@@ -28,7 +28,7 @@ interface Notification : EventTarget {
28
28
  [SameObject] readonly attribute FrozenArray<unsigned long> vibrate;
29
29
  readonly attribute EpochTimeStamp timestamp;
30
30
  readonly attribute boolean renotify;
31
- readonly attribute boolean silent;
31
+ readonly attribute boolean? silent;
32
32
  readonly attribute boolean requireInteraction;
33
33
  [SameObject] readonly attribute any data;
34
34
  [SameObject] readonly attribute FrozenArray<NotificationAction> actions;
@@ -47,7 +47,7 @@ dictionary NotificationOptions {
47
47
  VibratePattern vibrate;
48
48
  EpochTimeStamp timestamp;
49
49
  boolean renotify = false;
50
- boolean silent = false;
50
+ boolean? silent = null;
51
51
  boolean requireInteraction = false;
52
52
  any data = null;
53
53
  sequence<NotificationAction> actions = [];
@@ -72,6 +72,7 @@ dictionary NotificationAction {
72
72
  };
73
73
 
74
74
  callback NotificationPermissionCallback = undefined (NotificationPermission permission);
75
+
75
76
  dictionary GetNotificationOptions {
76
77
  DOMString tag = "";
77
78
  };
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.34.0",
4
+ "version": "3.34.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -12,6 +12,6 @@
12
12
  "license": "MIT",
13
13
  "main": "index.js",
14
14
  "peerDependencies": {
15
- "webidl2": "^24.2.2"
15
+ "webidl2": "^24.3.0"
16
16
  }
17
17
  }
@@ -18,6 +18,7 @@ partial interface Document {
18
18
  partial interface HTMLIFrameElement {
19
19
  [SameObject] readonly attribute PermissionsPolicy permissionsPolicy;
20
20
  };
21
+
21
22
  [Exposed=Window]
22
23
  interface PermissionsPolicyViolationReportBody : ReportBody {
23
24
  readonly attribute DOMString featureId;
@@ -26,6 +26,7 @@ interface PerformanceResourceTiming : PerformanceEntry {
26
26
  readonly attribute unsigned long long decodedBodySize;
27
27
  readonly attribute unsigned short responseStatus;
28
28
  readonly attribute RenderBlockingStatusType renderBlockingStatus;
29
+ readonly attribute DOMString contentType;
29
30
  [Default] object toJSON();
30
31
  };
31
32
 
@@ -45,8 +45,14 @@ interface TaskController : AbortController {
45
45
  undefined setPriority(TaskPriority priority);
46
46
  };
47
47
 
48
+ dictionary TaskSignalAnyInit {
49
+ (TaskPriority or TaskSignal) priority = "user-visible";
50
+ };
51
+
48
52
  [Exposed=(Window, Worker)]
49
53
  interface TaskSignal : AbortSignal {
54
+ [NewObject] static TaskSignal _any(sequence<AbortSignal> signals, optional TaskSignalAnyInit init = {});
55
+
50
56
  readonly attribute TaskPriority priority;
51
57
 
52
58
  attribute EventHandler onprioritychange;
package/webauthn.idl CHANGED
@@ -17,34 +17,34 @@ typedef DOMString Base64URLString;
17
17
  typedef (RegistrationResponseJSON or AuthenticationResponseJSON) PublicKeyCredentialJSON;
18
18
 
19
19
  dictionary RegistrationResponseJSON {
20
- Base64URLString id;
21
- Base64URLString rawId;
22
- AuthenticatorAttestationResponseJSON response;
23
- DOMString? authenticatorAttachment;
24
- AuthenticationExtensionsClientOutputsJSON clientExtensionResults;
25
- DOMString type;
20
+ required Base64URLString id;
21
+ required Base64URLString rawId;
22
+ required AuthenticatorAttestationResponseJSON response;
23
+ DOMString authenticatorAttachment;
24
+ required AuthenticationExtensionsClientOutputsJSON clientExtensionResults;
25
+ required DOMString type;
26
26
  };
27
27
 
28
28
  dictionary AuthenticatorAttestationResponseJSON {
29
- Base64URLString clientDataJSON;
30
- Base64URLString attestationObject;
31
- sequence<DOMString> transports;
29
+ required Base64URLString clientDataJSON;
30
+ required Base64URLString attestationObject;
31
+ required sequence<DOMString> transports;
32
32
  };
33
33
 
34
34
  dictionary AuthenticationResponseJSON {
35
- Base64URLString id;
36
- Base64URLString rawId;
37
- AuthenticatorAssertionResponseJSON response;
38
- DOMString? authenticatorAttachment;
39
- AuthenticationExtensionsClientOutputsJSON clientExtensionResults;
40
- DOMString type;
35
+ required Base64URLString id;
36
+ required Base64URLString rawId;
37
+ required AuthenticatorAssertionResponseJSON response;
38
+ DOMString authenticatorAttachment;
39
+ required AuthenticationExtensionsClientOutputsJSON clientExtensionResults;
40
+ required DOMString type;
41
41
  };
42
42
 
43
43
  dictionary AuthenticatorAssertionResponseJSON {
44
- Base64URLString clientDataJSON;
45
- Base64URLString authenticatorData;
46
- Base64URLString signature;
47
- Base64URLString? userHandle;
44
+ required Base64URLString clientDataJSON;
45
+ required Base64URLString authenticatorData;
46
+ required Base64URLString signature;
47
+ Base64URLString userHandle;
48
48
  };
49
49
 
50
50
  dictionary AuthenticationExtensionsClientOutputsJSON {
package/webgpu.idl CHANGED
@@ -152,8 +152,8 @@ GPUDevice includes GPUObjectBase;
152
152
 
153
153
  [Exposed=(Window, DedicatedWorker), SecureContext]
154
154
  interface GPUBuffer {
155
- readonly attribute GPUSize64 size;
156
- readonly attribute GPUBufferUsageFlags usage;
155
+ readonly attribute GPUSize64Out size;
156
+ readonly attribute GPUFlagsConstant usage;
157
157
 
158
158
  readonly attribute GPUBufferMapState mapState;
159
159
 
@@ -206,14 +206,14 @@ interface GPUTexture {
206
206
 
207
207
  undefined destroy();
208
208
 
209
- readonly attribute GPUIntegerCoordinate width;
210
- readonly attribute GPUIntegerCoordinate height;
211
- readonly attribute GPUIntegerCoordinate depthOrArrayLayers;
212
- readonly attribute GPUIntegerCoordinate mipLevelCount;
213
- readonly attribute GPUSize32 sampleCount;
209
+ readonly attribute GPUIntegerCoordinateOut width;
210
+ readonly attribute GPUIntegerCoordinateOut height;
211
+ readonly attribute GPUIntegerCoordinateOut depthOrArrayLayers;
212
+ readonly attribute GPUIntegerCoordinateOut mipLevelCount;
213
+ readonly attribute GPUSize32Out sampleCount;
214
214
  readonly attribute GPUTextureDimension dimension;
215
215
  readonly attribute GPUTextureFormat format;
216
- readonly attribute GPUTextureUsageFlags usage;
216
+ readonly attribute GPUFlagsConstant usage;
217
217
  };
218
218
  GPUTexture includes GPUObjectBase;
219
219
 
@@ -1141,7 +1141,7 @@ interface GPUQuerySet {
1141
1141
  undefined destroy();
1142
1142
 
1143
1143
  readonly attribute GPUQueryType type;
1144
- readonly attribute GPUSize32 count;
1144
+ readonly attribute GPUSize32Out count;
1145
1145
  };
1146
1146
  GPUQuerySet includes GPUObjectBase;
1147
1147
 
@@ -1258,6 +1258,10 @@ typedef [EnforceRange] unsigned long GPUIndex32;
1258
1258
  typedef [EnforceRange] unsigned long GPUSize32;
1259
1259
  typedef [EnforceRange] long GPUSignedOffset32;
1260
1260
 
1261
+ typedef unsigned long long GPUSize64Out;
1262
+ typedef unsigned long GPUIntegerCoordinateOut;
1263
+ typedef unsigned long GPUSize32Out;
1264
+
1261
1265
  typedef unsigned long GPUFlagsConstant;
1262
1266
 
1263
1267
  dictionary GPUColorDict {
package/webnn.idl CHANGED
@@ -127,10 +127,10 @@ interface MLGraphBuilder {
127
127
  constructor(MLContext context);
128
128
 
129
129
  // Create an operand for a graph input.
130
- MLOperand input(DOMString name, MLOperandDescriptor desc);
130
+ MLOperand input(DOMString name, MLOperandDescriptor descriptor);
131
131
 
132
132
  // Create an operand for a graph constant.
133
- MLOperand constant(MLOperandDescriptor desc, MLBufferView bufferView);
133
+ MLOperand constant(MLOperandDescriptor descriptor, MLBufferView bufferView);
134
134
 
135
135
  // Create a single-value operand from the specified number of the specified type.
136
136
  MLOperand constant(double value, optional MLOperandType type = "float32");
package/webrtc-stats.idl CHANGED
@@ -13,8 +13,6 @@ enum RTCStatsType {
13
13
  "media-playout",
14
14
  "peer-connection",
15
15
  "data-channel",
16
- "stream",
17
- "track",
18
16
  "transport",
19
17
  "candidate-pair",
20
18
  "local-candidate",
package/webrtc.idl CHANGED
@@ -441,13 +441,13 @@ enum RTCIceGathererState {
441
441
  };
442
442
 
443
443
  enum RTCIceTransportState {
444
+ "closed",
445
+ "failed",
446
+ "disconnected",
444
447
  "new",
445
448
  "checking",
446
- "connected",
447
449
  "completed",
448
- "disconnected",
449
- "failed",
450
- "closed"
450
+ "connected"
451
451
  };
452
452
 
453
453
  enum RTCIceRole {
package/webtransport.idl CHANGED
@@ -98,6 +98,7 @@ dictionary WebTransportDatagramStats {
98
98
 
99
99
  [Exposed=(Window,Worker), SecureContext, Transferable]
100
100
  interface WebTransportSendStream : WritableStream {
101
+ attribute long long? sendOrder;
101
102
  Promise<WebTransportSendStreamStats> getStats();
102
103
  };
103
104
 
@@ -130,12 +131,12 @@ interface WebTransportError : DOMException {
130
131
  constructor(optional DOMString message = "", optional WebTransportErrorOptions options = {});
131
132
 
132
133
  readonly attribute WebTransportErrorSource source;
133
- readonly attribute octet? streamErrorCode;
134
+ readonly attribute unsigned long? streamErrorCode;
134
135
  };
135
136
 
136
137
  dictionary WebTransportErrorOptions {
137
138
  WebTransportErrorSource source = "stream";
138
- [Clamp] octet? streamErrorCode = null;
139
+ [Clamp] unsigned long? streamErrorCode = null;
139
140
  };
140
141
 
141
142
  enum WebTransportErrorSource {