@webref/idl 3.33.4 → 3.34.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.
@@ -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
@@ -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.33.4",
4
+ "version": "3.34.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -0,0 +1,21 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: WebXR Mesh Detection Module (https://immersive-web.github.io/real-world-meshing/)
5
+
6
+ [Exposed=Window] interface XRMesh {
7
+ [SameObject] readonly attribute XRSpace meshSpace;
8
+
9
+ readonly attribute FrozenArray<Float32Array> vertices;
10
+ readonly attribute Uint32Array indices;
11
+ readonly attribute DOMHighResTimeStamp lastChangedTime;
12
+ readonly attribute DOMString? semanticLabel;
13
+ };
14
+
15
+ [Exposed=Window] interface XRMeshSet {
16
+ readonly setlike<XRMesh>;
17
+ };
18
+
19
+ partial interface XRFrame {
20
+ readonly attribute XRMeshSet detectedMeshs;
21
+ };
@@ -18,6 +18,7 @@ interface PerformanceResourceTiming : PerformanceEntry {
18
18
  readonly attribute DOMHighResTimeStamp connectEnd;
19
19
  readonly attribute DOMHighResTimeStamp secureConnectionStart;
20
20
  readonly attribute DOMHighResTimeStamp requestStart;
21
+ readonly attribute DOMHighResTimeStamp firstInterimResponseStart;
21
22
  readonly attribute DOMHighResTimeStamp responseStart;
22
23
  readonly attribute DOMHighResTimeStamp responseEnd;
23
24
  readonly attribute unsigned long long transferSize;
@@ -25,6 +26,7 @@ interface PerformanceResourceTiming : PerformanceEntry {
25
26
  readonly attribute unsigned long long decodedBodySize;
26
27
  readonly attribute unsigned short responseStatus;
27
28
  readonly attribute RenderBlockingStatusType renderBlockingStatus;
29
+ readonly attribute DOMString contentType;
28
30
  [Default] object toJSON();
29
31
  };
30
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;
@@ -0,0 +1,80 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: Shared Storage API (https://wicg.github.io/shared-storage/)
5
+
6
+ [Exposed=(Window)]
7
+ interface SharedStorageWorklet : Worklet {
8
+ };
9
+
10
+ [Exposed=SharedStorageWorklet, Global=SharedStorageWorklet]
11
+ interface SharedStorageWorkletGlobalScope : WorkletGlobalScope {
12
+ undefined register(DOMString name,
13
+ SharedStorageOperationConstructor operationCtor);
14
+ };
15
+
16
+ callback SharedStorageOperationConstructor =
17
+ SharedStorageOperation(optional SharedStorageRunOperationMethodOptions options);
18
+
19
+ [Exposed=SharedStorageWorklet]
20
+ interface SharedStorageOperation {
21
+ };
22
+
23
+ dictionary SharedStorageRunOperationMethodOptions {
24
+ object data;
25
+ boolean resolveToConfig = false;
26
+ boolean keepAlive = false;
27
+ };
28
+
29
+ [Exposed=SharedStorageWorklet]
30
+ interface SharedStorageRunOperation : SharedStorageOperation {
31
+ Promise<undefined> run(object data);
32
+ };
33
+
34
+ [Exposed=SharedStorageWorklet]
35
+ interface SharedStorageSelectURLOperation : SharedStorageOperation {
36
+ Promise<long> run(object data,
37
+ FrozenArray<SharedStorageUrlWithMetadata> urls);
38
+ };
39
+
40
+ [Exposed=(Window,SharedStorageWorklet)]
41
+ interface SharedStorage {
42
+ Promise<any> set(DOMString key,
43
+ DOMString value,
44
+ optional SharedStorageSetMethodOptions options = {});
45
+ Promise<any> append(DOMString key,
46
+ DOMString value);
47
+ Promise<any> delete(DOMString key);
48
+ Promise<any> clear();
49
+ };
50
+
51
+ dictionary SharedStorageSetMethodOptions {
52
+ boolean ignoreIfPresent = false;
53
+ };
54
+
55
+ typedef (USVString or FencedFrameConfig) SharedStorageResponse;
56
+
57
+ [Exposed=(Window)]
58
+ interface WindowSharedStorage : SharedStorage {
59
+ Promise<any> run(DOMString name,
60
+ optional SharedStorageRunOperationMethodOptions options = {});
61
+ Promise<SharedStorageResponse> selectURL(DOMString name,
62
+ FrozenArray<SharedStorageUrlWithMetadata> urls,
63
+ optional SharedStorageRunOperationMethodOptions options = {});
64
+
65
+ readonly attribute SharedStorageWorklet worklet;
66
+ };
67
+
68
+ dictionary SharedStorageUrlWithMetadata {
69
+ required USVString url;
70
+ object reportingMetadata;
71
+ };
72
+
73
+ [Exposed=(SharedStorageWorklet)]
74
+ interface WorkletSharedStorage : SharedStorage {
75
+ Promise<DOMString> get(DOMString key);
76
+ Promise<unsigned long> length();
77
+ Promise<double> remainingBudget();
78
+
79
+ async iterable<DOMString, DOMString>;
80
+ };
@@ -0,0 +1,53 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: Storage Buckets API (https://wicg.github.io/storage-buckets/)
5
+
6
+ [SecureContext]
7
+ interface mixin NavigatorStorageBuckets {
8
+ [SameObject] readonly attribute StorageBucketManager storageBuckets;
9
+ };
10
+ Navigator includes NavigatorStorageBuckets;
11
+ WorkerNavigator includes NavigatorStorageBuckets;
12
+
13
+ [Exposed=(Window,Worker),
14
+ SecureContext]
15
+ interface StorageBucketManager {
16
+ Promise<StorageBucket> open(DOMString name, optional StorageBucketOptions options = {});
17
+ Promise<sequence<DOMString>> keys();
18
+ Promise<undefined> delete(DOMString name);
19
+ };
20
+
21
+ enum StorageBucketDurability {
22
+ "strict",
23
+ "relaxed"
24
+ };
25
+
26
+ dictionary StorageBucketOptions {
27
+ boolean? persisted = null;
28
+ StorageBucketDurability? durability = null;
29
+ unsigned long long? quota = null;
30
+ DOMHighResTimeStamp? expires = null;
31
+ };
32
+
33
+ [Exposed=(Window,Worker),
34
+ SecureContext]
35
+ interface StorageBucket {
36
+ readonly attribute DOMString name;
37
+
38
+ [Exposed=Window] Promise<boolean> persist();
39
+ Promise<boolean> persisted();
40
+
41
+ Promise<StorageEstimate> estimate();
42
+
43
+ Promise<StorageBucketDurability> durability();
44
+
45
+ Promise<undefined> setExpires(DOMHighResTimeStamp expires);
46
+ Promise<DOMHighResTimeStamp?> expires();
47
+
48
+ [SameObject] readonly attribute IDBFactory indexedDB;
49
+
50
+ [SameObject] readonly attribute CacheStorage caches;
51
+
52
+ Promise<FileSystemDirectoryHandle> getDirectory();
53
+ };
package/url.idl CHANGED
@@ -33,10 +33,10 @@ interface URLSearchParams {
33
33
  readonly attribute unsigned long size;
34
34
 
35
35
  undefined append(USVString name, USVString value);
36
- undefined delete(USVString name);
36
+ undefined delete(USVString name, optional USVString value);
37
37
  USVString? get(USVString name);
38
38
  sequence<USVString> getAll(USVString name);
39
- boolean has(USVString name);
39
+ boolean has(USVString name, optional USVString value);
40
40
  undefined set(USVString name, USVString value);
41
41
 
42
42
  undefined sort();
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 {