@webref/idl 3.39.0 → 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.
- package/css-font-loading.idl +0 -2
- package/css-view-transitions-2.idl +22 -1
- package/css-view-transitions.idl +0 -4
- package/generic-sensor.idl +0 -30
- package/html.idl +11 -0
- package/image-capture.idl +1 -1
- package/mediasession.idl +2 -1
- package/package.json +1 -1
- package/performance-timeline.idl +2 -0
- package/storage-buckets.idl +1 -9
- package/streams.idl +2 -0
- package/webauthn.idl +5 -2
- package/webgpu.idl +4 -3
- package/webmidi.idl +2 -2
- package/webrtc-encoded-transform.idl +2 -2
- package/webtransport.idl +10 -2
- package/webusb.idl +7 -0
- package/webxr.idl +2 -1
package/css-font-loading.idl
CHANGED
|
@@ -10,7 +10,6 @@ dictionary FontFaceDescriptors {
|
|
|
10
10
|
CSSOMString weight = "normal";
|
|
11
11
|
CSSOMString stretch = "normal";
|
|
12
12
|
CSSOMString unicodeRange = "U+0-10FFFF";
|
|
13
|
-
CSSOMString variant = "normal";
|
|
14
13
|
CSSOMString featureSettings = "normal";
|
|
15
14
|
CSSOMString variationSettings = "normal";
|
|
16
15
|
CSSOMString display = "auto";
|
|
@@ -30,7 +29,6 @@ interface FontFace {
|
|
|
30
29
|
attribute CSSOMString weight;
|
|
31
30
|
attribute CSSOMString stretch;
|
|
32
31
|
attribute CSSOMString unicodeRange;
|
|
33
|
-
attribute CSSOMString variant;
|
|
34
32
|
attribute CSSOMString featureSettings;
|
|
35
33
|
attribute CSSOMString variationSettings;
|
|
36
34
|
attribute CSSOMString display;
|
|
@@ -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
|
|
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
|
+
};
|
package/css-view-transitions.idl
CHANGED
|
@@ -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]
|
package/generic-sensor.idl
CHANGED
|
@@ -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;
|
|
@@ -1196,6 +1198,7 @@ dictionary FormDataEventInit : EventInit {
|
|
|
1196
1198
|
interface HTMLDetailsElement : HTMLElement {
|
|
1197
1199
|
[HTMLConstructor] constructor();
|
|
1198
1200
|
|
|
1201
|
+
[CEReactions] attribute DOMString name;
|
|
1199
1202
|
[CEReactions] attribute boolean open;
|
|
1200
1203
|
};
|
|
1201
1204
|
|
|
@@ -2225,6 +2228,14 @@ enum DOMParserSupportedType {
|
|
|
2225
2228
|
"image/svg+xml"
|
|
2226
2229
|
};
|
|
2227
2230
|
|
|
2231
|
+
partial interface Element {
|
|
2232
|
+
undefined setHTMLUnsafe(DOMString html);
|
|
2233
|
+
};
|
|
2234
|
+
|
|
2235
|
+
partial interface ShadowRoot {
|
|
2236
|
+
undefined setHTMLUnsafe(DOMString html);
|
|
2237
|
+
};
|
|
2238
|
+
|
|
2228
2239
|
[Exposed=Window]
|
|
2229
2240
|
interface Navigator {
|
|
2230
2241
|
// objects implementing this interface also implement the interfaces given below
|
package/image-capture.idl
CHANGED
package/mediasession.idl
CHANGED
package/package.json
CHANGED
package/performance-timeline.idl
CHANGED
|
@@ -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/storage-buckets.idl
CHANGED
|
@@ -18,14 +18,8 @@ interface StorageBucketManager {
|
|
|
18
18
|
Promise<undefined> delete(DOMString name);
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
-
enum StorageBucketDurability {
|
|
22
|
-
"strict",
|
|
23
|
-
"relaxed"
|
|
24
|
-
};
|
|
25
|
-
|
|
26
21
|
dictionary StorageBucketOptions {
|
|
27
|
-
boolean
|
|
28
|
-
StorageBucketDurability? durability = null;
|
|
22
|
+
boolean persisted = false;
|
|
29
23
|
unsigned long long? quota = null;
|
|
30
24
|
DOMHighResTimeStamp? expires = null;
|
|
31
25
|
};
|
|
@@ -40,8 +34,6 @@ interface StorageBucket {
|
|
|
40
34
|
|
|
41
35
|
Promise<StorageEstimate> estimate();
|
|
42
36
|
|
|
43
|
-
Promise<StorageBucketDurability> durability();
|
|
44
|
-
|
|
45
37
|
Promise<undefined> setExpires(DOMHighResTimeStamp expires);
|
|
46
38
|
Promise<DOMHighResTimeStamp?> expires();
|
|
47
39
|
|
package/streams.idl
CHANGED
|
@@ -174,6 +174,7 @@ dictionary Transformer {
|
|
|
174
174
|
TransformerStartCallback start;
|
|
175
175
|
TransformerTransformCallback transform;
|
|
176
176
|
TransformerFlushCallback flush;
|
|
177
|
+
TransformerCancelCallback cancel;
|
|
177
178
|
any readableType;
|
|
178
179
|
any writableType;
|
|
179
180
|
};
|
|
@@ -181,6 +182,7 @@ dictionary Transformer {
|
|
|
181
182
|
callback TransformerStartCallback = any (TransformStreamDefaultController controller);
|
|
182
183
|
callback TransformerFlushCallback = Promise<undefined> (TransformStreamDefaultController controller);
|
|
183
184
|
callback TransformerTransformCallback = Promise<undefined> (any chunk, TransformStreamDefaultController controller);
|
|
185
|
+
callback TransformerCancelCallback = Promise<undefined> (any reason);
|
|
184
186
|
|
|
185
187
|
[Exposed=*]
|
|
186
188
|
interface TransformStreamDefaultController {
|
package/webauthn.idl
CHANGED
|
@@ -7,14 +7,16 @@
|
|
|
7
7
|
interface PublicKeyCredential : Credential {
|
|
8
8
|
[SameObject] readonly attribute ArrayBuffer rawId;
|
|
9
9
|
[SameObject] readonly attribute AuthenticatorResponse response;
|
|
10
|
-
|
|
10
|
+
readonly attribute DOMString? authenticatorAttachment;
|
|
11
11
|
AuthenticationExtensionsClientOutputs getClientExtensionResults();
|
|
12
12
|
static Promise<boolean> isConditionalMediationAvailable();
|
|
13
13
|
PublicKeyCredentialJSON toJSON();
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
typedef DOMString Base64URLString;
|
|
17
|
-
|
|
17
|
+
// The structure of this object will be either
|
|
18
|
+
// RegistrationResponseJSON or AuthenticationResponseJSON
|
|
19
|
+
typedef object PublicKeyCredentialJSON;
|
|
18
20
|
|
|
19
21
|
dictionary RegistrationResponseJSON {
|
|
20
22
|
required Base64URLString id;
|
|
@@ -296,6 +298,7 @@ partial dictionary AuthenticationExtensionsClientInputs {
|
|
|
296
298
|
|
|
297
299
|
dictionary CredentialPropertiesOutput {
|
|
298
300
|
boolean rk;
|
|
301
|
+
USVString authenticatorDisplayName;
|
|
299
302
|
};
|
|
300
303
|
|
|
301
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(
|
|
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
|
-
|
|
764
|
-
|
|
763
|
+
boolean depthWriteEnabled;
|
|
764
|
+
GPUCompareFunction depthCompare;
|
|
765
765
|
|
|
766
766
|
GPUStencilFaceState stencilFront = {};
|
|
767
767
|
GPUStencilFaceState stencilBack = {};
|
|
@@ -828,6 +828,7 @@ enum GPUVertexFormat {
|
|
|
828
828
|
"sint32x2",
|
|
829
829
|
"sint32x3",
|
|
830
830
|
"sint32x4",
|
|
831
|
+
"unorm10-10-10-2",
|
|
831
832
|
};
|
|
832
833
|
|
|
833
834
|
enum GPUVertexStepMode {
|
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 {
|
|
@@ -74,6 +74,7 @@ dictionary RTCEncodedVideoFrameMetadata {
|
|
|
74
74
|
octet payloadType;
|
|
75
75
|
sequence<unsigned long> contributingSources;
|
|
76
76
|
long long timestamp; // microseconds
|
|
77
|
+
unsigned long rtpTimestamp;
|
|
77
78
|
};
|
|
78
79
|
|
|
79
80
|
// New interfaces to define encoded video and audio frames. Will eventually
|
|
@@ -81,7 +82,6 @@ dictionary RTCEncodedVideoFrameMetadata {
|
|
|
81
82
|
[Exposed=(Window,DedicatedWorker), Serializable]
|
|
82
83
|
interface RTCEncodedVideoFrame {
|
|
83
84
|
readonly attribute RTCEncodedVideoFrameType type;
|
|
84
|
-
readonly attribute unsigned long timestamp;
|
|
85
85
|
attribute ArrayBuffer data;
|
|
86
86
|
RTCEncodedVideoFrameMetadata getMetadata();
|
|
87
87
|
};
|
|
@@ -91,11 +91,11 @@ dictionary RTCEncodedAudioFrameMetadata {
|
|
|
91
91
|
octet payloadType;
|
|
92
92
|
sequence<unsigned long> contributingSources;
|
|
93
93
|
short sequenceNumber;
|
|
94
|
+
unsigned long rtpTimestamp;
|
|
94
95
|
};
|
|
95
96
|
|
|
96
97
|
[Exposed=(Window,DedicatedWorker), Serializable]
|
|
97
98
|
interface RTCEncodedAudioFrame {
|
|
98
|
-
readonly attribute unsigned long timestamp;
|
|
99
99
|
attribute ArrayBuffer data;
|
|
100
100
|
RTCEncodedAudioFrameMetadata getMetadata();
|
|
101
101
|
};
|
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
|
-
|
|
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
|
|
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;
|