@webref/idl 3.22.2 → 3.22.4
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/fetch.idl +2 -0
- package/gamepad-extensions.idl +24 -1
- package/package.json +1 -1
- package/payment-handler.idl +1 -10
- package/permissions.idl +0 -1
- package/picture-in-picture.idl +0 -1
- package/priority-hints.idl +0 -10
- package/scroll-animations.idl +1 -2
- package/secure-payment-confirmation.idl +4 -2
- package/web-animations.idl +5 -0
- package/webauthn.idl +2 -2
- package/webnn.idl +1 -4
- package/webrtc-encoded-transform.idl +5 -5
- package/webrtc-stats.idl +5 -5
- package/webtransport.idl +2 -2
package/fetch.idl
CHANGED
|
@@ -71,6 +71,7 @@ dictionary RequestInit {
|
|
|
71
71
|
boolean keepalive;
|
|
72
72
|
AbortSignal? signal;
|
|
73
73
|
RequestDuplex duplex;
|
|
74
|
+
RequestPriority priority;
|
|
74
75
|
any window; // can only be set to null
|
|
75
76
|
};
|
|
76
77
|
|
|
@@ -80,6 +81,7 @@ enum RequestCredentials { "omit", "same-origin", "include" };
|
|
|
80
81
|
enum RequestCache { "default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached" };
|
|
81
82
|
enum RequestRedirect { "follow", "error", "manual" };
|
|
82
83
|
enum RequestDuplex { "half" };
|
|
84
|
+
enum RequestPriority { "high", "low", "auto" };
|
|
83
85
|
|
|
84
86
|
[Exposed=(Window,Worker)]interface Response {
|
|
85
87
|
constructor(optional BodyInit? body = null, optional ResponseInit init = {});
|
package/gamepad-extensions.idl
CHANGED
|
@@ -12,11 +12,33 @@ enum GamepadHand {
|
|
|
12
12
|
[Exposed=Window]
|
|
13
13
|
interface GamepadHapticActuator {
|
|
14
14
|
readonly attribute GamepadHapticActuatorType type;
|
|
15
|
+
boolean canPlayEffectType(GamepadHapticEffectType type);
|
|
16
|
+
Promise<GamepadHapticsResult> playEffect(
|
|
17
|
+
GamepadHapticEffectType type,
|
|
18
|
+
optional GamepadEffectParameters params = {});
|
|
15
19
|
Promise<boolean> pulse(double value, double duration);
|
|
20
|
+
Promise<GamepadHapticsResult> reset();
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
enum GamepadHapticsResult {
|
|
24
|
+
"complete",
|
|
25
|
+
"preempted"
|
|
16
26
|
};
|
|
17
27
|
|
|
18
28
|
enum GamepadHapticActuatorType {
|
|
19
|
-
"vibration"
|
|
29
|
+
"vibration",
|
|
30
|
+
"dual-rumble"
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
enum GamepadHapticEffectType {
|
|
34
|
+
"dual-rumble"
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
dictionary GamepadEffectParameters {
|
|
38
|
+
double duration = 0.0;
|
|
39
|
+
double startDelay = 0.0;
|
|
40
|
+
double strongMagnitude = 0.0;
|
|
41
|
+
double weakMagnitude = 0.0;
|
|
20
42
|
};
|
|
21
43
|
|
|
22
44
|
[Exposed=Window]
|
|
@@ -45,4 +67,5 @@ partial interface Gamepad {
|
|
|
45
67
|
readonly attribute FrozenArray<GamepadHapticActuator> hapticActuators;
|
|
46
68
|
readonly attribute GamepadPose? pose;
|
|
47
69
|
readonly attribute FrozenArray<GamepadTouch>? touchEvents;
|
|
70
|
+
[SameObject] readonly attribute GamepadHapticActuator vibrationActuator;
|
|
48
71
|
};
|
package/package.json
CHANGED
package/payment-handler.idl
CHANGED
|
@@ -41,19 +41,10 @@ partial interface ServiceWorkerGlobalScope {
|
|
|
41
41
|
|
|
42
42
|
[Exposed=ServiceWorker]
|
|
43
43
|
interface CanMakePaymentEvent : ExtendableEvent {
|
|
44
|
-
constructor(DOMString type
|
|
45
|
-
readonly attribute USVString topOrigin;
|
|
46
|
-
readonly attribute USVString paymentRequestOrigin;
|
|
47
|
-
readonly attribute FrozenArray<PaymentMethodData> methodData;
|
|
44
|
+
constructor(DOMString type);
|
|
48
45
|
undefined respondWith(Promise<boolean> canMakePaymentResponse);
|
|
49
46
|
};
|
|
50
47
|
|
|
51
|
-
dictionary CanMakePaymentEventInit : ExtendableEventInit {
|
|
52
|
-
USVString topOrigin;
|
|
53
|
-
USVString paymentRequestOrigin;
|
|
54
|
-
sequence<PaymentMethodData> methodData;
|
|
55
|
-
};
|
|
56
|
-
|
|
57
48
|
partial interface ServiceWorkerGlobalScope {
|
|
58
49
|
attribute EventHandler onpaymentrequest;
|
|
59
50
|
};
|
package/permissions.idl
CHANGED
package/picture-in-picture.idl
CHANGED
|
@@ -9,7 +9,6 @@ partial interface HTMLVideoElement {
|
|
|
9
9
|
attribute EventHandler onenterpictureinpicture;
|
|
10
10
|
attribute EventHandler onleavepictureinpicture;
|
|
11
11
|
|
|
12
|
-
[CEReactions] attribute boolean autoPictureInPicture;
|
|
13
12
|
[CEReactions] attribute boolean disablePictureInPicture;
|
|
14
13
|
};
|
|
15
14
|
|
package/priority-hints.idl
CHANGED
|
@@ -3,16 +3,6 @@
|
|
|
3
3
|
// (https://github.com/w3c/webref)
|
|
4
4
|
// Source: Priority Hints (https://wicg.github.io/priority-hints/)
|
|
5
5
|
|
|
6
|
-
enum FetchPriority { "high", "low", "auto" };
|
|
7
|
-
|
|
8
|
-
partial interface Request {
|
|
9
|
-
readonly attribute FetchPriority priority;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
partial dictionary RequestInit {
|
|
13
|
-
FetchPriority priority;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
6
|
partial interface HTMLImageElement {
|
|
17
7
|
[CEReactions] attribute DOMString fetchPriority;
|
|
18
8
|
};
|
package/scroll-animations.idl
CHANGED
|
@@ -36,7 +36,6 @@ interface ViewTimeline : ScrollTimeline {
|
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
[Exposed=Window]
|
|
39
|
-
interface AnimationTimeline {
|
|
40
|
-
readonly attribute CSSNumberish? currentTime;
|
|
39
|
+
partial interface AnimationTimeline {
|
|
41
40
|
CSSNumericValue? getCurrentTime(optional CSSOMString rangeName);
|
|
42
41
|
};
|
|
@@ -13,6 +13,7 @@ dictionary SecurePaymentConfirmationRequest {
|
|
|
13
13
|
USVString payeeOrigin;
|
|
14
14
|
AuthenticationExtensionsClientInputs extensions;
|
|
15
15
|
sequence<USVString> locale;
|
|
16
|
+
boolean showOptOut;
|
|
16
17
|
};
|
|
17
18
|
|
|
18
19
|
partial dictionary AuthenticationExtensionsClientInputs {
|
|
@@ -52,6 +53,7 @@ dictionary PaymentCredentialInstrument {
|
|
|
52
53
|
|
|
53
54
|
enum TransactionAutomationMode {
|
|
54
55
|
"none",
|
|
55
|
-
"
|
|
56
|
-
"
|
|
56
|
+
"autoAccept",
|
|
57
|
+
"autoReject",
|
|
58
|
+
"autoOptOut"
|
|
57
59
|
};
|
package/web-animations.idl
CHANGED
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
// (https://github.com/w3c/webref)
|
|
4
4
|
// Source: Web Animations (https://drafts.csswg.org/web-animations-1/)
|
|
5
5
|
|
|
6
|
+
[Exposed=Window]
|
|
7
|
+
interface AnimationTimeline {
|
|
8
|
+
readonly attribute double? currentTime;
|
|
9
|
+
};
|
|
10
|
+
|
|
6
11
|
dictionary DocumentTimelineOptions {
|
|
7
12
|
DOMHighResTimeStamp originTime = 0;
|
|
8
13
|
};
|
package/webauthn.idl
CHANGED
|
@@ -20,7 +20,7 @@ dictionary RegistrationResponseJSON {
|
|
|
20
20
|
Base64URLString id;
|
|
21
21
|
Base64URLString rawId;
|
|
22
22
|
AuthenticatorAttestationResponseJSON response;
|
|
23
|
-
DOMString?
|
|
23
|
+
DOMString? authenticatorAttachment;
|
|
24
24
|
AuthenticationExtensionsClientOutputsJSON clientExtensionResults;
|
|
25
25
|
DOMString type;
|
|
26
26
|
};
|
|
@@ -35,7 +35,7 @@ dictionary AuthenticationResponseJSON {
|
|
|
35
35
|
Base64URLString id;
|
|
36
36
|
Base64URLString rawId;
|
|
37
37
|
AuthenticatorAssertionResponseJSON response;
|
|
38
|
-
DOMString?
|
|
38
|
+
DOMString? authenticatorAttachment;
|
|
39
39
|
AuthenticationExtensionsClientOutputsJSON clientExtensionResults;
|
|
40
40
|
DOMString type;
|
|
41
41
|
};
|
package/webnn.idl
CHANGED
|
@@ -264,7 +264,6 @@ dictionary MLGruOptions {
|
|
|
264
264
|
|
|
265
265
|
partial interface MLGraphBuilder {
|
|
266
266
|
sequence<MLOperand> gru(MLOperand input, MLOperand weight, MLOperand recurrentWeight,
|
|
267
|
-
|
|
268
267
|
long steps, long hiddenSize, optional MLGruOptions options = {});
|
|
269
268
|
};
|
|
270
269
|
|
|
@@ -278,7 +277,6 @@ dictionary MLGruCellOptions {
|
|
|
278
277
|
|
|
279
278
|
partial interface MLGraphBuilder {
|
|
280
279
|
MLOperand gruCell(MLOperand input, MLOperand weight, MLOperand recurrentWeight,
|
|
281
|
-
|
|
282
280
|
MLOperand hiddenState, long hiddenSize, optional MLGruCellOptions options = {});
|
|
283
281
|
};
|
|
284
282
|
|
|
@@ -306,7 +304,6 @@ dictionary MLInstanceNormalizationOptions {
|
|
|
306
304
|
|
|
307
305
|
partial interface MLGraphBuilder {
|
|
308
306
|
MLOperand instanceNormalization(MLOperand input,
|
|
309
|
-
|
|
310
307
|
optional MLInstanceNormalizationOptions options = {});
|
|
311
308
|
};
|
|
312
309
|
|
|
@@ -411,7 +408,7 @@ partial interface MLGraphBuilder {
|
|
|
411
408
|
};
|
|
412
409
|
|
|
413
410
|
partial interface MLGraphBuilder {
|
|
414
|
-
MLOperand reshape(MLOperand input, sequence<long
|
|
411
|
+
MLOperand reshape(MLOperand input, sequence<unsigned long?> newShape);
|
|
415
412
|
};
|
|
416
413
|
|
|
417
414
|
partial interface MLGraphBuilder {
|
|
@@ -64,15 +64,15 @@ enum RTCEncodedVideoFrameType {
|
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
dictionary RTCEncodedVideoFrameMetadata {
|
|
67
|
-
long long frameId;
|
|
68
|
-
sequence<long long> dependencies;
|
|
67
|
+
unsigned long long frameId;
|
|
68
|
+
sequence<unsigned long long> dependencies;
|
|
69
69
|
unsigned short width;
|
|
70
70
|
unsigned short height;
|
|
71
|
-
long spatialIndex;
|
|
72
|
-
long temporalIndex;
|
|
71
|
+
unsigned long spatialIndex;
|
|
72
|
+
unsigned long temporalIndex;
|
|
73
73
|
unsigned long synchronizationSource;
|
|
74
74
|
octet payloadType;
|
|
75
|
-
|
|
75
|
+
sequence<unsigned long> contributingSources;
|
|
76
76
|
};
|
|
77
77
|
|
|
78
78
|
// New interfaces to define encoded video and audio frames. Will eventually
|
package/webrtc-stats.idl
CHANGED
|
@@ -181,11 +181,11 @@ dictionary RTCVideoSourceStats : RTCMediaSourceStats {
|
|
|
181
181
|
};
|
|
182
182
|
|
|
183
183
|
dictionary RTCAudioPlayoutStats : RTCStats {
|
|
184
|
-
double
|
|
185
|
-
unsigned long
|
|
186
|
-
double
|
|
187
|
-
double
|
|
188
|
-
|
|
184
|
+
double synthesizedSamplesDuration;
|
|
185
|
+
unsigned long synthesizedSamplesEvents;
|
|
186
|
+
double totalSamplesDuration;
|
|
187
|
+
double totalPlayoutDelay;
|
|
188
|
+
unsigned long long totalSamplesCount;
|
|
189
189
|
};
|
|
190
190
|
|
|
191
191
|
dictionary RTCPeerConnectionStats : RTCStats {
|
package/webtransport.idl
CHANGED
|
@@ -88,7 +88,7 @@ dictionary WebTransportDatagramStats {
|
|
|
88
88
|
unsigned long long lostOutgoing;
|
|
89
89
|
};
|
|
90
90
|
|
|
91
|
-
[Exposed=(Window,Worker), SecureContext]
|
|
91
|
+
[Exposed=(Window,Worker), SecureContext, Transferable]
|
|
92
92
|
interface WebTransportSendStream : WritableStream {
|
|
93
93
|
Promise<WebTransportSendStreamStats> getStats();
|
|
94
94
|
};
|
|
@@ -100,7 +100,7 @@ dictionary WebTransportSendStreamStats {
|
|
|
100
100
|
unsigned long long bytesAcknowledged;
|
|
101
101
|
};
|
|
102
102
|
|
|
103
|
-
[Exposed=(Window,Worker), SecureContext]
|
|
103
|
+
[Exposed=(Window,Worker), SecureContext, Transferable]
|
|
104
104
|
interface WebTransportReceiveStream : ReadableStream {
|
|
105
105
|
Promise<WebTransportReceiveStreamStats> getStats();
|
|
106
106
|
};
|