@webref/idl 3.42.5 → 3.43.0

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/FedCM.idl CHANGED
@@ -26,6 +26,7 @@ dictionary IdentityCredentialDisconnectOptions : IdentityProviderConfig {
26
26
  interface IdentityCredential : Credential {
27
27
  static Promise<undefined> disconnect(optional IdentityCredentialDisconnectOptions options = {});
28
28
  readonly attribute USVString? token;
29
+ readonly attribute boolean isAutoSelected;
29
30
  };
30
31
 
31
32
  dictionary DisconnectedAccount {
@@ -0,0 +1,33 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: CSS Scroll Snap Module Level 2 (https://drafts.csswg.org/css-scroll-snap-2/)
5
+
6
+ [Exposed=Window]
7
+ interface SnapEvent : Event {
8
+ constructor(DOMString type, optional SnapEventInit eventInitDict = {});
9
+ readonly attribute EventTarget? target;
10
+ readonly attribute SnapTargetList snappedTargets;
11
+ readonly attribute SnapTargetList snapTargets;
12
+ readonly attribute boolean invokedProgrammatically;
13
+ readonly attribute boolean smoothlyScrolled;
14
+ };
15
+
16
+ [Exposed=Window]
17
+ interface SnapTargetList {
18
+ readonly attribute SnapTargetArray x;
19
+ readonly attribute SnapTargetArray y;
20
+ };
21
+
22
+ [Exposed=Window]
23
+ interface SnapTargetArray {
24
+ readonly attribute unsigned long length;
25
+ getter EventTarget? item (unsigned long index);
26
+ };
27
+
28
+ dictionary SnapEventInit : EventModifierInit {
29
+ sequence<EventTarget> snappedTargetsX = [];
30
+ sequence<EventTarget> snappedTargetsY = [];
31
+ sequence<EventTarget> snapTargetsListX = [];
32
+ sequence<EventTarget> snapTargetsListY = [];
33
+ };
package/cssom-view.idl CHANGED
@@ -104,6 +104,9 @@ dictionary ScrollIntoViewOptions : ScrollOptions {
104
104
  dictionary CheckVisibilityOptions {
105
105
  boolean checkOpacity = false;
106
106
  boolean checkVisibilityCSS = false;
107
+ boolean contentVisibilityAuto = false;
108
+ boolean opacityProperty = false;
109
+ boolean visibilityProperty = false;
107
110
  };
108
111
 
109
112
  partial interface Element {
@@ -9,38 +9,6 @@ enum GamepadHand {
9
9
  "right"
10
10
  };
11
11
 
12
- [Exposed=Window]
13
- interface GamepadHapticActuator {
14
- readonly attribute GamepadHapticActuatorType type;
15
- boolean canPlayEffectType(GamepadHapticEffectType type);
16
- Promise<GamepadHapticsResult> playEffect(
17
- GamepadHapticEffectType type,
18
- optional GamepadEffectParameters params = {});
19
- Promise<boolean> pulse(double value, double duration);
20
- Promise<GamepadHapticsResult> reset();
21
- };
22
-
23
- enum GamepadHapticsResult {
24
- "complete",
25
- "preempted"
26
- };
27
-
28
- enum GamepadHapticActuatorType {
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;
42
- };
43
-
44
12
  [Exposed=Window]
45
13
  interface GamepadPose {
46
14
  readonly attribute boolean hasOrientation;
@@ -67,5 +35,9 @@ partial interface Gamepad {
67
35
  readonly attribute FrozenArray<GamepadHapticActuator> hapticActuators;
68
36
  readonly attribute GamepadPose? pose;
69
37
  readonly attribute FrozenArray<GamepadTouch>? touchEvents;
70
- [SameObject] readonly attribute GamepadHapticActuator? vibrationActuator;
38
+ };
39
+
40
+ [Exposed=Window]
41
+ partial interface GamepadHapticActuator {
42
+ Promise<boolean> pulse(double value, double duration);
71
43
  };
package/gamepad.idl CHANGED
@@ -12,6 +12,7 @@ interface Gamepad {
12
12
  readonly attribute GamepadMappingType mapping;
13
13
  readonly attribute FrozenArray<double> axes;
14
14
  readonly attribute FrozenArray<GamepadButton> buttons;
15
+ [SameObject] readonly attribute GamepadHapticActuator vibrationActuator;
15
16
  };
16
17
 
17
18
  [Exposed=Window, SecureContext]
@@ -27,6 +28,32 @@ enum GamepadMappingType {
27
28
  "xr-standard",
28
29
  };
29
30
 
31
+ [Exposed=Window]
32
+ interface GamepadHapticActuator {
33
+ [SameObject] readonly attribute FrozenArray<GamepadHapticEffectType> effects;
34
+ Promise<GamepadHapticsResult> playEffect(
35
+ GamepadHapticEffectType type,
36
+ optional GamepadEffectParameters params = {}
37
+ );
38
+ Promise<GamepadHapticsResult> reset();
39
+ };
40
+
41
+ enum GamepadHapticsResult {
42
+ "complete",
43
+ "preempted"
44
+ };
45
+
46
+ enum GamepadHapticEffectType {
47
+ "dual-rumble"
48
+ };
49
+
50
+ dictionary GamepadEffectParameters {
51
+ unsigned long long duration = 0;
52
+ unsigned long long startDelay = 0;
53
+ double strongMagnitude = 0.0;
54
+ double weakMagnitude = 0.0;
55
+ };
56
+
30
57
  [Exposed=Window]
31
58
  partial interface Navigator {
32
59
  sequence<Gamepad?> getGamepads();
package/mediasession.idl CHANGED
@@ -72,7 +72,7 @@ dictionary MediaImage {
72
72
  };
73
73
 
74
74
  dictionary MediaPositionState {
75
- double duration;
75
+ unrestricted double duration;
76
76
  double playbackRate;
77
77
  double position;
78
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.42.5",
4
+ "version": "3.43.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
package/webnn.idl CHANGED
@@ -508,7 +508,7 @@ partial interface MLGraphBuilder {
508
508
  };
509
509
 
510
510
  partial interface MLGraphBuilder {
511
- MLOperand reshape(MLOperand input, sequence<unsigned long?> newShape);
511
+ MLOperand reshape(MLOperand input, sequence<unsigned long> newShape);
512
512
  };
513
513
 
514
514
  partial interface MLGraphBuilder {