@webref/idl 3.22.3 → 3.22.5

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/badging.idl CHANGED
@@ -3,14 +3,12 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: Badging API (https://w3c.github.io/badging/)
5
5
 
6
- // Methods only exposed on documents.
7
6
  [SecureContext]
8
7
  partial interface Navigator {
9
8
  Promise<undefined> setClientBadge(optional [EnforceRange] unsigned long long contents);
10
9
  Promise<undefined> clearClientBadge();
11
10
  };
12
11
 
13
- // Methods exposed on both documents and service workers.
14
12
  [SecureContext]
15
13
  interface mixin NavigatorBadge {
16
14
  Promise<undefined> setAppBadge(optional [EnforceRange] unsigned long long contents);
@@ -24,8 +24,6 @@ interface PressureObserver {
24
24
  sequence<PressureRecord> takeRecords();
25
25
 
26
26
  [SameObject] static readonly attribute FrozenArray<PressureSource> supportedSources;
27
-
28
- [Exposed=Window] static Promise<PermissionState> requestPermission();
29
27
  };
30
28
 
31
29
  [Exposed=(DedicatedWorker,SharedWorker,Window), SecureContext]
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 = {});
@@ -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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webref/idl",
3
3
  "description": "Web IDL definitions of the web platform",
4
- "version": "3.22.3",
4
+ "version": "3.22.5",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -41,19 +41,10 @@ partial interface ServiceWorkerGlobalScope {
41
41
 
42
42
  [Exposed=ServiceWorker]
43
43
  interface CanMakePaymentEvent : ExtendableEvent {
44
- constructor(DOMString type, optional CanMakePaymentEventInit eventInitDict = {});
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
@@ -38,5 +38,4 @@ enum PermissionState {
38
38
  dictionary PermissionSetParameters {
39
39
  required PermissionDescriptor descriptor;
40
40
  required PermissionState state;
41
- boolean oneRealm = false;
42
41
  };
@@ -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
  };
@@ -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
- "autoaccept",
56
- "autoreject"
56
+ "autoAccept",
57
+ "autoReject",
58
+ "autoOptOut"
57
59
  };
package/selection-api.idl CHANGED
@@ -17,6 +17,7 @@ interface Selection {
17
17
  undefined removeRange(Range range);
18
18
  undefined removeAllRanges();
19
19
  undefined empty();
20
+ StaticRange getComposedRange(ShadowRoot... shadowRoots);
20
21
  undefined collapse(Node? node, optional unsigned long offset = 0);
21
22
  undefined setPosition(Node? node, optional unsigned long offset = 0);
22
23
  undefined collapseToStart();
@@ -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? authenticatorAttachment;
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? authenticatorAttachment;
38
+ DOMString? authenticatorAttachment;
39
39
  AuthenticationExtensionsClientOutputsJSON clientExtensionResults;
40
40
  DOMString type;
41
41
  };
package/webnn.idl CHANGED
@@ -157,11 +157,11 @@ enum MLAutoPad {
157
157
  };
158
158
 
159
159
  dictionary MLConv2dOptions {
160
- sequence<long> padding;
161
- sequence<long> strides;
162
- sequence<long> dilations;
160
+ sequence<unsigned long> padding;
161
+ sequence<unsigned long> strides;
162
+ sequence<unsigned long> dilations;
163
163
  MLAutoPad autoPad = "explicit";
164
- long groups = 1;
164
+ unsigned long groups = 1;
165
165
  MLInputOperandLayout inputLayout = "nchw";
166
166
  MLConv2dFilterOperandLayout filterLayout = "oihw";
167
167
  MLOperand bias;
@@ -179,13 +179,13 @@ enum MLConvTranspose2dFilterOperandLayout {
179
179
  };
180
180
 
181
181
  dictionary MLConvTranspose2dOptions {
182
- sequence<long> padding;
183
- sequence<long> strides;
184
- sequence<long> dilations;
185
- sequence<long> outputPadding;
186
- sequence<long> outputSizes;
182
+ sequence<unsigned long> padding;
183
+ sequence<unsigned long> strides;
184
+ sequence<unsigned long> dilations;
185
+ sequence<unsigned long> outputPadding;
186
+ sequence<unsigned long> outputSizes;
187
187
  MLAutoPad autoPad = "explicit";
188
- long groups = 1;
188
+ unsigned long groups = 1;
189
189
  MLInputOperandLayout inputLayout = "nchw";
190
190
  MLConvTranspose2dFilterOperandLayout filterLayout = "iohw";
191
191
  MLOperand bias;
@@ -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
 
@@ -355,14 +352,14 @@ enum MLRoundingType {
355
352
  };
356
353
 
357
354
  dictionary MLPool2dOptions {
358
- sequence<long> windowDimensions;
359
- sequence<long> padding;
360
- sequence<long> strides;
361
- sequence<long> dilations;
355
+ sequence<unsigned long> windowDimensions;
356
+ sequence<unsigned long> padding;
357
+ sequence<unsigned long> strides;
358
+ sequence<unsigned long> dilations;
362
359
  MLAutoPad autoPad = "explicit";
363
360
  MLInputOperandLayout layout = "nchw";
364
361
  MLRoundingType roundingType = "floor";
365
- sequence<long> outputSizes;
362
+ sequence<unsigned long> outputSizes;
366
363
  };
367
364
 
368
365
  partial interface MLGraphBuilder {
@@ -402,7 +399,7 @@ enum MLInterpolationMode {
402
399
  dictionary MLResample2dOptions {
403
400
  MLInterpolationMode mode = "nearest-neighbor";
404
401
  sequence<float> scales;
405
- sequence<long> sizes;
402
+ sequence<unsigned long> sizes;
406
403
  sequence<long> axes;
407
404
  };
408
405
 
@@ -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
- sequence<unsigned long> contributingSources;
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
@@ -51,6 +51,7 @@ dictionary RTCInboundRtpStreamStats : RTCReceivedRtpStreamStats {
51
51
  DOMString remoteId;
52
52
  unsigned long framesDecoded;
53
53
  unsigned long keyFramesDecoded;
54
+ unsigned long framesRendered;
54
55
  unsigned long framesDropped;
55
56
  unsigned long frameWidth;
56
57
  unsigned long frameHeight;
@@ -181,11 +182,11 @@ dictionary RTCVideoSourceStats : RTCMediaSourceStats {
181
182
  };
182
183
 
183
184
  dictionary RTCAudioPlayoutStats : RTCStats {
184
- double synthesizedSamplesDuration;
185
- unsigned long synthesizedSamplesEvents;
186
- double totalSamplesDuration;
187
- double totalPlayoutDelay;
188
- double totalSamplesCount;
185
+ double synthesizedSamplesDuration;
186
+ unsigned long synthesizedSamplesEvents;
187
+ double totalSamplesDuration;
188
+ double totalPlayoutDelay;
189
+ unsigned long long totalSamplesCount;
189
190
  };
190
191
 
191
192
  dictionary RTCPeerConnectionStats : RTCStats {
package/webtransport.idl CHANGED
@@ -28,11 +28,13 @@ interface WebTransport {
28
28
 
29
29
  readonly attribute WebTransportDatagramDuplexStream datagrams;
30
30
 
31
- Promise<WebTransportBidirectionalStream> createBidirectionalStream();
31
+ Promise<WebTransportBidirectionalStream> createBidirectionalStream(
32
+ optional WebTransportSendStreamOptions options = {});
32
33
  /* a ReadableStream of WebTransportBidirectionalStream objects */
33
34
  readonly attribute ReadableStream incomingBidirectionalStreams;
34
35
 
35
- Promise<WebTransportSendStream> createUnidirectionalStream();
36
+ Promise<WebTransportSendStream> createUnidirectionalStream(
37
+ optional WebTransportSendStreamOptions options = {});
36
38
  /* a ReadableStream of WebTransportReceiveStream objects */
37
39
  readonly attribute ReadableStream incomingUnidirectionalStreams;
38
40
  };
@@ -63,7 +65,11 @@ enum WebTransportCongestionControl {
63
65
 
64
66
  dictionary WebTransportCloseInfo {
65
67
  unsigned long closeCode = 0;
66
- DOMString reason = "";
68
+ USVString reason = "";
69
+ };
70
+
71
+ dictionary WebTransportSendStreamOptions {
72
+ long long? sendOrder = null;
67
73
  };
68
74
 
69
75
  dictionary WebTransportStats {