@webref/idl 3.39.1 → 3.39.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.
@@ -4,6 +4,27 @@
4
4
  // Source: CSS View Transitions Module Level 2 (https://drafts.csswg.org/css-view-transitions-2/)
5
5
 
6
6
  [Exposed=Window]
7
- interface PageRevealEvent : Event {
7
+ interface RevealEvent : Event {
8
8
  readonly attribute ViewTransition? viewTransition;
9
9
  };
10
+
11
+ dictionary StartViewTransitionOptions {
12
+ UpdateCallback? update = null;
13
+ sequence<DOMString>? types = null;
14
+ };
15
+
16
+ partial interface Document {
17
+
18
+ ViewTransition startViewTransition((UpdateCallback or StartViewTransitionOptions?) callbackOptionsOrNull);
19
+ };
20
+
21
+ partial interface CSSRule {
22
+ const unsigned short VIEW_TRANSITION_RULE = 15;
23
+ };
24
+
25
+ enum ViewTransitionTrigger { "navigation", "none" };
26
+ [Exposed=Window]
27
+ interface CSSViewTransitionRule : CSSRule {
28
+ readonly attribute CSSOMString navigationConditionText;
29
+ attribute ViewTransitionTrigger trigger;
30
+ };
@@ -3,10 +3,6 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: CSS View Transitions Module Level 1 (https://drafts.csswg.org/css-view-transitions-1/)
5
5
 
6
- partial interface Document {
7
- ViewTransition startViewTransition(optional UpdateCallback? updateCallback = null);
8
- };
9
-
10
6
  callback UpdateCallback = Promise<any> ();
11
7
 
12
8
  [Exposed=Window]
@@ -28,33 +28,3 @@ interface SensorErrorEvent : Event {
28
28
  dictionary SensorErrorEventInit : EventInit {
29
29
  required DOMException error;
30
30
  };
31
-
32
- dictionary MockSensorConfiguration {
33
- required MockSensorType mockSensorType;
34
- boolean connected = true;
35
- double? maxSamplingFrequency;
36
- double? minSamplingFrequency;
37
- };
38
-
39
- dictionary MockSensor {
40
- double maxSamplingFrequency;
41
- double minSamplingFrequency;
42
- double requestedSamplingFrequency;
43
- };
44
-
45
- enum MockSensorType {
46
- "ambient-light",
47
- "accelerometer",
48
- "linear-acceleration",
49
- "gravity",
50
- "gyroscope",
51
- "magnetometer",
52
- "uncalibrated-magnetometer",
53
- "absolute-orientation",
54
- "relative-orientation",
55
- "geolocation",
56
- "proximity",
57
- };
58
-
59
- dictionary MockSensorReadingValues {
60
- };
package/html.idl CHANGED
@@ -48,6 +48,8 @@ typedef (HTMLScriptElement or SVGScriptElement) HTMLOrSVGScriptElement;
48
48
 
49
49
  [LegacyOverrideBuiltIns]
50
50
  partial interface Document {
51
+ static Document parseHTMLUnsafe(DOMString html);
52
+
51
53
  // resource metadata management
52
54
  [PutForwards=href, LegacyUnforgeable] readonly attribute Location? location;
53
55
  attribute USVString domain;
@@ -2226,6 +2228,14 @@ enum DOMParserSupportedType {
2226
2228
  "image/svg+xml"
2227
2229
  };
2228
2230
 
2231
+ partial interface Element {
2232
+ undefined setHTMLUnsafe(DOMString html);
2233
+ };
2234
+
2235
+ partial interface ShadowRoot {
2236
+ undefined setHTMLUnsafe(DOMString html);
2237
+ };
2238
+
2229
2239
  [Exposed=Window]
2230
2240
  interface Navigator {
2231
2241
  // objects implementing this interface also implement the interfaces given below
package/image-capture.idl CHANGED
@@ -89,7 +89,7 @@ partial dictionary MediaTrackCapabilities {
89
89
  MediaSettingsRange tilt;
90
90
  MediaSettingsRange zoom;
91
91
 
92
- boolean torch;
92
+ sequence<boolean> torch;
93
93
  };
94
94
 
95
95
  partial dictionary MediaTrackConstraintSet {
package/mediasession.idl CHANGED
@@ -28,7 +28,8 @@ enum MediaSessionAction {
28
28
  "togglecamera",
29
29
  "hangup",
30
30
  "previousslide",
31
- "nextslide"
31
+ "nextslide",
32
+ "enterpictureinpicture"
32
33
  };
33
34
 
34
35
  callback MediaSessionActionHandler = undefined(MediaSessionActionDetails details);
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.39.1",
4
+ "version": "3.39.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -12,10 +12,12 @@ typedef sequence<PerformanceEntry> PerformanceEntryList;
12
12
 
13
13
  [Exposed=(Window,Worker)]
14
14
  interface PerformanceEntry {
15
+ readonly attribute unsigned long long id;
15
16
  readonly attribute DOMString name;
16
17
  readonly attribute DOMString entryType;
17
18
  readonly attribute DOMHighResTimeStamp startTime;
18
19
  readonly attribute DOMHighResTimeStamp duration;
20
+ readonly attribute unsigned long long navigationId;
19
21
  [Default] object toJSON();
20
22
  };
21
23
 
package/webauthn.idl CHANGED
@@ -298,6 +298,7 @@ partial dictionary AuthenticationExtensionsClientInputs {
298
298
 
299
299
  dictionary CredentialPropertiesOutput {
300
300
  boolean rk;
301
+ USVString authenticatorDisplayName;
301
302
  };
302
303
 
303
304
  partial dictionary AuthenticationExtensionsClientOutputs {
package/webgpu.idl CHANGED
@@ -95,7 +95,7 @@ interface GPUAdapter {
95
95
  readonly attribute boolean isFallbackAdapter;
96
96
 
97
97
  Promise<GPUDevice> requestDevice(optional GPUDeviceDescriptor descriptor = {});
98
- Promise<GPUAdapterInfo> requestAdapterInfo(optional sequence<DOMString> unmaskHints = []);
98
+ Promise<GPUAdapterInfo> requestAdapterInfo();
99
99
  };
100
100
 
101
101
  dictionary GPUDeviceDescriptor
@@ -760,8 +760,8 @@ enum GPUBlendOperation {
760
760
  dictionary GPUDepthStencilState {
761
761
  required GPUTextureFormat format;
762
762
 
763
- required boolean depthWriteEnabled;
764
- required GPUCompareFunction depthCompare;
763
+ boolean depthWriteEnabled;
764
+ GPUCompareFunction depthCompare;
765
765
 
766
766
  GPUStencilFaceState stencilFront = {};
767
767
  GPUStencilFaceState stencilBack = {};
package/webmidi.idl CHANGED
@@ -73,7 +73,7 @@ enum MIDIPortConnectionState {
73
73
  [SecureContext, Exposed=Window]
74
74
  interface MIDIMessageEvent : Event {
75
75
  constructor(DOMString type, optional MIDIMessageEventInit eventInitDict = {});
76
- readonly attribute Uint8Array data;
76
+ readonly attribute Uint8Array? data;
77
77
  };
78
78
 
79
79
  dictionary MIDIMessageEventInit: EventInit {
@@ -83,7 +83,7 @@ dictionary MIDIMessageEventInit: EventInit {
83
83
  [SecureContext, Exposed=Window]
84
84
  interface MIDIConnectionEvent : Event {
85
85
  constructor(DOMString type, optional MIDIConnectionEventInit eventInitDict = {});
86
- readonly attribute MIDIPort port;
86
+ readonly attribute MIDIPort? port;
87
87
  };
88
88
 
89
89
  dictionary MIDIConnectionEventInit: EventInit {
package/webtransport.idl CHANGED
@@ -38,6 +38,7 @@ interface WebTransport {
38
38
  optional WebTransportSendStreamOptions options = {});
39
39
  /* a ReadableStream of WebTransportReceiveStream objects */
40
40
  readonly attribute ReadableStream incomingUnidirectionalStreams;
41
+ WebTransportSendGroup createSendGroup();
41
42
  };
42
43
 
43
44
  enum WebTransportReliabilityMode {
@@ -70,7 +71,8 @@ dictionary WebTransportCloseInfo {
70
71
  };
71
72
 
72
73
  dictionary WebTransportSendStreamOptions {
73
- long long? sendOrder = null;
74
+ WebTransportSendGroup? sendGroup = null;
75
+ long long sendOrder = 0;
74
76
  };
75
77
 
76
78
  dictionary WebTransportConnectionStats {
@@ -97,7 +99,8 @@ dictionary WebTransportDatagramStats {
97
99
 
98
100
  [Exposed=(Window,Worker), SecureContext, Transferable]
99
101
  interface WebTransportSendStream : WritableStream {
100
- attribute long long? sendOrder;
102
+ attribute WebTransportSendGroup? sendGroup;
103
+ attribute long long sendOrder;
101
104
  Promise<WebTransportSendStreamStats> getStats();
102
105
  };
103
106
 
@@ -108,6 +111,11 @@ dictionary WebTransportSendStreamStats {
108
111
  unsigned long long bytesAcknowledged;
109
112
  };
110
113
 
114
+ [Exposed=(Window,Worker), SecureContext]
115
+ interface WebTransportSendGroup {
116
+ Promise<WebTransportSendStreamStats> getStats();
117
+ };
118
+
111
119
  [Exposed=(Window,Worker), SecureContext, Transferable]
112
120
  interface WebTransportReceiveStream : ReadableStream {
113
121
  Promise<WebTransportReceiveStreamStats> getStats();
package/webusb.idl CHANGED
@@ -230,6 +230,13 @@ interface USBEndpoint {
230
230
  readonly attribute unsigned long packetSize;
231
231
  };
232
232
 
233
+ // USBBlocklistEntry is never exposed.
234
+ dictionary USBBlocklistEntry {
235
+ required unsigned short idVendor;
236
+ required unsigned short idProduct;
237
+ required unsigned short bcdDevice;
238
+ };
239
+
233
240
  dictionary USBPermissionDescriptor : PermissionDescriptor {
234
241
  sequence<USBDeviceFilter> filters;
235
242
  sequence<USBDeviceFilter> exclusionFilters;