@webref/idl 3.72.2 → 3.73.1

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.
@@ -34,6 +34,7 @@ dictionary CredentialData {
34
34
 
35
35
  dictionary CredentialRequestOptions {
36
36
  CredentialMediationRequirement mediation = "optional";
37
+ DOMString uiMode;
37
38
  AbortSignal signal;
38
39
  };
39
40
 
@@ -44,6 +45,10 @@ enum CredentialMediationRequirement {
44
45
  "required"
45
46
  };
46
47
 
48
+ enum CredentialUiMode {
49
+ "immediate"
50
+ };
51
+
47
52
  dictionary CredentialCreationOptions {
48
53
  CredentialMediationRequirement mediation = "optional";
49
54
  AbortSignal signal;
package/cssom.idl CHANGED
@@ -37,7 +37,7 @@ interface CSSStyleSheet : StyleSheet {
37
37
  };
38
38
 
39
39
  dictionary CSSStyleSheetInit {
40
- DOMString baseURL = null;
40
+ DOMString? baseURL = null;
41
41
  (MediaList or DOMString) media = "";
42
42
  boolean disabled = false;
43
43
  };
package/gamepad.idl CHANGED
@@ -73,12 +73,12 @@ partial interface Navigator {
73
73
  [Exposed=Window]
74
74
 
75
75
  interface GamepadEvent: Event {
76
- constructor(DOMString type, GamepadEventInit eventInitDict);
76
+ constructor(DOMString type, optional GamepadEventInit eventInitDict = {});
77
77
  [SameObject] readonly attribute Gamepad gamepad;
78
78
  };
79
79
 
80
80
  dictionary GamepadEventInit : EventInit {
81
- required Gamepad gamepad;
81
+ Gamepad? gamepad = null;
82
82
  };
83
83
 
84
84
  partial interface mixin WindowEventHandlers {
package/html.idl CHANGED
@@ -1904,7 +1904,7 @@ interface Location { // but see also additional creation steps and overridden in
1904
1904
  [LegacyUnforgeable] undefined replace(USVString url);
1905
1905
  [LegacyUnforgeable] undefined reload();
1906
1906
 
1907
- [LegacyUnforgeable, SameObject] readonly attribute DOMStringList ancestorOrigins;
1907
+ [LegacyUnforgeable] readonly attribute DOMStringList ancestorOrigins;
1908
1908
  };
1909
1909
 
1910
1910
  enum ScrollRestoration { "auto", "manual" };
@@ -3,7 +3,7 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: JS Self-Profiling API (https://wicg.github.io/js-self-profiling/)
5
5
 
6
- [Exposed=Window]
6
+ [Exposed=(Window, Worker)]
7
7
  interface Profiler : EventTarget {
8
8
  readonly attribute DOMHighResTimeStamp sampleInterval;
9
9
  readonly attribute boolean stopped;
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.72.2",
4
+ "version": "3.73.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
package/pointerevents.idl CHANGED
@@ -3,6 +3,40 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: Pointer Events (https://w3c.github.io/pointerevents/)
5
5
 
6
+ [Exposed=Window]
7
+ interface MouseEvent : UIEvent {
8
+ constructor(DOMString type, optional MouseEventInit eventInitDict = {});
9
+ readonly attribute long screenX;
10
+ readonly attribute long screenY;
11
+ readonly attribute long clientX;
12
+ readonly attribute long clientY;
13
+ readonly attribute long layerX;
14
+ readonly attribute long layerY;
15
+
16
+ readonly attribute boolean ctrlKey;
17
+ readonly attribute boolean shiftKey;
18
+ readonly attribute boolean altKey;
19
+ readonly attribute boolean metaKey;
20
+
21
+ readonly attribute short button;
22
+ readonly attribute unsigned short buttons;
23
+
24
+ readonly attribute EventTarget? relatedTarget;
25
+
26
+ boolean getModifierState(DOMString keyArg);
27
+ };
28
+
29
+ dictionary MouseEventInit : EventModifierInit {
30
+ long screenX = 0;
31
+ long screenY = 0;
32
+ long clientX = 0;
33
+ long clientY = 0;
34
+
35
+ short button = 0;
36
+ unsigned short buttons = 0;
37
+ EventTarget? relatedTarget = null;
38
+ };
39
+
6
40
  dictionary PointerEventInit : MouseEventInit {
7
41
  long pointerId = 0;
8
42
  double width = 1;
@@ -41,6 +75,27 @@ interface PointerEvent : MouseEvent {
41
75
  sequence<PointerEvent> getPredictedEvents();
42
76
  };
43
77
 
78
+ [Exposed=Window]
79
+ interface WheelEvent : MouseEvent {
80
+ constructor(DOMString type, optional WheelEventInit eventInitDict = {});
81
+ // DeltaModeCode
82
+ const unsigned long DOM_DELTA_PIXEL = 0x00;
83
+ const unsigned long DOM_DELTA_LINE = 0x01;
84
+ const unsigned long DOM_DELTA_PAGE = 0x02;
85
+
86
+ readonly attribute double deltaX;
87
+ readonly attribute double deltaY;
88
+ readonly attribute double deltaZ;
89
+ readonly attribute unsigned long deltaMode;
90
+ };
91
+
92
+ dictionary WheelEventInit : MouseEventInit {
93
+ double deltaX = 0.0;
94
+ double deltaY = 0.0;
95
+ double deltaZ = 0.0;
96
+ unsigned long deltaMode = 0;
97
+ };
98
+
44
99
  partial interface Element {
45
100
  undefined setPointerCapture (long pointerId);
46
101
  undefined releasePointerCapture (long pointerId);
@@ -64,3 +119,22 @@ partial interface mixin GlobalEventHandlers {
64
119
  partial interface Navigator {
65
120
  readonly attribute long maxTouchPoints;
66
121
  };
122
+
123
+ partial interface MouseEvent {
124
+ // Deprecated in this specification
125
+ undefined initMouseEvent(DOMString typeArg,
126
+ optional boolean bubblesArg = false,
127
+ optional boolean cancelableArg = false,
128
+ optional Window? viewArg = null,
129
+ optional long detailArg = 0,
130
+ optional long screenXArg = 0,
131
+ optional long screenYArg = 0,
132
+ optional long clientXArg = 0,
133
+ optional long clientYArg = 0,
134
+ optional boolean ctrlKeyArg = false,
135
+ optional boolean altKeyArg = false,
136
+ optional boolean shiftKeyArg = false,
137
+ optional boolean metaKeyArg = false,
138
+ optional short buttonArg = 0,
139
+ optional EventTarget? relatedTargetArg = null);
140
+ };
@@ -41,8 +41,7 @@ enum RenderBlockingStatusType {
41
41
  "non-blocking"
42
42
  };
43
43
 
44
- partial interface Performance {
45
- undefined clearResourceTimings ();
44
+ partial interface Performance { undefined clearResourceTimings ();
46
45
  undefined setResourceTimingBufferSize (unsigned long maxSize);
47
46
  attribute EventHandler onresourcetimingbufferfull;
48
47
  };
@@ -3,11 +3,22 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: Accelerated Text Detection in Images (https://wicg.github.io/shape-detection-api/text.html)
5
5
 
6
+ dictionary TextDetectorOptions {
7
+ required sequence<DOMString> languages;
8
+ };
9
+
10
+ dictionary TextDetectorCreateOptions {
11
+ AbortSignal signal;
12
+ sequence<DOMString> languages;
13
+ };
14
+
6
15
  [
7
16
  Exposed=(Window,Worker),
8
17
  SecureContext
9
18
  ] interface TextDetector {
10
19
  constructor();
20
+ static Promise<Availability> availability(TextDetectorOptions options);
21
+ static Promise<TextDetector> create(optional TextDetectorCreateOptions options = {});
11
22
  Promise<sequence<DetectedText>> detect(ImageBitmapSource image);
12
23
  };
13
24
 
package/uievents.idl CHANGED
@@ -25,79 +25,6 @@ dictionary FocusEventInit : UIEventInit {
25
25
  EventTarget? relatedTarget = null;
26
26
  };
27
27
 
28
- [Exposed=Window]
29
- interface MouseEvent : UIEvent {
30
- constructor(DOMString type, optional MouseEventInit eventInitDict = {});
31
- readonly attribute long screenX;
32
- readonly attribute long screenY;
33
- readonly attribute long clientX;
34
- readonly attribute long clientY;
35
- readonly attribute long layerX;
36
- readonly attribute long layerY;
37
-
38
- readonly attribute boolean ctrlKey;
39
- readonly attribute boolean shiftKey;
40
- readonly attribute boolean altKey;
41
- readonly attribute boolean metaKey;
42
-
43
- readonly attribute short button;
44
- readonly attribute unsigned short buttons;
45
-
46
- readonly attribute EventTarget? relatedTarget;
47
-
48
- boolean getModifierState(DOMString keyArg);
49
- };
50
-
51
- dictionary MouseEventInit : EventModifierInit {
52
- long screenX = 0;
53
- long screenY = 0;
54
- long clientX = 0;
55
- long clientY = 0;
56
-
57
- short button = 0;
58
- unsigned short buttons = 0;
59
- EventTarget? relatedTarget = null;
60
- };
61
-
62
- dictionary EventModifierInit : UIEventInit {
63
- boolean ctrlKey = false;
64
- boolean shiftKey = false;
65
- boolean altKey = false;
66
- boolean metaKey = false;
67
-
68
- boolean modifierAltGraph = false;
69
- boolean modifierCapsLock = false;
70
- boolean modifierFn = false;
71
- boolean modifierFnLock = false;
72
- boolean modifierHyper = false;
73
- boolean modifierNumLock = false;
74
- boolean modifierScrollLock = false;
75
- boolean modifierSuper = false;
76
- boolean modifierSymbol = false;
77
- boolean modifierSymbolLock = false;
78
- };
79
-
80
- [Exposed=Window]
81
- interface WheelEvent : MouseEvent {
82
- constructor(DOMString type, optional WheelEventInit eventInitDict = {});
83
- // DeltaModeCode
84
- const unsigned long DOM_DELTA_PIXEL = 0x00;
85
- const unsigned long DOM_DELTA_LINE = 0x01;
86
- const unsigned long DOM_DELTA_PAGE = 0x02;
87
-
88
- readonly attribute double deltaX;
89
- readonly attribute double deltaY;
90
- readonly attribute double deltaZ;
91
- readonly attribute unsigned long deltaMode;
92
- };
93
-
94
- dictionary WheelEventInit : MouseEventInit {
95
- double deltaX = 0.0;
96
- double deltaY = 0.0;
97
- double deltaZ = 0.0;
98
- unsigned long deltaMode = 0;
99
- };
100
-
101
28
  [Exposed=Window]
102
29
  interface InputEvent : UIEvent {
103
30
  constructor(DOMString type, optional InputEventInit eventInitDict = {});
@@ -144,6 +71,24 @@ dictionary KeyboardEventInit : EventModifierInit {
144
71
  boolean isComposing = false;
145
72
  };
146
73
 
74
+ dictionary EventModifierInit : UIEventInit {
75
+ boolean ctrlKey = false;
76
+ boolean shiftKey = false;
77
+ boolean altKey = false;
78
+ boolean metaKey = false;
79
+
80
+ boolean modifierAltGraph = false;
81
+ boolean modifierCapsLock = false;
82
+ boolean modifierFn = false;
83
+ boolean modifierFnLock = false;
84
+ boolean modifierHyper = false;
85
+ boolean modifierNumLock = false;
86
+ boolean modifierScrollLock = false;
87
+ boolean modifierSuper = false;
88
+ boolean modifierSymbol = false;
89
+ boolean modifierSymbolLock = false;
90
+ };
91
+
147
92
  [Exposed=Window]
148
93
  interface CompositionEvent : UIEvent {
149
94
  constructor(DOMString type, optional CompositionEventInit eventInitDict = {});
@@ -163,25 +108,6 @@ partial interface UIEvent {
163
108
  optional long detailArg = 0);
164
109
  };
165
110
 
166
- partial interface MouseEvent {
167
- // Deprecated in this specification
168
- undefined initMouseEvent(DOMString typeArg,
169
- optional boolean bubblesArg = false,
170
- optional boolean cancelableArg = false,
171
- optional Window? viewArg = null,
172
- optional long detailArg = 0,
173
- optional long screenXArg = 0,
174
- optional long screenYArg = 0,
175
- optional long clientXArg = 0,
176
- optional long clientYArg = 0,
177
- optional boolean ctrlKeyArg = false,
178
- optional boolean altKeyArg = false,
179
- optional boolean shiftKeyArg = false,
180
- optional boolean metaKeyArg = false,
181
- optional short buttonArg = 0,
182
- optional EventTarget? relatedTargetArg = null);
183
- };
184
-
185
111
  partial interface KeyboardEvent {
186
112
  // Originally introduced (and deprecated) in this specification
187
113
  undefined initKeyboardEvent(DOMString typeArg,
package/wai-aria.idl CHANGED
@@ -58,3 +58,14 @@ interface mixin ARIAMixin {
58
58
  [CEReactions, Reflect="aria-valuetext"] attribute DOMString? ariaValueText;
59
59
  };
60
60
  Element includes ARIAMixin;
61
+
62
+ enum AriaNotifyPriority { "normal", "high" };
63
+
64
+ dictionary AriaNotificationOptions {
65
+ AriaNotifyPriority priority = "normal";
66
+ };
67
+ interface mixin ARIANotifyMixin {
68
+ undefined ariaNotify(DOMString announcement, optional AriaNotificationOptions options = {});
69
+ };
70
+ Element includes ARIANotifyMixin;
71
+ Document includes ARIANotifyMixin;
@@ -1,7 +1,7 @@
1
1
  // GENERATED CONTENT - DO NOT EDIT
2
2
  // Content was automatically extracted by Reffy into webref
3
3
  // (https://github.com/w3c/webref)
4
- // Source: Payment Handler API (https://w3c.github.io/payment-handler/)
4
+ // Source: Web-based Payment Handler API (https://w3c.github.io/web-based-payment-handler/)
5
5
 
6
6
  partial interface ServiceWorkerRegistration {
7
7
  [SameObject] readonly attribute PaymentManager paymentManager;
@@ -75,7 +75,7 @@ dictionary AeadParams : Algorithm {
75
75
  };
76
76
 
77
77
  dictionary CShakeParams : Algorithm {
78
- required [EnforceRange] unsigned long length;
78
+ required [EnforceRange] unsigned long outputLength;
79
79
  BufferSource functionName;
80
80
  BufferSource customization;
81
81
  };
@@ -93,7 +93,7 @@ dictionary KmacKeyAlgorithm : KeyAlgorithm {
93
93
  };
94
94
 
95
95
  dictionary KmacParams : Algorithm {
96
- required [EnforceRange] unsigned long length;
96
+ required [EnforceRange] unsigned long outputLength;
97
97
  BufferSource customization;
98
98
  };
99
99
 
package/webmcp.idl ADDED
@@ -0,0 +1,41 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: WebMCP (https://webmachinelearning.github.io/webmcp/)
5
+
6
+ partial interface Navigator {
7
+ [SecureContext, SameObject] readonly attribute ModelContext modelContext;
8
+ };
9
+
10
+ [Exposed=Window, SecureContext]
11
+ interface ModelContext {
12
+ undefined provideContext(optional ModelContextOptions options = {});
13
+ undefined clearContext();
14
+ undefined registerTool(ModelContextTool tool);
15
+ undefined unregisterTool(DOMString name);
16
+ };
17
+
18
+ dictionary ModelContextOptions {
19
+ sequence<ModelContextTool> tools = [];
20
+ };
21
+
22
+ dictionary ModelContextTool {
23
+ required DOMString name;
24
+ required DOMString description;
25
+ object inputSchema;
26
+ required ToolExecuteCallback execute;
27
+ ToolAnnotations annotations;
28
+ };
29
+
30
+ dictionary ToolAnnotations {
31
+ boolean readOnlyHint;
32
+ };
33
+
34
+ callback ToolExecuteCallback = Promise<any> (object input, ModelContextClient client);
35
+
36
+ [Exposed=Window, SecureContext]
37
+ interface ModelContextClient {
38
+ Promise<any> requestUserInteraction(UserInteractionCallback callback);
39
+ };
40
+
41
+ callback UserInteractionCallback = Promise<any> ();
package/webtransport.idl CHANGED
@@ -27,12 +27,13 @@ interface WebTransport {
27
27
  constructor(USVString url, optional WebTransportOptions options = {});
28
28
 
29
29
  Promise<WebTransportConnectionStats> getStats();
30
- [NewObject] Promise<ArrayBuffer> exportKeyingMaterial(BufferSource label, optional BufferSource context);
30
+ [NewObject] Promise<Uint8Array> exportKeyingMaterial(BufferSource label, optional BufferSource context);
31
31
  readonly attribute Promise<undefined> ready;
32
32
  readonly attribute WebTransportReliabilityMode reliability;
33
33
  readonly attribute WebTransportCongestionControl congestionControl;
34
- [EnforceRange] attribute unsigned short? anticipatedConcurrentIncomingUnidirectionalStreams;
35
- [EnforceRange] attribute unsigned short? anticipatedConcurrentIncomingBidirectionalStreams;
34
+ attribute [EnforceRange] unsigned short? anticipatedConcurrentIncomingUnidirectionalStreams;
35
+ attribute [EnforceRange] unsigned short? anticipatedConcurrentIncomingBidirectionalStreams;
36
+ [SameObject] readonly attribute Headers? responseHeaders;
36
37
  readonly attribute DOMString protocol;
37
38
 
38
39
  readonly attribute Promise<WebTransportCloseInfo> closed;
@@ -69,6 +70,7 @@ dictionary WebTransportHash {
69
70
  dictionary WebTransportOptions {
70
71
  boolean allowPooling = false;
71
72
  boolean requireUnreliable = false;
73
+ HeadersInit headers = {};
72
74
  sequence<WebTransportHash> serverCertificateHashes = [];
73
75
  WebTransportCongestionControl congestionControl = "default";
74
76
  [EnforceRange] unsigned short? anticipatedConcurrentIncomingUnidirectionalStreams = null;
@@ -1,37 +0,0 @@
1
- // GENERATED CONTENT - DO NOT EDIT
2
- // Content was automatically extracted by Reffy into webref
3
- // (https://github.com/w3c/webref)
4
- // Source: Geolocation Sensor (https://w3c.github.io/geolocation-sensor/)
5
-
6
- [SecureContext,
7
- Exposed=(DedicatedWorker, Window)]
8
- interface GeolocationSensor : Sensor {
9
- constructor(optional GeolocationSensorOptions options = {});
10
- static Promise<GeolocationSensorReading> read(optional ReadOptions readOptions = {});
11
- readonly attribute unrestricted double? latitude;
12
- readonly attribute unrestricted double? longitude;
13
- readonly attribute unrestricted double? altitude;
14
- readonly attribute unrestricted double? accuracy;
15
- readonly attribute unrestricted double? altitudeAccuracy;
16
- readonly attribute unrestricted double? heading;
17
- readonly attribute unrestricted double? speed;
18
- };
19
-
20
- dictionary GeolocationSensorOptions : SensorOptions {
21
- // placeholder for GeolocationSensor-specific options
22
- };
23
-
24
- dictionary ReadOptions : GeolocationSensorOptions {
25
- AbortSignal? signal;
26
- };
27
-
28
- dictionary GeolocationSensorReading {
29
- DOMHighResTimeStamp? timestamp;
30
- double? latitude;
31
- double? longitude;
32
- double? altitude;
33
- double? accuracy;
34
- double? altitudeAccuracy;
35
- double? heading;
36
- double? speed;
37
- };